添加部署平台分组配置
POST
/api/ssl/deploy-group-configure
ssl
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Accept
string
可选
示例值:
application/json
Body 参数application/json
object {0}
示例
{
"oid": "2024051149844",
"deploy_platforms": [
{
"name": "【正式环境(旧)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {
"api_key": "3FICLWnzp9GiBV8Dqc3bisEVIGeELij2",
"api_url": "http://106.53.97.59:39469"
}
},
{
"name": "【测试环境(新)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {
"api_key": "8NHBPzjQWZomwgttR4zTZCVhHyTQdUCR",
"api_url": "http://43.139.182.96:31641"
}
},
{
"name": "【正式环境(新)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {
"api_key": "f26ZGTFgVPakGKpfk2LizBrLeCY2mLo6",
"api_url": "http://111.229.162.163:27648"
}
},
{
"name": "【正式环境】爱湾 BT",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {
"api_key": "JVAiShO1SNb6m8rtIX9THXV1m9hIaBnW",
"api_url": "http://106.55.101.15:18475"
}
},
{
"name": "【正式环境】爱湾销售 BT",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {
"api_key": "bVKaCxIxiozr8mBoUZSYbqtL3u3W5H88",
"api_url": "http://193.112.55.92:30803"
}
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://translate-api.plugins-world.cn/api/ssl/deploy-group-configure' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"oid": "2024051149844",
"deploy_platforms": [
{
"name": "【正式环境(旧)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {"api_key": "3FICLWnzp9GiBV8Dqc3bisEVIGeELij2", "api_url": "http://106.53.97.59:39469"}
},
{
"name": "【测试环境(新)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {"api_key": "8NHBPzjQWZomwgttR4zTZCVhHyTQdUCR", "api_url": "http://43.139.182.96:31641"}
},
{
"name": "【正式环境(新)】插件世界",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {"api_key": "f26ZGTFgVPakGKpfk2LizBrLeCY2mLo6", "api_url": "http://111.229.162.163:27648"}
},
{
"name": "【正式环境】爱湾 BT",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {"api_key": "JVAiShO1SNb6m8rtIX9THXV1m9hIaBnW", "api_url": "http://106.55.101.15:18475"}
},
{
"name": "【正式环境】爱湾销售 BT",
"platform_type": "ecs",
"deploy_type": "ecs_bt",
"configs": {"api_key": "bVKaCxIxiozr8mBoUZSYbqtL3u3W5H88", "api_url": "http://193.112.55.92:30803"}
}
]
}'
返回响应
🟢200成功
application/json
Body
err_code
string
错误码
err_msg
string
错误提示
data
array [object {2}]
数据
lang_tag
enum<string>
结果语言
枚举值:
百度翻译谷歌翻译有道翻译金山翻译腾讯翻译
content
string
翻译结果
示例
{
"err_code": "string",
"err_msg": "string",
"data": [
{
"lang_tag": "百度翻译",
"content": "string"
}
]
}
修改于 2024-06-08 17:58:11