CloudServiceRoleInstanceCollection.GetAll 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.
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.Pageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource> GetAll (Azure.ResourceManager.Compute.Models.InstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource>
override this.GetAll : Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CloudServiceRoleInstanceResource>
Public Overridable Function GetAll (Optional expand As Nullable(Of InstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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
A collection of CloudServiceRoleInstanceResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET