Updating the LTS Configuration
Function
This API is used to update the LTS configuration of a task.
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 and Supported Actions.
URI
PUT /v3/{project_id}/jobs/{job_id}/lts-log-switch
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID of a tenant in a region. |
|
job_id |
Yes |
String |
Task ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
The content type. Its value is application/json. |
|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
|
X-Language |
No |
String |
Request language type. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
job |
No |
job object |
LTS information. |
Response Parameters
Status code: 200
OK
None
Example Requests
Updating the LTS configuration of a task
https://{endpoint}/v3/5237e10fe9aa4ad5b16b6a5245248314/jobs/1a3ce2ab-5f24-4322-8939-b9e0ef4jb2b3/lts-log-switch
{
"job" : {
"log_group_id" : "dfc5d3ee-ca8d-44c6-81b0-28f6c843048b",
"log_stream_id" : "f6774c34-73c0-4808-902e-952d83f4804b",
"lts_enabled" : true
}
}
Example Responses
None
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Code
For details, see Error Code.
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