The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    45
    Likes Received:
    0
    Trophy Points:
    6
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page