共用方式為


MediaExtensions.GetMediaServicesAccounts Method

Definition

Overloads

GetMediaServicesAccounts(ResourceGroupResource)

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

GetMediaServicesAccounts(SubscriptionResource, CancellationToken)

List Media Services accounts in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices
  • Operation Id: Mediaservices_ListBySubscription

GetMediaServicesAccounts(ResourceGroupResource)

Source:
MediaExtensions.cs
Source:
MediaExtensions.cs

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

public static Azure.ResourceManager.Media.MediaServicesAccountCollection GetMediaServicesAccounts (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMediaServicesAccounts : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Media.MediaServicesAccountCollection
<Extension()>
Public Function GetMediaServicesAccounts (resourceGroupResource As ResourceGroupResource) As MediaServicesAccountCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of MediaServicesAccountResources and their operations over a MediaServicesAccountResource.

Exceptions

resourceGroupResource is null.

Applies to

GetMediaServicesAccounts(SubscriptionResource, CancellationToken)

Source:
MediaExtensions.cs
Source:
MediaExtensions.cs

List Media Services accounts in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices
  • Operation Id: Mediaservices_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.Media.MediaServicesAccountResource> GetMediaServicesAccounts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMediaServicesAccounts : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Media.MediaServicesAccountResource>
<Extension()>
Public Function GetMediaServicesAccounts (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MediaServicesAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to