Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions docs/data-sources/slow_drain_interface_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
# In order to regenerate this file execute `go generate` from the repository root.
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "Access Policies"
layout: "aci"
page_title: "ACI: aci_slow_drain_interface_policy"
sidebar_current: "docs-aci-data-source-aci_slow_drain_interface_policy"
description: |-
Data source for ACI Slow Drain Interface Policy
---

# aci_slow_drain_interface_policy #

Data source for ACI Slow Drain Interface Policy

## API Information ##

* Class: [qosSdIfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/qosSdIfPol/overview)

* Supported in ACI versions: 2.0(1m) and later.

* Distinguished Name Format: `uni/infra/qossdpol-{name}`

## GUI Information ##

* Location: `Fabric -> Access Policies -> Policies -> Interface -> Slow Drain`

## Example Usage ##

```hcl

data "aci_slow_drain_interface_policy" "example" {
name = "test_name"
}

```

## Schema ##

### Required ###

* `name` (name) - (string) The name of the Slow Drain Interface Policy object.

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the Slow Drain Interface Policy object.
* `annotation` (annotation) - (string) The annotation of the Slow Drain Interface Policy object. This attribute is supported in ACI versions: 3.2(1l) and later.
* `congestion_clear_action` (congClearAction) - (string) The congestion clear action of the Slow Drain Interface Policy object.
* `congestion_detect_multiplier` (congDetectMult) - (string) The congestion detect multiplier of the Slow Drain Interface Policy object. The value must be in the range 1 - 10000.
* `description` (descr) - (string) The description of the Slow Drain Interface Policy object.
* `flush_admin_state` (flushAdminSt) - (string) The flush administrative state of the Slow Drain Interface Policy object.
* `flush_timeout` (flushIntvl) - (string) The flush timeout (milliseconds) of the Slow Drain Interface Policy object. The value must be in the range 100 - 1000.
* `name_alias` (nameAlias) - (string) The name alias of the Slow Drain Interface Policy object. This attribute is supported in ACI versions: 2.2(1k) and later.
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
132 changes: 132 additions & 0 deletions docs/resources/slow_drain_interface_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
---
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
# In order to regenerate this file execute `go generate` from the repository root.
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "Access Policies"
layout: "aci"
page_title: "ACI: aci_slow_drain_interface_policy"
sidebar_current: "docs-aci-resource-aci_slow_drain_interface_policy"
description: |-
Manages ACI Slow Drain Interface Policy
---

# aci_slow_drain_interface_policy #

Manages ACI Slow Drain Interface Policy



## API Information ##

* Class: [qosSdIfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/qosSdIfPol/overview)

* Supported in ACI versions: 2.0(1m) and later.

* Distinguished Name Format: `uni/infra/qossdpol-{name}`

## GUI Information ##

* Location: `Fabric -> Access Policies -> Policies -> Interface -> Slow Drain`

## Example Usage ##

The configuration snippet below creates a Slow Drain Interface Policy with only required attributes.

```hcl

resource "aci_slow_drain_interface_policy" "example" {
name = "test_name"
}

```
The configuration snippet below shows all possible attributes of the Slow Drain Interface Policy.

!> This example might not be valid configuration and is only used to show all possible attributes.

```hcl

resource "aci_slow_drain_interface_policy" "full_example" {
annotation = "annotation"
congestion_clear_action = "err-disable"
congestion_detect_multiplier = "15"
description = "description_1"
flush_admin_state = "disabled"
flush_timeout = "300"
name = "test_name"
name_alias = "name_alias_1"
owner_key = "owner_key_1"
owner_tag = "owner_tag_1"
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}

```

All examples for the Slow Drain Interface Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_slow_drain_interface_policy) folder.

## Schema ##

### Required ###

* `name` (name) - (string) The name of the Slow Drain Interface Policy object.

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the Slow Drain Interface Policy object.

### Optional ###

* `annotation` (annotation) - (string) The annotation of the Slow Drain Interface Policy object. This attribute is supported in ACI versions: 3.2(1l) and later.
- Default: `"orchestrator:terraform"`
* `congestion_clear_action` (congClearAction) - (string) The congestion clear action of the Slow Drain Interface Policy object.
- Default: `"off"`
- Valid Values: `"err-disable"`, `"log"`, `"off"`.
* `congestion_detect_multiplier` (congDetectMult) - (string) The congestion detect multiplier of the Slow Drain Interface Policy object. The value must be in the range 1 - 10000.
- Default: `"10"`
* `description` (descr) - (string) The description of the Slow Drain Interface Policy object.
* `flush_admin_state` (flushAdminSt) - (string) The flush administrative state of the Slow Drain Interface Policy object.
- Default: `"disabled"`
- Valid Values: `"disabled"`, `"enabled"`.
* `flush_timeout` (flushIntvl) - (string) The flush timeout (milliseconds) of the Slow Drain Interface Policy object. The value must be in the range 100 - 1000.
- Default: `"500"`
* `name_alias` (nameAlias) - (string) The name alias of the Slow Drain Interface Policy object. This attribute is supported in ACI versions: 2.2(1k) and later.
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). Annotations can also be configured using a separate [aci_annotation](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/annotation) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.

## Importing

An existing Slow Drain Interface Policy can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command:

```
terraform import aci_slow_drain_interface_policy.example uni/infra/qossdpol-{name}
```

Starting in Terraform version 1.5, an existing Slow Drain Interface Policy can be imported
using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration:

```
import {
id = "uni/infra/qossdpol-{name}"
to = aci_slow_drain_interface_policy.example
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

data "aci_slow_drain_interface_policy" "example" {
name = "test_name"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
terraform {
required_providers {
aci = {
source = "ciscodevnet/aci"
}
}
}

provider "aci" {
username = ""
password = ""
url = ""
insecure = true
}
14 changes: 14 additions & 0 deletions examples/resources/aci_slow_drain_interface_policy/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
terraform {
required_providers {
aci = {
source = "ciscodevnet/aci"
}
}
}

provider "aci" {
username = ""
password = ""
url = ""
insecure = true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

resource "aci_slow_drain_interface_policy" "full_example" {
annotation = "annotation"
congestion_clear_action = "err-disable"
congestion_detect_multiplier = "15"
description = "description_1"
flush_admin_state = "disabled"
flush_timeout = "300"
name = "test_name"
name_alias = "name_alias_1"
owner_key = "owner_key_1"
owner_tag = "owner_tag_1"
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

resource "aci_slow_drain_interface_policy" "example" {
name = "test_name"
}
9 changes: 9 additions & 0 deletions gen/definitions/classes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1266,3 +1266,12 @@ infraRsAccBndlSubgrp:

infraAccBndlSubgrp:
resource_name: "leaf_access_bundle_policy_sub_group"

qosSdIfPol:
resource_name: "slow_drain_interface_policy"
sub_category: "Access Policies"
ui_locations:
- "Fabric -> Access Policies -> Policies -> Interface -> Slow Drain"
contained_by:
- "polUni"
rn_prepend: "infra"
18 changes: 18 additions & 0 deletions gen/definitions/properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ global:
Pc Vpc Override Policy: "PC VPC Override Policy"
Fex: "FEX"
From Attachable Access Entity Profile To Domains: "To Domains"
Dot1x: "802.1x"
ignores:
- "userdom"

Expand Down Expand Up @@ -2895,3 +2896,20 @@ infraRsAccBndlSubgrp:
# Response Status Code: 400, Error Code: 182, Error Message: Validation failed PortBlk has a reln to AccBndlSubgrp not contained by AccBndlGrp its parent is associated to.
target_dn: ""

qosSdIfPol:
default_values:
flushAdminSt: "disabled"
overwrites:
cong_clear_action: congestion_clear_action
cong_detect_mult: congestion_detect_multiplier
flush_admin_st: flush_admin_state
flush_intvl: flush_timeout
documentation:
congClearAction: "The congestion clear action of the %s object."
congDetectMult: "The congestion detect multiplier of the %s object. The value must be in the range 1 - 10000."
flushAdminSt: "The flush administrative state of the %s object."
flushIntvl: "The flush timeout (milliseconds) of the %s object. The value must be in the range 100 - 1000."
test_values:
all:
flush_timeout: "300"
congestion_detect_multiplier: "15"
Loading
Loading