published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Create NetworkLoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkLoadBalancer(name: string, args: NetworkLoadBalancerArgs, opts?: CustomResourceOptions);@overload
def NetworkLoadBalancer(resource_name: str,
args: NetworkLoadBalancerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkLoadBalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_type: Optional[str] = None,
zone_mappings: Optional[Sequence[NetworkLoadBalancerZoneMappingArgs]] = None,
vpc_id: Optional[str] = None,
region: Optional[str] = None,
modification_protection_status: Optional[str] = None,
ipv6_bandwidth_package_id: Optional[str] = None,
load_balancer_name: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
access_log_config: Optional[NetworkLoadBalancerAccessLogConfigArgs] = None,
ipv4_bandwidth_package_id: Optional[str] = None,
project_name: Optional[str] = None,
ip_address_version: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[NetworkLoadBalancerTagArgs]] = None,
description: Optional[str] = None,
cross_zone_enabled: Optional[bool] = None)func NewNetworkLoadBalancer(ctx *Context, name string, args NetworkLoadBalancerArgs, opts ...ResourceOption) (*NetworkLoadBalancer, error)public NetworkLoadBalancer(string name, NetworkLoadBalancerArgs args, CustomResourceOptions? opts = null)
public NetworkLoadBalancer(String name, NetworkLoadBalancerArgs args)
public NetworkLoadBalancer(String name, NetworkLoadBalancerArgs args, CustomResourceOptions options)
type: volcengine:nlb:NetworkLoadBalancer
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 NetworkLoadBalancerArgs
- 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 NetworkLoadBalancerArgs
- 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 NetworkLoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkLoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkLoadBalancerArgs
- 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 networkLoadBalancerResource = new Volcengine.Nlb.NetworkLoadBalancer("networkLoadBalancerResource", new()
{
NetworkType = "string",
ZoneMappings = new[]
{
new Volcengine.Nlb.Inputs.NetworkLoadBalancerZoneMappingArgs
{
SubnetId = "string",
ZoneId = "string",
EipId = "string",
EniId = "string",
Ipv4Address = "string",
Ipv4EipAddress = "string",
Ipv4EipId = "string",
Ipv4HcStatus = "string",
Ipv6Address = "string",
Ipv6EipId = "string",
Ipv6HcStatus = "string",
},
},
VpcId = "string",
Region = "string",
ModificationProtectionStatus = "string",
Ipv6BandwidthPackageId = "string",
LoadBalancerName = "string",
ModificationProtectionReason = "string",
AccessLogConfig = new Volcengine.Nlb.Inputs.NetworkLoadBalancerAccessLogConfigArgs
{
Enabled = false,
ProjectName = "string",
TopicId = "string",
TopicName = "string",
},
Ipv4BandwidthPackageId = "string",
ProjectName = "string",
IpAddressVersion = "string",
SecurityGroupIds = new[]
{
"string",
},
Tags = new[]
{
new Volcengine.Nlb.Inputs.NetworkLoadBalancerTagArgs
{
Key = "string",
Value = "string",
},
},
Description = "string",
CrossZoneEnabled = false,
});
example, err := nlb.NewNetworkLoadBalancer(ctx, "networkLoadBalancerResource", &nlb.NetworkLoadBalancerArgs{
NetworkType: pulumi.String("string"),
ZoneMappings: nlb.NetworkLoadBalancerZoneMappingArray{
&nlb.NetworkLoadBalancerZoneMappingArgs{
SubnetId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
EipId: pulumi.String("string"),
EniId: pulumi.String("string"),
Ipv4Address: pulumi.String("string"),
Ipv4EipAddress: pulumi.String("string"),
Ipv4EipId: pulumi.String("string"),
Ipv4HcStatus: pulumi.String("string"),
Ipv6Address: pulumi.String("string"),
Ipv6EipId: pulumi.String("string"),
Ipv6HcStatus: pulumi.String("string"),
},
},
VpcId: pulumi.String("string"),
Region: pulumi.String("string"),
ModificationProtectionStatus: pulumi.String("string"),
Ipv6BandwidthPackageId: pulumi.String("string"),
LoadBalancerName: pulumi.String("string"),
ModificationProtectionReason: pulumi.String("string"),
AccessLogConfig: &nlb.NetworkLoadBalancerAccessLogConfigArgs{
Enabled: pulumi.Bool(false),
ProjectName: pulumi.String("string"),
TopicId: pulumi.String("string"),
TopicName: pulumi.String("string"),
},
Ipv4BandwidthPackageId: pulumi.String("string"),
ProjectName: pulumi.String("string"),
IpAddressVersion: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: nlb.NetworkLoadBalancerTagArray{
&nlb.NetworkLoadBalancerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
CrossZoneEnabled: pulumi.Bool(false),
})
var networkLoadBalancerResource = new NetworkLoadBalancer("networkLoadBalancerResource", NetworkLoadBalancerArgs.builder()
.networkType("string")
.zoneMappings(NetworkLoadBalancerZoneMappingArgs.builder()
.subnetId("string")
.zoneId("string")
.eipId("string")
.eniId("string")
.ipv4Address("string")
.ipv4EipAddress("string")
.ipv4EipId("string")
.ipv4HcStatus("string")
.ipv6Address("string")
.ipv6EipId("string")
.ipv6HcStatus("string")
.build())
.vpcId("string")
.region("string")
.modificationProtectionStatus("string")
.ipv6BandwidthPackageId("string")
.loadBalancerName("string")
.modificationProtectionReason("string")
.accessLogConfig(NetworkLoadBalancerAccessLogConfigArgs.builder()
.enabled(false)
.projectName("string")
.topicId("string")
.topicName("string")
.build())
.ipv4BandwidthPackageId("string")
.projectName("string")
.ipAddressVersion("string")
.securityGroupIds("string")
.tags(NetworkLoadBalancerTagArgs.builder()
.key("string")
.value("string")
.build())
.description("string")
.crossZoneEnabled(false)
.build());
network_load_balancer_resource = volcengine.nlb.NetworkLoadBalancer("networkLoadBalancerResource",
network_type="string",
zone_mappings=[{
"subnet_id": "string",
"zone_id": "string",
"eip_id": "string",
"eni_id": "string",
"ipv4_address": "string",
"ipv4_eip_address": "string",
"ipv4_eip_id": "string",
"ipv4_hc_status": "string",
"ipv6_address": "string",
"ipv6_eip_id": "string",
"ipv6_hc_status": "string",
}],
vpc_id="string",
region="string",
modification_protection_status="string",
ipv6_bandwidth_package_id="string",
load_balancer_name="string",
modification_protection_reason="string",
access_log_config={
"enabled": False,
"project_name": "string",
"topic_id": "string",
"topic_name": "string",
},
ipv4_bandwidth_package_id="string",
project_name="string",
ip_address_version="string",
security_group_ids=["string"],
tags=[{
"key": "string",
"value": "string",
}],
description="string",
cross_zone_enabled=False)
const networkLoadBalancerResource = new volcengine.nlb.NetworkLoadBalancer("networkLoadBalancerResource", {
networkType: "string",
zoneMappings: [{
subnetId: "string",
zoneId: "string",
eipId: "string",
eniId: "string",
ipv4Address: "string",
ipv4EipAddress: "string",
ipv4EipId: "string",
ipv4HcStatus: "string",
ipv6Address: "string",
ipv6EipId: "string",
ipv6HcStatus: "string",
}],
vpcId: "string",
region: "string",
modificationProtectionStatus: "string",
ipv6BandwidthPackageId: "string",
loadBalancerName: "string",
modificationProtectionReason: "string",
accessLogConfig: {
enabled: false,
projectName: "string",
topicId: "string",
topicName: "string",
},
ipv4BandwidthPackageId: "string",
projectName: "string",
ipAddressVersion: "string",
securityGroupIds: ["string"],
tags: [{
key: "string",
value: "string",
}],
description: "string",
crossZoneEnabled: false,
});
type: volcengine:nlb:NetworkLoadBalancer
properties:
accessLogConfig:
enabled: false
projectName: string
topicId: string
topicName: string
crossZoneEnabled: false
description: string
ipAddressVersion: string
ipv4BandwidthPackageId: string
ipv6BandwidthPackageId: string
loadBalancerName: string
modificationProtectionReason: string
modificationProtectionStatus: string
networkType: string
projectName: string
region: string
securityGroupIds:
- string
tags:
- key: string
value: string
vpcId: string
zoneMappings:
- eipId: string
eniId: string
ipv4Address: string
ipv4EipAddress: string
ipv4EipId: string
ipv4HcStatus: string
ipv6Address: string
ipv6EipId: string
ipv6HcStatus: string
subnetId: string
zoneId: string
NetworkLoadBalancer 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 NetworkLoadBalancer resource accepts the following input properties:
- Network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - Region string
- The region of the NLB instance.
- Vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- Zone
Mappings List<NetworkLoad Balancer Zone Mapping> - The zone mappings of the NLB instance.
- Access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- Cross
Zone boolEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - Description string
- The description of the NLB instance.
- Ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - Ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- Ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- Load
Balancer stringName - The name of the NLB instance.
- Modification
Protection stringReason - The reason for modification protection.
- Modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - Project
Name string - The project name of the NLB instance.
- Security
Group List<string>Ids - The security group IDs of the NLB instance.
-
List<Network
Load Balancer Tag> - Tags.
- Network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - Region string
- The region of the NLB instance.
- Vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- Zone
Mappings []NetworkLoad Balancer Zone Mapping Args - The zone mappings of the NLB instance.
- Access
Log NetworkConfig Load Balancer Access Log Config Args - The access log configuration of the NLB instance.
- Cross
Zone boolEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - Description string
- The description of the NLB instance.
- Ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - Ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- Ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- Load
Balancer stringName - The name of the NLB instance.
- Modification
Protection stringReason - The reason for modification protection.
- Modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - Project
Name string - The project name of the NLB instance.
- Security
Group []stringIds - The security group IDs of the NLB instance.
-
[]Network
Load Balancer Tag Args - Tags.
- network
Type String - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - region String
- The region of the NLB instance.
- vpc
Id String - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings List<NetworkLoad Balancer Zone Mapping> - The zone mappings of the NLB instance.
- access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- cross
Zone BooleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description String
- The description of the NLB instance.
- ip
Address StringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package StringId - The ID of the IPv4 bandwidth package.
- ipv6Bandwidth
Package StringId - The ID of the IPv6 bandwidth package.
- load
Balancer StringName - The name of the NLB instance.
- modification
Protection StringReason - The reason for modification protection.
- modification
Protection StringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - project
Name String - The project name of the NLB instance.
- security
Group List<String>Ids - The security group IDs of the NLB instance.
-
List<Network
Load Balancer Tag> - Tags.
- network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - region string
- The region of the NLB instance.
- vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings NetworkLoad Balancer Zone Mapping[] - The zone mappings of the NLB instance.
- access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- cross
Zone booleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description string
- The description of the NLB instance.
- ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- load
Balancer stringName - The name of the NLB instance.
- modification
Protection stringReason - The reason for modification protection.
- modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - project
Name string - The project name of the NLB instance.
- security
Group string[]Ids - The security group IDs of the NLB instance.
-
Network
Load Balancer Tag[] - Tags.
- network_
type str - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - region str
- The region of the NLB instance.
- vpc_
id str - The ID of the VPC where the NLB instance is deployed.
- zone_
mappings Sequence[NetworkLoad Balancer Zone Mapping Args] - The zone mappings of the NLB instance.
- access_
log_ Networkconfig Load Balancer Access Log Config Args - The access log configuration of the NLB instance.
- cross_
zone_ boolenabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description str
- The description of the NLB instance.
- ip_
address_ strversion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4_
bandwidth_ strpackage_ id - The ID of the IPv4 bandwidth package.
- ipv6_
bandwidth_ strpackage_ id - The ID of the IPv6 bandwidth package.
- load_
balancer_ strname - The name of the NLB instance.
- modification_
protection_ strreason - The reason for modification protection.
- modification_
protection_ strstatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - project_
name str - The project name of the NLB instance.
- security_
group_ Sequence[str]ids - The security group IDs of the NLB instance.
-
Sequence[Network
Load Balancer Tag Args] - Tags.
- network
Type String - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - region String
- The region of the NLB instance.
- vpc
Id String - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings List<Property Map> - The zone mappings of the NLB instance.
- access
Log Property MapConfig - The access log configuration of the NLB instance.
- cross
Zone BooleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description String
- The description of the NLB instance.
- ip
Address StringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package StringId - The ID of the IPv4 bandwidth package.
- ipv6Bandwidth
Package StringId - The ID of the IPv6 bandwidth package.
- load
Balancer StringName - The name of the NLB instance.
- modification
Protection StringReason - The reason for modification protection.
- modification
Protection StringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - project
Name String - The project name of the NLB instance.
- security
Group List<String>Ids - The security group IDs of the NLB instance.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkLoadBalancer resource produces the following output properties:
- Account
Id string - The account ID of the NLB instance.
- Billing
Status string - The billing status of the NLB instance.
- Create
Time string - The creation time of the NLB instance.
- Dns
Name string - The DNS name of the NLB instance.
- Expected
Overdue stringTime - The expected overdue time of the NLB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Network
Type string - The IPv4 network type of the NLB instance.
- Ipv6Network
Type string - The IPv6 network type of the NLB instance.
- Managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- Overdue
Time string - The overdue time of the NLB instance.
- Reclaimed
Time string - The reclaimed time of the NLB instance.
- Status string
- The status of the NLB instance.
- Update
Time string - The update time of the NLB instance.
- Account
Id string - The account ID of the NLB instance.
- Billing
Status string - The billing status of the NLB instance.
- Create
Time string - The creation time of the NLB instance.
- Dns
Name string - The DNS name of the NLB instance.
- Expected
Overdue stringTime - The expected overdue time of the NLB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Network
Type string - The IPv4 network type of the NLB instance.
- Ipv6Network
Type string - The IPv6 network type of the NLB instance.
- Managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- Overdue
Time string - The overdue time of the NLB instance.
- Reclaimed
Time string - The reclaimed time of the NLB instance.
- Status string
- The status of the NLB instance.
- Update
Time string - The update time of the NLB instance.
- account
Id String - The account ID of the NLB instance.
- billing
Status String - The billing status of the NLB instance.
- create
Time String - The creation time of the NLB instance.
- dns
Name String - The DNS name of the NLB instance.
- expected
Overdue StringTime - The expected overdue time of the NLB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Network
Type String - The IPv4 network type of the NLB instance.
- ipv6Network
Type String - The IPv6 network type of the NLB instance.
- managed
Security StringGroup Id - The managed security group ID of the NLB instance.
- overdue
Time String - The overdue time of the NLB instance.
- reclaimed
Time String - The reclaimed time of the NLB instance.
- status String
- The status of the NLB instance.
- update
Time String - The update time of the NLB instance.
- account
Id string - The account ID of the NLB instance.
- billing
Status string - The billing status of the NLB instance.
- create
Time string - The creation time of the NLB instance.
- dns
Name string - The DNS name of the NLB instance.
- expected
Overdue stringTime - The expected overdue time of the NLB instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv4Network
Type string - The IPv4 network type of the NLB instance.
- ipv6Network
Type string - The IPv6 network type of the NLB instance.
- managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- overdue
Time string - The overdue time of the NLB instance.
- reclaimed
Time string - The reclaimed time of the NLB instance.
- status string
- The status of the NLB instance.
- update
Time string - The update time of the NLB instance.
- account_
id str - The account ID of the NLB instance.
- billing_
status str - The billing status of the NLB instance.
- create_
time str - The creation time of the NLB instance.
- dns_
name str - The DNS name of the NLB instance.
- expected_
overdue_ strtime - The expected overdue time of the NLB instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv4_
network_ strtype - The IPv4 network type of the NLB instance.
- ipv6_
network_ strtype - The IPv6 network type of the NLB instance.
- managed_
security_ strgroup_ id - The managed security group ID of the NLB instance.
- overdue_
time str - The overdue time of the NLB instance.
- reclaimed_
time str - The reclaimed time of the NLB instance.
- status str
- The status of the NLB instance.
- update_
time str - The update time of the NLB instance.
- account
Id String - The account ID of the NLB instance.
- billing
Status String - The billing status of the NLB instance.
- create
Time String - The creation time of the NLB instance.
- dns
Name String - The DNS name of the NLB instance.
- expected
Overdue StringTime - The expected overdue time of the NLB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Network
Type String - The IPv4 network type of the NLB instance.
- ipv6Network
Type String - The IPv6 network type of the NLB instance.
- managed
Security StringGroup Id - The managed security group ID of the NLB instance.
- overdue
Time String - The overdue time of the NLB instance.
- reclaimed
Time String - The reclaimed time of the NLB instance.
- status String
- The status of the NLB instance.
- update
Time String - The update time of the NLB instance.
Look up Existing NetworkLoadBalancer Resource
Get an existing NetworkLoadBalancer 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?: NetworkLoadBalancerState, opts?: CustomResourceOptions): NetworkLoadBalancer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_log_config: Optional[NetworkLoadBalancerAccessLogConfigArgs] = None,
account_id: Optional[str] = None,
billing_status: Optional[str] = None,
create_time: Optional[str] = None,
cross_zone_enabled: Optional[bool] = None,
description: Optional[str] = None,
dns_name: Optional[str] = None,
expected_overdue_time: Optional[str] = None,
ip_address_version: Optional[str] = None,
ipv4_bandwidth_package_id: Optional[str] = None,
ipv4_network_type: Optional[str] = None,
ipv6_bandwidth_package_id: Optional[str] = None,
ipv6_network_type: Optional[str] = None,
load_balancer_name: Optional[str] = None,
managed_security_group_id: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
network_type: Optional[str] = None,
overdue_time: Optional[str] = None,
project_name: Optional[str] = None,
reclaimed_time: Optional[str] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Sequence[NetworkLoadBalancerTagArgs]] = None,
update_time: Optional[str] = None,
vpc_id: Optional[str] = None,
zone_mappings: Optional[Sequence[NetworkLoadBalancerZoneMappingArgs]] = None) -> NetworkLoadBalancerfunc GetNetworkLoadBalancer(ctx *Context, name string, id IDInput, state *NetworkLoadBalancerState, opts ...ResourceOption) (*NetworkLoadBalancer, error)public static NetworkLoadBalancer Get(string name, Input<string> id, NetworkLoadBalancerState? state, CustomResourceOptions? opts = null)public static NetworkLoadBalancer get(String name, Output<String> id, NetworkLoadBalancerState state, CustomResourceOptions options)resources: _: type: volcengine:nlb:NetworkLoadBalancer get: id: ${id}- 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.
- Access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- Account
Id string - The account ID of the NLB instance.
- Billing
Status string - The billing status of the NLB instance.
- Create
Time string - The creation time of the NLB instance.
- Cross
Zone boolEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - Description string
- The description of the NLB instance.
- Dns
Name string - The DNS name of the NLB instance.
- Expected
Overdue stringTime - The expected overdue time of the NLB instance.
- Ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - Ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- Ipv4Network
Type string - The IPv4 network type of the NLB instance.
- Ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- Ipv6Network
Type string - The IPv6 network type of the NLB instance.
- Load
Balancer stringName - The name of the NLB instance.
- Managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- Modification
Protection stringReason - The reason for modification protection.
- Modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - Network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - Overdue
Time string - The overdue time of the NLB instance.
- Project
Name string - The project name of the NLB instance.
- Reclaimed
Time string - The reclaimed time of the NLB instance.
- Region string
- The region of the NLB instance.
- Security
Group List<string>Ids - The security group IDs of the NLB instance.
- Status string
- The status of the NLB instance.
-
List<Network
Load Balancer Tag> - Tags.
- Update
Time string - The update time of the NLB instance.
- Vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- Zone
Mappings List<NetworkLoad Balancer Zone Mapping> - The zone mappings of the NLB instance.
- Access
Log NetworkConfig Load Balancer Access Log Config Args - The access log configuration of the NLB instance.
- Account
Id string - The account ID of the NLB instance.
- Billing
Status string - The billing status of the NLB instance.
- Create
Time string - The creation time of the NLB instance.
- Cross
Zone boolEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - Description string
- The description of the NLB instance.
- Dns
Name string - The DNS name of the NLB instance.
- Expected
Overdue stringTime - The expected overdue time of the NLB instance.
- Ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - Ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- Ipv4Network
Type string - The IPv4 network type of the NLB instance.
- Ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- Ipv6Network
Type string - The IPv6 network type of the NLB instance.
- Load
Balancer stringName - The name of the NLB instance.
- Managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- Modification
Protection stringReason - The reason for modification protection.
- Modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - Network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - Overdue
Time string - The overdue time of the NLB instance.
- Project
Name string - The project name of the NLB instance.
- Reclaimed
Time string - The reclaimed time of the NLB instance.
- Region string
- The region of the NLB instance.
- Security
Group []stringIds - The security group IDs of the NLB instance.
- Status string
- The status of the NLB instance.
-
[]Network
Load Balancer Tag Args - Tags.
- Update
Time string - The update time of the NLB instance.
- Vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- Zone
Mappings []NetworkLoad Balancer Zone Mapping Args - The zone mappings of the NLB instance.
- access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- account
Id String - The account ID of the NLB instance.
- billing
Status String - The billing status of the NLB instance.
- create
Time String - The creation time of the NLB instance.
- cross
Zone BooleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description String
- The description of the NLB instance.
- dns
Name String - The DNS name of the NLB instance.
- expected
Overdue StringTime - The expected overdue time of the NLB instance.
- ip
Address StringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package StringId - The ID of the IPv4 bandwidth package.
- ipv4Network
Type String - The IPv4 network type of the NLB instance.
- ipv6Bandwidth
Package StringId - The ID of the IPv6 bandwidth package.
- ipv6Network
Type String - The IPv6 network type of the NLB instance.
- load
Balancer StringName - The name of the NLB instance.
- managed
Security StringGroup Id - The managed security group ID of the NLB instance.
- modification
Protection StringReason - The reason for modification protection.
- modification
Protection StringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - network
Type String - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - overdue
Time String - The overdue time of the NLB instance.
- project
Name String - The project name of the NLB instance.
- reclaimed
Time String - The reclaimed time of the NLB instance.
- region String
- The region of the NLB instance.
- security
Group List<String>Ids - The security group IDs of the NLB instance.
- status String
- The status of the NLB instance.
-
List<Network
Load Balancer Tag> - Tags.
- update
Time String - The update time of the NLB instance.
- vpc
Id String - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings List<NetworkLoad Balancer Zone Mapping> - The zone mappings of the NLB instance.
- access
Log NetworkConfig Load Balancer Access Log Config - The access log configuration of the NLB instance.
- account
Id string - The account ID of the NLB instance.
- billing
Status string - The billing status of the NLB instance.
- create
Time string - The creation time of the NLB instance.
- cross
Zone booleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description string
- The description of the NLB instance.
- dns
Name string - The DNS name of the NLB instance.
- expected
Overdue stringTime - The expected overdue time of the NLB instance.
- ip
Address stringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package stringId - The ID of the IPv4 bandwidth package.
- ipv4Network
Type string - The IPv4 network type of the NLB instance.
- ipv6Bandwidth
Package stringId - The ID of the IPv6 bandwidth package.
- ipv6Network
Type string - The IPv6 network type of the NLB instance.
- load
Balancer stringName - The name of the NLB instance.
- managed
Security stringGroup Id - The managed security group ID of the NLB instance.
- modification
Protection stringReason - The reason for modification protection.
- modification
Protection stringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - network
Type string - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - overdue
Time string - The overdue time of the NLB instance.
- project
Name string - The project name of the NLB instance.
- reclaimed
Time string - The reclaimed time of the NLB instance.
- region string
- The region of the NLB instance.
- security
Group string[]Ids - The security group IDs of the NLB instance.
- status string
- The status of the NLB instance.
-
Network
Load Balancer Tag[] - Tags.
- update
Time string - The update time of the NLB instance.
- vpc
Id string - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings NetworkLoad Balancer Zone Mapping[] - The zone mappings of the NLB instance.
- access_
log_ Networkconfig Load Balancer Access Log Config Args - The access log configuration of the NLB instance.
- account_
id str - The account ID of the NLB instance.
- billing_
status str - The billing status of the NLB instance.
- create_
time str - The creation time of the NLB instance.
- cross_
zone_ boolenabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description str
- The description of the NLB instance.
- dns_
name str - The DNS name of the NLB instance.
- expected_
overdue_ strtime - The expected overdue time of the NLB instance.
- ip_
address_ strversion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4_
bandwidth_ strpackage_ id - The ID of the IPv4 bandwidth package.
- ipv4_
network_ strtype - The IPv4 network type of the NLB instance.
- ipv6_
bandwidth_ strpackage_ id - The ID of the IPv6 bandwidth package.
- ipv6_
network_ strtype - The IPv6 network type of the NLB instance.
- load_
balancer_ strname - The name of the NLB instance.
- managed_
security_ strgroup_ id - The managed security group ID of the NLB instance.
- modification_
protection_ strreason - The reason for modification protection.
- modification_
protection_ strstatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - network_
type str - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - overdue_
time str - The overdue time of the NLB instance.
- project_
name str - The project name of the NLB instance.
- reclaimed_
time str - The reclaimed time of the NLB instance.
- region str
- The region of the NLB instance.
- security_
group_ Sequence[str]ids - The security group IDs of the NLB instance.
- status str
- The status of the NLB instance.
-
Sequence[Network
Load Balancer Tag Args] - Tags.
- update_
time str - The update time of the NLB instance.
- vpc_
id str - The ID of the VPC where the NLB instance is deployed.
- zone_
mappings Sequence[NetworkLoad Balancer Zone Mapping Args] - The zone mappings of the NLB instance.
- access
Log Property MapConfig - The access log configuration of the NLB instance.
- account
Id String - The account ID of the NLB instance.
- billing
Status String - The billing status of the NLB instance.
- create
Time String - The creation time of the NLB instance.
- cross
Zone BooleanEnabled - Whether to enable cross-zone load balancing for the NLB instance. Valid values:
true,false.true: Enable.false: Disable. - description String
- The description of the NLB instance.
- dns
Name String - The DNS name of the NLB instance.
- expected
Overdue StringTime - The expected overdue time of the NLB instance.
- ip
Address StringVersion - The IP address version of the NLB instance. Valid values:
ipv4,dualstack.ipv4: The NLB instance supports IPv4.dualstack: The NLB instance supports both IPv4 and IPv6. - ipv4Bandwidth
Package StringId - The ID of the IPv4 bandwidth package.
- ipv4Network
Type String - The IPv4 network type of the NLB instance.
- ipv6Bandwidth
Package StringId - The ID of the IPv6 bandwidth package.
- ipv6Network
Type String - The IPv6 network type of the NLB instance.
- load
Balancer StringName - The name of the NLB instance.
- managed
Security StringGroup Id - The managed security group ID of the NLB instance.
- modification
Protection StringReason - The reason for modification protection.
- modification
Protection StringStatus - The modification protection status of the NLB instance. Valid values:
NonProtection,ConsoleProtection.NonProtection: No protection.ConsoleProtection: Console protection. - network
Type String - The network type of the NLB instance. Valid values:
internet,intranet.internet: The NLB instance is an internet-facing instance.intranet: The NLB instance is an internal-facing instance. - overdue
Time String - The overdue time of the NLB instance.
- project
Name String - The project name of the NLB instance.
- reclaimed
Time String - The reclaimed time of the NLB instance.
- region String
- The region of the NLB instance.
- security
Group List<String>Ids - The security group IDs of the NLB instance.
- status String
- The status of the NLB instance.
- List<Property Map>
- Tags.
- update
Time String - The update time of the NLB instance.
- vpc
Id String - The ID of the VPC where the NLB instance is deployed.
- zone
Mappings List<Property Map> - The zone mappings of the NLB instance.
Supporting Types
NetworkLoadBalancerAccessLogConfig, NetworkLoadBalancerAccessLogConfigArgs
- Enabled bool
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - Project
Name string - The project name where the access log topic resides.
- Topic
Id string - The topic ID of the access log.
- Topic
Name string - The topic name of the access log.
- Enabled bool
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - Project
Name string - The project name where the access log topic resides.
- Topic
Id string - The topic ID of the access log.
- Topic
Name string - The topic name of the access log.
- enabled Boolean
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - project
Name String - The project name where the access log topic resides.
- topic
Id String - The topic ID of the access log.
- topic
Name String - The topic name of the access log.
- enabled boolean
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - project
Name string - The project name where the access log topic resides.
- topic
Id string - The topic ID of the access log.
- topic
Name string - The topic name of the access log.
- enabled bool
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - project_
name str - The project name where the access log topic resides.
- topic_
id str - The topic ID of the access log.
- topic_
name str - The topic name of the access log.
- enabled Boolean
- Whether to enable access logging. Valid values:
true,false.true: Enable.false: Disable. - project
Name String - The project name where the access log topic resides.
- topic
Id String - The topic ID of the access log.
- topic
Name String - The topic name of the access log.
NetworkLoadBalancerTag, NetworkLoadBalancerTagArgs
NetworkLoadBalancerZoneMapping, NetworkLoadBalancerZoneMappingArgs
- Subnet
Id string - The ID of the subnet.
- Zone
Id string - The ID of the zone.
- Eip
Id string - The ID of the EIP.
- Eni
Id string - The ID of the ENI.
- Ipv4Address string
- The IPv4 address of the NLB instance.
- Ipv4Eip
Address string - The public IPv4 address.
- Ipv4Eip
Id string - The ID of the EIP.
- Ipv4Hc
Status string - The IPv4 health check status.
- Ipv6Address string
- The IPv6 address of the NLB instance.
- Ipv6Eip
Id string - The ID of the IPv6 EIP.
- Ipv6Hc
Status string - The IPv6 health check status.
- Subnet
Id string - The ID of the subnet.
- Zone
Id string - The ID of the zone.
- Eip
Id string - The ID of the EIP.
- Eni
Id string - The ID of the ENI.
- Ipv4Address string
- The IPv4 address of the NLB instance.
- Ipv4Eip
Address string - The public IPv4 address.
- Ipv4Eip
Id string - The ID of the EIP.
- Ipv4Hc
Status string - The IPv4 health check status.
- Ipv6Address string
- The IPv6 address of the NLB instance.
- Ipv6Eip
Id string - The ID of the IPv6 EIP.
- Ipv6Hc
Status string - The IPv6 health check status.
- subnet
Id String - The ID of the subnet.
- zone
Id String - The ID of the zone.
- eip
Id String - The ID of the EIP.
- eni
Id String - The ID of the ENI.
- ipv4Address String
- The IPv4 address of the NLB instance.
- ipv4Eip
Address String - The public IPv4 address.
- ipv4Eip
Id String - The ID of the EIP.
- ipv4Hc
Status String - The IPv4 health check status.
- ipv6Address String
- The IPv6 address of the NLB instance.
- ipv6Eip
Id String - The ID of the IPv6 EIP.
- ipv6Hc
Status String - The IPv6 health check status.
- subnet
Id string - The ID of the subnet.
- zone
Id string - The ID of the zone.
- eip
Id string - The ID of the EIP.
- eni
Id string - The ID of the ENI.
- ipv4Address string
- The IPv4 address of the NLB instance.
- ipv4Eip
Address string - The public IPv4 address.
- ipv4Eip
Id string - The ID of the EIP.
- ipv4Hc
Status string - The IPv4 health check status.
- ipv6Address string
- The IPv6 address of the NLB instance.
- ipv6Eip
Id string - The ID of the IPv6 EIP.
- ipv6Hc
Status string - The IPv6 health check status.
- subnet_
id str - The ID of the subnet.
- zone_
id str - The ID of the zone.
- eip_
id str - The ID of the EIP.
- eni_
id str - The ID of the ENI.
- ipv4_
address str - The IPv4 address of the NLB instance.
- ipv4_
eip_ straddress - The public IPv4 address.
- ipv4_
eip_ strid - The ID of the EIP.
- ipv4_
hc_ strstatus - The IPv4 health check status.
- ipv6_
address str - The IPv6 address of the NLB instance.
- ipv6_
eip_ strid - The ID of the IPv6 EIP.
- ipv6_
hc_ strstatus - The IPv6 health check status.
- subnet
Id String - The ID of the subnet.
- zone
Id String - The ID of the zone.
- eip
Id String - The ID of the EIP.
- eni
Id String - The ID of the ENI.
- ipv4Address String
- The IPv4 address of the NLB instance.
- ipv4Eip
Address String - The public IPv4 address.
- ipv4Eip
Id String - The ID of the EIP.
- ipv4Hc
Status String - The IPv4 health check status.
- ipv6Address String
- The IPv6 address of the NLB instance.
- ipv6Eip
Id String - The ID of the IPv6 EIP.
- ipv6Hc
Status String - The IPv6 health check status.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
published on Friday, Mar 13, 2026 by Volcengine
