Skip to main content

vcenters

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

Overview

Namevcenters
TypeResource
Idazure_isv.connected_vsphere.vcenters

Fields

NameDatatypeDescription
idtextGets or sets the Id.
nametextGets or sets the name.
connection_statustextfield from the properties object
credentialstextfield from the properties object
custom_resource_nametextfield from the properties object
extended_locationtextfield from the properties object
fqdntextfield from the properties object
instance_uuidtextfield from the properties object
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
locationtextGets or sets the location.
porttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statusestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets the Resource tags.
typetextGets or sets the type of the resource.
uuidtextfield from the properties object
vcenterNametextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vcenterNameImplements vCenter GET method.
listSELECTsubscriptionIdList of vCenters in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of vCenters in a resource group.
createINSERTresourceGroupName, subscriptionId, vcenterName, data__location, data__propertiesCreate Or Update vCenter.
deleteDELETEresourceGroupName, subscriptionId, vcenterNameImplements vCenter DELETE method.
updateUPDATEresourceGroupName, subscriptionId, vcenterNameAPI to update certain properties of the vCenter resource.

SELECT examples

List of vCenters in a subscription.

SELECT
id,
name,
connection_status,
credentials,
custom_resource_name,
extended_location,
fqdn,
instance_uuid,
kind,
location,
port,
provisioning_state,
resourceGroupName,
statuses,
subscriptionId,
system_data,
tags,
type,
uuid,
vcenterName,
version
FROM azure_isv.connected_vsphere.vw_vcenters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.connected_vsphere.vcenters (
resourceGroupName,
subscriptionId,
vcenterName,
data__location,
data__properties,
properties,
location,
extendedLocation,
systemData,
tags,
kind
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vcenterName }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ systemData }}',
'{{ tags }}',
'{{ kind }}'
;

UPDATE example

Updates a vcenters resource.

/*+ update */
UPDATE azure_isv.connected_vsphere.vcenters
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';

DELETE example

Deletes the specified vcenters resource.

/*+ delete */
DELETE FROM azure_isv.connected_vsphere.vcenters
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';