forked from Twingate/terraform-provider-twingate
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
31 changed files
with
1,353 additions
and
110 deletions.
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
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. |
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 @@ | ||
--- | ||
# 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. | ||
--- | ||
|
||
# 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. |
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,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. | ||
--- | ||
|
||
# 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 |
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
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>" | ||
} |
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,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>" | ||
} |
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,8 @@ | ||
provider "twingate" { | ||
api_token = "1234567890abcdef" | ||
network = "mynetwork" | ||
} | ||
|
||
resource "twingate_exit_network" "aws_network" { | ||
name = "aws_exit_network" | ||
} |
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,5 @@ | ||
package attr | ||
|
||
const ( | ||
ExitNetworks = "exit_networks" | ||
) |
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
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
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
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
Oops, something went wrong.