DiagnosticSettingCollection Class

Definition

A class representing a collection of DiagnosticSettingResource and their operations. Each DiagnosticSettingResource in the collection will belong to the same instance of ArmResource. To get a DiagnosticSettingCollection instance call the GetDiagnosticSettings method from an instance of ArmResource.

public class DiagnosticSettingCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Monitor.DiagnosticSettingResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.DiagnosticSettingResource>
type DiagnosticSettingCollection = class
    inherit ArmCollection
    interface seq<DiagnosticSettingResource>
    interface IEnumerable
    interface IAsyncEnumerable<DiagnosticSettingResource>
Public Class DiagnosticSettingCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of DiagnosticSettingResource), IEnumerable(Of DiagnosticSettingResource)
Inheritance
DiagnosticSettingCollection
Implements

Constructors

DiagnosticSettingCollection()

Initializes a new instance of the DiagnosticSettingCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, DiagnosticSettingData, CancellationToken)

Creates or updates diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_CreateOrUpdate
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
CreateOrUpdateAsync(WaitUntil, String, DiagnosticSettingData, CancellationToken)

Creates or updates diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_CreateOrUpdate
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
Get(String, CancellationToken)

Gets the active diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetAll(CancellationToken)

Gets the active diagnostic settings list for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings
  • Operation Id: DiagnosticSettings_List
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetAllAsync(CancellationToken)

Gets the active diagnostic settings list for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings
  • Operation Id: DiagnosticSettings_List
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetAsync(String, CancellationToken)

Gets the active diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<DiagnosticSettingResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DiagnosticSettingResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to