ionoscloud.Nic
Explore with Pulumi AI
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)
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:
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Lan double
- [integer] The LAN ID the NIC will sit on.
- Server
Id 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).
- 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 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
Nic
Flowlog - 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.
- Ipv6Cidr
Block 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.
- Nic
Id string - The ID of the NIC.
- Security
Groups List<string>Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- Timeouts
Nic
Timeouts
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Lan float64
- [integer] The LAN ID the NIC will sit on.
- Server
Id 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).
- 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 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
Nic
Flowlog Args - 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.
- Ipv6Cidr
Block 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.
- Nic
Id string - The ID of the NIC.
- Security
Groups []stringIds The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- Timeouts
Nic
Timeouts Args
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- lan Double
- [integer] The LAN ID the NIC will sit on.
- server
Id 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).
- firewall
Active 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.
- firewall
Type 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
Nic
Flowlog - 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.
- ipv6Cidr
Block 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.
- nic
Id String - The ID of the NIC.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- timeouts
Nic
Timeouts
- datacenter
Id string - [string] The ID of a Virtual Data Center.
- lan number
- [integer] The LAN ID the NIC will sit on.
- server
Id 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).
- firewall
Active 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.
- firewall
Type 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
Nic
Flowlog - 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.
- ipv6Cidr
Block 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.
- nic
Id string - The ID of the NIC.
- security
Groups string[]Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- timeouts
Nic
Timeouts
- 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
Nic
Flowlog Args - 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_ strblock - 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_ Sequence[str]ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- timeouts
Nic
Timeouts Args
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- lan Number
- [integer] The LAN ID the NIC will sit on.
- server
Id 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).
- firewall
Active 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.
- firewall
Type 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.
- ipv6Cidr
Block 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.
- nic
Id String - The ID of the NIC.
- security
Groups List<String>Ids 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:
- Device
Number 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.
- Pci
Slot double - The PCI slot number of the Nic.
- Device
Number 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.
- Pci
Slot float64 - The PCI slot number of the Nic.
- device
Number 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.
- pci
Slot Double - The PCI slot number of the Nic.
- device
Number 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.
- pci
Slot 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.
- device
Number 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.
- pci
Slot 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.
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Device
Number 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).
- 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 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
Nic
Flowlog - 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.
- Ipv6Cidr
Block 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.
- Nic
Id string - The ID of the NIC.
- Pci
Slot double - The PCI slot number of the Nic.
- Security
Groups List<string>Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- Server
Id string - [string] The ID of a server.
- Timeouts
Nic
Timeouts
- Datacenter
Id string - [string] The ID of a Virtual Data Center.
- Device
Number 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).
- 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 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
Nic
Flowlog Args - 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.
- Ipv6Cidr
Block 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.
- Nic
Id string - The ID of the NIC.
- Pci
Slot float64 - The PCI slot number of the Nic.
- Security
Groups []stringIds The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- Server
Id string - [string] The ID of a server.
- Timeouts
Nic
Timeouts Args
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- device
Number 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).
- firewall
Active 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.
- firewall
Type 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
Nic
Flowlog - 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.
- ipv6Cidr
Block 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.
- nic
Id String - The ID of the NIC.
- pci
Slot Double - The PCI slot number of the Nic.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- server
Id String - [string] The ID of a server.
- timeouts
Nic
Timeouts
- datacenter
Id string - [string] The ID of a Virtual Data Center.
- device
Number 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).
- firewall
Active 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.
- firewall
Type 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
Nic
Flowlog - 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.
- ipv6Cidr
Block 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.
- nic
Id string - The ID of the NIC.
- pci
Slot number - The PCI slot number of the Nic.
- security
Groups string[]Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- server
Id string - [string] The ID of a server.
- timeouts
Nic
Timeouts
- 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
Nic
Flowlog Args - 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_ strblock - 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_ Sequence[str]ids 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
Nic
Timeouts Args
- datacenter
Id String - [string] The ID of a Virtual Data Center.
- device
Number 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).
- firewall
Active 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.
- firewall
Type 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.
- ipv6Cidr
Block 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.
- nic
Id String - The ID of the NIC.
- pci
Slot Number - The PCI slot number of the Nic.
- security
Groups List<String>Ids The list of Security Group IDs for the resource.
⚠️ Note:: Removing the
flowlog
forces re-creation of the NIC resource.- server
Id 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
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.