Skip to content

Commit

Permalink
Add device admin condition resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 1, 2023
1 parent 365570a commit 188780c
Show file tree
Hide file tree
Showing 15 changed files with 1,808 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Add `ise_downloadable_acl` resource and data source
- Add `ise_tacacs_command_set` resource and data source
- Add `ise_tacacs_profile` resource and data source
- Add `ise_device_admin_condition` resource and data source

## 0.1.5

Expand Down
72 changes: 72 additions & 0 deletions docs/data-sources/device_admin_condition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ise_device_admin_condition Data Source - terraform-provider-ise"
subcategory: "Policy"
description: |-
This data source can read the Device Admin Condition.
---

# ise_device_admin_condition (Data Source)

This data source can read the Device Admin Condition.

## Example Usage

```terraform
data "ise_device_admin_condition" "example" {
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) The id of the object
- `name` (String) Condition name

### Read-Only

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `LibraryConditionAndBlock` or `LibraryConditionOrBlock`. (see [below for nested schema](#nestedatt--children))
- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `operator` (String) Equality operator

<a id="nestedatt--children"></a>
### Nested Schema for `children`

Read-Only:

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `LibraryConditionAndBlock` or `LibraryConditionOrBlock`. (see [below for nested schema](#nestedatt--children--children))
- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `id` (String) UUID for condition
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `name` (String) Condition name
- `operator` (String) Equality operator

<a id="nestedatt--children--children"></a>
### Nested Schema for `children.children`

Read-Only:

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `id` (String) UUID for condition
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `name` (String) Condition name
- `operator` (String) Equality operator
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description: |-
- Add `ise_downloadable_acl` resource and data source
- Add `ise_tacacs_command_set` resource and data source
- Add `ise_tacacs_profile` resource and data source
- Add `ise_device_admin_condition` resource and data source

## 0.1.5

Expand Down
102 changes: 102 additions & 0 deletions docs/resources/device_admin_condition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ise_device_admin_condition Resource - terraform-provider-ise"
subcategory: "Policy"
description: |-
This resource can manage a Device Admin Condition.
---

# ise_device_admin_condition (Resource)

This resource can manage a Device Admin Condition.

## Example Usage

```terraform
resource "ise_device_admin_condition" "example" {
name = "Cond1"
description = "My description"
condition_type = "LibraryConditionAttributes"
is_negate = false
attribute_name = "EapAuthentication"
attribute_value = "EAP-TLS"
dictionary_name = "Network Access"
operator = "equals"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `LibraryConditionAndBlock`, `LibraryConditionAttributes`, `LibraryConditionOrBlock`
- `name` (String) Condition name

### Optional

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `LibraryConditionAndBlock` or `LibraryConditionOrBlock`. (see [below for nested schema](#nestedatt--children))
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `operator` (String) Equality operator
- Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`

### Read-Only

- `id` (String) The id of the object

<a id="nestedatt--children"></a>
### Nested Schema for `children`

Required:

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`

Optional:

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `LibraryConditionAndBlock` or `LibraryConditionOrBlock`. (see [below for nested schema](#nestedatt--children--children))
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `id` (String) UUID for condition
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `name` (String) Condition name
- `operator` (String) Equality operator
- Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`

<a id="nestedatt--children--children"></a>
### Nested Schema for `children.children`

Required:

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`

Optional:

- `attribute_name` (String) Dictionary attribute name
- `attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `description` (String) Condition description
- `dictionary_name` (String) Dictionary name
- `dictionary_value` (String) Dictionary value
- `id` (String) UUID for condition
- `is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `name` (String) Condition name
- `operator` (String) Equality operator
- Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`

## Import

Import is supported using the following syntax:

```shell
terraform import ise_device_admin_condition.example "76d24097-41c4-4558-a4d0-a8c07ac08470"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "ise_device_admin_condition" "example" {
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
}
1 change: 1 addition & 0 deletions examples/resources/ise_device_admin_condition/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import ise_device_admin_condition.example "76d24097-41c4-4558-a4d0-a8c07ac08470"
10 changes: 10 additions & 0 deletions examples/resources/ise_device_admin_condition/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "ise_device_admin_condition" "example" {
name = "Cond1"
description = "My description"
condition_type = "LibraryConditionAttributes"
is_negate = false
attribute_name = "EapAuthentication"
attribute_value = "EAP-TLS"
dictionary_name = "Network Access"
operator = "equals"
}
Loading

0 comments on commit 188780c

Please sign in to comment.