List Base URLs
GET /object/baseurl
Lists all configured Base URLs.
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
Response Body
Returns the list of Base URLs configured in ECS
Field |
Description |
Type |
Notes |
base_urls |
|
|
|
base_url |
|
|
0-* Elements
|
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/object/baseurl HTTP/1.1
Concept-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"?>
<base_urls>
<base_url>
<id>urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:</id>
<link href="/object/baseurl/urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:" rel="self"/>
<name>DefaultBasUrl</name>
</base_url>
</base_urls>
Request
GET https://192.168.0.0:4443/object/baseurl.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"base_url" : [
{
"link" : {
"rel" : "self",
"href" : "/object/baseurl/urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:"
},
"name" : "DefaultBasUrl",
"id" : "urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:"
}
]
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/baseurl
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<base_urls>
<base_url>
<id>urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:</id>
<link href="/object/baseurl/urn:storageos:ObjectBaseUrl:705a7ed6-cfc4-488c-9a22-e1f3b08b7cbf:" rel="self"/>
<name>DefaultBasUrl</name>
</base_url>
</base_urls>