2016-11-24 86 views
0

現在我正在開發一個關於softlayer api的項目,我不想通過調用softlayer api來創建一個子帳戶。然後,我將通過調用softlayer API將子帳戶與主要帳戶相關聯。並通過aoftlayer API銷燬子賬戶。Softlayer API:賬戶關聯?

所以有三個問題如下:

  1. 我如何通過創建API SOFTLAYER一個SOFTLAYER帳戶?
  2. 如何通過softlayer api將子賬戶與主要賬戶相關聯?
  3. 如何通過softlayer api銷燬子賬戶?

問候〜

回答

0

的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

+0

明白了。謝謝〜 –

相關問題