nic
Type representing a IonosCloud network interface.
Parameters:
name
true
The name of the NIC.
Properties:
ensure
No
The basic property that the resource should be in. Valid values are present
, absent
.
ips
No
The IPs assigned to the NIC.
dhcp
No
Enable or disable DHCP on the NIC. Valid values are true
, false
.
lan
No
The LAN name the NIC will sit on.
firewall_rules
No
A list of firewall rules associated to the NIC.
flowlogs
No
A list of flow logs associated to the NIC.
firewall_active
No
Indicates the firewall is active. Valid values are true
, false
.
firewall_type
No
Indicates the firewall is active.
device_number
No
The LUN ID of the storage volume. Null for volumes not mounted to any VM
pci_slot
No
The PCI slot number of the storage volume. Null for volumes not mounted to any VM
server_id
No
The server ID the NIC will be attached to.
server_name
No
The server name the NIC will be attached to.
datacenter_id
No
The ID of the virtual data center where the NIC will reside.
datacenter_name
No
The name of the virtual data center where the NIC will reside.
id
No
The NIC ID.
***
Changeable properties:
ips
lan
dhcp
firewall_active
firewall_rules
firewall_type
flowlogs
Examples
To list resources:
NOTE: If two resources have the same name only one of them will be shown.
To create, update or delete a resource:
NOTE: If two resources with the same name ar found an error will be thrown, this only applies to cases where the resource cannot be identified. Example: an error is thrown for two servers with the same name in the same datacenter, not for two servers with the same name, but in different datacenters.
Last updated