1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. NetworkInterface
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.vpc.NetworkInterface

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    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=[volcengine.vpc.NetworkInterfaceTagArgs(
            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

    The NetworkInterface resource accepts the following input properties:

    SecurityGroupIds List<string>
    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.
    NetworkInterfaceName string
    The name of the ENI.
    PortSecurityEnabled bool
    Set port security enable or disable.
    PrimaryIpAddress string
    The primary IP address of the ENI.
    PrivateIpAddresses List<string>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    ProjectName string
    The ProjectName of the ENI.
    SecondaryPrivateIpAddressCount int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    Tags List<NetworkInterfaceTag>
    Tags.
    SecurityGroupIds []string
    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.
    NetworkInterfaceName string
    The name of the ENI.
    PortSecurityEnabled bool
    Set port security enable or disable.
    PrimaryIpAddress string
    The primary IP address of the ENI.
    PrivateIpAddresses []string
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    ProjectName string
    The ProjectName of the ENI.
    SecondaryPrivateIpAddressCount int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    Tags []NetworkInterfaceTagArgs
    Tags.
    securityGroupIds List<String>
    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.
    networkInterfaceName String
    The name of the ENI.
    portSecurityEnabled Boolean
    Set port security enable or disable.
    primaryIpAddress String
    The primary IP address of the ENI.
    privateIpAddresses List<String>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName String
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount Integer
    The count of secondary private ip address. This field conflicts with private_ip_address.
    tags List<NetworkInterfaceTag>
    Tags.
    securityGroupIds string[]
    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.
    networkInterfaceName string
    The name of the ENI.
    portSecurityEnabled boolean
    Set port security enable or disable.
    primaryIpAddress string
    The primary IP address of the ENI.
    privateIpAddresses string[]
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName string
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount number
    The count of secondary private ip address. This field conflicts with private_ip_address.
    tags NetworkInterfaceTag[]
    Tags.
    security_group_ids Sequence[str]
    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_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.
    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_name str
    The name of the ENI.
    port_security_enabled bool
    Set port security enable or disable.
    primary_ip_address str
    The primary IP address of the ENI.
    private_ip_addresses Sequence[str]
    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_ip_address_count int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    tags Sequence[NetworkInterfaceTagArgs]
    Tags.
    securityGroupIds List<String>
    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.
    networkInterfaceName String
    The name of the ENI.
    portSecurityEnabled Boolean
    Set port security enable or disable.
    primaryIpAddress String
    The primary IP address of the ENI.
    privateIpAddresses List<String>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName String
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount Number
    The count of secondary private ip address. This field conflicts with private_ip_address.
    tags List<Property Map>
    Tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkInterface resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the ENI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the ENI.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the ENI.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the ENI.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the ENI.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the ENI.

    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.
    The following state arguments are supported:
    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.
    NetworkInterfaceName string
    The name of the ENI.
    PortSecurityEnabled bool
    Set port security enable or disable.
    PrimaryIpAddress string
    The primary IP address of the ENI.
    PrivateIpAddresses List<string>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    ProjectName string
    The ProjectName of the ENI.
    SecondaryPrivateIpAddressCount int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    SecurityGroupIds List<string>
    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.
    Tags List<NetworkInterfaceTag>
    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.
    NetworkInterfaceName string
    The name of the ENI.
    PortSecurityEnabled bool
    Set port security enable or disable.
    PrimaryIpAddress string
    The primary IP address of the ENI.
    PrivateIpAddresses []string
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    ProjectName string
    The ProjectName of the ENI.
    SecondaryPrivateIpAddressCount int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    SecurityGroupIds []string
    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.
    Tags []NetworkInterfaceTagArgs
    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.
    networkInterfaceName String
    The name of the ENI.
    portSecurityEnabled Boolean
    Set port security enable or disable.
    primaryIpAddress String
    The primary IP address of the ENI.
    privateIpAddresses List<String>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName String
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount Integer
    The count of secondary private ip address. This field conflicts with private_ip_address.
    securityGroupIds List<String>
    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.
    tags List<NetworkInterfaceTag>
    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.
    networkInterfaceName string
    The name of the ENI.
    portSecurityEnabled boolean
    Set port security enable or disable.
    primaryIpAddress string
    The primary IP address of the ENI.
    privateIpAddresses string[]
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName string
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount number
    The count of secondary private ip address. This field conflicts with private_ip_address.
    securityGroupIds string[]
    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.
    tags NetworkInterfaceTag[]
    Tags.
    description str
    The description of the ENI.
    ipv6_address_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.
    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_name str
    The name of the ENI.
    port_security_enabled bool
    Set port security enable or disable.
    primary_ip_address str
    The primary IP address of the ENI.
    private_ip_addresses Sequence[str]
    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_ip_address_count int
    The count of secondary private ip address. This field conflicts with private_ip_address.
    security_group_ids Sequence[str]
    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.
    tags Sequence[NetworkInterfaceTagArgs]
    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.
    networkInterfaceName String
    The name of the ENI.
    portSecurityEnabled Boolean
    Set port security enable or disable.
    primaryIpAddress String
    The primary IP address of the ENI.
    privateIpAddresses List<String>
    The list of private ip address. This field conflicts with secondary_private_ip_address_count.
    projectName String
    The ProjectName of the ENI.
    secondaryPrivateIpAddressCount Number
    The count of secondary private ip address. This field conflicts with private_ip_address.
    securityGroupIds List<String>
    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.
    tags List<Property Map>
    Tags.

    Supporting Types

    NetworkInterfaceTag, NetworkInterfaceTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    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.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine