v1
latestOpenAPI 3.0.02026-08-064311,0881.3 MBsourceTemplateManagementExternal
Preview source template linking changes.
Given the set of tags user wants to update, display the list of source templates that will be linked/unlinked to the otCollector.
post/v1/sourceTemplates/getLinkedSourceTemplatesImpact
Request body
Example request
{
"collectorId": "00005AF3107BF0D6",
"tags": {
"environment": "production",
"location": "us-west-2"
},
"updatedName": "demo_macOS"
}Response
A list of source templates whose linking to the otCollector will be impacted.
Example response
{
"collectorId": "00005AF3107BF0D6",
"addedSourceTemplates": [
{
"sourceTemplateDefinition": {
"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
},
"reasonTags": [
[
{
"key": "key1",
"value": "value1"
}
]
]
}
],
"removedSourceTemplates": [
{
"sourceTemplateDefinition": {
"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
},
"reasonTags": [
[
{
"key": "key1",
"value": "value1"
}
]
]
}
]
}