Skip to main content

cloud_resources

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

Overview

Namecloud_resources
TypeResource
Idcloudflare.magic_cloud_networking.cloud_resources

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstring (uuid)
namestring
account_idstring
native_idstring
provider_names_by_idobject
cloud_typestring (AWS, AZURE, GOOGLE, CLOUDFLARE)
configobject
deployment_providerstring (uuid)
managedboolean
managed_byarray
monthly_cost_estimateobject
observationsobject
provider_idsarray
regionstring
resource_groupstring
resource_typestring (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)
sectionsarray
stateobject
tagsobject
updated_atstring
urlstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idprovider_id, resource_type, resource_id, region, resource_group, managed, search, order_by, desc, per_page, page, cloudflare, v2List 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
cloudflareboolean
descboolean
managedboolean
order_bystringOne of ["id", "resource_type", "region"].
pageinteger
per_pageinteger
provider_idstring
regionstring
resource_groupstring
resource_idarray
resource_typearray
v2boolean

SELECT examples

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 }}'
;