MonitorExtensions.GetMonitorWorkspaceResources 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
GetMonitorWorkspaceResources(ResourceGroupResource) |
Gets a collection of MonitorWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMonitorWorkspaceResources() instead. |
GetMonitorWorkspaceResources(SubscriptionResource, CancellationToken) |
Lists all workspaces in the specified subscription
|
GetMonitorWorkspaceResources(ResourceGroupResource)
- Source:
- MonitorExtensions.cs
- Source:
- MonitorExtensions.cs
Gets a collection of MonitorWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMonitorWorkspaceResources() instead.
public static Azure.ResourceManager.Monitor.MonitorWorkspaceResourceCollection GetMonitorWorkspaceResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMonitorWorkspaceResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.MonitorWorkspaceResourceCollection
<Extension()>
Public Function GetMonitorWorkspaceResources (resourceGroupResource As ResourceGroupResource) As MonitorWorkspaceResourceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of MonitorWorkspaceResources and their operations over a MonitorWorkspaceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetMonitorWorkspaceResources(SubscriptionResource, CancellationToken)
- Source:
- MonitorExtensions.cs
- Source:
- MonitorExtensions.cs
Lists all workspaces in the specified subscription
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Monitor/accounts
- Operation Id: AzureMonitorWorkspaces_ListBySubscription
- Default Api Version: 2023-10-01-preview
- Resource: MonitorWorkspaceResource
public static Azure.Pageable<Azure.ResourceManager.Monitor.MonitorWorkspaceResource> GetMonitorWorkspaceResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMonitorWorkspaceResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.MonitorWorkspaceResource>
<Extension()>
Public Function GetMonitorWorkspaceResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MonitorWorkspaceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MonitorWorkspaceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET