Skip to main content

inventory_items

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

Overview

Nameinventory_items
TypeResource
Idazure_isv.connected_vsphere.inventory_items

Fields

NameDatatypeDescription
inventoryItemNametextfield from the properties object
inventory_typetextfield from the properties object
kindtextMetadata 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.
managed_resource_idtextfield from the properties object
mo_nametextfield from the properties object
mo_ref_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
vcenterNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinventoryItemName, resourceGroupName, subscriptionId, vcenterNameImplements InventoryItem GET method.
list_by_v_centerSELECTresourceGroupName, subscriptionId, vcenterNameReturns the list of inventoryItems of the given vCenter.
createINSERTinventoryItemName, resourceGroupName, subscriptionId, vcenterName, data__propertiesCreate Or Update InventoryItem.
deleteDELETEinventoryItemName, resourceGroupName, subscriptionId, vcenterNameImplements inventoryItem DELETE method.

SELECT examples

Returns the list of inventoryItems of the given vCenter.

SELECT
inventoryItemName,
inventory_type,
kind,
managed_resource_id,
mo_name,
mo_ref_id,
provisioning_state,
resourceGroupName,
subscriptionId,
vcenterName
FROM azure_isv.connected_vsphere.vw_inventory_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';

INSERT example

Use the following StackQL query and manifest file to create a new inventory_items resource.

/*+ create */
INSERT INTO azure_isv.connected_vsphere.inventory_items (
inventoryItemName,
resourceGroupName,
subscriptionId,
vcenterName,
data__properties,
properties,
kind
)
SELECT
'{{ inventoryItemName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vcenterName }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ kind }}'
;

DELETE example

Deletes the specified inventory_items resource.

/*+ delete */
DELETE FROM azure_isv.connected_vsphere.inventory_items
WHERE inventoryItemName = '{{ inventoryItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';