Updated on 2025-12-15 GMT+08:00

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

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

job_id

Yes

String

Task ID.

Request Parameters

Table 2 Request header 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

Table 3 Response body parameters

Parameter

Type

Description

job

job object

LTS information.

Table 4 job

Parameter

Type

Description

log_group_id

String

Log group ID.

log_stream_id

String

Log stream ID.

lts_enabled

Boolean

Whether to enable LTS.

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.