查询nacos灰度配置
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:GetNacosConfig |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID |
mse-cn-st21ri2**** |
| NamespaceId |
string |
否 |
命名空间 id |
6bafdde3-4fa7-4d67-b3da-a607ab87f7e4 |
| Group |
string |
否 |
配置分组 |
DEFAULT_GROUP |
| DataId |
string |
是 |
配置 dataId |
demo-develop |
| RegionId |
string |
否 |
集群所在地域。 |
cn-hangzhou |
| RequestPars |
string |
否 |
字段弃用 |
{} |
| GrayName |
string |
否 |
灰度规则名称 |
test |
| AcceptLanguage |
string |
否 |
返回结果显示的语言。取值:zh(默认值):中文,en:英文 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RestResult |
||
| RequestId |
string |
请求 ID。 |
EE5C32A1-BC0E-4B79-817C-103E4EDF**** |
| Data |
object |
返回数据。 |
|
| GrayType |
string |
灰度类型,Beta 或者 Tag |
Tags |
| GrayRule |
string |
灰度规则 |
nacos.config.gray.label=test |
| Group |
string |
配置分组 |
dubbo |
| DataId |
string |
配置 dataId |
test.yaml |
| Content |
string |
配置内容 |
text |
| Md5 |
string |
配置内容 md5 |
87d14faf58a103ac8840b9c5f1c2a0fe |
| LastModified |
string |
配置最后修改时间 |
1742277568000 |
| AppName |
string |
应用名称。 |
spring-cloud-a |
| GrayRuleName |
string |
灰度版本名称 |
Beta(IP) |
| GrayRulePriority |
string |
灰度版本优先级 |
100 |
示例
正常返回示例
JSON格式
{
"RequestId": "EE5C32A1-BC0E-4B79-817C-103E4EDF****",
"Data": {
"GrayType": "Tags",
"GrayRule": "nacos.config.gray.label=test",
"Group": "dubbo",
"DataId": "test.yaml",
"Content": "text",
"Md5": "87d14faf58a103ac8840b9c5f1c2a0fe",
"LastModified": "1742277568000",
"AppName": "spring-cloud-a",
"GrayRuleName": "Beta(IP)",
"GrayRulePriority": "100"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。