Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Chapter 2 Working with the API
Chapter 3 Alert Service Commands
Chapter 8 Problem Service Commands
Creates a new replication target for remote replication.
Example Request:
POST /api/replication/v1/targets HTTP/1.1 Authorization: Basic ab6rt4psMWE= Host: example.zfssa.com:215 Accept: application/json Content-Type: application/json Content-Length: 54 {"hostname":"example", “root_password”:”letmein”, “label”:”east”}
Example Response:
HTTP/1.1 201 Created Content-Length: 135 Content-Type: application/json Location: /service/v1/services/replication/targets/target-000 X-Zfssa-Replication-Api: 1.0 { "target": { "actions": 0, "address": "123.45.78.9:216", "asn": "fa5bf303-0dcb-e20d-ac92-cd129ccd2c81", "hostname": "example", "href": "/service/v1/services/replication/targets/target-000", "label": "east" } }