03-10-2014 08:04 AM - edited 03-01-2019 06:28 AM
Task Name | REST API custom workflow |
Description | REST API Example |
Prerequisites |
|
Category | Virtualization |
Components | vSphere 5.x |
User Inputs |
|
Output | String result |
Instructions for Use:
Hi Orf
I like this Custom Workflow template.
I have a question. You had published another workflow"Add VM Disk", in which you had defined Custom Workflow Inputs Orf-Disk-Types and Orf-Disk-Sizes.
Is there a way to update the Orf-Disk-Sizes using another workflow. I like to use this RESTfullWebServices workflow to get inputs and another Custom Workflow that could update the LOV entries of Orf-Disk-Sizes on a periodic basis.
Can you guide me on this.
Thanks.
Gautam
The disk size(es) are a custom variable.
They are here…
Select edit and you change them
As to updating a variable… here you go… (in java script)
ctxt.updateInput("lifecyclevalue", expiry_in_milliseconds);
Here the variable lifecycle is updated.
I am trying to update LOV label/values of a custom workflow input "e.g. disk size(es)" using a script.
I am able to do the same manually by editing them.
Can you help. !
Thanks
Gautam
You update them via Cloupia script with this..
ctxt.updateInput("lifecyclevalue", expiry_in_milliseconds);
Attached work flow…
Now if you are talking about updating items on the screen – hmmmm that I don't know…
Thanks for your responses and help.
How would I create brand new custom workflow input and its corresponding LOV label/values like you did for the OrfDiskSize_0_0.
-Gautam
So you want to create a custom variable/drop down on the fly?
That I am not sure how to do. Since they are not exactly in a workflow – the workflow uses static values pulled from the db to be used…
But lets ask the mailer if there is a way to create a custom variable on the fly…
Thx
yes, that's what I looking for.
Thanks
Gautam
This would equate to making a DB update….
I had the API mailer on the previous e-mail…. Lets see what they say…
We would need some sort of DB update situation to do this – right?
Can it be done with mysql script or API. For mysql script, I would not have a db access nor the schema to do the same.
Once you touch the DB with out the API you are no longer under Cisco support.
Have you looked in the cisco down load site the SDK library. Maybe there is some insight on this…
Or write or read to a file and then read that in? There is a workflow out there for that…
Here is the API call for list of custom Variables… getting closer…
Here is the API call for list of custom Variables - I missed the API.which one would that be.
Thanks
Gautam
All the API calls were in the picture I sent you.
Any way to use ntlm auth with this? Or is there another way to call remote REST services with UCSD im not seeing?
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: