配置发布
POST
/config/v1/configfiles/release
最后修改时间:2024-11-21 09:53:09
责任人:未设置
请求参数
Header 参数
X-Polaris-Token
string
可选
X-Polaris-Config-Release-Strict
string
可选
示例值:
true
Body 参数application/json
name
string
配置发布版本
config_file_id
integer
配置文件ID
namespace
string
命名空间
group
string
配置分组
file_name
string
配置文件名
releaseDescription
string
发布描述
releaseType
string
配置发布类型
betaLabels
array [object {2}]
配置灰度标签
key
string
必需
value
object (MatchString)
必需
示例
{
"config_file_id": 10,
"namespace": "default",
"group": "GROUP-123",
"file_name": "application.yaml",
"name": "v6"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://119.91.66.223:8090/config/v1/configfiles/release' \
--header 'X-Polaris-Token;' \
--header 'X-Polaris-Config-Release-Strict: true' \
--header 'Content-Type: application/json' \
--data-raw '{
"config_file_id": 10,
"namespace": "default",
"group": "GROUP-123",
"file_name": "application.yaml",
"name": "v6"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
info
string
提示信息
configFileRelease
object
可选
id
integer
配置发布ID
name
string
配置发布版本
namespace
string
命名空间
group
string
配置分组
file_name
string
配置文件名
active
boolean
是否生效
示例
{
"code": 200000,
"info": "execute success",
"configFileRelease": {
"id": 8,
"name": "v1.0.8",
"namespace": "default",
"group": "testGroup",
"fileName": "application6.txt",
"md5": "40d4c5ceba52da868dae50c32c351cca"
}
}
修改于 2024-11-21 09:53:09