Examples of performing operations using XPRTLC and cURL

Following are some examples on performing operations using XPRTLC and cURL:

To get metadata for a host:

To define an extended attribute named department on object type cluster:

To modify an extended attribute named department to Dept_new on object type cluster:

To delete an extended attribute named Dept_new on object type cluster:

To update the extended attribute value for a host where the extended attribute is location:

To filter object disk group whose display type is private:

To run a recovery plan:

To provision storage using a storage template

Where, symantecdomain.example.com is the name of your Management Server, server is the Server perspective, hadr is the Availability perspective, myhost_id is the encoded ID of the host, myDG_id is the encoded ID of the disk group, and myrplan_id is the recovery plan ID.

If "Ask reason for all operations" is enabled under Advanced Authorization in the Management Server perspective, then you need to provide a reason for performing the operation.

Note:

The output of the query URL for an object displays the encoded_id value. You need to use this encoded ID value to update the extended attribute for that object.

Similarly the GET request on an operation URL shows a sample URL for executing the operation.

More Information

About performing operations using Veritas InfoScale Operations Manager Web services API