DefenderEasmExtensions.GetEasmWorkspaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetEasmWorkspaces(ResourceGroupResource) |
Gets a collection of EasmWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetEasmWorkspaces() instead. |
GetEasmWorkspaces(SubscriptionResource, CancellationToken) |
Returns a list of workspaces under the given subscription.
|
GetEasmWorkspaces(ResourceGroupResource)
- Source:
- DefenderEasmExtensions.cs
Gets a collection of EasmWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetEasmWorkspaces() instead.
public static Azure.ResourceManager.DefenderEasm.EasmWorkspaceCollection GetEasmWorkspaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetEasmWorkspaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DefenderEasm.EasmWorkspaceCollection
<Extension()>
Public Function GetEasmWorkspaces (resourceGroupResource As ResourceGroupResource) As EasmWorkspaceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of EasmWorkspaceResources and their operations over a EasmWorkspaceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetEasmWorkspaces(SubscriptionResource, CancellationToken)
- Source:
- DefenderEasmExtensions.cs
Returns a list of workspaces under the given subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Easm/workspaces
- Operation Id: Workspaces_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DefenderEasm.EasmWorkspaceResource> GetEasmWorkspaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEasmWorkspaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DefenderEasm.EasmWorkspaceResource>
<Extension()>
Public Function GetEasmWorkspaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EasmWorkspaceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of EasmWorkspaceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.