Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

ServiceOfferingInstance bulkCreate request


Description

This API creates multiple service offering instances.

API stability classification

Committed

API overview

HTTP request message

Query string parameters

This API does not use query string parameters.

Request message headers

This API uses only common headers listed in HTTP-request-and-response-headers.

Request message body

This API uses the following objects in the request message body JSON.

Top-level objects

Input parameters to include in operationParams

HTTP response message

Response message headers

This API uses only common headers listed in HTTP-request-and-response-headers.

Response message body

The response message body contains a Task object.

Example

The following example shows an HTTP request that creates multiple service offering instances:

POST /csm/serviceofferinginstance/bulkCreate
Host: apiServer.calbro.com:8080
Authentication-Token: AQIC5wM2LY4Sfcx705TK5UqUK6Ythuk1tVWjHMl7/rpY0Ys=@REGUSER123091

{
  "operationParams":[
    {
      "name":"serviceOfferingID",
      "value":{
        "cloudClass":"com.bmc.cloud.model.beans.ServiceOffering",
        "guid":"4b74059b-926f-44bd-bf17-0cbf191d0868",
        "reconciliationID":"OI-f03755df0841461e85b630ed65488362"
      },
      "type":"com.bmc.cloud.model.beans.ServiceOffering",
      "multiplicity":"1"
    },
    {
      "name" : "hostnamePrefix",
      "value" : "api",
      "type" : "java.lang.String",
      "multiplicity" : "0..1"
  },
{
      "name":"contractLineID",
      "value":[
        "REGAA5V0GA18EAM5WHK0CKMO6WKII7"
      ],
      "type":"java.lang.String",
      "multiplicity":"1..*"
    },
    {
      "name":"quantity",
      "value":1,
      "type":"java.lang.Integer",
      "multiplicity":"1"
    },
    {
      "name":"selectedOptionID",
      "value":[
        "730C1CA0-E56A-3054-C0BD-DB46DD796B0C",
        "5F8FB35F-27D9-2827-7E81-E16BA5C41D60"
      ],
      "type":"java.lang.String",
      "multiplicity":"0..*"
    },
    {
      "name":"provisionDate",
      "value":1356950557000,
      "type":"java.util.Date",
      "multiplicity":"0..1"
    },
    {
      "name":"tenant",
      "value":"BMC_Provider",
      "type":"java.lang.String",
      "multiplicity":"0..1"
    },
    {
      "name":"serviceRequestID",
      "value":"REQ000000000764",
      "type":"java.lang.String",
      "multiplicity":"0..1"
    },
    {
      "name":"name",
      "value":"EC2_VPC_MT",
      "type":"java.lang.String",
      "multiplicity":"0..1"
    },
    {
      "name":"userParameters",
      "value":[
        {
          "cloudClass":"com.bmc.cloud.model.beans.NameValuePair",
          "guid":"b0382cd8-45c9-4ddd-b475-ddc5b47d47b4",
          "name":"BmcAssignVpcPublicIp",
          "value":"True"
        },
        {
          "cloudClass":"com.bmc.cloud.model.beans.NameValuePair",
          "guid":"2a5690ed-94fd-458e-931b-8d38f355951c",
          "name":"BmcSshInstanceKey",
          "value":"Demo"
        },
        {
          "cloudClass":"com.bmc.cloud.model.beans.NameValuePair",
          "guid":"15f8bb34-68a4-496b-9656-d4c0a30d362f",
          "name":"BmcSecurityGroups",
          "value":"sg-c78a92ab"
        }
      ],
      "type":"com.bmc.cloud.model.beans.NameValuePair",
      "multiplicity":"1..*"
    }
  ],
  "timeout":0,
  "preCallout":"/callout/078ec48f-c68f-4a26-a238-2af244b7e5aa",
  "postCallout":"",
  "callbackURL":"http://pcsm-sqa-r5v12:8090/arsys/plugins/CloudCallBackPlugin/params?server=pcsm-sqa-r5v1&username=csmcallback&pwd=csmcallback",
  "alreadyTraversedGlobalRegistry":false,
  "alreadyTraversedLocalRegistry":false
}

The following example shows an HTTP request that creates a service offering on behalf of another user:

/csm/serviceofferinginstance/bulkCreate
{
 "timeout": -1,
 "preCallout": "",
 "postCallout": "",
 "operationParams":[
 {
 "name":"serviceOfferingID",
 "value":{
 "cloudClass":"com.bmc.cloud.model.beans.ServiceOffering",
 "guid":"OI-a539c5bcebfe412e945e49772774046a",
 "reconciliationID":"9EAC88E0-15E0-C66B-9DB5-801C5F9BA64B"
 },
 "type":"com.bmc.cloud.model.beans.ServiceOffering",
 "multiplicity":"1"
 },
 {
 "name" : "hostnamePrefix",
 "value" : "NSonbehalfTest",
 "type" : "java.lang.String",
 "multiplicity" : "0..1"
 },
 {
 "name":"contractLineID",
 "value":["OI-ceed1f116247447996930abf6432e55a"],
 "type":"java.lang.String",
 "multiplicity":"1..*"
 },
 {
 "name":"quantity",
 "value":1,
 "type":"java.lang.Integer",
 "multiplicity":"1"
 },
 {
 "name":"provisionDate",
 "value":1356950557000,
 "type":"java.util.Date",
 "multiplicity":"0..1"
 },
 {
 "name":"tenant",
 "value":"CloudCore",
 "type":"java.lang.String",
 "multiplicity":"0..1"
 },
 {
 "name":"serviceRequestID",
 "value":"REQ000000000530",
 "type":"java.lang.String",
 "multiplicity":"0..1"
 },
 {
 "name":"name",
 "value":"NS_test_onbehalf",
 "type":"java.lang.String",
 "multiplicity":"0..1"
 }
]
,"onBehalfOfUser" : "clmadmin"
}

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*