You need to enable JavaScript to run this app.
Big Data File Storage

Big Data File Storage

Copy page
Download PDF
Manage namespaces
CreateNamespace - Create namespace
Copy page
Download PDF
CreateNamespace - Create namespace
Call the CreateNamespace API to create a namespace.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this API and some common parameters are listed below. For more information, seeCommon parametersforward slashs (/).​
Query​
Action string required Example value: CreateNamespace​
The action to perform. Value: CreateNamespace.​
​
Version string required Example value: 2024-08-01​
API version. Value: 2024-08-01.​
​
​
Body​
FileSystemId string No Example value: 123456​
File System ID.​
​
FileSystemName string No Example value: test​
The name of the file system.​
​
NamespaceType string required Example value: ACC_TOS​
Namespace type.​
​
MountPath string No Example value: /test​
Mount path.​
​
TosBucket string No Example value: test​
TOS bucket to mount.​
​
TosRegion string No Example value: cn-beijing​
Region where the TOS bucket is mounted.​
​
TosPrefix string No Example value: test/​
TOS mount prefix.​
​
TosCredentialType string No Example value: ServiceRole​
TOS credential type.​
​
TosStaticCredential object No Example value: For details, see the request example​
TOS static credentials.​
AccessKeyId string required Example value: AKxxxx​
User identifier, abbreviated as AK.​
​
SecretAccessKey string required Example value: SKxxxx​
User identification key, abbreviated as SK.​
​
​
TosRoleCredential object[] No Example value: For details, see the request example​
TOS role credentials.​
AccountId string required Example value: 210000****​
Account ID.​
​
Role string required Example value: RoleForTest​
Role name.​
​
​
Description string No Example value: test​
Description.​
​
​
Response parameters​
Only the response parameters specific to this API are listed below. For more information, seeResponse structureforward slashs (/).​
TaskId string Example value: abcd​
Task ID.​
​
NamespaceId string Example value: 123456​
Namespace ID.​
​
​
Request example​
​
POST /?Action=CreateNamespace&Version=2024-08-01&Description=%E6%B5%8B%E8%AF%95 HTTP/1.1​
Host: open.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20250107T094431Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250107/cn-beijing/cfs/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"FileSystemId": "123456",​
"FileSystemName": "test",​
"NamespaceType": "ACC_TOS",​
"MountPath": "/test",​
"TosBucket": "test",​
"TosRegion": "cn-beijing",​
"TosPrefix": "test/",​
"TosCredentialType": "ServiceRole",​
"TosStaticCredential": {​
"AccessKeyId": "AKxxxx",​
"SecretAccessKey": "SKxxxx"​
},​
"TosRoleCredential": [​
{​
"AccountId": "2100000000",​
"Role": "RoleForTest"​
}​
]​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "20241223120131015007156168D0295E",​
"Action": "CreateNamespace",​
"Version": "2024-08-01",​
"Service": "cfs",​
"Region": "cn-beijing"​
},​
"Result": {​
"TaskId": "abcd",​
"NamespaceId": "123456"​
}​
}​
​
Error codes​
The following table lists the error codes related to the business logic of this API. For common error codes, seeCommon error codesdocumentation.​
​
Status code​
Error codes​
Error message​
Note​
400​
InvalidParameter​
The specified parameter %s is not valid.​
Invalid parameter value.​
400​
MissingParameter​
The required parameter %s is not supplied.​
Missing parameter.​
400​
InvalidRequest​
Invalid request in request body: %s.​
Invalid request body.​
400​
NamespaceQuotaExceeded​
Namespace quota has exceeded.​
Namespace quota exceeded.​
400​
TosMountExists​
The specified TOS mount already exists.​
The specified object storage mount already exists.​
400​
BucketCrossAccountNotAllowed​
The cross-account bucket is not allowed to be mounted.​
Cross-account buckets are not allowed to be mounted.​
400​
NoPermissionToReadTos​
The provided credentials have no permission to read TOS.​
The provided key does not have permission to read TOS.​
400​
MountPathExists​
The specified mount path already exists.​
The mount path already exists.​
400​
MountPathNested​
The specified mount path is nested with the existing mount path %v.​
The mount path is nested with the existing path %v.​
400​
InvalidNamespaceType​
The Namespace type is invalid for this request.​
This namespace type cannot perform this request.​
400​
InvalidFileSystemStatus​
The FileSystem status is invalid for this request.​
The current file system status cannot perform this request.​
400​
InvalidFileSystemName​
Invalid FileSystem name. Length must be between 2-63, name must start with a letter, contains only alphabets, numbers and '-'.​
Invalid file system name. Length must be between 2-63, name must start with a letter, and contain only letters, numbers, and '-'.​
404​
TosBucketNotFound​
The specified TOS bucket does not exist.​
The specified TOS bucket does not exist.​
404​
FileSystemNotFound​
The specified FileSystem does not exist.​
The specified file system does not exist.​
500​
InternalError​
The request processing has failed due to some unknown error, exception or failure.​
Internal error.​
​
​
Last updated: 2026.02.02 11:27:57