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