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.

C#
public static Azure.ResourceManager.GraphServices.GraphServicesAccountResource GetGraphServicesAccountResource(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 GraphServicesAccountResource object.

Exceptions

client is null.

Applies to

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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
C#
public static Azure.Response<Azure.ResourceManager.GraphServices.GraphServicesAccountResource> GetGraphServicesAccountResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest