共用方式為


ElasticMonitorResource.UpdateVmCollectionAsync Method

Definition

Update the vm details that will be monitored by the Elastic monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/vmCollectionUpdate
  • Operation Id: VMCollection_Update
  • Default Api Version: 2024-03-01
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateVmCollectionAsync (Azure.ResourceManager.Elastic.Models.VmCollectionContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateVmCollectionAsync : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateVmCollectionAsync : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateVmCollectionAsync (Optional content As VmCollectionContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

content
VmCollectionContent

VM resource Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to