共用方式為


DefenderEasmExtensions.GetEasmWorkspacesAsync Method

Definition

Returns a list of workspaces under the given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Easm/workspaces
  • Operation Id: Workspaces_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.DefenderEasm.EasmWorkspaceResource> GetEasmWorkspacesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEasmWorkspacesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DefenderEasm.EasmWorkspaceResource>
<Extension()>
Public Function GetEasmWorkspacesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of EasmWorkspaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of EasmWorkspaceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to