Skip to content

Offering templates

An offering template describes a site agent offering: its components, plans and prices, and its site agent configuration, with parameters that a service provider fills in. Service providers create offerings from the published templates, so a new cluster gets a configuration that is known to work instead of one typed in by hand.

Secrets, files, screenshots, organizations and resources are never part of a template.

Only staff can create, edit, publish or delete templates. Service providers see only the published ones, when they create an offering.

Find the templates

Open Administration, select Offerings in its marketplace menu, then the Offering templates tab. Each template is listed with its offering type, its current version, whether it is published, and when it was last modified. Expand a row to see the template's description, components, plans and parameters, with the setting each parameter fills in.

The offering templates of a portal

Add a template

There are three ways to add one:

  • From an offering. In a site agent offering's actions, click Save as template, then give the template a name and, optionally, a description. The offering, its components, plans and agent configuration are saved as a template. The new template is not published.
  • From a preset. Click Load preset and select the presets this portal ships. Each preset loaded becomes a template of its own, which keeps no link to the preset. Tick Publish after loading to offer the templates right away.
  • By hand. Click Add, then enter the name, the description shown to service providers, the offering type, and the template's document.

Publish a template

A template is offered to service providers only while it is published. Toggle Published in the list, or in the template's Edit dialog. An unpublished template stays in the list for staff, and offerings already created from it are not affected.

Change a template

Click Edit in the template's actions. Each change to the template's document is kept as a version: Version history lists them, and shows the document of each.

Offerings created from the template keep the version they were created from and are not changed. Their Template differences show where they differ from that version and from the latest one, see Compare with the offering template.

Deleting a template does not affect the offerings created from it, but they can no longer be compared with it.

Through the API

Templates are at /api/marketplace-offering-templates/. Staff create, update and delete them there, and list their versions at /api/marketplace-offering-templates/<template UUID>/versions/. GET /api/marketplace-offering-templates/presets/ lists the presets, and POST /api/marketplace-offering-templates/load_preset/ loads them. POST /api/marketplace-provider-offerings/<offering UUID>/save_as_template/ saves an offering as a template.