Parameter | Description | Example |
VpcId | The ID of the virtual private cloud (VPC) in which the ALB instance resides. To view the VPC ID, log on to the VPC console, select China (Hangzhou) from the top navigation bar, click VPC in the left-side navigation pane, and then find the VPC that you want to view. | vpc-bp1wfo2ytjbr9zs3y**** |
AddressType | The network type of the IPv4 address that you want to assign to the ALB instance. Internet: a public IPv4 address. Domain names are resolved to the public IPv4 address, which is accessible over the Internet. Intranet: a private IPv4 address. Domain names are resolved to the private IPv4 address, which is accessible only within the VPC of the ALB instance.
Specify Internet or Intranet based on your business requirements. | Intranet |
LoadBalancerName | The name of the ALB instance. | ALB-test01 |
ZoneMappings | The mappings between zones and vSwitches. If the region has two or more zones, select at least two zones to ensure service high availability. VSwitchId: the ID of the vSwitch in the zone. You can call the DescribeVSwitches operation to query the vSwitch IDs. ZoneId: the ID of the zone. You can call the DescribeZones operation to query zone IDs. IntranetAddress: the IPv4 address that you want to assign to the ALB instance. Important When you assign the private IP address to the ALB instance, make sure that the address belongs to the destination CIDR block of the vSwitch and is not in use.
To view vSwitch IDs and CIDR blocks, log on to the VPC console, select China (Hangzhou) from the top navigation bar, click VPC in the left-side navigation pane, and then find the VPC of the ALB instance. On the Resource Management tab, click the number below the vSwitch parameter. Then, you can view the vSwitch IDs and CIDR blocks. | In this example, Zone G and Zone I are specified. Specify zones based on the region of your ALB instance. Zone G settings: ZoneMappings.1.VSwitchI: vsw-bp1jiciza3mpuyphn**** ZoneMappings.1.ZoneId: cn-hangzhou-g ZoneMappings.1.IntranetAddress: 192.168.1.13
Zone I settings: ZoneMappings.0.VSwitchId: vsw-bp1uwoih7uwew975k**** ZoneMappings.0.ZoneId: cn-hangzhou-i ZoneMappings.0.IntranetAddress: 192.168.0.230
|
LoadBalancerEdition | The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values: Basic Standard StandardWithWaf
| Basic |
AddressAllocatedMode | The mode in which IP addresses are allocated. Valid values: Note Starting at 00:00:00 on February 25, 2025 (UTC+8), ALB instances that you create using the CreateLoadBalancer operation are all the upgraded version, regardless of the IP mode you specify in the request. ALB instances do not differentiate between static and fixed modes and can auto-scale resources as load fluctuates. Non-upgraded ALB instances are not affected. | Fixed |
LoadBalancerBillingConfig | The configuration of the billing method of the ALB instance. PayType: the billing method of the ALB instance. Set the value to PostPay, which specifies the pay-as-you-go billing method. BandwidthPackageId: the ID of the Internet Shared Bandwidth instance if the ALB instance is Internet-facing.
| |
AddressIpVersion | The protocol version. Valid values: IPv4 and DualStack are supported. Specify an IP version based on your business requirements. If you specify DualStack, make sure that the vSwitch of the ALB instance has IPv6 enabled. For more information, see Enable IPv6 for a vSwitch. | IPv4 |