ServiceLinkerExtensions.GetLinkerResource Method

Definition

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.

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

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

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
public static Azure.Response<Azure.ResourceManager.ServiceLinker.LinkerResource> GetLinkerResource (this Azure.ResourceManager.ArmResource armResource, string linkerName, System.Threading.CancellationToken cancellationToken = default);
static member GetLinkerResource : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ServiceLinker.LinkerResource>
<Extension()>
Public Function GetLinkerResource (armResource As ArmResource, linkerName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LinkerResource)

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

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
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);
static member GetLinkerResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ServiceLinker.LinkerResource>
<Extension()>
Public Function GetLinkerResource (client As ArmClient, scope As ResourceIdentifier, linkerName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LinkerResource)

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