API返回对getReverseDomainRecords的权限

API返回对getReverseDomainRecords的权限

本文介绍了softlayer API返回对getReverseDomainRecords的权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时正在呼叫子网的getReverseDomainRecords,但回避拒绝getReverseDomainRecords的权限.",该用户调用api需要哪些权限?

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:拒绝getReverseDomainRecords的权限.)

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

推荐答案

您需要向用户管理DNS,反向DNS和WHOIS" 添加以下权限

从门户网站,请转到: Users>选择用户>门户权限>服务.

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

要通过API向用户添加权限,请查看:无法向SoftLayer用户ID添加权限

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

在我们的情况下,以下请求可帮助我们添加管理DNS,反向DNS和WHOIS"权限

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"
      }
    ]
  ]
}

致谢.

这篇关于softlayer API返回对getReverseDomainRecords的权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:39