volcengine.vpc.NetworkInterface
Explore with Pulumi AI
Provides a resource to manage network interface
Example Usage
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",
});
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")
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
	})
}
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 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());
    }
}
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:
- SecurityGroup List<string>Ids 
- The list of the security group id to which the secondary ENI belongs.
- SubnetId string
- The id of the subnet to which the ENI is connected.
- Description string
- The description of the ENI.
- Ipv6AddressCount 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.
- NetworkInterface stringName 
- The name of the ENI.
- PortSecurity boolEnabled 
- Set port security enable or disable.
- PrimaryIp stringAddress 
- The primary IP address of the ENI.
- PrivateIp List<string>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- ProjectName string
- The ProjectName of the ENI.
- SecondaryPrivate intIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- 
List<NetworkInterface Tag> 
- Tags.
- SecurityGroup []stringIds 
- The list of the security group id to which the secondary ENI belongs.
- SubnetId string
- The id of the subnet to which the ENI is connected.
- Description string
- The description of the ENI.
- Ipv6AddressCount 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.
- NetworkInterface stringName 
- The name of the ENI.
- PortSecurity boolEnabled 
- Set port security enable or disable.
- PrimaryIp stringAddress 
- The primary IP address of the ENI.
- PrivateIp []stringAddresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- ProjectName string
- The ProjectName of the ENI.
- SecondaryPrivate intIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- 
[]NetworkInterface Tag Args 
- Tags.
- securityGroup List<String>Ids 
- The list of the security group id to which the secondary ENI belongs.
- subnetId String
- The id of the subnet to which the ENI is connected.
- description String
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface StringName 
- The name of the ENI.
- portSecurity BooleanEnabled 
- Set port security enable or disable.
- primaryIp StringAddress 
- The primary IP address of the ENI.
- privateIp List<String>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName String
- The ProjectName of the ENI.
- secondaryPrivate IntegerIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- 
List<NetworkInterface Tag> 
- Tags.
- securityGroup string[]Ids 
- The list of the security group id to which the secondary ENI belongs.
- subnetId string
- The id of the subnet to which the ENI is connected.
- description string
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface stringName 
- The name of the ENI.
- portSecurity booleanEnabled 
- Set port security enable or disable.
- primaryIp stringAddress 
- The primary IP address of the ENI.
- privateIp string[]Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName string
- The ProjectName of the ENI.
- secondaryPrivate numberIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- 
NetworkInterface 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[NetworkInterface Tag Args] 
- Tags.
- securityGroup List<String>Ids 
- The list of the security group id to which the secondary ENI belongs.
- subnetId String
- The id of the subnet to which the ENI is connected.
- description String
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface StringName 
- The name of the ENI.
- portSecurity BooleanEnabled 
- Set port security enable or disable.
- primaryIp StringAddress 
- The primary IP address of the ENI.
- privateIp List<String>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName String
- The ProjectName of the ENI.
- secondaryPrivate 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) -> NetworkInterfacefunc 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)resources:  _:    type: volcengine:vpc:NetworkInterface    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.
- Description string
- The description of the ENI.
- Ipv6AddressCount 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.
- NetworkInterface stringName 
- The name of the ENI.
- PortSecurity boolEnabled 
- Set port security enable or disable.
- PrimaryIp stringAddress 
- The primary IP address of the ENI.
- PrivateIp List<string>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- ProjectName string
- The ProjectName of the ENI.
- SecondaryPrivate intIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- SecurityGroup List<string>Ids 
- The list of the security group id to which the secondary ENI belongs.
- Status string
- The status of the ENI.
- SubnetId string
- The id of the subnet to which the ENI is connected.
- 
List<NetworkInterface Tag> 
- Tags.
- Description string
- The description of the ENI.
- Ipv6AddressCount 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.
- NetworkInterface stringName 
- The name of the ENI.
- PortSecurity boolEnabled 
- Set port security enable or disable.
- PrimaryIp stringAddress 
- The primary IP address of the ENI.
- PrivateIp []stringAddresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- ProjectName string
- The ProjectName of the ENI.
- SecondaryPrivate intIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- SecurityGroup []stringIds 
- The list of the security group id to which the secondary ENI belongs.
- Status string
- The status of the ENI.
- SubnetId string
- The id of the subnet to which the ENI is connected.
- 
[]NetworkInterface Tag Args 
- Tags.
- description String
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface StringName 
- The name of the ENI.
- portSecurity BooleanEnabled 
- Set port security enable or disable.
- primaryIp StringAddress 
- The primary IP address of the ENI.
- privateIp List<String>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName String
- The ProjectName of the ENI.
- secondaryPrivate IntegerIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- securityGroup List<String>Ids 
- The list of the security group id to which the secondary ENI belongs.
- status String
- The status of the ENI.
- subnetId String
- The id of the subnet to which the ENI is connected.
- 
List<NetworkInterface Tag> 
- Tags.
- description string
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface stringName 
- The name of the ENI.
- portSecurity booleanEnabled 
- Set port security enable or disable.
- primaryIp stringAddress 
- The primary IP address of the ENI.
- privateIp string[]Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName string
- The ProjectName of the ENI.
- secondaryPrivate numberIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- securityGroup string[]Ids 
- The list of the security group id to which the secondary ENI belongs.
- status string
- The status of the ENI.
- subnetId string
- The id of the subnet to which the ENI is connected.
- 
NetworkInterface 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[NetworkInterface Tag Args] 
- Tags.
- description String
- The description of the ENI.
- ipv6AddressCount 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.
- networkInterface StringName 
- The name of the ENI.
- portSecurity BooleanEnabled 
- Set port security enable or disable.
- primaryIp StringAddress 
- The primary IP address of the ENI.
- privateIp List<String>Addresses 
- The list of private ip address. This field conflicts with secondary_private_ip_address_count.
- projectName String
- The ProjectName of the ENI.
- secondaryPrivate NumberIp Address Count 
- The count of secondary private ip address. This field conflicts with private_ip_address.
- securityGroup List<String>Ids 
- The list of the security group id to which the secondary ENI belongs.
- status String
- The status of the ENI.
- subnetId 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 volcengineTerraform Provider.