查询工作空间基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /api/workspaces/{workspaceId}
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
workspaceId | string | 是 | 工作空间唯一标识,字符串形式,可在云效DevStudio访问空间链接中获取 | 6ed82817-ab75-4563-865d-81e60dxxxxxx |
返回参数
示例
正常返回示例
JSON
格式
{
"workspace": {
"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"
},
"success": true,
"errorCode": "InvalidWorkspace.NotFound",
"errorMessage": "The workspace is not found.",
"requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Forbidden.AccessDenied | The user is not authorized to perform the operation. | 用户无权限执行相关操作 |
404 | InvalidWorkspace.NotFound | The workspace is not found. | 工作空间不存在 |
访问错误中心查看更多错误码。