Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WHM API 1 Access Hash

Discussion in 'cPanel Developers' started by tecwithquestion, Mar 9, 2017.

Tags:
  1. tecwithquestion

    tecwithquestion Well-Known Member

    Joined:
    Oct 20, 2014
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello

    I have two questions.

    1. how to fetch remote access key from remote server using whm api
    2. how to add server in dns cluster using whm api . I found api add_configclusterserver but that is not what I want. I want to add server in dns cluster with role write-only.

    any help much appreciated.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,531
    Likes Received:
    1,965
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    1. Here's the WHM API 1 function you are looking for:

    WHM API 1 Functions - get_remote_access_hash - Software Development Kit - cPanel Documentation

    However, I do want to note that as of cPanel version 64, we strongly recommend that you use the API token method to authenticate with a WHM server:

    Manage API Tokens - Version 64 Documentation - cPanel Documentation

    2. There's no corresponding WHM API 1 function, however upon the initial DNS cluster setup in WHM, you can find the DNS cluster configuration data stored in the following directory:

    /var/cpanel/cluster/root/config/

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice