softlayer API return Permission denied to getReverseDomainRecords

不想你离开。 提交于 2020-01-07 02:58:04

问题


I was Call getReverseDomainRecords of subnet but ruturn "Permission denied to getReverseDomainRecords. ", which permissions are need for this user for call api?

(com.softlayer.api.ApiException$Internal: Permission denied to getReverseDomainRecords.)


回答1:


You need to add the following permission to the user "Manage DNS, Reverse DNS and WHOIS".

From Portal, please go to: Users> select the user>Portal Permissions> services.

To add permissions to a user via API, please review: Failed to add permission to a SoftLayer user ID

In our case the following request helps us to add "Manage DNS, Reverse DNS and WHOIS" permission

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

Method: POST

Json payload:

{
  "parameters": [
    [
      {
        "keyName": "DNS_MANAGE"
      }
    ]
  ]
}

Regards.



来源:https://stackoverflow.com/questions/37372171/softlayer-api-return-permission-denied-to-getreversedomainrecords

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!