Skip to main content

hcx_enterprise_sites

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

Overview

Namehcx_enterprise_sites
TypeResource
Idazure_isv.avs.hcx_enterprise_sites

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
activationKeystringThe activation key.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
statusstringThe status of the HCX Enterprise Site. Known values are: "Available", "Consumed", "Deactivated", and "Deleted". (Available, Consumed, Deactivated, Deleted)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, private_cloud_name, hcx_enterprise_site_name, subscription_idGet a HcxEnterpriseSite.
listselectresource_group_name, private_cloud_name, subscription_idList HcxEnterpriseSite resources by PrivateCloud.
create_or_updateinsertresource_group_name, private_cloud_name, hcx_enterprise_site_name, subscription_idCreate a HcxEnterpriseSite.
create_or_updatereplaceresource_group_name, private_cloud_name, hcx_enterprise_site_name, subscription_idCreate a HcxEnterpriseSite.
deletedeleteresource_group_name, private_cloud_name, hcx_enterprise_site_name, subscription_idDelete a HcxEnterpriseSite.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hcx_enterprise_site_namestringName of the HCX Enterprise Site. Required.
private_cloud_namestringName of the private cloud. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a HcxEnterpriseSite.

SELECT
id,
name,
activationKey,
provisioningState,
status,
systemData,
type
FROM azure_isv.avs.hcx_enterprise_sites
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_cloud_name = '{{ private_cloud_name }}' -- required
AND hcx_enterprise_site_name = '{{ hcx_enterprise_site_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a HcxEnterpriseSite.

INSERT INTO azure_isv.avs.hcx_enterprise_sites (
properties,
resource_group_name,
private_cloud_name,
hcx_enterprise_site_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ private_cloud_name }}',
'{{ hcx_enterprise_site_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create a HcxEnterpriseSite.

REPLACE azure_isv.avs.hcx_enterprise_sites
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND hcx_enterprise_site_name = '{{ hcx_enterprise_site_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a HcxEnterpriseSite.

DELETE FROM azure_isv.avs.hcx_enterprise_sites
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND hcx_enterprise_site_name = '{{ hcx_enterprise_site_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;