カスタムルートエントリーを作成します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:CreateEnsRouteEntry |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RouteTableId |
string |
必須 |
カスタムルートエントリーを追加するルートテーブルの ID です。 |
vtb-bp1cifr72dioje82lse2j |
| DestinationCidrBlock |
string |
必須 |
カスタムルートエントリーの宛先 CIDR ブロックです。以下の要件を満たす必要があります:
|
120.XXX.XXX.0/24 |
| NextHopType |
string |
任意 |
カスタムルートのネクストホップタイプです。有効な値は以下のとおりです:
|
Instance |
| NextHopId |
string |
必須 |
カスタムルートエントリーのネクストホップの ID です。 |
i-5vb7leks9z4mxy1ay258 |
| RouteEntryName |
string |
任意 |
追加するカスタムルートエントリーの名前です。長さは 1~128 文字で、http:// や https:// で始めてはなりません。 |
test |
| Description |
string |
任意 |
カスタムルートエントリーの説明です。 |
example |
| SourceCidrBlock |
string |
任意 |
送信元 CIDR ブロックは、ゲートウェイルートテーブルでルートエントリーを設定する場合に利用可能です。ただし、vSwitch ルートテーブルでは利用できません。 |
172.XXX.XXX.0/24 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| RouteEntryId |
string |
ルートの ID です。 |
rte-5vb5q8sk0lyoscx8539ds |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"RouteEntryId": "rte-5vb5q8sk0lyoscx8539ds"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. | |
| 400 | IncorrectStatus.Network | The status of the network is incorrect. | |
| 400 | InvalidNetworkType.NotSupported | The specified network type does not supported. | |
| 400 | QuotaExceeded | Route entry quota exceeded in this route table. | |
| 400 | InvalidRouteEntry.Duplicate | The route entry already exists. | |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | InvalidCidrBlock.Malformed | Specified CIDR block is not valid. | |
| 400 | InvalidSourceCidrBlock.Malformed | Specified Source CIDR Block is not valid. | |
| 400 | InvalidSourceCidrBlock.NotSupported | The route table does not support the source CIDR block parameter. | |
| 400 | InvalidNextHopType.NotSupported | This next hop type is not supported. | |
| 400 | HaVipNotFound | The input parameter haVipId that is not found. | |
| 400 | IncorrectHaVipStatus | The status of the haVip is invalid. | |
| 400 | InstanceNotFound.NetworkPeerConnection | Network peer connection not found, please check the InstanceId. | |
| 400 | IncorrectStatus.NetworkPeerConnection | The status of the network peer connection is incorrect. | |
| 400 | IncorrectNetworkInterfaceStatus | The operation could not be completed because the status of the specified network interface is invalid for this action. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。