{
"namespace": "default",
"group": "GROUP-123",
"name": "application.yaml",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"comment": "config for test",
"format": "yaml",
"tags": [
{
"key": "key1",
"value": "value1"
}
],
"supported_client": "CLIENT_AGENT",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}curl --location --request POST 'http://119.91.66.223:8090/config/v1/configfiles' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"namespace": "default",
"group": "GROUP-123",
"name": "application.yaml",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"comment": "config for test",
"format": "yaml",
"tags": [
{
"key": "key1",
"value": "value1"
}
],
"supported_client": "CLIENT_AGENT",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}'{
"code": 200000,
"info": "execute success",
"configFile": {
"id": 1,
"name": "application.yaml",
"namespace": "default",
"group": "GROUP-123",
"content": "coffees: [ \"Latte\", \"Cappuccino\", \"Espresso\"]",
"format": "yaml",
"comment": "config for test",
"tags": [
{
"key": "key1",
"value": "value1"
}
],
"supported_client": "CLIENT_AGENT",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}
}