批量删除配置文件
POST
/config/v1/configfiles/batchdelete
最后修改时间:2024-09-30 04:08:19
责任人:未设置
请求参数
Header 参数
X-Polaris-Token
string
可选
Body 参数application/json
array of:
id
integer
配置文件ID
namespace
string
命名空间
group
string
配置分组名称
name
string
配置文件名称
示例
[
{
"id": 0,
"namespace": "string",
"group": "string",
"name": "string"
}
]
示例代码
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/batchdelete' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"id": 0,
"namespace": "string",
"group": "string",
"name": "string"
}
]'
返回响应
🟢200成功
application/json
Body
code
integer
返回码
info
string
提示信息
configFiles
array [object {4}]
必需
id
integer
主键
namespace
string
命名空间
group
string
配置分组名称
name
string
配置文件名称
示例
{
"code": 200000,
"info": "execute success",
"configFiles": [
{
"id": 9,
"name": "application12.txt",
"namespace": "default",
"group": "testGroup"
},
{
"id": 10,
"name": "application13.txt",
"namespace": "default",
"group": "testGroup"
}
]
}
修改于 2024-09-30 04:08:19