"SoftLayer_" prefix removed for readability.
Create a new brand.
createObject() allows the creation of a new brand. This will also create an account
to serve as the owner of the brand.
In order to create a brand, a template object must be sent in with several required values.
name
keyName
longName
account.firstName
account.lastName
account.address1
account.address2
account.city
account.state
account.postalCode
account.country
account.officePhone
account.alternatePhone
account.companyName
account.email
REST Example:
curl -X POST -d '{
"parameters":[{
"name": "Brand Corp",
"keyName": "BRAND_CORP",
"longName": "Brand Corporation",
"account": {
"firstName": "Gloria",
"lastName": "Brand",
"address1": "123 Drive",
"city": "Boston",
"state": "MA",
"postalCode": "02107",
"country": "US",
"companyName": "Brand Corp",
"officePhone": "857-111-1111",
"email": "noreply@example.com"
}
}]
}' https://api.softlayer.com/rest/v3.1/SoftLayer_Brand/createObject.json
Name | Type | Description |
---|---|---|
templateObject | SoftLayer_Brand | The SoftLayer_Brand object that you wish to create. |
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Brand]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Brand/createObject'