JSON object types
This topic describes objects that are commonly used in JSON documents included in the body of HTTP request messages.
JSON document objects
The objects listed in the following table commonly appear in JSON documents. Each API lists the specific objects from this table that it can accept.
Common objects
OperationParameter type
The OperationParameter type is a wrapper for an input parameter passed to an operation via an operationParams array. You must wrap each operationParams array element in an OperationParameter object.
OperationParameter
The following example shows a JSON document that contains an array of operationParams. Each array element is an input parameter wrapped in an OperationParameter object. The names of the operationParams in this example are NetworkContainer, Pod, and ContainerBlueprint.
{
"operationParams" : [
{
"multiplicity" : "1",
"name" : "NetworkContainer",
"type" : "com.bmc.cloud.model.beans.NetworkContainer",
"value" : {
"cloudClass" : "com.bmc.cloud.model.beans.NetworkContainer",
"description" : "My network container",
"name" : "San Jose container"
}
},
{
"multiplicity" : "1",
"name" : "Pod",
"type" : "com.bmc.cloud.model.beans.Pod",
"value" : {
"cloudClass" : "com.bmc.cloud.model.beans.Pod",
"guid" : "50b4fec0-6c74-11e0-ae3e-0800200c9a66"
}
},
{
"multiplicity" : "1",
"name" : "ContainerBlueprint",
"type" : "com.bmc.cloud.model.beans.ContainerBlueprint",
"value" : {
"cloudClass" : "com.bmc.cloud.model.beans.ContainerBlueprint",
"guid" : "68883d00-6c74-11e0-ae3e-0800200c9a66"
}
}
]
}
Related topics
JSON
Elements-of-JSON-documents
Common-patterns-in-JSON-documents