Share via


GraphServicesExtensions.GetGraphServicesAccountResource Method

Definition

Overloads

GetGraphServicesAccountResource(ArmClient, ResourceIdentifier)

Gets an object representing a GraphServicesAccountResource 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 GraphServicesAccountResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetGraphServicesAccountResource(ResourceIdentifier) instead.

GetGraphServicesAccountResource(ResourceGroupResource, String, CancellationToken)

Returns account resource for a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}
  • Operation Id: Accounts_Get

GetGraphServicesAccountResource(ArmClient, ResourceIdentifier)

Source:
GraphServicesExtensions.cs

Gets an object representing a GraphServicesAccountResource 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 GraphServicesAccountResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetGraphServicesAccountResource(ResourceIdentifier) instead.

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

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a GraphServicesAccountResource object.

Exceptions

client is null.

Applies to

GetGraphServicesAccountResource(ResourceGroupResource, String, CancellationToken)

Source:
GraphServicesExtensions.cs

Returns account resource for a given name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}
  • Operation Id: Accounts_Get
public static Azure.Response<Azure.ResourceManager.GraphServices.GraphServicesAccountResource> GetGraphServicesAccountResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetGraphServicesAccountResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.GraphServices.GraphServicesAccountResource>
<Extension()>
Public Function GetGraphServicesAccountResource (resourceGroupResource As ResourceGroupResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GraphServicesAccountResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceName
String

The name of the resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or resourceName is null.

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

Applies to