-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature: added support for exit networks #616
Changes from all commits
f9fff5a
aab141f
2a6146d
a6f5e2c
e93cc3e
84dacda
cd18e27
eaf3938
49ffbcf
f2765be
98287a2
3147bd1
22cc15f
b1b22f5
3e0e12e
6976214
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "twingate_exit_network Data Source - terraform-provider-twingate" | ||
subcategory: "" | ||
description: |- | ||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's documentation https://www.twingate.com/docs/exit-networks. | ||
--- | ||
|
||
# twingate_exit_network (Data Source) | ||
|
||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's [documentation](https://www.twingate.com/docs/exit-networks). | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "twingate_exit_network" "foo" { | ||
id = "<your exit network's id>" | ||
} | ||
|
||
# OR | ||
|
||
data "twingate_exit_network" "foo" { | ||
name = "<your exit network's name>" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `id` (String) The ID of the Exit Network | ||
- `name` (String) The name of the Exit Network | ||
|
||
### Read-Only | ||
|
||
- `location` (String) The location of the Exit Network. Must be one of the following: AWS, AZURE, GOOGLE_CLOUD, ON_PREMISE, OTHER. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "twingate_exit_networks Data Source - terraform-provider-twingate" | ||
subcategory: "" | ||
description: |- | ||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's documentation https://www.twingate.com/docs/exit-networks. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexb-twingate please check which doc description should we set for ExitNetworks |
||
--- | ||
|
||
# twingate_exit_networks (Data Source) | ||
|
||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's [documentation](https://www.twingate.com/docs/exit-networks). | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "twingate_exit_networks" "all" { | ||
name = "<your exit network's name>" | ||
# name_regexp = "<regular expression of exit network name>" | ||
# name_contains = "<a string in the exit network name>" | ||
# name_exclude = "<your exit network's name to exclude>" | ||
# name_prefix = "<prefix of exit network name>" | ||
# name_suffix = "<suffix of exit network name>" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `name` (String) Returns only exit networks that exactly match this name. If no options are passed it will return all exit networks. Only one option can be used at a time. | ||
- `name_contains` (String) Match when the value exist in the name of the exit network. | ||
- `name_exclude` (String) Match when the exact value does not exist in the name of the exit network. | ||
- `name_prefix` (String) The name of the exit network must start with the value. | ||
- `name_regexp` (String) The regular expression match of the name of the exit network. | ||
- `name_suffix` (String) The name of the exit network must end with the value. | ||
|
||
### Read-Only | ||
|
||
- `exit_networks` (Attributes List) List of Exit Networks (see [below for nested schema](#nestedatt--exit_networks)) | ||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedatt--exit_networks"></a> | ||
### Nested Schema for `exit_networks` | ||
|
||
Optional: | ||
|
||
- `name` (String) The name of the Exit Network. | ||
|
||
Read-Only: | ||
|
||
- `id` (String) The ID of the Exit Network. | ||
- `location` (String) The location of the Exit Network. Must be one of the following: AWS, AZURE, GOOGLE_CLOUD, ON_PREMISE, OTHER. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "twingate_exit_network Resource - terraform-provider-twingate" | ||
subcategory: "" | ||
description: |- | ||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's documentation https://www.twingate.com/docs/exit-networks. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexb-twingate please check which doc description should we set for ExitNetworks |
||
--- | ||
|
||
# twingate_exit_network (Resource) | ||
|
||
TODO: Exit Networks behave similarly to Remote Networks. For more information, see Twingate's [documentation](https://www.twingate.com/docs/exit-networks). | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider "twingate" { | ||
api_token = "1234567890abcdef" | ||
network = "mynetwork" | ||
} | ||
|
||
resource "twingate_exit_network" "aws_network" { | ||
name = "aws_exit_network" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the Exit Network | ||
|
||
### Optional | ||
|
||
- `location` (String) The location of the Exit Network. Must be one of the following: AWS, AZURE, GOOGLE_CLOUD, ON_PREMISE, OTHER. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the Exit Network |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
data "twingate_exit_network" "foo" { | ||
id = "<your exit network's id>" | ||
} | ||
|
||
# OR | ||
|
||
data "twingate_exit_network" "foo" { | ||
name = "<your exit network's name>" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
data "twingate_exit_networks" "all" { | ||
name = "<your exit network's name>" | ||
# name_regexp = "<regular expression of exit network name>" | ||
# name_contains = "<a string in the exit network name>" | ||
# name_exclude = "<your exit network's name to exclude>" | ||
# name_prefix = "<prefix of exit network name>" | ||
# name_suffix = "<suffix of exit network name>" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
provider "twingate" { | ||
api_token = "1234567890abcdef" | ||
network = "mynetwork" | ||
} | ||
|
||
resource "twingate_exit_network" "aws_network" { | ||
name = "aws_exit_network" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package attr | ||
|
||
const ( | ||
ExitNetworks = "exit_networks" | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ package attr | |
const ( | ||
Location = "location" | ||
RemoteNetworks = "remote_networks" | ||
ExitNode = "exit_node" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexb-twingate please check which doc description should we set for ExitNetworks