# config-templates

Manage templates for config files
Set management node URL:

# GET /config-templates

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/config-templates

# Response 200

  • idstringoptional-
  • descriptionstringoptional-
  • currentTemplateNamestringoptional-
  • currentTemplatestringoptional-
  • availableTemplatesarrayoptional-
    • namestringoptional-
    • templatestringoptional-

# Example response

[
  {
    "id": "string",
    "description": "string",
    "currentTemplateName": "string",
    "currentTemplate": "string",
    "availableTemplates": [
      {
        "name": "string",
        "template": "string"
      }
    ]
  }
]

# PUT /config-templates/templates/{template}

# Parameters

  • templatestringpath-
  • bodyobjectoptional-
    • predefinedTemplatestringoptionalUse a pre-defined template. Either this or customTemplate must be set.
    • customTemplatestringoptionalSet a completely custom template. Either this or customTemplate must be set.

# Endpoint

curl -X PUT http://mgmt-node:8080/api/config-templates/templates/{template}

# Example body

{
  "predefinedTemplate": "string",
  "customTemplate": "string"
}