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
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Unique ID of a tenant sub-project. Length: 1–64 characters. |
| 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
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| x-environment | No | String | Environment for querying configurations. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| {User defined key} | Map<String,Map<String,String>> |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code. |
| errorMessage | String | Error information. |
| detail | String | Location details. |
Status code: 500
| 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.
Last Article: Dynamic Configuration
Next Article: Dashboard
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.