forked from IBM-Cloud/terraform-provider-ibm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc9fdbb
commit c52308b
Showing
5 changed files
with
192 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
..._private_path_service_gateway_endpoint_gateway_binding_operations.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
layout: "ibm" | ||
page_title: "IBM : ibm_is_private_path_service_gateway_endpoint_gateway_binding_operations" | ||
description: |- | ||
Manages PrivatePathServiceGateway endpoint gateway bindings. | ||
subcategory: "VPC infrastructure" | ||
--- | ||
|
||
# ibm_is_private_path_service_gateway_endpoint_gateway_binding_operations | ||
|
||
Provides a resource for ibm_is_private_path_service_gateway_endpoint_gateway_binding_operations. This allows permitting or denying endpoint gateway bindings. | ||
|
||
## Example Usage. Permit all the pending endpoint gateway bindings | ||
|
||
```hcl | ||
resource "ibm_is_private_path_service_gateway" "example" { | ||
default_access_policy = "review" | ||
name = "my-example-ppsg" | ||
load_balancer = ibm_is_lb.testacc_LB.id | ||
zonal_affinity = true | ||
service_endpoints = ["myexamplefqdn"] | ||
} | ||
data "ibm_is_private_path_service_gateway_endpoint_gateway_bindings" "bindings" { | ||
account = "7f75c7b025e54bc5635f754b2f888665" | ||
status = "pending" | ||
private_path_service_gateway = ibm_is_private_path_service_gateway.ppsg.id | ||
} | ||
resource "ibm_is_private_path_service_gateway_endpoint_gateway_binding_operations" "policy" { | ||
count = length(data.ibm_is_private_path_service_gateway_endpoint_gateway_bindings.bindings.endpoint_gateway_bindings) | ||
access_policy = "permit" | ||
endpoint_gateway_binding = data.ibm_is_private_path_service_gateway_endpoint_gateway_bindings.bindings.endpoint_gateway_bindings[count.index].id | ||
private_path_service_gateway = ibm_is_private_path_service_gateway.ppsg.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Review the argument reference that you can specify for your resource. | ||
|
||
- `access_policy` - (Required, String) The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are: `deny`, `permit`. | ||
- `private_path_service_gateway` - (Required, Forces new resource, String) The private path service gateway | ||
identifier. | ||
- `endpoint_gateway_binding` - (Required, Forces new resource, String) ID of the endpoint gateway binding | ||
|
||
## Attribute Reference | ||
|
||
In addition to all argument references listed, you can access the following attribute references after your resource is created. | ||
|
||
- `access_policy` - (String) The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are: `deny`, `permit`. | ||
- `private_path_service_gateway` - (String) The private path service gateway | ||
identifier. | ||
- `endpoint_gateway_binding` - (String) ID of the endpoint gateway binding | ||
|
59 changes: 59 additions & 0 deletions
59
website/docs/r/is_private_path_service_gateway_operations.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
layout: "ibm" | ||
page_title: "IBM : ibm_is_private_path_service_gateway_operations" | ||
description: |- | ||
Manages PrivatePathServiceGateway publish and unpublish. | ||
subcategory: "VPC infrastructure" | ||
--- | ||
|
||
# ibm_is_private_path_service_gateway_operations | ||
|
||
Provides a resource for ibm_is_private_path_service_gateway_operations. This allows publishing or unpublishing the PPSG. | ||
|
||
## Example Usage. Publish a PPSG. | ||
|
||
```hcl | ||
resource "ibm_is_private_path_service_gateway" "example" { | ||
default_access_policy = "review" | ||
name = "my-example-ppsg" | ||
load_balancer = ibm_is_lb.testacc_LB.id | ||
zonal_affinity = true | ||
service_endpoints = ["myexamplefqdn"] | ||
} | ||
resource "ibm_is_private_path_service_gateway_operations" "publish" { | ||
published = true | ||
private_path_service_gateway = ibm_is_private_path_service_gateway.ppsg.id | ||
} | ||
``` | ||
## Example Usage. Unpublish a PPSG. | ||
|
||
```hcl | ||
resource "ibm_is_private_path_service_gateway" "example" { | ||
default_access_policy = "review" | ||
name = "my-example-ppsg" | ||
load_balancer = ibm_is_lb.testacc_LB.id | ||
zonal_affinity = true | ||
service_endpoints = ["myexamplefqdn"] | ||
} | ||
resource "ibm_is_private_path_service_gateway_operations" "publish" { | ||
published = false | ||
private_path_service_gateway = ibm_is_private_path_service_gateway.ppsg.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Review the argument reference that you can specify for your resource. | ||
|
||
- `published` - (Required, Boolean) Boolean to specify whether to publish or unpublish the PPSG. | ||
- `private_path_service_gateway` - (Required, Forces new resource, String) The private path service gateway | ||
identifier. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all argument references listed, you can access the following attribute references after your resource is created. | ||
|
||
- `published` - (Boolean) Boolean to specify whether to publish or unpublish the PPSG. | ||
- `private_path_service_gateway` - (String) The private path service gateway | ||
identifier. | ||
|
43 changes: 43 additions & 0 deletions
43
website/docs/r/is_private_path_service_gateway_revoke_account.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
layout: "ibm" | ||
page_title: "IBM : ibm_is_private_path_service_gateway_revoke_account" | ||
description: |- | ||
Manages PrivatePathServiceGateway revoke account. | ||
subcategory: "VPC infrastructure" | ||
--- | ||
|
||
# ibm_is_private_path_service_gateway_operations | ||
|
||
Provides a resource for ibm_is_private_path_service_gateway_revoke_account. This revokes the access to provided account. | ||
|
||
## Example Usage. | ||
```hcl | ||
resource "ibm_is_private_path_service_gateway" "example" { | ||
default_access_policy = "review" | ||
name = "my-example-ppsg" | ||
load_balancer = ibm_is_lb.testacc_LB.id | ||
zonal_affinity = true | ||
service_endpoints = ["myexamplefqdn"] | ||
} | ||
resource "ibm_is_private_path_service_gateway_revoke_account" "example" { | ||
account = "7f75c7b025e54bc5635f754b2f888665" | ||
private_path_service_gateway = ibm_is_private_path_service_gateway.example.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Review the argument reference that you can specify for your resource. | ||
|
||
- `account` - (Required, String) Account ID to revoke. | ||
- `private_path_service_gateway` - (Required, Forces new resource, String) The private path service gateway | ||
identifier. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all argument references listed, you can access the following attribute references after your resource is created. | ||
|
||
- `account` - (Required, String) Account ID to revoke. | ||
- `private_path_service_gateway` - (String) The private path service gateway | ||
identifier. | ||
|