08-19-2015 10:50 AM - edited 03-01-2019 06:36 AM
Task Name | APIC API Command |
Description | Send XML/JSON to Application Policy Infrastructure Controller |
Prerequisites | Validated on UCSD 5.3.1.1 |
Category | Workflow Task |
Components | Application Centric Infrastructure |
User Inputs |
|
Output | Result of operation |
Date 05-SEP-2017: New Custom task uploaded which works both on HTTP and HTTPS. Tested and validated on UCSD 6.0.1.2 - by Phani Penmethsa
Summary
Provides custom task to send/retrieve information from an Application Centric Infrastructure Controller using XML or JSON.
Installation
Usage
See attached document “UCS Director – APIC API Command”
The workflow also includes a sample Unit Test script that can be used to validate the custom task against different releases of UCS Director.
Also contains tips on finding APIC API calls.
Example
Use Post/Get operations to send/query the Application Policy Infrastructure Controller.
It seems to work only with HTTP.
Is there a way to send API Commands via HTTPS ?
https://communities.cisco.com/docs/DOC-56419
[cid:image002.png@01D2D9D2.3687BA70][cid:image003.png@01D2D9D2.3687BA70]
Orf Gelbrich
Check out UCS Director Workflow INDEX<https://communities.cisco.com/docs/DOC-56419> on Cisco Communities Site (Twitter @UCSDGURU)
HI Orf,
I have created a configuration in the CISCO ACI using the post method and it is successful, I would like to know if we can map the rollback to this post method.
Thanks,
Sandeep.
Roll back works in conjunction with workflows and workflow task. You would be better off creating a workflow vs just calling an API call.
hi Orf, I do have a workflow created with the only task of API call. To this workflow I want to create a Rollback.
Take a look at these 4 examples cucsd_patch_6_5_0_3_65941.zip
thanks for the response, but can you provide me a link to access 'cucsd_patch_6_5_0_3_65941.zip'.
I would need your CCO ID
ogelbric@cisco.com<mailto:ogelbric@cisco.com>
Here is my CCO ID: 'sandeepthumu'
Also shared this through my personal mail ID.
I thought I had already published this to you?
Thanks for the file Orf,
I got the access this seems like some sort of package. I could not find the example scripts, is there any specific procedure to see the examples?
I published the patch file for you. What else are you looking for?
Hi Orf,
I am Using APIC API command using get method.
Let us take an sample example
if i used APIC URI /api/mo/uni/${value}.json it is working fine
but when i am trying to use the URI which is like /api/mo/uni/[${value}].json i am facing issue like Invalid URI
Could you please update me that any specific format we need to follow if there are any square brackets in uri.
Thanks
Harish
I Have provided the input which is provided as above but failing i have missed anything?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: