Skip to content

LoadBalancerProps

Properties for defining a LoadBalancer.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-slb-loadbalancer

Initializer

using AlibabaCloud.SDK.ROS.CDK.Slb;
new LoadBalancerProps {
    object AddressIpVersion = null,
    object AddressType = null,
    object Bandwidth = null,
    object DeletionProtection = null,
    object InstanceChargeType = null,
    object InternetChargeType = null,
    object LoadBalancerName = null,
    object LoadBalancerSpec = null,
    object MasterZoneId = null,
    object ModificationProtectionReason = null,
    object ModificationProtectionStatus = null,
    object ResourceGroupId = null,
    object SlaveZoneId = null,
    TagsProperty[] Tags = null,
    object VpcId = null,
    object VSwitchId = null
};

Properties

Name Type Description
AddressIpVersion object Property addressIpVersion: The IP version of the CLB instance.
AddressType object Property addressType: The network type of the CLB instance.
Bandwidth object Property bandwidth: The bandwidth for network, unit in Mbps(Mega bit per second).
DeletionProtection object Property deletionProtection: Whether to enable deletion protection.
InstanceChargeType object Property instanceChargeType: The resource metering method for the CLB instance.
InternetChargeType object Property internetChargeType: The metering method of the Internet-facing CLB instance.
LoadBalancerName object Property loadBalancerName: The CLB instance name.
LoadBalancerSpec object Property loadBalancerSpec: The specification of the CLB instance.
MasterZoneId object Property masterZoneId: The master zone id to create load balancer instance.
ModificationProtectionReason object Property modificationProtectionReason: The reason for enabling the configuration read-only mode.
ModificationProtectionStatus object Property modificationProtectionStatus: Specifies whether to enable the configuration read-only mode.
ResourceGroupId object Property resourceGroupId: Resource group id.
SlaveZoneId object Property slaveZoneId: The slave zone id to create load balancer instance.
Tags TagsProperty[] Property tags: Tags to attach to slb.
VpcId object Property vpcId: The VPC id to create load balancer instance.
VSwitchId object Property vSwitchId: The ID of the vSwitch to which the CLB instance belongs.

AddressIpVersionOptional

public object AddressIpVersion { get; set; }
  • Type: object

Property addressIpVersion: The IP version of the CLB instance.

Valid values: ipv4 and ipv6.


AddressTypeOptional

public object AddressType { get; set; }
  • Type: object

Property addressType: The network type of the CLB instance.

Valid values:

  • internet (default): After an internet-facing CLB instance is created, the system assigns a public IP address to the CLB instance. Then, the CLB instance can forward requests over the Internet.
  • intranet: After an internal-facing CLB instance is created, the system assigns a private IP address to the CLB instance. Then, the CLB instance can forward requests only over the internal networks.

BandwidthOptional

public object Bandwidth { get; set; }
  • Type: object

Property bandwidth: The bandwidth for network, unit in Mbps(Mega bit per second).

Default is 1. If InternetChargeType is specified as "paybytraffic", this property will be ignore and please specify the "Bandwidth" in ALIYUN::SLB::Listener.


DeletionProtectionOptional

public object DeletionProtection { get; set; }
  • Type: object

Property deletionProtection: Whether to enable deletion protection.


InstanceChargeTypeOptional

public object InstanceChargeType { get; set; }
  • Type: object

Property instanceChargeType: The resource metering method for the CLB instance.

Valid value:

  • PayByCLCU: pay-by-data-transfer

As of 00:00:00 (UTC+8) on June 1, 2025, pay-by-specification CLB instances are no longer available for purchase. For more details, see .


InternetChargeTypeOptional

public object InternetChargeType { get; set; }
  • Type: object

Property internetChargeType: The metering method of the Internet-facing CLB instance.

Valid values:

  • paybytraffic (default): If you set the value to paybytraffic, you do not need to specify Bandwidth. Even if you specify Bandwidth, the value does not take effect.
  • paybybandwidth: pay-by-bandwidth. Note If you set PayType to PayOnDemand and set InstanceChargeType to PayByCLCU, you must set InternetChargeType to paybytraffic.

LoadBalancerNameOptional

public object LoadBalancerName { get; set; }
  • Type: object

Property loadBalancerName: The CLB instance name.

The name must be 1 to 80 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. If you do not specify this parameter, the system automatically assigns a name to the CLB instance.


LoadBalancerSpecOptional

public object LoadBalancerSpec { get; set; }
  • Type: object

Property loadBalancerSpec: The specification of the CLB instance.

Valid values:

  • slb.s1.small
  • slb.s2.small
  • slb.s2.medium
  • slb.s3.small
  • slb.s3.medium
  • slb.s3.large
  • If InstanceChargeType is set to PayByCLCU, this parameter is invalid and you do not need to specify this parameter.
  • As of 00:00:00 (UTC+8) on June 1, 2025, pay-by-specification CLB instances are no longer available for purchase. For more details, see .

MasterZoneIdOptional

public object MasterZoneId { get; set; }
  • Type: object

Property masterZoneId: The master zone id to create load balancer instance.


ModificationProtectionReasonOptional

public object ModificationProtectionReason { get; set; }
  • Type: object

Property modificationProtectionReason: The reason for enabling the configuration read-only mode.

The reason must be 1 to 80 characters in length. It must start with a letter and can contain letters, digits, periods (.), underscores (_), and hyphens (-).

This parameter takes effect only when ModificationProtectionStatus is set to ConsoleProtection.


ModificationProtectionStatusOptional

public object ModificationProtectionStatus { get; set; }
  • Type: object

Property modificationProtectionStatus: Specifies whether to enable the configuration read-only mode.

Valid values:

  • NonProtection: disables the configuration read-only mode. After you disable the configuration read-only mode, the value of ModificationProtectionReason is cleared.
  • ConsoleProtection: enables the configuration read-only mode.

If you set this parameter to ConsoleProtection, you cannot modify instance configurations in the CLB console. However, you can modify instance configurations by calling API operations.


ResourceGroupIdOptional

public object ResourceGroupId { get; set; }
  • Type: object

Property resourceGroupId: Resource group id.


SlaveZoneIdOptional

public object SlaveZoneId { get; set; }
  • Type: object

Property slaveZoneId: The slave zone id to create load balancer instance.


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to slb.

Max support 5 tags to add during create slb. Each tag with two properties Key and Value, and Key is required.


VpcIdOptional

public object VpcId { get; set; }
  • Type: object

Property vpcId: The VPC id to create load balancer instance.

For VPC network only.


VSwitchIdOptional

public object VSwitchId { get; set; }
  • Type: object

Property vSwitchId: The ID of the vSwitch to which the CLB instance belongs.

If you want to deploy the CLB instance in a VPC, this parameter is required. If this parameter is specified, AddessType is set to intranet by default.

The vSwitch must be in the primary zone.