Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the list view for the security group target. #205

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions website/docs/r/is_security_group_target.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ description: |-

# ibm_is_security_group_target
BShrivastav marked this conversation as resolved.
Show resolved Hide resolved

This request adds a resource to an existing security group. The supplied target identifier can be:
- A network interface identifier.
- An application load balancer identifier.
- An endpoint gateway identifier.
`ibm_is_security_group_target` adds a resource to an existing security group.

When a target is added to a security group, the security group rules are applied to the target. A request body is not required, and if supplied, is ignored. For more information, about security group target, see [required permissions](https://cloud.ibm.com/docs/vpc?topic=vpc-resource-authorizations-required-for-api-and-cli-calls).

**Note**
**Note:**
- IBM Cloud terraform provider currently provides both a standalone `ibm_is_security_group_target` resource and a `security_groups` block defined in-line in the `ibm_is_instance_network_interface` resource to attach security group to a network interface target. At this time you cannot use the `security_groups` block inline with `ibm_is_instance_network_interface` in conjunction with the standalone resource `ibm_is_security_group_target`. Doing so will create a conflict of security groups attaching to the network interface and will overwrite it.
- VPC infrastructure services are a regional specific based endpoint, by default targets to `us-south`. Please make sure to target right region in the provider block as shown in the `provider.tf` file, if VPC service is created in region other than `us-south`.

**provider.tf**
**provider.tf**

```terraform
provider "ibm" {
Expand All @@ -42,10 +39,13 @@ resource "ibm_is_security_group_target" "example" {
Review the argument references that you can specify for your resource.

- `security_group` - (Required, Force new resource, String) The security group identifier.
- `target` - (Required, Force new resource, String) The security group target identifier. Could be one of the below:
- A network interface identifier.
- An application load balancer identifier.
- An endpoint gateway identifier.
- `target` - (Required, Force new resource, String) The security group target identifier.

-> **Target should be one of the below:** </br>
&#x2022; `network interface` identifier. </br>
&#x2022; `application load balancer` identifier. </br>
&#x2022; `endpoint gateway` identifier. </br>
&#x2022; `VPN Server` identifier. </br>


## Attribute reference
Expand Down