重置并修复异常集群。
接口说明
仅当集群状态为 exception(异常)时,才能调用该接口重置并修复集群。您可以通过调用 ListClusters 获取集群 ID 及集群状态。 建议您操作前导出所有作业数据。重置并修复集群会有以下影响:
集群所有节点执行更换系统盘的操作,按创建集群时的配置重新配置系统盘。
集群所有节点的系统盘和数据盘的数据将会丢失,包括用户信息、作业信息、调度器队列信息、自动伸缩队列配置信息,但文件存储 NAS 上的数据仍然保留。
集群自建队列被清除,节点实例继续保留,并全部迁移到集群默认队列中。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ehpc:RecoverCluster |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
指定重置并修复的集群 ID。并且,集群状态必须为 exception(异常)时才能修复。 您可以通过调用 ListClusters 获取集群 ID 及集群状态。 |
ehpc-hz-FYUr32**** |
| OsTag |
string |
否 |
操作系统镜像标签。 您可以通过 ListImages 和 ListCustomImages 查询 E-HPC 支持的镜像标签。 |
CentOS_7.2_64 |
| AccountType |
string |
否 |
账户服务类型。取值范围:
默认值:nis |
nis |
| SchedulerType |
string |
否 |
调度服务器类型。取值范围:
默认值:pbs |
pbs |
| ImageOwnerAlias |
string |
否 |
镜像类型。取值范围:
默认值:system |
system |
| ImageId |
string |
否 |
镜像 ID。 您可以通过 ListImages 和 ListCustomImages 查询 E-HPC 可安装的镜像。 |
m-bp18133n0335yq**** |
| ClientVersion |
string |
否 |
集群所使用的客户端版本号,默认为最新版本。 您可以调用 ListCurrentClientVersion 查询当前最新客户端版本号。 |
1.0.76 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| TaskId |
string |
任务 ID。 |
18FB21E3-F423-4B84-BB63-D8887A29**** |
| RequestId |
string |
请求 ID。 |
18FB21E3-F423-4B84-BB63-D8887A29**** |
示例
正常返回示例
JSON格式
{
"TaskId": "18FB21E3-F423-4B84-BB63-D8887A29****",
"RequestId": "18FB21E3-F423-4B84-BB63-D8887A29****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的参数 %s 无效。 |
| 400 | InDebt | Your account has overdue payments. | 您的账户已欠费 |
| 400 | OrderError.InsufficientBalance | The account balance is insufficient. Please add funds first and try again. | 账户已欠费,请您先充值后再重试。 |
| 400 | OrderError.InstHasUnpaidOrder | Your account has an unpaid order. | 账户存在未支付订单,请您先支付后再重试。 |
| 400 | OrderError.Arrearage | Your account balance is less than CNY 100. Please add funds to your account and try again. | 账户余额不足100元,请您先充值后再重试。 |
| 400 | OrderError.NoCard | No credit card is bound to your account. | 未绑定卡,请您先绑定后再重试。 |
| 400 | OrderError.InvalidPayMethod | No valid default payment method is specified for your account. | 没有有效的默认支付方式,请您查看支付方式是否正确。 |
| 400 | OrderError.NoRealNameAuthentication | You have not completed the real name authentication. | 未完成实名验证,请您先进行实名认证后重试。 |
| 400 | OrderError.NoRealNameRegistration | Real name registration is required for instances launched in mainland China. | 国际站用户购买中国内地地域云产品,未完成实名注册。 |
| 400 | OrderError.UserProfileIncomplete | You have not completed your user profile. | 国际站用户未完善个人信息。 |
| 400 | InvalidVpc | The specified VPC is invalid. | VPC信息无效,请您检查该参数是否正确。 |
| 400 | InvalidVolume | The specified volume is invalid. | 存储卷无效,请您检查该参数是否正确。 |
| 400 | InvalidSoftware | The specified software is not supported. | 请求的软件不支持 |
| 400 | InvalidVolumeProtocal | The specified volume protocol is invalid. | 存储协议无效,请您检查该参数是否正确。 |
| 400 | InvalidVolumeMountpoint | The specified volume mount point is invalid. | 挂载点无效,请您检查该参数是否正确。 |
| 500 | UnknownError | An unknown error occurred. | 未知错误 |
| 403 | TooManyClusters | The number of user clusters exceeds the quota. | 用户集群数量超过配额限制,如需更多,请参考产品使用限制文档的方式提升配额。 |
| 403 | TooManyComputes | The number of computing nodes exceeds the quota. | 计算节点数超过用户配额 |
| 403 | TooManyLogins | The maximum number of logged on nodes is exceeded. | 登录节点数超过配额,默认不超过2个。如需更多,请参考使用限制文档中的提升配额方式。 |
| 403 | TooManyScc | The maximum number of SCC instances is exceeded. | SCC实例数量超过配额,默认不超过15个。如需更多,请参考使用限制文档中的提升配额方式。 |
| 403 | QuotaExceeded.PrivateIpAddress | Insufficient private IP addresses in vSwitch: %s. | vSwitch可用私网IP不足量: %s |
| 403 | ConflictOpt | A conflicting operation is running. | 有冲突的操作在执行中,请您稍后再试。 |
| 403 | ImageNotSupported | The specified image is not supported. | 暂不支持所选的镜像,请您更换镜像后重试。 |
| 404 | ImageNotFound | The specified image does not exist. | 指定的镜像不存在,请您检查该参数是否正确。 |
| 404 | VolumeNotFound | The specified volume does not exist. | 指定的存储不存在,请您检查该参数是否正确。 |
| 404 | VpcNotFound | The specified VPC does not exist. | 指定的VPC不存在,请您检查该参数是否正确。 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的集群不存在,请您检查该参数是否正确。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API调用出错. %s |
| 406 | NasError | NAS API request failed. | NAS接口请求失败 |
| 406 | EipError | The EIP API request failed. | 请求弹性IP失败 |
| 406 | OrderError | An order request error occurred. | 订单请求失败 |
| 406 | FailToGenId | Generating cluster ID failed. | |
| 406 | DbError | A database service error occurred. | 数据库请求失败 |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里云产品错误。%s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | 此请求未获得RAM授权 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。