Query Environment Information
Retrieve a list of all available environments in NineData, with support for filtering by environment name.
Request URL: /openapi/v1/env/list
Request Method: GET
Request Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
name | String | No | Environment name. | Production Env |
current | Integer | No | Current page, starting from 1, default is 1. | 1 |
pageSize | Integer | No | Page size, default is 10. | 50 |
Response Parameters
Parameter | Type | Description | Example |
---|---|---|---|
success | Bool | Whether the API call was successful. Return values: true , false . | true |
requestId | String | Request ID. | Xh4k7XPF-IOLLqNYnJOIf0VFdOQe9SIO |
data | Array | Environment list, including environment ID (envId), environment name (name), and other information. | { "envId": "env-product", "name": "Production" } |
current | Integer | Current page number. | 1 |
pageSize | Integer | Size per page. | 10 |
total | Integer | Total number of environments. | 2 |
Successful Invocation Example
{
"success": true,
"requestId": "Xh4k7XPF-IOLLqNYnJOIf0VFdOQe9SIO",
"data": [{
"envId": "env-product",
"name": "Production"
}, {
"envId": "env-dev",
"name": "Test"
}],
"current": 1,
"pageSize": 10,
"total": 2
}