UpdateTransitRouterVpcAttachmentAttribute 操作を呼び出して、Enterprise Edition トランジットルーター上の VPC 接続の名前と説明を変更できます。この操作では、トランジットルーターが VPC インスタンスにルートを自動的に公開するかどうかを指定することもできます。
操作説明
UpdateTransitRouterVpcAttachmentAttribute は非同期操作です。リクエストを送信すると、システムは RequestId を返しますが、VPC 接続はすぐには変更されません。システムはバックグラウンドで変更を完了します。ListTransitRouterVpcAttachments 操作を呼び出して、VPC 接続のステータスをクエリできます。
VPC 接続が Modifying 状態の場合、接続が変更中であることを意味します。この状態では、接続のクエリのみが可能です。他の操作は実行できません。
VPC 接続が Attached 状態の場合、変更が完了したことを意味します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:UpdateTransitRouterVpcAttachmentAttribute |
update |
*TransitRouterVpcAttachment
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークンです。 リクエストごとにクライアントから一意の値を生成します。`ClientToken` には 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 および関連する vSwitch インスタンスで IPv6 機能が有効になっていることを確認してください。詳細については、「AllocateVpcIpv6Cidr」および「CreateVSwitchCidrReservation」をご参照ください。 |
ipv6Support:enable |
|
| AutoPublishRouteEnabled |
boolean |
任意 |
Enterprise Edition トランジットルーターが VPC インスタンスにルートを自動的に公開することを許可するかどうかを指定します。
|
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。