Following are some examples on performing operations using Web services API:
To get metadata for a host:
https://symantecdomain.example.com:14161/vom/api/meta/server/host
To define an extended attribute named department on object type cluster:
https://symantecdomain.example.com:14161/vom/api/meta/hadr/cluster /add?name=department
Adds and displays the extended attribute department for object type cluster in the Management Server console.
To modify an extended attribute named department to Dept_new on object type cluster:
https://symantecdomain.example.com:14161/vom/api/meta/hadr/cluster /modify?name=department&new_name=Dept_new
To delete an extended attribute named Dept_new on object type cluster:
https://symantecdomain.example.com:14161/vom/api/meta/hadr/cluster /delete?name=dept_new
When you delete an extended attribute, it is not displayed in the Management Server console.
To update the extended attribute value for a host where the extended attribute is location:
https://symantecdomain.example.com:14161/vom/api/update/server/host /myhost_id?location=1st floor
To filter disk group objects whose display type is private:
https://symantecdomain.example.com:14161/vom/api/query/server/host /myhost_id/diskgroup?display_type=private
To run a recovery plan
https://symantecdomain.example.com:14161/vom/api/op/hadr/ recoveryplan/rplan_id/execute/
Payload information required to run a recovery plan is task order and time out duration. If a task is to be skipped during run-time, IS_SKIP should be true. If shared service groups are to be brought offline then OfflineSharedSg should be set to true. Use the above URL along with the payload information in an HTTPS client to run the recovery plan operation.
To provision storage using a storage template, enter the following URL to view the payload information.
https://symantecdomain.example.com:14161/vom/api/op/server/ template/storage/storage_template_id/provision
Payload information required to execute the storage template operation is host ID, disk group ID, and volume size. Use the above URL along with the payload information in a HTTPS client to execute the operation.