All Products
Search
Document Center

Resource Orchestration Service:nlb resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values available for Network Load Balancer (NLB) resources in ROS templates.

AssociationProperty Values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::NLB::LoadBalancer::LoadBalancerId

The instance ID of the Network Load Balancer (NLB).

  • RegionId: The region ID. By default, this is the region where the stack resides.

  • VpcIds: A list of virtual private cloud (VPC) IDs.

  • AddressType: The network type.

  • ZoneId: The zone ID.

Example:

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId":{
          "AssociationProperty":"ALIYUN::NLB::LoadBalancer::LoadBalancerId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        AssociationProperty: ALIYUN::NLB::LoadBalancer::LoadBalancerId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Example description

    Retrieves the NLB instance ID by setting the AssociationProperty of the InstanceId parameter to ALIYUN::NLB::LoadBalancer::LoadBalancerId.

ALIYUN::NLB::Zone::ZoneId

The zone of the NLB.

  • RegionId: The region ID. By default, this is the region where the stack resides.

  • ShowRandom: Whether to display the random allocation option.

Example:

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::NLB::Zone::ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ALIYUN::NLB::Zone::ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Example description

    Retrieves the available NLB zones in the current region by setting the AssociationProperty of the ZoneId parameter to ALIYUN::NLB::Zone::ZoneId and the AssociationPropertyMetadata to RegionId.