Skip to main content

cloud_connectors

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

Overview

Namecloud_connectors
TypeResource
Idazure.hybrid_cloud.cloud_connectors

Fields

NameDatatypeDescription
account_idtextfield from the properties object
cloudConnectorNametextfield from the properties object
cloud_typetextfield 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
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudConnectorName, resourceGroupName, subscriptionIdGets the specified cloud connector in a specified resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturn list of cloud connectors in a resource group.
list_by_subscriptionSELECTsubscriptionIdReturn list of cloud connectors in a subscription.
create_or_updateINSERTcloudConnectorName, resourceGroupName, subscriptionIdCreates or updates a cloud connector resource.
deleteDELETEcloudConnectorName, resourceGroupName, subscriptionIdDeletes a specified cloud connector resource.
discover_resourcesEXECcloudConnectorName, resourceGroupName, subscriptionIdReturns a list of discovered remote cloud resources via this cloud connector resource.
update_tagsEXECcloudConnectorName, resourceGroupName, subscriptionIdUpdates the specified cloud connector tags.

SELECT examples

Return list of cloud connectors in a subscription.

SELECT
account_id,
cloudConnectorName,
cloud_type,
etag,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.hybrid_cloud.vw_cloud_connectors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

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