Creates a domain.
Operation description
Use the parent-child domain feature to implement custom operations on PDS or apply fine-grained controls to tenants. For more information, contact the official DingTalk group: 23146118.
Try it now
Test
RAM authorization
Request syntax
POST /v2/domain/create HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| parent_domain_id |
string |
No |
The ID of the parent domain. Set this parameter to create a child domain. This parameter is optional. For information about implementing custom operations, contact PDS customer service. |
bj1 |
| domain_name |
string |
Yes |
The name of the domain. |
cloud drive |
| description |
string |
No |
The description of the domain. |
cloud drive dev |
| init_drive_enable |
boolean |
No |
Specifies whether to enable a default drive for users. If set to |
true |
| init_drive_size |
integer |
No |
This parameter is required if |
1073741824 |
| user_count_quota |
integer |
No |
The user count quota for the domain. This specifies the maximum number of users that can be created. A value of |
50 |
| size_quota |
integer |
No |
The total storage quota for the domain, in bytes. This value represents the combined storage limit for all drives within the domain. A value of |
1099511627776 |
| store_redundancy_type |
string |
No |
The storage redundancy type. Valid values:
|
Response elements
|
Element |
Type |
Description |
Example |
| Domain |
The details of the created domain. |
Examples
Success response
JSON format
{
"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": false,
"data_hash_name": "sha1",
"store_redundancy_type": "LRS"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.