関連付けられたソースのリストをクエリします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:ListServiceSource |
get |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID です。 |
gw-c51a15c7ee934a4fb945ccf35fe1**** |
| Source |
string |
任意 |
返されるサービスソースのタイプを指定します。このパラメーターが指定されていない場合は、すべてのタイプのサービスソースが返されます。有効な値:
|
MSE |
| AcceptLanguage |
string |
任意 |
The language of the response. Valid values: 応答の言語。有効な値:
|
zh |
レスポンスフィールド
|
パラメーター |
型 |
説明 |
例 |
|
object |
データ構造。 |
||
| RequestId |
string |
リクエスト ID。 |
B8C4B0D8-EBB9-5F20-8295-04224FBE5529 |
| HttpStatusCode |
integer |
HTTP ステータスコード |
200 |
| Message |
string |
エラーメッセージ。 |
You are not authorized to perform this operation. |
| Code |
integer |
応答コード。 |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values: リクエストが成功したかどうかを示します。有効な値:
|
true |
| Data |
array |
返された結果。 |
|
|
object |
データ構造。 |
||
| Id |
integer |
ID。 |
1 |
| Name |
string |
名前。 |
test |
| Address |
string |
ACK ID または MSE レジストリアドレス。 |
*** |
| Type |
string |
活字 |
NACOS |
| Source |
string |
サービスソースのタイプ。 |
MSE |
| BindingWithGateway |
integer |
サービスソースがゲートウェイに関連付けられているかどうかを示します。 (値 1 は、関連付けが完了していることを示します) |
1 |
| GatewayId |
integer |
ゲートウェイID。 |
1 |
| GmtCreate |
string |
環境が作成された時間。 |
2022-01-07 18:07:57 |
| GmtModified |
string |
更新時間。 |
2022-01-07 18:07:57 |
| SourceUniqueId |
string |
サービスソースの一意の ID。 |
mse-cn-*** |
| IngressOptions |
object |
アプリケーション ルーティング Ingress のサポート。 |
|
| EnableIngress |
boolean |
Ingress を有効または無効にします。 |
true |
| IngressClass |
string |
Ingress クラス。 |
com.test.xxx |
| WatchNamespace |
string |
監視対象の名前空間。 |
default |
| EnableStatus |
boolean |
IngressStatus を更新するかどうかを示します。 |
true |
| GatewayUniqueId |
string |
ゲートウェイの一意の ID です。 |
gw-2u9uhd9283hd92hgd39g239dg2***** |
| GroupList |
array |
サービスグループの配列。 |
|
|
string |
サービスグループ |
DEFAULT_GROUP |
|
| PathList |
array |
サービスリストのルートパスの配列。 |
|
|
string |
サービスリストのルートパス。 |
/path |
|
| Invalid |
boolean |
ソースが有効かどうかを示します |
例
成功レスポンス
JSONJSON
{
"RequestId": "B8C4B0D8-EBB9-5F20-8295-04224FBE5529",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": [
{
"Id": 1,
"Name": "test",
"Address": "***",
"Type": "NACOS",
"Source": "MSE",
"BindingWithGateway": 1,
"GatewayId": 1,
"GmtCreate": "2022-01-07 18:07:57",
"GmtModified": "2022-01-07 18:07:57",
"SourceUniqueId": "mse-cn-***",
"IngressOptions": {
"EnableIngress": true,
"IngressClass": "com.test.xxx",
"WatchNamespace": "default",
"EnableStatus": true
},
"GatewayUniqueId": "gw-2u9uhd9283hd92hgd39g239dg2*****",
"GroupList": [
"DEFAULT_GROUP"
],
"PathList": [
"/path"
],
"Invalid": true
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。