Share via


ManagedNetworkFabricExtensions.GetNetworkDeviceResource Method

Definition

Gets an object representing a NetworkDeviceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a NetworkDeviceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetNetworkDeviceResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource GetNetworkDeviceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetNetworkDeviceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceResource
<Extension()>
Public Function GetNetworkDeviceResource (client As ArmClient, id As ResourceIdentifier) As NetworkDeviceResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a NetworkDeviceResource object.

Exceptions

client is null.

Applies to