Show Volume¶
Overview¶
Shows a volume
Classification¶
Show
Synchronous / Asynchronous¶
Synchronous
Request¶
HTTP Request Method¶
GET
HTTP Request Path¶
{api_endpoint}/v1.0/{tenant_id}/volumes/{volume_id}
HTTP Request Body¶
none
Response¶
HTTP Response Header¶
HTTP Response Body¶
Response Parameter¶
Parameter |
Type |
Description |
Note |
---|---|---|---|
api_error_message |
String |
Error message in API error case. |
|
id |
String |
Volume's ID (UUID) |
|
status |
String |
Volume status |
|
name |
String |
Name of the volume |
Must be unique by tenant |
description |
String |
Description of the volume |
|
size |
Integer |
The size of volume in gigabyte |
|
iops_per_gb |
String |
The provisioned IOPS/GB for volume |
Available for piops_iscsi_na volume_type. |
initiator_iqns |
Array of String |
Array of initiator IQN who can access to this volume |
Available for piops_iscsi_na volume_type. |
initiator_secret |
String |
Initiator's secret (password) for CHAP auth of iSCSI |
Available for piops_iscsi_na volume_type. |
target_secret |
String |
Target's secret (password) for CHAP auth of iSCSI |
Available for piops_iscsi_na volume_type. |
throughput |
String |
Throughput value reserved for the volume |
Available for pre_nfs_na volume_type. |
snapshot_ids |
Array of String |
Array of Snapshot IDs taken from this volume |
|
target_ips |
Array of IPv4 addresses |
Array of IPv4 addresses of the volume. |
|
metadata |
String |
One or more metadata key and value pairs to associate with the volume. |
Available for piops_iscsi_na volume_type. |
virtual_storage_id |
String |
virtual_storage ID (UUID) |
|
availability_zone |
String |
An availability_zone in which the volume belongs to |
availability_zone=zone-group |
created_at |
DateTime |
Timestamp of volume creation complete |
|
updated_at |
DateTime |
Timestamp of volume update complete |
|
error_message |
String |
Error message for the volume |
|
percent_snapshot_reserve_used |
Integer |
Usage of available snapshot capacity in percent |
Available for piops_iscsi_na volume_type. |
smb_properties |
SMB properties for the virtual storage and its volumes |
Available for standard_smb_na volume_type. |
|
export_rules |
List of String |
Allow list for volumes.Clients from CIDRs listed here can access to volumes |
Available for pre_nfs_na/standard_nfs_na/standard_smb_na volume_type. |
encrypt |
Boolean |
Whether the volume is encrypted or not. |
Sample API Request and Response¶
Block Storage (volume_type=piops_iscsi_na)¶
Sample API Request¶
curl -s -i -X GET https://storage-jp1-ecl.api.ntt.com/v1.0/49dec55d78d446dabfe6ecd8858133f4/volumes/888e362e-7732-44a2-8e46-a623185b19c0 -H 'Content-type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: 00a42d953f794b63b11785273546d6eb'
Sample API Response¶
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2022 02:18:40 GMT
Content-Type: application/json
Content-Length: 636
Connection: keep-alive
ECL-Transaction-ID: 263b9dc0-06b3-4c60-8cfe-7303f6b23429
Set-Cookie: TS0183560f=01cce65ce1252b7c17e41de02b3b47d8c62614ee7727c84e93375cb68b24ad8b2b0d1a5653ea862eb2af4e7cdac6ab7be78e0cb90d; Path=/
{
"api_error_message": "",
"volume": {
"availability_zone": "zone1-groupa",
"created_at": "2022-07-15T09:47:53+0000",
"description": "",
"error_message": "",
"id": "888e362e-7732-44a2-8e46-a623185b19c0",
"initiator_iqns": [
"iqn.1993-08.org.debian:01:af5bf2af245",
"iqn.1993-08.org.debian:01:3b674b17c2"
],
"initiator_secret": null,
"iops_per_gb": "2",
"metadata": {
"lun_id": "3"
},
"name": "vol-20220715-01",
"percentage_snapshot_reserve_used": 0,
"size": 100,
"snapshot_ids": [],
"status": "available",
"target_ips": [
"10.21.100.100",
"10.21.100.101"
],
"target_secret": null,
"updated_at": "2022-09-07T09:35:15+0000",
"virtual_storage_id": "643bb1d3-904b-4d0f-94fc-951879222ae9",
"encrypt": false
}
}
File Storage Standard NFS (volume_type=standard_nfs_na)¶
Sample API Request¶
curl -s -i -X GET https://storage-jp1-ecl.api.ntt.com/v1.0/49dec55d78d446dabfe6ecd8858133f4/volumes/dda527a0-f393-4142-b59a-ffd228bbca12 -H 'Content-type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: 00a42d953f794b63b11785273546d6eb'
Sample API Response¶
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2022 02:19:30 GMT
Content-Type: application/json
Content-Length: 406
Connection: keep-alive
ECL-Transaction-ID: c0e880f1-40f6-4737-a985-a63c95d78d87
Set-Cookie: TS0183560f=01cce65ce159f8e99749384b438a66cef48e90aa7ee353ea33ec6be730c6d2e89d053070a0f3de78617ffca5690c748127b8a00ad3; Path=/
{
"api_error_message": "",
"volume": {
"availability_zone": "zone1-groupb",
"created_at": "2022-05-23T02:45:53+0000",
"description": "",
"error_message": "",
"export_rules": [
"0.0.0.0/0"
],
"id": "dda527a0-f393-4142-b59a-ffd228bbca12",
"name": "stdvol20220523-01",
"size": 1024,
"snapshot_ids": [],
"status": "available",
"target_ips": [
"10.161.18.201"
],
"updated_at": null,
"virtual_storage_id": "18125408-f741-48d4-8b6a-1a880f0cb5b9",
"encrypt": false
}
}
File Storage Standard SMB (volume_type=standard_smb_na)¶
Sample API Request¶
curl -s -i -X GET https://storage-jp1-ecl.api.ntt.com/v1.0/49dec55d78d446dabfe6ecd8858133f4/volumes/5c68dee7-ac29-450a-aef3-8c556c6a46ee -H 'Content-type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: 00a42d953f794b63b11785273546d6eb'
Sample API Response¶
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2022 02:19:49 GMT
Content-Type: application/json
Content-Length: 506
Connection: keep-alive
ECL-Transaction-ID: 086d33a6-d9f7-4956-a37b-e2766fb27db3
Set-Cookie: TS0183560f=01cce65ce1747ebbdcf57257c98abb002139177fa1b8175712257e75dafaa7112bec1f02e4cba4dc81393e26475773fa5ffd534a39; Path=/
{
"api_error_message": "",
"volume": {
"availability_zone": "zone1-groupb",
"created_at": "2022-07-21T08:20:27+0000",
"description": "smb-vol01",
"error_message": "",
"export_rules": [
"0.0.0.0/0"
],
"id": "5c68dee7-ac29-450a-aef3-8c556c6a46ee",
"name": "smb-vol01",
"size": 1024,
"smb_properties": {
"users": [
{
"password": "********",
"username": "testuser"
}
],
"workgroup": "WORKGROUP2"
},
"snapshot_ids": [],
"status": "available",
"target_ips": [
"192.168.0.11"
],
"updated_at": null,
"virtual_storage_id": "ea2d35d9-b740-4720-890e-8a2bda56075f",
"encrypt": true
}
}