Skip to main content

inventory_items

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

Overview

Nameinventory_items
TypeResource
Idazure_isv.connected_vsphere.inventory_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
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.
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, vcenterName, inventoryItemNameapi-versionImplements InventoryItem GET method.
list_by_v_centerselectsubscriptionId, resourceGroupName, vcenterNameapi-versionReturns the list of inventoryItems of the given vCenter.
createinsertsubscriptionId, resourceGroupName, vcenterName, inventoryItemName, data__propertiesapi-versionCreate Or Update InventoryItem.
deletedeletesubscriptionId, resourceGroupName, vcenterName, inventoryItemNameapi-versionImplements 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
inventoryItemNamestringName of the inventoryItem.
resourceGroupNamestringThe Resource Group Name.
subscriptionIdstringThe Subscription ID.
vcenterNamestringName of the vCenter.
api-versionstringClient Api Version.

SELECT examples

Implements InventoryItem GET method.

SELECT
kind,
properties
FROM azure_isv.connected_vsphere.inventory_items
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vcenterName = '{{ vcenterName }}' -- required
AND inventoryItemName = '{{ inventoryItemName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create Or Update InventoryItem.

INSERT INTO azure_isv.connected_vsphere.inventory_items (
data__properties,
data__kind,
subscriptionId,
resourceGroupName,
vcenterName,
inventoryItemName,
api-version
)
SELECT
'{{ properties }}' /* required */,
'{{ kind }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ vcenterName }}',
'{{ inventoryItemName }}',
'{{ api-version }}'
RETURNING
kind,
properties
;

DELETE examples

Implements inventoryItem DELETE method.

DELETE FROM azure_isv.connected_vsphere.inventory_items
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND vcenterName = '{{ vcenterName }}' --required
AND inventoryItemName = '{{ inventoryItemName }}' --required
AND api-version = '{{ api-version }}'
;