Enterprise Edition トランジットルーターのルートテーブルをプレフィックスリストに関連付けます。
操作説明
To associate an Enterprise Edition transit router with a route prefix, you must meet the following requirements:
You are familiar with the limits and route compatibility notes of prefix lists. For more information, see Prefix lists.
A prefix list is created. For more information, see CreateVpcPrefixList.
If the prefix list and the Enterprise Edition transit router belong to different Alibaba Cloud accounts, the prefix list is shared with the Alibaba Cloud account that owns the Enterprise Edition transit router. For more information, see Resource sharing and API references for resource sharing.
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:CreateTransitRouterPrefixListAssociation |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間で一意であることを確認する必要があります。クライアントトークンには ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムは自動的に リクエスト ID を クライアントトークン として使用します。リクエスト ID はリクエストごとに異なる場合があります。 |
123e4567-e89b-12d3-a456-4266**** |
| RegionId |
string |
必須 |
トランジットルーターがデプロイされているリージョンの ID。 DescribeChildInstanceRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
cn-hangzhou |
| TransitRouterId |
string |
必須 |
トランジットルーターの ID。 |
tr-6ehx7q2jze8ch5ji0**** |
| NextHopType |
string |
任意 |
ネクストホップのタイプ。有効な値:
|
VPC |
| PrefixListId |
string |
必須 |
プレフィックスリストの ID。 |
pl-6ehtn5kqxgeyy08fi**** |
| TransitRouterTableId |
string |
必須 |
トランジットルーターのルートテーブルの ID。 |
vtb-6ehgc262hr170qgyc**** |
| NextHop |
string |
必須 |
ネクストホップ接続の ID。 プレフィックスリスト内のすべての CIDR ブロックをブラックホールルートとして指定するには、このパラメーターを BlackHole に設定します。 |
tr-attach-flbq507rg2ckrj**** |
| OwnerUid |
integer |
任意 |
プレフィックスリストが属する Alibaba Cloud アカウントの ID。 |
1210123456123456 |
| DryRun |
boolean |
任意 |
実際のリクエストを実行せずに、ドライランのみを実行するかどうかを指定します。有効な値:
説明
このパラメーターは使用されていません。 |
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response. |
||
| RequestId |
string |
The ID of the request. |
0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50 |
例
成功レスポンス
JSONJSON
{
"RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | NoPermission.AliyunServiceRolePolicyForCEN | You are not authorized to create the service linked role. Role Name: AliyunServiceRolePolicyForCEN. Service Name: cen.aliyuncs.com. Make sure that the user has been granted the ram:CreateServiceLinkedRole permission. | |
| 400 | ResourceNotSupport.CCN | CCN not support prefix list. | |
| 400 | ResourceNotFound.PrefixlistCidrs | Can not find any cidr of specified prefix list. | |
| 400 | ResourceNotFound.Nexthop | The specified nexthop instance is not exsit. | |
| 400 | ResourceExisted.PrefixlistAssociation | The prefix list has been already associated with this route table. | |
| 400 | ResourceNotFound.PrefixlistAssociation | The prefix list is not associated with this route table. | |
| 400 | ResourceConflict.Route | Some of the prefixes of the prefix list are conflicted with exsited routes. | |
| 400 | MultipleFound.PrefixlistAssociation | multiple same prefix association record found. | |
| 400 | QuotaReached.Route | The quota of the route table is not enough for the request prefix list. | |
| 400 | InvalidStatus.PrefixlistAssociation | The prefix list association is not in a valid state for the operation. | |
| 400 | NotSupport.TrType | The basic tr type is not support for this operation. | |
| 400 | InvalidValue.PrefixlistCidr | Invalid cidr exist in the specified prefixlist. | |
| 400 | ResourceNotSupport.Nexthop | The specified nexthop instance type is not support for the operation. | |
| 400 | ResourceMismatch.Nexthop | The specified nexthop and nexthop type mismatched. | |
| 400 | ResourceNotFound.PrefixList | The specified prefixlist does not found. | |
| 400 | OperationDenied.SystemPrefixList | SystemPrefixList can not be operated. | |
| 400 | OperationFailed.OperateShareResource | Operate share prefixlist failed. | |
| 400 | InvalidStatus.Prefixlist | Prefixlist is not in a operate status. | |
| 400 | RegionNotSupport.Prefixlist | Prefixlist association are not supported in this region. | |
| 400 | OperationFailed.TransitRouterNotExist | Operation failed because transit router not exist. | |
| 400 | IncorrectStatus.RouteTable | RouteTable status is invalid. | |
| 400 | IllegalParam.TransitRouterTableId | The specified Route Table ID is invalid. | |
| 400 | OperationDenied.ECSPrefixList | Associate ECS PrefixList is not supported. | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 404 | InvalidRouteTableId.NotFound | The specified RouteTableId is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。