volcengine.vpc.NetworkInterface
Explore with Pulumi AI
Provides a resource to manage network interface
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Vpc.NetworkInterface("foo", new()
{
Description = "tf-test-up",
NetworkInterfaceName = "tf-test-up",
PortSecurityEnabled = false,
PrimaryIpAddress = "192.168.5.253",
PrivateIpAddresses = new[]
{
"192.168.5.2",
},
ProjectName = "default",
SecurityGroupIds = new[]
{
"sg-2fepz3c793g1s59gp67y21r34",
},
SubnetId = "subnet-2fe79j7c8o5c059gp68ksxr93",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewNetworkInterface(ctx, "foo", &vpc.NetworkInterfaceArgs{
Description: pulumi.String("tf-test-up"),
NetworkInterfaceName: pulumi.String("tf-test-up"),
PortSecurityEnabled: pulumi.Bool(false),
PrimaryIpAddress: pulumi.String("192.168.5.253"),
PrivateIpAddresses: pulumi.StringArray{
pulumi.String("192.168.5.2"),
},
ProjectName: pulumi.String("default"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-2fepz3c793g1s59gp67y21r34"),
},
SubnetId: pulumi.String("subnet-2fe79j7c8o5c059gp68ksxr93"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.NetworkInterface;
import com.pulumi.volcengine.vpc.NetworkInterfaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new NetworkInterface("foo", NetworkInterfaceArgs.builder()
.description("tf-test-up")
.networkInterfaceName("tf-test-up")
.portSecurityEnabled(false)
.primaryIpAddress("192.168.5.253")
.privateIpAddresses("192.168.5.2")
.projectName("default")
.securityGroupIds("sg-2fepz3c793g1s59gp67y21r34")
.subnetId("subnet-2fe79j7c8o5c059gp68ksxr93")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vpc.NetworkInterface("foo",
description="tf-test-up",
network_interface_name="tf-test-up",
port_security_enabled=False,
primary_ip_address="192.168.5.253",
private_ip_addresses=["192.168.5.2"],
project_name="default",
security_group_ids=["sg-2fepz3c793g1s59gp67y21r34"],
subnet_id="subnet-2fe79j7c8o5c059gp68ksxr93")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vpc.NetworkInterface("foo", {
description: "tf-test-up",
networkInterfaceName: "tf-test-up",
portSecurityEnabled: false,
primaryIpAddress: "192.168.5.253",
privateIpAddresses: ["192.168.5.2"],
projectName: "default",
securityGroupIds: ["sg-2fepz3c793g1s59gp67y21r34"],
subnetId: "subnet-2fe79j7c8o5c059gp68ksxr93",
});
resources:
foo:
type: volcengine:vpc:NetworkInterface
properties:
description: tf-test-up
networkInterfaceName: tf-test-up
portSecurityEnabled: false
primaryIpAddress: 192.168.5.253
privateIpAddresses:
- 192.168.5.2
projectName: default
securityGroupIds:
- sg-2fepz3c793g1s59gp67y21r34
subnetId: subnet-2fe79j7c8o5c059gp68ksxr93
Create NetworkInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkInterface(name: string, args: NetworkInterfaceArgs, opts?: CustomResourceOptions);
@overload
def NetworkInterface(resource_name: str,
args: NetworkInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
security_group_ids: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
description: Optional[str] = None,
ipv6_address_count: Optional[int] = None,
ipv6_addresses: Optional[Sequence[str]] = None,
network_interface_name: Optional[str] = None,
port_security_enabled: Optional[bool] = None,
primary_ip_address: Optional[str] = None,
private_ip_addresses: Optional[Sequence[str]] = None,
project_name: Optional[str] = None,
secondary_private_ip_address_count: Optional[int] = None,
tags: Optional[Sequence[NetworkInterfaceTagArgs]] = None)
func NewNetworkInterface(ctx *Context, name string, args NetworkInterfaceArgs, opts ...ResourceOption) (*NetworkInterface, error)
public NetworkInterface(string name, NetworkInterfaceArgs args, CustomResourceOptions? opts = null)
public NetworkInterface(String name, NetworkInterfaceArgs args)
public NetworkInterface(String name, NetworkInterfaceArgs args, CustomResourceOptions options)
type: volcengine:vpc:NetworkInterface
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 NetworkInterfaceArgs
- 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 NetworkInterfaceArgs
- 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 NetworkInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkInterfaceArgs
- 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 networkInterfaceResource = new Volcengine.Vpc.NetworkInterface("networkInterfaceResource", new()
{
SecurityGroupIds = new[]
{
"string",
},
SubnetId = "string",
Description = "string",
Ipv6AddressCount = 0,
Ipv6Addresses = new[]
{
"string",
},
NetworkInterfaceName = "string",
PortSecurityEnabled = false,
PrimaryIpAddress = "string",
PrivateIpAddresses = new[]
{
"string",
},
ProjectName = "string",
SecondaryPrivateIpAddressCount = 0,
Tags = new[]
{
new Volcengine.Vpc.Inputs.NetworkInterfaceTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vpc.NewNetworkInterface(ctx, "networkInterfaceResource", &vpc.NetworkInterfaceArgs{
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
Description: pulumi.String("string"),
Ipv6AddressCount: pulumi.Int(0),
Ipv6Addresses: pulumi.StringArray{
pulumi.String("string"),
},
NetworkInterfaceName: pulumi.String("string"),
PortSecurityEnabled: pulumi.Bool(false),
PrimaryIpAddress: pulumi.String("string"),
PrivateIpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
ProjectName: pulumi.String("string"),
SecondaryPrivateIpAddressCount: pulumi.Int(0),
Tags: vpc.NetworkInterfaceTagArray{
&vpc.NetworkInterfaceTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var networkInterfaceResource = new NetworkInterface("networkInterfaceResource", NetworkInterfaceArgs.builder()
.securityGroupIds("string")
.subnetId("string")
.description("string")
.ipv6AddressCount(0)
.ipv6Addresses("string")
.networkInterfaceName("string")
.portSecurityEnabled(false)
.primaryIpAddress("string")
.privateIpAddresses("string")
.projectName("string")
.secondaryPrivateIpAddressCount(0)
.tags(NetworkInterfaceTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
network_interface_resource = volcengine.vpc.NetworkInterface("networkInterfaceResource",
security_group_ids=["string"],
subnet_id="string",
description="string",
ipv6_address_count=0,
ipv6_addresses=["string"],
network_interface_name="string",
port_security_enabled=False,
primary_ip_address="string",
private_ip_addresses=["string"],
project_name="string",
secondary_private_ip_address_count=0,
tags=[{
"key": "string",
"value": "string",
}])
const networkInterfaceResource = new volcengine.vpc.NetworkInterface("networkInterfaceResource", {
securityGroupIds: ["string"],
subnetId: "string",
description: "string",
ipv6AddressCount: 0,
ipv6Addresses: ["string"],
networkInterfaceName: "string",
portSecurityEnabled: false,
primaryIpAddress: "string",
privateIpAddresses: ["string"],
projectName: "string",
secondaryPrivateIpAddressCount: 0,
tags: [{
key: "string",
value: "string",
}],
});
type: volcengine:vpc:NetworkInterface
properties:
description: string
ipv6AddressCount: 0
ipv6Addresses:
- string
networkInterfaceName: string
portSecurityEnabled: false
primaryIpAddress: string
privateIpAddresses:
- string
projectName: string
secondaryPrivateIpAddressCount: 0
securityGroupIds:
- string
subnetId: string
tags:
- key: string
value: string
NetworkInterface 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 NetworkInterface resource accepts the following input properties:
- Security
Group List<string>Ids - The list of the security group id to which the secondary ENI belongs.
- Subnet
Id string - The id of the subnet to which the ENI is connected.
- Description string
- The description of the ENI.
- Ipv6Address
Count int - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Ipv6Addresses List<string>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Network
Interface stringName - The name of the ENI.
- Port
Security boolEnabled - Set port security enable or disable.
- Primary
Ip stringAddress - The primary IP address of the ENI.
- Private
Ip List<string>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - Project
Name string - The ProjectName of the ENI.
- Secondary
Private intIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - List<Network
Interface Tag> - Tags.
- Security
Group []stringIds - The list of the security group id to which the secondary ENI belongs.
- Subnet
Id string - The id of the subnet to which the ENI is connected.
- Description string
- The description of the ENI.
- Ipv6Address
Count int - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Ipv6Addresses []string
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Network
Interface stringName - The name of the ENI.
- Port
Security boolEnabled - Set port security enable or disable.
- Primary
Ip stringAddress - The primary IP address of the ENI.
- Private
Ip []stringAddresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - Project
Name string - The ProjectName of the ENI.
- Secondary
Private intIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - []Network
Interface Tag Args - Tags.
- security
Group List<String>Ids - The list of the security group id to which the secondary ENI belongs.
- subnet
Id String - The id of the subnet to which the ENI is connected.
- description String
- The description of the ENI.
- ipv6Address
Count Integer - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses List<String>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface StringName - The name of the ENI.
- port
Security BooleanEnabled - Set port security enable or disable.
- primary
Ip StringAddress - The primary IP address of the ENI.
- private
Ip List<String>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name String - The ProjectName of the ENI.
- secondary
Private IntegerIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - List<Network
Interface Tag> - Tags.
- security
Group string[]Ids - The list of the security group id to which the secondary ENI belongs.
- subnet
Id string - The id of the subnet to which the ENI is connected.
- description string
- The description of the ENI.
- ipv6Address
Count number - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses string[]
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface stringName - The name of the ENI.
- port
Security booleanEnabled - Set port security enable or disable.
- primary
Ip stringAddress - The primary IP address of the ENI.
- private
Ip string[]Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name string - The ProjectName of the ENI.
- secondary
Private numberIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - Network
Interface Tag[] - Tags.
- security_
group_ Sequence[str]ids - The list of the security group id to which the secondary ENI belongs.
- subnet_
id str - The id of the subnet to which the ENI is connected.
- description str
- The description of the ENI.
- ipv6_
address_ intcount - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6_
addresses Sequence[str] - One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network_
interface_ strname - The name of the ENI.
- port_
security_ boolenabled - Set port security enable or disable.
- primary_
ip_ straddress - The primary IP address of the ENI.
- private_
ip_ Sequence[str]addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project_
name str - The ProjectName of the ENI.
- secondary_
private_ intip_ address_ count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - Sequence[Network
Interface Tag Args] - Tags.
- security
Group List<String>Ids - The list of the security group id to which the secondary ENI belongs.
- subnet
Id String - The id of the subnet to which the ENI is connected.
- description String
- The description of the ENI.
- ipv6Address
Count Number - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses List<String>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface StringName - The name of the ENI.
- port
Security BooleanEnabled - Set port security enable or disable.
- primary
Ip StringAddress - The primary IP address of the ENI.
- private
Ip List<String>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name String - The ProjectName of the ENI.
- secondary
Private NumberIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkInterface resource produces the following output properties:
Look up Existing NetworkInterface Resource
Get an existing NetworkInterface 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?: NetworkInterfaceState, opts?: CustomResourceOptions): NetworkInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ipv6_address_count: Optional[int] = None,
ipv6_addresses: Optional[Sequence[str]] = None,
network_interface_name: Optional[str] = None,
port_security_enabled: Optional[bool] = None,
primary_ip_address: Optional[str] = None,
private_ip_addresses: Optional[Sequence[str]] = None,
project_name: Optional[str] = None,
secondary_private_ip_address_count: Optional[int] = None,
security_group_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[NetworkInterfaceTagArgs]] = None) -> NetworkInterface
func GetNetworkInterface(ctx *Context, name string, id IDInput, state *NetworkInterfaceState, opts ...ResourceOption) (*NetworkInterface, error)
public static NetworkInterface Get(string name, Input<string> id, NetworkInterfaceState? state, CustomResourceOptions? opts = null)
public static NetworkInterface get(String name, Output<String> id, NetworkInterfaceState 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.
- Description string
- The description of the ENI.
- Ipv6Address
Count int - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Ipv6Addresses List<string>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Network
Interface stringName - The name of the ENI.
- Port
Security boolEnabled - Set port security enable or disable.
- Primary
Ip stringAddress - The primary IP address of the ENI.
- Private
Ip List<string>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - Project
Name string - The ProjectName of the ENI.
- Secondary
Private intIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - Security
Group List<string>Ids - The list of the security group id to which the secondary ENI belongs.
- Status string
- The status of the ENI.
- Subnet
Id string - The id of the subnet to which the ENI is connected.
- List<Network
Interface Tag> - Tags.
- Description string
- The description of the ENI.
- Ipv6Address
Count int - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Ipv6Addresses []string
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- Network
Interface stringName - The name of the ENI.
- Port
Security boolEnabled - Set port security enable or disable.
- Primary
Ip stringAddress - The primary IP address of the ENI.
- Private
Ip []stringAddresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - Project
Name string - The ProjectName of the ENI.
- Secondary
Private intIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - Security
Group []stringIds - The list of the security group id to which the secondary ENI belongs.
- Status string
- The status of the ENI.
- Subnet
Id string - The id of the subnet to which the ENI is connected.
- []Network
Interface Tag Args - Tags.
- description String
- The description of the ENI.
- ipv6Address
Count Integer - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses List<String>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface StringName - The name of the ENI.
- port
Security BooleanEnabled - Set port security enable or disable.
- primary
Ip StringAddress - The primary IP address of the ENI.
- private
Ip List<String>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name String - The ProjectName of the ENI.
- secondary
Private IntegerIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - security
Group List<String>Ids - The list of the security group id to which the secondary ENI belongs.
- status String
- The status of the ENI.
- subnet
Id String - The id of the subnet to which the ENI is connected.
- List<Network
Interface Tag> - Tags.
- description string
- The description of the ENI.
- ipv6Address
Count number - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses string[]
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface stringName - The name of the ENI.
- port
Security booleanEnabled - Set port security enable or disable.
- primary
Ip stringAddress - The primary IP address of the ENI.
- private
Ip string[]Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name string - The ProjectName of the ENI.
- secondary
Private numberIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - security
Group string[]Ids - The list of the security group id to which the secondary ENI belongs.
- status string
- The status of the ENI.
- subnet
Id string - The id of the subnet to which the ENI is connected.
- Network
Interface Tag[] - Tags.
- description str
- The description of the ENI.
- ipv6_
address_ intcount - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6_
addresses Sequence[str] - One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network_
interface_ strname - The name of the ENI.
- port_
security_ boolenabled - Set port security enable or disable.
- primary_
ip_ straddress - The primary IP address of the ENI.
- private_
ip_ Sequence[str]addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project_
name str - The ProjectName of the ENI.
- secondary_
private_ intip_ address_ count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - security_
group_ Sequence[str]ids - The list of the security group id to which the secondary ENI belongs.
- status str
- The status of the ENI.
- subnet_
id str - The id of the subnet to which the ENI is connected.
- Sequence[Network
Interface Tag Args] - Tags.
- description String
- The description of the ENI.
- ipv6Address
Count Number - The number of IPv6 addresses to be automatically assigned from within the CIDR block of the subnet that hosts the ENI. Valid values: 0 to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- ipv6Addresses List<String>
- One or more IPv6 addresses selected from within the CIDR block of the subnet that hosts the ENI. Support up to 10. You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
- network
Interface StringName - The name of the ENI.
- port
Security BooleanEnabled - Set port security enable or disable.
- primary
Ip StringAddress - The primary IP address of the ENI.
- private
Ip List<String>Addresses - The list of private ip address. This field conflicts with
secondary_private_ip_address_count
. - project
Name String - The ProjectName of the ENI.
- secondary
Private NumberIp Address Count - The count of secondary private ip address. This field conflicts with
private_ip_address
. - security
Group List<String>Ids - The list of the security group id to which the secondary ENI belongs.
- status String
- The status of the ENI.
- subnet
Id String - The id of the subnet to which the ENI is connected.
- List<Property Map>
- Tags.
Supporting Types
NetworkInterfaceTag, NetworkInterfaceTagArgs
Import
Network interface can be imported using the id, e.g.
$ pulumi import volcengine:vpc/networkInterface:NetworkInterface default eni-bp1fgnh68xyz9****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.