Skip to main content

v_centers

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

Overview

Namev_centers
TypeResource
Idazure_isv.connectedvmware.v_centers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the Id.
namestringGets or sets the name.
connectionStatusstringGets or sets the connection status to the vCenter.
credentialsobjectUsername / Password Credentials to connect to vcenter.
customResourceNamestringGets the name of the corresponding resource in Kubernetes.
extendedLocationobjectGets or sets the extended location.
fqdnstringGets or sets the FQDN/IPAddress of the vCenter. Required.
instanceUuidstringGets or sets the instance UUID of the vCenter.
kindstringMetadata 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.
locationstringGets or sets the location. Required.
portintegerGets or sets the port of the vCenter.
provisioningStatestringGets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
statusesarrayThe resource status information.
systemDataobjectThe system data.
tagsobjectGets or sets the Resource tags.
typestringGets or sets the type of the resource.
uuidstringGets or sets a unique identifier for this resource.
versionstringGets or sets the version of the vCenter.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, vcenter_name, subscription_idGets a vCenter. Implements vCenter GET method.
list_by_resource_groupselectresource_group_name, subscription_idImplements GET vCenters in a resource group. List of vCenters in a resource group.
listselectsubscription_idImplements GET vCenters in a subscription. List of vCenters in a subscription.
createinsertresource_group_name, vcenter_name, subscription_id, location, propertiesImplements vCenter PUT method. Create Or Update vCenter.
updateupdateresource_group_name, vcenter_name, subscription_idUpdates a vCenter. API to update certain properties of the vCenter resource.
deletedeleteresource_group_name, vcenter_name, subscription_idforceDeletes an vCenter. Implements vCenter DELETE method.

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
resource_group_namestringThe Resource Group Name. Required.
subscription_idstring
vcenter_namestringName of the vCenter. Required.
forcebooleanWhether force delete was specified. Default value is None.

SELECT examples

Gets a vCenter. Implements vCenter GET method.

SELECT
id,
name,
connectionStatus,
credentials,
customResourceName,
extendedLocation,
fqdn,
instanceUuid,
kind,
location,
port,
provisioningState,
statuses,
systemData,
tags,
type,
uuid,
version
FROM azure_isv.connectedvmware.v_centers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vcenter_name = '{{ vcenter_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements vCenter PUT method. Create Or Update vCenter.

INSERT INTO azure_isv.connectedvmware.v_centers (
location,
extendedLocation,
tags,
kind,
properties,
resource_group_name,
vcenter_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ extendedLocation }}',
'{{ tags }}',
'{{ kind }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ vcenter_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a vCenter. API to update certain properties of the vCenter resource.

UPDATE azure_isv.connectedvmware.v_centers
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vcenter_name = '{{ vcenter_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes an vCenter. Implements vCenter DELETE method.

DELETE FROM azure_isv.connectedvmware.v_centers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND vcenter_name = '{{ vcenter_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;