全部產品
Search
文件中心

Drive and Photo Service:UpdateDomain - 更新Domain

更新時間:Apr 24, 2026

更新 domain。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

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"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。