Closed mdessamb closed 11 months ago
HI @mdessamb,
I notice that you have vm_provider: vmware
set.
Could you try again to query all without vm_provider specified:
- name: Query all controllers
cisco.aci.aci_vmm_controller:
<<: *aci_info
state: query
register: query_controller
In case you would like to query the vmware providers you could also leverage the aci_rest module:
- name: Class Q vmmProvP
cisco.aci.aci_rest:
<<: *aci_info
path: /api/class/vmmProvP.json?query-target-filter=eq(vmmProvP.dn,"uni/vmmp-VMware")
method: get
Hi @akinross,
Thanks for looking into it,
It works, however this doesn't return me anything
---
- name: Gather APIC information
hosts: apic
gather_facts: false
vars:
aci_creds: &aci_login
<ommited>
tasks:
- name: Query all controllers
cisco.aci.aci_vmm_controller:
<<: *aci_login
state: query
register: query_result
delegate_to: localhost
- debug: msg="{{ query_result }}"
PLAY [Gather APIC information] *******************************************************************************************************************************************
TASK [Query all controllers] *********************************************************************************************************************************************
ok: [bdsol-aci13-apic1 -> localhost]
TASK [debug] *************************************************************************************************************************************************************
ok: [bdsol-aci13-apic1] => {
"msg": {
"changed": false,
"current": [],
"failed": false
}
}
PLAY RECAP ***************************************************************************************************************************************************************
bdsol-aci13-apic1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
This works great, thanks !
- name: Class Q vmmProvP cisco.aci.aci_rest: <<: *aci_info path: /api/class/vmmProvP.json?query-target-filter=eq(vmmProvP.dn,"uni/vmmp-VMware") method: get
I'll have a look and work on it (no ETA)
Community Note
Description
cisco.aci.aci_vmm_controller
- Query all VMware VMM controller returns APIC API error 400 "Request failed, rsp-subtree option is not supported for class 'vmmProvP'"HTTP APIC API call return similar error
Alternative is to query the children of the VMware vmmPropP
Affected Module Name(s):
APIC version and APIC Platform
Collection versions
Output/ Error message
Expected Behavior
Actual Behavior
Playbook tasks to Reproduce
Important Factoids
N/A
References
ACI module example: https://docs.ansible.com/ansible/latest/collections/cisco/aci/aci_vmm_controller_module.html#examples