|
|
|
@ -1,8 +1,9 @@
|
|
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
__metaclass__ = type
|
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
|
|
|
|
ANSIBLE_METADATA = {
|
|
|
|
|
'metadata_version': '1.1',
|
|
|
|
@ -86,7 +87,7 @@ error:
|
|
|
|
|
raw:
|
|
|
|
|
description: The raw output returned by the APIC REST API (xml or json)
|
|
|
|
|
returned: parse error
|
|
|
|
|
type: string
|
|
|
|
|
type: str
|
|
|
|
|
sample: '<?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><error code="122" text="unknown managed object class foo"/></imdata>'
|
|
|
|
|
sent:
|
|
|
|
|
description: The actual/minimal configuration pushed to the APIC
|
|
|
|
@ -135,17 +136,17 @@ proposed:
|
|
|
|
|
filter_string:
|
|
|
|
|
description: The filter string used for the request
|
|
|
|
|
returned: failure or debug
|
|
|
|
|
type: string
|
|
|
|
|
type: str
|
|
|
|
|
sample: ?rsp-prop-include=config-only
|
|
|
|
|
method:
|
|
|
|
|
description: The HTTP method used for the request to the APIC
|
|
|
|
|
returned: failure or debug
|
|
|
|
|
type: string
|
|
|
|
|
type: str
|
|
|
|
|
sample: POST
|
|
|
|
|
response:
|
|
|
|
|
description: The HTTP response from the APIC
|
|
|
|
|
returned: failure or debug
|
|
|
|
|
type: string
|
|
|
|
|
type: str
|
|
|
|
|
sample: OK (30 bytes)
|
|
|
|
|
status:
|
|
|
|
|
description: The HTTP status from the APIC
|
|
|
|
@ -155,7 +156,7 @@ status:
|
|
|
|
|
url:
|
|
|
|
|
description: The HTTP url used for the request to the APIC
|
|
|
|
|
returned: failure or debug
|
|
|
|
|
type: string
|
|
|
|
|
type: str
|
|
|
|
|
sample: https://10.11.12.13/api/mo/uni/tn-production.json
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|