Help Center> ServiceStage> API Reference> CSE API> Dynamic Configuration> Querying Configurations in the Configuration Center

Querying Configurations in the Configuration Center

Function

This API is used to query configurations in the configuration center.

URI

GET /v3/{project_id}/configuration/items

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique ID of a tenant sub-project. Length: 1–64 characters.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

dimensionsInfo

Yes

String

Dimension for querying configurations. The value cannot contain spaces or the following special characters: $%^&+/\

revision

No

String

If the revision parameter is not transferred, the original service logic is used. In this case, all configurations are uploaded without version verification. Default value: default. A null string is not allowed. If the value is a null string, the original service logic is used.

keyFilter

No

String

Filter criteria of the key. A regular expression is supported. If special characters are contained, escape them.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

x-environment

No

String

Environment for querying configurations.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

{User defined key}

Map<String,Map<String,String>>

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error information.

detail

String

Location details.

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error information.

detail

String

Location details.

Example Requests

GET https://{endpoint}/v3/{project_id}/configuration/items

Example Responses

Status code: 200

OK

{
  "application" : {
    "dddddddddd" : "dddddddddddd"
  },
  "darklaunch@blog" : {
    "config1" : "test is ok!"
  }
}

Status Codes

Status Code

Description

200

OK

304

Not Modified

400

Bad Request

500

Internal Server Error

Error Codes

See Error Codes.