【问题标题】:Softlayer API: Account association? [closed]Softlayer API:帐户关联? [关闭]
【发布时间】:2016-11-24 08:05:07
【问题描述】:

现在我正在开发一个关于softlayer api的项目,我不想通过调用softlayer api来创建子帐户。然后我会通过调用softlayer api将子账户与主账户关联起来。并通过aoftlayer api销毁子账号。

所以下面是三个问题:

  1. 如何通过softlayer api创建一个softlayer账号?
  2. 如何通过softlayer api将子账号与主账号关联?
  3. 如何通过softlayer api销毁子账号?

问候~

【问题讨论】:

    标签: api account ibm-cloud-infrastructure associate


    【解决方案1】:

    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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-10-09
      • 1970-01-01
      • 2012-11-27
      • 1970-01-01
      • 2018-03-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多