CreateVolume

Updated at:

Creates a volume.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /pop/2026-05-09/volumes HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body CreateVolumeInput

No

The form parameters.

Response elements

Element

Type

Description

Example

object

Schema of Response

volume E2BVolume

The storage configuration.

requestId

string

The request ID.

B5AD8B54-4358-5F5B-ACAA-52F2016459C6

code

string

The error code.

200

message

string

The response message.

success

Examples

Success response

JSON format

{
  "volume": {
    "agenticBucketVolumeConfig": {
      "agenticBucket": "absx9f61c8a-1311999136518149-cn-hangzhou-ab-apsr",
      "bucketName": "bs429pop1-1311999136518149-cn-hangzhou-bs-apsr",
      "bucketPath": "/test/",
      "endpoint": "https://oss-cn-hangzhou-internal.aliyuncs.com\"",
      "readOnly": false
    },
    "agenticFSVolumeConfig": {
      "groupID": 1000,
      "serverAddr": "ap-12345678.fs-12345678-abc.cn-hangzhou.nas.aliyuncs.com:/",
      "userID": 1000
    },
    "createdAt": "2026-07-10T11:05:55Z",
    "mountConfig": {
      "role": "acs:ram::1673427197867277:role/aliyunfcdefaultrole",
      "vpcConfig": {
        "securityGroupId": "sg-xxxxxx",
        "vSwitchIds": [
          "vsw-xxxxx"
        ],
        "vpcId": "vpc-2ze4l2vyhej6a6dwapm4q"
      }
    },
    "ossVolumeConfig": {
      "bucketName": "example-bucket",
      "bucketPath": "/agent-workspace",
      "endpoint": "https://oss-cn-hangzhou.aliyuncs.com",
      "readOnly": true
    },
    "resourceGroupID": "rg-acfmwxqyrgwabcd",
    "status": "CREATING",
    "statusReason": "OK",
    "storageClass": "OSS",
    "teamID": "88a4c762-b0ce-4661-9413-578b2309e60f",
    "updatedAt": "2026-07-10T11:05:55Z",
    "userID": "2190856988355929",
    "volumeID": "82c8c42e-cf7a-46d0-8b58-9024409c1579",
    "volumeName": "workspace"
  },
  "requestId": "B5AD8B54-4358-5F5B-ACAA-52F2016459C6",
  "code": "200",
  "message": "success"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.