View all the data volumes of the current cluster.

Request information

Request line (RequestLine)

Get /volumes HTTP/1.1

Request line parameter (URI Param)

None.

Special request header (RequestHead)

None.

Request body (RequestBody)

None.

Response information

Response line (ResponseLine)

HTTP/1.1 200 OK

Response body (ResponseBody)

JSON object

  
   "Name": "volume",  
   "Driver": "***",  
   "Mountpoint": "/mnt/acs_mnt/**/***",  
   "Labels": null,  
   "Scope": "", 
   "Node": "***", 
   "Refs": []
Name  Type  Description 
Name  string  The data volume name.
Driver string

The type of the data volume driver: ossfs.

Mountpoint string The mount point of the data volume on the host: /mnt/acs_mnt/**/***.
Labels map[string]string The metadata information of the data volume.
Scope string Describes the data volume management scope. The data volume management range. global indicates the cluster level; local indicates inside the host.
Node string The host name of the node in which the data volume resides.
Refs []VolumeRef The list of containers that use this data volume. For more information, see the definition of VolumeRef.

VolumeRef data type:

Name  Type  Description 
Name  string Container name 
ID  string Container ID 

Example 

Response example 


  "Volumes": [
    
      "Name": "docker2",
      "Driver": "ossfs",
      "Mountpoint": "/mnt/acs_mnt/ossfs/bucket2",
      "Labels": null,
      "Scope": "",
      "Node": "b347bcf0e68b",
      "Refs": []
    
    
      "Name": "docker1",
      "Driver": "ossfs",
      "Mountpoint": "/mnt/acs_mnt/ossfs/bucket1",
      "Labels": null,
      "Scope": "",
      "Node": "b347bcf0e68b",
      "Refs": []