更新 domain。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /v2/domain/update HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求体。 |
|
| domain_id |
string |
是 |
domain id |
bj1 |
| domain_name |
string |
否 |
domain 名称 |
你好企业网盘 |
| description |
string |
否 |
domain 描述 |
你好企业网盘调试环境 |
| init_drive_enable |
boolean |
否 |
是否开通默认网盘。为 true 则所有用户在第一次登录后都默认分配一个网盘。默认 false |
true |
| init_drive_size |
integer |
否 |
init_drive_enable 为 true 时必选。 创建用户时,默认网盘的大小,单位:Bytes。 默认为 0,此时创建的 drive 大小为 0,不可以上传文件,如果需要初始化 drive, 请设置该值。 -1 则表示不限大小。 |
1073741824 |
| user_count_quota |
integer |
否 |
domain 总用户数限制 |
50 |
| size_quota |
integer |
否 |
容量配额,表示 domain 下所有 drive 的总 quota 大小,0 表示不限制 |
1099511627776 |
| published_app_access_strategy | AppAccessStrategy |
否 |
App 访问策略 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| Domain |
更新后的 domain 信息 |
示例
正常返回示例
JSON格式
{
"parent_domain_id": "bj1",
"domain_id": "bj2",
"domain_name": "pdsdomain",
"description": "my domain",
"init_drive_enable": true,
"init_drive_size": 1073741824,
"updated_at": "2019-08-20T06:51:27.292Z",
"created_at": "2019-08-20T06:51:27.292Z",
"size_quota": 1099511627776,
"size_quota_used": 1099511627776,
"user_count_quota": 50,
"status": 1,
"used_size": 1099511627776,
"published_app_access_strategy": {
"effect": "deny",
"except_app_id_list": [
"8ovxCTRUDdbpVWBP"
]
},
"sharable": true,
"data_hash_name": "sha1",
"store_redundancy_type": "LRS"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。