Template Library
Learn about the Template Library APIs that can be used to query templates that contain system or logical partition configuration information.
System Templates
REST API for querying all system templates:
/rest/api/templates/SystemTemplate
Param Name | Description |
---|---|
draft | Checks for draft templates or original templates request. [values: true|false] |
detail | Checks whether an request for complete data or list of templates has been made. [values: full|table] |
REST API for querying a particular system template:
/rest/api/templates/SystemTemplate/{UUID}
REST API for deleting a particular system template:
/rest/api/templates/SystemTemplate/{UUID}
REST API for adding a new template to template library:
/rest/api/templates/SystemTemplate {template xml as payload}
Method | Description | Internet media type |
---|---|---|
GET | To retrieve the template or templates. | application/atom+xml |
PUT | To add a new template to template library. | application/vnd.ibm.powervm.templates+xml;type=SystemTemplate |
DELETE | To delete a partition template. | application/vnd.ibm.powervm.web+xml |
Partition Templates
REST API for querying all partition templates:
/rest/api/templates/PartitionTemplate
Param Name | Description |
---|---|
draft | Checks for draft templates or original templates request. [values: true|false] |
detail | Checks whether an request for complete data or list of templates has been made. [values: full|table] |
REST API for querying a particular partition template:
/rest/api/templates/PartitionTemplate/{UUID}
REST API for deleting a particular partition template:
/rest/api/templates/PartitionTemplate/{UUID}
REST API for adding a new template to template library:
/rest/api/templates/PartitionTemplate {template xml as payload}
Method | Description | Internet media type |
---|---|---|
GET | To retrieve the template or templates. | application/atom+xml |
PUT | To add a new template to template library. | application/vnd.ibm.powervm.templates+xml;type=PartitionTemplate |
DELETE | To delete a partition template. | application/vnd.ibm.powervm.web+xml |