CloudServices interface
表示 CloudServices 的接口。
方法
方法详细信息
beginCreateOrUpdate(string, string, CloudServicesCreateOrUpdateOptionalParams)
创建或更新云服务。 请注意,某些属性只能在创建云服务期间设置。
function beginCreateOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudService>, CloudService>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<CloudService>, CloudService>>
beginCreateOrUpdateAndWait(string, string, CloudServicesCreateOrUpdateOptionalParams)
创建或更新云服务。 请注意,某些属性只能在创建云服务期间设置。
function beginCreateOrUpdateAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesCreateOrUpdateOptionalParams): Promise<CloudService>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<CloudService>
beginDelete(string, string, CloudServicesDeleteOptionalParams)
删除云服务。
function beginDelete(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, CloudServicesDeleteOptionalParams)
删除云服务。
function beginDeleteAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginDeleteInstances(string, string, CloudServicesDeleteInstancesOptionalParams)
删除云服务中的角色实例。
function beginDeleteInstances(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteInstancesAndWait(string, string, CloudServicesDeleteInstancesOptionalParams)
删除云服务中的角色实例。
function beginDeleteInstancesAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesDeleteInstancesOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginPowerOff(string, string, CloudServicesPowerOffOptionalParams)
关闭云服务。 请注意,资源仍附加,并且需要为资源付费。
function beginPowerOff(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginPowerOffAndWait(string, string, CloudServicesPowerOffOptionalParams)
关闭云服务。 请注意,资源仍附加,并且需要为资源付费。
function beginPowerOffAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesPowerOffOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginRebuild(string, string, CloudServicesRebuildOptionalParams)
重新生成角色实例会在 Web 角色或辅助角色的实例上重新安装作系统,并初始化它们使用的存储资源。 如果不想初始化存储资源,可以使用“重置映像角色实例”。
function beginRebuild(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginRebuildAndWait(string, string, CloudServicesRebuildOptionalParams)
重新生成角色实例会在 Web 角色或辅助角色的实例上重新安装作系统,并初始化它们使用的存储资源。 如果不想初始化存储资源,可以使用“重置映像角色实例”。
function beginRebuildAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRebuildOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginReimage(string, string, CloudServicesReimageOptionalParams)
重置映像异步作会在 Web 角色或辅助角色的实例上重新安装作系统。
function beginReimage(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginReimageAndWait(string, string, CloudServicesReimageOptionalParams)
重置映像异步作会在 Web 角色或辅助角色的实例上重新安装作系统。
function beginReimageAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesReimageOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginRestart(string, string, CloudServicesRestartOptionalParams)
重启云服务中的一个或多个角色实例。
function beginRestart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginRestartAndWait(string, string, CloudServicesRestartOptionalParams)
重启云服务中的一个或多个角色实例。
function beginRestartAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesRestartOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<void>
beginStart(string, string, CloudServicesStartOptionalParams)
启动云服务。
function beginStart(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
- options
- CloudServicesStartOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginStartAndWait(string, string, CloudServicesStartOptionalParams)
启动云服务。
function beginStartAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesStartOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
- options
- CloudServicesStartOptionalParams
选项参数。
返回
Promise<void>
beginUpdate(string, string, CloudServicesUpdateOptionalParams)
更新云服务。
function beginUpdate(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudService>, CloudService>>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<CloudService>, CloudService>>
beginUpdateAndWait(string, string, CloudServicesUpdateOptionalParams)
更新云服务。
function beginUpdateAndWait(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateOptionalParams): Promise<CloudService>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<CloudService>
get(string, string, CloudServicesGetOptionalParams)
显示有关云服务的信息。
function get(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesGetOptionalParams): Promise<CloudService>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
- options
- CloudServicesGetOptionalParams
选项参数。
返回
Promise<CloudService>
getInstanceView(string, string, CloudServicesGetInstanceViewOptionalParams)
获取云服务的状态。
function getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesGetInstanceViewOptionalParams): Promise<CloudServiceInstanceView>
参数
- resourceGroupName
-
string
资源组的名称。
- cloudServiceName
-
string
云服务的名称。
选项参数。
返回
Promise<CloudServiceInstanceView>
list(string, CloudServicesListOptionalParams)
获取资源组下的所有云服务的列表。 在响应中使用 nextLink 属性获取云服务的下一页。 执行此作,直到 nextLink 为 null 以提取所有云服务。
function list(resourceGroupName: string, options?: CloudServicesListOptionalParams): PagedAsyncIterableIterator<CloudService, CloudService[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。
- options
- CloudServicesListOptionalParams
选项参数。
返回
listAll(CloudServicesListAllOptionalParams)
获取订阅中所有云服务的列表,而不考虑关联的资源组。 在响应中使用 nextLink 属性获取云服务的下一页。 执行此作,直到 nextLink 为 null 以提取所有云服务。
function listAll(options?: CloudServicesListAllOptionalParams): PagedAsyncIterableIterator<CloudService, CloudService[], PageSettings>
参数
选项参数。