Queries the grayscale configuration of a Nacos canary release environment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetNacosConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
mse-cn-st21ri2**** |
| NamespaceId |
string |
No |
The namespace ID. |
6bafdde3-4fa7-4d67-b3da-a607ab87f7e4 |
| Group |
string |
No |
The configuration group. |
DEFAULT_GROUP |
| DataId |
string |
Yes |
The DataId of the configuration. |
demo-develop |
| RegionId |
string |
No |
The region where the cluster resides. |
cn-hangzhou |
| RequestPars |
string |
No |
This field is deprecated. |
{} |
| GrayName |
string |
No |
The name of the canary release rule. |
test |
| AcceptLanguage |
string |
No |
The language of the response. Valid values: zh (default): Chinese. en: English. |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
The request ID. |
EE5C32A1-BC0E-4B79-817C-103E4EDF**** |
| Data |
object |
The returned data. |
|
| GrayType |
string |
The canary release type. Valid values: Beta or Tag. |
Tags |
| GrayRule |
string |
The canary release rule. |
nacos.config.gray.label=test |
| Group |
string |
The configuration group. |
dubbo |
| DataId |
string |
The DataId of the configuration. |
test.yaml |
| Content |
string |
The configuration content. |
text |
| Md5 |
string |
The MD5 hash of the configuration content. |
87d14faf58a103ac8840b9c5f1c2a0fe |
| LastModified |
string |
The last modification time of the configuration. |
1742277568000 |
| AppName |
string |
The application name. |
spring-cloud-a |
| GrayRuleName |
string |
The name of the canary release version. |
Beta(IP) |
| GrayRulePriority |
string |
The priority of the canary release version. |
100 |
Examples
Success response
JSON format
{
"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"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.