Get Data Store List
GET /vdc/data-stores
Gets list of configured SAN, commodity or filesystem data stores.
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
Response Body
List of data stores configured in the system.
Field |
Description |
Type |
Notes |
data_stores |
|
|
|
data_store |
|
|
0-* Elements
|
resource_type |
|
String |
|
name |
Object related resource name |
String |
|
id |
Object related resource Id |
URI |
|
link |
Object related resource link |
|
|
Examples
Request
GET https://192.168.0.0:4443/vdc/data-stores/ HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data_stores>
<data_store>
<id>urn:storageos:HostingDeviceInfo:c850824c-955a-4f17-b49a-2d706076b3bf:</id>
<link href="/vdc/data-stores/filesystems/urn:storageos:HostingDeviceInfo:c850824c-955a-4f17-b49a-2d706076b3bf:" rel="self"/>
<name>store1</name>
<resource_type>filesystems</resource_type>
</data_store>
</data_stores>
Request
GET https://192.168.0.0:4443/vdc/data-stores.json HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"data_store": [
{
"name": "1",
"id": "1",
"link": {
"rel": "self",
"href": "/vdc/data-stores/commodity/1"
},
"resource_type": "commodity"
},
{
"name": "2",
"id": "2",
"link": {
"rel": "self",
"href": "/vdc/data-stores/commodity/2"
},
"resource_type": "commodity"
},
{
"name": "3",
"id": "3",
"link": {
"rel": "self",
"href": "/vdc/data-stores/commodity/3"
},
"resource_type": "commodity"
}
]
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/vdc/data-stores/
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data_stores>
<data_store>
<id>urn:storageos:HostingDeviceInfo:c850824c-955a-4f17-b49a-2d706076b3bf:</id>
<link href="/vdc/data-stores/filesystems/urn:storageos:HostingDeviceInfo:c850824c-955a-4f17-b49a-2d706076b3bf:" rel="self"/>
<name>store1</name>
<resource_type>filesystems</resource_type>
</data_store>
</data_stores>