Update Replication Group
PUT /vdc/data-service/vpools/{id}
Updates the name and description for a replication group.
| id | Replication group identifier for which details needs to be updated |
Required Roles
Request Payload
<data_service_vpool_update>
<name></name>
<description></description>
<enable_rebalancing></enable_rebalancing>
<allowAllNamespaces></allowAllNamespaces>
</data_service_vpool_update>
{
"name": "",
"description": "",
"enable_rebalancing": "",
"allowAllNamespaces": ""
}
All parameters are required unless otherwise stated.
| Field |
Description |
Type |
Notes |
| data_service_vpool_update |
|
|
|
| name |
New name fro the replication group |
String |
|
| description |
New description for the replication group |
String |
|
| enable_rebalancing |
set if geo rebalancing is enabled |
Boolean |
|
| allowAllNamespaces |
AllowAllNamespaces to update |
Boolean |
|
Response Body
Response indicating Success or Failure to update replication group
Examples
Request
PUT https://192.168.0.0:4443/vdc/data-service/vpools/urn:storageos:ReplicationGroupInfo:b3bf2d47-d732-457c-bb9b-d260eb53a76b:global:
Content-Type: application/xml
X-SDS-AUTH-TOKEN=BAAcRGtUUmNOZHNpbitMaEVhZUhhdWtad1J3WDRRPQMAUAQADTEzNzk1NDIwMjQ4MzACAAEABQA5dXJuOnN0b3JhZ2VvczpUb2tlbjoxYmVhNGJiMy04M2MwLTRlOGItODc4Ni1iYWYxYmM4NTZkNTY6AgAC0A8=
<data_service_vpool_update>
<name>sanity-rg1</name>
<description>sanity-rg1</description>
<allowAllNamespaces>true</allowAllNamespaces>
</data_service_vpool_update>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
PUT https://192.168.0.0:4443/vdc/data-service/vpools/urn:storageos:ReplicationGroupInfo:b3bf2d47-d732-457c-bb9b-d260eb53a76b:global:.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN=BAAcRGtUUmNOZHNpbitMaEVhZUhhdWtad1J3WDRRPQMAUAQADTEzNzk1NDIwMjQ4MzACAAEABQA5dXJuOnN0b3JhZ2VvczpUb2tlbjoxYmVhNGJiMy04M2MwLTRlOGItODc4Ni1iYWYxYmM4NTZkNTY6AgAC0A8=
{
"name": "sanity-rg1",
"description": "sanity-rg1",
"allowAllNamespaces": "true"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
curl -H $token -H "Content-Type: application/xml" -X PUT https://$nodeIp:4443/vdc/data-service/vpools/urn
Response
HTTP/1.1 200 OK
Content-Type: application/xml