cloud_resources
Creates, updates, deletes, gets or lists a cloud_resources resource.
Overview
| Name | cloud_resources |
| Type | Resource |
| Id | cloudflare.magic_cloud_networking.cloud_resources |
Fields
The following fields are returned by SELECT queries:
- list
OK.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
name | string | |
account_id | string | |
native_id | string | |
provider_names_by_id | object | |
cloud_type | string | (AWS, AZURE, GOOGLE, CLOUDFLARE) |
config | object | |
deployment_provider | string (uuid) | |
managed | boolean | |
managed_by | array | |
monthly_cost_estimate | object | |
observations | object | |
provider_ids | array | |
region | string | |
resource_group | string | |
resource_type | string | (aws_customer_gateway, aws_egress_only_internet_gateway, aws_internet_gateway, aws_instance, aws_network_interface, aws_route, aws_route_table, aws_route_table_association, aws_subnet, aws_vpc, aws_vpc_ipv4_cidr_block_association, aws_vpn_connection, aws_vpn_connection_route, aws_vpn_gateway, aws_security_group, aws_vpc_security_group_ingress_rule, aws_vpc_security_group_egress_rule, aws_ec2_managed_prefix_list, aws_ec2_transit_gateway, aws_ec2_transit_gateway_prefix_list_reference, aws_ec2_transit_gateway_vpc_attachment, azurerm_application_security_group, azurerm_lb, azurerm_lb_backend_address_pool, azurerm_lb_nat_pool, azurerm_lb_nat_rule, azurerm_lb_rule, azurerm_local_network_gateway, azurerm_network_interface, azurerm_network_interface_application_security_group_association, azurerm_network_interface_backend_address_pool_association, azurerm_network_interface_security_group_association, azurerm_network_security_group, azurerm_public_ip, azurerm_route, azurerm_route_table, azurerm_subnet, azurerm_subnet_route_table_association, azurerm_virtual_machine, azurerm_virtual_network_gateway_connection, azurerm_virtual_network, azurerm_virtual_network_gateway, google_compute_network, google_compute_subnetwork, google_compute_vpn_gateway, google_compute_vpn_tunnel, google_compute_route, google_compute_address, google_compute_global_address, google_compute_router, google_compute_interconnect_attachment, google_compute_ha_vpn_gateway, google_compute_forwarding_rule, google_compute_network_firewall_policy, google_compute_network_firewall_policy_rule, cloudflare_static_route, cloudflare_ipsec_tunnel) |
sections | array | |
state | object | |
tags | object | |
updated_at | string | |
url | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | provider_id, resource_type, resource_id, region, resource_group, managed, search, order_by, desc, per_page, page, cloudflare, v2 | List resources in the Resource Catalog (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. |
cloudflare | boolean | |
desc | boolean | |
managed | boolean | |
order_by | string | One of ["id", "resource_type", "region"]. |
page | integer | |
per_page | integer | |
provider_id | string | |
region | string | |
resource_group | string | |
resource_id | array | |
resource_type | array | |
search | array | |
v2 | boolean |
SELECT examples
- list
List resources in the Resource Catalog (Closed Beta).
SELECT
id,
name,
account_id,
native_id,
provider_names_by_id,
cloud_type,
config,
deployment_provider,
managed,
managed_by,
monthly_cost_estimate,
observations,
provider_ids,
region,
resource_group,
resource_type,
sections,
state,
tags,
updated_at,
url
FROM cloudflare.magic_cloud_networking.cloud_resources
WHERE account_id = '{{ account_id }}' -- required
AND provider_id = '{{ provider_id }}'
AND resource_type = '{{ resource_type }}'
AND resource_id = '{{ resource_id }}'
AND region = '{{ region }}'
AND resource_group = '{{ resource_group }}'
AND managed = '{{ managed }}'
AND search = '{{ search }}'
AND order_by = '{{ order_by }}'
AND desc = '{{ desc }}'
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
AND cloudflare = '{{ cloudflare }}'
AND v2 = '{{ v2 }}'
;