nav-img
Advanced

Querying the LTS Log Group and Stream Configuration of a Function

Function

This API is used to query the LTS log group and stream configuration of a function.

URI

GET /v2/{project_id}/fgs/functions/{urn}/lts-log-detail

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Minimum length: 1 character

Maximum length: 32 characters

urn

Yes

String

Function URN.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

group_id

String

Log group ID.

stream_id

String

Log stream ID.

stream_name

String

Log stream name.

Example Request

Query the LTS log group and stream configuration of a function.

GET https://{functiongraph_endpoint}/v2/{project_id}/fgs/functions/{urn}/lts-log-detail

Example Response

Status code: 200

OK

{
"group_id" : "xxx",
"stream_id" : "xxx",
"stream_name" : "xxx"
}

Status code: 400

Bad request

{
"error_code" : "FSS.1128",
"error_msg" : "get user[xxx] permission enterprise failed"
}

Status code: 403

Forbidden

{
"error_code" : "FSS.0403",
"error_msg" : "invalid token"
}

Status code: 404

Not Found

{
"error_code" : "FSS.0404",
"error_msg" : "selectOneLog, group or stream not found"
}

Status code: 500

Internal server error

{
"error_code" : "FSS.0500",
"error_msg" : "selectOneLog db error"
}

Status Code

Status Code

Description

200

OK

400

Bad request

403

Forbidden

404

Not Found

500

Internal server error

Error Code