Block Virtual Pool:Assign Tags

Search (SHIFT+S)



Assign Tags

PUT /block/vpools/{id}/tags

Assign tags

idthe URN of a ViPR resource

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • RESTRICTED_SYSTEM_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<tag_changes>
<add> String 0-* Elements
Valid Values:
  •  Length: 2..128
<remove> String 0-* Elements
Valid Values:
  •  Length: 2..128
</tag_changes>

Response Body

No data returned in response body

Field Description Type Notes
<tags>
<tag> A set of tags String 0-* Elements
</tags>

Examples

Request
PUT https://192.168.0.0:4443/block/vpools/urn:storageos:VirtualPool:9088146a-fa8a-4e45-9834-89bb62cd505b:/tags HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tag_changes>
   <add>alpha</add>
   <remove>beta</remove>
</tag_changes>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tags>
<tag>alpha</tag>
</tags>
Notes: