public_cloud_connectors
Creates, updates, deletes, gets or lists a public_cloud_connectors
resource.
Overview
Name | public_cloud_connectors |
Type | Resource |
Id | azure.hybrid_connectivity.public_cloud_connectors |
Fields
- vw_public_cloud_connectors
- public_cloud_connectors
Name | Datatype | Description |
---|---|---|
aws_cloud_profile | text | field from the properties object |
connector_primary_identifier | text | field from the properties object |
host_type | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
publicCloudConnector | 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 |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Properties of public cloud connectors. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | publicCloudConnector, resourceGroupName, subscriptionId | Get a PublicCloudConnector |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List PublicCloudConnector resources by resource group |
list_by_subscription | SELECT | subscriptionId | List PublicCloudConnector resources by subscription ID |
create_or_update | INSERT | publicCloudConnector, resourceGroupName, subscriptionId | Create a PublicCloudConnector |
delete | DELETE | publicCloudConnector, resourceGroupName, subscriptionId | Delete a PublicCloudConnector |
update | UPDATE | publicCloudConnector, resourceGroupName, subscriptionId | Update a PublicCloudConnector |
test_permissions | EXEC | publicCloudConnector, resourceGroupName, subscriptionId | A long-running resource action. |
SELECT
examples
List PublicCloudConnector resources by subscription ID
- vw_public_cloud_connectors
- public_cloud_connectors
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 }}';
SELECT
location,
properties,
tags
FROM azure.hybrid_connectivity.public_cloud_connectors
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new public_cloud_connectors
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.hybrid_connectivity.public_cloud_connectors (
publicCloudConnector,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ publicCloudConnector }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: awsCloudProfile
value:
- name: accountId
value: string
- name: excludedAccounts
value:
- string
- name: isOrganizationalAccount
value: boolean
- name: hostType
value: []
- name: provisioningState
value: []
- name: connectorPrimaryIdentifier
value: string
- name: tags
value: object
- name: location
value: string
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 }}';