Using the vcenter Orchestrator SOAP Plug-In 1.0.1

Similar documents
Using the vcenter Orchestrator Perspectives Plug-In

Using the vcenter Orchestrator Plug-In for vcloud Director 1.0

Using the vrealize Orchestrator Plug-In for vrealize Automation 7.0. vrealize Orchestrator 7.0

Advanced Service Design. vrealize Automation 6.2

Using the VMware vcenter Orchestrator Client. vrealize Orchestrator 5.5.1

Using the vrealize Orchestrator Operations Client. vrealize Orchestrator 7.5

Using the VMware vrealize Orchestrator Client

Using the vcenter Orchestrator Plug-In for vcenter Update Manager

Using the vrealize Orchestrator Plug-In for vrealize Automation 7.0. vrealize Orchestrator 7.0 vrealize Automation 7.0 vrealize Automation 7.

Using the Horizon vrealize Orchestrator Plug-In

Advanced Service Design

Using the Horizon vcenter Orchestrator Plug-In. VMware Horizon 6 6.0

Using the vcenter Orchestrator Plug-In for vcloud Director 5.5. vrealize Orchestrator 5.5

Installing and Configuring vcenter Multi-Hypervisor Manager

Installing and Configuring VMware vcenter Orchestrator

Using VMware vrealize Orchestrator Plug-Ins. vrealize Orchestrator 6.0

Using the vrealize Orchestrator OpenStack Plug-In 2.0. Modified on 19 SEP 2017 vrealize Orchestrator 7.0

Using the vrealize Orchestrator Chef Plug-In 1.0

Port Adapter Installation and Configuration Guide

vsphere Web Client Extensions Programming Guide vsphere 5.1

Installing and Configuring vcloud Connector

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Migrating vrealize Automation 6.2 to 7.1

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

vcenter Orchestrator Administration Guide

vcenter Orchestrator Developer's Guide

Using VMware vrealize Orchestrator Plug-Ins. 12 April 2018 vrealize Automation 7.4 vrealize Orchestrator 7.4

Workspace ONE UEM Integration with RSA PKI. VMware Workspace ONE UEM 1810

Installing and Configuring vcloud Connector

PostgreSQL Solution 1.1

Using VMware vrealize Orchestrator Plug-Ins

vrealize Operations Compliance Pack for PCI

Using VMware vrealize Orchestrator Plug-Ins. vrealize Orchestrator 7.1

Using vrealize Operations Tenant App as a Service Provider

vcloud Director Administrator's Guide

Reconfiguring VMware vsphere Update Manager. 17 APR 2018 VMware vsphere 6.7 vsphere Update Manager 6.7

Developing Plug-Ins with VMware vcenter Orchestrator

Reconfiguring VMware vsphere Update Manager. Update 1 VMware vsphere 6.5 vsphere Update Manager 6.5

VMware vcenter AppSpeed Installation and Upgrade Guide AppSpeed 1.2

IaaS Integration for Multi-Machine Services

vcenter Orchestrator Installation and Configuration Guide

vrealize Operations Manager Customization and Administration Guide vrealize Operations Manager 6.4

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Workspace ONE UEM Certificate Authority Integration with JCCH. VMware Workspace ONE UEM 1810

VMware vcenter AppSpeed User s Guide AppSpeed 1.0 EN

Developing and Deploying vsphere Solutions, vservices, and ESX Agents. 17 APR 2018 vsphere Web Services SDK 6.7 vcenter Server 6.7 VMware ESXi 6.

IaaS Integration for Multi- Machine Services. vrealize Automation 6.2

Multi-Tenancy in vrealize Orchestrator. vrealize Orchestrator 7.4

vsphere PowerCLI Installation Guide VMware vsphere PowerCLI 4.1 Update 1 EN

vrealize Orchestrator Load Balancing

vsphere Upgrade Update 2 Modified on 4 OCT 2017 VMware vsphere 6.0 VMware ESXi 6.0 vcenter Server 6.0

vcenter Support Assistant User's Guide

Request Manager User's Guide

vcenter CapacityIQ Installation Guide

Using VMware vrealize Orchestrator with VMware vcloud Availability for vcloud Director Version 1.0 April 2017

Installing and Configuring VMware vcenter Orchestrator

Using VMware vcenter Orchestrator Plug-Ins

Developing with VMware vcenter Orchestrator

Lifecycle Manager User's Guide

Site Recovery Manager Security

Tenant Administration

VMware AirWatch Integration with RSA PKI Guide

VMware View Upgrade Guide

Using VMware Identity Manager Apps Portal

Installing and Configuring VMware vrealize Orchestrator

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Configuring Single Sign-on from the VMware Identity Manager Service to Marketo

VMware Skyline Collector Installation and Configuration Guide. VMware Skyline 1.4

vrealize Operations Management Pack for NSX for vsphere 2.0

DCLI User's Guide. Modified on 20 SEP 2018 Data Center Command-Line Interface

vcenter Server Appliance Configuration Update 1 Modified on 04 OCT 2017 VMware vsphere 6.5 VMware ESXi 6.5 vcenter Server 6.5

Installing and Configuring VMware vcenter Orchestrator. vrealize Orchestrator 5.5.2

vcenter Operations Manager for Horizon View Administration

vcenter Support Assistant User's Guide

VMware vfabric AppInsight Installation Guide

Tenant Administration. vrealize Automation 6.2

vrealize Operations Service Discovery Management Pack 2.0

VMware vrealize Configuration Manager SQL Migration Helper Tool User's Guide vrealize Configuration Manager 5.8

vcloud Director Administrator's Guide

Installing and Configuring vcenter Support Assistant

Administering Cloud Pod Architecture in Horizon 7. Modified on 4 JAN 2018 VMware Horizon 7 7.4

Migrating vrealize Automation 6.2 to 7.2

Developing Web Views for VMware vcenter Orchestrator

Scenarios for Setting Up SSL Certificates for View. VMware Horizon 6 6.0

Installing and Configuring VMware vrealize Orchestrator

Administering Cloud Pod Architecture in Horizon 7. Modified on 26 JUL 2017 VMware Horizon 7 7.2

DCLI User's Guide. Data Center Command-Line Interface 2.9.1

DCLI User's Guide. Data Center Command-Line Interface

vrealize Operations Management Pack for NSX for vsphere 3.0

vcenter Server and Host Management

Getting Started with VMware View View 3.1

vcenter CapacityIQ Installation Guide

VMware vcenter Discovered Machines Import Tool User's Guide Version for vcenter Configuration Manager 5.6

Using VMware View Client for Mac

Scenarios for Setting Up SSL Certificates for View. Modified for Horizon VMware Horizon 7 7.3

vrealize Operations Management Pack for NSX for vsphere 3.5.0

vsphere Replication for Disaster Recovery to Cloud vsphere Replication 6.5

vrealize Operations Management Pack for NSX for Multi-Hypervisor

vcenter Chargeback User s Guide

Horizon Cloud with On-Premises Infrastructure Administration Guide. VMware Horizon Cloud Service Horizon Cloud with On-Premises Infrastructure 1.

Transcription:

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 vcenter Orchestrator 4.1 vcenter Orchestrator 4.2 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs. EN-000623-01

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright 2012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. VMware, Inc. 3401 Hillview Ave. Palo Alto, CA 94304 www.vmware.com 2 VMware, Inc.

Contents Using the vcenter Orchestrator SOAP Plug-In 5 Updated Information 7 1 Introduction to the VMware vcenter Orchestrator SOAP Plug-In 9 Role of vcenter Orchestrator with the SOAP Plug-In 9 Installing the SOAP Plug-In 9 SOAP Plug-In Functional Prerequisites 9 Install the SOAP Plug-In 10 2 Using the SOAP Plug-In 11 Using the SOAP Plug-In Inventory 11 Configuring the SOAP Plug-In 11 Configuration Workflows 11 Add a SOAP Host 12 Generate a New Workflow from a SOAP Operation 13 Test a Custom-Generated Workflow 13 Invoke a SOAP Operation 14 Exporting and Importing SOAP Configuration 14 Export SOAP Configuration as a Package 14 Import SOAP Configuration from a Package 15 3 SOAP Plug-In Scripting API 17 Access the SOAP Plug-In API 17 SOAP Plug-In API Classes 17 Index 23 SOAPAuthentication Class 17 SOAPAuthenticationManager Class 18 SOAPDynamicInParameter Class 18 SOAPDynamicOutParameter Class 18 SOAPHost Class 18 SOAPHostManager Class 19 SOAPHostValidator Class 19 SOAPInterceptor Class 19 SOAPOperation Class 20 SOAPRequest Class 20 SOAPResponse Class 21 VMware, Inc. 3

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 4 VMware, Inc.

Using the vcenter Orchestrator SOAP Plug-In Using the vcenter Orchestrator SOAP Plug-In provides information and instructions about configuring and using the VMware vcenter Orchestrator SOAP plug-in. Intended Audience This information is intended for anyone who is installing and configuring the plug-in, using the API of the plug-in, and using the workflow library. Using the vcenter Orchestrator SOAP Plug-In is written for experienced users who are familiar with virtual machine technology, with Orchestrator workflow development, and with SOAP. For more information about Orchestrator, see http://www.vmware.com/support/pubs/orchestrator_pubs.html. VMware, Inc. 5

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 6 VMware, Inc.

Updated Information Using the vcenter Orchestrator SOAP Plug-In is updated with each release of the product or when necessary. This table provides the update history of Using the vcenter Orchestrator SOAP Plug-In. Revision Description EN-000623-01 Added information about the new workflow Update a SOAP host with an endpoint URL in Configuration Workflows, on page 11. Updated the procedure with a new authentication type in Add a SOAP Host, on page 12. Added information about the new API methods and attributes in SOAPHost Class, on page 18 and SOAPOperation Class, on page 20. Added a new API class SOAPInterceptor Class, on page 19. Updated Exporting and Importing SOAP Configuration, on page 14 with information about exporting and importing SSL certificates. EN-000623-00 Initial release. VMware, Inc. 7

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 8 VMware, Inc.

Introduction to the VMware vcenter 1 Orchestrator SOAP Plug-In The SOAP plug-in allows you to manage SOAP Web services by providing interaction between vcenter Orchestrator and SOAP hosts. You can define SOAP services as inventory objects by running configuration workflows, and perform SOAP operations on the defined objects. The plug-in contains a set of standard workflows related to managing SOAP hosts and invoking SOAP operations. You can also generate custom workflows to automate tasks in a SOAP environment. This chapter includes the following topics: Role of vcenter Orchestrator with the SOAP Plug-In, on page 9 Installing the SOAP Plug-In, on page 9 Role of vcenter Orchestrator with the SOAP Plug-In You must use the Orchestrator configuration interface to install the SOAP plug-in. You use the Orchestrator client to run and create workflows and access the plug-in API. The SOAP plug-in is powered by vcenter Orchestrator. Orchestrator is a development and process-automation platform that provides a library of extensible workflows to manage the VMware vcenter infrastructure and other technologies. Orchestrator allows integration with management and administration solutions through its open plug-in architecture. SOAP is one example of a protocol that you can integrate with Orchestrator by using plug-ins. Installing the SOAP Plug-In You must use the Orchestrator configuration interface to install the SOAP plug-in. SOAP Plug-In Functional Prerequisites To be able to install and use the SOAP plug-in, your system must meet the following functional prerequisites. vcenter Orchestrator Verify that you have a running instance of Orchestrator. You can log in to the Orchestrator configuration interface at http://orchestrator_server:8282. Version 1.0.1 of the plug-in works with vcenter Orchestrator 4.1 and 4.2. For information about setting up Orchestrator, see the vcenter Orchestrator Installation and Configuration Guide. VMware, Inc. 9

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 SOAP Verify that you have access to a SOAP host. The plug-in supports SOAP Version 1.1 and 1.2, and WSDL 1.1 and 2.0. Install the SOAP Plug-In To be able to use the SOAP plug-in, you must download the.vmoapp file containing the plug-in and install it using the Orchestrator configuration interface. Prerequisites Verify that you are logged in to the Orchestrator configuration interface at http://orchestrator_server:8282. Verify that you have downloaded the.vmoapp file from http://www.vmware.com/products/datacenter-virtualization/vcenter-orchestrator/plugins.html. Procedure 1 On the General tab, click Install Application. 2 Upload the SOAP plug-in. a b c d Click the magnifying glass icon. Select the.vmoapp file to install. Click Open. Click Install. The SOAP plug-in tab appears in the Orchestrator configuration interface. 3 On the Startup Options tab, click Restart service to complete the plug-in installation. 10 VMware, Inc.

Using the SOAP Plug-In 2 The SOAP plug-in workflow library contains workflows that allow you to manage SOAP hosts and run custom SOAP operations. This chapter includes the following topics: Using the SOAP Plug-In Inventory, on page 11 Configuring the SOAP Plug-In, on page 11 Generate a New Workflow from a SOAP Operation, on page 13 Invoke a SOAP Operation, on page 14 Exporting and Importing SOAP Configuration, on page 14 Using the SOAP Plug-In Inventory The SOAP plug-in exposes all objects in the connected SOAP hosts in the Inventory view. You can use the Inventory view to add authorization elements or to run workflows on SOAP objects. You can enable the Use contextual menu in inventory option to display the workflows that are available for an inventory object. When the option is enabled and you right-click an object in the Orchestrator inventory, all available workflows for the object are displayed. Configuring the SOAP Plug-In You must use the Orchestrator client to configure the SOAP plug-in. Configuration Workflows The Configuration workflow category contains workflows that allow you to manage SOAP hosts. You can access these workflows from Library > SOAP > Configuration on the Workflows view in the Orchestrator client. Workflow Name Add a SOAP host Manage SSL certificates Reload plug-in configuration Remove a SOAP host Description Adds a SOAP host to the plug-in's inventory. Verifies a host URL, and if required, shows a user interaction message for the approval of SSL certificates. Refreshes the list of SOAP hosts in the plug-in's inventory. Removes a SOAP host from the plug-in's inventory. CAUTION When you remove a host from the inventory, all workflows generated from it will stop working. VMware, Inc. 11

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 Workflow Name Update a SOAP host Update a SOAP host with an endpoint URL Description Updates a SOAP host in the plug-in's inventory. Updates a SOAP host with a preferred endpoint address. The new endpoint address is used for sending and receiving SOAP messages, instead of the endpoint address defined within the WSDL. Add a SOAP Host You can run a workflow to add a SOAP host and configure the host connection parameters. Procedure 1 Log in to the Orchestrator client as an administrator. 2 Click the Workflows view in the Orchestrator client. 3 In the workflows hierarchical list, select Library > SOAP > Configuration and navigate to the Add a SOAP host workflow. 4 Right-click the Add a SOAP host workflow and select Start workflow. 5 In the Name text box, type the name of the host. 6 Select whether to provide the WSDL content as text. Option Yes No Action Copy the text in the WSDL content text box. Type the correct path in the WSDL URI text box. 7 In the Connection timeout text box, specify the number of seconds before a connection times out. 8 In the Request timeout text box, specify the number of seconds before a request times out. 9 Select the authentication type. Option None Basic Digest NTLM Description No authentication is required. Provides basic access authentication. Select the session mode. If you select Shared Session, provide credentials for the shared session. If you select Per User Session, the Orchestrator client retrieves credentials from the user who is logged in. Provides digest access authentication that uses encryption. Select the session mode. If you select Shared Session, provide credentials for the shared session. If you select Per User Session, the Orchestrator client retrieves credentials from the user who is logged in. Provides NT LAN Manager (NTLM) access authentication within the Window Security Support Provider (SSPI) framework. Select the session mode. If you select Shared Session, provide credentials for the shared session. If you select Per User Session, the Orchestrator client retrieves credentials from the user who is logged in. Provide the NTLM settings. 10 Click Submit to run the workflow. After the workflow runs successfully, the SOAP host appears in the Inventory view. 12 VMware, Inc.

Chapter 2 Using the SOAP Plug-In What to do next You can explore the SOAP host objects and run workflows on them from the Inventory view. Generate a New Workflow from a SOAP Operation You can create a custom workflow from a SOAP operation. You can integrate custom-generated workflows into high-level workflows. For more information about workflow development, see the vcenter Orchestrator Developer's Guide. Prerequisites Verify that you are logged in to the Orchestrator client as an administrator. Verify that you have a connection to a SOAP host from the Inventory view. Procedure 1 Click the Workflows view in the Orchestrator client. 2 In the workflows hierarchical list, select Library > SOAP to navigate to the Generate a new workflow from a SOAP operation workflow. 3 Right-click the Generate a new workflow from a SOAP operation workflow and select Start workflow. 4 Select the SOAP operation from the list of available operations. 5 In the Name text box, type the name of the workflow to generate. 6 Select the workflow folder in which to generate the new workflow. You can select any existing folder from the workflow library. 7 Click Submit to run the workflow. What to do next You can test the generated workflow. Test a Custom-Generated Workflow You can run a custom workflow generated from a SOAP operation to get the output parameters of the operation. Prerequisites Verify that you are logged in to the Orchestrator client as an administrator. Verify that you have a connection to a SOAP host from the Inventory view. Procedure 1 Click the Workflows view in the Orchestrator client. 2 Navigate to the workflow location. 3 Right-click the custom workflow and select Start workflow. 4 Provide the input parameters that the SOAP operation requires. 5 Click Submit to run the workflow. 6 (Optional) In the Logs tab, review the list of available output parameters. VMware, Inc. 13

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 Invoke a SOAP Operation You can call a SOAP operation directly, without generating a new workflow. Prerequisites Verify that you are logged in to the Orchestrator client as an administrator. Verify that you have a connection to a SOAP host from the Inventory view. Procedure 1 Click the Workflows view in the Orchestrator client. 2 In the workflows hierarchical list, select Library > SOAP and navigate to the Invoke a SOAP operation workflow. 3 Right-click the Invoke a SOAP operation workflow and select Start workflow. 4 Select the SOAP operation from the list of available operations. 5 Provide the input parameters that the SOAP operation requires. 6 Click Submit to run the workflow. 7 (Optional) In the Logs tab, review the list of available output parameters. Exporting and Importing SOAP Configuration You can transfer the configuration of the SOAP plug-in from one Orchestrator instance to another by creating a configuration package. You can export all plug-in elements, such as hosts and custom workflows, or export a selection of elements. You cannot update existing SOAP hosts by importing a configuration package. If you want to import a new version of a host, you must remove the existing host and all elements related to it. You can back up the existing host by exporting it as a package. NOTE You can transfer only the plug-in configuration. The SSL certificates of the hosts are not transferred. You can import the SSL certificates manually by starting an update workflow on the host. This starts the certificate import on the new Orchestrator instance. If a configuration package contains a SOAP host that has the same name as an existing host, but has different content, you should rename the existing host before importing the package. Export SOAP Configuration as a Package You can export elements of the SOAP plug-in configuration as an Orchestrator package. Prerequisites Verify that you are logged in to the Orchestrator client as an administrator. Procedure 1 Click the Packages view in the Orchestrator client. 2 From the Packages drop-down menu, select Add package. 3 Type the name of the package and click Ok. 4 Right-click the package that you added and select Edit. 14 VMware, Inc.

Chapter 2 Using the SOAP Plug-In 5 From the Resources tab, select Insert Resource Element (tree browsing). Option Add all available SOAP hosts Add a specific SOAP host Action In the hierarchical list, select Library > SOAP and click Select. Expand the hierarchical list to Library > SOAP, select a SOAP host, and click Select. 6 (Optional) From the Workflows tab, add custom SOAP plug-in workflows. 7 (Optional) From the General tab, provide a description of the package. 8 Click Save and close. 9 Right-click the edited package and select Export package. 10 Type the file name, select a location, and click Save. Import SOAP Configuration from a Package You can import elements of the SOAP plug-in configuration from an Orchestrator package. Prerequisites Verify that you are logged in to the Orchestrator client as an administrator. Verify that the SOAP plug-in is installed on the Orchestrator instance. Procedure 1 Click the Packages view in the Orchestrator client. 2 From the Packages drop-down menu, select Import package. 3 Browse to select the package to import and click Open. Certificate information about the exporter appears. 4 Review the package import details and select Import or Import and trust provider. The Import package view appears. If the version of the imported package element is later than the server version, the system selects the element for import. 5 Click Import checked elements. The imported package appears in the list of packages. 6 Click the Workflows view in the Orchestrator client. 7 In the workflows hierarchical list, select Library > SOAP > Configuration to navigate to the Reload plugin configuration workflow. 8 Right-click the Reload plug-in configuration workflow and select Start workflow to refresh the list of SOAP hosts. The imported SOAP hosts appear in the Inventory view. VMware, Inc. 15

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 16 VMware, Inc.

SOAP Plug-In Scripting API 3 The SOAP plug-in scripting API contains classes, with their respective attributes and methods, that allow interaction between vcenter Orchestrator and SOAP hosts. You can use the API to develop custom workflows that interact with SOAP hosts. This chapter includes the following topics: Access the SOAP Plug-In API, on page 17 SOAP Plug-In API Classes, on page 17 Access the SOAP Plug-In API Orchestrator provides an API Explorer to allow you to search the SOAP plug-in API and see the documentation for JavaScript objects that you can use in scripted elements. Procedure 1 Log in to the Orchestrator client as an administrator. 2 Access the API Explorer from either the Orchestrator client or from the Scripting tabs of the workflow, policy, and action editors. To access the API Explorer from the Orchestrator client, click Tools > API Explorer in the Orchestrator client toolbar. To access the API Explorer from the Scripting tabs of the workflow, policy, and action editors, click Search API on the left. 3 To expand the hierarchical list of SOAP plug-in API objects, double-click the SOAP module in the left pane. What to do next You can copy code from API elements and paste it into scripting boxes. For more information about API scripting, see the vcenter Orchestrator Developer's Guide. SOAP Plug-In API Classes The SOAP plug-in exposes JavaScript API classes related to SOAP object management. SOAPAuthentication Class The SOAPAuthentication class contains attributes and methods related to authentication information for a SOAP host. The SOAPAuthentication class defines the following attributes. VMware, Inc. 17

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 Attribute Returns Description rawauthproperties Array of String Authentication attributes type String Authentication type The SOAPAuthentication class defines the following method. Method Returns Description getrawauthproperty(number):string String Gets the specified authentication attribute. SOAPAuthenticationManager Class The SOAPAuthenticationManager class contains methods related to managing SOAP host authentication objects. The SOAPAuthenticationManager class defines the following methods. Method Returns Description createauthentication(string,string[]):authentication Authentication Creates an authentication instance. getsoapauthentications():string[] Array of String Returns all available auhentication types. getsessionmodes():string[] Array of String Returns the supported session modes. SOAPDynamicInParameter Class The SOAPDynamicInParameter class represents a dynamic input-parameter object to be used from scripting. SOAPDynamicOutParameter Class The SOAPDynamicOutParameter class represents a dynamic output-parameter object to be used from scripting. SOAPHost Class The SOAPHost class contains attributes and methods related to the representation of an external system as a Web service interface. The SOAPHost class defines the following attributes. Attribute Returns Description authentication SOAPAuthentication Authentication information connectiontimeout Number Connection timeout in seconds id String Identifier of the host name String Name of the host requesttimeout Number Request timeout in seconds wsdlfilecontent String WSDL file content wsdlfilelocal Boolean True if the WSDL content is provided locally, False if it is derived from URL wsdluri String URI to the WSDL file of the external service The SOAPHost class defines the following methods. 18 VMware, Inc.

Chapter 3 SOAP Plug-In Scripting API Method Returns Description createworkflow(string,string,workflowcategory):workflow Workflow Creates a new workflow for a SOAP operation. getoperation(string):soapoperation SOAPOperation Gets a SOAP operation by name. getoperations():string[] Array of String Gets all SOAP operation names. SOAPHostManager Class The SOAPHostManager class contains methods related to CRUD operations for SOAP hosts. The SOAPHostManager class defines the following methods. Method Returns Description addhost(soaphost):soaphost SOAPHost Adds a SOAP host to the plug-in's inventory. gethost(string):soaphost SOAPHost Returns the SOAP host with the specified name from the plug-in's inventory. gethosts():string[] Array of String Returns the list of SOAP host names from the plug-in's inventory. reloadconfiguration():object Object Reloads the plug-in configuration. removehost(string):soaphost SOAPHost Removes a SOAP host from the plug-in's inventory. updatehost(string,soaphost):soaphost SOAPHost Updates the specified SOAP host in the plug-in's inventory. SOAPHostValidator Class The SOAPHostValidator class contains attributes and methods related to URL validation. The SOAPHostValidator class defines the following attribute. Attribute Returns Description url String URL to validate The SOAPHostValidator class defines the following methods. Method Returns Description getcertificateinfo():properties Properties Retrieves the server's certificate information as a string. installcertificates():object Object Installs the server's certificate into the JSSE keystore. SOAPInterceptor Class The SOAPInterceptor class contains attributes and methods related to JavaScript handler functions that intercept SOAP requests and SOAP responses. The SOAPInterceptor class defines the following methods. Method Returns Description setrequestbodyinterceptor(interceptorhandler):object Object Sets a handler function to intercept the SOAP request body. setrequestheaderinterceptor(interceptorhandler):object Object Sets a handler function to intercept the SOAP request header. VMware, Inc. 19

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 Method Returns Description setresponsebodyinterceptor(interceptorhandler):object Object Sets a handler function to intercept the SOAP response body. setresponseheaderinterceptor(interceptorhandler):object Object Sets a handler function to intercept the SOAP response header. SOAPOperation Class The SOAPOperation class contains attributes and methods related to generating SOAP operation templates from WSDL definition. The SOAPOperation class defines the following attribute. Attribute Returns Description name String Name of the SOAP operation The SOAPOperation class defines the following methods. Method Returns Description createsoaprequest():soaprequest SOAPRequest Creates a new SOAP request for the SOAP operation. gethost():soaphost SOAPHost Gets the parent SOAP host of the SOAP operation. getinheaders():string[] getinparameters():string[] getoutparameters():string[] Array of String Array of String Array of String Gets a flat representation of the SOAP operation's input headers. Gets a flat representation of the SOAP operation's input parameters. Gets a flat representation of the SOAP operation's output parameters. invoke(soaprequest):soapresponse SOAPResponse Calls a SOAP operation. invokewithinterceptor(soaprequest,soapinterceptor):soapresponse SOAPResponse Calls a SOAP operation with message interceptor. SOAPRequest Class The SOAPRequest class contains methods related to passing a SOAP request when a SOAP operation is called. The SOAPRequest class defines the following methods. Method Returns Description addinheaderattribute(string,string,string):object Object Adds an attribute to the input header. addinprameterattribute(string,string,string):object Object Adds an attribute to the input parameter in the request. addrawheader(string):object Object Adds a raw XML header to the request. 20 VMware, Inc.

Chapter 3 SOAP Plug-In Scripting API Method Returns Description setinheader(string,object):object Object Sets an input header in the request. setinparameter(string,object):object Object Sets an input parameter in the request. SOAPResponse Class The SOAPResponse class contains methods related to receiving a SOAP response when a SOAP operation is called. The SOAPResponse class defines the following methods. Method Returns Description getoutheader(string):object Object Gets an output header value from the response. getoutheaderattribute(string,string):string String Gets the attribute value from the given output header and attribute name. getoutheaderattributes(string):string[] getoutheaders():string[] Array of String Array of String Gets the attribute names from the given output header. Gets the full names of all output headers. getoutparameter(string):object Object Gets an output parameter value from the response. getoutparameterattribute(string,string):string String Gets the attribute value from the given output parameter and attribute name. getoutparameterattributes(string):string[] getoutparameters():string[] Array of String Array of String Gets the attribute names from the given output parameter. Gets the full names of all output parameters. VMware, Inc. 21

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 22 VMware, Inc.

Index A adding a SOAP host 12 API access 17 API classes SOAPAuthentication class 17 SOAPAuthenticationManager class 18 SOAPDynamicInParameter class 18 SOAPDynamicOutParameter class 18 SOAPHost class 18 SOAPHostManager class 19 SOAPHostValidator class 19 SOAPInterceptor class 19 SOAPOperation class 20 SOAPRequest class 20 SOAPResponse class 21 audience 5 W workflow library 11 workflows configuration 11 Generate a new workflow from a SOAP operation 13 Invoke a SOAP operation 14 testing a custom generated workflow 13 C configuration exporting 14 importing 15 configuration transfer 14 configuration workflows 11 F functional prerequisites 9 I installation 9 installation process 10 introduction 9 Inventory 11 O Orchestrator 9 S scripting API 17 U updated information 7 usage 11 VMware, Inc. 23

Using the vcenter Orchestrator SOAP Plug-In 1.0.1 24 VMware, Inc.