Patch Templates

Creates a new patch patch template

Changed on

Defines a new template by specifying the type of the patch "agentless" or "agentbased" and a source of the ansible playbook.

post/patchTemplates

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

playbookFileContentstring required

A base64 encoded string of the playbook file

namestring required

Name of template.

patchType'agentless' | 'agentbased' required

type

enabledboolean

Whether the template is enabled for use.

descriptionstring

Description regarding the template

extraVars[<key>]string

Extra Variables that need to be passed down to the ansible exeucution as input external paramters

Example request

{
  "name": "ggv2 installer template",
  "patchType": "agentbased",
  "playbookFileContent": "LS0tCi0gaG9zdHM6IGFsbAogIHJlbW90ZV91c2VyOiBlYzJfdXNlcgogIGdhdGhlcl9mYWN0czogZmFsc2UKICBiZWNvbWU6IHllcwogIHRhc2tzOgogICAgLSBwaW5nOgo=",
  "extraVars[key1]": "val1",
  "extraVars[key2]": "val2"
}

Response

Created

Changes