Skip to main content

cloud_connections

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

Overview

Namecloud_connections
TypeResource
Idazure.hybrid_cloud.cloud_connections

Fields

NameDatatypeDescription
cloudConnectionNametextfield from the properties object
cloud_connectortextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
remote_resource_idtextfield from the properties object
resourceGroupNametextfield from the properties object
shared_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtual_hubtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudConnectionName, resourceGroupName, subscriptionIdGets the specified cloud connection in a specified resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturn list of cloud connections in a resource group.
list_by_subscriptionSELECTsubscriptionIdReturn list of cloud connections in a subscription.
create_or_updateINSERTcloudConnectionName, resourceGroupName, subscriptionIdCreates or updates a cloud connection resource
deleteDELETEcloudConnectionName, resourceGroupName, subscriptionIdDeletes a specified cloud connection resource.
update_tagsEXECcloudConnectionName, resourceGroupName, subscriptionIdUpdates the specified cloud connection tags.

SELECT examples

Return list of cloud connections in a subscription.

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

INSERT example

Use the following StackQL query and manifest file to create a new cloud_connections resource.

/*+ create */
INSERT INTO azure.hybrid_cloud.cloud_connections (
cloudConnectionName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ cloudConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

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