根据项目 id 获取当前项目下的空间列表
GET
名称 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ProjectNamespaces | 要执行的操作,取值:ProjectNamespaces |
Version | String | 是 | 2021-05-21 | API的版本,取值:2021-05-21 |
projectId | Integer | 是 | 3546 | 项目id |
offset | Integer | 否 | 0 | 翻页偏移量 |
limit | Integer | 否 | 25 | 翻页最大数量 |
名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
data | Array of namespaceDetail | -- | 空间列表 |
total | Integer | 1 | 总空间数 |
pagination | pagination | -- | 翻页设置 |
GET /?Action= ProjectNamespaces&Version=2021-05-21&projectId=3546 HOST:open.volcengineapi.com ServiceName:i18n_openapi
{ "data": [ { "id": 37698, "projectId": 3546, "projectName": "Demo项目", "namespace": "Demo项目空间", "description": "Demo项目描述", "creatorId": 2100002230, "extra": "", "createdAt": "2021-06-19T18:41:53.000Z", "updatedAt": "2021-06-19T18:41:53.000Z" } ], "total": 6, "pagination": { "offset": 0, "limit": 2 } }
下表提供了该接口业务逻辑相关的错误码。公共错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
400 | 1001 | Server Error | 服务内部错误 |