Creates an AgentStorage instance in a specified region.
Limits
Each Alibaba Cloud account can have up to 10 AgentStorage instances. Instance names must be unique within each region.
Prerequisites
Before you begin, ensure that you have:
An Alibaba Cloud account with an AccessKey pair for signing control-plane OpenAPI requests
AgentStorage management permissions, such as
AliyunOTSFullAccessor an equivalent control-plane policy, granted to the Alibaba Cloud account or Resource Access Management (RAM) user
Request syntax
POST /v2/openapi/createagentstorage HTTP/1.1Request parameters
Parameter | Type | Required | Description |
| string | Yes | The instance name. The name must be 3–16 characters in length, start with a letter, and contain only letters, digits, and hyphens (-). The name is case-insensitive and cannot end with a hyphen (-). It cannot contain |
| string | No | The instance description. The description must be 3–256 characters in length. |
| string | No | The resource group ID. |
| array<string> | No | The allowed network types. Valid values: |
| array<string> | No | The allowed network sources. |
| string | No | The instance access control policy in JSON format. |
| array<object> | No | The tags to add to the instance. Each tag must contain a |
Request example
{
"AgentStorageName": "agent-prod",
"AgentStorageDescription": "Production storage for AI agents",
"ResourceGroupId": "rg-example",
"NetworkTypeACL": ["INTERNET", "VPC"],
"Tags": [
{"Key": "Environment", "Value": "production"}
]
}Response elements
Parameter | Type | Description |
| string | The request ID. |
| string | The response status code. |
| string | The response message. |
Response example
{
"RequestId": "18DD77BF-F967-576D-80D1-79121399AB53",
"Code": "200",
"Message": "success"
}After the request succeeds, poll the AgentStorage instance by calling GetAgentStorage until AgentStorageStatus is normal. You can then create knowledge bases or memory stores.