MockableHybridConnectivityArmClient.GetPublicCloudInventory Method

Definition

Get a InventoryResource.

public virtual Azure.Response<Azure.ResourceManager.HybridConnectivity.PublicCloudInventoryResource> GetPublicCloudInventory(Azure.Core.ResourceIdentifier scope, string inventoryId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPublicCloudInventory : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.HybridConnectivity.PublicCloudInventoryResource>
override this.GetPublicCloudInventory : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.HybridConnectivity.PublicCloudInventoryResource>
Public Overridable Function GetPublicCloudInventory (scope As ResourceIdentifier, inventoryId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PublicCloudInventoryResource)

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

inventoryId
String

Inventory resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

inventoryId is null.

inventoryId is an empty string, and was expected to be non-empty.

Applies to