Restarting Encoding Services
Function
This API is used to restart encoding services.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
POST /v1/{project_id}/cloud-phone/encode-servers/batch-restart
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Specifies the project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
encode_server_ids |
Yes |
Array of strings |
Specifies the ID of the encoding service to be restarted. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
request_id |
String |
Specifies the request ID, which is unique. |
|
jobs |
Array of EncodeServerJob objects |
Task information |
|
Parameter |
Type |
Description |
|---|---|---|
|
encode_server_id |
String |
Specifies the unique ID of the encoding service. This parameter is contained in tasks related to the encoding service. |
|
job_id |
String |
Specifies the unique ID of a task. |
|
error_code |
String |
Specifies the error code. |
|
error_msg |
String |
Specifies the error message. |
Example Requests
Restarting encoding containers on cloud phone servers in the encode_server_ids list
POST https://{CPH Endpoint}/v1/{project_id}/cloud-phone/encode-servers/batch-restart
{
"encode_server_ids" : [ "d5cfa92995da40168c39b38d2aa478b3", "00b00d1b35094f13b360cdfe15a9bfee" ]
}
Example Responses
Status code: 200
OK
{
"jobs" : [ {
"job_id" : "e9d7b1a2572c4f2c9bf056a3d1b35e39",
"encode_server_id" : "d5cfa92995da40168c39b38d2aa478b3"
}, {
"job_id" : "4d0a42447cac4c9697b97f07934b74bd",
"encode_server_id" : "00b00d1b35094f13b360cdfe15a9bfee"
} ],
"request_id" : "c775bdf09bc0400a9138199b346cab62"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot