[Openstack] How to pass applicaiton specific input paremeters to Murano REST api

Ekaterina Chernova efedorova at mirantis.com
Mon Dec 8 17:34:38 UTC 2014


Hi!

Sorry for the late response.

Applications in Murano are described with object modal.

You can set any parameter application accepts and may ask user to enter it
in UI.
Object modal with entered values will be passed to API as it is.

In the provided specification each item under "services" parameter is an
object modal.
It's set in UI definition in "Application" section. In this
<https://github.com/murano-project/murano-app-incubator/blob/master/io.murano.apps.apache.ApacheHttpServer/UI/ui.yam>
[1] repository, you can find some examples.

Regarding you main question. To add new "keyPair" parameter you need to:

* Add new "keyPair" char field to the form. Suppose, that form called "
instanceConfiguration"
* In Application section, assign $.instanceConfiguration.keyPair to the
desired property.

After that, "keyPair" value can be accessible in Murano application
creation workflow.

For more details, take a look at screencast
<http://www.youtube.com/watch?v=AODj_amMGvk> [2] about Murano from
definition and object modal generation (second part of the video).

Please, contact us at #murano channel!

Regards,
Kate.

[1] -
https://github.com/murano-project/murano-app-incubator/blob/master/io.murano.apps.apache.ApacheHttpServer/UI/ui.yaml
[2] - http://www.youtube.com/watch?v=AODj_amMGvk


On Tue, Nov 11, 2014 at 6:26 PM, Shahzad Mughal -X (shmughal - NETPACE INC
at Cisco) <shmughal at cisco.com> wrote:

>  Hi,
>
>
>
> Is there any way to pass application specific parameters to Murano RESTful
> API? As I didn’t find anything related to pass parameters while
> provisioning application using Murano API in these docs
> http://murano.readthedocs.org/en/latest/specification/index.html .
>
> For example how can I pass key pair or any other application input
> parameter that we need to provide while provisioning application from
> Murano UI/browser web interface in RESTful json?
>
>
>
> [image:
> http://www.cisco.com/web/europe/images/email/signature/est2014/cisco-30-year-banner-02.png?ct=1399014909566]
>
> *Shahzad Mughal*
> Engineer / Developer
> Cloud Services Group - US
> shmughal at cisco.com (epage) <shmughal at epage.cisco.com>
> WebEx Social profile <http://iwe.cisco.com/web/shmughal>
>
> *Cisco Systems Pakistan (Private) Limited*
> 3rd Floor, Suite # 317 The Forum, G-20
> Block-09, KDA Scheme NO. 05, Kehkashan,
> 7600
> Karachi
> Pakistan
> Cisco.com <http://www.cisco.com/>
> Cloud Services Group - US
> <http://http/wwwin-tools.cisco.com/dir/empadvquery.go?group=Cloud%20Services%20Group%20-%20US&mode=exact&accmsg=true>
> Download vCard[image: Virtual Card File]
> <http://wwwin-tools.cisco.com/dir/vcard/shmughal.vcf>
>
> [image:
> http://www.cisco.com/assets/social_media_icons/ciscoblogs-16x16.png]
> <http://wwwin.cisco.com/marketing/corporate/brand/intelbrand/brandstrat/signature/Insert%20your%20Cisco%20Blogs%20link>
>
>
> [image: http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif] Think
> before you print.
>
> This email may contain confidential and privileged material for the sole
> use of the intended recipient. Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient (or
> authorized to receive for the recipient), please contact the sender by
> reply email and delete all copies of this message.
>
> Please click here
> <http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for
> Company Registration Information.
>
>
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/6d5952c1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5629 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/6d5952c1/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1185 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/6d5952c1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1153 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/6d5952c1/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 901 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141208/6d5952c1/attachment-0002.png>


More information about the Openstack mailing list