Skip to main content

cloud_providers

Creates, updates, deletes, gets or lists a cloud_providers resource.

Overview

Namecloud_providers
TypeResource
Idcloudflare.magic_cloud_networking.cloud_providers

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstring (uuid)
azure_subscription_idstring
azure_tenant_idstring
gcp_project_idstring
friendly_namestring
aws_arnstring
cloud_typestring (AWS, AZURE, GOOGLE, CLOUDFLARE)
descriptionstring
gcp_service_account_emailstring
last_updatedstring
lifecycle_statestring (ACTIVE, PENDING_SETUP, RETIRED)
statestring (UNSPECIFIED, PENDING, DISCOVERING, FAILED, SUCCEEDED)
state_v2string (UNSPECIFIED, PENDING, DISCOVERING, FAILED, SUCCEEDED)
statusobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectaccount_idstatus, order_by, desc, cloudflareList Cloud Integrations (Closed Beta).
createinsertaccount_id, friendly_name, cloud_typeforwardedCreate a new Cloud Integration (Closed Beta).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
cloudflareboolean
descboolean
forwardedstring
order_bystringOne of ["updated_at", "id", "cloud_type", "name"].
statusboolean

SELECT examples

List Cloud Integrations (Closed Beta).

SELECT
id,
azure_subscription_id,
azure_tenant_id,
gcp_project_id,
friendly_name,
aws_arn,
cloud_type,
description,
gcp_service_account_email,
last_updated,
lifecycle_state,
state,
state_v2,
status
FROM cloudflare.magic_cloud_networking.cloud_providers
WHERE account_id = '{{ account_id }}' -- required
AND status = '{{ status }}'
AND order_by = '{{ order_by }}'
AND desc = '{{ desc }}'
AND cloudflare = '{{ cloudflare }}'
;

INSERT examples

Create a new Cloud Integration (Closed Beta).

INSERT INTO cloudflare.magic_cloud_networking.cloud_providers (
cloud_type,
description,
friendly_name,
account_id,
forwarded
)
SELECT
'{{ cloud_type }}' /* required */,
'{{ description }}',
'{{ friendly_name }}' /* required */,
'{{ account_id }}',
'{{ forwarded }}'
RETURNING
errors,
messages,
result,
success
;