Skip to main content

public_cloud_connectors

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

Overview

Namepublic_cloud_connectors
TypeResource
Idazure.hybrid_connectivity.public_cloud_connectors

Fields

NameDatatypeDescription
aws_cloud_profiletextfield from the properties object
connector_primary_identifiertextfield from the properties object
host_typetextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
publicCloudConnectortextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpublicCloudConnector, resourceGroupName, subscriptionIdGet a PublicCloudConnector
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList PublicCloudConnector resources by resource group
list_by_subscriptionSELECTsubscriptionIdList PublicCloudConnector resources by subscription ID
create_or_updateINSERTpublicCloudConnector, resourceGroupName, subscriptionIdCreate a PublicCloudConnector
deleteDELETEpublicCloudConnector, resourceGroupName, subscriptionIdDelete a PublicCloudConnector
updateUPDATEpublicCloudConnector, resourceGroupName, subscriptionIdUpdate a PublicCloudConnector
test_permissionsEXECpublicCloudConnector, resourceGroupName, subscriptionIdA long-running resource action.

SELECT examples

List PublicCloudConnector resources by subscription ID

SELECT
aws_cloud_profile,
connector_primary_identifier,
host_type,
location,
provisioning_state,
publicCloudConnector,
resourceGroupName,
subscriptionId,
tags
FROM azure.hybrid_connectivity.vw_public_cloud_connectors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_connectivity.public_cloud_connectors (
publicCloudConnector,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ publicCloudConnector }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a public_cloud_connectors resource.

/*+ update */
UPDATE azure.hybrid_connectivity.public_cloud_connectors
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
publicCloudConnector = '{{ publicCloudConnector }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified public_cloud_connectors resource.

/*+ delete */
DELETE FROM azure.hybrid_connectivity.public_cloud_connectors
WHERE publicCloudConnector = '{{ publicCloudConnector }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';