Skip to main content

inventory_items

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

Overview

Nameinventory_items
TypeResource
Idazure.system_center_vm_manager.inventory_items

Fields

NameDatatypeDescription
inventoryItemResourceNametextfield from the properties object
inventory_item_nametextfield 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
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
uuidtextfield from the properties object
vmmServerNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinventoryItemResourceName, resourceGroupName, subscriptionId, vmmServerNameShows an inventory item.
list_by_vmm_serverSELECTresourceGroupName, subscriptionId, vmmServerNameReturns the list of inventoryItems in the given VmmServer.
createINSERTinventoryItemResourceName, resourceGroupName, subscriptionId, vmmServerNameCreate Or Update InventoryItem.
deleteDELETEinventoryItemResourceName, resourceGroupName, subscriptionId, vmmServerNameDeletes an inventoryItem.

SELECT examples

Returns the list of inventoryItems in the given VmmServer.

SELECT
inventoryItemResourceName,
inventory_item_name,
inventory_type,
kind,
managed_resource_id,
provisioning_state,
resourceGroupName,
subscriptionId,
uuid,
vmmServerName
FROM azure.system_center_vm_manager.vw_inventory_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmmServerName = '{{ vmmServerName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.system_center_vm_manager.inventory_items (
inventoryItemResourceName,
resourceGroupName,
subscriptionId,
vmmServerName,
properties,
kind
)
SELECT
'{{ inventoryItemResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmmServerName }}',
'{{ properties }}',
'{{ kind }}'
;

DELETE example

Deletes the specified inventory_items resource.

/*+ delete */
DELETE FROM azure.system_center_vm_manager.inventory_items
WHERE inventoryItemResourceName = '{{ inventoryItemResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmmServerName = '{{ vmmServerName }}';