{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-ext-check-collection-templates-get-response-schema.json",
  "title": "ExtCheckCollectionTemplatesGetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-check-collection-templates-api-openapi.yml#/components/schemas/ExtCheckCollectionTemplatesGetResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExtCheckCollectionTemplateResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/SelfLinks"
        }
      ]
    }
  },
  "required": [
    "data",
    "_links"
  ],
  "$defs": {
    "CheckCollectionTemplatesCheckTemplates": {
      "type": "object",
      "properties": {
        "checkTemplateId": {
          "type": "number",
          "description": "Id of the check template"
        },
        "runConcurrent": {
          "type": "boolean",
          "description": "Can this check template be run in parallel with other checks"
        },
        "ignoreErrors": {
          "type": "boolean",
          "description": "Will errors be ignored when running this check template"
        },
        "remedyTemplates": {
          "description": "Remedy templates linked to this check template",
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemedyTemplateSummary"
          }
        },
        "checkTemplates": {
          "description": "Nested check templates",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CheckCollectionTemplatesCheckTemplates"
          }
        }
      },
      "required": [
        "checkTemplateId",
        "runConcurrent",
        "ignoreErrors"
      ]
    },
    "ExtCheckCollectionTemplateResponse": {
      "type": "object",
      "properties": {
        "checkCollectionTemplateId": {
          "type": "number",
          "description": "Check collection template's id"
        },
        "name": {
          "type": "string",
          "description": "Name of the check collection template"
        },
        "description": {
          "type": "string",
          "description": "Description for the check collection template"
        },
        "internal": {
          "type": "boolean",
          "description": "Is check collection only internal (not shown to the customer)"
        },
        "objectType": {
          "type": "string",
          "enum": [
            "vserver"
          ],
          "description": "Object type for which the check collection template can be used"
        },
        "checkTemplates": {
          "description": "Check templates which are part of this collection template",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CheckCollectionTemplatesCheckTemplates"
          }
        },
        "createdDate": {
          "type": "string",
          "format": "date-time",
          "description": "Creation date"
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "Modify date"
        },
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Customer id"
        }
      },
      "required": [
        "checkCollectionTemplateId",
        "name",
        "description",
        "internal",
        "objectType",
        "checkTemplates",
        "createdDate",
        "modifiedDate",
        "tenantId",
        "customerId"
      ]
    },
    "RemedyTemplateSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "description": "Remedy template id"
        },
        "name": {
          "type": "string",
          "enum": [
            "dummy_remedy_name",
            "success_remedy_name",
            "fail_remedy_name",
            "instance_restart_remedy_name",
            "instance_firewall_detach_remedy_name",
            "instance_live_migration_remedy_name"
          ],
          "description": "Translation key for the remedy name. Possible values: dummy_remedy_name, success_remedy_name, fail_remedy_name, instance_restart_remedy_name, instance_firewall_detach_remedy_name, instance_live_migration_remedy_name"
        },
        "description": {
          "type": "string",
          "enum": [
            "dummy_remedy_description",
            "success_remedy_description",
            "fail_remedy_description",
            "instance_restart_remedy_description",
            "instance_firewall_detach_remedy_description",
            "instance_live_migration_remedy_description"
          ],
          "description": "Translation key for the remedy description. Possible values: dummy_remedy_description, success_remedy_description, fail_remedy_description, instance_restart_remedy_description, instance_firewall_detach_remedy_description, instance_live_migration_remedy_description"
        }
      },
      "required": [
        "id",
        "name",
        "description"
      ]
    },
    "SelfLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        }
      },
      "required": [
        "self"
      ]
    }
  }
}