Tüm Ürünler
Search
Belge Merkezi

:LoadBalancerJoinSecurityGroup

Son Güncelleme:Sep 30, 2026

Bir Uygulama Yük Dengeleyici (ALB) örneğini bir güvenlik grubuna ekler.

Operation description

  • Varsayılan olarak güvenlik grupları kullanılamaz. Güvenlik gruplarını kullanmak için hesap yöneticinizle iletişime geçin.

  • Bir güvenlik grubunun oluşturulduğundan emin olun. Güvenlik gruplarının nasıl oluşturulacağı hakkında daha fazla bilgi için CreateSecurityGroup bölümüne bakın.

  • Her ALB örneği en fazla dört güvenlik grubuna eklenebilir.

  • Bir ALB örneğinin güvenlik gruplarını sorgulamak için GetLoadBalancerAttribute işlemini çağırın.

  • GetLoadBalancerAttribute eşzamansız bir işlemdir. Bir istek gönderildikten sonra sistem bir istek kimliği döndürür ve görevi arka planda çalıştırır. Görevin durumunu sorgulamak için ListAsynJobs işlemini çağırabilirsiniz.

    • Görev Succeeded durumundaysa, ALB örneği güvenlik grubuna eklenmiştir.

    • Görev Processing durumundaysa, ALB örneği güvenlik grubuna eklenmektedir. Bu durumda görevi sorgulayabilir ancak başka işlem gerçekleştiremezsiniz.

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

none

*LoadBalancer

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

None None

Request parameters

Parameter

Type

Required

Description

Example

SecurityGroupIds

array

Yes

Güvenlik grubu kimlikleri.

string

No

Güvenlik grubu kimliği.

sg-m5e7xkprgt1pi1ik****

LoadBalancerId

string

Yes

ALB örnek kimliği.

alb-h7kcw4g4nnvtqp****

DryRun

boolean

No

Yalnızca deneme çalıştırması yapılıp yapılmayacağını ve gerçek isteğin gerçekleştirilip gerçekleştirilmeyeceğini belirtir. Geçerli değerler:

  • true: Yalnızca deneme çalıştırması yapılır. Sistem; eksik parametre değerleri, hatalı istek sözdizimi ve hizmet limitleri gibi olası sorunlara karşı isteği 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): Deneme çalıştırması yapılır ve gerçek istek gerçekleştirilir. İstek deneme çalıştırmasını geçerse 2xx HTTP durum kodu döndürülür ve işlem gerçekleştirilir.

false

ClientToken

string

No

İsteğin idempotansı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. Belirteç yalnızca ASCII karakterleri içerebilir.

Not

Bu parametreyi belirtmezseniz, sistem otomatik olarak istemci belirteci olarak istek kimliğini kullanır. İstek kimliği her istek için farklı olabilir.

123e4567-e89b-12d3-a456-426655440000

Response elements

Element

Type

Description

Example

object

Görev sonucu.

JobId

string

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

8fe81f25-79a0-4fa0-9036-f2601fda****

RequestId

string

İstek kimliği.

D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****

Examples

Success response

JSON format

{
  "JobId": "8fe81f25-79a0-4fa0-9036-f2601fda****",
  "RequestId": "D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IncorrectStatus.LoadBalancer The status of %s [%s] is incorrect.
400 ResourceAlreadyAssociated.SecurityGroup The specified resource of %s is already associated.
400 ResourceQuotaExceeded.SecurityGroupNum The quota of %s is exceeded for resource %s, usage %s/%s.
400 OperationDenied.SecurityGroupNotSupport The operation is not allowed because of %s.
400 OperationDenied.LbAssociatedAclCanNotJoinSecurityGroup The operation is not allowed because of loadBalancer associated acl can not join security group. This operation is not allowed because the listener under the Server Load Balancer instance has been bound to an access control policy. You are not allowed to join the security group again.
404 ResourceNotFound.LoadBalancer The specified resource %s is not found. The specified resource %s is not found.
404 ResourceNotFound.SecurityGroup The specified resource %s is not found.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.