Nacos サービスソースを追加します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:AddServiceSource |
create |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Type |
string |
任意 |
サービスソースのタイプ。
|
The Ingress configuration. |
| Source |
string |
任意 |
サービスソース。
|
K8s,MSE |
| Address |
string |
任意 |
Ingress クラスをモニターするかどうかを指定します。 |
c9ad2a0717032427e920754e25b49e3b5 |
| Name |
string |
任意 |
モニターするリソースの名前空間。 |
istio |
| GatewayUniqueId |
string |
必須 |
Ingress のステータスを更新するかどうかを指定します。 |
gw-c70622ff52fe49beb29bea9a6f52**** |
| IngressOptionsRequest |
object |
任意 |
サービスグループのリストです。 |
|
| EnableIngress |
boolean |
任意 |
サービスが所属するグループです。 |
true |
| IngressClass |
string |
任意 |
サービスのルートパスの配列です。 |
com.test.xxx |
| WatchNamespace |
string |
任意 |
サービスのルートパスです。 |
default |
| EnableStatus |
boolean |
任意 |
応答の言語。設定可能な値は次のとおりです:
|
true |
| ToAuthorizeSecurityGroups |
array<object> |
任意 |
権限を付与するセキュリティグループのリスト。セキュリティグループを指定して、作成したデータソースへのバックエンドサービスからのアクセスを許可できます。 |
|
|
object |
任意 |
|||
| SecurityGroupId |
string |
任意 |
セキュリティグループの ID。 |
sg-bp1acepclex0vmi1**** |
| PortRange |
string |
任意 |
セキュリティグループに権限を付与するポート範囲。複数のポート範囲を選択できます。各ポート範囲はコンマ (,) で区切ります。 |
8080/8080,9000/10000 |
| Description |
string |
任意 |
権限付与レコードの説明。 |
rule for xxx |
| GroupList |
array |
任意 |
データ構造。 |
|
|
string |
任意 |
リクエストの ID です。 |
NACOS |
|
| PathList |
array |
任意 |
返される HTTP ステータスコードです。 |
|
|
string |
任意 |
返されるメッセージ。 |
/test |
|
| AcceptLanguage |
string |
任意 |
応答の言語。有効値:
|
zh-CN |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエストが成功したかどうかを示します。有効値:
|
||
| RequestId |
string |
応答データです。 |
D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA |
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
| Message |
string |
mse-200-105 |
You are not authorized to perform this operation. Action: mse:AddServiceSource, Resource: acs:mse:cn-hangzhou:1105471854403716:instance/gw-082c943a8c304e48a37a7a29a5ddeda7 |
| Code |
integer |
クラスターエイリアス名が重複しています。 |
200 |
| Success |
boolean |
重複したクラスターエイリアス名 |
true |
| Data |
integer |
mse-100-007 |
63 |
例
成功レスポンス
JSONJSON
{
"RequestId": "D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation. Action: mse:AddServiceSource, Resource: acs:mse:cn-hangzhou:1105471854403716:instance/gw-082c943a8c304e48a37a7a29a5ddeda7",
"Code": 200,
"Success": true,
"Data": 63
}
エラーコード
|
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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。