Summary
Convert a config spec into a readable string.
Description
Converts a object like config into a human-readable config string.
Route
POST /configuration_manager/translate/config_spec
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
treeID |
string |
yes |
- |
version |
string |
yes |
The version of the GC tree. |
nodePath |
string |
yes |
- |
options |
object |
yes |
options to update |
Copied to Clipboard
{
"treeID": "5c35355dbebaa82eaf8113f0",
"version": "initial",
"nodePath": "base/US East"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"treeID": {
"title": "treeID",
"type": "string",
"$ref": "common#/definitions/mongoObjectId"
},
"version": {
"title": "version",
"$ref": "goldenConfigData#/definitions/goldenConfigTreeVersionName"
},
"nodePath": {
"title": "nodePath",
"$ref": "goldenConfigData#/definitions/goldenConfigNodePath"
},
"options": {
"title": "options",
"type": "object",
"properties": {}
}
},
"required": [
"treeID",
"version",
"nodePath",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
configData |
object |
- |
Copied to Clipboard
{
"config": "interface Loopback01\n description loopback01"
}
Copied to Clipboard
{
"title": "configData",
"type": "object",
"properties": {
"config": {
"type": "string",
"examples": [
"interface Loopback01\n description loopback01"
]
}
}
}