{
"id": 74,
"namespace": "default",
"group": "testGroup",
"name": "application5.txt",
"format": "yaml",
"comment": "config for test",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"encrypt_algo": "sint cillum aliquip",
"encrypted": false,
"tags": [
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
}
],
"supported_client": "dolor Ut",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}
curl --location --request PUT 'http://119.91.66.223:8090/config/v1/configfiles' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 74,
"namespace": "default",
"group": "testGroup",
"name": "application5.txt",
"format": "yaml",
"comment": "config for test",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"encrypt_algo": "sint cillum aliquip",
"encrypted": false,
"tags": [
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
}
],
"supported_client": "dolor Ut",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}'
{
"code": 200000,
"info": "execute success",
"configFile": {
"id": 8,
"name": "application5.txt",
"namespace": "default",
"group": "testGroup",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"format": "yaml",
"comment": "config for test",
"tags": [
{
"key": "tagKey",
"value": "tagValue"
}
],
"supported_client": "CLIENT_AGENT",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}
}