你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CloudServiceRoleInstances interface
表示 CloudServiceRoleInstances 的接口。
方法
方法详细信息
beginDelete(string, string, string, CloudServiceRoleInstancesDeleteOptionalParams)
从云服务中删除角色实例。
function beginDelete(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, CloudServiceRoleInstancesDeleteOptionalParams)
从云服务中删除角色实例。
function beginDeleteAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise<void>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginRebuild(string, string, string, CloudServiceRoleInstancesRebuildOptionalParams)
重新生成角色实例异步操作在 Web 角色或辅助角色实例上重新安装操作系统,并初始化它们使用的存储资源。 如果不想初始化存储资源,可以使用“重置角色实例”映像。
function beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginRebuildAndWait(string, string, string, CloudServiceRoleInstancesRebuildOptionalParams)
重新生成角色实例异步操作在 Web 角色或辅助角色实例上重新安装操作系统,并初始化它们使用的存储资源。 如果不想初始化存储资源,可以使用“重置角色实例”映像。
function beginRebuildAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise<void>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginReimage(string, string, string, CloudServiceRoleInstancesReimageOptionalParams)
“重置角色实例”异步操作在 Web 角色或辅助角色实例上重新安装操作系统。
function beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginReimageAndWait(string, string, string, CloudServiceRoleInstancesReimageOptionalParams)
“重置角色实例”异步操作在 Web 角色或辅助角色实例上重新安装操作系统。
function beginReimageAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise<void>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginRestart(string, string, string, CloudServiceRoleInstancesRestartOptionalParams)
重新启动角色实例异步操作请求重新启动云服务中的角色实例。
function beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginRestartAndWait(string, string, string, CloudServiceRoleInstancesRestartOptionalParams)
重新启动角色实例异步操作请求重新启动云服务中的角色实例。
function beginRestartAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise<void>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
get(string, string, string, CloudServiceRoleInstancesGetOptionalParams)
从云服务获取角色实例。
function get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetOptionalParams): Promise<RoleInstance>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<RoleInstance>
getInstanceView(string, string, string, CloudServiceRoleInstancesGetInstanceViewOptionalParams)
检索有关云服务中角色实例的运行时状态的信息。
function getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams): Promise<RoleInstanceView>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<RoleInstanceView>
getRemoteDesktopFile(string, string, string, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams)
获取云服务中角色实例的远程桌面文件。
function getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams): Promise<CloudServiceRoleInstancesGetRemoteDesktopFileResponse>
参数
- roleInstanceName
-
string
角色实例的名称。
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
返回
list(string, string, CloudServiceRoleInstancesListOptionalParams)
获取云服务中所有角色实例的列表。 在响应中使用 nextLink 属性获取角色实例的下一页。 执行此操作,直到 nextLink 为 null 以提取所有角色实例。
function list(resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesListOptionalParams): PagedAsyncIterableIterator<RoleInstance, RoleInstance[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。