Updated on 2024-04-15 GMT+08:00

Creating an EVS Disk

Scenarios

This topic describes how to create an EVS disk by calling APIs. For details about how to call APIs, see Calling APIs.

Prerequisites

You have planned the region where you want to create the disk and obtained the endpoint required for calling the API.

Procedure

  1. Create a common I/O disk and set its capacity to 120 GB.

    API: Creating EVS Disks

    • Example request

      POST https://{endpoint}/v2/ba546eb46e7247c9aadb566ed7a1d31f/cloudvolumes

      {
          "volume": {
              "count": 1, 
              "availability_zone": "az-dc-1", 
              "description": "test_volume_1", 
              "size": 120,  
              "name": "test_volume_1", 
              "volume_type": "SAS"	
              }
          }
      }
    • Example response
      {
        "job_id": "ff8080816b512df7016b6ab8982b496b"
      }