cloud_connectors
Creates, updates, deletes, gets or lists a cloud_connectors
resource.
Overview
Name | cloud_connectors |
Type | Resource |
Id | azure.hybrid_cloud.cloud_connectors |
Fields
- vw_cloud_connectors
- cloud_connectors
Name | Datatype | Description |
---|---|---|
account_id | text | field from the properties object |
cloudConnectorName | text | field from the properties object |
cloud_type | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | The geo-location where the resource lives |
properties | object | Cloud connector resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cloudConnectorName, resourceGroupName, subscriptionId | Gets the specified cloud connector in a specified resource group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Return list of cloud connectors in a resource group. |
list_by_subscription | SELECT | subscriptionId | Return list of cloud connectors in a subscription. |
create_or_update | INSERT | cloudConnectorName, resourceGroupName, subscriptionId | Creates or updates a cloud connector resource. |
delete | DELETE | cloudConnectorName, resourceGroupName, subscriptionId | Deletes a specified cloud connector resource. |
discover_resources | EXEC | cloudConnectorName, resourceGroupName, subscriptionId | Returns a list of discovered remote cloud resources via this cloud connector resource. |
update_tags | EXEC | cloudConnectorName, resourceGroupName, subscriptionId | Updates the specified cloud connector tags. |
SELECT
examples
Return list of cloud connectors in a subscription.
- vw_cloud_connectors
- cloud_connectors
SELECT
account_id,
cloudConnectorName,
cloud_type,
etag,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.hybrid_cloud.vw_cloud_connectors
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
location,
properties,
tags
FROM azure.hybrid_cloud.cloud_connectors
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new cloud_connectors
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_cloud.cloud_connectors (
cloudConnectorName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ cloudConnectorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: accountId
value: string
- name: cloudType
value: string
- name: provisioningState
value: []
- name: etag
value: string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified cloud_connectors
resource.
/*+ delete */
DELETE FROM azure.hybrid_cloud.cloud_connectors
WHERE cloudConnectorName = '{{ cloudConnectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';