SoftLayer_Brand 服务是创建新帐户所需的服务。
为了成功创建一个新帐户,您需要一个 BAP 帐户,这是用于品牌使用的帐户,如果您没有,我建议您联系销售部门并索取一个。
您可以使用 REST 以这种方式创建品牌帐户:
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Brand/$brandId/createCustomerAccount.json
Method: POST
Body:
{
"parameters": [
{
"brandId": 2,
"companyName": "test-571-companyname",
"firstName": "test-571-firstname",
"lastName": "test-571-lastname",
"address1": "4444 Alpha Rd",
"postalCode": "75244-4608",
"city": "Dallas",
"state": "TX",
"country": "US",
"officePhone": "281.714.3333",
"email": "test-571-email@softlayer.com",
"lateFeeProtectionFlag": true,
"claimedTaxExemptTxFlag": false,
"allowedPptpVpnQuantity": 1,
"isReseller": 0,
"accountStatusId": 1001
}
]
}
您可以使用 REST 以这种方式创建子品牌:
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Brand/createObject.json
Method: POST
Body:
{
"parameters": [
{
"longName": "Company Long Name02",
"name": "Company Name02",
"keyName": "KEY_NAME_Marce",
"account": {
"address1": "4444 Alpha Rd",
"city": "Dallas",
"companyName": "companyname02",
"country": "US",
"email": "test-571-email@softlayer.com",
"firstName":"firstname",
"lastName": "lastname",
"officePhone": "281.714.3333",
"postalCode": "75244-4608",
"state": "TX"
}
}
]
}
注意:关于如何将子帐户与主要帐户关联,将完成创建子品牌,然后为该子品牌创建帐户。
此外,我建议您阅读以下链接以获取更多信息:
http://sldn.softlayer.com/reference/services/SoftLayer_Brand
http://sldn.softlayer.com/reference/services/SoftLayer_Account