Tüm Ürünler
Search
Belge Merkezi

:CreateTransitRouterRouteEntry

Son Güncelleme:Sep 29, 2026

Kurumsal Sürüm geçiş yönlendiricisinin bir yönlendirme tablosuna rota girişi ekler.

Operation description

CreateTransitRouterRouteEntry eşzamansız bir işlemdir. Bir istek gönderdikten sonra sistem bir rota girişi kimliği döndürür ancak rota girişi henüz oluşturulmamıştır. Oluşturma görevi arka planda çalışmaya devam eder. Rota girişinin durumunu sorgulamak için ListTransitRouterRouteEntries işlemini çağırabilirsiniz.

  • Rota girişi Creating durumundaysa, rota girişi oluşturuluyor demektir. Bu durumda rota girişini yalnızca sorgulayabilirsiniz. Rota girişi üzerinde başka işlemler gerçekleştiremezsiniz.

  • Rota girişi Active durumundaysa, rota girişi başarıyla oluşturulmuştur.

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:CreateTransitRouterRouteEntry

create

*TransitRouterRouteTable

acs:cen:*:{#accountId}:centransitrouterroutetable/{#centransitrouterroutetableId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

İsteğin idempotentliğini 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****

TransitRouterRouteEntryName

string

No

Rota girişinin adı.

Ad boş bırakılabilir veya 1 ila 128 karakter uzunluğunda olabilir; http:// veya https:// ile başlayamaz.

testname

TransitRouterRouteEntryDescription

string

No

Rota girişinin açıklaması.

Açıklama boş bırakılabilir veya 1 ila 256 karakter uzunluğunda olabilir; http:// veya https:// ile başlayamaz.

testdesc

TransitRouterRouteTableId

string

Yes

Kurumsal Sürüm geçiş yönlendiricisinin yönlendirme tablosunun kimliği.

vtb-bp1dudbh2d5na6b50****

TransitRouterRouteEntryNextHopType

string

Yes

Sonraki atlama türü. Geçerli değerler:

  • BlackHole: Rota girişini bir karadelik rotası olarak belirtir. Hedef CIDR bloğuna yönelik tüm paketler bırakılır. Sonraki atlama bilgilerini belirtmenize gerek yoktur.

  • Attachment: Rota girişinin sonraki atlamasını bir ağ örneği bağlantısı olarak belirtir. Ayrıca ağ örneği bağlantı kimliğini de belirtmelisiniz. Hedef CIDR bloğuna yönelik tüm paketler belirtilen ağ örneği bağlantısına iletilir.

BlackHole

TransitRouterRouteEntryDestinationCidrBlock

string

Yes

Rota girişinin hedef CIDR bloğu. Hem IPv4 hem de IPv6 adresleri desteklenir.

192.168.0.0/24

TransitRouterRouteEntryNextHopId

string

No

Rota girişinin sonraki atlamasıyla ilişkili ağ örneği bağlantısının kimliği.

tr-attach-nls9fzkfat8934****

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 ve istek doğrulamayı geçtikten sonra rota girişini oluşturur.

  • true: Bir kontrol isteği gönderir. Yalnızca doğrulama yapılır. Herhangi bir rota girişi oluşturulmaz. Sistem, gerekli parametrelerin belirtilip belirtilmediğini ve istek biçiminin geçerli olup olmadığını kontrol eder. Kontrol başarısız olursa ilgili hata döndürülür. Kontrol başarılı olursa DryRunOperation hata kodu döndürülür.

false

Response elements

Element

Type

Description

Example

object

TransitRouterRouteEntryId

string

Rota girişinin kimliği.

rte-75eg4jprkvk0pw****

RequestId

string

İstek kimliği.

835E7F4B-B380-4E0F-96A5-6EA572388047

Examples

Success response

JSON format

{
  "TransitRouterRouteEntryId": "rte-75eg4jprkvk0pw****",
  "RequestId": "835E7F4B-B380-4E0F-96A5-6EA572388047"
}

Error codes

HTTP status code

Error code

Error message

Description

400 DryRunOperation Request validation has been passed with DryRun flag set.
400 InvalidTransitRouterRouteTableId.NotFound TransitRouterRouteTableId is not found.
400 TransitRouterRouteEntryNextHopId.NotFound TransitRouterRouteEntryNextHopId is not found.
400 OperationFailed.CreateRouteEntryWithCCNAttachment Operation failed because Create RouteEntry to CCN Attachment does not support.
400 QuotaExceeded.TransitRouterRoutEntry TransitRouterRoutEntry quota exceeded.
400 IllegalParam.TransitRouterDestinationCidrBlock TransitRouterDestinationCidrBlock is illegal.
400 InstanceExist.TransitRouterRouteEntry The instance TransitRouterRouteEntry already exists.
400 IncorrectStatus.TransitRouterRouteTable TransitRouterRouteTable status is invalid.
400 ParamExclusive.RouteEntryIdAndRouteTableIdOrDestCidrBlock RouteEntryId and TransitRouterRouteTableIdOrDestCidrBlock is mutually exclusive.
400 InvalidDescription Description is invalid.
400 InvalidName Name is invalid.
400 IllegalParam.NextHopType The NextHopType is illegal.
400 MissingParam.TransitRouterRouteEntryNextHopId The parameter TransitRouterRouteEntryNextHopId is mandatory
400 InvalidTransitRouterRouteEntryNextHopId.NotFound TransitRouterRouteEntryNextHopId is not found
400 OperationFailed.CreateRouteEntryWithSameDestinationCidrBlock Operation failed because Create RouteEntry with same destination cidrblock does not support.
400 InvalidDestinationCidrBlock.NotFound DestinationCidrBlock is not found.
400 OperationFailed.CreateRouteEntryWithConnectAttachment Operation failed because Create RouteEntry to connect Attachment does not support.
400 ParamExclusive.NextHopTypeBlackHoleAndNextHopId TransitRouterRouteEntryNextHopType(BlackHole) and TransitRouterRouteEntryNextHopId is mutually exclusive.
400 InvalidTransitRouterMode.NeedUpgrade TransitRouter need to upgrade.
400 OperationFailed.CreateTransitRouterRouteEntryWithVPCAttachment The specified VPC Attachment has not enable IPv6.
400 OperationFailed.CreateTransitRouterRouteEntryWithVPNAttachment Create RouteEntry to VPN Attachment does not support IPv6.
400 NotSupport.AttachmentRoute Not support such attachment route.
400 InvalidParameter Invalid parameter.
400 Unauthorized The AccessKeyId is unauthorized.
400 InvalidParameter.TransitRouterRouteEntryNextHopId The specified parameter TransitRouterRouteEntryNextHopId is invalid.
400 InvalidParameter.TransitRouterRouteTableId The specified parameter TransitRouterRouteTableId is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.