Help Center/ Log Tank Service/ API Reference/ Examples/ Example 2: Querying All Log Groups of an Account
Updated on 2024-10-28 GMT+08:00

Example 2: Querying All Log Groups of an Account

Scenario

This section describes how to query all log groups of an account.

Other Involved APIs

None

Querying Log Groups

  • URI format

GET /v2/{project_id}/groups

  • Example Request

GET https://{endpoint}/v2/{project_id}/groups

Obtain the value of {endpoint} from Endpoints.

  • Example Response
{"log_groups" : [{"creation_time" : number,"log_group_name" : "string","log_group_id" : "string","ttl_in_days" : 1}]}