9. ptemplate – Package Template

Package template functionality.

9.1. Resources

9.1.1. PtemplateUUID

class ptemplate.PtemplateUUID

This resource represens a specific package template.

Resource URI:

/rest/hosting/ptemplate/<UUID>/
GET()

Retrieve the specified package template by submitting an HTTP GET request. The UUID in the resource uri should be the uuid of the target package template.

Note

This resource requires read permission on both the package template and the elastic_hosting extension module when using the HTTP GET method.

Return type:ptemplate.RepPtemplateUUID

9.1.2. PtemplateList

class ptemplate.PtemplateList

This resource represents a list of package templates.

Resource URI:

/rest/hosting/ptemplate/list/
GET()

Retrieve a list of package templates by submitting an HTTP GET request.

Note

This resource requires read permission on the elastic_hosting extension module.

Return type:ptemplate.RepPtemplateList

9.2. Representations

9.2.1. RepPtemplateUUID

class ptemplate.RepPtemplateUUID

This is a representation of a package template resource.

Representation:

{"uuid": ptemplate.uuid,
 "name": ptemplate.name,
 "storage": ptemplate.storage,
 "description": ptemplate.description,
 "os": ptemplate.os}

9.2.2. RepPtemplateList

class ptemplate.RepPtemplateList

This is a representation of a list of package templates. This is a list of ptemplate.RepPtemplateUUID representations.

Representation:

[ptemplate1, ptemplate2]