vcenters
Creates, updates, deletes, gets or lists a vcenters
resource.
Overview
Name | vcenters |
Type | Resource |
Id | azure_isv.connected_vsphere.vcenters |
Fields
- vw_vcenters
- vcenters
Name | Datatype | Description |
---|---|---|
id | text | Gets or sets the Id. |
name | text | Gets or sets the name. |
connection_status | text | field from the properties object |
credentials | text | field from the properties object |
custom_resource_name | text | field from the properties object |
extended_location | text | field from the properties object |
fqdn | text | field from the properties object |
instance_uuid | text | field from the properties object |
kind | text | Metadata 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. |
location | text | Gets or sets the location. |
port | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
statuses | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Gets or sets the Resource tags. |
type | text | Gets or sets the type of the resource. |
uuid | text | field from the properties object |
vcenterName | text | field from the properties object |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Gets or sets the Id. |
name | string | Gets or sets the name. |
extendedLocation | object | The extended location. |
kind | string | Metadata 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. |
location | string | Gets or sets the location. |
properties | object | Describes the properties of a VCenter. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Gets or sets the Resource tags. |
type | string | Gets or sets the type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, vcenterName | Implements vCenter GET method. |
list | SELECT | subscriptionId | List of vCenters in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List of vCenters in a resource group. |
create | INSERT | resourceGroupName, subscriptionId, vcenterName, data__location, data__properties | Create Or Update vCenter. |
delete | DELETE | resourceGroupName, subscriptionId, vcenterName | Implements vCenter DELETE method. |
update | UPDATE | resourceGroupName, subscriptionId, vcenterName | API to update certain properties of the vCenter resource. |
SELECT
examples
List of vCenters in a subscription.
- vw_vcenters
- vcenters
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 }}';
SELECT
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
FROM azure_isv.connected_vsphere.vcenters
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new vcenters
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: uuid
value: string
- name: fqdn
value: string
- name: port
value: integer
- name: version
value: string
- name: instanceUuid
value: string
- name: connectionStatus
value: string
- name: customResourceName
value: string
- name: credentials
value:
- name: username
value: string
- name: password
value: string
- name: statuses
value:
- - name: type
value: string
- name: status
value: string
- name: reason
value: string
- name: message
value: string
- name: severity
value: string
- name: lastUpdatedAt
value: string
- name: provisioningState
value: []
- name: location
value: string
- name: extendedLocation
value:
- name: type
value: string
- name: name
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: tags
value: object
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: kind
value: string
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 }}';