Share via


DataShareExtensions.GetDataShareAccounts Method

Definition

Overloads

GetDataShareAccounts(ResourceGroupResource)

Gets a collection of DataShareAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataShareAccounts() instead.

GetDataShareAccounts(SubscriptionResource, String, CancellationToken)

List Accounts in Subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts
  • Operation Id: Accounts_ListBySubscription

GetDataShareAccounts(ResourceGroupResource)

Source:
DataShareExtensions.cs
Source:
DataShareExtensions.cs

Gets a collection of DataShareAccountResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataShareAccounts() instead.

public static Azure.ResourceManager.DataShare.DataShareAccountCollection GetDataShareAccounts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDataShareAccounts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataShare.DataShareAccountCollection
<Extension()>
Public Function GetDataShareAccounts (resourceGroupResource As ResourceGroupResource) As DataShareAccountCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DataShareAccountResources and their operations over a DataShareAccountResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDataShareAccounts(SubscriptionResource, String, CancellationToken)

Source:
DataShareExtensions.cs
Source:
DataShareExtensions.cs

List Accounts in Subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts
  • Operation Id: Accounts_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DataShare.DataShareAccountResource> GetDataShareAccounts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDataShareAccounts : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataShare.DataShareAccountResource>
<Extension()>
Public Function GetDataShareAccounts (subscriptionResource As SubscriptionResource, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataShareAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

skipToken
String

Continuation token.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DataShareAccountResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to