的SoftLayer_Brand服務是創建新賬戶所需的一個。 爲了成功創建一個新賬戶,您需要一個BAP賬戶,這是賬戶品牌使用的賬戶,如果您沒有賬戶,我建議您聯繫銷售部門並索要一個賬戶。
https://$username:[email protected]/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": "[email protected]",
"firstName":"firstname",
"lastName": "lastname",
"officePhone": "281.714.3333",
"postalCode": "75244-4608",
"state": "TX"
}
}
]
}
注:
https://$username:[email protected]/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": "[email protected]",
"lateFeeProtectionFlag": true,
"claimedTaxExemptTxFlag": false,
"allowedPptpVpnQuantity": 1,
"isReseller": 0,
"accountStatusId": 1001
}
]
}
可以使用REST以這種方式創建一個子品牌:
可以使用REST以這種方式創建一個品牌客戶對於如何孩子帳戶關聯有一個主要的帳戶,它會完成創建一個兒童品牌,然後爲該子品牌創建帳戶。
此外,我建議你閱讀進一步的信息,下一個環節: http://sldn.softlayer.com/reference/services/SoftLayer_Brand http://sldn.softlayer.com/reference/services/SoftLayer_Account
明白了。謝謝〜 –