Tüm Ürünler
Search
Belge Merkezi

:AttachCommonBandwidthPackageToLoadBalancer

Son Güncelleme:Oct 26, 2026

Bir İnternet Paylaşılan Bant Genişliği örneğini bir Uygulama Yük Dengeleyici örneğine bağlar.

Operation description

AttachCommonBandwidthPackageToLoadBalancer işlemi eşzamansızdır. İsteği gönderdikten sonra sistem bir istek kimliği döndürür, ancak İnternet Paylaşılan Bant Genişliği örneği henüz yük dengeleme örneğiyle ilişkilendirilmemiştir. İlişkilendirme görevi arka planda çalışmaya devam etmektedir. İnternet Paylaşılan Bant Genişliği örneğinin ilişkilendirme durumunu sorgulamak için GetLoadBalancerAttribute işlemini çağırabilirsiniz:

  • Yük dengeleme örneği Configuring durumundayken, İnternet Paylaşılan Bant Genişliği örneği ilişkilendirilmektedir.

  • Yük dengeleme örneği Active durumundayken, İnternet Paylaşılan Bant Genişliği örneği ilişkilendirilmiştir.

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

alb:AttachCommonBandwidthPackageToLoadBalancer

update

*LoadBalancer.

acs:alb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

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

Değeri oluşturmak için istemciyi kullanabilirsiniz, ancak 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. Her API isteğinin RequestId değeri benzersizdir.

123e4567-e89b-12d3-a456-42665*****

RegionId

string

Yes

Uygulama Yük Dengeleyici örneğinin bölge kimliği.

Bölge kimliklerini sorgulamak için DescribeRegions işlemini çağırabilirsiniz.

cn-hangzhou

LoadBalancerId

string

Yes

Uygulama Yük Dengeleyici örneğinin kimliği.

alb-d676fho813rmu3****

BandwidthPackageId

string

Yes

İlişkilendirilecek İnternet Paylaşılan Bant Genişliği örneğinin kimliği.

cbwp-bp1pzf0ym72pu3y76****

DryRun

boolean

No

Deneme çalıştırması yapılıp yapılmayacağını belirtir. Geçerli değerler:

  • true: Deneme çalıştırması yapar ve İnternet Paylaşılan Bant Genişliği örneğini yük dengeleme örneğiyle ilişkilendirmez. Sistem gerekli parametrelerin belirtilip belirtilmediğini, istek biçiminin geçerli olup olmadığını ve hizmet limitlerinin karşılanıp karşılanmadığını kontrol eder. İstek deneme çalıştırmasında başarısız olursa bir hata mesajı döndürülür. İstek deneme çalıştırmasını geçerse DryRunOperation hata kodu döndürülür.

  • false (varsayılan): Normal bir istek gönderir. İstek kontrolü geçerse bir HTTP 2xx durum kodu döndürülür ve işlem gerçekleştirilir.

true

Response elements

Element

Type

Description

Example

object

Bir İnternet Paylaşılan Bant Genişliği örneğini bir Uygulama Yük Dengeleyici örneğine bağlar.

RequestId

string

İstek kimliği.

2EF39708-974B-5E74-AFF5-3445******

JobId

string

Eşzamansız görevin kimliği.

72dcd26b-f12d-4c27-b3af-18f6aed5****

Examples

Success response

JSON format

{
  "RequestId": "2EF39708-974B-5E74-AFF5-3445263035A8",
  "JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IncorrectBusinessStatus.CommonBandwidthPackage The business status of %s [%s] is incorrect. %s [%s] kaynağının iş durumu geçersiz.
400 IncorrectStatus.CommonBandwidthPackage The status of %s [%s] is incorrect. %s [%s] kaynağının durumu geçersiz.
404 ResourceNotFound.LoadBalancer The specified resource %s is not found. %s kaynağı mevcut değildir.
404 ResourceNotFound.CommonBandwidthPackage The specified resource %s is not found. %s kaynağı mevcut değildir.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.