Network Security Group
Get information on a IonosCloud Network Security Group
The NSG Data source can be used to search for and return an existing security group. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.
Example Usage
By ID
By Name
Argument Reference
datacenter_id
- (Required) Datacenter's UUID.id
- (Optional) Id of an existing Network Security Group that you want to search for.name
- (Optional) Name of an existing Network Security Group that you want to search for.
Either name
, or id
must be provided. If none, the datasource will return an error.
Attributes Reference
The following attributes are returned by the datasource:
datacenter_id
- UUID of the Virtual Data Centerid
- UUID of the Network Security Groupname
- The name of the Network Security Groupdescription
- Description for the Network Security Grouprule_ids
- List of IDs for the Firewall Rules attached to this grouprules
- List of Firewall Rule objects attached to this group
Last updated