Skip to content

Commit

Permalink
Add transport tracker profile parcel resource and data source
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Jul 17, 2024
1 parent acf71c6 commit af1041d
Show file tree
Hide file tree
Showing 16 changed files with 1,992 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.14 (unreleased)

- Add `sdwan_transport_tracker_profile_parcel` resource and data source

## 0.3.13

- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
Expand Down
52 changes: 52 additions & 0 deletions docs/data-sources/transport_tracker_profile_parcel.md
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
4 changes: 4 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.3.14 (unreleased)

- Add `sdwan_transport_tracker_profile_parcel` resource and data source

## 0.3.13

- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
Expand Down
85 changes: 85 additions & 0 deletions docs/resources/transport_tracker_profile_parcel.md
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"
```
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"
}
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"
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"
}
38 changes: 38 additions & 0 deletions gen/definitions/profile_parcels/transport_tracker.yaml
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"
}
Loading

0 comments on commit af1041d

Please sign in to comment.