UpdateTransitRouterVpcAttachmentAttribute 操作を呼び出して、Enterprise Edition トランジットルーター上の VPC 接続の名前と説明を変更します。この操作を使用して、Enterprise Edition トランジットルーターが VPC にルートを自動的に公開するかどうかを指定することもできます。
操作説明
UpdateTransitRouterVpcAttachmentAttribute は非同期操作です。リクエストを送信すると、システムはリクエスト ID を返しますが、VPC 接続はすぐには変更されません。システムはバックグラウンドで VPC 接続を変更します。ListTransitRouterVpcAttachments 操作を呼び出して、VPC 接続のステータスをクエリできます。
VPC 接続が Modifying 状態の場合、VPC 接続のクエリのみ可能で、他の操作は実行できません。
VPC 接続が Attached 状態の場合、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 とそれに関連付けられている 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。