다음을 통해 공유


MonitorExtensions.GetDataCollectionEndpoints Method

Definition

Overloads

GetDataCollectionEndpoints(ResourceGroupResource)

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

GetDataCollectionEndpoints(SubscriptionResource, CancellationToken)

Lists all data collection endpoints in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints
  • Operation Id: DataCollectionEndpoints_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource

GetDataCollectionEndpoints(ResourceGroupResource)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

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

public static Azure.ResourceManager.Monitor.DataCollectionEndpointCollection GetDataCollectionEndpoints (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDataCollectionEndpoints : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.DataCollectionEndpointCollection
<Extension()>
Public Function GetDataCollectionEndpoints (resourceGroupResource As ResourceGroupResource) As DataCollectionEndpointCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DataCollectionEndpointResources and their operations over a DataCollectionEndpointResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDataCollectionEndpoints(SubscriptionResource, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Lists all data collection endpoints in the specified subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints
  • Operation Id: DataCollectionEndpoints_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
public static Azure.Pageable<Azure.ResourceManager.Monitor.DataCollectionEndpointResource> GetDataCollectionEndpoints (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDataCollectionEndpoints : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>
<Extension()>
Public Function GetDataCollectionEndpoints (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataCollectionEndpointResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to