Passing input parameters with an API request
Some API requests take input parameters. You pass the input parameters via an array object named operationParams that you include in the HTTP request message body JSON document. Each array element is an OperationParameter object that specifies one input parameter.
OperationParameter object
The OperationParameter object is a wrapper for an input parameter passed to an operation via an operationParams array. The following table describes the components of an OperationParameter object.
OperationParameter object components
Example of a request with input parameters
The following example shows a service offering instance onboard request that has input parameters. The input parameters for this request are: virtualGuest, serviceOffering, networkContainerID, tenant, decommissionDate, owner, and hostedResource. The input parameters that are standard Java object types (networkContainerID, tenant, decommissionDate, and owner) contain only one object in the value component of the OperationParameter object. The input parameters that are BMC Cloud Lifecycle Management class objects (virtualGuest, serviceOffering, and hostedResource) contain one or more objects in the value component of the OperationParameter object.