0

I am attempting to delete a user profile like this:

curl -X DELETE -k -n "https://api.softlayer.com/rest/v3/SoftLayer_User_Customer/406673.json"

{"error":"Function (\"deleteObject\") is not a valid method for this service.","code":"SoftLayer_Exception_Public"}

How do I remove/delete a user profile? Sure hope the search of the API reference is returned.

4

1 に答える 1

0

ユーザーを削除するには、次の REST 要求を試してください。

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_User_Customer/[user_id]/editObject

メソッド: POST Json ペイロード:

{
  "parameters": [
    {
      "userStatusId": 1021
    }
  ]
}

ユーザーのステータスは次のとおりです。

1001 = Active;
1002 = Disabled; 
1003 = Inactive; 
1021 = cancel_pending;
1022 = VPN Only

参照: http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer/editObject

于 2015-12-08T15:31:43.243 に答える