Few days back I wrote a post on how to create Replication policies in vCloud Availability via GUI. In this post I will walk through steps of creating the same via API.
Below are high level steps of API workflow.
1: Get Auth Token
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Method: POST URL: https://<vcav-fqdn>/sessions Auth: No Auth Payload: { "type":"localUser", "localUser":"root", "localPassword":"Password" } |
2: Create a New Replication Policy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Method: POST URL: https://<vcav-fqdn>/policies Headers: X-VCAV-Auth : <Token Value> Payload: { "allowIncoming":true, "allowOutgoing":true, "displayName":"DR-Default", "maxIncoming":-1, "maxInstances":24, "minRpo":15 } |
Response Output: Make a note of the id of the policy from the response output.… Read More