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

CloudServiceRoleInstancesOperationsExtensions.List 方法

定义

获取云服务中所有角色实例的列表。 在响应中使用 nextLink 属性获取角色实例的下一页。 执行此操作,直到 nextLink 为 null 可提取所有角色实例。

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.RoleInstance> List (this Microsoft.Azure.Management.Compute.ICloudServiceRoleInstancesOperations operations, string resourceGroupName, string cloudServiceName, Microsoft.Azure.Management.Compute.Models.InstanceViewTypes? expand = default);
static member List : Microsoft.Azure.Management.Compute.ICloudServiceRoleInstancesOperations * string * string * Nullable<Microsoft.Azure.Management.Compute.Models.InstanceViewTypes> -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.RoleInstance>
<Extension()>
Public Function List (operations As ICloudServiceRoleInstancesOperations, resourceGroupName As String, cloudServiceName As String, Optional expand As Nullable(Of InstanceViewTypes) = Nothing) As IPage(Of RoleInstance)

参数

operations
ICloudServiceRoleInstancesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

cloudServiceName
String

云服务的名称。

expand
Nullable<InstanceViewTypes>

要应用于操作的 expand 表达式。 云服务不支持“UserData”。 可能的值包括:“instanceView”、“userData”

返回

适用于