IHealthMonitorsOperations.ListWithHttpMessagesAsync 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.
Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitor>>> ListWithHttpMessagesAsync (string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter = default, string expand = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * string * string * string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitor>>>
Public Function ListWithHttpMessagesAsync (subscriptionId As String, resourceGroupName As String, providerName As String, resourceCollectionName As String, resourceName As String, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of HealthMonitor)))
Parameters
- subscriptionId
- String
The subscription Id of the virtual machine.
- resourceGroupName
- String
The resource group of the virtual machine.
- providerName
- String
The provider name (ex: Microsoft.Compute for virtual machines).
- resourceCollectionName
- String
The resource collection name (ex: virtualMachines for virtual machines).
- resourceName
- String
The name of the virtual machine.
- filter
- String
Optionally filter by monitor name. Example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb.'
- expand
- String
Optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.
- customHeaders
- Dictionary<String,List<String>>
The headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
Thrown when the operation returned an invalid status code
Thrown when unable to deserialize the response
Thrown when a required parameter is null
Applies to
Azure SDK for .NET