全部產品
Search
文件中心

File Storage NAS:CreateAgenticSpace

更新時間:Sep 03, 2026

建立 Agentic 空間。

介面說明

前置條件

呼叫本介面前,需完成以下準備工作:

  1. 已建立 Agentic 類型檔案系統:呼叫 CreateFileSystem 建立檔案系統時,需設定以下參數:
    • StorageType:設定為 Agentic

    • ProtocolType:設定為 NFS

    • 支援的地域(Region):Agentic 儲存類型僅在部分地域和可用區開放,具體以主控台為準。

使用說明

  • 本介面僅適用於 Agentic 類型檔案系統。

  • 完整呼叫鏈範例:
    1. 呼叫 CreateFileSystem 建立 Agentic 類型檔案系統(StorageType=Agentic, ProtocolType=NFS)。

    2. 檔案系統建立完成後(狀態為 Running),呼叫本介面 CreateAgenticSpace 建立 Agentic 空間。

    3. 如需修改 Agentic 空間設定,呼叫 ModifyAgenticSpace 介面。

調試

您可以在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

是

配額總容量限制。單位:位元組。

取值範圍:

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

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

  • 步長:1,073,741,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 路徑無效。

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

變更歷史

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