doc-exports/docs/lts/api-ref/lts_02_0008.html
Hasko, Vladimir 255730fbf9 lts_api (recreate of #279)
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2022-12-02 09:17:17 +00:00

8.1 KiB

Querying a Log Stream

Function

This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.

URI

  • URI format

    GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

  • Parameter description
    Table 1 Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID

    group_id

    Yes

    String

    Log group ID

    topic_id

    Yes

    String

    ID of a log stream

Request

  • Request parameters

    None

  • Example request
    GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

Response

  • Response parameters
    Table 2 Parameter description

    Parameter

    Sub-Parameter

    Type

    Description

    log_topic_name

    -

    String

    Log stream name

    creation_time

    -

    Int64

    Log group creation time

    index_enabled

    -

    Bool

    Search switch

  • Example response
    { 
           "log_topic_name": "lts-topic-jgpv", 
           "creation_time": 1550803822973, 
           "index_enabled": true
    }

Returned Value