Tüm Ürünler
Search
Belge Merkezi

:DeleteTransitRouterVpcAttachment

Son Güncelleme:Sep 29, 2026

DeleteTransitRouterVpcAttachment işlemini çağırarak bir Kurumsal Sürüm geçiş yönlendiricisinden sanal özel bulut (VPC) bağlantısını siler.

Operation description

DeleteTransitRouterVpcAttachment eş zamanlı olmayan bir işlemdir. Bir istek gönderdikten sonra sistem bir RequestId döndürür ancak VPC bağlantısı henüz silinmemiştir. Silme görevi arka planda çalışmaya devam eder. VPC bağlantısının durumunu sorgulamak için ListTransitRouterVpcAttachments işlemini çağırabilirsiniz.

  • VPC bağlantısı Detaching durumundaysa, VPC bağlantısı siliniyor demektir. Bu durumda yalnızca VPC bağlantısını sorgulayabilirsiniz. VPC bağlantısı üzerinde başka işlemler gerçekleştiremezsiniz.

  • VPC bağlantısı bulunamıyorsa, VPC bağlantısı silinmiş demektir.

DeleteTransitRouterVpcAttachment işlemini çağırırken, belirttiğiniz parametre değerlerinin geçerli olduğundan emin olun. Geçersiz parametre değerleri belirtirseniz, sistem yine de bir RequestId döndürür ancak VPC bağlantısını Kurumsal Sürüm geçiş yönlendiricisinden silmez.

Başlamadan önce

Bir VPC bağlantısını silmeden önce, VPC'ye bağlı örneği kullanarak PrivateZone'a erişmek için bir yönlendirme kuralı yapılandırmadığınızdan emin olun. PrivateZone yönlendirme kuralını silmek için UnroutePrivateZoneInCenToVpc belgesine bakın.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cen:DeleteTransitRouterVpcAttachment

delete

*TransitRouterVpcAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

İsteğin idempotent olmasını sağlamak için kullanılan istemci belirteci.

Belirteci oluşturmak için istemciyi kullanabilirsiniz, ancak belirtecin farklı istekler arasında benzersiz olduğundan emin olmalısınız. İstemci belirteci yalnızca ASCII karakterleri içerebilir.

Not

Bu parametreyi belirtmezseniz, sistem otomatik olarak API isteğinin RequestId değerini ClientToken olarak kullanır. RequestId her API isteği için farklı olabilir.

02fb3da4-130e-11e9-8e44-001****

TransitRouterAttachmentId

string

Yes

VPC bağlantısının kimliği.

tr-attach-ia340z7xis7t5s****

DryRun

boolean

No

İzin ve örnek durumu doğrulaması dahil olmak üzere deneme çalıştırması yapılıp yapılmayacağını belirtir. Geçerli değerler:

  • false (varsayılan): Normal bir istek gönderir. İstek kontrolü geçerse VPC bağlantısı silinir.

  • true: Bir kontrol isteği gönderir. Yalnızca kontrol gerçekleştirilir. VPC bağlantısı silinmez. Sistem gerekli parametreleri, istek biçimini ve diğer koşulları kontrol eder. Kontrol başarısız olursa ilgili hata döndürülür. Kontrol başarılı olursa ilgili istek kimliği döndürülür.

false

Force

boolean

No

VPC bağlantısının zorla silinip silinmeyeceğini belirtir. Geçerli değerler:

  • false (varsayılan): VPC bağlantısı silinmeden önce sistem, ilişkili iletme ve yönlendirme öğrenimi gibi ilgili kaynak bağımlılıklarının var olup olmadığını kontrol eder. İlgili bağımlılıklar varsa VPC bağlantısı silinmez ve ilgili hata döndürülür.

  • true: VPC bağlantısı silindiğinde, ilgili tüm bağımlılıklar da silinir.

false

Response elements

Element

Type

Description

Example

object

Yanıt.

RequestId

string

İstek kimliği.

7E61D334-4025-41EF-9145-FC327B35301D

Examples

Success response

JSON format

{
  "RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}

Error codes

HTTP status code

Error code

Error message

Description

400 OperationFailed.AttachmentReferencedVpcRouteEntryExisted Operation is failed because there is at least one route entry which next hop is the specified attachment.
400 OperationFailed.RouteTablePropagationExist The specified TransitRouterAttachment has configured RouteTablePropagation. Please remove the configuration first.
400 OperationFailed.MulticastDomainAssociationExist The specified TransitRouterAttachment has configured MulticastDomainAssociation. Please remove the configuration first.
400 OperationUnsupported.TransitRouterType The specified TransitRouterType does not support the operation.
400 OperationFailed.PrefixListExist Operation failed because PrefixList exists.
400 InvalidTransitRouterAttachmentId.NotFound TransitRouterAttachmentId is not found.
400 IncorrectStatus.VpcRouteEntry The resource is not in a valid state for the attachment operation.
400 IncorrectStatus.VpcSwitch The resource is not in a valid state for the attachment operation.
400 IncorrectStatus.Vpc The resource is not in a valid state for the operation.
400 OperationFailed.NotSupportForceDelete Not support force delete attachment.
400 IncorrectStatus.VpcRouteTable The VPC route table is not in a desired state.
400 OperationFailed.RouteEntryExist Failed to delete the instance because a route table entry points to the instance.
400 OperationFailed.RouteTableAssociationExist Operation failed because there is associated routing table.
400 IncorrectStatus.VpcResource The resource is not in a valid state for the attachment operation.
400 OperationFailed.FlowLogExistOrNisOpened Operation failed because FlowLog exists or Nis opened.
400 InvalidParameter Invalid parameter.
400 Unauthorized The AccessKeyId is unauthorized.
400 OperationNotPermitted.AttachmentManagedByCloudService The specified Attachment managed by cloud service can only be deleted through cloud service.
400 InvalidParameter.TransitRouterAttachmentId The specified parameter TransitRouterAttachmentId is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.