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.
- Loading branch information
Showing
30 changed files
with
1,765 additions
and
18 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
10 changes: 5 additions & 5 deletions
10
...ources/policy_object_security_url_list.md → .../policy_object_security_url_allow_list.md
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
42 changes: 42 additions & 0 deletions
42
docs/data-sources/policy_object_security_url_block_list.md
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,42 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_policy_object_security_url_block_list Data Source - terraform-provider-sdwan" | ||
subcategory: "Policy Objects" | ||
description: |- | ||
This data source can read the Policy Object Security URL Block List Policy_object. | ||
--- | ||
|
||
# sdwan_policy_object_security_url_block_list (Data Source) | ||
|
||
This data source can read the Policy Object Security URL Block List Policy_object. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sdwan_policy_object_security_url_block_list" "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 Policy_object | ||
|
||
### Read-Only | ||
|
||
- `description` (String) The description of the Policy_object | ||
- `entries` (Attributes List) URL List (see [below for nested schema](#nestedatt--entries)) | ||
- `name` (String) The name of the Policy_object | ||
- `version` (Number) The version of the Policy_object | ||
|
||
<a id="nestedatt--entries"></a> | ||
### Nested Schema for `entries` | ||
|
||
Read-Only: | ||
|
||
- `pattern` (String) valid url pattern |
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,61 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_policy_object_security_url_block_list Resource - terraform-provider-sdwan" | ||
subcategory: "Policy Objects" | ||
description: |- | ||
This resource can manage a Policy Object Security URL Block List Policy_object. | ||
Minimum SD-WAN Manager version: 20.12.0 | ||
--- | ||
|
||
# sdwan_policy_object_security_url_block_list (Resource) | ||
|
||
This resource can manage a Policy Object Security URL Block List Policy_object. | ||
- Minimum SD-WAN Manager version: `20.12.0` | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "sdwan_policy_object_security_url_block_list" "example" { | ||
name = "Example" | ||
description = "My Example" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
entries = [ | ||
{ | ||
pattern = "www.cisco.com" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `entries` (Attributes List) URL List (see [below for nested schema](#nestedatt--entries)) | ||
- `feature_profile_id` (String) Feature Profile ID | ||
- `name` (String) The name of the Policy_object | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of the Policy_object | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the Policy_object | ||
- `version` (Number) The version of the Policy_object | ||
|
||
<a id="nestedatt--entries"></a> | ||
### Nested Schema for `entries` | ||
|
||
Optional: | ||
|
||
- `pattern` (String) valid url pattern | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import sdwan_policy_object_security_url_block_list.example "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
``` |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/sdwan_policy_object_security_url_allow_list/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_policy_object_security_url_allow_list" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
} |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/sdwan_policy_object_security_url_block_list/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_policy_object_security_url_block_list" "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_policy_object_security_url_allow_list/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_policy_object_security_url_allow_list.example "f6b2c44c-693c-4763-b010-895aa3d236bd" |
10 changes: 10 additions & 0 deletions
10
examples/resources/sdwan_policy_object_security_url_allow_list/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,10 @@ | ||
resource "sdwan_policy_object_security_url_allow_list" "example" { | ||
name = "Example" | ||
description = "My Example" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
entries = [ | ||
{ | ||
pattern = "www.cisco.com" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/sdwan_policy_object_security_url_block_list/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_policy_object_security_url_block_list.example "f6b2c44c-693c-4763-b010-895aa3d236bd" |
10 changes: 10 additions & 0 deletions
10
examples/resources/sdwan_policy_object_security_url_block_list/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,10 @@ | ||
resource "sdwan_policy_object_security_url_block_list" "example" { | ||
name = "Example" | ||
description = "My Example" | ||
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac" | ||
entries = [ | ||
{ | ||
pattern = "www.cisco.com" | ||
} | ||
] | ||
} |
3 changes: 2 additions & 1 deletion
3
...cels/policy_object_security_url_list.yaml → ...olicy_object_security_url_allow_list.yaml
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
29 changes: 29 additions & 0 deletions
29
gen/definitions/profile_parcels/policy_object_security_url_block_list.yaml
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,29 @@ | ||
--- | ||
name: Policy Object Security URL Block List | ||
rest_endpoint: /v1/feature-profile/sdwan/policy-object/%v/security-urllist | ||
minimum_version: 20.12.0 | ||
test_tags: [SDWAN_2012] | ||
skip_minimum_test: true | ||
parcel_type: policy_object | ||
type_value: urlblocked | ||
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_policy_object_feature_profile.test.id | ||
- model_name: entries | ||
mandatory: true | ||
attributes: | ||
- model_name: pattern | ||
id: true | ||
mandatory: true | ||
example: www.cisco.com | ||
|
||
test_prerequisites: | | ||
resource "sdwan_policy_object_feature_profile" "test" { | ||
name = "POLICY_OBJECT_FP_1" | ||
description = "My policy object feature profile 1" | ||
} |
File renamed without changes.
114 changes: 114 additions & 0 deletions
114
gen/models/profile_parcels/policy_object_security_url_block_list.json
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,114 @@ | ||
{ | ||
"request": { | ||
"$schema": "http://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://cisco.com/schema/profileparcel/sdwan/policy-object/security-urllist/post/request_schema.json", | ||
"title": "URL List Parcel Schema", | ||
"description": "URL List profile parcel schema for POST request", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"pattern": "^[^&<>! \"]+$", | ||
"minLength": 1, | ||
"maxLength": 32 | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"urlallowed", | ||
"urlblocked" | ||
] | ||
}, | ||
"data": { | ||
"type": "object", | ||
"properties": { | ||
"entries": { | ||
"description": "URL List", | ||
"type": "array", | ||
"maxItems": 64, | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"pattern": { | ||
"description": "valid url pattern", | ||
"type": "object", | ||
"properties": { | ||
"optionType": { | ||
"type": "string", | ||
"enum": [ | ||
"global" | ||
] | ||
}, | ||
"value": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 240, | ||
"pattern": "^[^*+].*" | ||
} | ||
}, | ||
"required": [ | ||
"optionType", | ||
"value" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"pattern" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"entries" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"documentation": { | ||
"description": "This is the documentation for POST request schema for URL List profile parcel", | ||
"details-1": "variable name should be present with given format as specified in schema if optionType value is variable", | ||
"details-2": "variable name should not be present if optionType value is NOT variable", | ||
"details-3": "when option Type is global, value should be present with given format/restrictions as specified in schema", | ||
"details-4": "when option Type is default, value should be present with given default value as specified in schema", | ||
"examples": [ | ||
{ | ||
"data": { | ||
"entries": [ | ||
{ | ||
"pattern": { | ||
"optionType": "global", | ||
"value": "www.google.com" | ||
} | ||
}, | ||
{ | ||
"pattern": { | ||
"optionType": "global", | ||
"value": "outlook.com" | ||
} | ||
} | ||
] | ||
}, | ||
"name": "UrlList" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"data", | ||
"type" | ||
], | ||
"not": { | ||
"required": [ | ||
"documentation" | ||
] | ||
}, | ||
"additionalProperties": false | ||
} | ||
} |
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.