Terraform-ProviderReferenzRessourcen
odinex_firewall_attachment
Applies a firewall to servers and label selectors. The ID is the firewall ID. Do not use apply_to blocks on the same odinex_firewall.
Diese Referenz wird aus dem Schema des Terraform-Providers erzeugt; die Beschreibungen der Argumente und Attribute sind auf Englisch.
Applies a firewall to servers and label selectors. The ID is the firewall ID. Do not use apply_to blocks on the same odinex_firewall.
Beispiel
resource "odinex_firewall_attachment" "web" {
firewall_id = odinex_firewall.web.id
server_ids = [odinex_server.web.id]
label_selectors = ["role=web"]
}Schema
Erforderlich
firewall_id(Number) ID of the firewall.
Optional
label_selectors(Set of String) Label selectors whose servers get the firewall.server_ids(Set of Number) IDs of servers to apply the firewall to.
Nur lesbar
id(String) Unique ID of the resource.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The ID is the firewall ID.
terraform import odinex_firewall_attachment.web 5