alicloud.slb.ApplicationLoadBalancer
Explore with Pulumi AI
Import
Load balancer can be imported using the id, e.g.
$ pulumi import alicloud:slb/applicationLoadBalancer:ApplicationLoadBalancer example lb-abc123456
Create ApplicationLoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationLoadBalancer(name: string, args?: ApplicationLoadBalancerArgs, opts?: CustomResourceOptions);
@overload
def ApplicationLoadBalancer(resource_name: str,
args: Optional[ApplicationLoadBalancerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationLoadBalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
address_ip_version: Optional[str] = None,
address_type: Optional[str] = None,
bandwidth: Optional[int] = None,
delete_protection: Optional[str] = None,
instance_charge_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
load_balancer_name: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
master_zone_id: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
resource_group_id: Optional[str] = None,
slave_zone_id: Optional[str] = None,
specification: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vswitch_id: Optional[str] = None)
func NewApplicationLoadBalancer(ctx *Context, name string, args *ApplicationLoadBalancerArgs, opts ...ResourceOption) (*ApplicationLoadBalancer, error)
public ApplicationLoadBalancer(string name, ApplicationLoadBalancerArgs? args = null, CustomResourceOptions? opts = null)
public ApplicationLoadBalancer(String name, ApplicationLoadBalancerArgs args)
public ApplicationLoadBalancer(String name, ApplicationLoadBalancerArgs args, CustomResourceOptions options)
type: alicloud:slb:ApplicationLoadBalancer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApplicationLoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationLoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationLoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationLoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationLoadBalancerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var applicationLoadBalancerResource = new AliCloud.Slb.ApplicationLoadBalancer("applicationLoadBalancerResource", new()
{
Address = "string",
AddressIpVersion = "string",
AddressType = "string",
Bandwidth = 0,
DeleteProtection = "string",
InstanceChargeType = "string",
InternetChargeType = "string",
LoadBalancerName = "string",
LoadBalancerSpec = "string",
MasterZoneId = "string",
ModificationProtectionReason = "string",
ModificationProtectionStatus = "string",
PaymentType = "string",
Period = 0,
ResourceGroupId = "string",
SlaveZoneId = "string",
Status = "string",
Tags =
{
{ "string", "string" },
},
VswitchId = "string",
});
example, err := slb.NewApplicationLoadBalancer(ctx, "applicationLoadBalancerResource", &slb.ApplicationLoadBalancerArgs{
Address: pulumi.String("string"),
AddressIpVersion: pulumi.String("string"),
AddressType: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
DeleteProtection: pulumi.String("string"),
InstanceChargeType: pulumi.String("string"),
InternetChargeType: pulumi.String("string"),
LoadBalancerName: pulumi.String("string"),
LoadBalancerSpec: pulumi.String("string"),
MasterZoneId: pulumi.String("string"),
ModificationProtectionReason: pulumi.String("string"),
ModificationProtectionStatus: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Period: pulumi.Int(0),
ResourceGroupId: pulumi.String("string"),
SlaveZoneId: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VswitchId: pulumi.String("string"),
})
var applicationLoadBalancerResource = new ApplicationLoadBalancer("applicationLoadBalancerResource", ApplicationLoadBalancerArgs.builder()
.address("string")
.addressIpVersion("string")
.addressType("string")
.bandwidth(0)
.deleteProtection("string")
.instanceChargeType("string")
.internetChargeType("string")
.loadBalancerName("string")
.loadBalancerSpec("string")
.masterZoneId("string")
.modificationProtectionReason("string")
.modificationProtectionStatus("string")
.paymentType("string")
.period(0)
.resourceGroupId("string")
.slaveZoneId("string")
.status("string")
.tags(Map.of("string", "string"))
.vswitchId("string")
.build());
application_load_balancer_resource = alicloud.slb.ApplicationLoadBalancer("applicationLoadBalancerResource",
address="string",
address_ip_version="string",
address_type="string",
bandwidth=0,
delete_protection="string",
instance_charge_type="string",
internet_charge_type="string",
load_balancer_name="string",
load_balancer_spec="string",
master_zone_id="string",
modification_protection_reason="string",
modification_protection_status="string",
payment_type="string",
period=0,
resource_group_id="string",
slave_zone_id="string",
status="string",
tags={
"string": "string",
},
vswitch_id="string")
const applicationLoadBalancerResource = new alicloud.slb.ApplicationLoadBalancer("applicationLoadBalancerResource", {
address: "string",
addressIpVersion: "string",
addressType: "string",
bandwidth: 0,
deleteProtection: "string",
instanceChargeType: "string",
internetChargeType: "string",
loadBalancerName: "string",
loadBalancerSpec: "string",
masterZoneId: "string",
modificationProtectionReason: "string",
modificationProtectionStatus: "string",
paymentType: "string",
period: 0,
resourceGroupId: "string",
slaveZoneId: "string",
status: "string",
tags: {
string: "string",
},
vswitchId: "string",
});
type: alicloud:slb:ApplicationLoadBalancer
properties:
address: string
addressIpVersion: string
addressType: string
bandwidth: 0
deleteProtection: string
instanceChargeType: string
internetChargeType: string
loadBalancerName: string
loadBalancerSpec: string
masterZoneId: string
modificationProtectionReason: string
modificationProtectionStatus: string
paymentType: string
period: 0
resourceGroupId: string
slaveZoneId: string
status: string
tags:
string: string
vswitchId: string
ApplicationLoadBalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApplicationLoadBalancer resource accepts the following input properties:
- Address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- Address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - Address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- Bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - Delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- Instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - Internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - Load
Balancer stringName - Load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - Master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - Modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - Name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - Payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - Resource
Group stringId - The id of resource group which the SLB belongs.
- Slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - Status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Dictionary<string, string>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - Vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- Address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- Address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - Address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- Bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - Delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- Instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - Internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - Load
Balancer stringName - Load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - Master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - Modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - Name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - Payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - Resource
Group stringId - The id of resource group which the SLB belongs.
- Slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - Status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - map[string]string
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - Vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address String
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip StringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type String - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth Integer
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection String - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge StringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge StringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer StringName - load
Balancer StringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone StringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection StringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection StringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name String
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type String - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Integer
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group StringId - The id of resource group which the SLB belongs.
- slave
Zone StringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification String
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status String
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Map<String,String>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id String - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth number
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer stringName - load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period number
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group stringId - The id of resource group which the SLB belongs.
- slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - {[key: string]: string}
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address str
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address_
ip_ strversion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address_
type str - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete_
protection str - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance_
charge_ strtype - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet_
charge_ strtype - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load_
balancer_ strname - load_
balancer_ strspec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master_
zone_ strid - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification_
protection_ strreason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification_
protection_ strstatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name str
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment_
type str - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource_
group_ strid - The id of resource group which the SLB belongs.
- slave_
zone_ strid - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification str
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status str
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Mapping[str, str]
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch_
id str - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address String
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip StringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type String - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth Number
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection String - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge StringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge StringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer StringName - load
Balancer StringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone StringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection StringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection StringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name String
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type String - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Number
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group StringId - The id of resource group which the SLB belongs.
- slave
Zone StringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification String
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status String
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Map<String>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id String - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationLoadBalancer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApplicationLoadBalancer Resource
Get an existing ApplicationLoadBalancer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationLoadBalancerState, opts?: CustomResourceOptions): ApplicationLoadBalancer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
address_ip_version: Optional[str] = None,
address_type: Optional[str] = None,
bandwidth: Optional[int] = None,
delete_protection: Optional[str] = None,
instance_charge_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
load_balancer_name: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
master_zone_id: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
resource_group_id: Optional[str] = None,
slave_zone_id: Optional[str] = None,
specification: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vswitch_id: Optional[str] = None) -> ApplicationLoadBalancer
func GetApplicationLoadBalancer(ctx *Context, name string, id IDInput, state *ApplicationLoadBalancerState, opts ...ResourceOption) (*ApplicationLoadBalancer, error)
public static ApplicationLoadBalancer Get(string name, Input<string> id, ApplicationLoadBalancerState? state, CustomResourceOptions? opts = null)
public static ApplicationLoadBalancer get(String name, Output<String> id, ApplicationLoadBalancerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- Address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - Address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- Bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - Delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- Instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - Internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - Load
Balancer stringName - Load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - Master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - Modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - Name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - Payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - Resource
Group stringId - The id of resource group which the SLB belongs.
- Slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - Status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Dictionary<string, string>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - Vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- Address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- Address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - Address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- Bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - Delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- Instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - Internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - Load
Balancer stringName - Load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - Master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - Modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - Name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - Payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - Resource
Group stringId - The id of resource group which the SLB belongs.
- Slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- Specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - Status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - map[string]string
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - Vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address String
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip StringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type String - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth Integer
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection String - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge StringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge StringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer StringName - load
Balancer StringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone StringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection StringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection StringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name String
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type String - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Integer
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group StringId - The id of resource group which the SLB belongs.
- slave
Zone StringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification String
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status String
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Map<String,String>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id String - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address string
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip stringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type string - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth number
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection string - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge stringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge stringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer stringName - load
Balancer stringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone stringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection stringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection stringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name string
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type string - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period number
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group stringId - The id of resource group which the SLB belongs.
- slave
Zone stringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification string
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status string
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - {[key: string]: string}
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id string - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address str
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address_
ip_ strversion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address_
type str - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth int
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete_
protection str - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance_
charge_ strtype - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet_
charge_ strtype - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load_
balancer_ strname - load_
balancer_ strspec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master_
zone_ strid - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification_
protection_ strreason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification_
protection_ strstatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name str
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment_
type str - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period int
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource_
group_ strid - The id of resource group which the SLB belongs.
- slave_
zone_ strid - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification str
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status str
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Mapping[str, str]
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch_
id str - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
- address String
- Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
- address
Ip StringVersion - The IP version of the SLB instance to be created, which can be set to
ipv4
oripv6
. Default toipv4
. Now, only internet instance supportipv6
address. - address
Type String - The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be
intranet
.- internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
- intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
- bandwidth Number
- Valid value is between 1 and 5120, If argument
internet_charge_type
isPayByTraffic
, then this value will be ignored. - delete
Protection String - Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
- instance
Charge StringType - Support
PayBySpec
(default) andPayByCLCU
, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go). - internet
Charge StringType - Valid values are
PayByBandwidth
,PayByTraffic
. If this value isPayByBandwidth
, then argumentaddress_type
must beinternet
. Default isPayByTraffic
. If load balancer launched in VPC, this value must bePayByTraffic
. Before version 1.10.1, the valid values arepaybybandwidth
andpaybytraffic
. - load
Balancer StringName - load
Balancer StringSpec - The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values:
slb.s1.small
,slb.s2.small
,slb.s2.medium
,slb.s3.small
,slb.s3.medium
,slb.s3.large
andslb.s4.large
. It will be ignored wheninstance_charge_type = "PayByCLCU"
. - master
Zone StringId - The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- modification
Protection StringReason - The reason of modification protection. It's effective when
modification_protection_status
isConsoleProtection
. - modification
Protection StringStatus - The status of modification protection. Valid values:
ConsoleProtection
andNonProtection
. Default value isNonProtection
. - name String
- Field
name
has been deprecated from provider version 1.123.1 New fieldload_balancer_name
instead. - payment
Type String - The billing method of the load balancer. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Number
- The duration that you will buy the resource, in month. It is valid when
PaymentType
isSubscription
. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to createSubscription
instance or modify thePayAsYouGo
instance toSubscription
. Once effect, it will not be modified that means runningpulumi up
will not affect the resource. - resource
Group StringId - The id of resource group which the SLB belongs.
- slave
Zone StringId - The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
- specification String
- Field
specification
has been deprecated from provider version 1.123.1 New fieldload_balancer_spec
instead. - status String
- The status of slb load balancer. Valid values:
active
andinactice
. The system default value isactive
. - Map<String>
- A mapping of tags to assign to the resource. The
tags
can have a maximum of 10 tag for every load balancer instance. This filed mark asComputed
since v1.217.1. - vswitch
Id String - The VSwitch ID to launch in. Note: Required for a VPC SLB. If
address_type
is internet, it will be ignored.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.