# Ansible API how to use "get\_config" in Ansible 2.5.0

**URL:** <https://forum.ansible.com/t/ansible-api-how-to-use-get-config-in-ansible-2-5-0/27098>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [March 23, 2018, 5:48pm UTC](https://forum.ansible.com/t/ansible-api-how-to-use-get-config-in-ansible-2-5-0/27098 "2018-03-23T17:48:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 23, 2018, 5:48pm UTC](https://forum.ansible.com/t/ansible-api-how-to-use-get-config-in-ansible-2-5-0/27098/1 "2018-03-23T17:48:10Z")

</div>

You don't use get\_config, you use self.get\_option('optoinname'), see  
shipped plugins for how to define options inside the DOCUMENTATION=  
variable for the config system to automatically recognize them.
