{
"$id": "goldenConfigData",
"definitions": {
"goldenConfigNodePath": {
"title": "goldenConfigNodePath",
"type": "string",
"examples": [
"base",
"base/US East",
"base/US East/Atlanta"
]
},
"goldenConfigTreeVersionName": {
"title": "goldenConfigTreeVersionName",
"type": "string",
"examples": [
"initial",
"v2",
"v3",
"draft-v4"
]
},
"goldenConfigNode": {
"title": "goldenConfigNode",
"type": "object",
"properties": {
"name": {
"type": "string",
"examples": [
"base",
"us-east",
"edge"
]
},
"attributes": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"$ref": "deviceData#/definitions/deviceName"
}
},
"configId": {
"$ref": "common#/definitions/mongoObjectId"
}
}
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/goldenConfigNode"
}
}
},
"required": [
"name",
"attributes",
"children"
]
},
"goldenConfigTreeVariable": {
"type": "object",
"properties": {
"name": {
"type": "string",
"examples": [
"variable name"
]
},
"type": {
"type": "string",
"enum": [
"literal",
"regex"
]
},
"value": {
"type": "string",
"examples": [
"variable value"
]
}
}
},
"goldenConfigTreeVersion": {
"title": "goldenConfigTreeVersion",
"type": "object",
"properties": {
"id": {
"$ref": "common#/definitions/mongoObjectId"
},
"name": {
"type": "string",
"examples": [
"Cisco Edge - Day 0",
"Cisco Edge - Day 1",
"Cisco Core - Day 0",
"Cisco Core - Day 1"
]
},
"deviceType": {
"type": "string",
"examples": [
"cisco-ios",
"cisco-ios-xr",
"cisco-nx",
"a10-acos",
"f5-big-ip"
]
},
"version": {
"type": "string",
"examples": [
"initial",
"v2",
"v3",
"draft v4"
]
},
"root": {
"$ref": "#/definitions/goldenConfigNode"
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/goldenConfigTreeVariable"
}
},
"created": {
"$ref": "common#/definitions/timestamp"
},
"createdBy": {
"$ref": "common#/definitions/mongoObjectId"
},
"lastUpdated": {
"$ref": "common#/definitions/timestamp"
},
"lastUpdatedBy": {
"$ref": "common#/definitions/mongoObjectId"
}
}
},
"goldenConfigTreeVersionSummary": {
"title": "goldenConfigTreeVersion",
"type": "object",
"properties": {
"id": {
"$ref": "common#/definitions/mongoObjectId"
},
"name": {
"type": "string",
"examples": [
"Cisco Edge - Day 0",
"Cisco Edge - Day 1",
"Cisco Core - Day 0",
"Cisco Core - Day 1"
]
},
"deviceType": {
"type": "string",
"examples": [
"cisco-ios",
"cisco-ios-xr",
"cisco-nx",
"a10-acos",
"f5-big-ip"
]
},
"versions": {
"type": "array",
"items": {
"type": "string",
"examples": [
"initial",
"v2",
"v3",
"draft v4"
]
}
},
"created": {
"$ref": "common#/definitions/timestamp"
},
"lastUpdated": {
"$ref": "common#/definitions/timestamp"
}
}
},
"goldenConfigSpecWord": {
"title": "goldenConfigSpecWord",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"literal",
"regex",
"variable"
]
},
"value": {
"type": "string",
"examples": [
"