cisco.aci.aci_contract_subject_to_filter – Bind Contract Subjects to Filters (vz:RsSubjFiltAtt)¶
Note
This plugin is part of the cisco.aci collection (version 1.1.1).
To install it use: ansible-galaxy collection install cisco.aci
.
To use it in a playbook, specify: cisco.aci.aci_contract_subject_to_filter
.
Parameters¶
Notes¶
Note
The
tenant
,contract
,subject
, andfilter_name
must exist before using this module in your playbook. The cisco.aci.aci_tenant, cisco.aci.aci_contract, cisco.aci.aci_contract_subject, and cisco.aci.aci_filter modules can be used for these.
See Also¶
See also
- cisco.aci.aci_contract_subject
The official documentation on the cisco.aci.aci_contract_subject module.
- cisco.aci.aci_filter
The official documentation on the cisco.aci.aci_filter module.
- APIC Management Information Model reference
More information about the internal APIC class vz:RsSubjFiltAtt.
- Cisco ACI Guide
Detailed information on how to manage your ACI infrastructure using Ansible.
- Developing Cisco ACI modules
Detailed guide on how to write your own Cisco ACI modules to contribute.
Examples¶
- name: Add a new contract subject to filer binding
cisco.aci.aci_contract_subject_to_filter:
host: apic
username: admin
password: SomeSecretPassword
tenant: production
contract: web_to_db
subject: test
filter: '{{ filter }}'
log: '{{ log }}'
state: present
delegate_to: localhost
- name: Remove an existing contract subject to filter binding
cisco.aci.aci_contract_subject_to_filter:
host: apic
username: admin
password: SomeSecretPassword
tenant: production
contract: web_to_db
subject: test
filter: '{{ filter }}'
log: '{{ log }}'
state: present
delegate_to: localhost
- name: Query a specific contract subject to filter binding
cisco.aci.aci_contract_subject_to_filter:
host: apic
username: admin
password: SomeSecretPassword
tenant: production
contract: web_to_db
subject: test
filter: '{{ filter }}'
state: query
delegate_to: localhost
register: query_result
- name: Query all contract subject to filter bindings
cisco.aci.aci_contract_subject_to_filter:
host: apic
username: admin
password: SomeSecretPassword
tenant: production
contract: web_to_db
subject: test
state: query
delegate_to: localhost
register: query_result
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Jacob McGill (@jmcgill298)