forked from CiscoDevNet/terraform-provider-sdwan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add transport tracker profile parcel resource and data source
- Loading branch information
Showing
16 changed files
with
1,992 additions
and
0 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
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,52 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_transport_tracker_profile_parcel Data Source - terraform-provider-sdwan" | ||
subcategory: "Profile Parcels" | ||
description: |- | ||
This data source can read the Transport Tracker profile parcel. | ||
--- | ||
|
||
# sdwan_transport_tracker_profile_parcel (Data Source) | ||
|
||
This data source can read the Transport Tracker profile parcel. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sdwan_transport_tracker_profile_parcel" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `feature_profile_id` (String) Feature Profile ID | ||
- `id` (String) The id of the profile parcel | ||
|
||
### Read-Only | ||
|
||
- `description` (String) The description of the profile parcel | ||
- `endpoint_api_url` (String) API url of endpoint | ||
- `endpoint_api_url_variable` (String) Variable name | ||
- `endpoint_dns_name` (String) Endpoint DNS Name | ||
- `endpoint_dns_name_variable` (String) Variable name | ||
- `endpoint_ip` (String) Endpoint IP | ||
- `endpoint_ip_variable` (String) Variable name | ||
- `endpoint_tracker_type` (String) Endpoint Tracker Type | ||
- `endpoint_tracker_type_variable` (String) Variable name | ||
- `interval` (Number) Interval | ||
- `interval_variable` (String) Variable name | ||
- `multiplier` (Number) Multiplier | ||
- `multiplier_variable` (String) Variable name | ||
- `name` (String) The name of the profile parcel | ||
- `threshold` (Number) Threshold | ||
- `threshold_variable` (String) Variable name | ||
- `tracker_name` (String) Tracker Name | ||
- `tracker_name_variable` (String) Variable name | ||
- `tracker_type` (String) Tracker Type | ||
- `tracker_type_variable` (String) Variable name | ||
- `version` (Number) The version of the profile parcel |
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,85 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_transport_tracker_profile_parcel Resource - terraform-provider-sdwan" | ||
subcategory: "Profile Parcels" | ||
description: |- | ||
This resource can manage a Transport Tracker profile parcel. | ||
Minimum SD-WAN Manager version: 20.12.0 | ||
--- | ||
|
||
# sdwan_transport_tracker_profile_parcel (Resource) | ||
|
||
This resource can manage a Transport Tracker profile parcel. | ||
- Minimum SD-WAN Manager version: `20.12.0` | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "sdwan_transport_tracker_profile_parcel" "example" { | ||
name = "Example" | ||
description = "My Example" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
tracker_name = "TRACKER_1" | ||
endpoint_api_url = "google.com" | ||
endpoint_dns_name = "google.com" | ||
endpoint_ip = "1.2.3.4" | ||
interval = 30 | ||
multiplier = 3 | ||
threshold = 300 | ||
endpoint_tracker_type = "interface" | ||
tracker_type = "endpoint" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `feature_profile_id` (String) Feature Profile ID | ||
- `name` (String) The name of the profile parcel | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of the profile parcel | ||
- `endpoint_api_url` (String) API url of endpoint | ||
- `endpoint_api_url_variable` (String) Variable name | ||
- `endpoint_dns_name` (String) Endpoint DNS Name | ||
- `endpoint_dns_name_variable` (String) Variable name | ||
- `endpoint_ip` (String) Endpoint IP | ||
- `endpoint_ip_variable` (String) Variable name | ||
- `endpoint_tracker_type` (String) Endpoint Tracker Type | ||
- Choices: `interface` | ||
- Default value: `interface` | ||
- `endpoint_tracker_type_variable` (String) Variable name | ||
- `interval` (Number) Interval | ||
- Range: `20`-`600` | ||
- Default value: `60` | ||
- `interval_variable` (String) Variable name | ||
- `multiplier` (Number) Multiplier | ||
- Range: `1`-`10` | ||
- Default value: `3` | ||
- `multiplier_variable` (String) Variable name | ||
- `threshold` (Number) Threshold | ||
- Range: `100`-`1000` | ||
- Default value: `300` | ||
- `threshold_variable` (String) Variable name | ||
- `tracker_name` (String) Tracker Name | ||
- `tracker_name_variable` (String) Variable name | ||
- `tracker_type` (String) Tracker Type | ||
- Choices: `endpoint`, `object` | ||
- Default value: `endpoint` | ||
- `tracker_type_variable` (String) Variable name | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the profile parcel | ||
- `version` (Number) The version of the profile parcel | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import sdwan_transport_tracker_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
``` |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/sdwan_transport_tracker_profile_parcel/data-source.tf
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,4 @@ | ||
data "sdwan_transport_tracker_profile_parcel" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/sdwan_transport_tracker_profile_parcel/import.sh
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 sdwan_transport_tracker_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd" |
14 changes: 14 additions & 0 deletions
14
examples/resources/sdwan_transport_tracker_profile_parcel/resource.tf
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,14 @@ | ||
resource "sdwan_transport_tracker_profile_parcel" "example" { | ||
name = "Example" | ||
description = "My Example" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
tracker_name = "TRACKER_1" | ||
endpoint_api_url = "google.com" | ||
endpoint_dns_name = "google.com" | ||
endpoint_ip = "1.2.3.4" | ||
interval = 30 | ||
multiplier = 3 | ||
threshold = 300 | ||
endpoint_tracker_type = "interface" | ||
tracker_type = "endpoint" | ||
} |
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,38 @@ | ||
--- | ||
name: Transport Tracker | ||
rest_endpoint: /v1/feature-profile/sdwan/transport/%v/tracker | ||
minimum_version: 20.12.0 | ||
test_tags: [SDWAN_2012] | ||
attributes: | ||
- tf_name: feature_profile_id | ||
reference: true | ||
type: String | ||
mandatory: true | ||
description: Feature Profile ID | ||
example: f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac | ||
test_value: sdwan_transport_feature_profile.test.id | ||
- model_name: trackerName | ||
example: TRACKER_1 | ||
minimum_test_value: '"TRACKER_1"' | ||
- model_name: endpointApiUrl | ||
example: google.com | ||
- model_name: endpointDnsName | ||
example: google.com | ||
- model_name: endpointIp | ||
example: 1.2.3.4 | ||
- model_name: interval | ||
example: 30 | ||
- model_name: multiplier | ||
example: 3 | ||
- model_name: threshold | ||
example: 300 | ||
- model_name: endpointTrackerType | ||
example: interface | ||
- model_name: trackerType | ||
example: endpoint | ||
|
||
test_prerequisites: | | ||
resource "sdwan_transport_feature_profile" "test" { | ||
name = "TF_TEST" | ||
description = "Terraform test" | ||
} |
Oops, something went wrong.