Note
This plugin is part of the ansible.netcommon collection.
To install it use: ansible-galaxy collection install ansible.netcommon
.
To use it in a playbook, specify: ansible.netcommon.restconf_get
.
New in version 1.0.0: of ansible.netcommon
Parameter | Choices/Defaults | Comments |
---|---|---|
content string |
| The content is a query parameter that controls how descendant nodes of the requested data nodes in path will be processed in the reply. If value is config return only configuration descendant data nodes of value in path . If value is nonconfig return only non-configuration descendant data nodes of value in path . If value is all return all descendant data nodes of value in path
|
output string |
| The output of response received. |
path string / required | URI being used to execute API calls. |
- name: get l3vpn services ansible.netcommon.restconf_get: path: /config/ietf-l3vpn-svc:l3vpn-svc/vpn-services
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
response dictionary | when the device response is valid JSON | A dictionary representing a JSON-formatted response Sample: { "vpn-services": { "vpn-service": [ { "customer-name": "red", "vpn-id": "blue_vpn1", "vpn-service-topology": "ietf-l3vpn-svc:any-to-any" } ] } } |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/ansible/netcommon/restconf_get_module.html