Skip to main content

hosts

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

Overview

Namehosts
TypeResource
Idazure_isv.avs.hosts

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.
displayNamestringDisplay name of the host in VMware vCenter.
faultDomainstring:vartype fault_domain: str
fqdnstringFully qualified domain name of the host.
kindstringThe kind of host. Required. Known values are: "General" and "Specialized".
maintenancestringIf provided, the host is in maintenance. The value is the reason for maintenance. Known values are: "Replacement" and "Upgrade". (Replacement, Upgrade)
moRefIdstringvCenter managed object reference ID of the host.
provisioningStatestringThe state of the host provisioning. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
skuobjectThe SKU (Stock Keeping Unit) assigned to this resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, private_cloud_name, cluster_name, host_id, subscription_idGet a Host.
listselectresource_group_name, private_cloud_name, cluster_name, subscription_idList Host resources by Cluster.

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
cluster_namestringName of the cluster. Required.
host_idstringThe host identifier. 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 Host.

SELECT
id,
name,
displayName,
faultDomain,
fqdn,
kind,
maintenance,
moRefId,
provisioningState,
sku,
systemData,
type,
zones
FROM azure_isv.avs.hosts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_cloud_name = '{{ private_cloud_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND host_id = '{{ host_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;