查詢 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 | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。