cloud_integrations
Creates, updates, deletes, gets or lists a cloud_integrations resource.
Overview
| Name | cloud_integrations |
| Type | Resource |
| Id | cloudflare.magic_cloud_networking.cloud_integrations |
Fields
The following fields are returned by SELECT queries:
- get
OK.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
azure_subscription_id | string | |
azure_tenant_id | string | |
gcp_project_id | string | |
friendly_name | string | |
aws_arn | string | |
cloud_type | string | (AWS, AZURE, GOOGLE, CLOUDFLARE) |
description | string | |
gcp_service_account_email | string | |
last_updated | string | |
lifecycle_state | string | (ACTIVE, PENDING_SETUP, RETIRED) |
state | string | (UNSPECIFIED, PENDING, DISCOVERING, FAILED, SUCCEEDED) |
state_v2 | string | (UNSPECIFIED, PENDING, DISCOVERING, FAILED, SUCCEEDED) |
status | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id, provider_id | status | Read a Cloud Integration (Closed Beta). |
discover | insert | account_id, provider_id | v2 | Run discovery for a Cloud Integration (Closed Beta). |
edit | update | account_id, provider_id | Update a Cloud Integration (Closed Beta). | |
update | replace | account_id, provider_id | Update a Cloud Integration (Closed Beta). | |
delete | delete | account_id, provider_id | Delete a 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
provider_id | string (uuid) | |
status | boolean | |
v2 | boolean |
SELECT examples
- get
Read a Cloud Integration (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_integrations
WHERE account_id = '{{ account_id }}' -- required
AND provider_id = '{{ provider_id }}' -- required
AND status = '{{ status }}'
;
INSERT examples
- discover
- Manifest
Run discovery for a Cloud Integration (Closed Beta).
INSERT INTO cloudflare.magic_cloud_networking.cloud_integrations (
account_id,
provider_id,
v2
)
SELECT
'{{ account_id }}',
'{{ provider_id }}',
'{{ v2 }}'
RETURNING
errors,
messages,
success
;
# Description fields are for documentation purposes
- name: cloud_integrations
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the cloud_integrations resource.
- name: provider_id
value: "{{ provider_id }}"
description: Required parameter for the cloud_integrations resource.
- name: v2
value: {{ v2 }}
UPDATE examples
- edit
Update a Cloud Integration (Closed Beta).
UPDATE cloudflare.magic_cloud_networking.cloud_integrations
SET
aws_arn = '{{ aws_arn }}',
azure_subscription_id = '{{ azure_subscription_id }}',
azure_tenant_id = '{{ azure_tenant_id }}',
description = '{{ description }}',
friendly_name = '{{ friendly_name }}',
gcp_project_id = '{{ gcp_project_id }}',
gcp_service_account_email = '{{ gcp_service_account_email }}'
WHERE
account_id = '{{ account_id }}' --required
AND provider_id = '{{ provider_id }}' --required
RETURNING
errors,
messages,
result,
success;
REPLACE examples
- update
Update a Cloud Integration (Closed Beta).
REPLACE cloudflare.magic_cloud_networking.cloud_integrations
SET
aws_arn = '{{ aws_arn }}',
azure_subscription_id = '{{ azure_subscription_id }}',
azure_tenant_id = '{{ azure_tenant_id }}',
description = '{{ description }}',
friendly_name = '{{ friendly_name }}',
gcp_project_id = '{{ gcp_project_id }}',
gcp_service_account_email = '{{ gcp_service_account_email }}'
WHERE
account_id = '{{ account_id }}' --required
AND provider_id = '{{ provider_id }}' --required
RETURNING
errors,
messages,
result,
success;
DELETE examples
- delete
Delete a Cloud Integration (Closed Beta).
DELETE FROM cloudflare.magic_cloud_networking.cloud_integrations
WHERE account_id = '{{ account_id }}' --required
AND provider_id = '{{ provider_id }}' --required
;