全部产品
Search
文档中心

文件存储 NAS:CreateAgenticSpace - 创建Agentic空间

更新时间:Jul 10, 2026

创建Agentic空间。

接口说明

适用 agentic 类型文件系统。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

FileSystemId

string

文件系统 ID。

31a8e4****

Azone

string

可用区 ID。

cn-hangzhou-i

FileSystemPath

string

文件绝对路径,只支持传入一级目录。

/path/

Description

string

AgenticSpace 描述。

限制:

  • 长度为 2~128 个英文或中文字符。

  • 必须以大小写字母或中文开头,不能以http://https://开头。

  • 可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

AgenticSpace Description

Quota

object

配额信息。

FileCountLimit

integer

配额文件数量限制。取值范围:

  • 最小值:10,000。

  • 最大值:100,000,000。

10000

SizeLimit

integer

配额总容量限制。单位:Byte。

取值范围:

  • 最小值:10,737,418,240(10 GiB)。

  • 最大值:1,099,511,627,776,000(1024000 GiB)

  • 步长:107,3741,824(1 GiB)。

10737418240

DryRun

boolean

是否对此次修改请求执行预检。 预检操作会帮助您检查参数有效性、依赖条件等,并不会实际修改实例,也不会产生费用。

取值:

  • true:发送检查请求,不会修改协议服务。检查项包括是否填写了必需参数、请求格式、业务限制依赖条件。如果检查不通过,则返回对应错误。如果检查通过,则返回 200 HttpCode。

  • false(默认):发送正常请求,通过检查后直接修改协议服务。

false

ClientToken

string

保证请求幂等性,从您的客户端生成一个参数值,确保不同请求间该参数值唯一。

ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

说明

若用户未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。

123e4567-e89b-12d3-a456-42665544****

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

98696EF0-1607-4E9D-B01D-F20930B6****

AgenticSpaceId

string

AgenticSpace Id。AgenticSpace(AgenticFS 中为单个 Agent 终端用户分配的独立工作空间)创建成功后由系统分配的全局唯一标识符。

agentic-229oypxjgpau2****

示例

正常返回示例

JSON格式

{
  "RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****",
  "AgenticSpaceId": "agentic-229oypxjgpau2****"
}

错误码

HTTP status code

错误码

错误信息

描述

400 IllegalCharacters The parameter contains illegal characters. 参数非法。
400 MissingFileSystemId FileSystemId is mandatory for this action. 未指定FileSystemId参数。
400 MissingFileSystemPath FileSystemPath is mandatory for this action. 缺少FileSystemPath参数。
400 InvalidFilesystemType.NotSupport This Api does not support this fileSystem type. 当前接口不支持该类型文件系统。
400 InvalidFilesystemVersion.NotSupport This Api does not support this fileSystem version. 当前接口不支持该版本文件系统。
400 InvalidRequest The request is invalid. 请求无效。
400 Quota.Invalid.Limit Quota limit is invalid. 无效的配额。
400 Resource.Exceed.Limit Resource exceed limit. 资源数量超过限制。
400 Resource.Check.Fail Resource check failed. 资源检查失败。
400 Fileset.Path.Duplicate Fileset path is duplicate. Fileset路径已存在。
400 Fileset.Path.Nested Fileset path is nested. Fileset路径存在嵌套。
400 Fileset.Path.NotExist Fileset.Path.Not.Exist. Fileset父目录路径不存在。
400 Fileset.Path.Exist Fileset already exist. Fileset路径已经存在。
403 OperationDenied.AlreadyExists The operation is denied due to IdirName already exists in parent path. 创建的目录名在父目录中已存在。
403 OperationDenied.TooManyFilesets The operation is denied due to too many fileset in filesystem. 文件系统的Fileset目录数量超过阈值。
403 OperationDenied.TooManyDepths The operation is denied due to Fileset path too deep. Fileset目录路径深度超过阈值。
403 OperationDenied.NestedDir The operation is denied due to nested directory. 目录存在嵌套导致无法创建自动更新配置。
403 OperationDenied.DependencyViolation The operation is denied due to dependancy violation. 进行该操作的条件不满足。
403 OperationDenied.FilesetNotSupported The operation is not supported. 该文件系统不支持Fileset。
404 InvalidFileSystem.NotFound The specified file system does not exist. 指定的文件系统不存在。
404 InvalidFileSystemPath.ParentNotFound The specified parent path does not exist. 指定的父目录不存在。
404 InvalidFileSystemPath.NotDirectory The specified idir parent path is not directory. 指定的父目录不是目录。
404 InvalidFileSystemPath.InvalidCharacters The specified fileset path contains invalid characters. 指定的Fileset路径包含非法字符。
404 InvalidFilesetPath.InvalidParameter Fileset path is invalid. 指定的Fileset路径无效。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情