Aracılığıyla paylaş


CloudServiceRoleInstanceCollection.GetAllAsync Method

Definition

Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances
  • Operation Id: CloudServiceRoleInstances_List
  • Default Api Version: 2022-09-04
  • Resource: CloudServiceRoleInstanceResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource> GetAllAsync (Azure.ResourceManager.Compute.Models.InstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource>
override this.GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource>
Public Overridable Function GetAllAsync (Optional expand As Nullable(Of InstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CloudServiceRoleInstanceResource)

Parameters

expand
Nullable<InstanceViewType>

The expand expression to apply to the operation. 'UserData' is not supported for cloud services.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of CloudServiceRoleInstanceResource that may take multiple service requests to iterate over.

Applies to