# RADKIT Swagger Example## This example shows how you can utilize RADKIT's Swagger/OpenAPI connection through# Ansible in to make API calls. This requires credentials and API base path to be configured# within the RADKIT inventory.## In order for RADKIT to make a connection, expose variables as environment variables or# optionally, add them as variables in the playbook.## export RADKIT_ANSIBLE_CLIENT_PRIVATE_KEY_PASSWORD_BASE64=$(echo -n 'mypassword' | base64)# export RADKIT_ANSIBLE_IDENTITY="myuserid@cisco.com"# export RADKIT_ANSIBLE_SERVICE_SERIAL="xxxx-xxx-xxxx"#----hosts:localhostbecome:nogather_facts:notasks:-name:Get alarms from vManagecisco.radkit.swagger:device_name:sandbox-sdwan-2path:/alarmsmethod:getstatus_code:[200]register:swagger_outputdelegate_to:localhost-name:Register a new NMS partner in vManagecisco.radkit.swagger:device_name:vwmagepath:/partner/{partnerType}parameters:'{"partnerType":"dnac"}'method:poststatus_code:[200]json:'{"name":"DNAC-test","partnerId":"dnac-test","description":"dnac-test"}'register:swagger_outputdelegate_to:localhost