-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sgts resource and update minimum version logic (#214)
- Loading branch information
Showing
140 changed files
with
2,280 additions
and
343 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,44 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fmc_sgts Data Source - terraform-provider-fmc" | ||
subcategory: "Objects" | ||
description: |- | ||
This data source can read the SGTs. | ||
--- | ||
|
||
# fmc_sgts (Data Source) | ||
|
||
This data source can read the SGTs. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "fmc_sgts" "example" { | ||
items = { | ||
"sgt_1" = { | ||
} | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `domain` (String) The name of the FMC domain | ||
- `items` (Attributes Map) Map of SGTs. The key of the map is the name of the individual SGT. (see [below for nested schema](#nestedatt--items)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
<a id="nestedatt--items"></a> | ||
### Nested Schema for `items` | ||
|
||
Read-Only: | ||
|
||
- `description` (String) Description | ||
- `id` (String) UUID of the managed SGT. | ||
- `tag` (String) Security Group Tag. | ||
- `type` (String) Type of the object; this value is always 'SecurityGroupTag'. |
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,63 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fmc_sgts Resource - terraform-provider-fmc" | ||
subcategory: "Objects" | ||
description: |- | ||
This resource can manage a SGTs. | ||
--- | ||
|
||
# fmc_sgts (Resource) | ||
|
||
This resource can manage a SGTs. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "fmc_sgts" "example" { | ||
items = { | ||
sgt_1 = { | ||
description = "My SGT object" | ||
tag = "11" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `items` (Attributes Map) Map of SGTs. The key of the map is the name of the individual SGT. (see [below for nested schema](#nestedatt--items)) | ||
|
||
### Optional | ||
|
||
- `domain` (String) The name of the FMC domain | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
<a id="nestedatt--items"></a> | ||
### Nested Schema for `items` | ||
|
||
Required: | ||
|
||
- `tag` (String) Security Group Tag. | ||
|
||
Optional: | ||
|
||
- `description` (String) Description | ||
|
||
Read-Only: | ||
|
||
- `id` (String) UUID of the managed SGT. | ||
- `type` (String) Type of the object; this value is always 'SecurityGroupTag'. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import fmc_sgts.example "<domain>,[<sgts_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,6 @@ | ||
data "fmc_sgts" "example" { | ||
items = { | ||
"sgt_1" = { | ||
} | ||
} | ||
} |
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 @@ | ||
terraform import fmc_sgts.example "<domain>,[<sgts_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 @@ | ||
resource "fmc_sgts" "example" { | ||
items = { | ||
sgt_1 = { | ||
description = "My SGT object" | ||
tag = "11" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: SGTs | ||
rest_endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/securitygrouptags | ||
data_source_name_query: true | ||
is_bulk: true | ||
doc_category: Objects | ||
import_name_query: yes | ||
minimum_version_create: "7.4" | ||
minimum_version_bulk_create: "999" | ||
minimum_version_bulk_delete: "999" | ||
attributes: | ||
- model_name: items | ||
type: Map | ||
description: >- | ||
Map of SGTs. The key of the map is the name of the individual SGT. | ||
map_key_example: sgt_1 | ||
mandatory: true | ||
attributes: | ||
- model_name: id | ||
type: String | ||
resource_id: true | ||
description: UUID of the managed SGT. | ||
exclude_example: true | ||
exclude_test: true | ||
- model_name: type | ||
type: String | ||
description: Type of the object; this value is always 'SecurityGroupTag'. | ||
computed: true | ||
- model_name: description | ||
type: String | ||
description: Description | ||
example: My SGT object | ||
- model_name: tag | ||
type: String | ||
mandatory: true | ||
description: Security Group Tag. | ||
example: "11" |
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
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.