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 AutoPay = null,
    object AutoRenew = null,
    object AutoRenewPeriod = null,
    object Bandwidth = null,
    object DeletionProtection = null,
    object Duration = null,
    object InstanceChargeType = null,
    object InternetChargeType = null,
    object LoadBalancerName = null,
    object LoadBalancerSpec = null,
    object MasterZoneId = null,
    object ModificationProtectionReason = null,
    object ModificationProtectionStatus = null,
    object PayType = null,
    object PricingCycle = null,
    object ResourceGroupId = null,
    object SlaveZoneId = null,
    TagsProperty[] Tags = null,
    object VpcId = null,
    object VSwitchId = null
};

Properties

Name Type Description
AddressIpVersion object Property addressIpVersion: IP version, support 'ipv4' or 'ipv6'.
AddressType object Property addressType: The network type of the CLB instance.
AutoPay object Property autoPay: Specifies whether to automatically pay for the subscription Internet-facing CLB instance.
AutoRenew object Property autoRenew: Indicates whether automatic renewal is enabled for the instance.
AutoRenewPeriod object Property autoRenewPeriod: Automatic renewal cycle, which takes effect when AutoRenew is true, and is required: When PricingCycle = month, the value range is 1 to 9 or 12, 24, 36.
Bandwidth object Property bandwidth: The bandwidth for network, unit in Mbps(Mega bit per second).
DeletionProtection object Property deletionProtection: Whether to enable deletion protection.
Duration object Property duration: Optional.
InstanceChargeType object Property instanceChargeType: Instance billing method.
InternetChargeType object Property internetChargeType: The metering method of the Internet-facing CLB instance.
LoadBalancerName object Property loadBalancerName: Name of created load balancer.
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: Set the reason for modifying the protection status.
ModificationProtectionStatus object Property modificationProtectionStatus: NonProtection or empty: means no restriction on modification protection ConsoleProtection: Modify instance protection status by console Default value is empty.
PayType object Property payType: Optional.
PricingCycle object Property pricingCycle: Optional.
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 VSwitch id to create load balancer instance.

AddressIpVersionOptional

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

Property addressIpVersion: IP version, support 'ipv4' or 'ipv6'.

If 'ipv6' is selected, please note that the zone and the specification are supported.


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.

AutoPayOptional

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

Property autoPay: Specifies whether to automatically pay for the subscription Internet-facing CLB instance.

Valid values:

  • true: automatically pays for the CLB instance. After you call this operation, the system automatically completes the payment and creates the CLB instance.- false (default): After you call the operation, the order is created but the payment is not completed. You can view the pending order in the console. The CLB instance will not be created until you complete the payment.Note This parameter is supported only by subscription instances created on the Alibaba Cloud China site.

AutoRenewOptional

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

Property autoRenew: Indicates whether automatic renewal is enabled for the instance.

Valid values:- true: Automatic renewal is enabled.- false (default): Automatic renewal is not enabled. You must renew the instance manually.


AutoRenewPeriodOptional

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

Property autoRenewPeriod: Automatic renewal cycle, which takes effect when AutoRenew is true, and is required: When PricingCycle = month, the value range is 1 to 9 or 12, 24, 36.

When PeriodUnit = year, the value range is 1-3.


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.


DurationOptional

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

Property duration: Optional.

The subscription duration of a Subscription Internet instance. Valid values: If PricingCycle is month, the valid range is 1 to 9 or 12, 24, 36, 48, 60. If PricingCycle is year, the value range is 1 to 5.


InstanceChargeTypeOptional

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

Property instanceChargeType: Instance billing method.

Valid value:

  • PayBySpec (default): Pay by spec.
  • PayByCLCU: billed by usage.

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: Name of created load balancer.

Length is limited to 1-80 characters, allowed to contain letters, numbers, '-, /, _,.' When not specified, a default name will be assigned.


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 Note If you do not specify this parameter, a shared-resource CLB instance is created. Shared-resource CLB instances are no longer available for purchase. Therefore, you must specify this parameter. If InstanceChargeType is set to PayByCLCU, this parameter is invalid and you do not need to specify this parameter.

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: Set the reason for modifying the protection status.

The length is 1-80 English or Chinese characters, must start with upper and lower letters or Chinese, and can include numbers, periods (.), underscores (_) and dashes (-). Only valid when ModificationProtectionStatus is ConsoleProtection.


ModificationProtectionStatusOptional

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

Property modificationProtectionStatus: NonProtection or empty: means no restriction on modification protection ConsoleProtection: Modify instance protection status by console Default value is empty.


PayTypeOptional

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

Property payType: Optional.

The billing method of the instance to be created. Valid value: PayOnDemand (Pay-As-You-Go) | PrePay (Subscription)


PricingCycleOptional

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

Property pricingCycle: Optional.

The duration of the Subscription-billed Internet instance to be created. Valid values: month | year.


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 VSwitch id to create load balancer instance.

For VPC network only.