{
"namespace": "default",
"group": "testGroup",
"file_name": "application6.yml",
"format": "yml",
"comment": "config for test",
"content": "china: [ 'beijing', 'shanxi', 'hebei', 'neimeng', 'shannxi' ]",
"encrypt_algo": "magna enim nostrud velit minim",
"encrypted": true,
"tags": [
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
}
],
"release_name": "v1.0.8",
"release_description": "nisi nulla Lorem Duis eiusmod",
"supported_client": "velit",
"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/createandpub' \
--header 'X-Polaris-Token;' \
--header 'X-Polaris-Config-Release-Strict: true' \
--header 'Content-Type: application/json' \
--data-raw '{
"namespace": "default",
"group": "testGroup",
"file_name": "application6.yml",
"format": "yml",
"comment": "config for test",
"content": "china: [ '\''beijing'\'', '\''shanxi'\'', '\''hebei'\'', '\''neimeng'\'', '\''shannxi'\'' ]",
"encrypt_algo": "magna enim nostrud velit minim",
"encrypted": true,
"tags": [
{
"key": "tagKey",
"value": "tagValue"
},
{
"key": "tagKey",
"value": "tagValue"
}
],
"release_name": "v1.0.8",
"release_description": "nisi nulla Lorem Duis eiusmod",
"supported_client": "velit",
"persistent": {
"encoding": "UTF-8",
"path": "/tmp/cody",
"postCmd": "echo aaa;\n echo ccc"
}
}'{
"code": 200000,
"info": "execute success",
"configFileRelease": {
"id": 8,
"name": "v1.0.8",
"namespace": "default",
"group": "testGroup",
"fileName": "application6.yml",
"md5": "40d4c5ceba52da868dae50c32c351cca"
}
}