Skip to main content

inventory

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

Overview

Nameinventory
TypeResource
Idazure.hybrid_connectivity.inventory

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.
azureResourceIdstringGets or sets the mapped azure resource id.
cloudNativeResourceIdstringGets or sets the cloud native resource name.
cloudNativeTypestringGets or sets the cloud native resource type. "ec2" (ec2)
provisioningStatestringThe resource provisioning state. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
statusstringGets or sets the status of the inventory. Known values are: "New", "InProgress", "Completed", and "Failed". (New, InProgress, Completed, Failed)
statusDetailsstringGets or sets the status details.
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_uri, solution_configuration, inventory_idGet a InventoryResource.
list_by_solution_configurationselectresource_uri, solution_configurationList InventoryResource resources by SolutionConfiguration.

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_idstringInventory resource. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.
solution_configurationstringRepresent Solution Configuration Resource. Required.

SELECT examples

Get a InventoryResource.

SELECT
id,
name,
azureResourceId,
cloudNativeResourceId,
cloudNativeType,
provisioningState,
status,
statusDetails,
systemData,
type
FROM azure.hybrid_connectivity.inventory
WHERE resource_uri = '{{ resource_uri }}' -- required
AND solution_configuration = '{{ solution_configuration }}' -- required
AND inventory_id = '{{ inventory_id }}' -- required
;