Skip to main content

dedicated_cloud_services

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

Overview

Namededicated_cloud_services
TypeResource
Idazure_isv.vmware_cloud_simple.dedicated_cloud_services

Fields

NameDatatypeDescription
idtext/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudServices/{dedicatedCloudServiceName}
nametext{dedicatedCloudServiceName}
dedicatedCloudServiceNametextfield from the properties object
gateway_subnettextfield from the properties object
is_account_onboardedtextfield from the properties object
locationtextAzure region
nodestextfield from the properties object
resourceGroupNametextfield from the properties object
service_urltextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextTags model
typetext{resourceProviderNamespace}/{resourceType}

Methods

NameAccessible byRequired ParamsDescription
getSELECTdedicatedCloudServiceName, resourceGroupName, subscriptionIdReturns Dedicate Cloud Service
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns list of dedicated cloud services within a resource group
list_by_subscriptionSELECTsubscriptionIdReturns list of dedicated cloud services within a subscription
create_or_updateINSERTdedicatedCloudServiceName, resourceGroupName, subscriptionId, data__locationCreate dedicate cloud service
deleteDELETEdedicatedCloudServiceName, resourceGroupName, subscriptionIdDelete dedicate cloud service
updateUPDATEdedicatedCloudServiceName, resourceGroupName, subscriptionIdPatch dedicated cloud service's properties

SELECT examples

Returns list of dedicated cloud services within a subscription

SELECT
id,
name,
dedicatedCloudServiceName,
gateway_subnet,
is_account_onboarded,
location,
nodes,
resourceGroupName,
service_url,
subscriptionId,
tags,
type
FROM azure_isv.vmware_cloud_simple.vw_dedicated_cloud_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.vmware_cloud_simple.dedicated_cloud_services (
dedicatedCloudServiceName,
resourceGroupName,
subscriptionId,
data__location,
location,
properties,
tags
)
SELECT
'{{ dedicatedCloudServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a dedicated_cloud_services resource.

/*+ update */
UPDATE azure_isv.vmware_cloud_simple.dedicated_cloud_services
SET
tags = '{{ tags }}'
WHERE
dedicatedCloudServiceName = '{{ dedicatedCloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dedicated_cloud_services resource.

/*+ delete */
DELETE FROM azure_isv.vmware_cloud_simple.dedicated_cloud_services
WHERE dedicatedCloudServiceName = '{{ dedicatedCloudServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';