v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
sourceTemplateManagementExternal

Update status of source template (deprecated)

Update the status (enable or disable) of a source template.

DEPRECATED: This endpoint will be removed soon. Please use PUT /v1/sourceTemplates/{id}/status instead.

put/v1/sourceTemplate/{id}/status

Path parameters

idstring required

Identifier of the source template to update.

Request body

status'enable' | 'disable' required

status to set for the source template (enable or disable).

Example request

{
  "status": "enable"
}

Response

Update source template status response

idstring

id of source template.

inputJsonobject

inputJson of source template

configstring

configuration of source template

totalCollectorLinkedinteger

count of total collector linked with this source template.

createdAtstring date-time

Creation timestamp in UTC in RFC3339 format.

modifiedAtstring date-time

Modification timestamp in UTC in RFC3339 format.

createdBystring

Id of the user who created source template

modifiedBystring

Id of the user who last modified the source template

status'enable' | 'disable'

Status of Source template

isEnabledboolean

A boolean parameter to get if the source template is enabled.

Example response

{
  "schemaRef": {
    "type": "Apache"
  },
  "id": "0000000003343FDD",
  "inputJson": {},
  "config": "apache.yaml.example",
  "selector": {
    "tags": [
      [
        {
          "key": "key1",
          "values": [
            "value1"
          ]
        }
      ]
    ],
    "names": [
      "demo_macOS"
    ]
  },
  "createdAt": "2018-10-16T09:10:00Z",
  "modifiedAt": "2018-10-16T09:10:00Z",
  "createdBy": "0000000006743FDD",
  "modifiedBy": "0000000006243FDD",
  "isEnabled": true
}