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

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

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

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.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

job

No

job object

LTS information.

Table 4 job

Parameter

Mandatory

Type

Description

log_group_id

No

String

Log group ID.

log_stream_id

No

String

Log stream ID.

lts_enabled

No

Boolean

Whether to enable LTS.

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.