RestartClusterService
重启集群服务,前提是应用定义了restart_service
。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
cluster | String | 将要重启服务的集群ID | Yes |
role | String | 重启的集群角色 | No |
Response Elements
Name | Type | Description |
---|---|---|
action | String | 响应动作 |
cluster_id | String | 集群ID |
job_id | String | 执行任务的 Job ID |
ret_code | Integer | 执行成功与否,0 表示成功,其他值则为错误代码 |
Example
Example Request:
https://api.shanhe.com/iaas/?action=RestartClusterService
&cluster=cl-95av0jxo
&zone=jn1b
&COMMON_PARAMS
Example Response:
{
"action":"RestartClusterServiceResponse",
"cluster_id":"cl-95av0jxo",
"job_id":"j-itxd749281a",
"ret_code":0
}