Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Latest commit

 

History

History
40 lines (28 loc) · 1.17 KB

networking_secgroup_v2.html.markdown

File metadata and controls

40 lines (28 loc) · 1.17 KB
layout page_title sidebar_current description
telefonicaopencloud
TelefonicaOpenCloud: telefonicaopencloud_networking_secgroup_v2
docs-telefonicaopencloud-datasource-networking-secgroup-v2
Get information on an TelefonicaOpenCloud Security Group.

telefonicaopencloud_networking_secgroup_v2

Use this data source to get the ID of an available TelefonicaOpenCloud security group.

Example Usage

data "telefonicaopencloud_networking_secgroup_v2" "secgroup" {
  name = "tf_test_secgroup"
}

Argument Reference

  • region - (Optional) The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.

  • secgroup_id - (Optional) The ID of the security group.

  • name - (Optional) The name of the security group.

  • tenant_id - (Optional) The owner of the security group.

Attributes Reference

id is set to the ID of the found security group. In addition, the following attributes are exported:

  • name - See Argument Reference above.
  • description- The description of the security group.
  • region - See Argument Reference above.