Ansible Tutorial: REST API Body Format JSON& Jinja2 Cisco RESTCONF IOS Configuration#ansibletutorial

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต
#networkautomation #ansible #ansibleautomation
๐—ง๐—ผ ๐—”๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€ ๐˜๐—ต๐—ฒ ๐—™๐˜‚๐—น๐—น ๐—–๐—ผ๐—ป๐˜๐—ฒ๐—ป๐˜ ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—ถ๐—ป ๐—ผ๐˜‚๐—ฟ ๐—ถ๐—ป-๐—ฑ๐—ฒ๐—ฝ๐˜๐—ต ๐—จ๐—ฑ๐—ฒ๐—บ๐˜† ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ (Mastering Ansible Automation):

Playlist: Ansible Leraning For Network Engineers

๐—ฃ๐—น๐—ฎ๐˜†๐—น๐—ถ๐˜€๐˜: ๐—ฃ๐˜†๐˜๐—ต๐—ผ๐—ป ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ณ๐—ผ๐—ฟ ๐—ก๐—ฒ๐˜๐˜„๐—ผ๐—ฟ๐—ธ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€(๐Ÿญ๐Ÿฎ๐Ÿฌ+ ๐—ฉ๐—ถ๐—ฑ๐—ฒ๐—ผ๐˜€)

โ˜ธ๐—ฃ๐—น๐—ฒ๐—ฎ๐˜€๐—ฒ ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„ ๐—ฏ๐—ฒ๐—น๐—ผ๐˜„ ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ ๐—ฃ๐—ฎ๐—ด๐—ฒ ๐—ณ๐—ผ๐—ฟ ๐˜๐—ต๐—ฒ ๐—น๐—ฎ๐˜๐—ฒ๐˜€๐˜ ๐—ฐ๐—ผ๐—ฑ๐—ฒ๐˜€:

๐—ฃ๐—น๐—ฎ๐˜†๐—น๐—ถ๐˜€๐˜: ๐—–๐—ถ๐˜€๐—ฐ๐—ผ ๐—ก๐—ซ๐—”๐—ฃ๐—œ-๐—–๐—Ÿ๐—œ ๐—ฃ๐˜†๐˜๐—ต๐—ผ๐—ป ๐—”๐˜‚๐˜๐—ผ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: ๐—ก๐—ฒ๐˜…๐˜‚๐˜€ ๐Ÿต๐—ธ :๐—ฃ๐—ฎ๐—ฟ๐˜€๐—ฒ ๐—ท๐˜€๐—ผ๐—ป ๐—ซ๐— ๐—Ÿ ๐—–๐—ผ๐—ป๐—ณ๐—ถ๐—ด๐˜‚๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐——๐—ฎ๐˜๐—ฎ

๐—ฃ๐—น๐—ฎ๐˜†๐—น๐—ถ๐˜€๐˜: ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐˜๐—ผ ๐—ฃ๐—ฎ๐—ฟ๐˜€๐—ฒ ๐—–๐—ถ๐˜€๐—ฐ๐—ผ ๐—–๐—ผ๐—ป๐—ณ๐—ถ๐—ด๐˜‚๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐˜‚๐˜€๐—ถ๐—ป๐—ด ๐—ฃ๐˜†๐˜๐—ต๐—ผ๐—ป ๐—ฅ๐—ฒ๐—ด๐—˜๐˜…:๐—ฟ๐—ฒ ๐—ง๐˜‚๐˜๐—ผ๐—ฟ๐—ถ๐—ฎ๐—น(๐Ÿญ๐Ÿฑ+ ๐—ฉ๐—ถ๐—ฑ๐—ฒ๐—ผ๐˜€)

Playbook
---
- name: REST API Put Config
hosts: r3
gather_facts: false
tasks:
- name: User input
prompt: Enter Hostname
register: hostname_input

- name: Setfact for hostname

- name: Put Config
url: https://{{ ansible_host }}/restconf/data/Cisco-IOS-XE-native:native/hostname
method: PUT
body: "{{ lookup('template', 'templates/hostname.j2')}}"
body_format: json
headers:
Accept: application/yang-data+json
Authorization: "Basic YWRtaW46YWRtaW4="
Content-Type: application/yang-data+json
validate_certs: false
status_code: 204
register: device_conf

- name: Print data
msg:
- "{{ device_conf }}"
coding for network engineers
ansible for network engineers
ansible tutorial
ccna network engineers
rest api from ansible PUT POST
cisco yang model native data model
explore cisco apis using yang suite
api data format
ansible api 204 response
rest api content-type: application/yang-dat+json
postman example for network automation
ansible uri respose status default 200
ansible uri send body-format raw manually
difference between body-format raw vs json
ansible default status_code 200
body_format raw body_format json ansible
cisco router api using ansible
cisco ios automation
This Video demonstrates what is body format json in ansible uri
ansible api request body format raw and json difference
ansible uri default body format

how to do rest api PUT request
what is rest api PUT request
ansible rest api automation
ansible api automation
ansible uri module
how to initiate api request to cisco from ansible
ansible error "An unknown error occurred cant concat str to bytes" api request
multiple options to send configuration through api
pass api data in python dictionary format or yaml format
ansible api put request networka automation
how to take user input
how to intitate REST API request from ansible
API get request from ansible
cisco router api automation using ansible
ansible uri module tutorial
ansible rest api example
send json configuration data to ansible
ansible automation tutorial
ansible rest conf connection using uri module
ansible for api automation
ansible read config from jinja2
ansible jinja2 template tutorial
how to use lookup plugin in ansible template lookup
how to render template in ansible
how to intitate api get opration from ansible
ansible yang suite connection details
cisco csr1000v device api connection from ansible
router api automation using ansible
how to add device in yangsuite
ansible api automation
ansible uri for api automation of cisco routers
rest conf protocol explained
xplore native yang model of cisco devices
interface configuration using cisco yang model and ansible automation
cisco devnet ansible tutorial
devnet ios rest api from ansible
interface configuration using ansible api module
get network router interface details using get method from ansible uri
pass accept: application/yang+json from ansible
api GET, PUT, POST PATCH and delete from ansible
initiate Rest API from ansible
accept application/yang-data+json
api authorization from ansible
api basic authorization from ansible
restapi postman example
base64 encoded api password
how to decrypt base64 encoded data
ansible uri message body, message body format, headers
how to pass rest api username and password in uri module ansible
base64 encoding linux terminal command

ansible tutorial
ansible tutorial for beginners
ansible tutorial step by step
ansible tutorial video
ansible tutorial online
ansible tutorial guide
ansible tutorial documentation
ansible tutorial blog
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

๐—ง๐—ผ ๐—”๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€ ๐˜๐—ต๐—ฒ ๐—™๐˜‚๐—น๐—น ๐—–๐—ผ๐—ป๐˜๐—ฒ๐—ป๐˜ ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—ถ๐—ป ๐—ผ๐˜‚๐—ฟ ๐—ถ๐—ป-๐—ฑ๐—ฒ๐—ฝ๐˜๐—ต ๐—จ๐—ฑ๐—ฒ๐—บ๐˜† ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ (Mastering Ansible Automation):

Playlist: Ansible Leraning For Network Engineers

NetworkEvolution