UpdateTransitRouterVpcAttachmentAttribute API を使用して、Enterprise Edition トランジットルーターの VPC アタッチメントの名前と説明を変更し、VPC への自動ルート広報を制御します。
操作説明
UpdateTransitRouterVpcAttachmentAttribute は非同期オペレーションです。リクエストを送信した後、システムは RequestId を返し、バックグラウンドで変更を完了します。VPC 接続のステータスを確認するには、ListTransitRouterVpcAttachments を呼び出します。
VPC 接続が 変更中 状態の場合、照会のみ実行できます。
VPC 接続が 接続済み 状態の場合、変更が完了しています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:UpdateTransitRouterVpcAttachmentAttribute |
update |
*TransitRouterVpcAttachment
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用するクライアントトークン。 トークンはクライアント側で生成できますが、リクエスト間で一意である必要があります。クライアントトークンには ASCII 文字のみを含めることができます。 説明
このパラメータを指定しない場合、システムは自動的にリクエストの RequestId を ClientToken として使用します。 RequestId はリクエストごとに異なる場合があります。 |
02fb3da4-130e-11e9-8e44-001**** |
| TransitRouterAttachmentId |
string |
必須 |
VPC 接続の ID。 |
tr-attach-nls9fzkfat8934**** |
| TransitRouterAttachmentName |
string |
任意 |
VPC 接続の新しい名前。 名前は空、または 1~128 文字で、http:// または https:// で始めることはできません。 |
testname |
| TransitRouterAttachmentDescription |
string |
任意 |
VPC 接続の新しい説明。 説明は空、または 1~256 文字で、http:// または https:// で始めることはできません。 |
testdesc |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。ドライランでは、権限やインスタンスステータスなどの問題をチェックします。有効な値:
|
false |
| TransitRouterVPCAttachmentOptions |
object |
任意 |
VPC 接続の機能プロパティ。このパラメータは非推奨です。 |
|
|
string |
任意 |
VPC 接続の機能プロパティ。このパラメータは非推奨です。 ipv6Support: IPv6 機能を有効にするかどうかを指定します。
説明
VPC 接続の IPv6 機能を有効にする前に、VPC および VPC 内の vSwitch で機能が有効になっていることを確認してください。詳細については、「AllocateVpcIpv6Cidr」および「CreateVSwitchCidrReservation」をご参照ください。 |
ipv6Support:enable |
|
| AutoPublishRouteEnabled |
boolean |
任意 |
Enterprise Edition トランジットルーターが VPC にルートを自動的に広報するかどうかを指定します。
|
true |
| OrderType |
string |
任意 |
課金方法。 |
PayByCenOwner |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID です。 |
7E61D334-4025-41EF-9145-FC327B35301D |
例
成功レスポンス
JSONJSON
{
"RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IncorrectStatus.TransitRouterAttachmentId | TransitRouterAttachmentId status is invalid. | |
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | |
| 400 | InvalidOperation.RegionNotSupport | The operation is not supported in this region. | |
| 400 | InvalidOperation.VpcAutoRoutesPublishInOtherCEN | The operation is not supported because the VPC is already set autoRoutesPublish in other CEN. | |
| 400 | QuotaExceeded.VpcAutoRoutesPublishPerTransitRouter | The count of VPC instance which set autoRoutesPublish in transitRouter is over limit. | |
| 400 | InvalidOperation.VpnAssociated | The operation is not supported because the VPC is associated with VPN. | |
| 400 | IllegalParam.Ipv6Support | Ipv6Support is illegal. Valid Values are [enable, disable]. | |
| 400 | OperationFailed.VSwitchNotFound | The specified vswitch not found. | |
| 400 | OperationFailed.VSwitchIpv6CidrNotAllocated | The specified vswitch does not have IPv6 address allocated. | |
| 400 | OperationInvalid.AttachmentReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is the specified attachment. | |
| 400 | OperationInvalid.AttachmentReferencedVpcIPv6RouteEntryExisted | The specified attachment is referenced by vpc route entry(IPv6). | |
| 400 | OperationInvalid.EniReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is network interface that the specified attachment referenced. | |
| 400 | OperationUnsupported.VpcRoutePropagationSource | The operation on this VPC route propagation source is not supported. | |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 400 | INVALID_OPERATION_RESOURCE_NOT_SUPPORT_APPLIANCE_MODE | Only VPC attachment support appliance mode. | |
| 400 | InvalidParameter.Ipv6Support | The specified parameter Ipv6Support is invalid. | |
| 400 | InvalidParameter.ApplianceModeSupport | The specified parameter ApplianceModeSupport is invalid. | |
| 400 | ParamExclusive.TransitRouterVPCAttachmentOptionsAndOptions | When creating or modifying a VPC attachment, the input parameter TransitRouterVPCAttachmentOptions and Options cannot be used at the same time. | |
| 400 | InvalidParameter.OrderType | The specified parameter OrderType is invalid. | |
| 400 | InvalidOperation.OrderTypeMustMatchGrantCrossAccount | The OrderType must be the same as the OrderType in the grant cross-account record. | |
| 400 | OperationFailed.GrantCrossAccountNotExist | Cross-account authorization does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。