cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6573
Views
3
Helpful
18
Comments
Orf Gelbrich
Cisco Employee
Cisco Employee
Task NameREST API custom workflow
Description

REST API Example

Prerequisites
  1. This is a custom workflow task and needs to be called from a workflow
CategoryVirtualization
ComponentsvSphere 5.x
User Inputs
  1. Input Method
  2. URL
  3. Accept header
  4. Payload
Output

String result

Instructions for Use:

  1.   Download the attached .ZIP file to your computer. Note: Remember the location of the saved file on your computer.
  2.   Unzip the file on your computer. The unzipped file ends up with an extension .WFDX file.
  3.   Log in to UCS Director as a user that has the system admin privileges.
  4.   Choose Policies > Orchestration, and then click the Custom Workflow Tasks tab.
  5.   Click Import Tasks.
  6.   In the Import Tasks dialog box, click Browse and choose the downloaded file for upload. Click Upload. A successful file upload message appears.
  7.   Click OK.
  8.   Click Next.
  9. The Save Tasks window displays the task exported time, task exported username, and comments provided when the task is exported. The imported task details appear in a table format.
  10. Check the Overwrite if the task exists with same name check box to overwrite the existing task with the imported task.
  11. If this check box is unchecked, a new task will be added with a number (n) to make the name unique.
  12. Click Import.
  13. The custom workflow task is imported and is immediately available for use in the workflow.
  14. Create a basic workflow. For more information, see the Creating a Workflow section in the Cisco UCS Director Orchestration Guide, Release 4.1.
  15. Add the imported workflow task to the workflow. For more information see the Adding Tasks to a Workflow section in the Cisco UCS Director Orchestration Guide, Release 4.1
  16. Click Submit.
  17. Click the workflow, the workflow designer opens.
  18. In the workflow designer window, click the Execute Now button.
  19. A service request is created for the workflow.
Comments
ekleditzpge
Level 1
Level 1

Actually, I can use basic auth and I just found the http modules post. I think I can use those.

jeabdull
Cisco Employee
Cisco Employee

Hi, notice that you're using httpclient library from apache.. is there any complete list external java api that builtin into ucsd? can we install external library by our self?ogelbric

Orf Gelbrich
Cisco Employee
Cisco Employee

you you can install your own jar via policies -> orchestration -> script module

Getting Started

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:

Quick Links