ionoscloud_nsg
Creates and manages IonosCloud Network Security Group.
Manages a Network Security Group on IonosCloud.
Example Usage
resource "ionoscloud_datacenter" "example" {
name = "Datacenter NSG Example"
location = "de/txl"
}
resource "ionoscloud_nsg" "example" {
name = "Example NSG"
description = "Example NSG Description"
datacenter_id = ionoscloud_datacenter.example.id
}Argument Reference
The following arguments are supported:
datacenter_id- (Required)[string] The ID of a Virtual Data Center.name- (Optional)[string] The name of the Network Security Group.description- (Optional)[string] Description for the Network Security Group.rule_ids- (Computed) List of Firewall Rules that are part of the Network Security Group
Import
Resource Server can be imported using the resource id and the datacenter id, e.g.
Or by using an import block. Here is an example that allows you to import the default created nsg into terraform.
Last updated
