Querying the LTS Configuration
Function
This API is used to query 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
GET /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 |
No |
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. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
job |
job object |
LTS information. |
Example Requests
Querying the LTS configuration of a task
https://{endpoint}/v3/5237e10fe9aa4ad5b16b6a5245248314/jobs/1a3ce2ab-5f24-4322-8939-b9e0ef4jb2b3/lts-log-switch
Example Responses
Status code: 200
OK
{
"job" : {
"log_group_id" : "dfc5d3ee-ca8d-44c6-81b0-28f6c843048b",
"log_stream_id" : "f6774c34-73c0-4808-902e-952d83f4804b",
"lts_enabled" : true
}
}
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