查询指定服务下的动态参数列表。
接口说明
请求说明
该 API 用于查询特定服务下的动态参数列表。
ClusterId指定要查询的服务所属地域。ConfigType目前仅支持service类型。Name参数所属服务名称。可通过
Page和PageSize参数进行分页查询,默认每页显示 100 条记录,最大支持 200 条。返回结果中包含动态参数详情及分页信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/v2/configs/{ClusterId}/{ConfigType}/{Name} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
否 |
服务所属地域(必填) |
cn-hangzhou |
| ConfigType |
string |
否 |
配置类型(必填),目前仅支持 |
service |
| Name |
string |
否 |
服务名称(必填) |
my-llm-service |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Page |
integer |
否 |
页码,默认为 1 |
1 |
| PageSize |
integer |
否 |
每页数量,默认为 100,最大为 200 |
100 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构体 |
||
| Type |
string |
配置类型 |
Service |
| Name |
string |
服务名称 |
my-service |
| Configs |
array<object> |
动态参数列表 |
[{"Key": "rate_limit", "Value": "{\"limit\": 100}", "CreatedAt": "2024-01-15T10:30:00Z", "UpdatedAt": "2024-01-15T10:30:00Z"}] |
|
object |
|||
| Key |
string |
动态参数名称 |
rate_limit |
| Value |
string |
动态参数的值 |
100 |
| CreatedAt |
string |
创建时间 |
2024-01-01T10:00:00Z |
| UpdatedAt |
string |
更新时间 |
2024-01-01T10:00:00Z |
| Page |
integer |
当前页码 |
1 |
| PageSize |
integer |
每页数量 |
100 |
| Total |
integer |
总数量 |
150 |
| HasMore |
boolean |
是否有更多数据 |
true |
示例
正常返回示例
JSON格式
{
"Type": "Service",
"Name": "my-service",
"Configs": [
{
"Key": "rate_limit",
"Value": "100",
"CreatedAt": "2024-01-01T10:00:00Z",
"UpdatedAt": "2024-01-01T10:00:00Z"
}
],
"Page": 1,
"PageSize": 100,
"Total": 150,
"HasMore": true
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。