Modify Base URL
PUT /object/baseurl/{id}
Updates the Base URL for the specified Base URL identifier.
id | Base URL identifier that needs to be updated |
Required Roles
Request Payload
<object_base_url_update>
<name></name>
<base_url></base_url>
<is_namespace_in_host></is_namespace_in_host>
</object_base_url_update>
{
"name": "",
"base_url": "",
"is_namespace_in_host": ""
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
object_base_url_update |
|
|
|
name |
Name for this Base-URL |
String |
|
base_url |
Base URL to be used |
String |
|
is_namespace_in_host |
Set true if namespace is in host, false otherwise |
Boolean |
Valid Values:
|
Response Body
Response indicating Success or Failure to update Base URL details
Examples
Request
PUT https://192.168.0.0:4443/object/baseurl/urn:storageos:ObjectBaseUrl:89116eb1-bc3d-4b35-96b0-5929edd3b194: HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<?xml version="1.0" encoding="UTF-8"?>
<object_base_url_update>
<name>TestBaseURL</name>
<base_url>emc.com</base_url>
<is_namespace_in_host>false</is_namespace_in_host>
</object_base_url_update>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
PUT https://192.168.0.0:4443/object/baseurl/urn:storageos:ObjectBaseUrl:89116eb1-bc3d-4b35-96b0-5929edd3b194:.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{
"is_namespace_in_host": "false",
"name": "TestBaseURL",
"base_url": "emc.com"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
cat body.txt
<?xml version="1.0" encoding="UTF-8"?>
<object_base_url_update>
<name>TestBaseURL</name>
<base_url>emc.com</base_url>
<is_namespace_in_host>false</is_namespace_in_host>
</object_base_url_update>
curl -H $token -H "Content-Type: application/xml" -X PUT --data @body.txt https://$nodeIp:4443/object/baseurl/urn
Response
HTTP/1.1 200 OK
Content-Type: application/xml