1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. Nic
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.Nic

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Import

    Resource Nic can be imported using the resource id, e.g.

    $ pulumi import ionoscloud:index/nic:Nic mynic datacenter uuid/server uuid/nic uuid
    

    Create Nic Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Nic(name: string, args: NicArgs, opts?: CustomResourceOptions);
    @overload
    def Nic(resource_name: str,
            args: NicArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Nic(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            datacenter_id: Optional[str] = None,
            server_id: Optional[str] = None,
            lan: Optional[float] = None,
            ipv6_ips: Optional[Sequence[str]] = None,
            firewall_type: Optional[str] = None,
            flowlog: Optional[NicFlowlogArgs] = None,
            ips: Optional[Sequence[str]] = None,
            ipv6_cidr_block: Optional[str] = None,
            firewall_active: Optional[bool] = None,
            dhcpv6: Optional[bool] = None,
            mac: Optional[str] = None,
            name: Optional[str] = None,
            nic_id: Optional[str] = None,
            security_groups_ids: Optional[Sequence[str]] = None,
            dhcp: Optional[bool] = None,
            timeouts: Optional[NicTimeoutsArgs] = None)
    func NewNic(ctx *Context, name string, args NicArgs, opts ...ResourceOption) (*Nic, error)
    public Nic(string name, NicArgs args, CustomResourceOptions? opts = null)
    public Nic(String name, NicArgs args)
    public Nic(String name, NicArgs args, CustomResourceOptions options)
    
    type: ionoscloud:Nic
    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 NicArgs
    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 NicArgs
    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 NicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NicArgs
    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 nicResource = new Ionoscloud.Nic("nicResource", new()
    {
        DatacenterId = "string",
        ServerId = "string",
        Lan = 0,
        Ipv6Ips = new[]
        {
            "string",
        },
        FirewallType = "string",
        Flowlog = new Ionoscloud.Inputs.NicFlowlogArgs
        {
            Action = "string",
            Bucket = "string",
            Direction = "string",
            Name = "string",
            Id = "string",
        },
        Ips = new[]
        {
            "string",
        },
        Ipv6CidrBlock = "string",
        FirewallActive = false,
        Dhcpv6 = false,
        Mac = "string",
        Name = "string",
        NicId = "string",
        SecurityGroupsIds = new[]
        {
            "string",
        },
        Dhcp = false,
        Timeouts = new Ionoscloud.Inputs.NicTimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ionoscloud.NewNic(ctx, "nicResource", &ionoscloud.NicArgs{
    	DatacenterId: pulumi.String("string"),
    	ServerId:     pulumi.String("string"),
    	Lan:          pulumi.Float64(0),
    	Ipv6Ips: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	FirewallType: pulumi.String("string"),
    	Flowlog: &ionoscloud.NicFlowlogArgs{
    		Action:    pulumi.String("string"),
    		Bucket:    pulumi.String("string"),
    		Direction: pulumi.String("string"),
    		Name:      pulumi.String("string"),
    		Id:        pulumi.String("string"),
    	},
    	Ips: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Ipv6CidrBlock:  pulumi.String("string"),
    	FirewallActive: pulumi.Bool(false),
    	Dhcpv6:         pulumi.Bool(false),
    	Mac:            pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	NicId:          pulumi.String("string"),
    	SecurityGroupsIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Dhcp: pulumi.Bool(false),
    	Timeouts: &ionoscloud.NicTimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    })
    
    var nicResource = new Nic("nicResource", NicArgs.builder()
        .datacenterId("string")
        .serverId("string")
        .lan(0)
        .ipv6Ips("string")
        .firewallType("string")
        .flowlog(NicFlowlogArgs.builder()
            .action("string")
            .bucket("string")
            .direction("string")
            .name("string")
            .id("string")
            .build())
        .ips("string")
        .ipv6CidrBlock("string")
        .firewallActive(false)
        .dhcpv6(false)
        .mac("string")
        .name("string")
        .nicId("string")
        .securityGroupsIds("string")
        .dhcp(false)
        .timeouts(NicTimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    nic_resource = ionoscloud.Nic("nicResource",
        datacenter_id="string",
        server_id="string",
        lan=0,
        ipv6_ips=["string"],
        firewall_type="string",
        flowlog={
            "action": "string",
            "bucket": "string",
            "direction": "string",
            "name": "string",
            "id": "string",
        },
        ips=["string"],
        ipv6_cidr_block="string",
        firewall_active=False,
        dhcpv6=False,
        mac="string",
        name="string",
        nic_id="string",
        security_groups_ids=["string"],
        dhcp=False,
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        })
    
    const nicResource = new ionoscloud.Nic("nicResource", {
        datacenterId: "string",
        serverId: "string",
        lan: 0,
        ipv6Ips: ["string"],
        firewallType: "string",
        flowlog: {
            action: "string",
            bucket: "string",
            direction: "string",
            name: "string",
            id: "string",
        },
        ips: ["string"],
        ipv6CidrBlock: "string",
        firewallActive: false,
        dhcpv6: false,
        mac: "string",
        name: "string",
        nicId: "string",
        securityGroupsIds: ["string"],
        dhcp: false,
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ionoscloud:Nic
    properties:
        datacenterId: string
        dhcp: false
        dhcpv6: false
        firewallActive: false
        firewallType: string
        flowlog:
            action: string
            bucket: string
            direction: string
            id: string
            name: string
        ips:
            - string
        ipv6CidrBlock: string
        ipv6Ips:
            - string
        lan: 0
        mac: string
        name: string
        nicId: string
        securityGroupsIds:
            - string
        serverId: string
        timeouts:
            create: string
            default: string
            delete: string
            update: string
    

    Nic 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 Nic resource accepts the following input properties:

    DatacenterId string
    [string] The ID of a Virtual Data Center.
    Lan double
    [integer] The LAN ID the NIC will sit on.
    ServerId string
    [string] The ID of a server.
    Dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    Dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    FirewallActive bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    FirewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    Flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips List<string>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    Ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    Ipv6Ips List<string>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    Mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    Name string
    [string] The name of the LAN.
    NicId string
    The ID of the NIC.
    SecurityGroupsIds List<string>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    Timeouts NicTimeouts
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    Lan float64
    [integer] The LAN ID the NIC will sit on.
    ServerId string
    [string] The ID of a server.
    Dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    Dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    FirewallActive bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    FirewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    Flowlog NicFlowlogArgs
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips []string
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    Ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    Ipv6Ips []string
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    Mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    Name string
    [string] The name of the LAN.
    NicId string
    The ID of the NIC.
    SecurityGroupsIds []string

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    Timeouts NicTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    lan Double
    [integer] The LAN ID the NIC will sit on.
    serverId String
    [string] The ID of a server.
    dhcp Boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 Boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive Boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType String
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock String
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips List<String>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    mac String
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name String
    [string] The name of the LAN.
    nicId String
    The ID of the NIC.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    timeouts NicTimeouts
    datacenterId string
    [string] The ID of a Virtual Data Center.
    lan number
    [integer] The LAN ID the NIC will sit on.
    serverId string
    [string] The ID of a server.
    dhcp boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips string[]
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips string[]
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name string
    [string] The name of the LAN.
    nicId string
    The ID of the NIC.
    securityGroupsIds string[]

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    timeouts NicTimeouts
    datacenter_id str
    [string] The ID of a Virtual Data Center.
    lan float
    [integer] The LAN ID the NIC will sit on.
    server_id str
    [string] The ID of a server.
    dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewall_active bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewall_type str
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlogArgs
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips Sequence[str]
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6_cidr_block str
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6_ips Sequence[str]
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    mac str
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name str
    [string] The name of the LAN.
    nic_id str
    The ID of the NIC.
    security_groups_ids Sequence[str]

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    timeouts NicTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    lan Number
    [integer] The LAN ID the NIC will sit on.
    serverId String
    [string] The ID of a server.
    dhcp Boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 Boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive Boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType String
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog Property Map
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock String
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips List<String>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    mac String
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name String
    [string] The name of the LAN.
    nicId String
    The ID of the NIC.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    timeouts Property Map

    Outputs

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

    DeviceNumber double
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    Id string
    The provider-assigned unique ID for this managed resource.
    PciSlot double
    The PCI slot number of the Nic.
    DeviceNumber float64
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    Id string
    The provider-assigned unique ID for this managed resource.
    PciSlot float64
    The PCI slot number of the Nic.
    deviceNumber Double
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    id String
    The provider-assigned unique ID for this managed resource.
    pciSlot Double
    The PCI slot number of the Nic.
    deviceNumber number
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    id string
    The provider-assigned unique ID for this managed resource.
    pciSlot number
    The PCI slot number of the Nic.
    device_number float
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    id str
    The provider-assigned unique ID for this managed resource.
    pci_slot float
    The PCI slot number of the Nic.
    deviceNumber Number
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    id String
    The provider-assigned unique ID for this managed resource.
    pciSlot Number
    The PCI slot number of the Nic.

    Look up Existing Nic Resource

    Get an existing Nic 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?: NicState, opts?: CustomResourceOptions): Nic
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datacenter_id: Optional[str] = None,
            device_number: Optional[float] = None,
            dhcp: Optional[bool] = None,
            dhcpv6: Optional[bool] = None,
            firewall_active: Optional[bool] = None,
            firewall_type: Optional[str] = None,
            flowlog: Optional[NicFlowlogArgs] = None,
            ips: Optional[Sequence[str]] = None,
            ipv6_cidr_block: Optional[str] = None,
            ipv6_ips: Optional[Sequence[str]] = None,
            lan: Optional[float] = None,
            mac: Optional[str] = None,
            name: Optional[str] = None,
            nic_id: Optional[str] = None,
            pci_slot: Optional[float] = None,
            security_groups_ids: Optional[Sequence[str]] = None,
            server_id: Optional[str] = None,
            timeouts: Optional[NicTimeoutsArgs] = None) -> Nic
    func GetNic(ctx *Context, name string, id IDInput, state *NicState, opts ...ResourceOption) (*Nic, error)
    public static Nic Get(string name, Input<string> id, NicState? state, CustomResourceOptions? opts = null)
    public static Nic get(String name, Output<String> id, NicState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:Nic    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.
    The following state arguments are supported:
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    DeviceNumber double
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    Dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    Dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    FirewallActive bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    FirewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    Flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips List<string>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    Ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    Ipv6Ips List<string>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    Lan double
    [integer] The LAN ID the NIC will sit on.
    Mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    Name string
    [string] The name of the LAN.
    NicId string
    The ID of the NIC.
    PciSlot double
    The PCI slot number of the Nic.
    SecurityGroupsIds List<string>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    ServerId string
    [string] The ID of a server.
    Timeouts NicTimeouts
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    DeviceNumber float64
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    Dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    Dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    FirewallActive bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    FirewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    Flowlog NicFlowlogArgs
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips []string
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    Ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    Ipv6Ips []string
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    Lan float64
    [integer] The LAN ID the NIC will sit on.
    Mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    Name string
    [string] The name of the LAN.
    NicId string
    The ID of the NIC.
    PciSlot float64
    The PCI slot number of the Nic.
    SecurityGroupsIds []string

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    ServerId string
    [string] The ID of a server.
    Timeouts NicTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    deviceNumber Double
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    dhcp Boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 Boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive Boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType String
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock String
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips List<String>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    lan Double
    [integer] The LAN ID the NIC will sit on.
    mac String
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name String
    [string] The name of the LAN.
    nicId String
    The ID of the NIC.
    pciSlot Double
    The PCI slot number of the Nic.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    serverId String
    [string] The ID of a server.
    timeouts NicTimeouts
    datacenterId string
    [string] The ID of a Virtual Data Center.
    deviceNumber number
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    dhcp boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType string
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlog
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips string[]
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock string
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips string[]
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    lan number
    [integer] The LAN ID the NIC will sit on.
    mac string
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name string
    [string] The name of the LAN.
    nicId string
    The ID of the NIC.
    pciSlot number
    The PCI slot number of the Nic.
    securityGroupsIds string[]

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    serverId string
    [string] The ID of a server.
    timeouts NicTimeouts
    datacenter_id str
    [string] The ID of a Virtual Data Center.
    device_number float
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    dhcp bool
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 bool
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewall_active bool
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewall_type str
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog NicFlowlogArgs
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips Sequence[str]
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6_cidr_block str
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6_ips Sequence[str]
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    lan float
    [integer] The LAN ID the NIC will sit on.
    mac str
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name str
    [string] The name of the LAN.
    nic_id str
    The ID of the NIC.
    pci_slot float
    The PCI slot number of the Nic.
    security_groups_ids Sequence[str]

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    server_id str
    [string] The ID of a server.
    timeouts NicTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    deviceNumber Number
    The Logical Unit Number (LUN) of the storage volume. Null if this NIC was created from CloudAPI and no DCD changes were done on the Datacenter.
    dhcp Boolean
    [Boolean] Indicates if the NIC should get an IP address using DHCP (true) or not (false).
    dhcpv6 Boolean
    [Boolean] Indicates if the NIC should get an IPv6 address using DHCP (true) or not (false).
    firewallActive Boolean
    [Boolean] If this resource is set to true and is nested under a server resource firewall, with open SSH port, resource must be nested under the NIC.
    firewallType String
    [String] The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the default value INGRESS
    flowlog Property Map
    Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [list] Collection of IP addresses assigned to a NIC. Explicitly assigned public IPs need to come from reserved IP blocks, Passing value null or empty array will assign an IP address automatically.
    ipv6CidrBlock String
    Automatically assigned /80 IPv6 CIDR block if the NIC is connected to an IPv6 enabled LAN. You can also specify an /80 IPv6 CIDR block for the NIC on your own, which must be inside the /64 IPv6 CIDR block of the LAN and unique.
    ipv6Ips List<String>
    [list] Collection of IPv6 addresses assigned to a NIC. Explicitly assigned public IPs need to come from the NIC's Ipv6 CIDR block, Passing value null or empty array will assign an IPv6 address automatically from the NIC's CIDR block.
    lan Number
    [integer] The LAN ID the NIC will sit on.
    mac String
    The MAC address of the NIC. Can be set on creation only. If not set, one will be assigned automatically by the API. Immutable, update forces re-creation.
    name String
    [string] The name of the LAN.
    nicId String
    The ID of the NIC.
    pciSlot Number
    The PCI slot number of the Nic.
    securityGroupsIds List<String>

    The list of Security Group IDs for the resource.

    ⚠️ Note:: Removing the flowlog forces re-creation of the NIC resource.

    serverId String
    [string] The ID of a server.
    timeouts Property Map

    Supporting Types

    NicFlowlog, NicFlowlogArgs

    Action string
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    Bucket string
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    Direction string
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    Name string
    Specifies the name of the flow log.
    Id string
    The ID of the NIC.
    Action string
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    Bucket string
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    Direction string
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    Name string
    Specifies the name of the flow log.
    Id string
    The ID of the NIC.
    action String
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    bucket String
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    direction String
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    name String
    Specifies the name of the flow log.
    id String
    The ID of the NIC.
    action string
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    bucket string
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    direction string
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    name string
    Specifies the name of the flow log.
    id string
    The ID of the NIC.
    action str
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    bucket str
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    direction str
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    name str
    Specifies the name of the flow log.
    id str
    The ID of the NIC.
    action String
    Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, update forces re-creation.
    bucket String
    Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, update forces re-creation.
    direction String
    Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, update forces re-creation.
    name String
    Specifies the name of the flow log.
    id String
    The ID of the NIC.

    NicTimeouts, NicTimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud