| subcategory | Access Policies |
|---|---|
| layout | aci |
| page_title | ACI: aci_access_port_selector |
| sidebar_current | docs-aci-list-resource-aci_access_port_selector |
| description | Manages ACI Access Port Selector |
List existing ACI Access Port Selector objects with the terraform query command.
For more information about the usage see the official Hashicorp documentation for importing existing resources in bulk.
-
Class: infraHPortS
-
Supported in ACI versions: 1.0(1e) and later.
-
Distinguished Name Formats:
uni/infra/accportprof-{name}/hports-{name}-typ-{type}uni/infra/fexprof-{name}/hports-{name}-typ-{type}
- Location:
Fabric -> Access Policies -> Interfaces -> Leaf Interfaces -> Profiles -> Interface Selectors
The configuration snippet below shows an example for Access Port Selector with only required attributes. This snippet retrieves a list of all Access Port Selector objects.
list "aci_access_port_selector" "example" {
provider = aci
}The configuration snippet below shows an example for Access Port Selector with filter capabilties.
list "aci_access_port_selector" "example" {
provider = aci
config {
filter = "query-target-filter=eq(infraHPortS.dn,\"uni/infra/fexprof-{name}/hports-{name}-typ-{type}\")"
}
}-
config- (map) A map that contains all configurable options for the list resource.filter- (string) A filter to restrict the results of the class query to APIC. See Cisco APIC REST API Configuration Guide, Release 4.2(x) and Later for more information about composing filter query expressions.