- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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
- Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
- Unzip the file on your computer. Should end up with a .WFDX file.
- Log in to UCS Director as a user that has "system-admin" privileges.
- Navigate to "Policies-->Orchestration" and click on "Import".
- Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
- Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
- Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
- Click "Submit".
- A new folder should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment.
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.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
It seems to work only with HTTP.
Is there a way to send API Commands via HTTPS ?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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)

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Roll back works in conjunction with workflows and workflow task. You would be better off creating a workflow vs just calling an API call.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
hi Orf, I do have a workflow created with the only task of API call. To this workflow I want to create a Rollback.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Take a look at these 4 examples cucsd_patch_6_5_0_3_65941.zip

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
thanks for the response, but can you provide me a link to access 'cucsd_patch_6_5_0_3_65941.zip'.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I would need your CCO ID
ogelbric@cisco.com<mailto:ogelbric@cisco.com>

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Here is my CCO ID: 'sandeepthumu'
Also shared this through my personal mail ID.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I thought I had already published this to you?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I published the patch file for you. What else are you looking for?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I Have provided the input which is provided as above but failing i have missed anything?