你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudServiceResource.GetUpdateDomainAsync(Int32, CancellationToken) Method

Definition

Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}
  • Operation Id: CloudServicesUpdateDomain_GetUpdateDomain
  • Default Api Version: 2022-09-04
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.UpdateDomainIdentifier>> GetUpdateDomainAsync (int updateDomain, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUpdateDomainAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.UpdateDomainIdentifier>>
override this.GetUpdateDomainAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.UpdateDomainIdentifier>>
Public Overridable Function GetUpdateDomainAsync (updateDomain As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UpdateDomainIdentifier))

Parameters

updateDomain
Int32

Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to