查询工作空间列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /api/workspaces
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
nextToken | string | 否 | 用来标记当前开始读取的位置,置空表示从头开始 | beb1eff55bf03a13cf321a395dxxxxxx |
maxResults | integer | 否 | 本次读取的最大数据记录数量,默认10,最大100 | 10 |
statusList | array | 否 | 工作空间状态列表 | |
string | 否 | 工作空间状态。 枚举值:
| SUCCESS | |
workspaceTemplateList | array | 否 | 技术栈列表 | |
string | 否 | 技术栈。 枚举值:
| all-in-one |
返回参数
示例
正常返回示例
JSON
格式
{
"totalCount": 100,
"nextToken": "beb1eff55bf03a13cf321a395dxxxxxx",
"maxResults": 10,
"workspaces": [
{
"codeVersion": "master",
"codeUrl": "https://codeup.aliyun.com/demo/group/Codeup-Demo.git",
"name": "Demo",
"spec": "2::4::60",
"status": "SUCCESS",
"template": "all-in-one",
"id": "6ed82817-ab75-4563-865d-81e60dxxxxxx",
"userId": "1470227819xxxxxx",
"createTime": "1628564442000"
}
],
"requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9",
"success": true,
"errorCode": "\"\"",
"errorMessage": "\"\""
}
错误码
访问错误中心查看更多错误码。