cloud_connections
Creates, updates, deletes, gets or lists a cloud_connections
resource.
Overview
Name | cloud_connections |
Type | Resource |
Id | azure.hybrid_cloud.cloud_connections |
Fields
- vw_cloud_connections
- cloud_connections
Name | Datatype | Description |
---|---|---|
cloudConnectionName | text | field from the properties object |
cloud_connector | 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 |
remote_resource_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
shared_key | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
virtual_hub | text | field from the properties object |
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 connection resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cloudConnectionName, resourceGroupName, subscriptionId | Gets the specified cloud connection in a specified resource group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Return list of cloud connections in a resource group. |
list_by_subscription | SELECT | subscriptionId | Return list of cloud connections in a subscription. |
create_or_update | INSERT | cloudConnectionName, resourceGroupName, subscriptionId | Creates or updates a cloud connection resource |
delete | DELETE | cloudConnectionName, resourceGroupName, subscriptionId | Deletes a specified cloud connection resource. |
update_tags | EXEC | cloudConnectionName, resourceGroupName, subscriptionId | Updates the specified cloud connection tags. |
SELECT
examples
Return list of cloud connections in a subscription.
- vw_cloud_connections
- cloud_connections
SELECT
cloudConnectionName,
cloud_connector,
etag,
location,
provisioning_state,
remote_resource_id,
resourceGroupName,
shared_key,
subscriptionId,
tags,
virtual_hub
FROM azure.hybrid_cloud.vw_cloud_connections
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
location,
properties,
tags
FROM azure.hybrid_cloud.cloud_connections
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new cloud_connections
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_cloud.cloud_connections (
cloudConnectionName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ cloudConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: cloudConnector
value:
- name: id
value: string
- name: remoteResourceId
value: string
- name: sharedKey
value: string
- name: provisioningState
value: []
- name: etag
value: string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified cloud_connections
resource.
/*+ delete */
DELETE FROM azure.hybrid_cloud.cloud_connections
WHERE cloudConnectionName = '{{ cloudConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';