我有一个安装了厨师插件的vRealize Orchestrator环境。我想调用API来启动vRealize Orchestrator中的主厨工作流程。
说我想打电话给主厨工作流Add New Role。此工作流的输入参数为
<input-parameters>
<parameter description="Chef Server" type="CHEF:ChefHost" name="host"/>
<parameter description="Name of new role" type="string" name="role"/>
<parameter description="(Optional) Description of new role" type="string" name="description"/>
</input-parameters>发送表单type="string"参数的格式为
我面临的问题是参数type="CHEF:ChefHost"。我无法得到正确的type="CHEF:ChefHost"语法。我总是得到一个400错误描述The request sent by the client was syntactically incorrect.
是否有说明如何创建CHEF:ChefHost类型的文档?
发布于 2016-05-25 07:58:52
我在vmware社区也问过同样的问题,我从那里得到了一个回答。
与任何其他插件对象一样,厨师主机作为sdk对象传递,这些对象由其类型和id属性唯一标识。
<execution-context xmlns="http://www.vmware.com/vco">
<parameters>
<parameter name="host" type="CHEF:ChefHost">
<sdk-object type="Chef:Host" id=<Enter host id>/>
</parameter>
</parameters>
https://stackoverflow.com/questions/37405901
复制相似问题