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
73 changes: 73 additions & 0 deletions docs/data-sources/poe_interface_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
# 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_poe_interface_policy"
sidebar_current: "docs-aci-data-source-aci_poe_interface_policy"
description: |-
Data source for ACI PoE Interface Policy
---

# aci_poe_interface_policy #

Data source for ACI PoE Interface Policy

## API Information ##

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

* Supported in ACI versions: 3.0(1k) and later.

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

## GUI Information ##

* Location: `Fabric -> Access Policies -> Policies -> Interface -> PoE`

## Example Usage ##

```hcl

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

```

## Schema ##

### Required ###

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

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the PoE Interface Policy object.
* `admin_st` (adminSt) - (string) The administrative state of the PoE Interface Policy object. This attribute is supported in ACI versions: 4.0(1h) and later.
* `annotation` (annotation) - (string) The annotation of the PoE Interface Policy object. This attribute is supported in ACI versions: 3.2(1l) and later.
* `description` (descr) - (string) The description of the PoE Interface Policy object.
* `maximum_power` (max) - (string) The maximum power in milliwatts that is allowed for the PoE Interface Policy object. The value must be in the range 4000 - 60000.
* `host_mode` (mode) - (string) The host mode of the PoE Interface Policy object.
* `name_alias` (nameAlias) - (string) The name alias of the PoE Interface Policy object.
* `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.
* `poe_vlan` (poeVoiceVlan) - (string) The PoE VLAN of the PoE Interface Policy object. This attribute is supported in ACI versions: 4.0(1h) and later.
* `policing_action` (policeAct) - (string) The policing action of the PoE Interface Policy object.
* `port_priority_high` (prioHigh) - (string) Enable high port priority for the PoE Interface Policy object.
* `relation_to_application_epg` - (map) A map of Relation To Application EPG (ACI object [poeRsPoeEpg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/poeRsPoeEpg/overview)) pointing to Application EPG (ACI Object [fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview)). This attribute is supported in ACI versions: 4.0(1h) and later.
* `annotation` (annotation) - (string) The annotation of the Relation To Application EPG object.
* `target_dn` (tDn) - (string) The distinguished name (DN) of the EPG 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.
* `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.
172 changes: 172 additions & 0 deletions docs/resources/poe_interface_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
---
# 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_poe_interface_policy"
sidebar_current: "docs-aci-resource-aci_poe_interface_policy"
description: |-
Manages ACI PoE Interface Policy
---

# aci_poe_interface_policy #

Manages ACI PoE Interface Policy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember having a discussion that we would include expanding abbreviations in the docs some shape or form. Did we decide to include those in a glossary? Is an issue opened for this? @samiib @akinross

Copy link
Collaborator Author

@akinross akinross Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was a discussion indeed but no issue has been tracked for this as far as I know. You want to change it to Power over Ethernet (PoE)? Or other suggestion?




## API Information ##

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

* Supported in ACI versions: 3.0(1k) and later.

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

## GUI Information ##

* Location: `Fabric -> Access Policies -> Policies -> Interface -> PoE`

## Example Usage ##

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

```hcl

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

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

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

```hcl

resource "aci_poe_interface_policy" "full_example" {
admin_st = "disabled"
annotation = "annotation"
description = "description_1"
maximum_power = "15400"
host_mode = "never"
name = "test_name"
name_alias = "name_alias_1"
owner_key = "owner_key_1"
owner_tag = "owner_tag_1"
poe_vlan = "vlan-200"
policing_action = "log"
port_priority_high = "yes"
relation_to_application_epg = {
annotation = "annotation_1"
target_dn = aci_application_epg.test_application_epg_0.id
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}

```

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

## Schema ##

### Required ###

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

### Read-Only ###

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

### Optional ###

* `admin_st` (adminSt) - (string) The administrative state of the PoE Interface Policy object. This attribute is supported in ACI versions: 4.0(1h) and later.
- Default: `"disabled"`
- Valid Values: `"disabled"`, `"enabled"`.
* `annotation` (annotation) - (string) The annotation of the PoE Interface Policy object. This attribute is supported in ACI versions: 3.2(1l) and later.
- Default: `"orchestrator:terraform"`
* `description` (descr) - (string) The description of the PoE Interface Policy object.
* `maximum_power` (max) - (string) The maximum power in milliwatts that is allowed for the PoE Interface Policy object. The value must be in the range 4000 - 60000.
- Default: `"30000"`
* `host_mode` (mode) - (string) The host mode of the PoE Interface Policy object.
- Default: `"auto"`
- Valid Values: `"auto"`, `"never"`, `"static"`.
* `name_alias` (nameAlias) - (string) The name alias of the PoE Interface Policy object.
* `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.
* `poe_vlan` (poeVoiceVlan) - (string) The PoE VLAN of the PoE Interface Policy object. This attribute is supported in ACI versions: 4.0(1h) and later.
- Default: `"unknown"`
* `policing_action` (policeAct) - (string) The policing action of the PoE Interface Policy object.
- Default: `"err-dis"`
- Valid Values: `"err-dis"`, `"log"`, `"none"`.
* `port_priority_high` (prioHigh) - (string) Enable high port priority for the PoE Interface Policy object.
- Default: `"no"`
- Valid Values: `"no"`, `"yes"`.
* `relation_to_application_epg` - (map) A map of Relation To Application EPG (ACI object [poeRsPoeEpg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/poeRsPoeEpg/overview)) pointing to Application EPG (ACI Object [fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview)) which can be configured using the [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) resource. This attribute is supported in ACI versions: 4.0(1h) and later.
#### Optional ####

* `annotation` (annotation) - (string) The annotation of the Relation To Application EPG object.
- Default: `"orchestrator:terraform"`
* `target_dn` (tDn) - (string) The distinguished name (DN) of the EPG 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.
* `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 PoE 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_poe_interface_policy.example uni/infra/poeIfP-{name}
```

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

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

data "aci_poe_interface_policy" "example" {
name = "test_name"
}
14 changes: 14 additions & 0 deletions examples/data-sources/aci_poe_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
}
14 changes: 14 additions & 0 deletions examples/resources/aci_poe_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,43 @@

resource "aci_poe_interface_policy" "full_example" {
admin_st = "disabled"
annotation = "annotation"
description = "description_1"
maximum_power = "15400"
host_mode = "never"
name = "test_name"
name_alias = "name_alias_1"
owner_key = "owner_key_1"
owner_tag = "owner_tag_1"
poe_vlan = "vlan-200"
policing_action = "log"
port_priority_high = "yes"
relation_to_application_epg = {
annotation = "annotation_1"
target_dn = aci_application_epg.test_application_epg_0.id
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}
annotations = [
{
key = "key_0"
value = "value_1"
}
]
tags = [
{
key = "key_0"
value = "value_1"
}
]
}
4 changes: 4 additions & 0 deletions examples/resources/aci_poe_interface_policy/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

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

infraAccBndlSubgrp:
resource_name: "leaf_access_bundle_policy_sub_group"


poeIfPol:
sub_category: "Access Policies"
ui_locations:
- "Fabric -> Access Policies -> Policies -> Interface -> PoE"
contained_by:
- "polUni"
rn_prepend: "infra"

poeRsPoeEpg:
resource_name: "relation_to_application_epg"
relationship_classes:
- "fvAEPg"
Loading