project storage grant
Authorize up to 20 JoYiHub author IDs; report each result
语法
joyihub project storage grant <space-id>参数
位置参数
属性
类型
选项
属性
类型
示例
joyihub project storage grant space-id --author user-id --project project-id响应示例
{
"items": [
{
"reference": "user-id",
"status": "granted",
"user_id": "user-id"
}
]
}返回字段
属性
类型
错误码
NOT_AUTHENTICATED · Exit 3
本机没有有效 CLI 登录凭据
{
"error": {
"code": "NOT_AUTHENTICATED",
"message": "本机没有有效 CLI 登录凭据"
}
}UNAUTHORIZED · Exit 3
服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务
{
"error": {
"code": "UNAUTHORIZED",
"message": "服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务"
}
}FORBIDDEN · Exit 3
当前账号缺少服务端权限
{
"error": {
"code": "FORBIDDEN",
"message": "当前账号缺少服务端权限"
}
}CLIENT_TOO_OLD · Exit 4
服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新
{
"error": {
"code": "CLIENT_TOO_OLD",
"message": "服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新"
}
}USAGE_ERROR · Exit 2
参数、取值或本地输入不合法
{
"error": {
"code": "USAGE_ERROR",
"message": "参数、取值或本地输入不合法"
}
}