ServiceLinkerExtensions.GetLinkerResource Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

GetLinkerResource(ArmClient, ResourceIdentifier)

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

GetLinkerResource(ArmResource, String, CancellationToken)

Returns Linker resource for a given name.

  • Request Path: /{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}
  • Operation Id: Linker_Get
GetLinkerResource(ArmClient, ResourceIdentifier, String, CancellationToken)

Returns Linker resource for a given name.

  • Request Path: /{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}
  • Operation Id: Linker_Get

GetLinkerResource(ArmClient, ResourceIdentifier)

Source:
ServiceLinkerExtensions.cs
Source:
ServiceLinkerExtensions.cs

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

C#
public static Azure.ResourceManager.ServiceLinker.LinkerResource GetLinkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a LinkerResource object.

Exceptions

client is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetLinkerResource(ArmResource, String, CancellationToken)

Source:
ServiceLinkerExtensions.cs
Source:
ServiceLinkerExtensions.cs

Returns Linker resource for a given name.

  • Request Path: /{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}
  • Operation Id: Linker_Get
C#
public static Azure.Response<Azure.ResourceManager.ServiceLinker.LinkerResource> GetLinkerResource(this Azure.ResourceManager.ArmResource armResource, string linkerName, System.Threading.CancellationToken cancellationToken = default);

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

linkerName
String

The name Linker resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

armResource or linkerName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetLinkerResource(ArmClient, ResourceIdentifier, String, CancellationToken)

Source:
ServiceLinkerExtensions.cs
Source:
ServiceLinkerExtensions.cs

Returns Linker resource for a given name.

  • Request Path: /{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}
  • Operation Id: Linker_Get
C#
public static Azure.Response<Azure.ResourceManager.ServiceLinker.LinkerResource> GetLinkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string linkerName, System.Threading.CancellationToken cancellationToken = default);

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

linkerName
String

The name Linker resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client or linkerName is null.

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview