Skip to main content

inventory_items

Creates, updates, deletes, gets or lists an inventory_items resource.

Overview

Nameinventory_items
TypeResource
Idazure_isv.connectedvmware.inventory_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
inventoryTypestringThey inventory type. Required. Known values are: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", and "Host".
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.
managedResourceIdstringGets or sets the tracked resource id corresponding to the inventory resource.
moNamestringGets or sets the vCenter Managed Object name for the inventory item.
moRefIdstringGets or sets the MoRef (Managed Object Reference) ID for the inventory item.
provisioningStatestringGets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
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, vcenter_name, inventory_item_name, subscription_idGets InventoryItem. Implements InventoryItem GET method.
list_by_v_centerselectresource_group_name, vcenter_name, subscription_idImplements GET inventoryItems in a vCenter. Returns the list of inventoryItems of the given vCenter.
createinsertresource_group_name, vcenter_name, inventory_item_name, subscription_id, propertiesImplements InventoryItem PUT method. Create Or Update InventoryItem.
deletedeleteresource_group_name, vcenter_name, inventory_item_name, subscription_idDeletes an inventoryItem. Implements inventoryItem 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
inventory_item_namestringName of the inventoryItem. Required.
resource_group_namestringThe Resource Group Name. Required.
subscription_idstring
vcenter_namestringName of the vCenter. Required.

SELECT examples

Gets InventoryItem. Implements InventoryItem GET method.

SELECT
id,
name,
inventoryType,
kind,
managedResourceId,
moName,
moRefId,
provisioningState,
systemData,
type
FROM azure_isv.connectedvmware.inventory_items
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vcenter_name = '{{ vcenter_name }}' -- required
AND inventory_item_name = '{{ inventory_item_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements InventoryItem PUT method. Create Or Update InventoryItem.

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

DELETE examples

Deletes an inventoryItem. Implements inventoryItem DELETE method.

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