Partager via


ElasticExtensions.GetElasticMonitorResource Method

Definition

Overloads

GetElasticMonitorResource(ArmClient, ResourceIdentifier)

Gets an object representing an ElasticMonitorResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ElasticMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetElasticMonitorResource(ResourceIdentifier) instead.

GetElasticMonitorResource(ResourceGroupResource, String, CancellationToken)

Get the properties of a specific monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}
  • Operation Id: Monitors_Get
  • Default Api Version: 2024-06-15-preview
  • Resource: ElasticMonitorResource

GetElasticMonitorResource(ArmClient, ResourceIdentifier)

Source:
ElasticExtensions.cs
Source:
ElasticExtensions.cs

Gets an object representing an ElasticMonitorResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create an ElasticMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetElasticMonitorResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Elastic.ElasticMonitorResource GetElasticMonitorResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetElasticMonitorResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Elastic.ElasticMonitorResource
<Extension()>
Public Function GetElasticMonitorResource (client As ArmClient, id As ResourceIdentifier) As ElasticMonitorResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ElasticMonitorResource object.

Exceptions

client is null.

Applies to

GetElasticMonitorResource(ResourceGroupResource, String, CancellationToken)

Source:
ElasticExtensions.cs

Get the properties of a specific monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}
  • Operation Id: Monitors_Get
  • Default Api Version: 2024-06-15-preview
  • Resource: ElasticMonitorResource
public static Azure.Response<Azure.ResourceManager.Elastic.ElasticMonitorResource> GetElasticMonitorResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string monitorName, System.Threading.CancellationToken cancellationToken = default);
static member GetElasticMonitorResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Elastic.ElasticMonitorResource>
<Extension()>
Public Function GetElasticMonitorResource (resourceGroupResource As ResourceGroupResource, monitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ElasticMonitorResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

monitorName
String

Monitor resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or monitorName is null.

monitorName is an empty string, and was expected to be non-empty.

Applies to