Description

This function enables an external authentication identity provider for a specified service.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/enable_authentication_provider?api.version=1&provider_id=cpanelid&service_name=cpaneld
https://hostname.example.com:2087/cpsess##########/xml-api/enable_authentication_provider?api.version=1&provider_key=cpanelid&service_name=cpaneld
whmapi1 enable_authentication_provider provider_id=cpanelid service_name=cpaneld

{
 "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "enable_authentication_provider"
  }
}
<result>
    <data/>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>enable_authentication_provider</command>
    </metadata>
</result>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
service_namestring

Required

The cPanel & WHM service's name.

A valid service name.

    • cpaneld
    • whostmgrd
    • webmaild
cpaneld
provider_idstring

Required

The identity provider's key.

A valid identity provider's key.

cpanelid


Returns

This function only returns metadata.