components:
schemas:
AmazonS3BackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
aws_access_key_id:
description: The Amazon S3 Access Key ID.
example: s123456789
type: string
bucket:
description: The Amazon S3™ bucket.
example: ChockFullOfNuts
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
AppConfig:
properties:
acls:
description: The ACL(s) with permission to run the application.
items:
example: any
type: string
type: array
displayname:
description: 'The application''s WHM display label.
**Note:**
The function **only** returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).'
example: Roundcube
type: string
entryurl:
description: 'The application''s WHM entry URL.
**Note:**
The function **only** returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).'
example: roundcube/
format: url-path
type: string
features:
description: The required features to run the application.
items:
example: roundcube
type: string
type: array
group:
description: The application's group.
example: mailman
type: string
icon:
description: 'The application''s icon file, relative to the `/usr/local/cpanel/whostmgr/docroot/addon_plugins/`
directory.
**Note:**
The function **only** returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).'
example: roundcube.ico
type: string
name:
description: The application's name.
example: roundcube
type: string
origin:
description: 'The application''s configuration file.
**Note:**
The function **only** returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).'
example: clamavconnector.conf
type: string
phpConfig:
description: The application's `php.ini` file, relative to the `/usr/local/cpanel/3rdparty/etc/` directory.
example: php.ini
format: path
type: string
target:
description: 'The action''s target directory.
**Note:**
The function **only** returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).'
example: _self
format: path
type: string
upgradecall:
description: "The absolute file path to the application's upgrade script.\n\n**Note:**\n\n* The function **only**\
\ returns this value for plugins that you register with [AppConfig](https://go.cpanel.net/appconfig).\n* The system\
\ passes upgrade information in the following format: `/usr/local/youraddon/bin/upgrade 11.36.0.0 11.38.0.0`,\
\ where:\n * `11.36.0.0` is the **previous** cPanel & WHM version.\n * `11.38.0.0` is the **current** cPanel\
\ & WHM version."
example: /usr/local/roundcube/bin/upgrade
format: path
type: string
url:
description: The application's URL path.
example: /3rdparty/roundcube
format: url-path
type: string
user:
description: The application's username.
example: roundcube
type: string
type: object
BackblazeBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
application_key:
description: The application key's name.
example: A123b45CD678e9
type: string
application_key_id:
description: The application key ID that authenticates the Backblaze B2 account.
example: 12a345B678c9
type: string
bucket_id:
description: The bucket's ID.
example: a12b34cd5678e9f
type: string
bucket_name:
description: The bucket's name.
example: ChockFullOfNuts
type: string
path:
description: The path to the backups directory on the remote server.
example: backups
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
BackupDestinationGetResponse:
anyOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseAmazonS3'
- $ref: '#/components/schemas/BackupDestinationGetResponseBackblaze'
- $ref: '#/components/schemas/BackupDestinationGetResponseCustom'
- $ref: '#/components/schemas/BackupDestinationGetResponseFTP'
- $ref: '#/components/schemas/BackupDestinationGetResponseGoogleDrive'
- $ref: '#/components/schemas/BackupDestinationGetResponseLocal'
- $ref: '#/components/schemas/BackupDestinationGetResponseRsync'
- $ref: '#/components/schemas/BackupDestinationGetResponseS3Compatible'
- $ref: '#/components/schemas/BackupDestinationGetResponseSFTP'
- $ref: '#/components/schemas/BackupDestinationGetResponseWebDAV'
discriminator:
mapping:
AmazonS3: '#/components/schemas/BackupDestinationGetResponseAmazonS3'
Backblaze: '#/components/schemas/BackupDestinationGetResponseBackblaze'
Custom: '#/components/schemas/BackupDestinationGetResponseCustom'
FTP: '#/components/schemas/BackupDestinationGetResponseFTP'
GoogleDrive: '#/components/schemas/BackupDestinationGetResponseGoogleDrive'
Local: '#/components/schemas/BackupDestinationGetResponseLocal'
Rsync: '#/components/schemas/BackupDestinationGetResponseRsync'
S3Compatible: '#/components/schemas/BackupDestinationGetResponseS3Compatible'
SFTP: '#/components/schemas/BackupDestinationGetResponseSFTP'
WebDAV: '#/components/schemas/BackupDestinationGetResponseWebDAV'
propertyName: type
BackupDestinationGetResponseAmazonS3:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
aws_access_key_id:
description: The Amazon S3 Access Key ID.
example: s123456789
type: string
bucket:
description: The Amazon S3™ bucket.
example: ChockFullOfNuts
type: string
folder:
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
BackupDestinationGetResponseBackblaze:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
application_key:
description: The application key's name.
example: A123b45CD678e9
type: string
application_key_id:
description: The application key ID that authenticates the Backblaze B2 account.
example: 12a345B678c9
type: string
bucket_id:
description: The bucket's ID.
example: a12b34cd5678e9f
type: string
bucket_name:
description: The bucket's name.
example: ChockFullOfNuts
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
BackupDestinationGetResponseBase:
properties:
disable_reason:
description: 'An error message that explains why the backup is disabled.
**Note:**
You will only see this return when the transport is disabled.'
example: 'Could not list files in destination: example'
type: string
disabled:
description: 'Shows whether the backup destination is disabled.
* `1` — The destination is disabled.
* `0` — The destination is enabled.'
enum:
- 0
- 1
example: 0
type: integer
id:
description: The backup destination's ID
example: sNnLb1req9oJN9lUJFhA99kY
type: string
name:
description: The backup destination's name.
example: destination_name
type: string
type:
description: 'The type of backup destination. Select a backup destination from the following menu to view its return
values:'
enum:
- Custom
- FTP
- Local
- SFTP
- WebDAV
- AmazonS3
- Rsync
- GoogleDrive
- S3Compatible
- Backblaze
example: Local
type: string
type: object
BackupDestinationGetResponseCustom:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
script:
description: The absolute file path of the user-supplied transport solution script.
example: /home/backups/beammeupscotty.pl
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
BackupDestinationGetResponseFTP:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
passive:
description: 'Whether to use passive FTP.
* `1` - Use passive FTP.
* `0` - Use active FTP.'
example: 1
type: integer
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
BackupDestinationGetResponseGoogleDrive:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
client_id:
description: The Google Drive client ID.
example: aBcdeFgHIjK123
type: string
client_secret:
description: The Google Drive client secret.
example: aBcde123FgHIjK456
type: string
folder:
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
BackupDestinationGetResponseLocal:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
mount:
description: 'Whether the path is mounted.
* `1` - The path is mounted.
* `0` - The path is **not** mounted.'
enum:
- 1
- 0
example: 0
type: integer
no_mount_fail:
description: 'Whether to fail the backup attempt if the mount fails.
* `1` - Fail the backup attempt.
* `0` - Do **not** fail the backup attempt.'
enum:
- 1
- 0
example: 0
type: integer
path:
description: The absolute path to the backups directory.
example: /home/backups
format: path
type: string
type: object
BackupDestinationGetResponseRsync:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
description: The remote server's FTP port.
example: 22
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` return's value is `key`, the absolute path to the private key file.
example: /home/backups/key
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
BackupDestinationGetResponseS3Compatible:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
aws_access_key_id:
description: The S3-compatible provider key ID.
example: s123456789
type: string
bucket:
description: The S3-compatible bucket.
example: ChockFullOfNuts
type: string
folder:
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
type: string
host:
description: The S3-compatible provider's server.
example: www.s3example.com
format: domain
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
BackupDestinationGetResponseSFTP:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` return's value is `key`, the absolute path to the private key file.
example: /home/backups/key
format: path
type: string
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
BackupDestinationGetResponseWebDAV:
allOf:
- $ref: '#/components/schemas/BackupDestinationGetResponseBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
ssl:
description: 'Whether to use SSL.
* `1` - Use SSL.
* `0` - Do **not** use SSL.'
enum:
- 1
- 0
example: 1
type: integer
timeout:
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
BackupDestinationResponse:
properties:
disable_reason:
description: 'An error message that explains why the backup is disabled.
**Note:**
You will only see this return when the transport is disabled.'
example: 'Could not list files in destination: example'
type: string
disabled:
description: 'Shows whether the backup destination is disabled.
* `1` — The destination is disabled.
* `0` — The destination is enabled.'
enum:
- 0
- 1
example: 0
type: integer
id:
description: The ID of the backup destination to modify.
example: 0W1ei2rd3A4lI5sT6he7Be8st
type: string
name:
description: A new name for the backup destination.
example: destination_name
type: string
type:
description: The type of backup destination.
enum:
- Custom
- FTP
- Local
- SFTP
- WebDAV
- AmazonS3
- Rsync
- GoogleDrive
- S3Compatible
- Backblaze
example: Local
type: string
type: object
BackupDestinationResponseType:
anyOf:
- $ref: '#/components/schemas/AmazonS3BackupDestinationResponse'
- $ref: '#/components/schemas/BackblazeBackupDestinationResponse'
- $ref: '#/components/schemas/CustomBackupDestinationResponse'
- $ref: '#/components/schemas/FTPBackupDestinationResponse'
- $ref: '#/components/schemas/GoogleDriveBackupDestinationResponse'
- $ref: '#/components/schemas/LocalBackupDestinationResponse'
- $ref: '#/components/schemas/RsyncBackupDestinationResponse'
- $ref: '#/components/schemas/S3CompatibleBackupDestinationResponse'
- $ref: '#/components/schemas/SFTPBackupDestinationResponse'
- $ref: '#/components/schemas/WebDAVBackupDestinationResponse'
discriminator:
mapping:
AmazonS3: '#/components/schemas/AmazonS3BackupDestinationResponse'
Backblaze: '#/components/schemas/BackblazeBackupDestinationResponse'
Custom: '#/components/schemas/CustomBackupDestinationResponse'
FTP: '#/components/schemas/FTPBackupDestinationResponse'
GoogleDrive: '#/components/schemas/GoogleDriveBackupDestinationResponse'
Local: '#/components/schemas/LocalBackupDestinationResponse'
Rsync: '#/components/schemas/RsyncBackupDestinationResponse'
S3Compatible: '#/components/schemas/S3CompatibleBackupDestinationResponse'
SFTP: '#/components/schemas/SFTPBackupDestinationResponse'
WebDAV: '#/components/schemas/WebDAVBackupDestinationResponse'
propertyName: type
BackupDestinationSetParameterAmazonS3:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
aws_access_key_id:
description: The Amazon S3 Access Key ID.
example: s123456789
type: string
bucket:
description: The Amazon S3™ bucket.
example: ChockFullOfNuts
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
format: path
type: string
password:
description: The Amazon S3 Access Key's password.
example: 123456luggage
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
required:
- bucket
- aws_access_key_id
- timeout
- password
type: object
BackupDestinationSetParameterBackblaze:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
application_key:
description: The application key's name.
example: A123b45CD678e9
type: string
application_key_id:
description: The application key ID that authenticates the Backblaze B2 account.
example: 12a345B678c9
type: string
bucket_id:
description: The bucket's ID.
example: a12b34cd5678e9f
type: string
bucket_name:
description: The bucket's name.
example: ChockFullOfNuts
type: string
path:
description: The path to the backups directory on the remote server.
example: backups
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
required:
- application_key
- application_key_id
- bucket_id
- bucket_name
type: object
BackupDestinationSetParameterBase:
properties:
disable_reason:
description: An error message that explains why the backup is disabled.
example: 'Could not list files in destination: example'
type: string
disabled:
description: 'Whether to disable the backup destination.
* `1` — Disable the destination.
* `0` — Enable the destination.
**Note:**
If you do not set this parameter, the system retains the current setting.'
enum:
- 0
- 1
example: 0
type: integer
id:
description: The ID of the backup destination to modify.
example: 0W1ei2rd3A4lI5sT6he7Be8st
type: string
name:
description: 'A new name for the backup destination.
**Note:**
If you do not set this parameter, the system retains the current setting.'
example: destination_name
type: string
type:
description: 'The type of backup destination.
**Note:**
If you do not set this parameter, the system retains the current setting.
Select a backup destination from the following menu to view its optional parameters:'
enum:
- Custom
- FTP
- Local
- SFTP
- WebDAV
- AmazonS3
- Rsync
- GoogleDrive
- S3Compatible
- Backblaze
example: Local
type: string
upload_system_backup:
description: 'Whether to upload system backups.
* `1` — Upload.
* `0` — Do **not** upload.
**Note:**
If you do not set this parameter, the system retains the current setting.'
enum:
- 0
- 1
example: 1
type: integer
only_used_for_logs:
description: 'Whether to use this transport only for logs.
* `1` — This destination will be skipped for regular backups.
* `0` — Both log and regular backups will be uploaded.
This setting defaults to 0.
The only time log files get their own backup is via scripts/remote_log_transfer
**Note:**
If you do not set this parameter, the system retains the current setting.'
enum:
- 0
- 1
example: 1
type: integer
required:
- id
type: object
BackupDestinationSetParameterCustom:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
password:
description: The remote server account's password.
example: 123456luggage
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
script:
description: The absolute file path of the user-supplied transport solution script.
example: /home/backups/beammeupscotty.pl
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
required:
- script
- host
- path
- username
- password
type: object
BackupDestinationSetParameterFTP:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
passive:
default: 1
description: 'Whether to use passive FTP.
* `1` - Use passive FTP.
* `0` - Use active FTP.'
example: 1
type: integer
password:
description: The remote server account's password.
example: 123456luggage
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
required:
- host
- path
- username
- password
type: object
BackupDestinationSetParameterGoogleDrive:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
client_id:
description: The Google Drive client ID.
example: aBcdeFgHIjK123
type: string
client_secret:
description: The Google Drive client secret.
example: aBcde123FgHIjK456
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
required:
- client_id
- client_secret
type: object
BackupDestinationSetParameterLocal:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
mount:
default: 0
description: 'Whether the path is mounted.
* `1` - The path is mounted.
* `0` - The path is **not** mounted.'
enum:
- 1
- 0
example: 0
type: integer
no_mount_fail:
default: 0
description: 'Whether to fail the backup attempt if the mount fails.
* `1` - Fail the backup attempt.
* `0` - Do **not** fail the backup attempt.'
enum:
- 1
- 0
example: 0
type: integer
path:
description: The absolute path to the backups directory.
example: /home/backups
format: path
type: string
required:
- path
type: object
BackupDestinationSetParameterRsync:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
passphrase:
description: If the `authtype` parameter's value is `key`, the private key file's passphrase.
example: 123456luggage
type: string
password:
description: If the `authtype` parameter's value is `password`, the remote server account's password.
example: 123456luggage
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 22
description: The remote server's FTP port.
example: 22
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` parameter's value is `key`, the absolute path to the private key file.
example: /home/backups/key
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
required:
- host
- path
- username
- authtype
type: object
BackupDestinationSetParameterS3Compatible:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
aws_access_key_id:
description: The S3-compatible provider key ID.
example: s123456789
type: string
bucket:
description: The S3-compatible bucket.
example: ChockFullOfNuts
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
format: path
type: string
host:
description: The S3-compatible provider's server.
example: www.s3example.com
type: string
password:
description: The S3-compatible provider key's password or secret.
example: 123456luggage
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
required:
- host
- bucket
- aws_access_key_id
- timeout
- password
type: object
BackupDestinationSetParameterSFTP:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
passphrase:
description: If the `authtype` parameter's value is `key`, the private key file's passphrase.
example: 123456luggage
type: string
password:
description: If the `authtype` parameter's value is `password`, the remote server account's password.
example: 123456luggage
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` parameter's value is `key`, the absolute path to the private key file.
example: /home/backups/key
format: path
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
required:
- host
- path
- username
- authtype
type: object
BackupDestinationSetParameterType:
anyOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterAmazonS3'
- $ref: '#/components/schemas/BackupDestinationSetParameterBackblaze'
- $ref: '#/components/schemas/BackupDestinationSetParameterCustom'
- $ref: '#/components/schemas/BackupDestinationSetParameterFTP'
- $ref: '#/components/schemas/BackupDestinationSetParameterGoogleDrive'
- $ref: '#/components/schemas/BackupDestinationSetParameterLocal'
- $ref: '#/components/schemas/BackupDestinationSetParameterRsync'
- $ref: '#/components/schemas/BackupDestinationSetParameterS3Compatible'
- $ref: '#/components/schemas/BackupDestinationSetParameterSFTP'
- $ref: '#/components/schemas/BackupDestinationSetParameterWebDAV'
discriminator:
mapping:
AmazonS3: '#/components/schemas/BackupDestinationSetParameterAmazonS3'
Backblaze: '#/components/schemas/BackupDestinationSetParameterBackblaze'
Custom: '#/components/schemas/BackupDestinationSetParameterCustom'
FTP: '#/components/schemas/BackupDestinationSetParameterFTP'
GoogleDrive: '#/components/schemas/BackupDestinationSetParameterGoogleDrive'
Local: '#/components/schemas/BackupDestinationSetParameterLocal'
Rsync: '#/components/schemas/BackupDestinationSetParameterRsync'
S3Compatible: '#/components/schemas/BackupDestinationSetParameterS3Compatible'
SFTP: '#/components/schemas/BackupDestinationSetParameterSFTP'
WebDAV: '#/components/schemas/BackupDestinationSetParameterWebDAV'
propertyName: type
BackupDestinationSetParameterWebDAV:
allOf:
- $ref: '#/components/schemas/BackupDestinationSetParameterBase'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
password:
description: The remote server account's password.
example: 123456luggage
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
ssl:
default: 1
description: 'Whether to use SSL.
* `1` - Use SSL.
* `0` - Do **not** use SSL.'
enum:
- 1
- 0
example: 1
type: integer
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
required:
- host
- path
- username
- password
type: object
CustomBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
script:
description: The absolute file path of the user-supplied transport solution script.
example: /home/backups/beammeupscotty.pl
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
DnsAddZoneParameterBase:
properties:
class:
description: The record's class.
example: IN
oneOf:
- enum:
- IN
type: string
- description: A valid DNS record class.
type: string
domain:
description: The new zone record's domain.
example: example.com
format: domain
type: string
name:
description: 'The record''s name.
**Note:**
Do **not** omit any necessary trailing periods.
You **cannot** use this function to add temporary domains.'
example: hostname.example.com.
format: domain
type: string
ttl:
default: 86400
description: The record's Time To Live (TTL), in seconds.
example: 86400
minimum: 1
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types):
* `A` - A records store IPv4 addresses. Use them to map a hostname to an IPv4 address.
* `A6` - A6 records store IPv6 addresses.
* `AAAA` - AAAA records store IPv6 addresses.
* `AFSDB` - AFSDB records store the location of an AFS cell''s database servers.
* `ALIAS` - ALIAS records create an alias to another hostname, but can coexist with other records on that name.
We strongly discourage using this record type.
* `CAA` - CAA records control which certificate authorities can issue SSL certificates for a domain.
* `CNAME` - CNAME records create an alias to another hostname.
* `DNAME` - DNAME records create an alias for a hostname and its subnames.
* `DS` - DS records specify a record''s delegation signer.
* `HINFO` - HINFO records specify a host''s CPU and OS types.
* `LOC` - LOC records store a hostname''s geographical location.
* `MX` - MX records point a domain name to its MTAs.
* `NS` - NS records store a domain''s authoritative nameservers.
* `PTR` - PTR records point to a CNAME.
* `RP` - RP records store a domain''s Responsible Person''s information.
* `SOA` - SOA records designate the beginning of a zone of authority.
* `SRV` - SRV records store the service location records for newer protocols (for example, Autodiscover).
* `TXT` - TXT records store descriptive text or useful records (for example, SPF or DKIM records).
When you call this function, you **must** include the additional parameters for the desired
zone record type. Select a zone record from the menu to view the required additional
parameters:'
enum:
- A
- A6
- AAAA
- AFSDB
- ALIAS
- CAA
- CNAME
- DNAME
- DS
- HINFO
- LOC
- MX
- NS
- PTR
- RP
- SOA
- SRV
- TXT
example: A
type: string
required:
- domain
- type
- line
- name
- class
type: object
DnsAddZoneParameterType:
anyOf:
- $ref: '#/components/schemas/DnsAddZoneParameterTypeA'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeA6'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeAAAA'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeAFSDB'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeALIAS'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeCAA'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeCNAME'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeDNAME'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeDS'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeHINFO'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeLOC'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeMX'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeNS'
- $ref: '#/components/schemas/DnsAddZoneParameterTypePTR'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeRP'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeSOA'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeSRV'
- $ref: '#/components/schemas/DnsAddZoneParameterTypeTXT'
discriminator:
mapping:
A: '#/components/schemas/DnsAddZoneParameterTypeA'
A6: '#/components/schemas/DnsAddZoneParameterTypeA6'
AAAA: '#/components/schemas/DnsAddZoneParameterTypeAAAA'
AFSDB: '#/components/schemas/DnsAddZoneParameterTypeAFSDB'
ALIAS: '#/components/schemas/DnsAddZoneParameterTypeALIAS'
CAA: '#/components/schemas/DnsAddZoneParameterTypeCAA'
CNAME: '#/components/schemas/DnsAddZoneParameterTypeCNAME'
DNAME: '#/components/schemas/DnsAddZoneParameterTypeDNAME'
DS: '#/components/schemas/DnsAddZoneParameterTypeDS'
HINFO: '#/components/schemas/DnsAddZoneParameterTypeHINFO'
LOC: '#/components/schemas/DnsAddZoneParameterTypeLOC'
MX: '#/components/schemas/DnsAddZoneParameterTypeMX'
NS: '#/components/schemas/DnsAddZoneParameterTypeNS'
PTR (Reverse DNS): '#/components/schemas/DnsAddZoneParameterTypePTR'
RP: '#/components/schemas/DnsAddZoneParameterTypeRP'
SOA: '#/components/schemas/DnsAddZoneParameterTypeSOA'
SRV: '#/components/schemas/DnsAddZoneParameterTypeSRV'
TXT: '#/components/schemas/DnsAddZoneParameterTypeTXT'
propertyName: type
DnsAddZoneParameterTypeA:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
address:
description: 'The zone record''s IPv4 address.
**Note:**
For more information about A records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 192.168.0.20
format: ipv4
type: string
type: object
DnsAddZoneParameterTypeA6:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
prefix:
deprecated: true
description: 'The record''s prefix length.
**Important:**
A6 records are **deprecated**. We **strongly** recommend that you use AAAA records to
store IPv6 addresses.'
example: 48
minimum: 1
type: integer
refer:
deprecated: true
description: 'The record''s IPv6 address suffix.
**Note:**
You **must** uuencode the colons (`:`) in IPv6 addresses in your function calls.'
example: 0::0
type: string
type: object
DnsAddZoneParameterTypeAAAA:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
address:
description: 'The zone record''s IPv6 address.
**Note:**
* You **must** uuencode the colons (`:`) in IPv6 addresses in your function calls.
* For more information about AAAA records, read [RFC 3596 at IANA](http://tools.ietf.org/html/rfc3596).'
example: 2001:1:42:1::2a
format: ipv6
type: string
type: object
DnsAddZoneParameterTypeAFSDB:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
hostname:
description: The database servers' hostname.
example: hostname.example.com
format: domain
type: string
subtype:
description: 'The 16-bit integer of an AFS cell type.
For example, specify `1` to signify an AFS version 3.0 Volume Location Server.
**Note:**
For more information about AFSDB records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: 1
type: integer
type: object
DnsAddZoneParameterTypeALIAS:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
alias:
description: 'The hostname you want to point to.
**Note:**
We strongly recommend that you do not use this function.
Using the ALIAS DNS record may result in unexpected behavior, including website downtimes outside of your control,
inconsistency in the handling of the record, and security vulnerabilities.
This record is only available if you enable access to it and use PowerDNS.'
example: hostname.example.com
format: domain
type: string
type: object
DnsAddZoneParameterTypeCAA:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
flag:
description: 'Whether the Certificate Authority (CA) will issue an SSL certificate if the CAA resource record
contains unknown property tags.
* `0` - The CA will issue an SSL certificate.
* `1` - The CA will **not** issue an SSL certificate.
For more information about CAA record flags and property tags, read the [RFC 6844 documentation](https://tools.ietf.org/html/rfc6844#section-3).'
enum:
- 0
- 1
example: 0
type: integer
tag:
description: 'The CAA record''s property type.
* `issue` - Authorize a CA to issue a certificate for the domain.
* `issuewild` - Authorize a CA to issue a wildcard certificate for the domain.
* `iodef` - Specify a URL to which a CA may report policy violations.'
enum:
- issue
- issuewild
- iodef
example: issue
type: string
value:
description: 'The CA''s domain or URL. This is a valid [SSL provider](https://sslmate.com/labs/caa/),
`mailto` URL, or a standard URL.
**Note:**
If you use `iodef` as the `tag` parameter''s value, enter a URL that a CA can use to report issues as this parameter''s
value.'
example: exampleca.com
type: string
type: object
DnsAddZoneParameterTypeCNAME:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
cname:
description: 'The canonical name (CNAME) alias.
**Note:**
For more information about CNAME records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
flatten:
description: 'Whether to resolve the specified CNAME value with the record''s IP address.
If you do **not** also set the `flatten_to` parameter, the system will attempt to resolve the CNAME automatically.
* `1` - Flattened.
* `0` - Not flattened (the function will **fail**).
**Note:**
Only use this parameter when you alter the zone''s `root` record.'
enum:
- 0
- 1
example: 1
type: integer
flatten_to:
description: 'The IP address that the specified CNAME will resolve to.
**Note:**
You **must** use the `flatten` parameter with this parameter.'
oneOf:
- description: A valid IPv4 address.
example: 192.0.2.27
format: ipv4
type: string
- description: A valid IPv6 address.
example: 2001:0db8:85a3:0042:1000:8a2e:0370:7334
format: ipv6
type: string
type: object
DnsAddZoneParameterTypeDNAME:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
dname:
description: 'The delegation name (DNAME) alias.
**Note:**
For more information about DNAME records, read [RFC 2672 at IANA](http://tools.ietf.org/html/rfc2672).'
example: hostname.example.com
format: domain
type: string
type: object
DnsAddZoneParameterTypeDS:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
algorithm:
description: 'The record''s algorithm number.
* `1` - RSAMD5
* `2` - Diffie-Hellman
* `3` - DSA/SHA-1
* `4` - Elliptic Curve
* `5` - RSA/SHA-1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384
* `252` - Indirect
* `253` - Private DNS
* `254` - Private OID'
enum:
- 1
- 2
- 3
- 4
- 5
- 7
- 8
- 10
- 13
- 14
- 252
- 253
- 254
example: 5
type: integer
digtype:
description: 'The record''s digest type.
* `1` — SHA-1
* `2` — SHA-256
* `4` — SHA-384'
enum:
- 1
- 2
- 4
example: 1
type: integer
keyname:
description: 'The record''s KeyTag value.
**Note:**
For more information about DS records, read [RFC 4034 at IANA](http://tools.ietf.org/html/rfc4034).'
example: 2642
type: integer
type: object
DnsAddZoneParameterTypeHINFO:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
cpu:
description: 'The host''s CPU type.
**Note:**
For more information about HINFO records, read [RFC 1700 at IANA](http://tools.ietf.org/html/rfc1700.txt).'
example: INTEL-386
type: string
os:
description: The host's operating system.
example: UNIX
type: string
type: object
DnsAddZoneParameterTypeLOC:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
altitude:
description: 'The location''s altitude above sea level, in meters.
**Note:**
Make certain that you append `m` to the altitude value.'
example: 178m
type: string
horiz_pre:
description: The location's horizontal precision distance, in meters.
example: 10
minimum: 1
type: integer
latitude:
description: The location's latitude.
example: 41 51 54.305 N
type: string
longitude:
description: The location's longitude.
example: 87 36 47.95 W
type: string
size:
description: The diameter of a sphere that encloses the entire location, in meters.
example: 10
minimum: 1
type: integer
version:
description: 'The record''s version number.
**Note:**
* You **must** set this value to `0`.
* For more information about LOC records, read [RFC 1876 at IANA](http://tools.ietf.org/html/rfc1876).'
enum:
- 0
example: 0
type: integer
vert_pre:
description: The location's vertical precision distance, in meters.
example: 10
minimum: 1
type: integer
type: object
DnsAddZoneParameterTypeMX:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
exchange:
description: The server's location's canonical name (CNAME).
example: mail.example.com
format: domain
type: string
preference:
description: 'The record''s priority order.
**Note:**
* Lower values have a higher priority order.
* For more information about MX records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 10
type: integer
type: object
DnsAddZoneParameterTypeNS:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
nsdname:
description: 'The domain''s authoritative nameserver.
**Note:**
For more information about NS records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: ns1.example.com
format: domain
type: string
type: object
DnsAddZoneParameterTypePTR:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
ptrdname:
description: 'A pointer to a canonical name (CNAME).
**Note:**
* Do **not** omit any necessary trailing periods.
* For more information about NS records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
zone:
description: The new reverse DNS zone's name.
example: 0.168.192.in-addr.arpa
type: string
type: object
DnsAddZoneParameterTypeRP:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
mbox:
description: 'The Responsible Person''s (RP) email address.
**Note:**
* Replace the `@` symbol with a period (`.`).
* Do **not** omit any necessary trailing periods.
* For more information about RP records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: user.example.com.
type: string
txtdname:
description: 'The RP''s domain name.
**Note:**
Do **not** omit any necessary trailing periods.'
example: mx1.host.example.com.
format: domain
type: string
type: object
DnsAddZoneParameterTypeSOA:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
Lines:
description: The number of lines in the SOA section.
example: 4
minimum: 1
type: integer
expire:
description: The amount of time, in seconds, to wait before the secondary server attempts to complete a zone transfer.
example: 3600000
minimum: 1
type: integer
mname:
description: The domain's authoritative nameserver.
example: ns1.host.example.com
format: domain
type: string
refresh:
description: The amount of time, in seconds, to wait before the secondary DNS server queries the primary DNS server's
SOA records for changes.
example: 1440
minimum: 1
type: integer
retry:
description: The amount of time, in seconds, to wait before the secondary server retries a failed zone transfer.
example: 14400
minimum: 1
type: integer
rname:
description: 'The Responsible Person''s (RP) email address.
**Note:**
* Replace the `@` symbol with a period (`.`).
* Do **not** omit any necessary trailing periods.'
example: email.host.example.com
type: string
serial:
description: 'The zone file''s revision number.
**Note:**
For more information about SOA records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 2013122501
type: integer
type: object
DnsAddZoneParameterTypeSRV:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
port:
description: The target host's port.
example: 389
type: integer
priority:
description: 'The target host''s priority preference.
**Note:**
* Lower numbers have a higher priority order.
* For more information about SRV records, read [RFC 2782 at IANA](http://tools.ietf.org/html/rfc2782).'
example: 0
type: integer
target:
description: The service's target host.
example: service.example.com
format: domain
type: string
weight:
description: A relative weight. The system uses this value to rank entries with the same `priority` value.
example: 2
type: integer
type: object
DnsAddZoneParameterTypeTXT:
allOf:
- $ref: '#/components/schemas/DnsAddZoneParameterBase'
- properties:
txtdata:
description: 'The TXT record''s data.
**Note:**
* This value **must** include beginning and ending quotes (`""`).
* Do **not** URI-encode the quotes.
* For more information about TXT records, read [RFC 1464 at IANA](http://tools.ietf.org/html/rfc1464).'
example: '"v=spf1 a -all"'
type: string
type: object
DnsEditZoneParameterBase:
properties:
class:
description: 'The record''s class.
If you do not use this parameter, the system retains the current setting.'
example: IN
oneOf:
- enum:
- IN
type: string
- description: A valid DNS record class.
type: string
domain:
description: The zone record's domain.
example: example.com
format: domain
type: string
line:
description: The zone record's file line number.
example: 24
minimum: 1
type: integer
name:
description: 'The record''s name.
If you do not use this parameter, the system retains the current setting.
**Note:**
Do **not** omit any necessary trailing periods.
You **cannot** use this function to modify temporary domains.'
example: hostname.example.com.
format: domain
type: string
ttl:
description: The record's Time To Live (TTL), in seconds.
example: 86400
minimum: 1
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types):
* `A` - A records store IPv4 addresses. Use them to map a hostname to an IPv4 address.
* `A6` - A6 records store IPv6 addresses.
* `AAAA` - AAAA records store IPv6 addresses.
* `AFSDB` - AFSDB records store the location of an AFS cell''s database servers.
* `ALIAS` - ALIAS records create an alias to another hostname, but can coexist with other records on that name.
We strongly discourage using this record type.
* `CAA` - CAA records control which certificate authorities can issue SSL certificates for a domain.
* `CNAME` - CNAME records create an alias to another hostname.
* `DNAME` - DNAME records create an alias for a hostname and its subnames.
* `DS` - DS records specify a record''s delegation signer.
* `HINFO` - HINFO records specify a host''s CPU and OS types.
* `LOC` - LOC records store a hostname''s geographical location.
* `MX` - MX records point a domain name to its MTAs.
* `NS` - NS records store a domain''s authoritative nameservers.
* `PTR` - PTR records point to a CNAME.
* `RP` - RP records store a domain''s Responsible Person''s information.
* `SOA` - SOA records designate the beginning of a zone of authority.
* `SRV` - SRV records store the service location records for newer protocols (for example, Autodiscover).
* `TXT` - TXT records store descriptive text or useful records (for example, SPF or DKIM records).
If you do not use this parameter, the system retains the current setting.
**Warning:**
Additional properties may be required based on the `type`.
When you call this function, you **must** include the additional parameters for the desired
zone record type if you use this parameter. Select a zone record from the menu to view the required additional
parameters:'
enum:
- A
- AAAA
- AFSDB
- ALIAS
- CAA
- CNAME
- DNAME
- DS
- HINFO
- LOC
- MX
- NS
- PTR
- RP
- SOA
- SRV
- TXT
example: A
type: string
required:
- domain
- line
- ttl
type: object
DnsEditZoneParameterType:
anyOf:
- $ref: '#/components/schemas/DnsEditZoneParameterTypeA'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeA6'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeAAAA'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeAFSDB'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeALIAS'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeCAA'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeCNAME'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeDNAME'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeDS'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeHINFO'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeLOC'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeMX'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeNS'
- $ref: '#/components/schemas/DnsEditZoneParameterTypePTR'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeRP'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeSOA'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeSRV'
- $ref: '#/components/schemas/DnsEditZoneParameterTypeTXT'
discriminator:
mapping:
A: '#/components/schemas/DnsEditZoneParameterTypeA'
A6: '#/components/schemas/DnsEditZoneParameterTypeA6'
AAAA: '#/components/schemas/DnsEditZoneParameterTypeAAAA'
AFSDB: '#/components/schemas/DnsEditZoneParameterTypeAFSDB'
ALIAS: '#/components/schemas/DnsEditZoneParameterTypeALIAS'
CAA: '#/components/schemas/DnsEditZoneParameterTypeCAA'
CNAME: '#/components/schemas/DnsEditZoneParameterTypeCNAME'
DNAME: '#/components/schemas/DnsEditZoneParameterTypeDNAME'
DS: '#/components/schemas/DnsEditZoneParameterTypeDS'
HINFO: '#/components/schemas/DnsEditZoneParameterTypeHINFO'
LOC: '#/components/schemas/DnsEditZoneParameterTypeLOC'
MX: '#/components/schemas/DnsEditZoneParameterTypeMX'
NS: '#/components/schemas/DnsEditZoneParameterTypeNS'
PTR: '#/components/schemas/DnsEditZoneParameterTypePTR'
RP: '#/components/schemas/DnsEditZoneParameterTypeRP'
SOA: '#/components/schemas/DnsEditZoneParameterTypeSOA'
SRV: '#/components/schemas/DnsEditZoneParameterTypeSRV'
TXT: '#/components/schemas/DnsEditZoneParameterTypeTXT'
propertyName: type
DnsEditZoneParameterTypeA:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
address:
description: 'The zone record''s IPv4 address.
**Note:**
For more information about A records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 192.168.0.20
format: ipv4
type: string
required:
- address
type: object
DnsEditZoneParameterTypeA6:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- description: '
A6 records are **deprecated**. We **strongly** recommend that you use AAAA records to
store IPv6 addresses.'
properties:
prefix:
deprecated: true
description: The record's prefix length.
example: 48
minimum: 1
type: integer
refer:
deprecated: true
description: 'The record''s address suffix.
**Note:**
You **must** uuencode the colons (`:`) in IPv6 addresses in your function calls.'
example: 0::0
type: string
required:
- prefix
- refer
type: object
DnsEditZoneParameterTypeAAAA:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
address:
description: 'The zone record''s IPv6 address.
**Note:**
* You **must** uuencode the colons (`:`) in IPv6 addresses in your function calls.
* For more information about AAAA records, read [RFC 3596 at IANA](http://tools.ietf.org/html/rfc3596).'
example: 2001:1:42:1::2a
format: ipv6
type: string
required:
- address
type: object
DnsEditZoneParameterTypeAFSDB:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
hostname:
description: The database servers' hostname.
example: hostname.example.com
format: domain
type: string
subtype:
description: 'The 16-bit integer of an AFS cell type.
For example, specify `1` to signify an AFS version 3.0 Volume Location Server.
**Note:**
* You **must** uuencode the colons (`:`) in IPv6 addresses in your function calls.
* For more information about AFSDB records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: 1
type: integer
required:
- subtype
- hostname
type: object
DnsEditZoneParameterTypeALIAS:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
alias:
description: 'The hostname you want to point to.
**Note:**
We strongly recommend that you do not use this function.
Using the ALIAS DNS record may result in unexpected behavior, including website downtimes outside of your control,
inconsistency in the handling of the record, and security vulnerabilities.
This record is only available if you enable access to it and use PowerDNS.'
example: hostname.example.com
format: domain
type: string
required:
- alias
type: object
DnsEditZoneParameterTypeCAA:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
flag:
description: 'Whether the Certificate Authority (CA) will issue an SSL certificate if the CAA resource record
contains unknown property tags.
* `0` - The CA will issue an SSL certificate.
* `1` - The CA will **not** issue an SSL certificate.
For more information about CAA record flags and property tags, read the [RFC 6844 documentation](https://tools.ietf.org/html/rfc6844#section-3).'
enum:
- 0
- 1
example: 0
type: integer
tag:
description: 'The CAA record''s property type.
* `issue` - Authorize a CA to issue a certificate for the domain.
* `issuewild` - Authorize a CA to issue a wildcard certificate for the domain.
* `iodef` - Specify a URL to which a CA may report policy violations.'
enum:
- issue
- issuewild
- iodef
example: issue
type: string
value:
description: 'The CA''s domain or URL. This is a valid [SSL provider](https://sslmate.com/labs/caa/),
`mailto` URL, or a standard URL.
**Note:**
If you use `iodef` as the `tag` parameter''s value, enter a URL that a CA can use to report issues as this parameter''s
value.'
example: exampleca.com
type: string
required:
- flag
- tag
- value
type: object
DnsEditZoneParameterTypeCNAME:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
cname:
description: 'The canonical name (CNAME) alias.
**Note:**
For more information about CNAME records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
flatten:
description: 'Whether to resolve the specified CNAME value with the record''s IP address.
If you do **not** also set the `flatten_to` parameter, the system will attempt to resolve the CNAME automatically.
* `1` - Flattened.
* `0` - Not flattened (the function will **fail**).
**Note:**
Only use this parameter when you alter the zone''s `root` record.'
enum:
- 0
- 1
example: 1
type: integer
flatten_to:
description: 'The IP address that the specified CNAME will resolve to.
**Note:**
You **must** use the `flatten` parameter with this parameter.'
oneOf:
- description: A valid IPv4 address.
example: 192.0.2.27
format: ipv4
type: string
- description: A valid IPv6 address.
example: 2001:0db8:85a3:0042:1000:8a2e:0370:7334
format: ipv6
type: string
required:
- cname
type: object
DnsEditZoneParameterTypeDNAME:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
dname:
description: 'The delegation name (DNAME) alias.
**Note:**
For more information about DNAME records, read [RFC 2672 at IANA](http://tools.ietf.org/html/rfc2672).'
example: hostname.example.com
format: domain
type: string
required:
- dname
type: object
DnsEditZoneParameterTypeDS:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
algorithm:
description: 'The record''s algorithm number.
* `1` - RSAMD5
* `2` - Diffie-Hellman
* `3` - DSA/SHA-1
* `4` - Elliptic Curve
* `5` - RSA/SHA-1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384
* `252` - Indirect
* `253` - Private DNS
* `254` - Private OID'
enum:
- 1
- 2
- 3
- 4
- 5
- 7
- 8
- 10
- 13
- 14
- 252
- 253
- 254
example: 5
type: integer
digtype:
description: 'The record''s digest type.
* `1` — SHA-1
* `2` — SHA-256
* `4` — SHA-384'
enum:
- 1
- 2
- 4
example: 1
type: integer
keyname:
description: 'The record''s KeyTag value.
**Note:**
For more information about DS records, read [RFC 4034 at IANA](http://tools.ietf.org/html/rfc4034).'
example: 2642
type: integer
type: object
DnsEditZoneParameterTypeHINFO:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
cpu:
description: 'The host''s CPU type.
**Note:**
For more information about HINFO records, read [RFC 1700 at IANA](http://tools.ietf.org/html/rfc1700.txt).'
example: INTEL-386
type: string
os:
description: The host's operating system.
example: UNIX
type: string
type: object
DnsEditZoneParameterTypeLOC:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
altitude:
description: 'The location''s altitude above sea level, in meters.
**Note:**
Make certain that you append `m` to the altitude value.'
example: 178m
type: string
horiz_pre:
description: The location's horizontal precision distance, in meters.
example: 10
minimum: 1
type: integer
latitude:
description: The location's latitude.
example: 54.305 N
type: string
longitude:
description: The location's longitude.
example: 47.95 W
type: string
size:
description: The diameter of a sphere that encloses the entire location, in meters.
example: 10
minimum: 1
type: integer
version:
description: 'The record''s version number.
**Note:**
* You **must** set this value to `0`.
* For more information about LOC records, read [RFC 1876 at IANA](http://tools.ietf.org/html/rfc1876).'
enum:
- 0
example: 0
type: integer
vert_pre:
description: The location's vertical precision distance, in meters.
example: 10
minimum: 1
type: integer
type: object
DnsEditZoneParameterTypeMX:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
exchange:
description: The server's location's canonical name (CNAME).
example: mail.example.com
format: domain
type: string
preference:
description: 'The record''s priority order.
**Note:**
* Lower values have a higher priority order.
* For more information about MX records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 10
type: integer
type: object
DnsEditZoneParameterTypeNS:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
nsdname:
description: 'The domain''s authoritative nameserver.
**Note:**
For more information about NS records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: ns1.example.com
format: domain
type: string
type: object
DnsEditZoneParameterTypePTR:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
ptrdname:
description: 'A pointer to a canonical name (CNAME).
**Note:**
* Do **not** omit any necessary trailing periods.
* For more information about PTR records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
type: object
DnsEditZoneParameterTypeRP:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
mbox:
description: 'The Responsible Person''s (RP) email address.
**Note:**
* Replace the `@` symbol with a period (`.`).
* Do **not** omit any necessary trailing periods.
* For more information about RP records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: user.example.com.
type: string
txtdname:
description: 'The RP''s domain name.
**Note:**
Do **not** omit any necessary trailing periods.'
example: mx1.host.example.com.
format: domain
type: string
type: object
DnsEditZoneParameterTypeSOA:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
expire:
description: The amount of time, in seconds, to wait before the secondary server attempts to complete a zone transfer.
example: 3600000
minimum: 1
type: integer
lines:
description: The number of lines in the SOA section.
example: 4
minimum: 1
type: integer
mname:
description: The domain's authoritative nameserver.
example: ns1.host.example.com
format: domain
type: string
refresh:
description: The amount of time, in seconds, to wait before the secondary DNS server queries the primary DNS server's
SOA records for changes.
example: 1440
minimum: 1
type: integer
retry:
description: The amount of time, in seconds, to wait before the secondary server retries a failed zone transfer.
example: 14400
minimum: 1
type: integer
rname:
description: 'The Responsible Person''s (RP) email address.
**Note:**
* Replace the `@` symbol with a period (`.`).
* Do **not** omit any necessary trailing periods.'
example: email.host.example.com
type: string
serial:
description: 'The zone file''s revision number.
**Note:**
For more information about SOA records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 2013122501
type: integer
type: object
DnsEditZoneParameterTypeSRV:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
port:
description: The target host's port.
example: 389
type: integer
priority:
description: 'The target host''s priority preference.
**Note:**
* Lower numbers have a higher priority order.
* For more information about SRV records, read [RFC 2782 at IANA](http://tools.ietf.org/html/rfc2782).'
example: 0
type: integer
target:
description: The service's target host.
example: service.example.com
format: domain
type: string
weight:
description: A relative weight. The system uses this value to rank entries with the same `priority` value.
example: 2
type: integer
type: object
DnsEditZoneParameterTypeTXT:
allOf:
- $ref: '#/components/schemas/DnsEditZoneParameterBase'
- properties:
txtdata:
description: 'The TXT record''s data.
**Note:**
* This value **must** include beginning and ending quotes (`""`).
* Do **not** URI-encode the quotes.
* For more information about TXT records, read [RFC 1464 at IANA](http://tools.ietf.org/html/rfc1464).'
example: '"v=spf1 a -all"'
type: string
type: object
FTPBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
passive:
default: 1
description: 'Whether to use passive FTP.
* `1` - Use passive FTP.
* `0` - Use active FTP.'
example: 1
type: integer
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
GoogleDriveBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
client_id:
description: The Google Drive client ID.
example: aBcdeFgHIjK123
type: string
client_secret:
description: The Google Drive client secret.
example: aBcde123FgHIjK456
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
Group:
description: A group of features.
properties:
acl:
description: 'The group''s Access Control Lists (ACLs).
**Note:**
* Only WHM users who possess the specified ACLs can view or use the item.
* System administrators can configure users'' ACLs in WHM''s [*Edit Reseller Nameservers and Privileges*](https://go.cpanel.net/whmdocsEditResellerNameserversandPrivileges)
interface (*WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges*).
* For a complete list of available ACLs, read our [Guide to WHM Plugins - ACL Reference Chart](https://go.cpanel.net/ACLReferenceChart)
documentation.'
example: ACL=all
nullable: true
type: string
dnsonly_ok:
description: 'The group''s status for [cPanel DNSOnly](https://go.cpanel.net/cpanel-dnsonly)™ servers.
* `dns` - The group appears on cPanel DNSOnly servers.
* `` - The group does not appear on cPanel DNSOnly servers.'
enum:
- dns
example: dns
nullable: true
type: string
file:
description: 'The icon file to display for the group.
**Note:**
* Icons for any WHM plugins exist separately from the server''s theme. For more information, read our [Guide to
WHM Plugins - Plugin Files](https://go.cpanel.net/whmpluginfiles) documentation.
* A valid `.png` or `.svg` image file, relative to the theme''s icon directory.'
example: feature_name.png
type: string
group:
description: The group name.
example: group_name
type: string
groupdesc:
description: 'The group''s display name.
**Note:**
You can localize this string to display it in the user''s preferred language in the WHM interface. For more information,
read our [Guide to Locales](https://go.cpanel.net/guide-to-locales) documentation'
example: $LANG{'Group Name'}
type: string
grouporder:
description: 'The group''s display order in the WHM interface.
**Note:**
Lower values appear at the top of the interface'
example: 1
minimum: 1
type: integer
imgtype:
description: 'The group''s image type.
* `icon` - The only possible value.'
enum:
- icon
example: icon
type: string
items:
items:
$ref: '#/components/schemas/Image'
type: array
key:
description: 'A key to uniquely identify WHM interfaces and their associated assets for the [cPanel Analytics](https://go.cpanel.net/analytics)
program.
**Note:**
Generally, this value matches the `file` parameter''s value without the file''s extension.'
example: feature_name
type: string
searchtext:
description: A list of the group's search terms, space delimited.
example: search keywords
type: string
subtype:
description: 'The icon type to use.
* `img` - The only possible value.'
enum:
- img
example: img
type: string
target:
description: 'The area of the interface in which the feature appears.
A valid HTML `` target attribute.'
example: _blank
type: string
type:
description: The object's type.
example: group
type: string
required:
- type
- acl
- dnsonly_ok
- file
- group
- groupdesc
- grouporder
type: object
Image:
description: An individual WHM feature.
properties:
acl:
description: 'The feature''s Access Control Lists (ACLs).
**Note:**
* Only WHM users who possess the specified ACLs can view or use the item.
* System administrators can configure users'' ACLs in WHM''s [*Edit Reseller Nameservers and Privileges*](https://go.cpanel.net/whmdocsEditResellerNameserversandPrivileges)
interface (*WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges*).
* For a complete list of available ACLs, read our [Guide to WHM Plugins - ACL Reference Chart](https://go.cpanel.net/ACLReferenceChart)
documentation.'
example: ACL=all
nullable: true
type: string
description:
description: 'The feature''s description that displays when the feature appears on the WHM Home interface.
**Note:**
You can localize this string to display it in the user''s preferred language in the WHM interface. For more information,
read our [Guide to Locales](https://go.cpanel.net/guide-to-locales) documentation.'
example: View and manage reseller accounts on your server. Resellers manage other [asis,cPanel] accounts and can
access [asis,cPanel].
type: string
dnsonly_ok:
description: 'The group''s status for [cPanel DNSOnly](https://go.cpanel.net/cpanel-dnsonly)™ servers.
* `dns` - The group appears on cPanel DNSOnly servers.
* `` - The group does not appear on cPanel DNSOnly servers.'
enum:
- dns
example: dns
nullable: true
type: string
file:
description: 'The icon file to display for the group.
**Note:**
* Icons for any WHM plugins exist separately from the server''s theme. For more information, read our [Guide to
WHM Plugins - Plugin Files](https://go.cpanel.net/whmpluginfiles) documentation.
* A valid `.png` or `.svg` image file, relative to the theme''s icon directory.'
example: feature_name.png
type: string
group:
description: The group in which the item appears. This is a value of an existing group object.
example: group_name
type: string
imgtype:
description: 'The feature''s image type.
* `icon` - The only possible value.'
enum:
- icon
example: icon
type: string
itemdesc:
description: 'The feature''s display name.
**Note:**
* You can localize this string to display it in the user''s preferred language in the WHM interface. For more
information, read our [Guide to Locales](https://go.cpanel.net/guide-to-locales) documentation.
* This should be a [Template Toolkit](https://go.cpanel.net/tmpltoolkit) directive.'
example: $LANG{'Feature Name'}
type: string
itemorder:
description: 'The feature''s display order within its group.
**Note:**
Lower values appear earlier in the group.'
example: 1
minimum: 1
type: integer
key:
description: 'A key to uniquely identify WHM interfaces and their associated assets for the [cPanel Analytics](https://go.cpanel.net/analytics)
program.
**Note:**
Generally, this value matches the `file` parameter''s value without the file''s extension.'
example: feature_name
type: string
minimum_accounts_needed:
description: The minimum number of accounts required to display the feature icon.
example: 2
minimum: 1
type: integer
multiuser_required:
description: 'Whether the server allows for the creation of more than a single user.
* `1` — Display the feature icon.
* `0` — Do **not** display the feature icon.
**Note:**
You **cannot** use this parameter on servers with a [cPanel Solo License](https://go.cpanel.net/cpanel-solo-license).'
enum:
- 1
example: 1
type: integer
role:
$ref: '#/components/schemas/Role'
searchtext:
description: A list search terms for the feature, space delimited.
example: search keywords
type: string
service:
$ref: '#/components/schemas/Service'
subitems:
items:
$ref: '#/components/schemas/Subitem'
type: array
subtype:
description: 'The icon type to use.
* `img` - The only possible value.'
enum:
- img
example: img
type: string
target:
description: 'The area of the interface in which the feature appears.
A valid HTML `` target attribute.'
example: _blank
type: string
type:
description: 'The object''s type.
* `image` - The only possible value.'
enum:
- image
example: image
type: string
url:
description: The feature's interface location. This path is relative to the `/usr/local/cpanel/` directory.
example: /example_plugin/feature_name
format: url-path
type: string
required:
- type
- acl
- description
- dnsonly_ok
- file
- group
- itemorder
- url
type: object
Int0-999999NullOrUnlimited:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
Int0Max999999NullOrUnlimited:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 1
type: integer
Int999999OrUnlimited:
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
IntPosNullOrUnlimited:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- minimum: 0
type: integer
IntPosOrUnlimited:
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
LocalBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
mount:
default: 0
description: 'Whether the path is mounted.
* `1` - The path is mounted.
* `0` - The path is **not** mounted.'
enum:
- 1
- 0
example: 0
type: integer
no_mount_fail:
default: 0
description: 'Whether to fail the backup attempt if the mount fails.
* `1` - Fail the backup attempt.
* `0` - Do **not** fail the backup attempt.'
enum:
- 1
- 0
example: 0
type: integer
path:
description: The absolute path to the backups directory.
example: /home/backups
format: path
type: string
type: object
MarketItem:
description: A product available from one of the cPanel Market providers.
properties:
billing_type:
description: 'The type of billing used with the product.
* `none` - The product is free.
* `one-time` - Use of the product requires a one-time payment.
* `monthly` - Use of the product requires a monthly subscription payment.
* `yearly` - Use of the product requires a yearly subscription payment.'
enum:
- none
- one-time
- monthly
- yearly
type: string
description:
description: A description of the product.
example: An Extended Validation (EV) SSL certificate signed by cPanel.
type: string
display_name:
description: The product's display name.
example: EV Certificate by cPanel.
type: string
icon:
description: The icon to display in the product list.
format: base64 image
type: string
icon_mime_type:
description: The icon's image format.
example: image/svg+xml
format: MIME
type: string
max_users:
description: The maximum number of users the system will allow for the product.
nullable: true
type: integer
maximum_server_price:
description: The maximum price that the system will allow for the product.
example: '20'
format: currency
nullable: true
type: string
minimum_server_price:
description: The minimum price that the system will allow for the product.
example: '3'
format: currency
nullable: true
type: string
price:
description: 'The product''s price.
* `null` - The item does not possess a static price.'
example: '6'
format: currency
minimum: 1
nullable: true
type: string
price_unit:
description: The currency code of the product's price.
example: USD
format: ISO-4217
type: string
product:
description: The human-readable product name. Use this in displays to the user.
example: Comodo EV Certificate
type: string
product_category:
example: N/A
type: string
product_group:
description: The product's group.
example: ssl_certificate
type: string
product_id:
description: The product's ID.
example: '12345'
type: string
provider_display_name:
description: The cPanel Market provider's display name.
example: cPanel Store
type: string
provider_name:
description: The cPanel Market provider's name.
example: cPStore
type: string
requires_ip:
default: '0'
description: 'Whether product require an IP address.
* `1` - The product requires an IP address.
* `0` - The product does **NOT** require an IP address.'
enum:
- '1'
- '0'
example: '0'
type: string
type: object
MarketItemType:
anyOf:
- $ref: '#/components/schemas/MarketItem'
- $ref: '#/components/schemas/SSLCertificateMarketItem'
MarketProviderMetaData:
properties:
display_name:
description: Metadata information about the product's display name.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
enabled:
description: Metadata information about whether the product is enabled in the Market.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
icon:
description: Metadata information about the product's icon file.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
icon_mime_type:
description: Metadata information about the icon's mime type.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
minimum_server_price:
description: Metadata information about the minimum server price for the certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
price:
description: Metadata information about the product's price.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
price_unit:
description: Metadata information about the product's price per unit.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
product_description:
description: Metadata information about the product's description.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
product_group:
description: Metadata information about the product's group label.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
product_id:
description: Metadata information about the product's ID.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
recommended:
description: Metadata information about whether the product is recommended.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
type: object
Metadata:
properties:
command:
description: The method name called.
example: api_token_get_details
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field may display
a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` – Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
Payload:
description: The zone’s content.
items:
discriminator:
mapping:
comment: '#/components/schemas/ResponseComment'
control: '#/components/schemas/ResponseControl'
record: '#/components/schemas/ResponseRR'
propertyName: type
oneOf:
- $ref: '#/components/schemas/ResponseRR'
- $ref: '#/components/schemas/ResponseControl'
- $ref: '#/components/schemas/ResponseComment'
type: array
Raw:
description: Raw data for template directives.
properties:
itemdesc:
description: A valid [Template Toolkit](https://go.cpanel.net/tmpltoolkit) directive.
example: '[% PROCESS ''menu/plugins_list.tmpl'' target=''mainFrame'' -%]'
type: string
type:
description: 'The object''s type.
* `raw` - The only possible value. Raw data for template directives.'
enum:
- raw
example: raw
type: string
required:
- type
- itemdesc
type: object
ResponseBase:
properties:
line_index:
description: The line’s index in the zone file.
example: 22
minimum: 0
type: integer
type:
description: 'The type of object in the zone file:
* `record` - A resource record.
* `control` - A control statement.
* `comment` - A line comment.'
enum:
- record
- control
- comment
type: string
type: object
ResponseComment:
allOf:
- $ref: '#/components/schemas/ResponseControlOrComment'
title: Comment
ResponseControl:
allOf:
- $ref: '#/components/schemas/ResponseControlOrComment'
title: Control
ResponseControlOrComment:
allOf:
- $ref: '#/components/schemas/ResponseBase'
- properties:
text_b64:
description: The line’s text, encoded to base64.
example: OyBab25lIGZpbGUgZm9yIHRleGFzLmNvbQ==
format: base64
type: string
type: object
ResponseRR:
allOf:
- $ref: '#/components/schemas/ResponseBase'
- properties:
data_b64:
description: The resource record’s content, encoded to base64.
items:
example: dGV4YXMuY29tLg==
format: base64
type: string
type: array
dname_b64:
description: The resource record’s owner, encoded to base64. A base64-decoded owner that lacks a trailing period
(`.`) is a subdomain of the zone.
example: dGV4YXMuY29tLg==
format: base64
type: string
record_type:
description: The resource record’s type.
example: MX
type: string
ttl:
description: The resource record’s TTL (Time-to-Live).
example: 14400
minimum: 0
type: integer
type: object
title: Resource Record
Role:
anyOf:
- properties:
match:
description: 'Whether to require all roles in the roles parameter to match the server''s roles.
* `all` - Require the server to match all roles in the roles parameter to display the feature. (AND condition)
* `any` - Require the server to match any role in the roles parameter to display the feature. (OR condition)'
enum:
- any
example: any
type: string
roles:
description: The array of role names.
example:
- MailLocal
- MailSend
items:
type: string
type: array
type: object
- example: MailSend
type: string
description: 'The feature''s server role.
**Warning:**
The server creates this parameter automatically. Do **not** edit this parameter''s value. We do **not** support customizations
to this parameter.
**Note:**
* The icon only appears in the interface if the server configuration uses this role.
* For more information about roles and server configurations, read our [How to Use Server Profiles](https://go.cpanel.net/howtouseserverprofiles)
documentation.'
RsyncBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 22
description: The remote server's FTP port.
example: 22
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` return's value is `key`, the absolute path to the private key file.
example: /home/backups/key
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
S3CompatibleBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
aws_access_key_id:
description: The S3-compatible provider key ID.
example: s123456789
type: string
bucket:
description: The S3-compatible bucket.
example: ChockFullOfNuts
type: string
folder:
default: ''
description: The path to the backups directory, relative to the root directory, on the remote server.
example: subfolder
type: string
host:
description: The S3-compatible provider's server.
example: www.s3example.com
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
type: object
SFTPBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
authtype:
description: 'The authorization type.
* `password`
* `key`'
enum:
- password
- key
example: password
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
privatekey:
description: If the `authtype` return's value is `key`, the absolute path to the private key file.
example: /home/backups/key
type: string
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
SSLCertificateMarketItem:
allOf:
- $ref: '#/components/schemas/MarketItem'
- properties:
x_certificate_term:
description: An array indicating the length and unit of time that the product secures for.
example:
- '1'
- year
items:
type: string
type: array
x_identity_verification:
description: "An array of objects that define a schema for identity\n verification information for Organizational\
\ Validation (OV)\n and Extended Validation (EV) certificates.\nOV and EV certificates require identifying\
\ information."
items:
properties:
description:
description: A sentence that provides more information about the SSL provider.
example: This is a company name
type: string
is_optional:
description: 'Whether the value is optional.
* `1` - Optional.
* Any object that does **not** contain a `1` value indicates that the SSL certificate provider requires
identity verification.'
enum:
- 1
example: 1
type: integer
label:
description: A phrase that serves as a label for the value.
example: Company Name
type: string
name:
description: The name by which to submit this value.
example: duns_number
type: string
options:
description: 'An array of two member arrays.
**Note:**
This return **only** appears if the type return contains the `choose_one` value.'
example:
- - b
- Incorporated Business
- - d
- Government Entity
type: array
pattern:
description: 'A regular expression pattern that clients should use to verify the relevant value prior to
order submission.
**Note:**
This return only appears if the `type` return contains the `text` value.'
example: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
format: regex
type: string
type:
description: 'A description of the value.
* `text` - A general text statement.
* `email` - An email address.
* `tel` - A telephone number.
* `country_code` - A country code ID.
* `choose_one` - The user must select one of the provided options.
* A date, in `yyyy-MM-dd` format.'
oneOf:
- enum:
- test
- email
- tel
- country_code
- choose_one
example: choose_one
type: string
- example: '2020-08-15T00:00:00.000Z'
format: ISO-8601 Date
type: string
type: string
type: object
type: array
x_max_http_redirects:
description: "The maximum number of HTTP redirections that the\n provider allows during a Domain Control Validation\
\ (DCV)\n check of the domain or domains in the certificate."
example: 1
minimum: 0
type: integer
x_payment_trigger:
description: 'Whether the provider charges immediately or when they issue the SSL certificate.
* `checkout` - Collect payment and finalize immediately after checkout. Any failures to issue the certificate
**must** prompt a separate refund.
* `issuance` - Collect payment when the provider issues the certificate to the user.'
enum:
- checkout
- issuance
example: issuance
type: string
x_price_per_domain:
description: The product's price per domain.
example: '3'
format: currency
type: string
x_price_per_domain_maximum:
description: The maximum price per domain.
example: '30.00'
format: currency
type: string
x_price_per_domain_minimum:
description: The minimum price per domain.
example: '3.00'
format: currency
type: string
x_price_per_wildcard_domain:
description: The price per domain for a wildcard certificate.
example: '99.00'
format: currency
type: string
x_price_per_wildcard_domain_maximum:
description: The maximum price per wildcard domain.
example: '990.00'
format: currency
type: string
x_price_per_wildcard_domain_minimum:
description: The minimum price per wildcard domain.
example: '99.00'
format: currency
type: string
x_ssl_per_domain_pricing:
description: 'Whether the provider uses per-domain pricing for this certificate.
* `1` - The provider uses per-domain pricing.
* `0` - The provider does *not* use per-domain pricing.'
enum:
- 1
- 0
example: 1
type: integer
x_supports_dns_dcv:
description: 'Whether this product supports DNS-based DCV.
* `1` - This product supports DNS-based DCV.
* `0` - This product does *not* support DNS-based DVC.'
enum:
- 1
- 0
example: 1
type: integer
x_validation_type:
description: 'The type of validation that the product creates.
* `dv` - Domain Validation
* `ev` - Extended Validation
* `ov` - Organization Validation'
enum:
- dv
- ev
- ov
example: dv
x_warn_after:
description: "A length of time, in seconds, after which the cPanel interface\n warns the user that a problem\
\ may exist with the order.\nThe warning will suggest that they should contact\n the cPanel Market provider's\
\ support contact."
example: 14400
minimum: 1
type: integer
x_wildcard_parent_domain_free:
description: 'Whether the provider includes the price of the parent domain in the price of a wildcard certificate.
For example, a wildcard certificate for `*.example.com` possesses the `example.com` parent domain.
* `1` - Yes, the parent domain is included.
* `0` - No, the parent domain costs extra.'
enum:
- 1
- 0
example: 1
type: integer
type: object
description: An SSL certificate product available from one of the cPanel Market providers.
SSLMarketProviderMetaData:
allOf:
- $ref: '#/components/schemas/MarketProviderMetaData'
- properties:
x_identity_verification:
description: Defines a schema for identity verification information for OV and EV certificates.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_max_http_redirects:
description: Information about the maximum number of HTTP redirections that the provider allows during a Domain
Control Validation (DCV) check of the domain or domains in the certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_domain:
description: Metadata information about the product's price per domain.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_domain_maximum:
description: Information about the maximum allowable price per domain for the certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_domain_minimum:
description: Information about the minimum allowable price per domain for the certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_wildcard_domain:
description: Information about the price per wildcard certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_wildcard_domain_maximum:
description: Information about the maximum allowable price per wildcard certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_price_per_wildcard_domain_minimum:
description: Information about the minimum allowable price per wildcard certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_ssl_per_domain_pricing:
description: Metadata information about the product's pricing per domain.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_supports_dns_dcv:
description: Information about whether the product supports DNS-based DCV.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_warn_after:
description: Information about a length of time after which the cPanel interface will warn the user that there
may be a problem with the order.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
x_wildcard_parent_domain_free:
description: Information about whether the provider includes the price of the parent domain in the price of a
wildcard certificate.
properties:
read_only:
description: 'Whether the attribute is read-only.
* `1` — The attribute is read-only.
* `0` — System administrators can edit the attribute.'
enum:
- 0
- 1
example: 1
type: object
type: object
Service:
description: 'The [cPanel Service Daemon](https://go.cpanel.net/ThecPanelWHMServiceDaemons) that monitors the feature.
**Warning:**
The server creates this parameter automatically. Do **not** edit this parameter''s value. We do not support customizations
to this parameter.
**Note:**
* This icon only appears on servers with the service enabled.
* For a complete list of service daemons, read our [cPanel Service Daemons](https://go.cpanel.net/ThecPanelWHMServiceDaemons)
documentation.'
example: mysql
oneOf:
- properties:
match:
description: 'Whether to require all services in the services parameter to match enabled services on the server.
* `all` - Require the server to match **all** services under the `services` key to display the feature. (AND
condition)
* `any` - Require the server to match any service under the `services` key to display the feature. (OR condition)'
enum:
- any
example: any
type: string
services:
description: An array of services.
example:
- mysql
- ftp
items:
type: string
type: array
type: object
- example: mysql
type: string
Subitem:
description: A subsection of an individual WHM feature.
properties:
acl:
description: 'The subitem''s Access Control Lists (ACLs).
**Note:**
* Only WHM users who possess the specified ACLs can view or use the item.
* System administrators can configure users'' ACLs in WHM''s [*Edit Reseller Nameservers and Privileges*](https://go.cpanel.net/whmdocsEditResellerNameserversandPrivileges)
interface (*WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges*).
* For a complete list of available ACLs, read our [Guide to WHM Plugins - ACL Reference Chart](https://go.cpanel.net/ACLReferenceChart)
documentation.'
example: ACL=all
nullable: true
type: string
breadcrumb:
description: 'A subitem''s parent feature''s location.
* The system uses this value to generate breadcrumbs at the top of each WHM interface.
* The subitem''s parent feature''s `url` value.'
example: /example_plugin/feature_name
format: url-path
type: string
dnsonly_ok:
description: 'The subitem''s status for [cPanel DNSOnly](https://go.cpanel.net/cpanel-dnsonly)™ servers.
* `dns` - The subitem appears on cPanel DNSOnly servers.
* `` - The subitem does not appear on cPanel DNSOnly servers.'
enum:
- dns
example: dns
nullable: true
type: string
file:
description: 'The icon file to display for the subitem.
**Note:**
* Icons for any WHM plugins exist separately from the server''s theme. For more information, read our [Guide to
WHM Plugins - Plugin Files](https://go.cpanel.net/whmpluginfiles) documentation.
* A valid `.png` or `.svg` image file, relative to the theme''s icon directory.'
example: feature_name.png
type: string
group:
description: The group in which the subitem appears. This is a value of an existing group object.
example: group_name
type: string
itemdesc:
description: 'The subitem''s display name.
**Note:**
* You can localize this string to display it in the user''s preferred language in the WHM interface. For more
information, read our [Guide to Locales](https://go.cpanel.net/guide-to-locales) documentation.'
example: $LANG{'Feature Name'}
type: string
key:
description: 'A key to uniquely identify WHM interfaces and their associated assets for the [cPanel Analytics](https://go.cpanel.net/analytics)
program.
**Note:**
Generally, this value matches the `file` parameter''s value without the file''s extension.'
example: feature_name
type: string
parent:
description: The subitem's parent feature's display order in the WHM interface. This is the parent feature's `itemorder`
value.
example: 1
minimum: 1
type: integer
searchtext:
description: A list search terms for the subitem, space delimited.
example: search keywords
type: string
target:
description: 'The area of the interface in which the subitem displays.
A valid HTML `` target attribute.'
example: _blank
type: string
type:
description: 'The object''s type.
* `subitem` - The only possible value.'
enum:
- subitem
example: subitem
type: string
url:
description: The subitem's interface location. This path is relative to the `/usr/local/cpanel/` directory.
example: /example_plugin/feature_name
format: url-path
type: string
required:
- type
- acl
- breadcrumb
- dnsonly_ok
- file
- group
- parent
- url
type: object
TokenDetails:
properties:
acls:
description: A list of privileges assigned to the token.
example:
- create-acct
- kill-acct
- list-accts
items:
type: string
type: array
create_time:
description: The API token's creation time.
example: 1483625276
format: unix_timestamp
type: integer
expires_at:
description: 'The API token''s expiration time.
**Note:**
A `null` value means that the API token does **not** expire.'
example: 1609372800
format: unix_timestamp
nullable: true
type: integer
name:
description: The API token's name.
example: example
type: string
whitelist_ips:
description: List of remote IP or CIDR IP ranges this token may be used from.
example:
- 192.0.2.1
- 192.0.2.2
- 192.0.2.8/29
- fc00:abcd:0000:0000:0000:0000:0000:000f
- 2620:0000:28a4:0000:0000:0000:0000:0000/48
items:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
nullable: true
type: array
type: object
Transfers_EnqueueTransferItem_Base:
properties:
module:
description: 'The transfer system module.
* `LegacyAccountBackup` — This module restores legacy-account backup files.
* `FeatureListRemoteRoot` — This module transfers the feature list from the remote server.
* `PackageRemoteRoot` — This module transfers the package settings.
* `AccountLocal` — This module restores backup files.
* `AccountRemoteRoot` — This module uses the `root` credentials to transfer account settings that are not a part
of a package.
* `AccountRemoteUser` — This module uses the account''s user credentials to transfer account settings that are
not a part of a package.
**Note:**
* The `module` parameter determines which additional parameters to use with the function.
* You **must** perform each module action as a separate step.
When you call this function, you **must** include the additional parameters for the desired transfer system module.
Select a module from the menu to view its required additional parameters:'
example: AccountRemoteRoot
type: string
size:
default: 1
description: 'The size of the content to transfer, in bytes.
The restore system uses this value to determine the best filesystem
partition for the restored account’s home directory. For best
results, give as accurate of a value as possible.'
example: 133698
minimum: 1
type: integer
transfer_session_id:
description: The transfer session's ID.
example: vm5docscpanelcopya20140211211719FxjU
type: string
required:
- transfer_session_id
- module
type: object
Transfers_EnqueueTransferItem_Type:
anyOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_FeatureListRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_LegacyAccountBackup'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_PackageRemoteRoot'
discriminator:
mapping:
AccountLocal: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot'
AccountRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountRemoteRoot'
AccountRemoteUser: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
FeatureListRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_FeatureListRemoteRoot'
LegacyAccountBackup: '#/components/schemas/Transfers_EnqueueTransferItem_Type_LegacyAccountBackup'
PackageRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_PackageRemoteRoot'
propertyName: module
Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
- properties:
force:
description: 'Whether to overwrite an account with an identical username.
* `1` — Overwrite the account.
* `0` — Do **not** overwrite the account.
This parameter performs the following actions:
* Restores the cPanel account on the destination server.
* Overwrites all account settings, data, and databases.
* Ignores errors and warnings for naming conflicts.
**Note:**
* The values you enter for the `user` and `localuser` parameters **must** match.
* You cannot use this parameter if you called the WHM API 1 `create_remote_root_transfer_session` function with
the `unrestricted_restore` parameter set to `1`.'
enum:
- 0
- 1
example: 1
type: integer
type: object
Transfers_EnqueueTransferItem_Type_AccountRemoteRoot:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot'
- properties:
live_transfer:
default: 0
description: 'Whether to use the [*Live Transfer*](https://go.cpanel.net/livetransfers) feature.
* `1` — Use.
* `0` — Do **not** use.'
enum:
- 0
- 1
example: 1
type: integer
xferpoint:
description: 'Whether to use the [*Express Transfer*](https://go.cpanel.net/livetransfer) feature.
* `1` — Use.
* `0` — Do **not** use.'
enum:
- 0
- 1
example: 1
type: integer
Transfers_EnqueueTransferItem_Type_AccountRemoteUser:
$ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
Transfers_EnqueueTransferItem_Type_Account_Base:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Base'
- properties:
customip:
description: 'The custom IP address to assign to the transferred account.
**Note:**
This parameter requires that the `ip` parameter has a value of `1`.'
example: 192.168.0.1
type: string
detected_remote_user:
description: The user account name that the remote server returns when you query the user account.
example: user
type: string
domain:
description: The domain name.
example: example.com
format: domain
type: string
ip:
description: 'Whether to assign a dedicated IP address to the transferred account.
* `1` — Assign a dedicated IP address.
* `0` — Do **not** assign a dedicated IP address.
**Note:**
If no dedicated IP address exists, the system assigns the account to a shared IP address.'
enum:
- 0
- 1
example: 1
type: integer
localuser:
description: The local account's username.
example: localuser
format: username
type: string
mail_location:
default: .existing
description: "The server on which the account's email will reside after it completes the transfer.\n\n* `.local`\
\ — The local server.\n* `.existing` — Use the location defined in the account's backup data.\n* The alias (friendly\
\ name) of a remote [cPanel & WHM linked server node.](https://go.cpanel.net/whmdocsLinkServerNodes). For example,\
\ the `example-alias` for the `servernode.example.com` domain.\n\n**Note:**\n\nThe system will use the `.local`\
\ option if:\n * The system cannot use the cPanel & WHM linked server node when you call the `.existing` option.\n\
\ * The cPanel & WHM linked server node's alias (friendly name) is invalid."
example: .local
oneOf:
- enum:
- .local
- .existing
type: string
- description: A remote cPanel & WHM linked server node's alias (friendly name).
type: string
overwrite_sameowner_dbs:
description: 'Whether to allow the system to overwrite the account''s existing databases with the databases in
the backup file.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
enum:
- 0
- 1
example: 1
type: integer
overwrite_sameowner_dbusers:
description: 'Whether to allow the system to overwrite the account''s existing database users with the database
users in the backup file.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
enum:
- 0
- 1
example: 1
type: integer
overwrite_with_delete:
description: 'Whether to replace and delete **all** directories and files on the destination server.
* `1` — Overwrite.
* `0` — Do **not** overwrite.
**Warning:**
If you use this parameter, the system deletes **every** directory and file on the destination server. The system
does **not** delete the directories and files from the source server.'
enum:
- 0
- 1
example: 1
type: integer
replaceip:
description: 'The lines in the domain''s zonefile to replace with the new IP address.
* `all` — Replace all of the matching `A` record addresses in the zone file with the new IP address, including
custom `A` records.
* `basic` — Replace **only** the cPanel-managed `A` records for this IP address. This includes the main domain
and any [service subdomains](https://go.cpanel.net/ServiceProxySubdomains).'
enum:
- all
- basic
example: all
type: string
reseller:
description: 'Whether to make the account a reseller.
* `1` — Make the account a reseller account.
* `0` — Do **not** make the account a reseller account.'
enum:
- 0
- 1
example: 1
type: integer
shared_mysql_server:
description: 'Whether one of the following conditions is true:
* The target and remote servers share the same remote MySQL server.
* The target server is the remote MySQL server for the remote server.
* The remote server is the remote MySQL server for the target server.
Value:
* `1` — One is true.
* `0` — None are true.'
enum:
- 0
- 1
example: 1
type: integer
skipaccount:
description: 'Whether to skip the recreation of the account.
* `1` — Skip.
* `0` — Restore.
**Note:**
* The values you enter for the `user` and `localuser` parameters **must** match.
* This parameter is similar to the `force` parameter, but performs none of the account creation steps.'
enum:
- 0
- 1
example: 1
type: integer
skipacctdb:
description: 'Whether to skip the transfer of the account''s databases.
* `1` — Skip.
* `0` — Restore.'
enum:
- 0
- 1
example: 1
type: integer
skipbwdata:
description: 'Whether to skip the transfer of the account''s bandwidth data.
* `1` — Skip.
* `0` — Restore.'
enum:
- 0
- 1
example: 1
type: integer
skiphomedir:
description: 'Whether to skip the contents of the home directory.
* `1` — Skip.
* `0` — Restore.'
enum:
- 0
- 1
example: 1
type: integer
skipres:
description: 'Whether to skip restoration of the account''s reseller permissions.
* `1` — Skip.
* `0` — Restore.'
enum:
- 0
- 1
example: 1
type: integer
user:
description: The account to transfer.
example: user
format: username
type: string
required:
- user
- localuser
type: object
Transfers_EnqueueTransferItem_Type_FeatureListRemoteRoot:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Base'
- properties:
featurelist:
description: The feature list's name.
example: user_features
type: string
required:
- featurelist
type: object
Transfers_EnqueueTransferItem_Type_LegacyAccountBackup:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Base'
- properties:
mysql_dbs_to_restore:
description: 'A comma-separated list of MySQL databases to restore, which will overwrite those databases on the
account.
**Note:**
The default behavior is to select and overwrite all databases.
**Warning:**
The _Restricted Restore_ feature does not allow an account to overwrite data that it does not own. If the transfer
session''s `unrestricted_restore` parameter has a value of `0`, this parameter is ignored.'
example: msdb1,msdb2,msdb3
type: string
overwrite_all_dbs:
description: 'Whether to allow the system to overwrite all of the account''s databases with the databases in the
backup file.
* `1` — Overwrite.
* `0` — Do **not** overwrite.
**Note:**
You may use only **one** of the following parameters:
* `overwrite_all_dbs`
* `overwrite_sameowner_dbs`
* Both the `mysql_dbs_to_restore` and `pgsql_dbs_to_restore` parameters.
If you do not use any of these parameters, the system will restore all of the databases on the account, but
will **not** overwrite any of them.
**Warning:**
The _Restricted Restore_ feature does not allow an account to overwrite data that it does not own. If the transfer
session''s `unrestricted_restore` parameter has a value of `0`, the `overwrite_all_dbs` parameter will automatically
change to a value of `0` and the `overwrite_sameowner_dbs` parameter will change to a value of `1`. This prevents
the restore system from overwriting databases that the account does not own.'
enum:
- 0
- 1
type: integer
overwrite_sameowner_dbs:
description: 'Whether to allow the system to overwrite the account''s existing databases with the databases in
the backup file.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
enum:
- 0
- 1
type: integer
overwrite_sameowner_dbusers:
description: 'Whether to allow the system to overwrite the account''s existing database users with the database
users in the backup file.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
enum:
- 0
- 1
type: integer
pgsql_dbs_to_restore:
description: 'A comma-separated list of PostgreSQL® databases to restore, which will overwrite those databases
on the account.
**Note:**
The default behavior is to select and overwrite all databases.
**Warning:**
The _Restricted Restore_ feature does not allow an account to overwrite data that it does not own. If the transfer
session''s `unrestricted_restore` parameter has a value of `0`, this parameter is ignored.'
example: pgdb1,pgdb2,pgdb3
type: string
restoreall:
description: 'Whether to recreate the account on the target server.
* `1` — Recreate.
* `0` — Do **not** recreate.'
enum:
- 0
- 1
type: integer
restorebwdata:
description: 'Whether to restore bandwidth data.
* `1` — Restore.
* `0` — Do **not** restore.'
enum:
- 0
- 1
type: integer
restoreip:
description: 'Whether to assign the account''s dedicated IP address that is stored in the backup file.
* `1` — Assign.
* `0` — Do **not** assign.'
enum:
- 0
- 1
type: integer
restoremail:
description: 'Whether to restore the account''s mail data.
* `1` — Restore.
* `0` — Do **not** restore.'
enum:
- 0
- 1
type: integer
restoremysql:
description: 'Whether to restore MySQL® database data.
* `1` — Restore.
* `0` — Do **not** restore.'
enum:
- 0
- 1
type: integer
restoresubs:
description: 'Whether to restore the account''s subdomains.
* `1` — Restore.
* `0` — Do **not** restore.'
enum:
- 0
- 1
type: integer
restoretype:
description: 'The backup type to restore.
* `monthly`
* `weekly`
* `daily`'
enum:
- monthly
- weekly
- daily
example: daily
type: string
unrestricted_restore:
description: 'Whether to bypass the *Restricted Restore* system.
* `1` — Bypass.
* `0` — Do **not** bypass.'
enum:
- 0
- 1
type: integer
user:
description: The account's username.
example: user
format: username
type: string
required:
- user
- restoretype
type: object
Transfers_EnqueueTransferItem_Type_PackageRemoteRoot:
allOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Base'
- properties:
package:
description: The package's name.
example: user_package
type: string
required:
- package
type: object
WebDAVBackupDestinationResponse:
allOf:
- $ref: '#/components/schemas/BackupDestinationResponse'
- properties:
host:
description: The remote server's hostname.
example: backups.example.com
format: domain
type: string
path:
description: The path to the backups directory on the remote server.
example: /backups
format: path
type: string
port:
default: 21
description: The remote server's FTP port.
example: 21
maximum: 65535
minimum: 1
type: integer
ssl:
default: 1
description: 'Whether to use SSL.
* `1` - Use SSL.
* `0` - Do **not** use SSL.'
enum:
- 1
- 0
example: 1
type: integer
timeout:
default: 30
description: The session timeout, in seconds.
example: 300
maximum: 300
minimum: 30
type: integer
username:
description: The remote server account's username.
example: username
type: string
type: object
a:
allOf:
- properties:
address:
description: The zone record's IPv4 address.
example: 192.168.0.20
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `A` — A records store IPv4 addresses. Use them to map a hostname to an IPv4 address.'
example: A
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing A record data.
**Note:**
For more information about A records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
a6:
allOf:
- properties:
prefix:
description: The record's prefix length.
example: 48
type: integer
refer:
description: The record's address suffix.
example: 0::0
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `A6` — A6 records store IPv6 addresses.
**Important:**
A6 records are **deprecated**. We strongly **recommend** that you use [AAAA](http://tools.ietf.org/html/rfc3596)
records to store IPv6 addresses.'
example: A6
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing A6 record data.
**Important:**
A6 records are **deprecated**. We strongly **recommend** that you use [AAAA](http://tools.ietf.org/html/rfc3596) records
to store IPv6 addresses.'
aaaa:
allOf:
- properties:
address:
description: The zone record's IPv6 address.
example: 2001:1:42:1::2a
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `AAAA` — AAAA records store IPv6 addresses.
**Important:**
A6 records are **deprecated**. We strongly **recommend** that you use [AAAA](http://tools.ietf.org/html/rfc3596)
records to store IPv6 addresses.'
example: AAAA
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing AAAA record data.
**Note:**
For more information about AAAA records, read [RFC 3596 at IANA](http://tools.ietf.org/html/rfc3596).'
asfdb:
allOf:
- properties:
hostname:
description: The database servers' hostname.
example: afs.example.com
type: string
subtype:
description: The AFS cell type. A 16-bit integer that represents the type of AFS cell. For example, a value of
1 indicates an AFS version 3.0 Volume Location Server.
example: 1
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `AFSDB` — AFSDB records store the location of an AFS cell''s database servers.'
example: AFSDB
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing AFSDB record data.
**Note:**
For more information about AFSDB records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
bwSchema:
$ref: '#/components/schemas/nearReachedBaseSchema'
caa:
allOf:
- properties:
flag:
description: 'Whether the CA will issue an SSL certificate if the CAA resource record contains unknown property
tags.
* `0` - Non-critical. The CAA Resource Record contains unknown property tags, and the CA issued an SSL certificate.
* `1` - Critical. The CAA Resource Record contains unknown property tags, and the CA did **not** issue an SSL
certificate.'
example: 0
type: integer
tag:
description: 'The CAA record''s property type.
* `issue` - A CA issued a certificate for the domain.
* `issuewild` - A CA issued a wildcard certificate for the domain.
* `iodef` - The user specified a URL to which a CA may report policy violations.'
example: issue
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `CAA` — CAA records control which certificate authorities can issue SSL certificates for a domain.'
example: CAA
type: string
value:
description: 'The CA''s domain or URL.
* A valid [SSL provider](https://sslmate.com/labs/caa/).
* A mailto URL or a standard URL.'
example: totallyrealca.tld
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing CAA record data.
**Note:**
For more information about CAA record flags and property tags, read the [RFC 6844](https://tools.ietf.org/html/rfc6844#section-3)
documentation.'
cname:
allOf:
- properties:
cname:
description: The canonical name (CNAME) alias.
example: sydneybristow.example.com
type: string
flatten:
description: 'Whether the specified CNAME value resolves with the record''s IP address.
* `1` - Resolves.
* `0` - Does **not** resolve.'
example: 1
type: integer
flatten_to:
description: The IP address to which the specified CNAME resolves.
example: 192.168.0.20
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `CNAME` — CNAME records create an alias to another hostname.'
example: CNAME
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing CNAME record data.
**Note:**
For more information about CNAME records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
diskSchema:
allOf:
- $ref: '#/components/schemas/nearReachedBaseSchema'
- properties:
fraction:
nullable: true
type: number
near:
nullable: true
enum:
- 0
- 1
type: integer
reached:
nullable: true
enum:
- 0
- 1
type: integer
threshold_blocks:
description: The block threshold used for the resource limit check.
example: 10485760
nullable: true
type: integer
dname:
allOf:
- properties:
dname:
description: The delegation name (DNAME) alias.
example: hostname.dev.example.com
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `DNAME` — DNAME records create an alias for a hostname and its subnames.'
example: DNAME
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing DNAME record data.
**Note:**
For more information about DNAME records, read [RFC 2672 at IANA](http://tools.ietf.org/html/rfc2672).'
ds:
allOf:
- properties:
algorithm:
description: 'The record''s algorithm number.
* `1` — RSAMD5
* `2` — Diffie-Hellman
* `3` — DSA/SHA-1
* `4` — Elliptic Curve
* `5` — RSA/SHA-1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384
* `252` — Indirect
* `253` — Private DNS
* `254` — Private OID'
example: 5
type: integer
digtype:
description: 'The record''s digest type.
* `1` — SHA-1
* `2` — SHA-256
* `4` — SHA-384'
example: 1
type: integer
keyname:
description: The record's KeyTag value.
example: 2642
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `DS` — DS records specify a record''s delegation signer.'
example: DS
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing DS record data.
**Note:**
For more information about DS records, read [RFC 4034 at IANA](http://tools.ietf.org/html/rfc4034).'
getzonerecordResponseBase:
discriminator:
mapping:
A: '#/components/schemas/getzonerecordResponseTypeA'
A6: '#/components/schemas/getzonerecordResponseTypeA6'
AAAA: '#/components/schemas/getzonerecordResponseTypeAAAA'
AFSDB: '#/components/schemas/getzonerecordResponseTypeAFSDB'
ALIAS: '#/components/schemas/getzonerecordResponseTypeALIAS'
CAA: '#/components/schemas/getzonerecordResponseTypeCAA'
CNAME: '#/components/schemas/getzonerecordResponseTypeCNAME'
DNAME: '#/components/schemas/getzonerecordResponseTypeDNAME'
DS: '#/components/schemas/getzonerecordResponseTypeDS'
HINFO: '#/components/schemas/getzonerecordResponseTypeHINFO'
LOC: '#/components/schemas/getzonerecordResponseTypeLOC'
MX: '#/components/schemas/getzonerecordResponseTypeMX'
NS: '#/components/schemas/getzonerecordResponseTypeNS'
PTR: '#/components/schemas/getzonerecordResponseTypePTR'
RP: '#/components/schemas/getzonerecordResponseTypeRP'
SOA: '#/components/schemas/getzonerecordResponseTypeSOA'
SRV: '#/components/schemas/getzonerecordResponseTypeSRV'
SSHFP: '#/components/schemas/getzonerecordResponseTypeSSHFP'
TXT: '#/components/schemas/getzonerecordResponseTypeTXT'
propertyName: type
properties:
Line:
description: The zone record's file line number.
example: 24
minimum: 1
type: integer
class:
description: The record's class.
example: IN
oneOf:
- enum:
- IN
type: string
- description: A valid DNS record class.
type: string
name:
description: The record's name.
example: hostname.example.com.
format: domain
type: string
ttl:
description: The record's Time To Live (TTL), in seconds.
example: 86400
minimum: 1
type: integer
type:
description: "The DNS record type.\n* `A` - A records store IPv4 addresses. Use them to map a hostname to an IPv4\
\ address.\n* `A6`- A6 records store IPv6 addresses.\n* `AAAA` - AAAA records store IPv6 addresses.\n* `AFSDB`\
\ - AFSDB records store the location of an AFS cell's database servers.\n* `ALIAS` - ALIAS records create an alias\
\ to another hostname, but can coexist with other records on that name. We strongly discourage using this record\
\ type.\n* `CAA` - CAA records control which certificate authorities can issue SSL certificates for a domain.\n\
* `CNAME` - CNAME records create an alias to another hostname.\n* `DNAME` - DNAME records create an alias for\
\ a hostname and its subnames.\n* `DS` - DS records specify a record's delegation signer.\n* `HINFO` - HINFO records\
\ specify a host's CPU and OS types.\n* `LOC` - LOC records store a hostname's geographical location.\n* `MX`\
\ - MX records point a domain name to its MTAs.\n* `NS` - NS records store a domain's authoritative nameservers.\n\
* `PTR` - PTR records point to a CNAME.\n* `RP` - RP records store a domain's Responsible Person's information.\n\
* `SOA` - SOA records designate the beginning of a zone of authority.\n* `SRV` - SRV records store the service\
\ location records for newer protocols (for example, Autodiscover).\n* `SSHFP` - SSHFP records store a domain's\
\ SSH public host key's fingerprint.\n* `TXT` - TXT records store descriptive text or useful records (for example,\
\ SPF or DKIM records).\n\n **Warning:**\n\n We do not currently support the SSHFP DNS record type.\n\nThis function\
\ will return a differently depending on which record type you query. Select a zone\nrecord type from the menu\
\ to view each set of return data:"
enum:
- A
- AAAA
- AFSDB
- ALIAS
- CAA
- CNAME
- DNAME
- DS
- HINFO
- LOC
- MX
- NS
- PTR
- RP
- SOA
- SRV
- SSHFP
- TXT
example: A
type: string
type: object
getzonerecordResponseTypeA:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
address:
description: 'The zone record''s IPv4 address.
**Note:**
For more information about A records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 192.168.0.20
format: ipv4
type: string
type: object
getzonerecordResponseTypeA6:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
prefix:
deprecated: true
description: The record's prefix length.
example: 48
minimum: 1
type: integer
refer:
deprecated: true
description: 'The record''s address suffix.
**Important:**
A6 records are **deprecated**. We **strongly** recommend that you use AAAA records to
store IPv6 addresses.'
example: 0::0
type: string
type: object
getzonerecordResponseTypeAAAA:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
address:
description: "The zone record's IPv6 address.\n\n**Note:**\n\n For more information about AAAA records, read [RFC\
\ 3596 at IANA](http://tools.ietf.org/html/rfc3596)."
example: 2001:1:42:1::2a
format: ipv6
type: string
type: object
getzonerecordResponseTypeAFSDB:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
hostname:
description: The database servers' hostname.
example: hostname.example.com
format: domain
type: string
subtype:
description: 'The 16-bit integer of an AFS cell type.
**Note:**
For more information about AFSDB records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: 1
type: integer
type: object
getzonerecordResponseTypeALIAS:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
alias:
description: 'The hostname you want to point to.
**Note:**
We strongly recommend that you do not use this function.
Using the ALIAS DNS record may result in unexpected behavior, including website downtimes outside of your control,
inconsistency in the handling of the record, and security vulnerabilities.
This record is only available if you enable access to it and use PowerDNS.'
example: hostname.example.com
format: domain
type: string
type: object
getzonerecordResponseTypeCAA:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
flag:
description: 'Whether the Certificate Authority (CA) will issue an SSL certificate if the CAA resource record
contains unknown property tags.
* `0` - Non-critical. If the CAA Resource Record contains unknown property tags, the CA will issue an SSL certificate.
* `1` - Critical. If the CAA Resource Record contains unknown property tags, the CA will **not** issue an SSL
certificate.
**Note:**
For more information about CAA record flags and property tags, read the [RFC 6844 documentation](https://tools.ietf.org/html/rfc6844#section-3).'
enum:
- 0
- 1
example: 0
type: integer
tag:
description: 'The CAA record''s property type.
* `issue` - A CA issued a certificate for the domain.
* `issuewild` - A CA issued a wildcard certificate for the domain.
* `iodef` - The user specified a URL to which a CA may report policy violations.'
enum:
- issue
- issuewild
- iodef
example: issue
type: string
value:
description: 'The CA''s domain or URL. This is a valid [SSL provider](https://sslmate.com/labs/caa/),
`mailto` URL, or a standard URL.'
example: exampleca.com
type: string
type: object
getzonerecordResponseTypeCNAME:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
cname:
description: 'The canonical name (CNAME) alias.
**Note:**
For more information about CNAME records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
flatten:
description: 'Whether the specified CNAME value resolves with the record''s IP address.
* `1` - Resolves.
* `0` - Does not resolve.'
enum:
- 0
- 1
example: 1
type: integer
flatten_to:
description: The IP address to which the specified CNAME resolves.
oneOf:
- description: A valid IPv4 address.
example: 192.0.2.27
format: ipv4
type: string
- description: A valid IPv6 address.
example: 2001:0db8:85a3:0042:1000:8a2e:0370:7334
format: ipv6
type: string
type: object
getzonerecordResponseTypeDNAME:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
dname:
description: 'The delegation name (DNAME) alias.
**Note:**
For more information about DNAME records, read [RFC 2672 at IANA](http://tools.ietf.org/html/rfc2672).'
example: hostname.example.com
format: domain
type: string
type: object
getzonerecordResponseTypeDS:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
algorithm:
description: 'The record''s algorithm number.
* `1` - RSAMD5
* `2` - Diffie-Hellman
* `3` - DSA/SHA-1
* `4` - Elliptic Curve
* `5` - RSA/SHA-1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384
* `252` - Indirect
* `253` - Private DNS
* `254` - Private OID'
enum:
- 1
- 2
- 3
- 4
- 5
- 7
- 8
- 10
- 13
- 14
- 252
- 253
- 254
example: 5
type: integer
digtype:
description: 'The record''s digest type.
* `1` — SHA-1
* `2` — SHA-256
* `4` — SHA-384'
enum:
- 1
- 2
- 4
example: 1
type: integer
keyname:
description: 'The record''s KeyTag value.
**Note:**
For more information about DS records, read [RFC 4034 at IANA](http://tools.ietf.org/html/rfc4034).'
example: 2642
type: integer
type: object
getzonerecordResponseTypeHINFO:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
cpu:
description: 'The host''s CPU type.
**Note:**
For more information about HINFO records, read [RFC 1700 at IANA](http://tools.ietf.org/html/rfc1700.txt).'
example: INTEL-386
type: string
os:
description: The host's operating system.
example: UNIX
type: string
type: object
getzonerecordResponseTypeLOC:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
altitude:
description: The location's altitude above sea level, in meters.
example: 178m
type: string
horiz_pre:
description: The location's horizontal precision distance, in meters.
example: 10
minimum: 1
type: integer
latitude:
description: The location's latitude.
example: 41 51 54.305 N
type: string
longitude:
description: The location's longitude.
example: 87 36 47.95 W
type: string
size:
description: The diameter of a sphere that encloses the entire location, in meters.
example: 10
minimum: 1
type: integer
version:
description: 'The record''s version number.
**Note:**
For more information about LOC records, read [RFC 1876 at IANA](http://tools.ietf.org/html/rfc1876).'
enum:
- 0
example: 0
type: integer
vert_pre:
description: The location's vertical precision distance, in meters.
example: 10
minimum: 1
type: integer
type: object
getzonerecordResponseTypeMX:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
exchange:
description: The server's location's canonical name (CNAME).
example: mail.example.com
format: domain
type: string
preference:
description: 'The record''s priority order.
**Note:**
* Lower values have a higher priority order.
* For more information about MX records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 10
type: integer
type: object
getzonerecordResponseTypeNS:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
nsdname:
description: 'The domain''s authoritative nameserver.
**Note:**
For more information about NS records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: ns1.example.com
format: domain
type: string
type: object
getzonerecordResponseTypePTR:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
ptrdname:
description: 'A pointer to a canonical name (CNAME).
**Note:**
For more information about PTR records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: hostname.example.com
format: domain
type: string
type: object
getzonerecordResponseTypeRP:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
mbox:
description: 'The Responsible Person''s (RP) email address.
**Note:**
For more information about RP records, read [RFC 1183 at IANA](http://tools.ietf.org/html/rfc1183).'
example: user.example.com.
type: string
txtdname:
description: The RP's domain name.
example: mx1.host.example.com.
format: domain
type: string
type: object
getzonerecordResponseTypeSOA:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
Lines:
description: The number of lines in the SOA section.
example: 4
minimum: 1
type: integer
expire:
description: The amount of time, in seconds, to wait before the secondary server attempts to complete a zone transfer.
example: 3600000
minimum: 1
type: integer
mname:
description: The domain's authoritative nameserver.
example: ns1.host.example.com
format: domain
type: string
refresh:
description: The amount of time, in seconds, to wait before the secondary DNS server queries the primary DNS server's
SOA records for changes.
example: 1440
minimum: 1
type: integer
retry:
description: The amount of time, in seconds, to wait before the secondary server retries a failed zone transfer.
example: 14400
minimum: 1
type: integer
rname:
description: The Responsible Person's (RP) email address.
example: user.example.com.
type: string
serial:
description: 'The zone file''s revision number.
**Note:**
For more information about SOA records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
example: 2013122501
type: integer
type: object
getzonerecordResponseTypeSRV:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
port:
description: The target host's port.
example: 389
maximum: 65535
minimum: 0
type: integer
priority:
description: 'The target host''s priority preference.
**Note:**
* Lower numbers have a higher priority order.
* For more information about SRV records, read [RFC 2782 at IANA](http://tools.ietf.org/html/rfc2782).'
example: 0
type: integer
target:
description: The service's target host.
example: service.example.com
format: domain
type: string
weight:
description: A relative weight. The system uses this value to rank entries with the same `priority` value.
example: 2
type: integer
type: object
getzonerecordResponseTypeSSHFP:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
algorithm:
description: 'The public key''s algorithm number.
* `1` - RSA
* `2` - DSS
**Note:**
For more information about SSHFP records, read [RFC 4255 at IANA](http://tools.ietf.org/html/rfc4255).
**Warning:**
* We do **not** currently support this DNS record type.'
enum:
- 1
- 2
example: 1
type: integer
fptype:
description: 'The public key''s fingerprint type.
* `1` - SHA-1'
enum:
- 1
example: 1
type: integer
type: object
getzonerecordResponseTypeTXT:
allOf:
- $ref: '#/components/schemas/getzonerecordResponseBase'
- properties:
txtdata:
description: 'The TXT record''s data.
**Note:**
For more information about TXT records, read [RFC 1464 at IANA](http://tools.ietf.org/html/rfc1464).'
example: v=spf1 a -all
type: string
unencoded:
description: 'Whether the TXT record''s data is encoded.
* `1` - Encoded.
* `0` - **Not** encoded.'
enum:
- 1
- 0
example: 0
type: integer
type: object
hinfo:
allOf:
- properties:
cpu:
description: The host's CPU type.
example: INTEL-386
type: string
os:
description: The host's operating system.
example: UNIX
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `HINFO` — HINFO records specify a host''s CPU and OS types.'
example: HINFO
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing HINFO record data.
**Note:**
For more information about HINFO records, read [RFC 1700 at IANA](http://tools.ietf.org/html/rfc1700.txt).'
ip-address:
anyOf:
- example: 192.168.0.1
format: ipv4
type: string
- example: 192.168.0.1/30
format: cidr
type: string
- example: 192.168.0.1-192.168.0.2
format: ipv4-ipv4
type: string
- example: '2001:db8::'
format: ipv6
type: string
- example: 2001:db8::/32
format: cidr
type: string
- example: 2001:0db8::-2001:0db8:ffff:ffff:ffff:ffff:ffff:ffff
format: ipv6-ipv6
type: string
loc:
allOf:
- properties:
altitude:
description: The location's altitude. The location's altitude above sea level, in meters, and the m character.
example: 178m
type: string
horiz_pre:
description: The location's horizontal precision, in meters.
example: 10
minimum: 0
type: integer
latitude:
description: The location's latitude.
example: 41 51 54.305 N
type: string
longitude:
description: The location's longitude.
example: 87 36 47.95 W
type: string
size:
description: The diameter of a sphere that encloses the entire location, in meters.
example: 10
minimum: 0
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `LOC` — LOC records store a hostname''s geographical location.'
example: LOC
type: string
version:
description: The record's version number. You **must** set this value to `0`.
example: 0
type: integer
vert_pre:
description: The location's vertical precision, in meters.
example: 10
minimum: 0
type: integer
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing LOC record data.
**Note:**
For more information about LOC records, read [RFC 1876 at IANA](http://tools.ietf.org/html/rfc1876).'
mx:
allOf:
- properties:
exchange:
description: The server's location's canonical name (CNAME).
example: mail.example.com
type: string
preference:
description: 'The record''s preference. An integer that represents the record''s priority order.
**Note:**
Lower values have a higher priority order.'
example: 10
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `MX` — MX records point a domain name to its MTAs.'
example: MX
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing MX record data.
**Note:**
For more information about MX records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
nearReachedBaseSchema:
properties:
fraction:
description: A fractional number ranging from 0.00 to 1.00 indicating the fraction of the resource limit that was
consumed.
example: 0.54
type: number
near:
description: 'Whether the account is near this resource limit. Nearness is defined according to `nearness_fraction`.
* `1` — Near.
* `0` — Not near.'
enum:
- 0
- 1
example: 1
type: integer
reached:
description: 'Whether the account has reached this resource limit.
* `1` — Reached.
* `0` — Not reached.'
enum:
- 0
- 1
example: 1
type: integer
type: object
ns:
allOf:
- properties:
nsdname:
description: The domain's authoritative nameserver.
example: ns1.example.com
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `NS` — NS records store a domain''s authoritative nameservers.'
example: NS
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing NS record data.
**Note:**
For more information about NS records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
ptr:
allOf:
- properties:
ptrdname:
description: A pointer to a canonical name (CNAME).
example: hostname.example.com.
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `PTR` — PTR records point to a CNAME.'
example: PTR
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing PTR record data.
**Note:**
For more information about PTR records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
record:
properties:
Line:
description: The zone record's line number.
example: 1
type: integer
class:
description: 'The record''s class.
- IN
- Very rarely, another valid DNS record class.'
example: IN
type: string
name:
description: The record's name.
example: hostname.example.com
type: string
ttl:
description: The record's Time To Live (TTL).
example: 86400
type: integer
type: object
restorePoint:
properties:
options:
properties:
give_ip:
description: 'Whether the restoration process will assign a dedicated IP address
to the account.
* `1` — Will assign.
* `0` — Will **not** assign.'
enum:
- 1
- 0
example: 1
type: integer
mail_config:
description: 'Whether the restoration process will restore the account''s email
configuration.
* `1` — Will restore.
* `0` — Will **not** restore.'
enum:
- 1
- 0
example: 1
type: integer
mysql:
description: 'Whether the restoration process will restore the account''s MySQL®
databases.
* `1` — Will restore.
* `0` — Will **not** restore.'
enum:
- 1
- 0
example: 1
type: integer
subdomains:
description: 'Whether the restoration process will restore the account''s subdomains.
* `1` — Will restore.
* `0` — Will **not** restore.'
enum:
- 1
- 0
example: 1
type: integer
type: object
restore_point:
description: The date of the backup file.
example: '2019-10-21T00:00:00.000Z'
format: ISO-8601 Date
type: string
user:
description: The cPanel account's username.
example: username
format: username
type: string
rp:
allOf:
- properties:
mbox:
description: The Responsible Person's (RP's) email address.
example: user.example.com.
type: string
txtdname:
description: The RP's domain name.
example: mx1.host.example.com.
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `RP` — RP records store a domain''s Responsible Person''s information.'
example: RP
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing RP record data.
**Note:**
For more information about RP records, read [RFC 1183 at IANA](https://tools.ietf.org/html/rfc1183).'
soa:
allOf:
- properties:
Lines:
description: The number of lines in the SOA section.
example: 4
minimum: 0
type: integer
expire:
description: The amount of time to wait before the secondary server attempts to complete a zone transfer, in seconds.
example: 3600000
minimum: 0
type: integer
mname:
description: The domain's authoritative nameserver.
example: ns1.example.com
type: string
refresh:
description: The amount of time to wait before the secondary DNS server queries the primary DNS server's SOA records
for changes, in seconds.
example: 1440
minimum: 0
type: integer
retry:
description: The amount of time to wait before the secondary server retries a failed zone transfer, in seconds.
example: 1440
minimum: 0
type: integer
rname:
description: The Responsible Person's (RP's) email address.
example: user.example.com.
type: string
serial:
description: The zone file's revision number.
example: 2013122501
type: integer
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `SOA` — SOA records designate the beginning of a zone of authority.'
example: SOA
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing SOA record data.
**Note:**
For more information about SOA records, read [RFC 1035 at IANA](http://tools.ietf.org/html/rfc1035).'
srv:
allOf:
- properties:
port:
description: The target host's port.
example: 389
type: integer
priority:
description: 'The target host''s preference. An integer that represents the target host''s priority order.
**Note:**
Lower numbers have a higher priority order.'
example: 0
type: integer
target:
description: The service's target host.
example: service.example.com
format: domain
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `SRV` — SRV records store the service location records for newer protocols (for example, Autodiscover).'
example: SRV
type: string
weight:
description: A relative weight. The system uses this value to rank entries with the same `priority` value. An
integer that represents the target host's weight against other hosts with the same `priority` value.
example: 2
type: integer
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing SRV record data.
**Note:**
For more information about SRV records, read [RFC 2782 at IANA](http://tools.ietf.org/html/rfc2782).'
sshfp:
allOf:
- properties:
algorithm:
description: 'The public key''s algorithm number.
* `1` — RSA
* `2` — DSS'
example: 1
type: integer
fptype:
description: 'The public key''s fingerprint type.
* `1` — SHA-1'
example: 1
type: integer
type:
description: "The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).\n* `SSHFP` — SSHFP\
\ records store a domain's SSH public host key's fingerprint.\n\n**Warning:**\n\n We do **not** currently support\
\ the SSHFP DNS record type."
example: SSHFP
type: string
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing SSHFP record data.
**Warning:**
We do **not** currently support this DNS record type.
**Note:**
For more information about SSHFP records, read [RFC 4255 at IANA](http://tools.ietf.org/html/rfc4255).'
txt:
allOf:
- properties:
txtdata:
description: The TXT record's data.
example: v=spf1 a -all
type: string
type:
description: 'The [DNS record type](https://en.wikipedia.org/wiki/List_of_DNS_record_types).
* `TXT` — TXT records store descriptive text or useful records (for example, SPF or DKIM records).'
example: TXT
type: string
unencoded:
description: 'Whether the TXT record''s data is encoded.
* `1` — Encoded.
* `0` — **Not** encoded.'
example: 1
type: integer
type: object
- $ref: '#/components/schemas/record'
description: 'An object representing TXT record data.
**Note:**
For more information about TXT records, read [RFC 1464 at IANA](http://tools.ietf.org/html/rfc1464).'
schemas-Transfers_EnqueueTransferItem_Type:
anyOf:
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_FeatureListRemoteRoot'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_LegacyAccountBackup'
- $ref: '#/components/schemas/Transfers_EnqueueTransferItem_Type_PackageRemoteRoot'
discriminator:
mapping:
AccountLocal: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountLocal_or_AccountRemoteRoot'
AccountRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_AccountRemoteRoot'
AccountRemoteUser: '#/components/schemas/Transfers_EnqueueTransferItem_Type_Account_Base'
FeatureListRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_FeatureListRemoteRoot'
LegacyAccountBackup: '#/components/schemas/Transfers_EnqueueTransferItem_Type_LegacyAccountBackup'
PackageRemoteRoot: '#/components/schemas/Transfers_EnqueueTransferItem_Type_PackageRemoteRoot'
propertyName: module
securitySchemes:
BasicAuth:
scheme: basic
type: http
externalDocs:
url: https://cpanel.net/developers/
info:
contact:
email: cs@cpanel.net
name: WebPros International, LLC
url: https://cpanel.net/support/
description: WHM API.
license:
name: cPanel License
url: https://cpanel.net/legal-notices/
termsOfService: https://cpanel.net/legal-notices/
title: WHM API
version: 11.137.9999.106
x-api-evangelist-provenance: 'Harvested verbatim from cPanel''s developer portal on 2026-09-05 via the MCP tool get-full-api-description
at https://api.docs.cpanel.net/mcp. ONE mechanical change was made before storage: example values containing PEM private-key
or certificate blocks, and AWS-access-key-shaped example strings, were replaced with REDACTED_* placeholders so the file
can be stored in a public git repository without tripping secret scanning. No path, operation, parameter, schema or description
was altered, added or removed.'
openapi: 3.0.2
paths:
/360Monitoring/register_server_with_360_monitoring:
get:
description: 'This function registers the server with 360 Monitoring.
If the server is not already associated with a 360 Monitoring account,
the function creates a new account on the user''s behalf and configures
the local agent. If the server is already registered, the function is
a no-op and returns the existing identifier.
The system persists the credentials required by the local agent server-side
and does not return them in the response. Inspect the `metadata.result`
field (`1` for success, `0` for failure) and `metadata.reason` for
any failure details.'
operationId: register_server_with_360_monitoring
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
user_id:
description: The unique identifier for the 360 Monitoring user account associated with this server.
example: 12345
type: string
metadata:
properties:
command:
description: The method name called.
example: register_server_with_360_monitoring
type: string
namespace:
description: The namespace used in the API call.
example: 360Monitoring
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: The HTTP Request succeeded.
summary: Register the server with 360 Monitoring
tags:
- 360 Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n 360Monitoring/register_server_with_360_monitoring\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/360Monitoring/register_server_with_360_monitoring?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.132'
/360Monitoring/set_360_agent_polling:
get:
description: 'This function updates `agent360` polling settings.
Provide at least one of the following parameters: `interval` or `max_data_span`.
The `interval` parameter sets the individual polling interval for each plugin. If you
provide `interval` without any section filters, the function updates all core
(`global`, `agent`, `data`, and `execution`) and default plugin
(`cpu`, `iostat`, and `network`) sections.
The `global_sections` and `plugin_sections` parameters are only valid
if you provide the `interval` parameter.
The `max_data_span` parameter is global. The agent collects metrics from multiple
plugins and sends them together as a single batch.
If the requested values already match the current configuration, the function does not
make changes or restart the `agent360` process.'
operationId: set_360_agent_polling
parameters:
- description: 'A comma-separated list of core sections to update.
It must be one of the following:
* `global`
* `agent`
* `data`
* `execution`
This parameter only applies to the `interval` parameter.'
in: query
name: global_sections
required: false
schema:
example: global,agent
type: string
- description: The polling interval in seconds. Must be a positive integer.
in: query
name: interval
required: false
schema:
example: 300
minimum: 1
type: integer
- description: The maximum number of seconds between batches of metrics sent for analysis. Must be a positive integer.
in: query
name: max_data_span
required: false
schema:
example: 120
minimum: 1
type: integer
- description: 'A comma-separated list of plugin sections to update.
Each value must match a plugin section loaded in the agent
configuration (for example, `cpu`, `iostat`, or `network`).
This parameter only applies to the `interval` parameter.'
in: query
name: plugin_sections
required: false
schema:
example: cpu,network
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
status:
description: '* `1` - Success.'
enum:
- 1
example: 1
type: integer
metadata:
properties:
command:
description: The method name called.
example: set_360_agent_polling
type: string
namespace:
description: The namespace used in the API call.
example: 360Monitoring
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update 360 Monitoring agent polling settings
tags:
- 360 Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n 360Monitoring/set_360_agent_polling \\\n interval=300 \\\n max_data_span=120\
\ \\\n global_sections='global,agent' \\\n plugin_sections='cpu,network'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/360Monitoring/set_360_agent_polling?api.version=1&interval=300&max_data_span=120&global_sections=global,agent&plugin_sections=cpu,network
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.132'
/EcosystemFeatures/is_ready:
get:
description: This function checks if a plugin-based feature is installed and ready for use on the server.
operationId: is_ready
parameters:
- description: The plugin-based feature's name in the local `/var/cpanel/plugins/` directory.
in: query
name: plugin
required: true
schema:
example: cpanel-monitoring-plugin
type: string
- description: 'A filter that allows you to show plugin-based features for a specific interface.
* `Whostmgr` - A WHM plugin-based feature.
* `Cpanel` - A cPanel plugin-based feature.'
in: query
name: namespace
required: false
schema:
default: Whostmgr
enum:
- Whostmgr
- Cpanel
example: Cpanel
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ready:
description: 'Whether the plugin-based feature is installed and ready.
* `1` - Installed and ready for use.
* `0` - Not installed or not ready for use.'
enum:
- 0
- 1
example: 1
type: integer
metadata:
properties:
command:
description: The method name called.
example: is_ready
type: string
namespace:
description: The namespace used in the API call.
example: EcosystemFeatures
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Check if a plugin feature is ready for use
tags:
- Plugin-Based Features
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n EcosystemFeatures/is_ready \\\n plugin='cpanel-nova-plugin' \\\n namespace='Cpanel'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/EcosystemFeatures/is_ready?api.version=1&plugin=cpanel-nova-plugin&namespace=Cpanel
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.132'
/EcosystemFeatures/local_disable:
get:
description: 'This function allows you to locally disable a plugin-based feature.
Only WHM users with `root`-level privileges can run this function.'
operationId: local_disable
parameters:
- description: 'The plugin-based feature''s name in the local `/var/cpanel/plugins/` directory.
**Important:**
You can **only** use this function to disable the following features:
* Server Monitoring (Powered by 360 Monitoring).
* WebPros AI Application Builder for cPanel.'
in: query
name: plugin
required: true
schema:
type: string
enum:
- cpanel-monitoring-plugin
- cpanel-nova-plugin
example: cpanel-monitoring-plugin
- description: 'A filter that allows you to show plugin-based features for a specific interface.
* `Whostmgr` - A WHM plugin-based feature.
* `Cpanel` - A cPanel plugin-based feature.'
in: query
name: namespace
required: false
schema:
default: Whostmgr
type: string
enum:
- Whostmgr
example: Whostmgr
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: local_disable
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable feature locally
tags:
- Plugin-Based Features
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n EcosystemFeatures/local_disable \\\n plugin='cpanel-monitoring-plugin'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/EcosystemFeatures/local_disable?api.version=1&plugin=cpanel-monitoring-plugin
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.118'
/EcosystemFeatures/local_enable:
get:
description: 'This function allows you to locally enable a plugin-based feature.
Only WHM users with `root`-level privileges can run this function.'
operationId: local_enable
parameters:
- description: 'The plugin-based feature''s name in the local `/var/cpanel/plugins/` directory.
**Important:**
You can **only** use this function to enable the following features:
* Server Monitoring (Powered by 360 Monitoring).
* WebPros AI Application Builder for cPanel.'
in: query
name: plugin
required: true
schema:
type: string
enum:
- cpanel-monitoring-plugin
- cpanel-nova-plugin
example: cpanel-monitoring-plugin
- description: "A filter that allows you to show plugin-based features for a specific interface.\n * `Whostmgr` - A\
\ WHM plugin-based feature.\n * `Cpanel` - A cPanel plugin-based feature."
in: query
name: namespace
required: false
schema:
default: Whostmgr
type: string
enum:
- Whostmgr
example: Whostmgr
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: local_enable
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable feature locally
tags:
- Plugin-Based Features
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n EcosystemFeatures/local_enable \\\n plugin='cpanel-monitoring-plugin'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/EcosystemFeatures/local_enable?api.version=1&plugin=cpanel-monitoring-plugin
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.118'
/_getpkgextensionform:
get:
description: 'This function retrieves a hosting plan''s package extension templates. When you call this
function, the system checks the hosting plan''s `_PACKAGE_EXTENSIONS` value. The function
returns the contents of the `/var/cpanel/packages/extensions/name.tt2` file for each package
extension in the list, where name represents the package extension''s name.
For more information, read our
[Guide to Package Extensions](https://go.cpanel.net/GuidetoPackageExtensions).
**Note:**
This function returns only metadata if the hosting plan does not use package extensions, or
if the extensions'' template files are empty.'
operationId: Accounts-_getpkgextensionform
parameters:
- description: The hosting plan's name.
in: query
name: pkg
required: true
schema:
example: package1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
html:
description: The HTML and Template Toolkit soure code for the hosting plan's extensions' templates.
example:
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: _getpkgextensionform
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return hosting plan extension templates
tags:
- Packages
- Hosting Plan Extensions
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n _getpkgextensionform \\\n pkg='package1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/_getpkgextensionform?api.version=1&pkg=package1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.40'
/abort_transfer_session:
get:
description: This function aborts an active transfer session.
operationId: Transfers-abort_transfer_session
parameters:
- description: The transfer session's ID.
in: query
name: transfer_session_id
required: true
schema:
example: exampleservercopya20140206192428NtyW
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: abort_transfer_session
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Stop transfer session
tags:
- Transfers
- cPanel Account Transfer
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n abort_transfer_session \\\n transfer_session_id='exampleservercopya20140206192428NtyW'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/abort_transfer_session?api.version=1&transfer_session_id=exampleservercopya20140206192428NtyW
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/accept_eula:
get:
description: "This function records acceptance of cPanel & WHM's legal terms. To do this, the function creates a touchfile\
\ in the `/var/cpanel/activate/` directory and writes an acceptance audit record to `/var/cpanel/activate/eula_acceptance.json`.\
\ The audit record captures the accepting user, timestamp, remote IP address, agreement version, and agreement URLs.\n\
\n**Important:**\n\n Server owners *must* accept these agreements before they use cPanel & WHM."
operationId: EULA-accept_eula
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: accept_eula
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Save EULA acceptance
tags:
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n accept_eula\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/accept_eula?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '76'
/accesshash:
get:
deprecated: true
description: 'This function regenerates or retrieves a user''s access hash. For more information about access hashes,
read our [Remote Access Key](https://docs.cpanel.net/whm/clusters/remote-access-key/) documentation.
**Warning:**
We **deprecated** this function. We **strongly** suggest that you use the WHM API 1 `api_token_create` function.'
operationId: Resellers-accesshash
parameters:
- description: 'Whether to regenerate the access hash.
* `1` — Regenerate the access hash.
* `0` — Do **not** regenerate the access hash.'
in: query
name: generate
required: true
schema:
enum:
- 0
- 1
example: 0
type: integer
- description: The user's name.
in: query
name: user
required: true
schema:
example: root
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
accesshash:
description: The user's access hash.
example: cb523f89e9a31123fde7c6f93b580ac05bf00a2804d4febe6667ab9917a14baa1c4914da209bf55c862999ea51983a117a4d2f238140200b1e5b270b94b2c52492747e5ebfdeddb8abf4e1b0c428c6c68b701b48e13dbe39da49450e7a8e5422e18ab3b6290b5b6556bd82ee21d9c1103e7a51d1e94f2ac0c4dcc6a10954b8634c6db16a541660c3c89e10254f05583f4167adfcff7781090ea930647b46e5b981f3e16c7723ca4e12dc4b54a778dc66a28df73632a0d3a8e01e207b9fd6b555b72936a903af014f30061d712d736176a87fb5333c5b90cf0bb4f3c6735f2b45929ac79fb1184045a5f4c20bfcc553f5ab760eec077c0d6096e54d02724201281e441e7b0f642370a63f61c68766e224c8510bc32b0316780660c34352cbfeeccfee9d4f02e20ba7b664d3e84e9419ca386c41df07613f8af252aba8626a8b54796bbe616f41af1e6f11a3d0327f7608d23666fca64e6ebe899f7479a5fb0aea008b1e7a41890c9c58037682450febf91b7aa1c080d31d834b0ae466f8533df838ab271b26a7fb7de96402ad4a818d6b786af92c38414d2ef6c88deb7c685a1e60c3cbcfbf20cf6d2a00dd50d2be9bc1824d91284ec6842dd7db42564dfc3ecb75c1a9bc775c45c5f08784b9e2885c2d
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: accesshash
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account access hash
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n accesshash \\\n user='root' \\\n generate='0'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/accesshash?api.version=1&user=root&generate=0
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/accountsummary:
get:
description: 'This function retrieves a summary of a user''s account.
**Note:**
You must use either the user or domain parameters.'
operationId: Accounts-accountsummary
parameters:
- description: The account's main domain.
in: query
name: domain
required: false
schema:
example: example.com
type: string
- description: The search term.
in: query
name: search
required: false
schema:
example: example.com
type: string
- description: The search method to use.
in: query
name: searchmethod
required: false
schema:
example: exact
type: string
- description: The type of search to perform.
in: query
name: searchtype
required: false
schema:
example: domain
type: string
- description: The account's username.
in: query
name: user
required: false
schema:
example: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
acct:
description: An array of objects of account data.
items:
properties:
backup:
description: 'Whether backups are enabled.
* `1` Enabled.
* `0` Disabled.'
enum:
- 0
- 1
example: 0
type: integer
child_nodes:
description: An array that contains the the workload and alias values for each of the child
nodes.
items:
properties:
alias:
description: The alias of the child node
type: string
example: nodealias
workload:
description: The workload delegated to the child node
enum:
- Mail
example: Mail
type: string
type: array
disklimit:
description: 'The account''s disk space quota.
* `unlimited`
* A maximum amount of disk space, in mebibyte (MiB).'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
diskused:
description: The account's current disk space usage. An integer that represents an amount of
disk space, in mebibyte (MiB). For example, 14M represents 14 MiB of disk space.
example: 14M
format: mebibyte-short
type: string
domain:
description: The account's main domain. A valid domain name on the account.
example: example.com
format: fqdn
type: string
email:
description: The account's contact email address. A valid email address.
example: username@example.com
format: email
type: string
inodeslimit:
description: 'The limit on the number of files that the account owns.
* `unlimited`
* A maximum amount of files as an integer.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
inodesused:
description: The number of files that the account owns.
example: 1
minimum: 0
type: integer
ip:
description: The account's main domain's IP address.
example: 192.168.0.128
format: ipv4
type: string
ipv6:
description: The account's main domain's IPv6 addresses.
items:
example: 0101:ca75:0101:ca75:0101:ca75:0101:ca77
format: ipv6
type: string
type: array
is_locked:
description: 'Whether the account is currently locked.
* `1` Locked.
* `0` Not locked.'
enum:
- 0
- 1
example: 0
type: integer
legacy_backup:
description: 'Whether legacy backups are enabled.
* `1` Enabled.
* `0` Disabled.'
enum:
- 0
- 1
example: 0
type: integer
mailbox_format:
description: 'The storage format that the account''s email mailboxes use.
* `maildir` The account''s mail is stored in `maildir` format.
* `mbox` The account''s mail is stored in `mbox` format.'
enum:
- maildir
- mbox
example: maildir
format: mailbox_format
type: string
max_defer_fail_percentage:
description: 'The percentage of failed or deferred email messages that the account
can send per hour before outgoing mail is rate-limited.
* `unlimited`
* An integer that represents a percentage of messages.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
max_email_per_hour:
description: 'The maximum number of emails that the account can send in one hour.
* `unlimited`
* An integer that represents a number of sent emails.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
max_emailacct_quota:
description: 'The maximum size that the cPanel account can define when it creates an email account.
* `unlimited`
* A positive integer that represents the allowable maximum size of an email account, in mebibyte
(MiB).'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxaddons:
description: 'The account''s maximum number of addon domains.
* `unlimited`
* `*unknown*` The account cannot use any addon domains.
* An integer that represents a number of addon domains.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxftp:
description: 'The account''s maximum number of FTP accounts.
* `unlimited`
* An integer that represents a number of FTP accounts.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxlst:
description: 'The account''s maximum number of mailing lists.
* `unlimited`
* An integer that represents a number of mailing lists.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxparked:
description: 'The account''s maximum number of parked domains (aliases).
* `unlimited`
* `*unknown*` The account cannot use any parked domains.
* An integer that represents a number of parked domains.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxpop:
description: 'The account''s maximum number of email addresses.
* `unlimited`
* An integer that represents a number of email accounts.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxsql:
description: 'The account''s maximum number of SQL databases.
* `unlimited`
* An integer that represents a number of SQL databases.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
maxsub:
description: 'The account''s maximum number of subdomains.
* `unlimited`
* `*unknown*` The account cannot use any subdomains.
* An integer that represents a number of subdomains.'
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
min_defer_fail_to_trigger_protection:
description: 'The minimum number of failed or deferred messages that the account can send before
outgoing mail is subject to rate-limiting.
* `unlimited`
* An integer that represents a number of failed or deferred messages.'
example: '5'
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
outgoing_mail_hold:
description: 'Whether to retain outgoing mail in the mail queue for the account''s users.
* `1` Suspend and force failure of outgoing email.
* `0` Unsuspend outgoing email.'
enum:
- 0
- 1
example: 0
type: integer
outgoing_mail_suspended:
description: 'Whether to suspend outgoing email from the account''s users and force failure
of any of their mail currently in the mail queue.
* `1` - Suspend and force failure of outgoing email.
* `0` - Unsuspend outgoing email.
**Note:**
If mail for a cPanel user''s account is suspended, the system will reject their email before
the system puts it in the mail server queue.'
enum:
- 0
- 1
example: 0
type: integer
owner:
description: 'The account''s owner.
* root
* A reseller account''s username.'
example: root
format: username
type: string
partition:
description: The partition that contains the account's home directory. The name of a partition
on the server.
example: home
type: string
plan:
description: The account's hosting package. The name of a package on the server.
example: packagename
format: plan
type: string
shell:
description: The account's shell. A shell location on the server.
example: /bin/bash
format: shell
type: string
startdate:
description: 'The account creation date. The date in YY-Mon-DD HH-mm human-readable format,
where:- YY represents the year.
* `Mon` represents the month.
* `DD` represents the date.
* `HH` represents the hour.
* `mm` represents the minute.'
example: 13 May 22 16:03
format: YY-Mon-DD-HH-MM
type: string
suspended:
description: 'Whether the account is currently suspended.
* `1` Suspended.
* `0` Not suspended.'
enum:
- 0
- 1
example: 0
type: integer
suspendreason:
description: 'The reason for account suspension, if one was provided.
* `null` The account is not currently suspended.
* A blank value, if the suspender did not provide a reason.
* A message that explains the suspension.'
example: not suspended
nullable: true
type: string
suspendtime:
description: 'The time of suspension.
* `null` The account is not currently suspended.
* The time at which the account became suspended.'
example: null
nullable: true
type: string
temporary:
description: 'Whether the Customer Support Ticket process created this user for temporary access
to the system.
* `1` - Temporary user.
* `0` - Regular user.'
enum:
- 0
- 1
example: 0
type: integer
is_temporary_domain:
description: 'Whether the main domain is a temporary domain.
* `1` - The account''s main domain is a temporary domain.
* `0` - The account''s main domain is not a temporary domain.
**Note:**
For more information about temporary domains, read our [Temporary Domains](https://go.cpanel.net/cp-temporary-domain)
documentation.'
enum:
- 0
- 1
example: 0
type: integer
theme:
description: 'The account''s cPanel interface theme.
* Any valid theme on the server.'
example: jupiter
format: theme
type: string
uid:
description: The account's user ID on the system.
type: integer
unix_startdate:
description: The account creation date. The account creation date and time, in Unix time format.
example: 1369256589
format: unix_timestamp
type: integer
user:
description: The account username. A cPanel account or reseller username on the server.
example: username
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: accountsummary
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` Success
* `0` Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account summary
tags:
- Accounts
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n accountsummary \\\n user='username'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/accountsummary?api.version=1&user=username
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/acctcounts:
get:
description: This function lists a reseller's total accounts, suspended accounts, and account creation limit.
operationId: Resellers-acctcounts
parameters:
- description: A reseller's username, to query that reseller. If you do not specify a value, the function lists information
for the authenticated account.
in: query
name: user
required: false
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
reseller:
description: An object that contains information for an account.
properties:
active:
description: The number of active accounts that the reseller account owns.
example: 9
minimum: 1
type: integer
limit:
description: 'The maximum number of accounts that the reseller account may create, if a maximum
exists.
**NOTE:**
A null value indicates that the reseller does not have an account creation limit.'
example: 25
minimum: 1
nullable: true
type: integer
suspended:
description: The number of suspended accounts that the reseller account owns.
example: 5
minimum: 1
nullable: true
type: integer
user:
description: The reseller account's username or the `root` user.
example: root
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: acctcounts
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return reseller's owned accounts' information
tags:
- Resellers
- Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n acctcounts\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/acctcounts?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/activate_zone_key:
get:
description: This function activates a domain's DNSSEC security key.
operationId: DNS-activate_zone_key
parameters:
- description: The domain for which to activate a security key.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: 'The security key''s ID.
**Note:**
Use the WHM AP1 `fetch_ds_records_for_domains` function to locate the domain''s security key ID.'
in: query
name: key_id
required: true
schema:
example: 1
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: activate_zone_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable domain's DNSSEC key
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n activate_zone_key \\\n domain='example.com' \\\n key_id='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/activate_zone_key?api.version=1&domain=example.com&key_id=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/add_autossl_user_excluded_domains:
get:
description: This function disables AutoSSL for an account's specified domains.
operationId: SSL-add_autossl_user_excluded_domains
parameters:
- description: 'Disable AutoSSL for this domain.
**Note:**
To disable AutoSSL for multiple domains, increment the parameter name. For example, `domain=example.com`, `domain-1=example1.com`,
and `domain-2=example.com`.'
examples:
multiple:
description: Disable AutoSSL for multiple domains.
value:
- example.com
- example1.com
- example2.com
single:
description: Disable AutoSSL for a single domain.
value:
- example.com
explode: true
in: query
name: domain
required: true
schema:
items:
format: domain
type: string
type: array
style: form
- description: The cPanel user's account.
in: query
name: username
required: true
schema:
example: example
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: add_autossl_user_excluded_domains
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable AutoSSL for domain
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n add_autossl_user_excluded_domains \\\n username='example' \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/add_autossl_user_excluded_domains?api.version=1&username=example&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '66'
/add_configclusterserver:
post:
description: 'This function adds a server to a configuration cluster. The function''s return data appears in
the `metadata` section of its output.
We recommend that you run this function as a `POST` request with SSL enabled:
* The length of the remote access key may cause problems if you run the function with the `GET`
method (for example, a URL in your browser).
* You risk security problems if you enter a remote access key through the `GET` method.
**Important:**
* Run this function as a `root`-level user on the server that you wish to use as the parent server.
* If you log in to a configuration cluster server that is **not** the parent server, **nothing**
will indicate that the server is part of a configuration cluster. You can **only** view and modify
this information from the parent server.'
operationId: ClusterServer-add_configclusterserver
parameters:
- description: A truncated version of the server's remote access key.
in: query
name: key
required: true
schema:
example: d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0
type: string
- description: The remote configuration cluster server's name.
in: query
name: name
required: true
schema:
example: example.com
type: string
- description: The username for the server's `root`-level account.
in: query
name: user
required: true
schema:
example: root
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: add_configclusterserver
type: string
name:
description: The remote configuration cluster server's name.
example: example.com
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
signature:
description: A truncated version of the server's remote access key.
example: d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0
type: string
user:
description: The username for the server's `root`-level account.
example: root
type: string
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add configuration cluster server
tags:
- Server Administration
- Configuration Clusters
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n add_configclusterserver \\\n name='example.com' \\\n user='root' \\\n\
\ key='d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0:d0'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/add_configclusterserver?api.version=1&name=example.com&user=root&key=d0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0%3ad0
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/add_override_features_for_user:
get:
description: This function adds feature overrides to a cPanel account.
operationId: Accounts-add_override_features_for_user
parameters:
- content:
application/json:
schema:
additionalProperties:
description: 'Whether to enable or disable a feature.
* `1` — Enable.
* `0` — Disable.
**Note:**
For a list of available features, use WHM API 1''s `get_feature_names` function.'
enum:
- 1
- 0
type: integer
example:
backup: 1
type: object
description: A JSON-encoded list of features to override and whether to enable or disable them.
in: query
name: features
required: true
- description: The cPanel username.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: add_override_features_for_user
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add cPanel account feature list overrides
tags:
- Packages
- Feature Access
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n add_override_features_for_user \\\n user='username' \\\n features='{\"\
backup\":\"1\"}'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/add_override_features_for_user?api.version=1&user=username&features=%7b%22backup%22%3a%221%22%7d
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/add_zone_key:
get:
description: 'This function generates a DNSSEC zone key for a domain.
**Note:**
* Only servers that run PowerDNS can use DNSSEC. If you call this function on
a server that doesn''t use PowerDNS, you will receive an error.
* After you enable DNSSEC on the domain, you **must** add the Delegation of Signing (DS)
records to your zone record and your registrar.
* You **cannot** modify the DNSSEC security key. To make any changes, you **must** disable,
delete, and re-create the DNSSEC security key.'
operationId: DNS-add_zone_key
parameters:
- description: 'The algorithm that the system uses to generate the security key.
* `5` — RSA/SHA-1
* `6` — DSA-NSEC3-SHA1
* `7` — RSA SHA1-NSEC3-SHA1
* `8` — RSA/SHA-256
* `13` — ECDSA Curve P-256 with SHA-256
* `14` — ECDSA Curve P-384 with SHA-384
**Note:**
We recommend that you use a `13` (ECDSA Curve P-256 with SHA-256) value if
your registrar supports it.'
in: query
name: algo_num
required: true
schema:
enum:
- 5
- 6
- 7
- 8
- 13
- 14
example: 13
type: integer
- description: The domain for which to enable DNSSEC.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: 'The type of security key to add.
* `ksk` — Key Signing Key.
* `zsk` — Zone Signing Key.
**Note:**
You **must** call these values in lowercase.'
in: query
name: key_type
required: true
schema:
example: ksk
type: string
- description: 'Whether to activate the new security key.
* `1` — Activate.
* `0` — Do **not** activate.'
in: query
name: active
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: "The security key size, in bits.\n\n**Note:**\n\nThis parameter defaults to the following values, depending\
\ on the `algo_num`\nand `key_type` values:\n\n* `algo_num` = `5`\n * `ksk` = `2048`\n * `zsk` = `1024`\n* `algo_num`\
\ = `6`\n * `ksk` = `2048`\n * `zsk` = `1024`\n* `algo_num` = `7`\n * `ksk` = `2048`\n * `zsk` = `1024`\n* `algo_num`\
\ = `8`\n * `ksk` = `2048`\n * `zsk` = `1024`\n* `algo_num` = `13`\n * `ksk` and `zsk` = `256`\n* `algo_num`\
\ = `14`\n * `ksk` and `zsk` = `384`"
in: query
name: key_size
required: false
schema:
enum:
- 256
- 384
- 1024
- 2048
example: 256
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
new_key_id:
description: The security key's ID.
example: '1'
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: add_zone_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create domain's DNSSEC zone key
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n add_zone_key \\\n domain='example.com' \\\n algo_num='13' \\\n key_type='ksk'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/add_zone_key?api.version=1&domain=example.com&algo_num=13&key_type=ksk
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/adddns:
get:
description: 'This function creates a DNS zone. If `trueowner=user`, this function does the following:
* Adds a DNS entry in the `/var/cpanel/users/USER` file, where `USER` represents the `trueowner` parameter''s value.
* Creates the `/etc/vdomainaliases/DOMAIN` file, where `DOMAIN` represents the new zone''s domain.
* Creates the `/etc/vfilters/DOMAIN` file, where `DOMAIN` represents the new zone''s domain.
When you call this function, the system uses the domain name and IP address that you supply. WHM''s standard zone
template determines all other zone information.
This function generates the DNS zone''s [MX record](https://en.wikipedia.org/wiki/MX_record), [domain PTR](https://en.wikipedia.org/wiki/Reverse_DNS_lookup#Multiple_pointer_records),
and [A records](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A) automatically.
**Important:**
When you disable the [DNS role](https://go.cpanel.net/serverroles), the system **disables** this function.
**NOTE:**
You **cannot** use this function to add temporary domains.'
operationId: DNS-adddns
parameters:
- description: The new zone's domain.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: The domain's IP address.
in: query
name: ip
required: true
schema:
example: 192.168.0.20
format: ipv4
type: string
- description: The domain's IPv6 address.
in: query
name: ipv6
required: false
schema:
example: 2001:0db8:0:0:1:0:0:1
format: ipv6
nullable: true
type: string
- description: 'The zone file template.
* `standard`
* `simple`
* `standardvirtualftp`
* The name of a custom zone template file in the `/var/cpanel/zonetemplates` directory.'
in: query
name: template
required: false
schema:
default: standard
example: standard
type: string
- description: The new zone's owner. This parameter defaults to the currently-authenticated user.
in: query
name: trueowner
required: false
schema:
example: user
format: username
nullable: true
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: adddns
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Added example.com ok belonging to user user
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create DNS zone
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n adddns \\\n domain='example.com' \\\n trueowner='user' \\\n ip='192.168.0.20'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/adddns?api.version=1&domain=example.com&ip=192.168.0.20
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.28'
/addips:
get:
description: 'This function adds an IPv4 address or addresses to the server.
When you add an IP address, the system attempts to add an alias of that IP
address to the main network interface. This process rebuilds the IP address
pool, which resides in the `/etc/ipaddrpool` file. The system stores IP addresses
within the `/etc/ips` file. The `ipaliases` service activates those IP addresses
when the server starts.'
operationId: Ips-addips
parameters:
- description: 'The IPv4 address or address range
in [Class C CIDR format](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).'
examples:
ipv4:
summary: IPv4 address
value: 192.168.0.0
ipv4range:
summary: IPv4 address range
value: 192.168.0.20/28
in: query
name: ips
required: true
schema:
type: string
- description: 'The IPv4 address'' netmask.
**Note:**
If the `ips` parameter is in Class C CIDR format,
the range mask **must** be a value from `24` through `30`.'
in: query
name: netmask
required: true
schema:
example: 255.255.255.0
format: ipv4
type: string
- description: 'An IPv4 address or comma-delimited list of IPv4 addresses to exclude.
**Note:**
If you do not specify a value,
the function does not exclude any IPv4 addresses.'
examples:
multiple:
summary: Multiple IP addresses.
value: excludes=192.0.20.0,192.0.20.1
single:
summary: A single IP address.
value: 192.0.20.0
explode: false
in: query
name: excludes
required: false
schema:
type: string
style: form
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: addips
type: string
output:
properties:
messages:
description: A list of messages returned from the function.
items:
example: eth0:cp1 is now up. 192.168.0.20/255.255.255.0 broadcast 192.168.0.255 has been added.
type: string
type: array
type: object
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Success
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add IP addresses
tags:
- IP Addresses
- IPv4 Address Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n addips \\\n ips='192.168.0.0' \\\n netmask='255.255.255.0'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/addips?api.version=1&ips=192.168.0.0&netmask=255.255.255.0
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/addpkg:
get:
description: 'This function creates a hosting plan (package).
**Note:**
The [Access Control Lists](https://go.cpanel.net/GuidetoWHMPluginsAccessControlLists)
restricts some of this function''s parameters, which limit the features that
WHM users can access.'
operationId: Packages-addpkg
parameters:
- description: 'The new hosting plan''s name.
**Note:**
* You **cannot** use the name `extensions` for a hosting plan.
* You **cannot** modify hosting plan names after creation. Do **not**
include details that may change over time, such as price.'
in: query
name: name
required: true
schema:
example: package1
type: string
- description: 'A space-separated list of the hosting plan''s
[package extensions](https://go.cpanel.net/GuidetoPackageExtensions).
If you do **not** provide a value, the hosting plan will **not** include package
extensions.
**Note:**
* We **strongly** recommend that you manage package extensions through WHM API
1''s `addpkgext` and `delpkgext` functions.
* You can include the extension''s variables in your function call, in `key=value` format.
Consult the extension''s documentation for a list of possible variables.
* Extension names and variables are case-sensitive.'
in: query
name: _PACKAGE_EXTENSIONS
required: false
schema:
example: '''extension1 extension2 extension3'''
type: string
- description: 'The hosting plan''s maximum bandwidth use, in megabytes (MB).
* `0`, `unlimited`, or `null` — The hosting plan allows unlimited bandwidth.
**Note:**
The `0`, `unlimited`, and `null` values are **only** available to users that possess
the corresponding unlimited ACL permission.'
in: query
name: bwlimit
required: false
schema:
default: 1048576
example: 1048576
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited bandwidth.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'Whether CGI access is enabled for the account.
* `1` — Enabled.
* `0` — Disabled.
**Note:**
When a
[server profile](https://go.cpanel.net/whmdocsServerProfile) disables the
[Web Server role](https://go.cpanel.net/serverroles#roles), this parameter
defaults to `0`. On these servers, you **cannot** enable CGI access.'
in: query
name: cgi
required: false
schema:
default: 1
enum:
- 1
- 0
example: 1
type: integer
- description: 'The hosting plan''s cPanel theme.
This parameter defaults to the server''s
[default cPanel theme](https://go.cpanel.net/whmdocsBasicasisWebHostManagerSetup#select-a-default-theme-for-the-cpanel-interface).'
in: query
name: cpmod
required: false
schema:
example: jupiter
type: string
- description: 'Whether to enable Digest Authentication for accounts on the hosting plan.
* `1` — Enable.
* `0` — Disable.'
in: query
name: digestauth
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
- description: 'The hosting plan''s feature list.
If you do **not** use this parameter, the function assigns the `default`
feature list to the account.'
in: query
name: featurelist
required: false
schema:
default: default
example: feature_list
type: string
- deprecated: true
description: 'Whether Microsoft® FrontPage® Extensions are enabled for the account.
* `1` — Enabled.
* `0` — Disabled.
**Note:**
cPanel & WHM ignores all FrontPage settings and parameters.'
in: query
name: frontpage
required: false
schema:
default: 0
enum:
- 1
- 0
example: 0
type: integer
- description: 'Whether the hosting plan allows shell access.
* `1` — The hosting plan allows shell access.
* `0` — The hosting plan does **not** allows shell access.'
in: query
name: hasshell
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
- description: 'Whether the account has a dedicated IP address.
* `y` — The account possesses a dedicated IP address.
* `n` — The account does not possess a dedicated IP address.'
in: query
name: ip
required: false
schema:
default: n
enum:
- y
- n
example: n
type: string
- description: 'The hosting plan''s default locale, in its two-letter
[ISO-3166 code](http://www.iso.org/iso/country_codes.htm)
format.
This parameter defaults to the server''s default locale.'
in: query
name: language
required: false
schema:
example: en
format: ISO-3166-1 (alpha-2)
type: string
- description: 'The percentage of failed or deferred email messages that the hosting plan allows users
to send per hour before outgoing mail is rate-limited.
* `0` or `unlimited` — The hosting plan allows users ot send an unlimited number of
failed or deferred messages.'
in: query
name: MAX_DEFER_FAIL_PERCENTAGE
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows users ot send an unlimited number of failed or deferred messages.
enum:
- unlimited
type: string
- description: 'The maximum number of emails that the hosting plan allows users to send in one hour.
* `0` or `unlimited` — The hosting plan allows users to send an unlimited number of emails.'
in: query
name: MAX_EMAIL_PER_HOUR
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows users to send an unlimited number of emails.
enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum email account quota size, in megabytes (MB).
* `0`, `unlimited`, or `null` — The hosting plan allows unlimited email account quota.
**Note:**
The `0`, `unlimited`, and `null` values are **only** available to users that possess
the corresponding unlimited ACL permission.'
in: query
name: max_emailacct_quota
required: false
schema:
default: 1024
example: 1024
oneOf:
- maximum: 4294967296
minimum: 0
type: integer
- description: The hosting plan allows unlimited email account quota.
- enum:
- null
- enum:
- unlimited
type: string
- description: The hosting plan's maximum number of Team users.
in: query
name: max_team_users
required: false
schema:
example: 7
maximum: 7
minimum: 0
type: integer
- description: 'The hosting plan''s maximum number of addon domains.
* `unlimited` or `null` — The hosting plan allows unlimited addon domains.'
in: query
name: maxaddon
required: false
schema:
default: 0
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited addon domains.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of FTP accounts.
* `unlimited`, or `null` — The hosting plan allows unlimited FTP accounts.'
in: query
name: maxftp
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited FTP accounts.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of mailing lists.
* `unlimited`, or `null` — The hosting plan allows unlimited mailing lists.'
in: query
name: maxlst
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited mailing lists.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of parked domains (aliases).
* `unlimited` or `null` — The hosting plan allows unlimited parked domains.'
in: query
name: maxpark
required: false
schema:
default: 0
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited parked domains.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of email accounts.
* `unlimited`, or `null` — The hosting plan allows unlimited email accounts.'
in: query
name: maxpop
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited email accounts.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of each available type of SQL
database.
For example, if you set this value to `5` and the system administrator
allows MySQL® and PostgreSQL® databases, users can create up to five MySQL
databases and up to five PostgreSQL databases.
* `unlimited`, or `null` — The hosting allows unlimited databases.'
in: query
name: maxsql
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited databases.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of subdomains.
* `unlimited`, or `null` — The hosting plan allows unlimited subdomains.'
in: query
name: maxsub
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited subdomains.
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s disk space quota, in megabytes (MB).
* `0`, `unlimited`, or `null` — The hosting plan allows unlimited disk space.
**Note:**
The `0`, `unlimited`, and `null` values are **only** available to users that possess
the corresponding unlimited ACL permission.'
in: query
name: quota
required: false
schema:
default: 10240
example: 10240
oneOf:
- maximum: 999999
minimum: 0
type: integer
- description: The hosting plan allows unlimited disk space.
- enum:
- null
- enum:
- unlimited
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pkg:
description: The new hosting plan's name.
example: package1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: addpkg
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create hosting plan
tags:
- Packages
- Hosting Plans
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n addpkg \\\n name='package1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/addpkg?api.version=1&name=package1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/addpkgext:
get:
description: "This function adds a package extension to a hosting plan (package).\n\n**Notes:**\n\n* If you need to\
\ edit a package extension's parameters, call this function again\nwith the same package extension name and the updated\
\ package extension variables.\n\n* You can include the extension's variables in your function call, in `key=value`\
\ format.\n Consult the extension's documentation for a list of possible variables. Extension variables\n are case-sensitive."
operationId: Packages-addpkgext
parameters:
- description: 'The hosting plan''s
[package extensions](https://go.cpanel.net/GuidetoPackageExtensions).
**Note:**
* Use space-delimited format to add multiple package extensions.
* Extension names are case-sensitive.'
examples:
multiple:
summary: Add multiple package extensions.
value: extension1 extension2 extension3
single:
summary: Add a single package extension.
value: extension1
explode: false
in: query
name: _PACKAGE_EXTENSIONS
required: true
schema:
type: string
style: spaceDelimited
- description: 'The hosting plan''s name.
**Note:**
You **cannot** use the `extensions` name for a hosting plan.'
in: query
name: name
required: true
schema:
example: package1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pkg:
description: The hosting plan's name.
example: package1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: addpkgext
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add hosting plan extension
tags:
- Packages
- Hosting Plan Extensions
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n addpkgext \\\n name='package1' \\\n _PACKAGE_EXTENSIONS='extension1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/addpkgext?api.version=1&name=package1&_PACKAGE_EXTENSIONS=extension1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/addzonerecord:
post:
description: "This function adds a DNS zone record.\n\n**Important:**\n\n* When you call this function, you **must**\
\ include the additional parameters for the selected zone record type.\n* When you disable the [DNS role](https://go.cpanel.net/serverroles#roles),\
\ the system **disables** this function.\n\n**Note:**\n\nOn servers that run CentOS 7, you may see a `named` warning\
\ about the absence of SPF resource records on DNS.\n * This warning is **not** relevant on CentOS 7 servers, because\
\ [RFC 7208 deprecated SPF records](https://tools.ietf.org/html/rfc7208). CentOS 7 servers use TXT records instead\
\ of SPF records.\n * Red Hat 7.1 and CentOS 7.1 both contain `bind-9.9.4-23.el7`, which is an updated version of\
\ BIND that complies with RFC 7208. To resolve this issue, update your operating system to a version that contains\
\ the updated version of BIND. For more information, read the [Red Hat Bugzilla case about SPF record errors](https://bugzilla.redhat.com/show_bug.cgi?id=1215164)."
operationId: DNS-addzonerecord
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/DnsAddZoneParameterType'
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: addzonerecord
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: 'Bind reloading on hostname using rndc zone: [example.com]
'
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create DNS zone record
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --input=json --output=jsonpretty \\\n addzonerecord\n"
- label: HTTP Request (Wire Format)
lang: HTTP
source: 'POST /cpsess##########/json-api/addzonerecord HTTP/1.1
Host: example.com:2083
Cookie: ###################################
Content-Type: application/json
Content-Length: 0
'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/allow_all_whm_root_access:
get:
description: This function removes all restrictions to root login to cPanel & WHM login based on IP.
operationId: RootIPAccess-allow_all_whm_root_access
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: allow_all_whm_root_access
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Clear all CIDR restrictions to login to cPanel & WHM with the root password.
tags:
- WHM Access
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n allow_all_whm_root_access\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/allow_all_whm_root_access?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '108'
/analyze_transfer_session_remote:
get:
description: This function checks the remote server's credentials, which a transfer session uses to connect.
operationId: Transfers-analyze_transfer_session_remote
parameters:
- description: The transfer session's ID.
in: query
name: transfer_session_id
required: true
schema:
example: exampleservercopya20140206192428NtyW
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: analyze_transfer_session_remote
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate remote server's credentials
tags:
- Transfers
- Transfer Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n analyze_transfer_session_remote \\\n transfer_session_id='exampleservercopya20140206192428NtyW'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/analyze_transfer_session_remote?api.version=1&transfer_session_id=exampleservercopya20140206192428NtyW
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/api_token_create:
get:
description: 'This function creates an API token. You can use API tokens instead of a password
or access hash key to execute WHM API 1 functions over HTTPS. For more information
about API tokens, read our
[Manage API Tokens in WHM](https://docs.cpanel.net/whm/development/manage-api-tokens-in-whm/)
documentation.
**Important:**
You **must** call this function over an SSL connection.'
operationId: Tokens-api_token_create
parameters:
- description: 'The API token''s name.
**Note:**
* An API token name''s maximum length is 50 characters, and the name may **only**
contain alphanumeric characters, dashes (`-`), and underscores (`_`).
* You **must** assign a name that does **not** already exist to the API token.'
in: query
name: token_name
required: true
schema:
example: example
type: string
- description: 'The privileges to assign to the token. If you do not use this parameter, the system
assigns **all** of your privileges to the token.
**Note:**
* You can **only** assign privileges that you possess to the API token.
* To assign multiple privileges to the token, increment the parameter name. For
example: `acl-0`, `acl-1`, `acl-2`.'
examples:
multiple:
summary: Assign multiple privileges.
value: acl-0=create-acct acl-1=list-accts acl-2=kill-acct
single:
summary: Assign a single privilege.
value: all
in: query
name: acl
required: false
schema:
type: string
- description: "The API token's expiration time. If you do not use this parameter, the\nAPI token will not expire.\n\
\n* A date, in [Unix Epoch format](http://en.wikipedia.org/wiki/Unix_time).\n* `0` — The API token will **not**\
\ expire.\n\n**Important:**\n\n When an API token expires, the system **does** not delete it. You **must**\n manually\
\ delete expired API tokens."
in: query
name: expires_at
required: false
schema:
default: 0
example: 1609372800
type: integer
- description: 'One or more optional remote IP or CIDR IP ranges this token may be used from. If you do not use this
parameter, the system
does not limit which IPs can use this token.
**Note:**
* To assign multiple whitelisted IPs to the token, increment the parameter name. For
example: `whitelist_ip-0`, `whitelist_ip-1`, `whitelist_ip-2`.'
examples:
multiple:
summary: Assign multiple IP or CIDR ranges.
value: whitelist_ip-0=192.0.2.1 whitelist_ip-1=192.0.2.5 whitelist_ip-2=192.0.2.8/29 whitelist-ip-3=fc00:abcd::f
whitelist-ip-4=2620:0:28a4::/48
single:
summary: Assign a single IP or CIDR range.
value: 192.0.2.8/29
in: query
name: whitelist_ip
required: false
schema:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
acls:
description: An array of privileges that the token possesses.
items:
example: kill-acct
type: string
type: array
create_time:
description: The API token's creation time, in Unix time format.
example: 1483625276
format: unix_timestamp
type: integer
expires_at:
description: 'The API token''s expiration time.
* A valid timestamp, in Unix time format.
* A `null` value.'
example: 1609372800
format: unix_timestamp
nullable: true
type: integer
name:
description: 'The new API token''s name.
**Note:**
Use this value to revoke an API token with WHM API 1''s
`api_token_revoke` function.'
example: example
type: string
token:
description: 'The new API token to use to authenticate to WHM.
**Warning:**
Make **certain** that you save your API token in a safe location.
You **cannot** access the token again after you use this function.'
example: UWU28DCA23NKY76CN17MDPKM3O7EFQY8
type: string
whitelist_ips:
description: List of remote IP or CIDR IP ranges this token may be used from.
example:
- 1.1.1.1
- 1.1.1.2
- 1.1.1.8/29
- fc00:abcd:0000:0000:0000:0000:0000:000f
- 2620:0000:28a4:0000:0000:0000:0000:0000/48
items:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
nullable: true
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: api_token_create
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create WHM API token
tags:
- Authentication
- API Token Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n api_token_create \\\n token_name='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/api_token_create?api.version=1&token_name=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/api_token_get_details:
get:
description: This function looks up an API token’s details based on the token itself.
operationId: Tokens-api_token_get_details
parameters:
- description: The API token.
in: query
name: token
required: true
schema:
example: GVJWD78FF12NMBFKYKPS9BJ483C0XSQH
type: string
responses:
'200':
content:
application/json:
schema:
anyOf:
- properties:
data:
allOf:
- description: The API token’s details. Only present if the system recognizes the given `token`.
- $ref: '#/components/schemas/TokenDetails'
metadata:
$ref: '#/components/schemas/Metadata'
title: Token Recognized
type: object
- properties:
metadata:
$ref: '#/components/schemas/Metadata'
title: Token Unrecognized
type: object
description: HTTP Request was successful.
summary: Look up API token details
tags:
- Authentication
- API Token Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n api_token_get_details \\\n token=GVJWD78FF12NMBFKYKPS9BJ483C0XSQH\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/api_token_get_details?api.version=1&token=GVJWD78FF12NMBFKYKPS9BJ483C0XSQH
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: 98
/api_token_list:
get:
description: This function lists a WHM account's API tokens.
operationId: Tokens-api_token_list
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
tokens:
additionalProperties:
description: An object of API token details.
properties:
acls:
additionalProperties:
description: 'Whether the Access Control List (ACL) is enabled.
* `1` - The ACL is enabled.
* `0` - The ACL is disabled.
**Note**
The property name should be an [ACL](https://go.cpanel.net/ACLReferenceChart).'
enum:
- 0
- 1
example: 1
type: integer
description: An object of privileges available to the user.
create_time:
description: The API token's creation time.
example: 1483625276
format: unix_timestamp
type: integer
expires_at:
description: The API token's expiration time. If the API token does not expire, the value is
`null`.
example: 1609372800
format: unix_timestamp
nullable: true
type: integer
name:
description: The API token's name.
example: my-token-name
type: string
whitelist_ips:
description: List of remote IP or CIDR IP ranges this token may be used from.
example:
- 192.0.2.1
- 192.0.2.2
- 192.0.2.8/29
- fc00:abcd:0000:0000:0000:0000:0000:000f
- 2620:0000:28a4:0000:0000:0000:0000:0000/48
items:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
nullable: true
type: array
description: An object that contains WHM account's API token names.
example:
my-controller-token:
acls:
create-acct: 0
edit-account: 0
limit-bandwidth: 1
list-accts: 1
suspend-acct: 1
upgrade-account: 0
create_time: 1483625276
expires_at: 1609372800
name: my-controller-token
whitelist_ips:
- 192.0.2.1
- 192.0.2.2
- 192.0.2.8/29
- fc00:abcd:0000:0000:0000:0000:0000:000f
- 2620:0000:28a4:0000:0000:0000:0000:0000/48
my-read-only-token:
acls:
create-acct: 0
edit-account: 0
limit-bandwidth: 0
list-accts: 1
suspend-acct: 0
upgrade-account: 0
create_time: 1490882281
expires_at: null
name: my-read-only-token
whitelist_ips: null
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: api_token_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return WHM API tokens
tags:
- Authentication
- API Token Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n api_token_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/api_token_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/api_token_revoke:
get:
description: This function revokes an API token from the WHM account.
operationId: Tokens-api_token_revoke
parameters:
- description: 'The API token''s name.
**Note:**
To revoke multiple API tokens, increment this parameter''s name. For example: `token_name-1`, `token_name-2`, and
`token_name-3`.'
examples:
multiple:
summary: Revoke multiple API tokens.
value: token_name-1=subway&token_name-2=job&token_name-3=jmkMRXBnhp20iz
single:
summary: Revoke a single API token.
value: subway
in: query
name: token_name
required: true
schema:
example: subway
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: api_token_revoke
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable WHM API token
tags:
- Authentication
- API Token Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n api_token_revoke \\\n token_name='subway'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/api_token_revoke?api.version=1&token_name=subway
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/api_token_update:
get:
description: This function updates an API token's settings.
operationId: Tokens-api_token_update
parameters:
- description: The API token's name.
in: query
name: token_name
required: true
schema:
example: token
type: string
- description: 'The new privileges to assign to the token. If you do **not** use this parameter,
the system will assign all of your privileges to the token.
For a list of Access Control List (ACL) privileges, read our
[Edit Reseller Nameservers and Privileges](https://docs.cpanel.net/whm/resellers/edit-reseller-nameservers-and-privileges/#feature-limits-acl-lists)
documentation.
**Note:**
* You can **only** assign privileges that you possess to the API token.
* The function replaces **all** current privileges with the privileges that you pass
in this parameter.
* To assign multiple privileges to the token, increment the parameter name.
For example, `acl-1`, `acl-2`, `acl-3`.'
examples:
multiple:
summary: Assign multiple privilges.
value: acl-0=create-acct acl-1=list-accts acl-2=kill-acct
single:
summary: Assign a single privilege.
value: all
in: query
name: acl
required: false
schema:
type: string
- description: 'The API token''s expiration time. If you do not use this parameter,
the API token will **not** expire.
* A date, in [Unix Epoch format](http://en.wikipedia.org/wiki/Unix_time).
* `0` — The API token will **not** expire.
**Important:**
When an API token expires, the system does **not** delete it. You **must**
manually delete expired API tokens.'
in: query
name: expires_at
required: false
schema:
default: 0
example: 1609372800
format: unix_timestamp
type: integer
- description: 'The API token''s new name. If you do not use this parameter, the API token''s name
remains the same.
**Note:**
* An API token name''s maximum length is 50 characters, and the name may **only**
contain alphanumeric characters, dashes (`-`), and underscores (`_`).
* You **must** assign a name that does **not** already exist to the API token.'
in: query
name: new_name
required: false
schema:
example: example
maxLength: 50
type: string
- description: 'The new remote IP or CIDR IP ranges to assign to this token. If you do not use this parameter, the system
does not limit which IPs can use this token.
**Note:**
* The function replaces **all** current whitelisted IPs with the IPs you pass
in this parameter.
* To assign multiple whitelisted IPs to the token, increment the parameter name. For
example: `whitelist_ip-0`, `whitelist_ip-1`, `whitelist_ip-2`.
* If a token has whitelisted IPs set, they can be cleared by passing `whitelist_ip=any` as a parameter.
This will allow any IP to make API calls using that token.'
examples:
clear:
summary: Clear a token's whitelisted IPs list.
value: whitelist_ip=any
multiple:
summary: Assign multiple IPs or CIDR ranges.
value: whitelist_ip-0=192.0.2.1 whitelist_ip-1=192.0.2.5 whitelist_ip-2=192.0.2.8/29 whitelist-ip-3=fc00:abcd::f
whitelist-ip-4=2620:0:28a4::/48
single:
summary: Assign a single IP or CIDR range.
value: whitelist_ip=192.0.2.8/29
in: query
name: whitelist_ip
required: false
schema:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
- enum:
- any
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
acls:
description: A list of privileges assigned to the token.
example:
- create-acct
- kill-acct
- list-accts
items:
type: string
type: array
create_time:
description: The API token's creation time.
example: 1483625276
format: unix_timestamp
type: integer
expires_at:
description: 'The API token''s expiration time.
**Note:**
A `null` value means that the API token does **not** expire.'
example: 1609372800
format: unix_timestamp
nullable: true
type: integer
name:
description: 'The API token''s name.
**Note:**
* This function returns the API token''s new name when you use
the `new_name` parameter.
* Use this value to revoke an API token with WHM API 1''s `api_token_revoke`
function.'
example: example
type: string
whitelist_ips:
description: List of remote IP or CIDR IP ranges this token may be used from.
example:
- 192.0.2.1
- 192.0.2.2
- 192.0.2.8/29
- fc00:abcd:0000:0000:0000:0000:0000:000f
- 2620:0000:28a4:0000:0000:0000:0000:0000/48
items:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
- format: cidr
type: string
nullable: true
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: api_token_update
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` – Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update WHM API token's settings
tags:
- Authentication
- API Token Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n api_token_update \\\n token_name='token'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/api_token_update?api.version=1&token_name=token
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/applist:
get:
description: This function lists available WHM API 1 functions.
operationId: Other-applist
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
app:
description: An array of available WHM API 1 functions.
example:
- accountsummary
- listaccts
items:
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: applist
type: string
reason:
description: The reason the api failed when the metadata.result field is 0. The field may be set to
a success message on a successful call.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the api call.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return WHM API 1 functions list
tags:
- Applications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n applist\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/applist?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/apply_dmarc:
get:
description: "This function applies a DMARC record to the specified domain(s).\n\n**Note:**\n\n You **cannot** modify\
\ DMARC records on temporary domains."
operationId: EmailAuth-apply_dmarc
parameters:
- description: 'The DMARC record to apply to the requested domains.
**Note:**
When using multiple policies, each policy must have a matching domain.
When using a single policy, it will be applied to all specified domains.
Visit the following link for more information about the DMARC record specification: https://dmarc.org/resources/specification/'
examples:
multiple:
summary: To apply multiple DMARC policies, duplicate the policy arguments.
value: policy="v=DMARC1; p=none;" policy="v=DMARC1; p=reject;" policy="v=DMARC1; p=quarantine;"
single:
summary: To apply a single DMARC record to domains, specify a single policy.
value: policy="v=DMARC1;p=reject;pct=100;rua=mailto:postmaster@example.com"
in: query
name: policy
required: true
schema:
type: string
- description: "The domain for which to apply the DMARC record.\n\n**Note:**\n\n To apply multiple domain DMARC records,\
\ duplicate the parameter name. For example, use the `domain=example-1.com`, `domain=example-2.com`, and `domain=example-3.com`\
\ parameters.\n\n If you do not include this argument, the system applies the DMARC record to **all** domains on\
\ the system."
examples:
multiple:
summary: To apply multiple DMARC records
value: domain=example-1.com domain=example-2.com domain=example-3.com
single:
summary: To apply a single domain DMARC record
value: example.com
in: query
name: domain
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains information about the DMARC records applied to domains.
items:
properties:
domain:
description: The domain for which the DMARC record was applied.
example: example.com
format: domain
type: string
msg:
description: The domain's DMARC record status message.
example: '[ADD:TXT@_dmarc.example.com:v=DMARC1; p=reject;]'
type: string
status:
description: 'Whether the system applied a DMARC record to the domain.
* `1` - The system applied a DMARC record.
* `0` - The system did **not** apply a DMARC record.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: apply_dmarc
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Apply a DMARC record to a domain
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n apply_dmarc \\\n domain='example.com' \\\n policy='v=DMARC1; p=reject;'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/apply_dmarc?api.version=1&domain=example.com&policy='v=DMARC1;
p=reject;'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '124'
/assign_account_enhancement:
get:
description: This function assigns an Account Enhancement to a cPanel account.
operationId: AccountEnhancements-assign_account_enhancement
parameters:
- description: The username of the account.
in: query
name: account
required: true
schema:
example: username
format: username
type: string
- description: The name of the account enhancement.
in: query
name: name
required: true
schema:
example: enhancement 5000
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: assign_account_enhancement
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Assign Account Enhancement
tags:
- Account Enhancements
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n assign_account_enhancement \\\n account='username' \\\n name='enhancement\
\ 5000'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/assign_account_enhancement?api.version=1&account=username&name=enhancement%205000
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.98'
/authorizesshkey:
get:
description: 'This function authorizes a public SSH key to access the server.
When you call this function, it adds the key to the `/root/.ssh/authorized_keys` file.
**Warning:**
* Do **not** transfer private keys over insecure ports.
* Only `root` and `root`-enabled resellers can use this function, and it only affects
the `root` public SSH keys. To perform this function on a regular user account, call
the cPanel API 2 `SSH::authkey` function via the WHM API. For more information, read our
[Use WHM API to Call cPanel API and UAPI](https://go.cpanel.net/UseWHMAPItoCallcPanelAPIandUAPI)
documentation.'
operationId: SSH-authorizesshkey
parameters:
- description: 'Whether to authorize the public SSH key to access the server.
* `1` — Authorize.
* `0` — Do **not** authorize.'
in: query
name: authorize
required: true
schema:
enum:
- 1
- 0
example: 1
type: integer
- description: 'The public SSH key file''s name.
**Note:**
* This file **must** exist in the `/root/.ssh` directory.
* If you call **both** the `file` and the `text` parameters, the function **ignores**
the `file` parameter.'
in: query
name: file
required: true
schema:
example: sshkey.pub
type: string
- description: 'The text of the SSH public key file.
**Note:**
* If you call **both** the `file` and the `text` parameters, the function **ignores**
the `file` parameter.'
in: query
name: text
required: true
schema:
example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCys7JbGhkAZ8E4Pmq8D4EBm1UedKK2oMhs3RVIEFRJX6S86Itw6Qmhds62LNGrxuVL11W6v25+maIiBhXnslyQpd838tHyAC7J/SJojDid8acovX/4xgJQaJHLAh9tLgyQXnNhIxIGJ4nVZ+8OqM2Vb1Cps+E5H17ivG07PXnVPEvwMaeWkm2DnGgSy5kmjVpNKlj9GWFCn/SJd7up7QnbGKoz87pxKDs3esp+ziuPEAJHLeXnKHWPVukQgtRUpUBdqkCvu5hUkhpaiWmBR8yxajkxbSObPw+ZkELhmm+fQseOfEbrwToMRJCO7gAKwBtNi7OhyFM7YFrvdo0xh6cn
type: string
- description: 'A comma-separated list of options to include with the public SSH key.
For a list of options, read the
[OpenBSD manaual](https://man.openbsd.org/sshd.8#AUTHORIZED_KEYS_FILE_FORMAT).
This parameter defaults to no options.'
in: query
name: options
required: false
schema:
example: agent-forwarding,cert-authority
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
authorized:
description: 'Whether the public SSH key has authorization.
* `1` — Authorized.
* `0` — **Not** authorized.'
enum:
- 1
- 0
example: 1
type: integer
file:
description: The public SSH key file's name.
example: sshkey.pub
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: authorizesshkey
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable SSH key for server
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n authorizesshkey \\\n file='sshkey.pub' \\\n text='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCys7JbGhkAZ8E4Pmq8D4EBm1UedKK2oMhs3RVIEFRJX6S86Itw6Qmhds62LNGrxuVL11W6v25+maIiBhXnslyQpd838tHyAC7J/SJojDid8acovX/4xgJQaJHLAh9tLgyQXnNhIxIGJ4nVZ+8OqM2Vb1Cps+E5H17ivG07PXnVPEvwMaeWkm2DnGgSy5kmjVpNKlj9GWFCn/SJd7up7QnbGKoz87pxKDs3esp+ziuPEAJHLeXnKHWPVukQgtRUpUBdqkCvu5hUkhpaiWmBR8yxajkxbSObPw+ZkELhmm+fQseOfEbrwToMRJCO7gAKwBtNi7OhyFM7YFrvdo0xh6cn'\
\ \\\n authorize='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/authorizesshkey?api.version=1&file=sshkey.pub&text=ssh-rsa%20AAAAB3NzaC1yc2EAAAADAQABAAABAQCys7JbGhkAZ8E4Pmq8D4EBm1UedKK2oMhs3RVIEFRJX6S86Itw6Qmhds62LNGrxuVL11W6v25%2bmaIiBhXnslyQpd838tHyAC7J%2fSJojDid8acovX%2f4xgJQaJHLAh9tLgyQXnNhIxIGJ4nVZ%2b8OqM2Vb1Cps%2bE5H17ivG07PXnVPEvwMaeWkm2DnGgSy5kmjVpNKlj9GWFCn%2fSJd7up7QnbGKoz87pxKDs3esp%2bziuPEAJHLeXnKHWPVukQgtRUpUBdqkCvu5hUkhpaiWmBR8yxajkxbSObPw%2bZkELhmm%2bfQseOfEbrwToMRJCO7gAKwBtNi7OhyFM7YFrvdo0xh6cn&authorize=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/available_transfer_modules:
get:
description: "This function lists all available transfer modules.\n\n**Note:**\n\n For more information about how this\
\ function works with other functions in the transfer and restore process, read our\n [Guide to Transfer and Restore\
\ API Functions](https://go.cpanel.net/transferrestoreAPIguide)\n documentation."
operationId: Transfers-available_transfer_modules
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
modules:
additionalProperties:
description: 'The priority of the transfer module.
**Note:**
The key is the transfer module''s name.'
example: '6000'
pattern: ^[1-9][0-9]*$
type: string
description: The transfer module's information.
example:
AccountLocal: '5000'
AccountRemoteRoot: '3000'
AccountRemoteUser: '4000'
FeatureListRemoteRoot: '1000'
LegacyAccountBackup: '6000'
PackageRemoteRoot: '2000'
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: available_transfer_modules
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available transfer modules
tags:
- Transfers
- Transfer Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n available_transfer_modules\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/available_transfer_modules?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/background_mysql_upgrade_checker_run:
get:
description: 'This function checks your MySQL configuration file and table engine before an upgrade to MySQL 8.0.
**Important:**
When you disable the
[MySQL/MariaDB role](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles)
**and** remote MySQL is **not** already configured, the system **disables** this function.'
operationId: Mysql-background_mysql_upgrade_checker_run
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
log_entry:
description: 'The upgrade log''s location, relative to the
[`/var/cpanel/logs/`](https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-log-files/#/var-cpanel-logs)
directory.'
example: mysql_upgrade.20200202-172923
type: string
pid:
description: The upgrade check's process ID.
example: 23456
minimum: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: background_mysql_upgrade_checker_run
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate MySQL status before upgrade
tags:
- Databases
- Manage MySQL Server
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n background_mysql_upgrade_checker_run\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/background_mysql_upgrade_checker_run?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/background_mysql_upgrade_status:
get:
description: "This function retrieves the status of a background MySQL® or MariaDB® upgrade.\n\n**Important:**\n\n \
\ When you disable the [MySQL/MariaDB](https://go.cpanel.net/serverroles) role and remote MySQL is **not** already\
\ configured, the system **disables** this function."
operationId: Mysql-background_mysql_upgrade_status
parameters:
- description: "The logfile's name.\n\n**Note:**\n\n Log files exist in the `/var/cpanel/logs/` directory."
in: query
name: upgrade_id
required: true
schema:
example: mysql_upgrade.20141108-172923
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
error:
description: 'An error code.
* `0` — Successful upgrade.
* `-1` — Child process died from a signal.
* `4` — MySQL upgrade failed error code.'
example: 0
type: integer
error_log:
description: "The upgrade's error log file.\n\n**Note:**\n\n You can review MySQL upgrade error logs\
\ in the following location, where $TIME represents the time in [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time)\
\ format: `/var/cpanel/logs/mysql_upgrade.$TIME/unattended_background_upgrade.error`."
example: Starting The system failed to update MYSQL,\n------------------------------------\n
type: string
log:
description: The upgrade's log file.
example: "Starting process with log file at /var/cpanel/logs/mysql_upgrade.20141108-172923/unattended_background_upgrade.log\n\
Beginning MariaDB 10.0 upgrade...\nObtained version information from system.\nEnsuring the MariaDB100\
\ repository is available and working.\ncheckyum version 22.3\nEnsuring that the package MariaDB-client\
\ with version matching 10.0 is available.\nEnsuring that the package MariaDB-common with version\
\ matching 10.0 is available.\nEnsuring that the package MariaDB-devel with version matching 10.0\
\ is available.\nEnsuring that the package MariaDB-server with version matching 10.0 is available.\n\
Ensuring that the package MariaDB-shared with version matching 10.0 is available.\nEnsuring that\
\ the package coreutils is available.\nEnsuring that the package grep is available.\nEnsuring that\
\ the package perl-DBI is available.\n your MariaDB server version for the right syntax to use near\
\ ''.`netcopya0I5KfqYTfHqJr` FOR UPGRADE'' at line 1 when executing ''CHECK TABLE ... FOR UPGRADE''\n\
FATAL ERROR: Upgrade failed\nDone building configuration.\nHooks system enabled.\nChecking for and\
\ running RPM::Versions ''post'' hooks for any RPMs about to be installed\nAll required ''post''\
\ hooks have been run\nRunning: /usr/local/cpanel/scripts/check_cpanel_pkgs --targets=MySQL41,MySQL50,MySQL51,MySQL55,MySQL56,MariaDB100,MariaDB101\
\ --fix\nRestarting mysql service.\nWaiting for mysql to restart waiting for mysql to initialize\
\ finished.\n\e[1;32mMariaDB upgrade completed successfully\e[0m\n------------------------------------\n"
type: string
state:
description: 'The upgrade''s state.
* success
* failed
* in progress'
enum:
- success
- failed
- in progress
example: success
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: background_mysql_upgrade_status
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return MySQL or MariaDB upgrade status
tags:
- Databases
- Manage MySQL Server
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n background_mysql_upgrade_status \\\n upgrade_id='mysql_upgrade.20141108-172923'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/background_mysql_upgrade_status?api.version=1&upgrade_id=mysql_upgrade.20141108-172923
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: cPanel 11.48
/backup_config_get:
get:
description: This function retrieves your backup destination configuration file data.
operationId: Backup-backup_config_get
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
backup_config:
description: A list of backup configuration data.
properties:
backup_daily_enable:
description: 'Whether daily backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
backup_daily_retention:
description: The number of retained daily backups.
example: 5
minimum: 1
type: integer
backup_monthly_dates:
description: A comma-seprated list of the days of the month on which the system runs monthly backups.
example: 1,15,22
type: string
backup_monthly_enable:
description: 'Whether monthly backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
backup_monthly_retention:
description: The number of retained monthly backups.
example: 5
minimum: 1
type: integer
backup_weekly_day:
description: 'The day of the week on which the system runs weekly backups.
* `0` — Sunday.
* `1` — Monday.
* `2` — Tuesday.
* `3` — Wednesday.
* `4` — Thursday.
* `5` — Friday.
* `6` — Saturday.'
example: 1,3,5
type: string
backup_weekly_enable:
description: 'Whether weekly backups are enabled.
* `1` — Enable.
* `0` — Disable.'
enum:
- 0
- 1
example: 0
type: integer
backup_weekly_retention:
description: The number of retained weekly backups.
example: 4
minimum: 1
type: integer
backupaccts:
description: 'Whether to back up accounts.
* `1` — Back up.
* `0` — Do **not** back up.
**Note:**
This setting affects whether the system enables the *File and
Directory Restoration* interface in cPanel & WHM. For more
information, read the
[How to Manage Metadata Settings](https://go.cpanel.net/MetadataSettings)
documentation.'
enum:
- 1
- 0
example: 1
type: integer
backupbwdata:
description: 'Whether bandwidth tracking data backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
backupdays:
description: 'The days of the week on which the system runs daily backups.
* `0` — Sunday.
* `1` — Monday.
* `2` — Tuesday.
* `3` — Wednesday.
* `4` — Thursday.
* `5` — Friday.
* `6` — Saturday.'
example: 0,2,4,6
type: string
backupdir:
description: The aboslute file path to the server's local backup directory.
example: /backup
type: string
backupenable:
description: 'Whether backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 1
- 0
example: 1
type: integer
backupfiles:
description: 'Whether system file backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
backuplogs:
description: 'Whether error log backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
backupmount:
description: 'Whether the system mounts backup partitions as part of the
backup process.
* `1` — Mounted.
* `0` — **Not** mounted.
**Note:**
This setting affects whether the system enables the *File and
Directory Restoration* interface in cPanel & WHM. For more
information, read the
[How to Manage Metadata Settings](https://go.cpanel.net/MetadataSettings)
documentation.'
enum:
- 0
- 1
example: 0
type: integer
backupsuspendedaccounts:
description: 'Whether suspended account backups are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
backuptype:
description: 'The type of backup file the system creates.
* `compressed` — A compressed `.tar` file.
* `uncompressed` — An uncompressed `.tar` file.
* `incremental` — A full tree of files and directories.'
enum:
- compressed
- uncompressed
- incremental
example: compressed
type: string
check_min_free_space:
description: 'Whether the system performs a check of the minimum free disk space
available on the destination server.
* `1` — Check the free disk space on the destination server.
* `0` — Do **not** check the free disk space on the destination
server.'
enum:
- 0
- 1
example: 1
type: integer
disable_metadata:
description: 'Whether the backup system creates metadata when a backup runs.
* `1` — Disables metadata creation.
* `0` — Enables metadata creation.'
enum:
- 1
- 0
example: 0
type: integer
errorthreshhold:
description: The number of times that the system attempts to use the additional backup destination.
example: 3
minimum: 1
type: integer
force_prune_daily:
description: 'Whether the `backup_daily_retention` parameter is strictly enforced.
* `1` — Enforced.
* `0` — The system **only** enforces the `backup_daily_retention`
setting after a backup successfully completes.'
enum:
- 0
- 1
example: 0
type: integer
force_prune_monthly:
description: 'Whether the `backup_monthly_retention` parameter is strictly enforced.
* `1` — Enforced.
* `0` — The system **only** enforces the `backup_monthly_retention`
setting after a backup successfully completes.'
enum:
- 0
- 1
example: 0
type: integer
force_prune_weekly:
description: 'Whether the `backup_weekly_retention` parameter is strictly enforced.
* `1` — Enforced.
* `0` — The system **only** enforces the `backup_weekly_retention`
setting after a backup successfully completes.'
enum:
- 0
- 1
example: 0
type: integer
gziprsyncopts:
description: The environment variables passed to the `gzip` application. The system uses these
variables to adjust how the `gzip` application runs when compressing backups.
example: --rysncable
type: string
keeplocal:
description: 'Whether the system deletes backups from the local directory.
* `1` — The system does not delete backups from the local backup
directory.
* `0` — The system **deletes** backups from the local
directory.
**Note:**
The `backupdir` return value contains the local backup directory.'
enum:
- 0
- 1
example: 1
type: integer
linkdest:
description: 'Whether the system checks the `rsync` function for hardlink support.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
localzonesonly:
description: 'Whether the system uses a local zone file from the `dnsadmin` daemon
or `/var/named/domain.tld` file, where `domain.tld` is the target domain.
* `1` — The system uses the `/var/named/domain.tld` file.
* `0` — The system uses the `dnsadmin` daemon.'
enum:
- 0
- 1
example: 0
type: integer
maximum_restore_timeout:
description: The maximum interval, in seconds, that the restoration attempts a run to completion.
If the restoration takes longer than this interval, the system terminates the restoration.
example: 21600
minimum: 1
type: integer
maximum_timeout:
description: The maximum interval, in seconds, that the backup attempts a run to completion. If
the backup takes longer than this interval, the system terminates the backup.
example: 7200
minimum: 1
type: integer
min_free_space:
description: The minimum amount of free disk space the system checks for on the destination server
before attempting a backup to that server.
example: 1024
minimum: 1
type: integer
min_free_space_unit:
description: 'The unit of measure of disk space for the `min_free_space` return.
* `MB` — Megabytes.
* `percent` — Percentages.'
enum:
- MB
- percent
example: MB
type: string
mysqlbackup:
description: 'The method that the system uses to back up MySQL® databases.
* `accounts` — Backs up databases into each account''s archive.
* `dir` — Backs up the entire MySQL directory.
* `both` — Back up databases into each account''s archive **and**
the entire MySQL directory.'
example: accounts
type: string
postbackup:
description: 'Whether the `/usr/local/cpanel/scripts/postcpbackup` script runs
after the backup completes.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
prebackup:
description: 'Whether the `/usr/local/cpanel/scripts/precpbackup` script runs before
the system processes backups.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
psqlbackup:
description: 'Whether backups of PostgreSQL® databases are enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 0
type: integer
remote_restore_staging_dir:
description: 'The directory on the local server where the system temporarily
stores a remote server''s backup file during a backup restoration.'
example: /backup
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_config_get
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup configuration file data
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_config_get\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_config_get?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_config_set:
get:
description: This function configures a server's backup system. The system saves these settings in the `/var/cpanel/backups/config`
file.
operationId: Backup-backup_config_set
parameters:
- description: 'Whether to enable daily backups.
* `1` — Enable.
* `0` — Disable.'
in: query
name: backup_daily_enable
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: The number of daily backups to retain.
in: query
name: backup_daily_retention
required: false
schema:
default: 5
example: 5
minimum: 0
type: integer
- description: 'Which days of the month to run backups.
**Note:**
To add multiple days, use a comma-delimited list.'
in: query
name: backup_monthly_dates
required: false
schema:
default: 1
example: 1
maximum: 31
minimum: 1
type: integer
- description: 'Whether to enable monthly backups.
* `1` — Enable.
* `0` — Disable.'
in: query
name: backup_monthly_enable
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: The number of monthly backups to retain.
in: query
name: backup_monthly_retention
required: false
schema:
default: 1
example: 5
minimum: 0
type: integer
- description: 'Which day of the week to run weekly backups.
* `0` — Sunday.
* `1` — Monday.
* `2` — Tuesday.
* `3` — Wednesday.
* `4` — Thursday.
* `5` — Friday.
* `6` — Saturday.'
in: query
name: backup_weekly_day
required: false
schema:
default: 0
example: 1
maximum: 6
minimum: 1
type: integer
- description: 'Whether to enable weekly backups.
* `1` — Enable.
* `0` — Disable.'
in: query
name: backup_weekly_enable
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: The number of weekly backups to retain.
in: query
name: backup_weekly_retention
required: false
schema:
default: 4
example: 4
minimum: 0
type: integer
- description: 'Whether to back up cPanel user accounts.
* `1` — Back up.
* `0` — Do **not** back up.
**Note:**
This setting affects whether the system enables the *File and Directory Restoration*
interfaces in
[cPanel](https://docs.cpanel.net/cpanel/files/file-and-directory-restoration-for-cpanel/)
and in
[WHM](https://docs.cpanel.net/whm/backup/file-and-directory-restoration-for-whm/).
For more information, read the
[How to Manage Metadata Settings](https://docs.cpanel.net/knowledge-base/backup/how-to-manage-metadata-settings/)
documentation.'
in: query
name: backupaccts
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to back up bandwidth tracking data.
* `1` — Back up.
* `0` — Do **not** back up.'
in: query
name: backupbwdata
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Which days of the week to run daily backups.
* `0` — Sunday.
* `1` — Monday.
* `2` — Tuesday.
* `3` — Wednesday.
* `4` — Thursday.
* `5` — Friday.
* `6` — Saturday.
**Note:**
For multiple days, use a comma-delimited list.'
in: query
name: backupdays
required: false
schema:
default: 0,2,4,6
example: 0,1,2,3,4,5,6
maximum: 6
minimum: 0
type: string
- description: The primary backup directory.
in: query
name: backupdir
required: false
schema:
default: /backup
example: /backup
type: string
- description: 'Whether to enable backups.
* `1` — Enable.
* `0` — Disable.
**Note:**
This setting affects whether the system enables the *File and Directory Restoration*
interfaces in
[cPanel](https://docs.cpanel.net/cpanel/files/file-and-directory-restoration-for-cpanel/)
and in
[WHM](https://docs.cpanel.net/whm/backup/file-and-directory-restoration-for-whm/).
For more information, read the
[How to Manage Metadata Settings](https://docs.cpanel.net/knowledge-base/backup/how-to-manage-metadata-settings/)
documentation.'
in: query
name: backupenable
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to back up system files.
* `1` — Back up.
* `0` — Do **not** back up.'
in: query
name: backupfiles
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to back up the error logs.
* `1` — Back up.
* `0` — Do **not** back up.'
in: query
name: backuplogs
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to mount a backup partition.
* `1` — Mount.
* `0` — Do **not** mount.
**Note:**
This setting affects whether the system enables the *File and Directory Restoration*
interfaces in
[cPanel](https://docs.cpanel.net/cpanel/files/file-and-directory-restoration-for-cpanel/)
and in
[WHM](https://docs.cpanel.net/whm/backup/file-and-directory-restoration-for-whm/).
For more information, read the
[How to Manage Metadata Settings](https://docs.cpanel.net/knowledge-base/backup/how-to-manage-metadata-settings/)
documentation.'
in: query
name: backupmount
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to back up suspended accounts.
* `1` — Back up.
* `0` — Do **not** back up.'
in: query
name: backupsuspendedaccts
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The type of backup to create.
* `compressed`
* `uncompressed`
* `incremental`'
in: query
name: backuptype
required: false
schema:
default: compressed
enum:
- compressed
- uncompressed
- incremental
example: compressed
type: string
- description: 'Whether to ensure that the destination server possesses the minimum
free disk space available.
* `1` — Check the free disk space on the destination server.
* `0` — Do **not** check the free disk space on the destination server.'
in: query
name: check_min_free_space
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether the backup system will create metadata when a backup runs.
* `1` — Disable metadata creation.
* `0` — Enable metadata creation.
**Note:**
This setting affects whether the system enables the *File and Directory Restoration*
interfaces in
[cPanel](https://docs.cpanel.net/cpanel/files/file-and-directory-restoration-for-cpanel/)
and in
[WHM](https://docs.cpanel.net/whm/backup/file-and-directory-restoration-for-whm/).
For more information, read the
[How to Manage Metadata Settings](https://docs.cpanel.net/knowledge-base/backup/how-to-manage-metadata-settings/)
documentation.'
in: query
name: disable_metadata
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: The number of times that the system will try to use the additional backup destination.
in: query
name: errorthreshhold
required: false
schema:
default: 3
example: 3
minimum: 0
type: integer
- description: 'Whether to strictly enforce the value of the `backup_daily_retention`
parameter.
* `1` — Strictly enforce the `backup_daily_retention` parameter.
* `0` — Only enforce the `backup_daily_retention` parameter **after** a
successful complete backup.'
in: query
name: force_prune_daily
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to strictly enforce the value of the `backup_monthly_retention`
parameter.
* `1` — Strictly enforce the `backup_monthly_retention` parameter.
* `0` — Only enforce the `backup_monthly_retention` parameter **after** a
successful complete backup.'
in: query
name: force_prune_monthly
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to strictly enforce the value of the `backup_weekly_retention`
parameter.
* `1` — Strictly enforce the `backup_weekly_retention` parameter.
* `0` — Only enforce the `backup_weekly_retention` parameter **after** a
successful complete backup.'
in: query
name: force_prune_weekly
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: The `gzip` environment variables.
in: query
name: gziprsyncopts
required: false
schema:
default: ''
example: --rysncable
type: string
- description: 'Whether to delete backups from the local directory.
* `1` — Delete.
* `0` — Do **not** delete.
**Note:**
This setting affects whether the system enables the *File and Directory Restoration*
interfaces in
[cPanel](https://docs.cpanel.net/cpanel/files/file-and-directory-restoration-for-cpanel/)
and in
[WHM](https://docs.cpanel.net/whm/backup/file-and-directory-restoration-for-whm/).
For more information, read the
[How to Manage Metadata Settings](https://docs.cpanel.net/knowledge-base/backup/how-to-manage-metadata-settings/)
documentation.'
in: query
name: keeplocal
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to check the `rsync` function for hardlink support.
* `1` — Check.
* `0` — Do **not** check.'
in: query
name: linkdest
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to use a local zone file from the `/var/named/domain.tld`
file or the `dnsadmin` daemon, where `domain.tld` represents the target domain.
* `1` — Use the `/var/named/domain.tld` file.
* `0` — Use `dnsadmin`.'
in: query
name: localzonesonly
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: How long a restoration will attempt to run, in seconds. If the restoration does not succeed in this amount
of time, it will stop.
in: query
name: maximum_restore_timeout
required: false
schema:
default: 21600
example: 21600
minimum: 0
type: integer
- description: How long a backup will attempt to run, in seconds. If the backup does not succeed in this amount of time,
it will stop.
in: query
name: maximum_timeout
required: false
schema:
default: 7200
example: 7200
minimum: 0
type: integer
- description: 'The minimum amount of free disk to check for on the destination server.
**Note:**
If the value of the `min_free_space_unit` parameter is `percent`, the maximum
value is `100`.'
in: query
name: min_free_space
required: false
schema:
default: 5
example: 1024
minimum: 0
type: integer
- description: 'The units of measurement of disk space for the `min_free_space` return.
* `MB` — Megabytes.
* `percent` — Percent available.'
in: query
name: min_free_space_unit
required: false
schema:
default: percent
enum:
- MB
- percent
example: MB
type: string
- description: 'The backup method to use for MySQL® databases.
* `accounts` — Back up databases in each account''s archive.
* `dir` — Back up the entire MySQL directory.
* `both` — Back up databases in each account''s archive and the entire
MySQL directory.'
in: query
name: mysqlbackup
required: false
schema:
default: accounts
enum:
- accounts
- dir
- both
example: accounts
type: string
- description: 'Whether to run the `/usr/local/cpanel/scripts/postcpbackup` script after
the backup finishes.
* `1` — Run.
* `0` — Do **not** run.'
in: query
name: postbackup
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to run the `/usr/local/cpanel/scripts/precpbackup` script before
the system processes backups.
* `1` — Run.
* `0` — Do **not** run.'
in: query
name: prebackup
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to back up PostgreSQL® databases.
* `1` — Back up.
* `0` — Do **not** back up.'
in: query
name: psqlbackup
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The directory that temporarily stores a remote backup''s data during a backup restoration.
The data is a compressed (`.tar.gz`) or uncompressed (`.tar`) account tarball.
**Important:**
The system restores backups one at a time. The backup staging directory **must**
be large enough to contain the largest remote backup file that you wish to restore.
For example, if you wish to restore three backups, sized 1.5 GB, 528 MB, and
950 MB each, your backup staging directory must be able to hold at **least** 1.5 GB.
**Note:**
The system empties the directory after the system restores the backup.'
in: query
name: remote_restore_staging_dir
required: false
schema:
example: /backup
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: backup_config_set
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update the system's backup configuration
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_config_set\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_config_set?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_date_list:
get:
description: This function lists the dates where backup file exists, whether stored locally or stored on remote backup
destinations when local backups are disabled.
operationId: Backup-backup_date_list
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
backup_set:
description: A list of dates containing the backup files.
example:
- '2019-02-12T00:00:00.000Z'
- '2019-02-12T00:00:00.000Z'
- '2019-02-12T00:00:00.000Z'
items:
format: ISO-8601 Date
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_date_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return dates where backup files exist
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_date_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_date_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_add:
get:
description: This function adds a backup destination.
operationId: Backup-backup_destination_add
parameters:
- description: 'The application key''s name.
**Note:**
This parameter is only valid for the `Backblaze` backup type.'
in: query
name: application_key
required: true
schema:
example: A123b45CD678e9
type: string
- description: 'The application key ID that authenticates the Backblaze B2 account.
**Note:**
This parameter is only valid for the `Backblaze` backup type.'
in: query
name: application_key_id
required: true
schema:
example: 12a345B678c9
type: string
- description: 'The authorization type.
* `password`
* `key`
**Note:**
This parameter is only valid for the following backup types:
* `SFTP`
* `Rsync`'
in: query
name: authtype
required: true
schema:
enum:
- password
- key
example: password
type: string
- description: 'The Amazon S3™ Access Key ID.
**Note:**
This parameter is only valid for the following backup types:
* `AmazonS3`
* `S3Compatible`'
in: query
name: aws_access_key_id
required: true
schema:
example: REDACTED_AWS_ACCESS_KEY_ID
type: string
- description: 'The Amazon S3™ bucket.
**Note:**
This parameter is only valid for the following backup types:
* `AmazonS3`
* `S3Compatible`'
in: query
name: bucket
required: true
schema:
example: ChockFullOfNuts
type: string
- description: 'The bucket''s ID string.
**Note:**
This parameter is only valid for the `Backblaze` backup type.'
in: query
name: bucket_id
required: true
schema:
example: a12b34cd5678e9f
type: string
- description: 'The bucket''s name.
**Note:**
This parameter is only valid for the `Backblaze` backup type.'
in: query
name: bucket_name
required: true
schema:
example: ChockFullOfNuts
type: string
- description: 'The Google Drive client ID.
**Note:**
This parameter is only valid for the `GoogleDrive` backup type.'
in: query
name: client_id
required: true
schema:
example: aBcdeFgHIjK123
type: string
- description: 'The Google Drive client secret.
**Note:**
This parameter is only valid for the `GoogleDrive` backup type.'
in: query
name: client_secret
required: true
schema:
example: aBcde123FgHIjK456
type: string
- description: 'Whether to disable the backup destination.
* `1` — Disable the backup destination.
* `0` — Enable the backup destination.'
in: query
name: disabled
required: true
schema:
enum:
- 0
- 1
example: 0
type: integer
- description: 'The remote server''s hostname.
**Note:**
This parameter is only valid for the following backup types:
* `Custom`
* `FTP`
* `SFTP`
* `Rsync`
* `WebDAV`
* `S3Compatible`'
in: query
name: host
required: true
schema:
example: backups.example.com
format: hostname
type: string
- description: The backup destination's name.
in: query
name: name
required: true
schema:
example: destination_name
type: string
- description: 'The remote server account''s password or secret
access key.
**Note:**
This parameter is only valid for the following backup types:
* `AmazonS3`
* `Custom`
* `FTP`
* `SFTP`
* `Rsync`
* `WebDAV`
* `S3Compatible`'
in: query
name: password
required: true
schema:
example: 123456luggage
type: string
- description: 'The absolute file path to the user-supplied transport solution script.
**Note:**
This parameter is only valid for the `Custom` backup type.'
in: query
name: script
required: true
schema:
example: /home/backups/beammeupscotty.pl
type: string
- description: 'The type of backup destination.
* `Custom`
* `FTP`
* `Local`
* `SFTP`
* `WebDAV`
* `AmazonS3`
* `Rsync`
* `GoogleDrive`
* `S3Compatible`
* `Backblaze`
**Note:**
This value determines which parameters you can use with the function.
**Warning:**
Use any of these encrypted connections to transfer system backup files:
* Amazon S3™
* Backblaze
* GoogleDrive
* Rsync
* S3 Compatible
* SFTP
* WebDAV with SSL enabled'
in: query
name: type
required: true
schema:
enum:
- Custom
- FTP
- Local
- SFTP
- WebDAV
- AmazonS3
- Rsync
- GoogleDrive
- S3Compatible
- Backblaze
example: Local
type: string
- description: 'The remote server account''s username.
**Note:**
This parameter is only valid for the following backup types:
* `Custom`
* `FTP`
* `SFTP`
* `Rsync`
* `WebDAV`'
in: query
name: username
required: true
schema:
example: username
format: username
type: string
- description: 'The path to the backups directory on the remote server.
**Note:**
This parameter is only valid for the following backup types:
* `AmazonS3`
* `GoogleDrive`
* `S3Compatible`'
in: query
name: folder
required: false
schema:
default: ''
example: subfolder
type: string
- description: 'Whether the path is mounted.
* `1` — The path is mounted.
* `0` — The path is **not** mounted.
**Note:**
This parameter is only valid for the `Local` backup type.'
in: query
name: mount
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to fail the backup attempt if the mount fails.
* `1` — Fail the backup attempt.
* `0` — Do **not** fail the backup attempt.
**Note:**
This parameter is only valid for the `Local` backup type.'
in: query
name: no_mount_fail
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to use this transport only for logs.
* `1` — This destination will be skipped for regular backups.
* `0` — Both log and regular backups will be uploaded.
This setting defaults to 0.
The only time log files get their own backup is via scripts/remote_log_transfer'
in: query
name: only_used_for_logs
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to use passive FTP.
* `1` — Use passive FTP.
* `0` — Use active FTP.
**Note:**
This parameter is only valid for the `FTP` backup type.'
in: query
name: passive
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'The private key file''s passphrase, if the `authtype` parameter is the `key` value.
**Note:**
This parameter is only valid for the following backup types:
* `SFTP`
* `Rsync`'
in: query
name: passphrase
required: false
schema:
default: null
example: 123456luggage
type: string
- description: 'The path to the backups directory on the remote server.
* This parameter is **required** for the `Local` backup type.
* If you do **not** use this parameter, the system will not set a value.
**Note:**
This parameter is only valid for the following backup types:
* `Backblaze`
* `Custom`
* `Local`
* `FTP`
* `SFTP`
* `Rsync`
* `WebDAV`'
in: query
name: path
required: false
schema:
default: null
example: backups
type: string
- description: "The TCP port to use.\n\n**Note:**\n\n* This parameter defaults to the standard port used by the queried\
\ backup `type` parameter.\n* This parameter is only valid for the following backup types:\n * `FTP`\n * `SFTP`\n\
\ * `Rsync`\n * `WebDAV`"
in: query
name: port
required: false
schema:
example: 21
maximum: 65535
minimum: 1
type: integer
- description: 'The file path to the private key file, if the `authtype` parameter is the `key` value.
**Note:**
This parameter is only valid for the following backup types:
* `SFTP`
* `Rsync`'
in: query
name: privatekey
required: false
schema:
default: null
example: /home/backups/key
type: string
- description: 'Whether to use SSL.
* `1` — Use SSL.
* `0` — Do **not** use SSL.
**Note:**
This parameter is only valid for the `WebDAV` backup type.'
in: query
name: ssl
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'The session timeout, measured in seconds.
**Note:**
* This parameter is **not** valid for the `Local` backup `type` parameter.
* The default value depends on the `type` parameter''s value.'
in: query
name: timeout
required: false
schema:
example: 30
type: integer
- description: 'Whether to upload system backups.
* `1` — Upload system backups.
* `0` — Do **not** upload system backups.'
in: query
name: upload_system_backup
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
id:
description: The backup destination's ID.
example: PhAxIoLSdIkCI40q9vWS4BYy
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_destination_add
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add a backup destination
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_destination_add \\\n name='destination_name' \\\n type='Local'\
\ \\\n disabled='0' \\\n bucket='ChockFullOfNuts' \\\n aws_access_key_id='REDACTED_AWS_ACCESS_KEY_ID' \\\n password='123456luggage'\
\ \\\n application_key='A123b45CD678e9' \\\n application_key_id='12a345B678c9' \\\n bucket_id='a12b34cd5678e9f'\
\ \\\n bucket_name='ChockFullOfNuts' \\\n script='/home/backups/beammeupscotty.pl' \\\n host='backups.example.com'\
\ \\\n username='username' \\\n client_id='aBcdeFgHIjK123' \\\n client_secret='aBcde123FgHIjK456' \\\n authtype='password'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_destination_add?api.version=1&name=destination_name&type=Local&disabled=0&bucket=ChockFullOfNuts&aws_access_key_id=REDACTED_AWS_ACCESS_KEY_ID&password=123456luggage&application_key=A123b45CD678e9&application_key_id=12a345B678c9&bucket_id=a12b34cd5678e9f&bucket_name=ChockFullOfNuts&script=%2fhome%2fbackups%2fbeammeupscotty.pl&host=backups.example.com&username=username&client_id=aBcdeFgHIjK123&client_secret=aBcde123FgHIjK456&authtype=password
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_delete:
get:
description: This function removes a backup destination from the backup configuration file.
operationId: Backup-backup_destination_delete
parameters:
- description: The destination's ID.
in: query
name: id
required: true
schema:
example: '11111111'
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: backup_destination_delete
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete a backup destination
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_destination_delete \\\n id='11111111'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_destination_delete?api.version=1&id=11111111
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_get:
get:
description: Use this function to obtain a backup destination's settings.
operationId: Backup-backup_destination_get
parameters:
- description: The backup destination's ID.
in: query
name: id
required: true
schema:
example: 0W1ei2rd3A4lI5sT6he7Be8st
type: string
responses:
'200':
content:
application/json:
examples:
amazons3:
summary: type=AmazonS3
value:
data:
aws_access_key_id: access-key-id
bucket: s3-bucket-brigade
disabled: 0
folder: ''
id: Sr1ThYOnnBIXUupTcSBYQywk
name: Amazon S3
timeout: 30
type: AmazonS3
upload_system_backup: 0
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
backblaze:
summary: type=BackBlaze
value:
data:
application_key: keyS3cret
application_key_id: appID
bucket_id: backblaze-bucket-id
bucket_name: backblaze-bucket-name
disabled: 0
id: c85HdhrAkpiqumuXylEzrOcb
name: BackBlaze
path: ''
timeout: 180
type: Backblaze
upload_system_backup: 0
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
custom:
summary: type=Custom
value:
data:
disabled: 0
host: example.com
id: Hhd85FsIxbxsLneBMNw1Dmdp
name: destination unknown
path: ''
script: /bin/bacula_start
timeout: 30
type: Custom
upload_system_backup: 0
username: scott_bacula
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
ftp:
summary: type=FTP
value:
data:
disabled: 0
host: example.com
id: YXzdB0ZcPZ8daPvRfobqQh6H
name: FTP backups
passive: 1
path: ''
port: 21
timeout: 30
type: FTP
upload_system_backup: 0
username: backup_daemon
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
google:
summary: type=GoogleDrive
value:
data:
client_id: CientID
client_secret: backups3crets
disabled: 0
folder: ''
id: N9jC0iMGNbDwIph7m0MfkDd4
name: Googlyness
timeout: 30
type: GoogleDrive
upload_system_backup: 0
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
local:
summary: type=Local
value:
data:
disabled: 0
id: SenJqhJKEEE3rPM4XO7dfBaj
mount: 0
name: additional local
no_mount_fail: 0
path: /backup
type: Local
upload_system_backup: 0
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
rsync:
summary: type=Rsync
value:
data:
authtype: password
disabled: 0
host: example.com
id: xOL7IT7cwJhGYYra09hrPU1r
name: rsync
path: ''
port: 22
timeout: 30
type: Rsync
upload_system_backup: 0
username: scott_bacula
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
s3compatable:
summary: type=S3Compatable
value:
data:
aws_access_key_id: 563DFGHCVD
bucket: thepail
disabled: 0
folder: ''
host: osdc.rcc.example.com
id: 68UUM_lypmgTi9_fEaG9MIvY
name: s3Compatable
timeout: 30
type: S3Compatible
upload_system_backup: 0
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
sftp:
summary: type=SFTP
value:
data:
authtype: key
disabled: 0
host: example.com
id: OD5CeyEbHMEmDe0dqhtO3KYl
name: SFTPBACKUP
path: ''
port: 22
privatekey: /root/.ssh/the_rsa
timeout: 30
type: SFTP
upload_system_backup: 0
username: scott_bacula
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
webdav:
summary: type=WebDAV
value:
data:
disabled: 0
host: example.com
id: ZlSBGjZEr3HVIqhqsdVgWYOM
name: WebDav
path: ''
port: 8443
ssl: 1
timeout: 30
type: WebDAV
upload_system_backup: 0
username: scot_bacula
metadata:
command: backup_destination_get
reason: OK
result: 1
version: 1
schema:
properties:
data:
$ref: '#/components/schemas/BackupDestinationGetResponse'
metadata:
properties:
command:
description: The method name called.
example: backup_destination_get
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return a backup destination's settings
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_destination_get \\\n id='0W1ei2rd3A4lI5sT6he7Be8st'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_destination_get?api.version=1&id=0W1ei2rd3A4lI5sT6he7Be8st
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_list:
get:
description: This function lists backup destinations.
operationId: Backup-backup_destination_list
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
destination_list:
description: An array of objects containing backup destination information.
items:
$ref: '#/components/schemas/BackupDestinationResponseType'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_destination_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return a list of backup destinations
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_destination_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_destination_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_set:
post:
description: Use this function to edit a backup destination's settings.
operationId: Backup-backup_destination_set
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/BackupDestinationSetParameterType'
description: The destination settings.
required: true
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: backup_destination_set
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update backup destination settings
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --input=json --output=jsonpretty \\\n backup_destination_set\n"
- label: HTTP Request (Wire Format)
lang: HTTP
source: 'POST /cpsess##########/json-api/backup_destination_set HTTP/1.1
Host: example.com:2083
Cookie: ###################################
Content-Type: application/json
Content-Length: 0
'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_destination_validate:
get:
description: This function validates a backup destination.
operationId: Backup-backup_destination_validate
parameters:
- description: 'Whether to disable the backup destination if validation fails.
* `1` — Disable.
* `0` — Do **not** disable.'
in: query
name: disableonfail
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: The destination's ID.
in: query
name: id
required: true
schema:
example: 0W1ei2rd3A4lI5sT6he7Be8st
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
id:
description: The destination's ID.
example: 0W1ei2rd3A4lI5sT6he7Be8st
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_destination_validate
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate a backup destination
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_destination_validate \\\n id='0W1ei2rd3A4lI5sT6he7Be8st' \\\n \
\ disableonfail='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_destination_validate?api.version=1&id=0W1ei2rd3A4lI5sT6he7Be8st&disableonfail=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_does_client_id_have_google_credentials:
get:
description: This function returns whether a Google Drive™ client ID credential file exists.
operationId: Backup-backup_does_client_id_have_google_credentials
parameters:
- description: The user's Google Drive client ID.
in: query
name: client_id
required: true
schema:
example: aBcdeFgHIjK123
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
exists:
description: 'Whether Google credentials exist for the Google Drive client ID.
* `1` — Google Drive credentials exist.
* `0` — Google Drive credentials do **not** exist.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_does_client_id_have_google_credentials
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Google Drive™ client ID credentials
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_does_client_id_have_google_credentials \\\n client_id='aBcdeFgHIjK123'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_does_client_id_have_google_credentials?api.version=1&client_id=aBcdeFgHIjK123
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/backup_generate_google_oauth_uri:
get:
description: 'This function generates a
[Google Drive™ OAuth redirect URI](https://developers.google.com/identity/protocols/OAuth2InstalledApp).'
operationId: Backup-backup_generate_google_oauth_uri
parameters:
- description: The Google Drive client ID.
in: query
name: client_id
required: true
schema:
example: aBcdeFgHIjK123
type: string
- description: 'The Google Drive
[client secret](https://www.oauth.com/oauth2-servers/client-registration/client-id-secret/).'
in: query
name: client_secret
required: true
schema:
example: aBcde123FgHIjK456
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
uri:
description: The generated Google Drive OAuth redirect URI.
example: https://accounts.google.com/o/oauth2/auth?client_id=aBcdeFgHIjK123&response_type=code&redirect_uri=https%3A%2F%2Fhost-10-0-0-2.example.tld%3A2087%2Fgoogledriveauth%2Fcallback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&access_type=offline&prompt=consent&state=IkdLqOej5CLPW1nHRF6OJYaahE7HPXrRUvpFs6MhmBMbCjvWDQcstyYhbUFge5IJ
format: uri
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_generate_google_oauth_uri
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create Google Drive™ OAuth redirect URI
tags:
- Backups
- Backup Destination
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_generate_google_oauth_uri \\\n client_id='aBcdeFgHIjK123' \\\n\
\ client_secret='aBcde123FgHIjK456'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_generate_google_oauth_uri?api.version=1&client_id=aBcdeFgHIjK123&client_secret=aBcde123FgHIjK456
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/backup_get_transport_status:
get:
description: This function retrieves the status of any backup transport events on the account.
operationId: Backup-backup_get_transport_status
parameters:
- description: 'That transport''s current state. If you do **not** specify this parameter,
the function returns the status of **all** transports on the account.
* `completed`
* `failed`
* `pending`
* `running`'
in: query
name: state
required: false
schema:
enum:
- completed
- failed
- pending
- running
example: running
type: string
- description: 'The transport''s identification (ID). If you do **not** specify this parameter,
the function returns **all** transports on the account.
**Note:**
You can use this parameter or the `transport_name` parameter.'
in: query
name: transport_id
required: false
schema:
example: transportname
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pages:
description: 'The number of pages that the backup transports contain.
**Note:**
This return''s value depends on the
[pagination variables](https://go.cpanel.net/paginationvariables)
that you pass when you call the function.'
example: 3
type: integer
transport_status:
description: A list of information about each transport event.
items:
properties:
date:
description: The backup transport event's date.
example: '2019-08-30T00:00:00.000Z'
format: ISO-8601 Date
type: string
end_timestamp:
description: The transport event's end time, in `YYYY-MM-DD HH:MM:SS` format.
example: '2019-08-30T02:04:06.000Z'
type: string
start_timestamp:
description: The transport event's start time, in `YYYY-MM-DD HH:MM:SS` format.
example: '2019-08-30T02:04:08.000Z'
type: string
status:
description: 'The transport event''s status.
* `completed`
* `failed`
* `pending`
* `running`'
example: running
type: string
transport:
description: 'The transport event''s name.
**Note:**
If multiple transports use the same name, the system returns the first
instance of the transport with that name.'
example: transportname
type: string
user:
description: The user for whom the system transported the backup.
example: username
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_get_transport_status
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '- `1` — Success.
- `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup transport events' status
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_get_transport_status\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_get_transport_status?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/backup_list_transported:
get:
description: This function lists backup files that the system sent through a specified additional backup transport.
operationId: Backup-backup_list_transported
parameters:
- description: 'The transport ID.
If you do not specify this parameter, the function returns backup information for all transports.
**Note:**
You may obtain the IDs for all configured transports by calling WHM API 1''s `backup_destination_list` function.'
in: query
name: transport
required: false
schema:
example: nN04BhzirlJUNSLSBXSMBEYG
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
remote_backups:
additionalProperties:
additionalProperties:
description: 'An array containing information on one account''s backups for a given transport.
The property name is a cPanel account on the server.
Each array element is a date.'
items:
description: ''
example: '2018-07-19T00:00:00.000Z'
format: ISO-8601 Date
type: string
type: array
description: 'An object containing details of accounts whose backups the system sent through a transport.
The property name is a backup transport ID, an automatically generated random string.'
type: object
description: An object containing the backup destination information.
example:
nN04BhzirlJUNSLSBXSMBEYG:
janedoe:
- '2020-08-28T00:00:00.000Z'
- '2020-08-31T00:00:00.000Z'
- '2020-09-02T00:00:00.000Z'
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_list_transported
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup files sent through transport
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_list_transported\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_list_transported?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '76'
/backup_set_list:
get:
description: This function lists backup files for the server's accounts in the local disk.
operationId: Backup-backup_set_list
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
backup_set:
description: hash of a user's backup information. This hash includes the user and backup_date returns.
items:
properties:
backup_date:
description: 'The backup file''s date. A date in YYYY-MM-DD format, where:- YYYY represents
the year.
- MM represents the month.
- DD represents the day.'
items:
example: '2014-01-01T00:00:00.000Z'
type: string
type: array
user:
description: The backup file set's owner. A valid username.
example: username
type: string
type: object
properties: {}
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_set_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup files in the local disk
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_set_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_set_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_set_list_combined:
get:
description: This function lists locally-stored and backup-destination stored backup files for the server's accounts.
operationId: Backup-backup_set_list_combined
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
backup_set:
additionalProperties:
description: 'An array of objects containing the cPanel account''s backup file information.
**Note:**
This return name is the cPanel account''s name.'
format: username
items:
description: An object containing the time and location backup information.
properties:
when:
description: The date the backup was created.
example: '2020-09-01T00:00:00.000Z'
format: ISO-8601 Date
type: string
where:
description: 'The location of where the backup is located.
* `local` - A backup located on the local machine.
* `remote` - A backup located on a remote machine.'
enum:
- local
- remote
example: local
type: string
type: object
type: array
description: An object that contains an object of backup destination information.
example:
cpusername1:
- when: '2020-01-25T00:00:00.000Z'
where: local
- when: '2020-01-26T00:00:00.000Z'
where: local
cpusername2:
- when: '2020-01-25T00:00:00.000Z'
where: local
- when: '2020-01-26T00:00:00.000Z'
where: local
type: object
destination_legend:
additionalProperties:
description: 'An object containing the backup destination''s name and its transport type.
**Note:**
This return''s name is the destination''s identification string.'
properties:
name:
description: The backup destination's name.
example: More Backups
type: string
type:
description: 'The type of backup destination used in the configuration.
* `AmazonS3`
* `Backblaze`
* `Custom`
* `FTP`
* `GoogleDrive`
* `Local`
* `Rsync`
* `S3Compatible`
* `SFTP`
* `WebDAV`'
enum:
- AmazonS3
- Backblaze
- Custom
- FTP
- GoogleDrive
- Local
- Rsync
- S3Compatible
- SFTP
- WebDAV
example: Local
type: string
type: object
description: An object containing objects that contain the backup's destination and type information.
example:
GLT1vFsVO8cqk2UWWFpJ9kSQ:
name: More Backups
type: Local
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_set_list_combined
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup files for the server's accounts
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_set_list_combined\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_set_list_combined?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/backup_skip_users_all:
get:
description: This function enables and disables the backup and legacy backups.
operationId: Backup-backup_skip_users_all
parameters:
- description: "The type of backup.\n * `backup` - Standard backups.\n * `legacy` - Legacy backups."
in: query
name: backupversion
required: true
schema:
enum:
- backup
- legacy
example: backup
type: string
- description: "Whether to enable the backup type that the `backupversion` parameter\nspecifies for all users.\n *\
\ `1` - Enable.\n * `0` - Disable."
in: query
name: state
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: backup_skip_users_all
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: Configuration update process started
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable or disable backups
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_skip_users_all \\\n state='1' \\\n backupversion='backup'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_skip_users_all?api.version=1&state=1&backupversion=backup
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_skip_users_all_status:
get:
description: This function checks each user's backup configuration status while the `backup_skip_users_all` function
runs.
operationId: Backup-backup_skip_users_all_status
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
reason:
description: An object that contains backup configuration status information.
properties:
msg:
description: The function's status.
example: Done
type: string
perc:
description: The percentage of users whose backup status has changed.
example: 100
maximum: 100
minimum: 0
type: integer
running:
description: 'Whether user configuration changes are still in progress.
* `1` - In Progress.
* `0` - Finished.'
enum:
- 0
- 1
example: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_skip_users_all_status
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK.
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return backup configuration status
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_skip_users_all_status\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_skip_users_all_status?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/backup_user_list:
get:
description: This function lists users with a backup file, stored locally or on additional backup destinations, on a
specified date.
operationId: Backup-backup_user_list
parameters:
- description: The desired date.
in: query
name: restore_point
required: true
schema:
example: '2014-10-10T00:00:00.000Z'
format: ISO-8601 Date
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
user:
description: An array of objects containing user backup information.
items:
properties:
status:
description: 'The account''s backup status
* `active`
* `inactive`
* `no_backup`'
enum:
- active
- inactive
- no_backup
example: active
type: string
username:
description: The user's username.
example: username
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: backup_user_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return users with a backup file
tags:
- Backups
- Backup Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n backup_user_list \\\n restore_point='2014-10-10T00:00:00.000Z'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/backup_user_list?api.version=1&restore_point=2014-10-10T00%3a00%3a00.000Z
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/batch:
get:
description: This function combines calls for multiple WHM API 1 functions.
operationId: Other-batch
parameters:
- description: "The WHM API 1 function to call.\n\n**Important:**\n\nSpecify a `command` parameter for each function.\n\
\n**Note:**\n\nInclude the function's input parameters as a URI-encoded list after the function name.\nFor example,\
\ to call the `killdns` function with a `domain` parameter value of `example.com`\ndirectly you would use:\n\n \
\ `killdns?domain=example.com`\n\nTo call this function using the `batch` function, URI-encode the command and pass\
\ it as part of the `batch` function:\n\n `/json-api/batch?api.version=1&command=killdns%3Fdomain%3Dexample.com`\n\
\nYou can call the same function multiple times within a single batch API call. For example:\n\n `/json-api/batch?api.version=1&command=version&command=version&command=version`"
in: query
name: command
required: true
schema:
example: version
type: string
- description: 'Whether to stop processing remaining commands in the batch when a command returns an error.
* `1` — Do **not** process remaining commands in the batch when an error occurs.
* `0` — When an error occurs, process the remaining commands in the batch.'
in: query
name: abort_on_error
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
result:
description: Information regarding function output. Each result contains the returns from one of the
command parameter's functions. For information about each function's returns, read the function's
documentation.
example:
- data:
hostname: example-hosting.com
metadata:
command: gethostname
reason: OK
result: 1
version: 1
- data:
version: 11.88.0.1
metadata:
command: version
reason: OK
result: 1
version: 1
items:
properties:
data:
description: The data returned by the command.
type: object
metadata:
description: The metadata returned by the command.
properties:
command:
description: The method name called.
example: version
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`.
This field may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: batch
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Run multiple WHM API 1 functions
tags:
- API Execution
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n batch \\\n command='version'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/batch?api.version=1&command=version
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/batch_create_cphulk_records:
post:
description: This function adds one or more records to cPHulk's whitelist or blacklist. The function includes the option
to add unique comments for each IP address that you add.
operationId: cPHulk-batch_create_cphulk_records
requestBody:
content:
application/json:
schema:
example:
api.version: 1
list_name: white
records:
- comment: Automated update tools.
ip: 192.168.0.1
- comment: System administrators and support systems.
ip: 192.168.1.0/30
- comment: Owner of example.com.
ip: 122.1.56.7-122.1.56.8
- comment: Special access group 1
ip: '2001:db9::'
- comment: Special access group 1
ip: 2001:db9::1-2001:db9::5
- comment: Special access group 2
ip: 2001:db8::/32
properties:
api.version:
description: The WHM API version number.
enum:
- 1
type: integer
list_name:
description: 'The cPHulk list''s name.
* `black` - Add a new record or records to the blacklist.
* `white` - Add a new record or records to the whitelist. '
enum:
- black
- white
example: white
type: string
records:
description: The list of records to add to the whitelist or blacklist.
items:
description: A whitelist or blacklist record.
properties:
comment:
example: Dangerous website
maximum: 255
type: string
ip:
$ref: '#/components/schemas/ip-address'
required:
- ip
type: object
type: array
skip_enabled_check:
default: 0
description: "Whether to skip checking if cPHulk runs on the server.\n\n* `1` - Do **not** check if cPHulk\
\ is running.\n* `0` - Check if cPHulk is running.\n\n**Note:**\n\n If cPHulk is disabled and you check\
\ its status, the function returns the following message: `cPHulk is disabled on the server.` "
enum:
- 0
- 1
example: 1
type: integer
required:
- api.version
- list_name
- records
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
comment:
description: The comment that you included when you called the function.
example: George Wendt flying through the air.
type: string
ip_blocks_removed:
description: The number of IP address blocks that the function deleted.
example: 1
type: integer
ips_added:
description: An array of IP addresses that the function added from the list. This function will always
returns ranges in the IP1-IP2 format.
example:
- 192.168.0.1
- 192.168.1.0-192.168.1.3
- 122.1.56.7-122.1.56.8
items:
$ref: '#/components/schemas/ip-address'
type: array
ips_failed:
additionalProperties:
description: 'The reason why the system failed to add an IP address to the list.
**Note:**
The IP address is the return''s name.'
type: string
description: An object of IP addresses that the system failed to add to the list. This object contains
one or more IP address returns.
example:
192.168.0.1: 'Invalid IP address or range: "192.68.0.1"'
type: object
iptable_bans_removed:
description: The number of `iptables` temporary block rules that the function deleted.
example: 0
minimum: 0
type: integer
list_name:
description: 'The cPHulk list''s name.
* `black`
* `white`'
enum:
- black
- white
example: white
type: string
original_ips_added:
description: "An array of IP addresses that the function added from the list.\n The system will return\
\ the one of the following formats:\n\n - A IPv4 address (192.168.0.1).\n - A simple IPv4 address\
\ range (192.168.1.1-192.168.1.4).\n - A CIDR IPv4 address range (192.168.1.0/30)."
example:
- 192.168.0.1
- 192.168.1.0/30
- 122.1.56.7-122.1.56.8
items:
$ref: '#/components/schemas/ip-address'
type: array
requester_ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The IP address of the user or system that requested the addition.
example: 10.1.4.228
requester_ip_is_whitelisted:
description: 'Whether the requester''s IP address exists on cPHulk''s whitelist.
* `1` - Whitelisted.
* `0` - Not whitelisted.'
enum:
- 0
- 1
example: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: batch_create_cphulk_records
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add login security record to list with comment
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "echo '{\"api.version\":\"1\",\"list_name\":\"white\",\"records\":[{\"comment\":\"Automated update tools.\"\
,\"ip\":\"192.168.0.1\"},{\"comment\":\"System administrators and support systems.\",\"ip\":\"192.168.1.1/30\"},{\"\
comment\":\"Owner of example.com.\",\"ip\":\"122.1.56.7-122.1.56.8\"}]}' | \\\nwhmapi1 --input=json --output=jsonpretty\
\ \\\n batch_create_cphulk_records"
- label: HTTP Request (Wire Format)
lang: HTTP
source: 'POST /cpsess##########/json-api/batch_create_cphulk_records HTTP/1.1
Host: example.com:2083
Cookie: ###################################
Content-Type: application/json
Content-Length: 260
{"api.version":"1","list_name":"white","records":[{"comment":"Automated update tools.","ip":"192.168.0.1"},{"comment":"System
administrators and support systems.","ip":"192.168.1.1/30"},{"comment":"Owner of example.com.","ip":"122.1.56.7-122.1.56.8"}]}'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/block_incoming_email_from_country:
get:
description: This function blocks email from specific countries.
operationId: Exim-block_incoming_email_from_country
parameters:
- description: "The country to block.\nThe [ISO 3166-1 alpha-2 code](https://www.iso.org/iso-3166-country-codes.html)\
\ two-letter country code.\n\n**Warning:**\n\nDo **not** block the `ZZ` country code if the server uses a [NAT](https://docs.cpanel.net/knowledge-base/general-systems-administration/1-1-nat/)\
\ configuration.\n\n**Note:**\n\n * To search all available country codes, read the ISO's [Full list of Country\
\ Codes](https://www.iso.org/obp/ui) documentation.\n * To block multiple countries, duplicate or increment the\
\ parameter name. For example: `country_code-1`, `country_code-2`, and `country_code-3`."
examples:
multiple:
summary: Multiple country codes.
value: country_code-1=AA country_code-2=AB country_code-3=AC
single:
summary: A single country code.
value: AA
in: query
name: country_code
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
updated:
description: 'Whether the function blocked one or more countries.
* `1` — Success.
* `0` — Failure.
**Note**
The function returns `0` for the `updated` return if the server already blocks that country.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: block_incoming_email_from_country
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add block on emails from specific countries
tags:
- Mail
- Spam Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n block_incoming_email_from_country \\\n country_code='AA'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/block_incoming_email_from_country?api.version=1&country_code=AA
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '84'
/block_incoming_email_from_domain:
get:
description: This function blocks email from specific domains.
operationId: Exim-block_incoming_email_from_domain
parameters:
- description: 'The domain to block.
**Note:**
* The function returns `0` for the `updated` return if the server already blocks that domain.
* An FQDN requires **at least** [a label, a dot (`.`), and a top-level domain (TLD)](https://en.wikipedia.org/wiki/Domain_name#Domain_name_syntax).
* Enter an asterisk (`*`) to represent [a wildcard label or TLD](https://en.wikipedia.org/wiki/Wildcard_DNS_record).
* To block multiple domains, duplicate or increment the parameter name.'
examples:
multiple:
summary: Multiple domains.
value: domain=example.com domain-1=example1.com domain-2=example2.com
multiple-alternative:
summary: Multiple domains.
value: domain=example.com domain=example1.com domain=example2.com
single:
summary: A single domain.
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
updated:
description: 'Whether the function blocked one or more domains.
* 1 — Success.
* 0 — Failure.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: block_incoming_email_from_domain
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add block on emails from specific domains
tags:
- Mail
- Spam Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n block_incoming_email_from_domain \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/block_incoming_email_from_domain?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '84'
/changepackage:
get:
description: This function changes a cPanel account's hosting plan (package).
operationId: Accounts-changepackage
parameters:
- description: The hosting plan's name.
in: query
name: pkg
required: true
schema:
example: package1
type: string
- description: The cPanel account's username.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: changepackage
type: string
output:
properties:
raw:
example: '
Changing the account bandwidth limit from “0” to “unlimited”.
Changing Feature List to default
Changing the maximum email accounts from “unlimited” to “unlimited”.
Changing the maximum SQL databases from “unlimited” to “unlimited”.
Changing the maximum FTP accounts from “unlimited” to “unlimited”.
Changing the maximum mailing lists from “unlimited” to “unlimited”.
Changing the maximum subdomains from “unlimited” to “unlimited”.
Changing the maximum email quota from “unlimited” to “unlimited” …
Changing "Maximum Hourly Email by Domain Relayed" from unlimited to unlimited
Changing "Maximum percentage of failed or deferred messages a domain may send per hour" from
unlimited to unlimited
Changing the maximum parked domains from “unlimited” to “0”.
Changing the maximum addon domains from “unlimited” to “0”.
Removing Shell Access
Shell changed
Changing cPanel theme from jupiter to jupiter
Changing plan from default to boo
Bandwidth limit (unlimited) is lower than (unlimited) (all limits removed)
Enabling...
...exampleaddon.com...
...exampleaddon.example.com...
...example.com...
Done
Setting quota to “unlimited”.
Warning, this will not change shared IP accounts to dedicated IP accounts,
or the reverse.
Warning: Changing a user’s package does not affect their Digest Authentication
settings.
'
type: string
type: object
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update user hosting plan
tags:
- Packages
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n changepackage \\\n user='username' \\\n pkg='package1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/changepackage?api.version=1&user=username&pkg=package1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/check_remote_ssh_connection:
get:
description: This function tests an SSH connection to another server.
operationId: SSH-check_remote_ssh_connection
parameters:
- description: The remote server's hostname.
in: query
name: host
required: true
schema:
example: example.com
format: domain
type: string
- description: The remote server's port number.
in: query
name: port
required: false
schema:
default: 22
example: 22
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
comment:
description: 'The remote connection''s comment section.
* A valid string.
* `undef` - If the local and remote servers connect successfully.'
example: 'null'
type: string
protocol_versions:
description: 'The available SSH protocol versions.
* A valid string.
* `undef` - If the local and remote servers connect successfully.'
items:
example: '2.0'
type: string
type: array
received:
description: The raw data from the remote server.
example: SSH-2.0-OpenSSH_5.3
type: string
server_software:
description: 'The version of the remote server''s SSH server software.
* A valid string.
* `undef` - If the local and remote servers connect successfully.'
example: OpenSSH_5.3
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: check_remote_ssh_connection
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate SSH connection to another server
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n check_remote_ssh_connection \\\n host='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/check_remote_ssh_connection?api.version=1&host=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/cluster_member_has_trust_with:
get:
description: "This function queries whether nameservers in a DNS cluster can share records with one another. Servers\
\ in a DNS cluster **must** exist in a [Reverse Trust relationship](https://go.cpanel.net/whmdocsDNSCluster) to share\
\ information. This relationship requires each server to have an [API token](https://go.cpanel.net/ManageAPITokens).\n\
\n**Note:**\n\n DNS servers in a Write-Only role do not need to exist in a Reverse Trust relationship. For more information,\
\ read our [Guide to DNS Cluster Configurations](https://go.cpanel.net/DNSClusterConfig) documentation."
operationId: ClusterServer-cluster_member_has_trust_with
parameters:
- description: The nameserver's IP address.
in: query
name: host
required: true
schema:
example: 192.0.2.0
format: ipv4
type: string
- description: The nameserver's alternate IP address. This is useful, for example, if your DNS cluster exists in a NAT-configured
network.
in: query
name: althost
required: false
schema:
default: 8.8.8.8
example: 192.0.3.0
format: ipv4
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
has_trust:
description: 'Whether the nameserver can send information to other cluster members.
* `1` — Can send information.
* `0` — Can''t send information.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: cluster_member_has_trust_with
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return whether DNS cluster server can share records
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cluster_member_has_trust_with \\\n host='192.0.2.0'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cluster_member_has_trust_with?api.version=1&host=192.0.2.0
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '84'
/configurebackgroundprocesskiller:
get:
description: This function configures the server's background process killer.
operationId: Sys-configurebackgroundprocesskiller
parameters:
- description: 'A process to kill in the `/usr/local/cpanel/etc/sym` directory.
**Note:**
To enable the background killer for multiple processes, duplicate or increment the parameter name.
For example, `processes_to_kill`, `processes_to_kill-0`, and `processes_to_kill-1`.'
examples:
multiple:
summary: Kill multiple processes.
value: eggdrop-0, eggdrop-1, eggdrop-2
single:
summary: Kill a single process.
value: eggdrop
in: query
name: processes_to_kill
required: true
schema:
type: string
- description: 'Unaffected users. If you do not specify a value, the function affects all of the users on the server.
**Note:**
To trust multiple users, duplicate or increment the parameter name.
For example, `trusted_users`, `trusted_users-0`, and `trusted_users-1`.'
in: query
name: trusted_users
required: false
schema:
example: user
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: configurebackgroundprocesskiller
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update background process stopper
tags:
- Server Administration
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n configurebackgroundprocesskiller \\\n processes_to_kill='eggdrop'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/configurebackgroundprocesskiller?api.version=1&processes_to_kill=eggdrop
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/configureservice:
get:
description: 'This function enables or disables a service and its monitoring.
**Note:**
If the user only possesses the `clustering`
[Access Control List (ACL)](https://go.cpanel.net/ACLReferenceChart),
then this function can only act on the `named` service.'
operationId: Services-configureservice
parameters:
- description: 'The service to configure. For more information about each service, read our
[*Service Manager*](https://go.cpanel.net/whmdocsServiceManager)
documentation.'
in: query
name: service
required: true
schema:
enum:
- apache_php_fpm
- cpanel-dovecot-solr
- cpanel_php_fpm
- cpanellogd
- cpdavd
- cphulkd
- cpsrvd
- crond
- dnsadmin
- exim
- exim-altport
- ftpd
- httpd
- imap
- ipaliases
- lmtp
- mailman
- mysql
- named
- nscd
- p0f
- pop
- postgresql
- queueprocd
- rsyslogd
- spamd
- sshd
example: mysql
type: string
- description: 'Whether to enable the service.
* `1` — Enable.
* `0` — Disable.
If you do not use this parameter, the function will **not** change
the enabled status of the service.
**Warning:**
Do **not** use this function to disable the `cpsrvd` service.'
in: query
name: enabled
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'A port or list of comma-separated ports on which Exim will listen for
inbound connections.
**Note:**
The function **only** uses this parameter if you set `exim-altport` as
the `service` parameter''s value.'
in: query
name: exim-altportnum
required: false
schema:
default: 26
example: 26, 5000, 6000
type: string
- description: 'Whether to monitor the service in WHM''s
[*Service Status*](https://docs.cpanel.net/whm/server-status/service-status/)
interface (*WHM >> Home >> Server Status >> Service Status*).
* `1` — Monitor.
* `0` — Do **not** monitor.
If you do not use this parameter, the function will **not** change the
monitoring status of the service.'
in: query
name: monitored
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: configureservice
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Enabled monitoring for mysql.
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable or disable a service and its monitoring
tags:
- Server Administration
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n configureservice \\\n service='mysql'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/configureservice?api.version=1&service=mysql
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/convert_addon_fetch_conversion_details:
get:
description: 'This function returns the details of a conversion from an addon
domain to an account. Use WHM API 1''s `convert_addon_domain_to_account`
to start a conversion.
**Important:**
When you disable the
[Web Server role](https://go.cpanel.net/howtouseserverprofiles),
the system **disables** this function.'
operationId: ConvertAddon-convert_addon_fetch_conversion_details
parameters:
- description: The conversion's job identification number.
in: query
name: job_id
required: true
schema:
example: 2
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domain:
description: The addon domain you converted into a cPanel account.
example: cptestaddon175.tld
format: domain
type: string
job_end_time:
description: A date that indicates when the convertion ended.
example: 1462216653
format: unix_timestamp
type: integer
job_id:
description: The conversion's job identification number.
example: 2
minimum: 1
type: integer
job_start_time:
description: A date that indicates when the conversion started.
example: 1462465001
format: unix_timestamp
type: integer
job_status:
description: 'The status of the conversion process.
* `INPROGRESS` — The conversion process is in progress.
* `QUEUED` — The system queued the conversion job.
* `SKIPPED` — The system skipped at least one step in the conversion process.
* `FAILED` — At least one step in the conversion process failed.
* `DONE` — The conversion process finished successfully.'
enum:
- INPROGRESS
- QUEUED
- SKIPPED
- FAILED
- DONE
example: DONE
type: string
source_acct:
description: The source cPanel user account that you converted into an account.
example: cptest
format: username
type: string
steps:
description: An array of objects containing the steps taken by the conversion process.
example:
- end_time: 1462465001
start_time: 1462465001
status: DONE
step_name: Saving email forwarder data
warnings: ''
- end_time: 1462465001
start_time: 1462465001
status: DONE
step_name: Saving custom DNS records
warnings: ''
- end_time: 1462465001
start_time: 1462465001
status: DONE
step_name: Saving installed SSL Certificate
warnings: ''
- end_time: 1462465001
start_time: 1462465001
status: DONE
step_name: Saving EasyApache 4 configuration
warnings: ''
- end_time: 1462465009
start_time: 1462465001
status: DONE
step_name: Removing Addon Domain
warnings: ''
- end_time: 1462465014
start_time: 1462465009
status: DONE
step_name: Creating new cPanel account
warnings: ''
- end_time: 1462465015
start_time: 1462465014
status: DONE
step_name: Restoring custom DNS records
warnings: ''
- end_time: 1462465016
start_time: 1462465015
status: DONE
step_name: Copying Custom VirtualHost Includes
warnings: ''
- end_time: 1462465016
start_time: 1462465016
status: DONE
step_name: Copying document root content
warnings: '/usr/bin/gtar: ./shadow: Cannot open: Permission denied\n/usr/bin/gtar: Exiting with
failure status due to previous errors'
- end_time: 1462465016
start_time: 1462465016
status: DONE
step_name: Setting the proper permissions on document root
warnings: ''
- end_time: 1462465017
start_time: 1462465016
status: DONE
step_name: Copying email accounts
warnings: ''
- end_time: 1462465017
start_time: 1462465017
status: DONE
step_name: Restoring email forwarders
warnings: ''
- end_time: 1462465017
start_time: 1462465017
status: DONE
step_name: Copying Autoresponders
warnings: ''
- end_time: 1462465017
start_time: 1462465017
status: DONE
step_name: Copying webmail data
warnings: ''
- end_time: 1462465017
start_time: 1462465017
status: DONE
step_name: Restoring installed SSL Certificate
warnings: ''
- end_time: 1462465017
start_time: 1462465017
status: DONE
step_name: Restoring EasyApache 4 configuration
warnings: ''
items:
properties:
end_time:
description: The date when the step ended.
format: unix_timestamp
type: integer
start_time:
description: The date when the step started.
format: unix_timestamp
type: integer
status:
description: 'The status of the conversion step.
* `DONE` — The step is finished.
* `IN PROGRESS` — The step is in progress.
* `FAILED` — The step failed.'
enum:
- DONE
- IN PROGRESS
- FAILED
type: string
step_name:
description: A step of the conversion process.
type: string
warnings:
description: The warning message for the step that describes a potential problem, if any exist.
type: string
type: object
type: array
target_acct:
description: The destination cPanel user account for the conversion.
example: user2
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_addon_fetch_conversion_details
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return additional domain conversion details
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_fetch_conversion_details \\\n job_id='2'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_fetch_conversion_details?api.version=1&job_id=2
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/convert_addon_fetch_domain_details:
get:
description: 'This function retrieves domain data for an addon domain.
**Important:**
When you disable the
[Web Server role](https://go.cpanel.net/howtouseserverprofiles#roles),
the system **disables** this function.'
operationId: ConvertAddon-convert_addon_fetch_domain_details
parameters:
- description: The addon domain for which to retrieve details.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
docroot:
description: The absolute file path of the addon domain.
example: /home/exampleparent/public_html/example.com
type: string
has_dedicated_ip:
description: 'Whether the domain uses a dedicated IP address.
* `1` — The domain uses a dedicated IP address.
* `0` — The domain does **not** use a dedicated IP address.'
enum:
- 1
- 0
example: 0
type: integer
has_ssl_cert_installed:
description: 'Whether an SSL certificate secures the domain.
* `1` — An SSL certificate secures the domain.
* `0` — An SSL certificate does **not** secure the domain.'
enum:
- 1
- 0
example: 0
type: integer
ip:
description: The domain's IP address.
example: 192.0.2.0
format: ipv4
type: string
is_sni_supported:
description: 'Whether the domain supports Server Name Indication (SNI).
* `1` — The domain supports SNI.
* `0` — The domain does **not** support SNI.'
enum:
- 1
- 0
example: 0
type: integer
number_of_autoresponders:
description: The number of the domain's autoresponders.
example: 0
minimum: 0
type: integer
number_of_domain_forwarders:
description: The number of the domain's domain forwarders.
example: 1
minimum: 0
type: integer
number_of_email_accounts:
description: The number of the domain's email accounts.
example: 2
minimum: 0
type: integer
number_of_email_forwarders:
description: The number of the domain's email forwarders.
example: 1
minimum: 0
type: integer
owner:
description: The addon domain owner's cPanel account username.
example: username
format: username
type: string
type: object
metadata:
properties:
command:
example: convert_addon_fetch_domain_details
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
type: object
description: HTTP Request was successful.
summary: Return additional domain data
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_fetch_domain_details \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_fetch_domain_details?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/convert_addon_get_conversion_status:
get:
description: 'This function returns the status of the convert addon domain to
account process for specified conversion jobs. For data about the conversion
status of all jobs, use the WHM API 1 `convert_addon_fetch_conversion_details`
function.
**Important:**
When you disable the
[Web Server role](https://go.cpanel.net/howtouseserverprofiles#roles),
the system **disables** this function.'
operationId: ConvertAddon-convert_addon_get_conversion_status
parameters:
- description: 'The conversion''s job identification number.
**Note:**
To list entries for multiple conversion jobs, increment the parameter name. For example: `job_id-0`, `job_id-1`,
and `job_id-2`.'
examples:
multiple:
summary: Get the status for multiple conversion jobs.
value: job_id-1=10&job_id-2=33&job_id-3=15
single:
summary: Get status for a single conversion job.
value: 10
in: query
name: job_id
required: true
schema:
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: 'The converion job''s identification number.
**Note:**
The property name is the identification number of the requested job.'
properties:
job_end_time:
description: The time when the convert addon domain to account process ended.
format: unix_timestamp
type: integer
job_id:
description: 'The conversion''s job identification number.
**Note:**
The system stores this numeric value as a string.'
minimum: 1
pattern: '[1-9]+'
type: string
job_status:
description: 'The status of the conversion process.
* `DONE` — The conversion finished successfully.
* `IN PROGRESS` — The conversion is running.
* `FAILED` — The converion failed for some reason.'
enum:
- DONE
- IN PROGRESS
- FAILED
type: string
source_acct:
description: The addon domain to convert into a cPanel account.
type: string
type: object
description: An object that contains details about the conversion job's status.
example:
'1':
job_end_time: 1462383658
job_id: '1'
job_status: DONE
source_acct: user1
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_addon_get_conversion_status
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return conversion status for additional domain
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_get_conversion_status \\\n job_id='10'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_get_conversion_status?api.version=1&job_id=10
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/convert_addon_initiate_conversion:
get:
description: 'This function initiates the conversion process for an addon domain
into a cPanel account.
**Note:**
For information about the data that the system migrates when you convert an
addon domain, read our
[Addon Domain Conversion List documentation](https://go.cpanel.net/AddonConversionList).
**Important:**
When you disable the [Web Server role](https://go.cpanel.net/howtouseserverprofiles#roles),
the system **disables** this function.'
operationId: ConvertAddon-convert_addon_initiate_conversion
parameters:
- description: The addon domain to convert into an account's main domain.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: The username for a specified account.
in: query
name: username
required: true
schema:
example: username
format: username
type: string
- description: 'Copy a MySQL® database from the source account to the new account with a new
database name.
This parameter''s format consists of `copymysqldb`, a hyphen, and the name of
the existing database. For example, `copymysqldb-olddatabase`.
If you do **not** specify this parameter, the system does **not** copy any MySQL
databases to the new account.'
examples:
multiple:
summary: Copy multiple databases.
value: copymysqldb-olddatabase1=newdatabase1 copymysqldb-olddatabase2=newdatabase2
single:
summary: Copy a single database.
value: newdatabase
in: query
name: copymysqldb-*
required: false
schema:
type: string
- description: 'Move the specified MySQL database from the source account to the new account.
If you do **not** specify this parameter, the system does **not** move any MySQL
databases to the new account.
**Note:**
To move multiple databases, increment the parameter name. For example, `movemysqldb-1`,
`movemysqldb-2`, and `movemysqldb-3`.'
examples:
multiple:
summary: Move multiple databases.
value: movemysqldb-1=exampledb1 movemysqldb-2=exampledb2 movemysqluser-3=exampledb3
single:
summary: Move a single database.
value: exampledb
in: query
name: movemysqldb
required: false
schema:
type: string
- description: 'Move the specified MySQL database user from the source account into the new
MySQL database account.
If you do **not** specify this parameter, the system does **not** move any MySQL
database users to the new account.
**Note:**
To move multiple database users, increment the parameter name. For example, `movemysqluser-1`,
`movemysqluser-2`, and `movemysqluser-3`.'
examples:
multiple:
summary: Move multiple database users.
value: movemysqluser-1=dbuser1 movemysqluser-2=dbuser2 movemysqluser-3=dbuser3
single:
summary: Move a single database user.
value: dbuser1
in: query
name: movemysqluser
required: false
schema:
type: string
- description: The hosting package that you want to assign to the new account.
in: query
name: pkgname
required: false
schema:
default: default
example: mycustompkg
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties: {}
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_addon_initiate_conversion
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Start additional domain conversion
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_initiate_conversion \\\n username='username' \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_initiate_conversion?api.version=1&username=username&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/convert_addon_list_addon_domains:
get:
description: 'This function returns a list of addon domains that belong to the current user.
**Important:**
When you disable the [Web Server role](https://https://go.cpanel.net/serverroles), the system **disables** this function.'
operationId: ConvertAddon-convert_addon_list_addon_domains
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: 'An object containing the domain''s data.
**Note:**
The domain''s name is the return''s name.'
properties:
docroot:
description: The document root for the addon domain.
example: /home/exampleparent/public_html/example.com
type: string
domain_type:
description: The domain's type.
example: addon
type: string
ip:
description: The domain's IPv4 address.
example: 192.0.2.0
format: ipv4
type: string
ipv6:
description: The domain's IPv6 address.
example: 2001:db8:a0b:12f0::1
format: ipv6
type: string
owner:
description: The domain's owner.
example: exampleparent
format: username
type: string
reseller:
description: The domain's reseller.
example: exampleparent
format: username
type: string
subdomain:
description: The domain's subdomain.
example: example.exampleparent.com
format: domain
type: string
example:
example.com:
docroot: /home/exampleparent/public_html/example.com
domain_type: addon
ip: 192.0.2.0
owner: root
subdomain: example.exampleparent.com
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_addon_list_addon_domains
type: string
reason:
description: The reason the function failed when the `metadata.result` field is 0. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '- `1` - Success.
- `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
description: HTTP Request was successful.
summary: Return current user's additional domains
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_list_addon_domains\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_list_addon_domains?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/convert_addon_list_conversions:
get:
description: 'This function returns a list of addon domains undergoing conversion
into cPanel accounts.
**Important:**
When you disable the [Web Server role](https://https://go.cpanel.net/serverroles), the system **disables** this function.'
operationId: ConvertAddon-convert_addon_list_conversions
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
conversions:
description: List of conversions from an addon domain to an independent cPanel account.
items:
properties:
domain:
description: The addon domain to convert into a cPanel account.
example: example.com
format: domain
type: string
end_time:
description: A date in Unix time format that indicates when the process ended.
example: 1462216653
format: unix_timestamp
type: integer
job_id:
description: The conversion's job number.
example: 1
minimum: 0
type: integer
source_acct:
description: The cPanel account username that owned the domain at the time of conversion.
example: example
format: username
type: string
start_time:
description: A date in Unix time format that indicates when the process started.
example: 1462216639
format: unix_timestamp
type: integer
status:
description: 'The status of the conversion process.
* `DONE` — The conversion is finished.
* `IN PROGRESS` — The conversion is in progress.
* `FAILED` — The conversion failed.'
enum:
- DONE
- IN PROGRESS
- FAILED
example: DONE
type: string
target_acct:
description: The destination user account for the conversion.
example: example2
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_addon_list_conversions
type: string
reason:
description: The reason the function failed when the `metadata.result` field is `0`. This field may
include a success message when the function succeeds.
example: OK
type: string
result:
description: '* 1 — Success.
* 0 — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The API version of the function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return additional domains conversion queue
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_addon_list_conversions\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_addon_list_conversions?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/convert_all_domains_to_fpm:
get:
description: 'This function activates PHP-FPM for any non-PHP-FPM domains on a server.
**Important:**
When you disable the [*Web Server*](https://go.cpanel.net/howtouseserverprofiles) role, the system **disables** this
function.
**Warning:**
We **strongly** recommend that you only activate Apache PHP-FPM if your server has at least 2 GB of RAM available,
or at least 30 MB of RAM per domain. If you enable PHP-FPM on a server with less than the required RAM, your server
may experience severe performance issues.'
operationId: PHP-convert_all_domains_to_fpm
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
build_id:
description: The ID of the log file for the conversion process.
example: 1493645268
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: convert_all_domains_to_fpm
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* 1 - Success
* 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable PHP-FPM on all domains
tags:
- PHP-FPM
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_all_domains_to_fpm\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_all_domains_to_fpm?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '66'
/convert_and_migrate_from_legacy_config:
get:
description: This function converts and migrates a server from the Legacy Backup system to the Backup system.
operationId: Backup-convert_and_migrate_from_legacy_config
parameters:
- description: "Whether to convert the server from the Legacy Backup system to\nthe Backup system.\n * `1` — Convert.\n\
\ * `0` — Do **not** convert."
in: query
name: no_convert
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: convert_and_migrate_from_legacy_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Legacy Backup configuration was renamed from /etc/cpbackup.conf to /etc/cpbackup.conf-1485958451
as a backup copy for your records.
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Migrate server to new backup system
tags:
- Backups
- Legacy Migration
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convert_and_migrate_from_legacy_config\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convert_and_migrate_from_legacy_config?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/convertopensshtoputty:
get:
description: 'This function converts an OpenSSH private key to a PuTTY key.
**Warning:**
Do **not** transfer private keys over insecure ports.'
operationId: SSH-convertopensshtoputty
parameters:
- description: The private key file's name.
in: query
name: file
required: true
schema:
example: KeyFile
type: string
- description: 'Whether to keep the OpenSSH file on the server after conversion.
* `1` — Keep the file.
* `0` — Delete the file.'
in: query
name: keep_file
required: false
schema:
default: 1
enum:
- 0
- 1
example: 0
type: integer
- description: The private key file's passphrase.
in: query
name: passphrase
required: false
schema:
default: ''
example: 12345luggage
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
key:
description: The converted key file's text.
example: 'PuTTY-User-Key-File-2: ssh-rsa Encryption: aes256-cbc Comment: imported-openssh-key Public-Lines:
12 AAAAB3NzaC1yc2EAAAABIwAAAgEAuuth41YYyWABsRKexJXgSMD8FvIBFCptUfZP 4U/6R41FvL/RS+99kq1WL/KASsKRoEA5uc0axM+iNgZtKuemQYGUZNvN+8X8sC/l
E6GF7X3Pvj2Ml4AlD7TQv0WQZUp9xn+SlOti+3pYh+S56vzNjvdifO7U5mPGW/81 9N4vGhG3ThaAgETwkL33CM2LeNRuvoWpeQcuzEVX2aOvHQZqOvV15fTjZ64ZGL3i
UDtKmeaHs4tMqgNIUXgn1P1V4TgPvTIfopH8FBX3g1pD15XD3vn+XHLwia0505c5 +QM+jElS3HHb0vrrDo3S+8koXLWp07wu/GYrvBd5+MlsSV7bpr7lmWj8uMQjc0ap
eZe+eb/MteadWnqIPeOVuracssCvDLqXEPK2KjhFMPqBTepNhZaJHRfvkodPm43C 50nhqzrNoxFvXb1rfCjPPqGfhuSZhlCmo2FDiZPKdl0X7bhzDIvMVikyqJP06bqK
y9iclyQv0VPfyCIx/VDcVclIoUa8A49nAin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Y3Zb4qotlprLeK
7dJslpNnrD/MSvbJZ/ZoAX+xyDxUMeq/83Xv30i5/wh00QBY4Cv5NTDU4rPoVmQm EWGW5aQx34in4JHY5bK3F4BvVYm7MscKLHoU8/OeKVAgzNcatUgPlN43FG9SX0AE
pP3EYlVADSfULdbfBn9dZDidAiDMXnCv9259J65zA64tuT9XluinHXVs5PA/f5vm rZPQhAzGThw7h9L6rGYGfSKd9KYoTwf8kSOA6WU7OEyhfTvCdaW76vPi4CRW2M/Y
RHX0IUdv3VxfKb4WnXFeQl6LshmGB1T2mbMyfThlqUCGAvPJyWDtZ6OpOUl3CK87 3jhFzO7t5wruhuWZ3RcISVsrdqcjgCrKy6Q9y+HbLJoNY40BkJm7f6WeV+hHn7o1
od7JiqDGq3Qk+ECEdexvqdRQS7BWgO7xudGFk+WFY02zoGvq5DMviNfsxqhM06P+ JgEinB8xPPCOPzi6q8T1y1Pz44gmluM15/QRX4z0Mwz6UQasVC/NsZxdfoNGtCy0
c2DAscy4zsiKhZMlLr0loPYycO2bOit6E5eYkrACJR2115/ZgVwzvzdmc/INJCxG3TvKYbeuv/tkolt56uJWGfMF2ZrfLJaaQ0iAiUyMep/keLP2bJ4Y97o+03BtQszZ
zixXvzeQAX97WdBaUJU0C3mCKDOtkv4RWZ8hXV5v0m2tm7xbXVBzF22Pej2iHDKx GQkciskBRwQM4bDZorkcO+WnGn6uPbtw5v/AuIUqB1UNAcehWN6UTiFNveP4hLYu
iRGWnZZ+uTbip91PNXSxXzb9yMWV2qSVIsZvud8kpR8ttL26Z4ySUKkFuPrgUeTeELnOF3GP6Ixk+IkwxU575w== Private-MAC:
1dfa6a4c8297d31e4cfadbf61aac8b4c5ca75584'
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: convertopensshtoputty
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Migrate OpenSSH key to PuTTY format
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n convertopensshtoputty \\\n file='KeyFile'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/convertopensshtoputty?api.version=1&file=KeyFile
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/cors_proxy_get:
get:
description: This function allows your system to perform Cross-Origin Resource Sharing (CORS) HTTP requests.
operationId: CORSProxy-cors_proxy_get
parameters:
- description: The website that you wish to access.
in: query
name: url
required: true
schema:
example: http://www.example.com
format: url
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
_cp_redirects:
description: "An array that contains the redirects which the website performs, if any exist.\n\n**Notes:**\n\
\n* This return counts redirects.\n* If any redirects exist, this returns as an array of objects\
\ containing the `content`, `protocol`, `reason`, `status`, `success`, and `url` returns and the\
\ `headers` object.\n* `null` - Redirects do not exist.\n\n**Note:**\n\n The JSON example output\
\ above displays this condition."
items:
properties:
headers:
additionalProperties:
oneOf:
- type: string
- type: integer
x-additionalPropertiesName: header-name
description: 'An object containing the header fields that the request returned.
**Note:**
This object''s keys vary based on the URL''s headers.'
example:
age: '425879'
cache-control: max-age=604800
content-length: '1256'
content-type: text/html; charset=UTF-8
date: Thu, 05 Mar 2020 23:42:25 GMT
etag: '"3147526947+ident"'
expires: Thu, 12 Mar 2020 23:42:25 GMT
last-modified: Thu, 17 Oct 2019 07:18:26 GMT
server: ECS (dab/4BA8)
vary: Accept-Encoding
x-cache: HIT
nullable: true
type: object
protocol:
description: The URL's HTTP protocol.
example: HTTP/1.1
nullable: true
type: string
reason:
description: The response that the server returned.
example: OK
nullable: true
type: string
status:
description: The response's HTTP status code.
example: '200'
nullable: true
type: string
success:
description: 'Whether the function returned a 2XX HTTP status code.
- `1` - Success.
- `0` - Failure.'
enum:
- 0
- 1
example: 1
nullable: true
type: integer
url:
description: The URL that provided the response.
example: http://www.example.com
format: url
nullable: true
type: string
type: object
nullable: true
type: array
content:
description: "The URL's content.\n\n**Note:**\n\n We strongly recommend that you confirm the content's\
\ type before you use the content return's value. The function may also return this value in the\
\ _cp_redirects array of hashes. A valid string."
example: '\n\n\n Example Domain\n\n \n \n \n \n\n\n\n\n
Example Domain
\n
This domain is for use in illustrative examples in documents. You may
use this\n domain in literature without prior coordination or asking for permission.
\n
More information...
\n
\n\n\n'
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: cors_proxy_get
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable CORS HTTP requests
tags:
- API Execution
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cors_proxy_get \\\n url='http://www.example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cors_proxy_get?api.version=1&url=http%3a%2f%2fwww.example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
x-cpanel-internal-only: false
/cpanel:
get:
description: 'You can call cPanel API and UAPI functions through the WHM API.
This method is useful, for example, when you develop plugins for WHM users, particularly resellers, but need to access
cPanel functions. You can make these calls from within either the WHM or cPanel interfaces.
**Important:**
We recommend that you use the WHM API 1 `uapi_cpanel` function. The `uapi_cpanel` function is a more flexible way
to call cPanel API functions from WHM. For example, you can use the `uapi_cpanel` function with the WHM API 1 `batch`
function.
Before calling a cPanel API function via this method, read its documentation. The cPanel API function may require
other parameters **not** listed in this document.'
operationId: Other-cpanel
parameters:
- description: 'The UAPI function name.
**Important:**
Function names are **case-sensitive**.'
in: query
name: cpanel_jsonapi_func
required: true
schema:
example: listpopswithdisk
type: string
- description: 'The UAPI module name.
**Important:**
Module names are **case-sensitive**.'
in: query
name: cpanel_jsonapi_module
required: true
schema:
example: Email
type: string
- description: 'The cPanel username for the account through which to call the function.
Make **certain** that you specify the username in lowercase characters **only**. cPanel & WHM automatically converts
usernames to lowercase when you create a cPanel account. For this reason, if you supply a username that includes
some or all capital letters, the call will fail.'
in: query
name: cpanel_jsonapi_user
required: true
schema:
example: user
format: username
type: string
- description: 'The cPanel API version to use.
* `1` — Use cPanel API 1.
* `2` — Use cPanel API 2.
* `3` — Use UAPI.'
in: query
name: cpanel_jsonapi_apiversion
schema:
default: 2
enum:
- 1
- 2
- 3
example: 3
type: integer
- description: 'The function''s input parameters and their values. You can add any additional parameters supported by
the underlying cPanel API function.
Example: `domain=example.com`
**Note:**
* Separate multiple `parameter=value` pairs with the ampersand character (`&`).
* You **must** URI-encode these values.'
in: query
name: Variable Names and Values
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
description: Information returned by the cPanel API function passed in `cpanel_jsonapi_module` and `cpanel_jsonapi_func`.
metadata:
properties:
command:
description: The method name called.
example: cpanel
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Run cPanel API or UAPI function
tags:
- API Execution
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpanel \\\n cpanel_jsonapi_user='user' \\\n cpanel_jsonapi_module='Email'\
\ \\\n cpanel_jsonapi_func='listpopswithdisk'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpanel?api.version=1&cpanel_jsonapi_user=user&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=listpopswithdisk
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '84'
/cpgreylist_is_server_netblock_trusted:
get:
description: This function returns the Greylisting trusted status of the server's netblock.
operationId: cPGreyList-cpgreylist_is_server_netblock_trusted
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ip_blocks:
additionalProperties:
description: 'Whether the *Trusted Hosts* list includes the IP address range.
This return''s name is the IP address range.
* `1` — Trusted.
* `0` — Not trusted.'
enum:
- 1
- 0
type: integer
description: A list containing the neighboring netblocks.
example:
10.0.0.0-10.255.255.255: 1
199.0.0.0-199.3.255.255: 1
48.0.0.0-48.255.255.255: 1
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_is_server_netblock_trusted
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Greylisting trust status of server netblock
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_is_server_netblock_trusted\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_is_server_netblock_trusted?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/cpgreylist_list_entries_for_common_mail_provider:
get:
description: This function lists Greylisting's IP addresses for the specified mail provider.
operationId: cPGreyList-cpgreylist_list_entries_for_common_mail_provider
parameters:
- description: "The mail provider.\n\n**Note:**\n\n * To list entries for multiple mail providers, increment the parameter\
\ name. For example, `provider-0`, `provider-1`, and `provider-2`.\n * Call WHM API 1's `cpgreylist_load_common_mail_providers_config`\
\ function to return a list of valid provider keys."
examples:
multiple:
summary: List multiple mail provider entries.
value: provider-0=example-0 provider-1=example-1 provider-2=example-2
single:
summary: List a single mail provider entry.
value: cpanel
in: query
name: provider
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
example:
providers:
cpanel:
ips:
- create_time: '2015-07-28T08:16:52.000Z'
host_ip: 208.115.214.0-208.115.214.255
is_trusted: 1
provider_id: 7
- create_time: '2015-07-28T08:16:52.000Z'
host_ip: 74.63.202.0-74.63.202.255
is_trusted: 1
provider_id: 7
providers_failed:
dpanel: 'Unknown mail provider: dpanel'
properties:
providers:
additionalProperties:
description: 'An object containing an object that contains the mail provider''s IP address data.
**Note:**
The return''s name is the mail provider''s display name.'
properties:
ips:
description: An object containing the mail provider's IP address data.
properties:
create_time:
description: The date and time when the function created the record.
example: '2015-07-28T08:16:52.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
host_ip:
description: The mail provider's IP address or range.
example: 192.168.0.1
format: ipv4
type: string
is_trusted:
description: 'Whether Greylisting trusts this mail provider''s IP addresses.
- `1` — Trusted.
- `0` — Not trusted.'
enum:
- 0
- 1
example: 1
type: integer
provider_id:
description: The mail provider's identification number.
example: 7
minimum: 1
type: integer
type: object
description: An object containing mail providers and their IP addresses.
providers_failed:
additionalProperties:
description: 'The reason why the system failed to list IP addresses for the provider.
**Note:**
The return''s name is the mail provider''s display name.'
type: string
description: An object containing mail providers that the system failed to retrieve data for.
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_list_entries_for_common_mail_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Greylisting IP addresses of mail providers
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_list_entries_for_common_mail_provider \\\n provider='cpanel'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_list_entries_for_common_mail_provider?api.version=1&provider=cpanel
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/cpgreylist_load_common_mail_providers_config:
get:
description: This function returns Greylisting's list of common mail service providers.
operationId: cPGreyList-cpgreylist_load_common_mail_providers_config
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
autotrust_new_common_mail_providers:
description: 'Whether Greylisting automatically trusts new mail providers that WebPros International,
LLC adds to the common mail providers list.
* `1` - New mail providers are automatically trusted.
* `0` - New mail providers are **not** automatically trusted.'
enum:
- 0
- 1
example: 1
type: integer
common_mail_providers:
additionalProperties:
description: "An object containing the provider's data.\n\n**Note:**\n\n The object's name is the\
\ provider's key name."
properties:
autoupdate:
description: 'Whether Greylisting automatically trusts new IP addresses that WebPros International,
LLC adds for this mail provider.
* `1` - New IP addresses are automatically trusted.
* `0` - New IP addresses are **not** automatically trusted.'
enum:
- 0
- 1
example: 1
type: integer
display_name:
description: The mail provider's name.
example: cPanel
type: string
is_trusted:
description: 'Whether Greylisting trusts this mail provider''s IP addresses.
* `1` - The provider is trusted.
* `0` - The provider is **not** trusted.'
enum:
- 0
- 1
example: 1
type: integer
type: object
description: An object containing common mail provider settings.
example:
cpanel:
autoupdate: 1
display_name: cPanel
is_trusted: 1
sectigo:
autoupdate: 1
display_name: Comodo/Sectigo
is_trusted: 1
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_load_common_mail_providers_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
type: object
description: HTTP Request was successful.
summary: Return Greylisting mail providers
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_load_common_mail_providers_config\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_load_common_mail_providers_config?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/cpgreylist_save_common_mail_providers_config:
get:
description: This function sets whether Greylisting trusts new entries to cPanel's common mail providers list.
operationId: cPGreyList-cpgreylist_save_common_mail_providers_config
parameters:
- description: 'Whether Greylisting automatically trusts new mail providers that cPanel adds to the common mail providers
list.
* `1` — Automatically trust new mail providers cPanel adds to the common mail providers list.
* `0` — Do **not** automatically trust new mail providers cPanel adds to the common mail providers list.'
in: query
name: autotrust_new_common_mail_providers
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: "Whether Greylisting automatically trusts new IP addresses that cPanel adds to this mail provider.\n\n\
* `1` — Automatically trust new IP addresses cPanel adds to this mail provider.\n* `0` — Do **not** automatically\
\ trust new IP addresses cPanel adds to this mail provider.\n\nIf you do not specify this parameter, the system\
\ will **not** change Greylisting settings for **any** existing provider.\n\n**Note:**\n\n The parameter's name\
\ is the provider's key name.\n Example key and value:\n * `google=0`"
in: query
name: PROVIDERKEY
required: false
schema:
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
autotrust_new_common_mail_providers:
description: 'Whether Greylisting automatically trusts new mail providers that WebPros International,
LLC adds to the common mail providers list.
* `1` - New mail providers are automatically trusted.
* `0` - New mail providers are **not** automatically trusted.'
enum:
- 0
- 1
example: 1
type: integer
common_mail_providers:
additionalProperties:
description: "An object containing the provider's data.\n\n**Note:**\n\n The object's name is the\
\ provider's key name."
properties:
autoupdate:
description: 'Whether Greylisting automatically trusts new IP addresses that WebPros International,
LLC adds for this mail provider.
* `1` - New IP addresses are automatically trusted.
* `0` - New IP addresses are **not** automatically trusted.'
enum:
- 0
- 1
example: 1
type: integer
display_name:
description: The mail provider's name.
example: cPanel
type: string
is_trusted:
description: 'Whether Greylisting trusts this mail provider''s IP addresses.
* `1` - The provider is trusted.
* `0` - The provider is **not** trusted.'
enum:
- 0
- 1
example: 1
type: integer
type: object
description: An object containing common mail provider settings.
example:
cpanel:
autoupdate: 1
display_name: cPanel
is_trusted: 1
sectigo:
autoupdate: 1
display_name: Comodo/Sectigo
is_trusted: 1
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_load_common_mail_providers_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
type: object
description: HTTP Request was successful.
summary: Update Greylisting new mail provider handling
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_save_common_mail_providers_config\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_save_common_mail_providers_config?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/cpgreylist_status:
get:
description: This function returns the status of Greylisting.
operationId: cPGreyList-cpgreylist_status
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
is_enabled:
description: 'Whether Greylisting is enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
is_exim_enabled:
description: 'Whether Exim is enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
service:
description: The name of the service.
example: cPGreyList
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_status
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Greylisting status
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_status\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_status?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/cpgreylist_trust_entries_for_common_mail_provider:
get:
description: This function marks the IP addresses for the specified mail provider as trusted. Greylisting will not defer
emails from trusted IP addresses.
operationId: cPGreyList-cpgreylist_trust_entries_for_common_mail_provider
parameters:
- description: "The mail providers’ names.\n\nCall the `cpgreylist_load_common_mail_providers_config` API function\n\
to retrieve the system’s recognized provider names.\n\n**Note:**\n\n To trust multiple mail providers, increment\
\ the parameter name (for example: `provider-0`, `provider-1`, and `provider-2`)."
examples:
multiple:
summary: Trust multiple mail providers.
value: provider-1=cpanel&provider-2=google
single:
summary: Trust a single mail provider.
value: cpanel
in: query
name: provider
required: true
schema:
example: cpanel
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
providers_failed:
additionalProperties:
description: 'The reason for the provider’s failure.
**Note:**
The property’s keys are the provider name.'
example: This failed because it rained.
type: string
description: The providers whose configuration changes failed.
type: object
providers_trusted:
additionalProperties:
description: 'The providers whose configuration changes succeeded.
**Note:**
The property’s keys are the provider name.'
properties:
ips_trusted:
description: The total number of the mail provider's IP addresses that Greylisting trusts.
example: 21
minimum: 1
type: integer
type: object
description: The mail providers that Greylisting trusts.
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_trust_entries_for_common_mail_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add mail provider to Greylisting trusted hosts
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_trust_entries_for_common_mail_provider \\\n provider='cpanel'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_trust_entries_for_common_mail_provider?api.version=1&provider=cpanel
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/cpgreylist_untrust_entries_for_common_mail_provider:
get:
description: 'This function marks the IP addresses for the specified mail provider as not trusted.
Greylisting defers emails from non-trusted IP addresses.'
operationId: cPGreyList-cpgreylist_untrust_entries_for_common_mail_provider
parameters:
- description: "The mail provider.\n\n**Note:**\n\nTo trust multiple mail providers,\n increment the parameter name.\
\ For example, provider-0, provider-1, provider-2."
examples:
multiple:
summary: Trust multiple mail providers
value: provider-1=10 provider-2=33 provider-3=15
single:
summary: Trust a single mail provider
value: '1'
in: query
name: provider
required: true
schema:
example: cpanel
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
providers_failed:
additionalProperties:
description: The mail provider's data.
properties:
ips_untrusted:
description: The mail providers that failed to update.
example: 21
type: integer
type: object
x-additionalPropertiesName: provider_key
type: object
providers_untrusted:
additionalProperties:
description: The reason why the change for a provider failed.
example: Unknown mail provider.
type: string
x-additionalPropertiesName: provider_key
description: The mail providers that Greylisting does not trust.
type: object
metadata:
properties:
command:
description: The method name called.
example: cpgreylist_untrust_entries_for_common_mail_provider
type: string
reason:
description: 'The reason the API function failed when the `metadata.result` field is `0`.
This field may display a success message when a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add mail provider to Greylisting non-trusted hosts
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cpgreylist_untrust_entries_for_common_mail_provider \\\n provider='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cpgreylist_untrust_entries_for_common_mail_provider?api.version=1&provider=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/cphulk_status:
get:
description: This function returns the status of the cPHulk service.
operationId: cPHulk-cphulk_status
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
is_enabled:
description: 'Whether the cPHulk service is enabled.
* `1` - cPHulk is enabled.
* `0` - cPHulk is disabled.'
enum:
- 0
- 1
example: 1
type: integer
service:
description: The cPHulk service's name.
example: cPHulk
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: cphulk_status
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security status
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n cphulk_status\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/cphulk_status?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/create_account_enhancement:
get:
description: This function creates a new account enhancement.
operationId: AccountEnhancements-create_account_enhancement
parameters:
- description: 'The identifier of the item you are targeting.
**Note:**
* You must use an [account enhancements ID](https://go.cpanel.net/add-account-enhancements) that a 3rd-party plugin
defines.
* To return a list of valid account enhancement IDs, run the WHM API 1 `list_account_enhancements` function.'
in: query
name: id
required: true
schema:
example: sample-enhancement-id
type: string
- description: The name of the account enhancement.
in: query
name: name
required: true
schema:
example: featurename 5000
maxLength: 80
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
name:
description: The name of the newly-created account enhancement.
example: featurename 5000
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_account_enhancement
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create Account Enhancement
tags:
- Account Enhancements
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_account_enhancement \\\n name='featurename 5000' \\\n id='sample-enhancement-id'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_account_enhancement?api.version=1&name=featurename%205000&id=sample-enhancement-id
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.98'
/create_cpgreylist_trusted_host:
get:
description: This function adds an IP address to the *Greylisting Trusted Hosts* list.
operationId: cPGreyList-create_cpgreylist_trusted_host
parameters:
- description: 'The record''s IP address, or a range of IP addresses.
**Note:**
To add multiple IP addresses, increment the parameter name. For example, `ip-1`, `ip-2`, and `ip-3`.'
examples:
multiple:
summary: To add multiple IP addresses.
value: ip-1=192.168.0.1&ip-2=192.168.0.2&ip-3=192.168.0.3
single:
summary: To add a single IP address.
value: 192.168.0.1
in: query
name: ip
required: true
schema:
example: 192.168.0.1
type: string
- description: A comment.
in: query
name: comment
required: false
schema:
example: NoComment
maxLength: 255
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
comment:
description: Comment for the batch.
example: NoComment
maxLength: 255
type: string
ips_added:
description: An array of objects that contains the IP addresses that the function added to the Trusted
Hosts list.
items:
properties:
comment:
description: Comment for the individual record.
example: Fascinating
maxLength: 255
type: string
create_time:
description: The date and time at which the function created the record.
example: '2015-02-17T10:08:26.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
host_ip:
description: The trusted host's IP address.
example: 192.168.0.1
format: ipv4
type: string
id:
description: The host's record number.
example: 42
minimum: 1
type: integer
type: object
type: array
ips_failed:
description: An object that contains the IP addresses that the function failed to add to the Trusted
Hosts list.
properties:
comment:
description: The reason for the failure.
example: Sorry, 192.168 is not a valid IP address.
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: create_cpgreylist_trusted_host
type: string
reason:
description: 'The reason the API function failed when the `metadata.result` field is `0`.
This field may display a success message when a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add IP address to Greylisting trusted hosts
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_cpgreylist_trusted_host \\\n ip='192.168.0.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_cpgreylist_trusted_host?api.version=1&ip=192.168.0.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/create_cphulk_record:
get:
description: This function adds a new record or records to cPHulk's whitelist or blacklist.
operationId: cPHulk-create_cphulk_record
parameters:
- description: 'The record''s IP address, if there is only one IP address to add.
**Note:**
To add multiple IP addresses, increment the parameter name. For example, `ip-1`, `ip-2`, and `ip-3`.'
examples:
multiple:
description: Add multiple IP addresses.
value:
- 192.168.0.1
- 192.168.0.2
- 192.168.0.3
single:
description: Add a single IP address.
value:
- 192.168.0.1
explode: true
in: query
name: ip
required: true
schema:
items:
$ref: '#/components/schemas/ip-address'
style: form
- description: 'The cPHulk list''s name.
* `black` - Add a new record or records to the blacklist.
* `white` - Add a new record or records to the whitelist. '
in: query
name: list_name
required: true
schema:
enum:
- black
- white
example: white
type: string
- description: A comment to include.
in: query
name: comment
required: false
schema:
example: George Wendt flying through the air.
maximum: 255
type: string
- description: "Whether to skip checking if cPHulk runs on the server.\n\n* `1` - Do **not** check if cPHulk is running.\n\
* `0` - Check if cPHulk is running.\n\n**Note:**\n\n If cPHulk is disabled and you check its status, the function\
\ returns the following message: `cPHulk is disabled on the server.` "
in: query
name: skip_enabled_check
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
comment:
description: The comment that you included when you called the function.
example: George Wendt flying through the air.
type: string
ip_blocks_removed:
description: The number of IP address blocks that the function deleted.
example: 1
type: integer
ips_added:
description: An array of IP addresses that the function added to the list.
items:
$ref: '#/components/schemas/ip-address'
type: array
ips_failed:
additionalProperties:
description: 'The reason why the system failed to add an IP address to the list.
**Note:**
The IP address is the return''s name.'
type: string
description: A object of IP addresses that the system failed to add to the list. This object contains
one or more IP address returns.
example:
192.168.0.1: 'Invalid IP address or range: "192.68.0.1"'
type: object
iptable_bans_removed:
description: The number of `iptables` temporary block rules that the function deleted.
example: 0
minimum: 0
type: integer
list_name:
description: 'The cPHulk list''s name.
* `black`
* `white`'
enum:
- black
- white
example: white
type: string
requester_ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The IP address of the user or system that requested the addition.
example: 10.1.4.228
requester_ip_is_whitelisted:
description: 'Whether the requester''s IP address exists on cPHulk''s whitelist.
* `1` - Whitelisted.
* `0` - Not whitelisted.'
enum:
- 0
- 1
example: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: create_cphulk_record
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add login security record to list
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_cphulk_record \\\n list_name='white' \\\n ip='192.168.0.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_cphulk_record?api.version=1&list_name=white&ip=192.168.0.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/create_featurelist:
get:
description: 'This function creates or updates a feature list.
**Note:**
A reseller **must** possess the
[Add/Remove Package feature](https://docs.cpanel.net/whm/resellers/edit-reseller-nameservers-and-privileges/#packages)
to use this function.'
operationId: FeatureLists-create_featurelist
parameters:
- description: The feature list's name.
in: query
name: featurelist
required: true
schema:
example: CustomFeatureList
type: string
- description: 'Whether to add a specific feature in the feature list.
* `1` — Add the feature.
* `0` — Do **not** add the feature.
**Note:**
* The parameter''s name is a feature''s name. For example, the `changemx=1`
adds the *Change Mail Exchanger* feature to the feature list.
* You can add or omit multiple features.'
in: query
name: featurelistname
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
- description: 'Whether to overwrite an existing feature list.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
in: query
name: overwrite
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
featurelist:
description: The feature list's name.
example: Arthur
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_featurelist
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create feature list
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_featurelist \\\n featurelist=Arthur webmail=1 changemx=1 overwrite=1\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_featurelist?api.version=1&featurelist=Arthur&webmail=1&changemx=1&overwrite=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.46'
/create_integration_group:
get:
description: This function creates a group to store integrations links in the cPanel interface.
operationId: Integration-create_integration_group
parameters:
- description: "The group's ID within the system.\n\n**Warning:**\n\n If you create a link with a `group_id` value that\
\ already exists, the function replaces the existing group with the newly-created group."
in: query
name: group_id
required: true
schema:
example: WHMCS
type: string
- description: The label for the group to display in the cPanel interface.
in: query
name: label
required: true
schema:
example: WHMCS+Control
type: string
- description: "The order in which to display the group in the cPanel interface.\n\n**Note:**\n\n By default, the function\
\ will automatically create an item under the username menu in the interface header."
in: query
name: order
required: true
schema:
example: 1
minimum: 1
type: integer
- description: The cPanel account name.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: create_integration_group
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Ok
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create integration link group
tags:
- Integration
- Links
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_integration_group \\\n user='username' \\\n group_id='WHMCS' \\\
\n label='WHMCS+Control' \\\n order='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_integration_group?api.version=1&user=username&group_id=WHMCS&label=WHMCS%2bControl&order=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/create_integration_link:
get:
description: 'This function creates an integration link in the cPanel interface.
**Note:**
The function creates the `APP.adminconfig` and `APP.userconfig` integration link files in the `/var/cpanel/integration/links/USERNAME` directory,
where `APP` represents the application name and `USERNAME` represents the user for whom you create integration links.'
operationId: Integration-create_integration_link
parameters:
- description: 'The application to link.
**Note:**
* If you create a link with an `app` value that already exists, the function will replace the existing link with
the newly-created link.
* The value you assign to the `app` parameter is how you identify that integration link when listing or removing
integration links.
* You may include underscore (`_`) characters.'
in: query
name: app
required: true
schema:
example: WHMCS_billing
type: string
- description: 'The service for which to implement authentication.
**Note:**
This is a string from the `get_users_links` function. The function typically returns one of the following values.
* `billing` - This link appears in the user menu
* `customer_service` - This link appears in the user menu
* `support` - This link appears in the user menu
* `upgrade` - This link appears in the user menu and context-sensitive areas when the user may require more of a
resource'
in: query
name: implements
required: true
schema:
example: billing
type: string
- description: The label to display in the cPanel login interface.
in: query
name: label
required: true
schema:
example: WHMCS Billing
type: string
- description: The subscriber's unique ID that the system will present to the URL in the `autologin_token_url` endpoint.
in: query
name: subscriber_unique_id
required: true
schema:
example: '1234'
type: string
- description: The token that the system will present to the URL in the `autologin_token_url` endpoint.
in: query
name: token
required: true
schema:
example: subway
type: string
- description: The cPanel account name.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
- description: 'The URL to which the server will send the `app`, `token`, `user`, and `subscriber_unique_id` values
through an `HTTP POST` request. The destination server will respond with a JSON-encoded object with either a `redirect_url`
key or the `retry` and `attempt` keys.
**Note:**
* You **must** include either the `autologin_token_url` parameter, the `url` parameter, or both.
* If you do not set the `autologin_token_url` parameter, or that server does not respond or exist, then the server
will redirect the user to the location in the `url` parameter.
* If the response contains `redirect_url`, the system will redirect the user to that URL. (For example:, `{"redirect_url":"
http://www.whmcs.com/client_area/login/?one_time_user_token_that_expires_in_120_seconds=d41d8cd98f00 ”}` will send
the user to that unique URL.)
* If the response contains `retry` and `attempt`, the system will wait for the retry value in seconds for a maximum
of 60 seconds and then attempt the call again. The attempt value indicates the number of attempts that your system
has tried. The system will stop after three attempts. (For example, `{"retry":30, "attempt":2}` represents the second
attempt to connect, and the system will pause the user for 30 seconds before it tries again.)'
in: query
name: autologin_token_url
required: false
schema:
example: http://www.example.com/login.cgi
format: json
type: string
- description: 'The icon image.
**Note:**
If you **do not** specify a value, the interface uses a standard puzzle piece icon.'
in: query
name: base64_png_image
required: false
schema:
example: iVBORw0KGgoAAAANSUhEUgAAAJgAAADYCAYAAA AXmipNAAAACXBIWXMAAALVAAAC1QHAwm8lAAAAGXRFWHRTb2Z0d2FyZQB 3d3cuaW5rc2NhcGUub3Jnm+48GgAAAUNJREFUeJztziFKg2EABuD3+ydz
qGBwiGBZ385hstoMu4DNA8w7eIuBRUyWBYvJsC6CYWCwGGSy7bN6AOFn8 DwneJI/6mTYreNBryYl8A9KktTxoJfu0W66y3mSw6Q8pD+/LJNsWv6x5Z
p6NbzJ/sF7uj/3Sf3OJqPUep6P0WnbObZfk1qu02zOks0spXylk+eUvOS 4v2g7x/bbSamPSecuqZ+p5TbN6inLvbcyma3azrH9Sr1IJyejQcq6yWL0
WqbTddspAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AANr0C5EmMYv5JZrpAAAAAElFTkSuQmCC
format: base64 image
type: string
- description: 'The group ID in which to add the icon of the linked service.
* `files`
* `databases`
* `domains`
* `email`
* `metrics`
* `security`
* `software`
* `advanced`
* `pref`
**Note:**
If you **do not** specify a value, the function automatically creates an item under the username menu in the interface
header.'
in: query
name: group_id
required: false
schema:
enum:
- files
- databases
- domains
- email
- metrics
- security
- software
- advanced
- pref
example: advanced
type: string
- description: "Whether the cPanel interface will display the integration link.\n\n * `1` - Do **not** display the link.\n\
\ * `0` - Display the link."
in: query
name: hide
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: The order in which to display the icon in the cPanel interface inside the `group_id` group.
in: query
name: order
required: false
schema:
example: '999'
type: string
- description: 'The URL to which to send the user if the `autologin_token_url` location does not respond or is not present.
**Note:**
* You **must** include either the `autologin_token_url` parameter, the `url` parameter, or both.'
in: query
name: url
required: false
schema:
example: http://www.example.com
format: url
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: create_integration_link
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Ok
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create integration link
tags:
- Integration
- Links
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_integration_link \\\n user='username' \\\n app='WHMCS_billing'\
\ \\\n token='subway' \\\n implements='billing' \\\n label='WHMCS Billing' \\\n subscriber_unique_id='1234'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_integration_link?api.version=1&user=username&app=WHMCS_billing&token=subway&implements=billing&label=WHMCS%20Billing&subscriber_unique_id=1234
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/create_parked_domain_for_user:
get:
description: This function creates an alias (parks a domain on a web virtual host).
operationId: UserDomains-create_parked_domain_for_user
parameters:
- description: The domain name to park.
in: query
name: domain
required: true
schema:
example: park.example.com
format: domain
type: string
- description: The cPanel user account.
in: query
name: username
required: true
schema:
example: username
type: string
- description: "An existing web virtual host to which the new domain name should be added.\n\n**Note:**\n\n If this\
\ is not the cPanel account’s main domain, then the system will consider the new domain to be an [addon domain](https://go.cpanel.net/cpaneldocsAddonDomains)."
in: query
name: web_vhost_domain
required: true
schema:
example: vhost.example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: create_parked_domain_for_user
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create domain alias
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_parked_domain_for_user \\\n domain='park.example.com' \\\n username='username'\
\ \\\n web_vhost_domain='vhost.example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_parked_domain_for_user?api.version=1&domain=park.example.com&username=username&web_vhost_domain=vhost.example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '82'
/create_remote_root_transfer_session:
get:
description: "This function creates a transfer session as the `root` user.\n\n**Important:**\n\n For information about\
\ the ports that cPanel & WHM uses, read our [How to Configure Your Firewall for cPanel Services](https://go.cpanel.net/firewall)\
\ documentation.\n\n**Note:**\n\n For more information about how this function works with other functions in the\
\ transfer and restore process, read our [Guide to Transfer and Restore API Functions](https://go.cpanel.net/transferrestoreAPIguide)\
\ documentation.\n\n### Authentication\nThere are several methods that you can use to authenticate a transfer session\
\ with the remote server:\n\n#### Authenticate as root\nIf you use SSH to authenticate as the `root` user, the remote\
\ server's SSH must accept `root` logins. For more information read [OpenSSH's `sshd_config`](https://linux.die.net/man/5/sshd_config)\
\ documentation.\n\nThe following table displays the correct parameters and values for this authentication method:\n\
\n| Parameter | Value |\n|-|-|\n| `user` | `root` |\n| `password` | `root`'s password |\n\nYou can also use an SSH\
\ public key to authenticate the `root` user. If the SSH public key is encrypted, include the SSH key's passphrase.\n\
\nThe following table displays the correct parameters and values for this authentication method:\n\n| Parameter |\
\ Value if the SSH Key is not encrypted | Value if the SSH Key is encrypted |\n|-|-|-|\n| `user` | `root` | `root`\
\ |\n| `sshkey_name` | The `root` user's SSH key. | The `root` user's SSH key. |\n| `sshkey_passphrase` | *(none)*\
\ | The `root` user's SSH key passphrase. |\n\n#### Authenticate as a user\nMany server administrators do not permit\
\ direct `root` logins via SSH on their servers.\n* If the remote server forbids root logins, you **must** use another\
\ user and their password on the remote server, and then escalate to the `root` user. For more information read [OpenSSH's\
\ `sshd_config`](https://linux.die.net/man/5/sshd_config) documentation.\n* If the system administrator used WHM's\
\ [*Manage Wheel Group Users*](https://go.cpanel.net/whmdocsManageWheelGroupUsers) interface (*WHM >> Home >> Security\
\ Center >> Manage Wheel Group Users*) to grant the user `su` access, then you will need to specify `su` and the `root`\
\ password.\n* If the user has `sudo` access, you do **not** need the `root` password.\n\nThe following table displays\
\ the correct parameters and values for this authentication method:\n\n| Parameter | Value if the user has sudo access\
\ | Value if the user has su access |\n|-|-|-|\n| `user` | The username. | The username. |\n| `password` | The user's\
\ password. | The user's password. |\n| `root_escalation_method` | `sudo` | `su` |\n| `root_password` | *(none)* |\
\ The `root` user's password. |\n\nYou can also use an SSH public key instead of a password to authenticate that user.\
\ If the SSH public key is encrypted, include the SSH key's passphrase.\n\nThe following table displays the correct\
\ parameters and values for this authentication method:\n\n| Parameter | sudo | su |\n|-|-|-|\n| `user` | The username.\
\ | The username. |\n| `sshkey_name` | The user's SSH key. | The user's SSH key. |\n| `sshkey_passphrase` (If encrypted)\
\ | The user's SSH key passphrase. | The user's SSH key passphrase. |\n| `root_escalation_method` | `sudo` | `su`\
\ |\n| `root_password` | *(none)* | The `root` user's password. |"
operationId: Transfers-create_remote_root_transfer_session
parameters:
- description: 'The method by which the transfer system will execute commands on the remote system.
* `ssh` — Use SSH. The function uses the remote server''s indicated SSH `port` value.
* `whostmgr` — Use the remote server''s secure WHM port. This will reject invalid TLS handshakes.
* `whostmgr_insecure` — Use the remote server''s secure WHM port, but **ignores** any TLS verification failures.'
in: query
name: comm_transport
required: true
schema:
default: ssh
enum:
- ssh
- whostmgr
- whostmgr_insecure
example: ssh
type: string
- description: 'Whether to compress data before transfer.
* `1` — Compress.
* `0` — Do **not** compress.'
in: query
name: compressed
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to transfer reseller privileges.
* `1` — Transfer.
* `0` — Do **not** transfer.'
in: query
name: copy_reseller_privs
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to use a custom `pkgacct` scripts on the remote server for the transfer session.
* `1` — Use a custom `pkgacct` script.
* `0` — Do **not** use a custom script.'
in: query
name: enable_custom_pkgacct
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: The remote server's hostname or IP address.
example: 192.168.0.0
in: query
name: host
required: true
schema:
anyOf:
- description: A valid IP address.
example: 192.168.0.0
format: ipv4
type: string
- description: A valid domain.
example: remote.example.com
format: domain
type: string
- description: 'Whether to run the remote server processes at low priority in order to reduce impact on server performance.
* `1` — Run at low priority.
* `0` — Run at high priority.'
in: query
name: low_priority
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: The number of CPU threads to use for restore sessions.
in: query
name: restore_threads
required: true
schema:
example: 1
minimum: 1
type: integer
- description: The number of CPU threads to use for transfer sessions.
in: query
name: transfer_threads
required: true
schema:
example: 1
minimum: 1
type: integer
- description: 'Whether to not use SSL to encrypt data.
* `1` — Do **not** use SSL.
* `0` — Use SSL.'
in: query
name: unencrypted
required: true
schema:
enum:
- 0
- 1
example: 0
type: integer
- description: "Whether to skip the Restricted Restore system.\n* `1` — Skip.\n* `0` — Do **not** skip.\n\n**Note:**\n\
\n If you want to pass the `force` parameter in the WHM API 1 `enqueue_transfer_item` function, you **must** set\
\ this parameter to a value of `0`."
in: query
name: unrestricted_restore
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to use an existing backup instead of packaging the data again if the backup is less than 24
hours old.
* `1` — Use an existing backup.
* `0` — Package the data.'
in: query
name: use_backups
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: The username to use to connect to the remote server.
in: query
name: user
required: true
schema:
example: root
type: string
- description: "The username's password.\n\n**Note:**\n\n Use this parameter if you will authenticate to the remote\
\ server with a password. Do **not** use this parameter if you will authenticate to the remote server with an SSH\
\ key."
in: query
name: password
required: false
schema:
example: 123456luggage
type: string
- description: The remote server's SSH port number.
in: query
name: port
required: false
schema:
default: 22
example: 22
maximum: 65535
minimum: 1
type: integer
- description: "The escalation method to use to connect to the remote server.\n* `su`\n* `sudo`\n\n**Note:**\n\n Use\
\ this parameter if the `sshd_config` file's `PermitRootLogin` value is `No`."
in: query
name: root_escalation_method
required: false
schema:
enum:
- su
- sudo
example: sudo
type: string
- description: "`root`'s password on the remote server.\n\n**Note:**\n\n Use this parameter if the `sshd_config` file's\
\ `PermitRootLogin` value is `No` and you will use the `root` user's password to escalate access."
in: query
name: root_password
required: false
schema:
example: 123456luggage
type: string
- description: 'The SSH key''s name.
**Note:**
* Use this parameter if you will authenticate to the remote server with an SSH key. Do **not** use this parameter
if you will authenticate to the remote server with a password.
* SSH keys are available in WHM''s [*Manage root''s SSH Keys*](https://go.cpanel.net/whmdocsManagerootsSSHKeys)
interface (*WHM >> Home >> Security Center >> Manage root’s SSH Keys*).'
in: query
name: sshkey_name
required: false
schema:
example: FrancisScott
type: string
- description: "The SSH key's passphrase.\n\n**Note:**\n\n Use this parameter if you will authenticate to the remote\
\ server with an SSH key, and the key is encrypted."
in: query
name: sshkey_passphrase
required: false
schema:
example: kkwtoowoygidsa
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
analyze_rawout:
description: The HTML output from the analysis of the remote server connection.
example: 'Fetching information from remote host: \u201c10.1.100.35\u201d \u2026 \u2026\nDone\nFetching
information from remote host: \u201c10.1.100.35\u201d \u2026 \u2026\nDone\n",'
type: string
create_rawout:
description: The HTML output from the creation of the remote server connection.
example: 'Basic credential check \u2026 \u2026\nDone\nFetching information from remote host: \u201c10.1.100.35\u201d
\u2026 \u2026\nDone\nFetching WHM Version \u2026\nDone\nTesting \u201cvm5.docs.cpanel.net\u201d
for transfer streaming support with password authentication....Streaming Supported\nRemote
Server Type: \u201cWHM1130\u201d\n",'
type: string
transfer_session_id:
description: The transfer session's ID.
example: vm5docscpanelcopya20140430200606V06z
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_remote_root_transfer_session
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create remote server transfer session as root user
tags:
- Transfers
- cPanel Account Transfer
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_remote_root_transfer_session \\\n host='192.168.0.0' \\\n user='root'\
\ \\\n transfer_threads='1' \\\n restore_threads='1' \\\n unrestricted_restore='1' \\\n comm_transport='ssh'\
\ \\\n copy_reseller_privs='1' \\\n compressed='1' \\\n unencrypted='0' \\\n use_backups='1' \\\n low_priority='1'\
\ \\\n enable_custom_pkgacct='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_remote_root_transfer_session?api.version=1&host=192.168.0.0&user=root&transfer_threads=1&restore_threads=1&unrestricted_restore=1&comm_transport=ssh©_reseller_privs=1&compressed=1&unencrypted=0&use_backups=1&low_priority=1&enable_custom_pkgacct=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/create_remote_user_transfer_session:
get:
description: 'This function creates a transfer session with a non-root user to a remote server.
**Important:**
* The source and target servers must be able to communicate over port `2087` to use this feature.
* The source and target servers must also be able to communicate over the port that your servers use for SSH connections.
* For more information about the ports that cPanel & WHM uses, read our [How to Configure Your Firewall for cPanel
& WHM Services](https://go.cpanel.net/firewall) documentation.
**Note:**
For more information about how this function works with other functions in the transfer and restore process, read
our [Guide to Transfer and Restore API Functions](https://go.cpanel.net/transferrestoreAPIguide) documentation.'
operationId: Transfers-create_remote_user_transfer_session
parameters:
- description: The server hostname for the account.
in: query
name: host
required: true
schema:
example: hostname.example.com
format: domain
type: string
- description: The account's password.
in: query
name: password
required: true
schema:
example: 12345luggage
type: string
- description: 'Whether to skip the Restricted Restore process.
* `1` - Skip Restricted Restore.
* `0` - Use Restricted Restore.
**Note:**
You **must** set this parameter to a value of 1.'
in: query
name: unrestricted_restore
required: true
schema:
enum:
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
transfer_session_id:
description: The transfer session's ID.
example: vm5docscpanelnoroo201402251939519hmy
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_remote_user_transfer_session
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create remote server transfer session
tags:
- Transfers
- cPanel Account Transfer
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_remote_user_transfer_session \\\n host='hostname.example.com' \\\
\n password='12345luggage' \\\n unrestricted_restore='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_remote_user_transfer_session?api.version=1&host=hostname.example.com&password=12345luggage&unrestricted_restore=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/create_subdomain:
get:
description: This function creates a subdomain.
operationId: UserDomains-create_subdomain
parameters:
- description: "The subdomain's document root within the home directory.\n\n **Note:**\n\n * An invalid document root\
\ path will cause this function to **fail**.\n * If the *Restrict document roots to public_html* value is set to\
\ `On` in WHM's [Tweak Settings](https://go.cpanel.net/whmdocsTweakSettings) interface (*WHM >> Home >> Server Configuration\
\ >> Tweak Settings*), this parameter **must** begin with the `public_html/` path. For more information, read the\
\ [cpanel.config](https://go.cpanel.net/cpanelconfiginvalid) file documentation."
in: query
name: document_root
required: true
schema:
example: public_html/directory_name
type: string
- description: The subdomain name to create.
in: query
name: domain
required: true
schema:
example: subdomain.example.com
format: domain
type: string
- description: 'Whether to use a canonical name in the [Apache® configuration for self-referential URLs](https://httpd.apache.org/docs/2.4/mod/core.html#usecanonicalname).
* `1` — Use the canonical name.
* `0` — Do **not** use the canonical name.'
in: query
name: use_canonical_name
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
username:
description: "The cPanel account username.\n\n**Note:**\n\n This return **only** appears if the function\
\ succeeds."
example: example
format: username
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_subdomain
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create subdomain
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_subdomain \\\n domain='subdomain.example.com' \\\n document_root='public_html/directory_name'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_subdomain?api.version=1&domain=subdomain.example.com&document_root=public_html%2fdirectory_name
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/create_user_session:
get:
description: 'This function creates a new temporary user session for a specified service.
This allows users with WHM access to log in to third-party applications
(for example, billing systems) without storing the account password.
**Note:**
* The system destroys the temporary session after 15 minutes of inactivity.
* For more information about the Single Sign On feature, read our
[Guide to API Authentication](/whm/tokens/)
documentation.'
operationId: Session-create_user_session
parameters:
- description: The session's service.
in: query
name: service
required: true
schema:
enum:
- cpaneld
- whostmgrd
- webmaild
example: cpaneld
type: string
- description: The session's cPanel account username or a valid email address.
in: query
name: user
required: true
schema:
example: user@example.com
type: string
- description: 'The cPanel or WHM application to which the session will link. This
parameter defaults to a blank string, which redirects the user to the
cPanel
[*Home*](https://docs.cpanel.net/cpanel/the-cpanel-interface/the-cpanel-interface/)
interface.
* A valid application name, to link the session to an application.
* An invalid application name, to create the session but **not** link
it to an application.'
in: query
name: app
required: false
schema:
enum:
- Backups_Home
- Calendar_Configure
- ContactInfo_Change
- Cron_Home
- Database_MySQL
- Database_phpMyAdmin
- Domains_AddonDomains
- Domains_SubDomains
- Email_AccountLevelFiltering
- Email_Accounts
- Email_Archive
- Email_Authentication
- Email_AutoResponders
- Email_BoxTrapper
- Email_DefaultAddress
- Email_DeliveryReport
- Email_Forwarders
- Email_GreyListing
- Email_MailingLists
- Email_MX
- Email_SpamFilter
- Email_UserLevelFiltering
- FileManager_Home
- Locale_Change
- Password_Change
- Site_Software
- Site_Software_*
- Stats_AWStats
- WHMCS_billing
- add_a_dns_zone
- add_an_a_entry_for_your_hostname
- add_a_new_ip_address
- add_a_package
- additional_mysql_access_hosts
- add_remove_recognized_ip_addresses
- apache_configuration
- apache_mod_userdir_tweak
- apache_status
- api_shell
- api_tokens
- apps_managed_by_appconfig
- assign_ipv6_address
- background_process_killer
- backup_configuration
- backup_restoration
- backup_system_migration
- backup_user_selection
- basic_webhost_manager_setup
- blocker
- change_account_contact_email
- change_hostname
- change_log
- change_multiple_sites_ip_addresses
- change_mysql_user_password
- change_ownership_of_an_account
- change_ownership_of_multiple_accounts
- change_root_password
- change_sites_ip_address
- cloudlinux_lve_manager
- compiler_access
- configuration_cluster
- configure_application_locales
- configure_cpanel_analytics
- configure_cpanel_cron_jobs
- configure_postgresql
- configure_remote_service_ips
- configure_security_policies
- contact_manager
- convert_addon_domain_to_account
- copy_a_locale
- copy_an_account_from_another_server_with_an_account_password
- cpanel_development_forum
- cpanel_log_rotation_configuration
- cpanel_plugin_file_generator
- cpanel_web_disk_configuration
- cpanel_web_services_configuration
- cphulk_brute_force_protection
- create_a_new_account
- create_support_ticket
- customization
- daily_process_log
- database_map_tool
- delete_a_dns_zone
- delete_a_locale
- delete_a_package
- directoryindex_priority
- dns_cluster
- dns_server
- easyapache_4
- edit_a_locale
- edit_a_package
- edit_backup_mx_hosts
- edit_blacklisted_smtp_ips
- edit_dns_zone
- edit_mx_entry
- edit_only_verify_recipient_smtp_hosts
- edit_questions_and_answers
- edit_reseller_name_servers_and_privileges
- edit_sender_verification_bypass_ips
- edit_system_mail_preferences
- edit_trusted_smtp_ips
- edit_zone_templates
- email_all_resellers
- email_all_users
- email_deliverability
- enable_dkim_and_spf_globally
- exim_configuration_manager
- feature_manager
- file_and_directory_restoration
- forceful_server_reboot
- force_password_change
- ftp_server_configuration
- ftp_server_proftpd_pureftpd
- ftp_server_selection
- generate_an_ssl_certificate_and_signing_request
- global_configuration
- graceful_server_reboot
- grant_cpanel_support_access
- greylisting
- host_access_control
- http_server_apache
- ico-security-advisor
- imap_server
- include_editor
- initial_quota_setup
- install_an_rpm
- install_an_ssl_certificate_on_a_domain
- install_a_perl_module
- install_a_perl_module_process
- ip_migration_wizard
- ipv6_ranges
- legacy_backup_configuration
- legacy_language_file_upload
- legacy_restore_backups
- legacy_restore_multiple_backups
- legacy_restore_multiple_backups_confirmation
- limit_bandwidth_usage
- list_accounts
- list_parked_domains
- list_subdomains
- list_suspended_accounts
- locale_editor
- locale_xml_download
- locale_xml_upload
- log_rotation
- mailbox_conversion
- mail_delivery_reports
- mailing_list_manager_mailman
- mail_queue_manager
- mailserver_configuration
- mail_server_exim
- mail_troubleshooter
- manage_account_suspension
- manage_autossl
- manage_compiler_group
- manage_custom_rbls
- manage_databases
- manage_database_users
- manage_demo_mode
- manage_external_authentication
- manage_external_authentication_providers
- manage_external_authentication_users
- manage_hooks
- manage_mysql_profiles
- manage_plugins
- manage_resellers_ip_delegation
- manage_resellers_shared_ip
- manage_roots_ssh_keys
- manage_services_ssl_certificates
- manage_shell_access
- manage_ssl_hosts
- manage_wheel_group_users
- market_provider_manager
- memory_usage_restrictions
- modify_an_account
- modify_cpanel_whm_news
- modify_upgrade_multiple_accounts
- modsecurity_configuration
- modsecurity_tools
- modsecurity_vendors
- module_installers
- multiphp_ini_editor
- multiphp_manager
- mysql_mariadb_upgrade
- mysql_root_password
- nameserver_record_report
- nameserver_selection
- non_standard_locale_configuration
- park_a_domain
- password_modification
- password_strength_configuration
- perform_a_dns_cleanup
- php_fpm_service_for_apache
- phpMyAdmin
- piped_log_configuration
- process_manager
- purchase_and_install_an_ssl_certificate
- quota_modification
- raw_apache_log_download
- raw_ftp_log_download
- rearrange_an_account
- rebuild_rpm_database
- rebuild_the_ip_address_pool
- remote_access_key
- repair_a_mysql_database
- repair_mailbox_permissions
- reseller_center
- reserved_ips_editor
- reset_account_bandwidth_limit
- reset_a_dns_zone
- reset_a_mailman_password
- reset_resellers
- resolver_configuration
- restore_a_full_backup_cpmove_file
- restore_modules_summary
- review_transfers_and_restores
- security_questions
- server_information
- server_profile
- server_time
- service_manager
- service_status
- setup_edit_domain_forwarding
- set_zone_time_to_live_ttl
- shell_fork_bomb_protection
- show_accounts_over_quota
- show_current_disk_usage
- show_current_running_processes
- show_edit_reserved_ips
- show_ip_address_usage
- show_mysql_processes
- show_or_delete_current_ip_addresses
- show_reseller_accounts
- skeleton_directory
- smtp_restrictions
- software_development_kit
- spamd_startup_configuration
- sql_server_mysql
- sql_server_pgsql
- ssh_password_authorization_tweak
- ssh_server_openssh
- ssl_storage_manager
- statistics_software_configuration
- support_center
- synchronize_dns_records
- system_update
- task_queue_monitor
- terminal
- terminate_accounts
- theme_manager
- traceroute_enable_disable
- transfer_tool
- tweak_settings
- two_factor_authentication
- unsuspend_bandwidth_exceeders
- update_database_map
- update_database_map_process
- update_preferences
- update_server_software
- upgrade_downgrade_an_account
- upgrade_to_latest_version
- view_available_locales
- view_bandwidth_usage
- view_mail_statistics_summary
- view_relayers
- view_reseller_usage_and_manage_account_status
- view_sent_summary
- web_template_editor
example: Backups_Home
type: string
- description: The session's security token.
in: query
name: cp_security_token
required: false
schema:
example: cpsess1234567890
type: string
- description: 'The session''s locale. This parameter defaults to the *Server Locale* setting in WHM''s
[*Tweak Settings*](https://docs.cpanel.net/whm/server-configuration/tweak-settings/#system)
interface (*WHM >> Home >> Server Configuration >> Tweak Settings*).
**Note:**
* If you specify a locale, the server sends a cookie to your browser with
that locale setting. The cookie expires after one year.
* Users can change the locale with the language options at the bottom of
the login interface.'
in: query
name: locale
required: false
schema:
example: fr
type: string
- description: 'The hostname or IP address for the function to use in the `url`
return. This parameter''s value defaults to the server''s hostname.'
in: query
name: preferred_domain
required: false
schema:
example: example.com
type: string
- description: 'The prompt token to pre-populate the user''s website-generation goals
when logging into the Nova interface.
**Note:**
* This value must be base64-encoded.
* Maximum decoded length is 5000 characters.'
in: query
name: promptToken
required: false
schema:
example: SSB3YW50IHRvIGNyZWF0ZSBhIHJlc3RhdXJhbnQgd2Vic2l0ZQ==
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cp_security_token:
description: The session's security token.
example: /cpsess1234567890
type: string
expires:
description: When the security token expires, in Unix time format.
example: 1401993893
format: unix_timestamp
type: integer
service:
description: The security token's service.
example: cpaneld
type: string
session:
description: 'The session ID.
**Note:**
If the `app` parameter contains a valid application, the URL **also**
contains the application information.'
example: username:RFw6MUp9S8sRwTSgqaUJWUCq8ZQg2Zkopx5KaTHRNQXBfT3n8xvfBEF9JJC3iiwa
type: string
url:
description: 'The security token''s URL. The URL contains the values of
the `preferred_domain`, `session`, and `app` parameters.'
example: https://example.com:2083/cpsess1234567890/login/?session=username:RFw6MUp9S8sRwTSgqaUJWUCq8ZQg2Zkopx5KaTHRNQXBfT3n8xvfBEF9JJC3iiwa&locale=fr
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: create_user_session
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Created session
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create a temporary user session
tags:
- Server Administration
- Session
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n create_user_session \\\n user='user@example.com' \\\n service='cpaneld'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/create_user_session?api.version=1&user=user%40example.com&service=cpaneld
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.40'
/createacct:
get:
description: 'This function creates a cPanel account and sets up its domain information.
**Note:**
* On servers that run CentOS 7, you may see a `named` warning about the absence of SPF resource records on DNS.
* This warning is **not** relevant on CentOS 7 servers, because [RFC 7208 deprecated SPF records](https://tools.ietf.org/html/rfc7208).
CentOS 7 servers use TXT records instead of SPF records.
* Red Hat 7.1 and CentOS 7.1 both contain `bind-9.9.4-23.el7`, which is an updated version of BIND that complies with
RFC 7208. To resolve this issue, update your operating system to a version that contains the updated version of BIND.
For more information, read the [Red Hat Bugzilla case about SPF record errors](https://bugzilla.redhat.com/show_bug.cgi?id=1215164).'
operationId: Accounts-createacct
parameters:
- description: 'The new account''s username. cPanel usernames **must** adhere to the following criteria:
* The first eight characters of a username **must** be unique.
* A username **cannot** begin with a number or the test string.
**Note:**
* Use the `Cpanel::Validate::Username` Perl module to validate usernames before you call this function. For more
information, read the `/usr/local/cpanel/Cpanel/Validate/Username.pod` file.
* The system will automatically convert this value to all lowercase letters.
* MySQL''s unique character limitations do **not** exist on servers that use MariaDB.'
in: query
name: username
required: true
schema:
example: username
maxLength: 16
type: string
- description: Assign [Account Enhancements](https://go.cpanel.net/account-enhancements) to the cPanel account. To view
your server's Account Enhancements, run WHM API 1's `list_account_enhancements` function.
examples:
multiple:
summary: Assign multiple enhancements
value:
- My Custom Enhancement
- Sample Enhancement
single:
summary: Assign one enhancement
value: My Custom Enhancement
in: query
name: account_enhancements
schema:
oneOf:
- type: string
- type: array
items:
type: string
- description: 'The account''s maximum bandwidth.
* `0`, `unlimited`, or `null` — The account possesses unlimited bandwidth.'
in: query
name: bwlimit
required: false
schema:
example: unlimited
format: megabytes
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- minimum: 0
type: integer
- description: "Whether the account has [Common Gateway Interface (CGI)](https://en.wikipedia.org/wiki/Common_Gateway_Interface)\
\ access enabled.\n* `1` — Enabled.\n* `0` — Disabled.\n\n**Note:**\n\n When a [server profile](https://docs.cpanel.net/whm/server-configuration/server-profile/)\
\ disables the [Web Server](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/86/)\
\ role, this parameter defaults to `0`. On these servers, you **cannot** enable CGI access."
in: query
name: cgi
required: false
schema:
default: 1
enum:
- 1
- 0
example: 1
type: integer
- description: The account's contact email address.
in: query
name: contactemail
required: false
schema:
default: ''
example: username@example.com
format: email
type: string
- description: 'The account''s cPanel theme.
**Note:**
This parameter defaults to the server''s [default cPanel theme](https://docs.cpanel.net/whm/server-configuration/basic-webhost-manager-setup/).'
in: query
name: cpmod
required: false
schema:
example: jupiter
type: string
- description: 'The account''s IP address.
**Note:**
If you do not specify this parameter, the system will determine the account''s IP address.'
in: query
name: customip
required: false
schema:
example: 192.0.2.0
format: ipv4
type: string
- description: 'Whether [DomainKeys Identified Mail (DKIM)](https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail)
is enabled for the account.
* `1` — Enabled.
* `0` — Disabled.
**Note:**
This parameter defaults to the *Enable DKIM on domains for newly created accounts* setting''s value in WHM''s *[Tweak
Settings](https://docs.cpanel.net/whm/server-configuration/tweak-settings/) interface (WHM >> Home >> System Configuration
>> Tweak Settings)*.'
in: query
name: dkim
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether [Domain-based Message Authentication, Reporting, and Conformance (DMARC)](https://docs.cpanel.net/knowledge-base/cpanel-product/cpanel-glossary/#dmarc)
is enabled for the account.
* `1` — Enabled.
* `0` — Disabled.
**Note:**
This parameter defaults to the *Enable DMARC on domains for newly created accounts* setting''s value in the _Domains_
section of WHM''s *[Tweak Settings](https://docs.cpanel.net/whm/server-configuration/tweak-settings/#domains) interface
(WHM >> Home >> System Configuration >> Tweak Settings)*.'
in: query
name: dmarc
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'The account''s main domain.
**Note:**
* If you do not provide a domain, the system will automatically create a temporary domain for the account.
* For more information about temporary domains, read our [Temporary Domains](https://go.cpanel.net/cp-temporary-domain)
documentation.'
in: query
name: domain
required: false
schema:
example: example.com
type: string
- description: The account's assigned feature list.
in: query
name: featurelist
required: false
schema:
default: default
example: feature_list
type: string
- description: 'Whether to overwrite an existing DNS zone with the new account''s information. The system performs this
action if a matching DNS zone currently exists.
* `1` — Overwrite.
* `0` — Do **not** overwrite.'
in: query
name: forcedns
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- deprecated: true
description: "Whether the account has Microsoft® FrontPage Extensions enabled.\n\n**Note:**\n\n cPanel & WHM ignores\
\ all FrontPage settings and parameters."
in: query
name: frontpage
required: false
schema:
default: null
nullable: true
type: integer
- description: 'The account''s group ID.
**Note:**
* To use this parameter, the function''s caller **must** authenticate as the root user.
* If you do **not** specify this parameter, the system generates a group ID.
* This **must** be a unique value that is **not** currently associated with disk usage and does **not** exist on
the server.'
in: query
name: gid
required: false
schema:
example: 123456789
minimum: 1
type: integer
- description: 'Whether the account has shell (SSH) access enabled.
* `1` — Enabled.
* `0` — Disabled.'
in: query
name: hasshell
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: "A legacy parameter.\n* `1` — Enabled.\n* `0` — Disabled.\n\n**Important:**\n\n Only include this parameter\
\ if you set a useregns value of 1."
in: query
name: hasuseregns
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'The absolute path to the account''s `home` directory.
**Note:**
* To use this parameter, the function''s caller **must** authenticate as the `root` user.
* If you do not specify a value, the system uses the `/home/user` directory, where `user` is the account''s username.'
in: query
name: homedir
required: false
schema:
example: /home/user
type: string
- description: 'Whether the account has a dedicated IP address.
* `y` — The account possesses a dedicated IP address.
* `n` — The account does **not** possess a dedicated IP address.'
in: query
name: ip
required: false
schema:
default: n
enum:
- y
- n
example: n
type: string
- description: 'The account''s default locale.
**Note:**
* This value is case-sensitive.
* For region-specific locales, use the ISO 639-1 code, an underscore (`_`), and the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
code.'
in: query
name: language
required: false
schema:
example: en
type: string
- description: "A [linked cPanel mail server](https://docs.cpanel.net/whm/server-configuration/link-server-nodes/) on\
\ which to also create the account. This is the server's alias (friendly name) defined when creating the link to\
\ a cPanel mail server.\n\n**Note:**\n\n This function **requires** a linked cPanel mail server."
in: query
name: mail_node_alias
required: false
schema:
example: mailnode
type: string
- description: 'A mailbox format to use, if you do not wish to use the system''s default mailbox format.
**Note:**
* Use this parameter when you transfer between servers with different mailbox formats.
* This parameter defaults to the *The mailbox storage format for new accounts setting* in the *Mail* section of
WHM''s [*Tweak Settings*](https://docs.cpanel.net/whm/server-configuration/tweak-settings/#mail) interface (*WHM
>> Home >> Server Configuration >> Tweak Settings*).'
in: query
name: mailbox_format
required: false
schema:
enum:
- mdbox
- maildir
example: mdbox
type: string
- description: 'The percentage of failed or deferred email messages that the account can send per hour. If the account
exceeds this value its outgoing mail is rate-limited.
* `0` or `unlimited` — The account can send an unlimited number of failed or deferred messages.'
in: query
name: max_defer_fail_percentage
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
- description: 'The maximum number of emails that the account can send in one hour.
* `0` or `unlimited` — The account can send an unlimited number of emails.'
in: query
name: max_email_per_hour
required: false
schema:
example: unlimited
oneOf:
- enum:
- unlimited
type: string
- minimum: 0
type: integer
- description: "The maximum size that the account can define when it creates an email account.\n* `0` or `unlimited`\
\ — The account possesses an unlimited quota.\n\n**Important:**\n\n * This value applies to each email account,\
\ **not** each cPanel account.\n * If you define this parameter it overwrites the hosting plan's defined value for\
\ the account.\n * We recommend that you allow the account's plan to determine this value."
in: query
name: max_emailacct_quota
schema:
default: 1024
example: 1024
format: megabytes
oneOf:
- enum:
- unlimited
type: string
- maximum: 4294967296
minimum: 0
type: integer
- description: 'The maximum number of Team users for this account.
This parameter should be a number between 0 and the server''s default value, inclusively.
This parameter can not be a number greater than the server''s default value.'
in: query
name: max_team_users
required: false
schema:
example: 7
maximum: 7
minimum: 0
type: integer
- description: 'The account''s maximum number of addon domains.
* `unlimited`, or `null` — The account possesses unlimited addon domains.'
in: query
name: maxaddon
required: false
schema:
default: 0
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of FTP accounts.
* `0`, `unlimited`, or `null` — The account possesses unlimited FTP accounts.'
in: query
name: maxftp
required: false
schema:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of mailing lists.
* `0`, `unlimited`, or `null` — The account possesses unlimited mailing lists.'
in: query
name: maxlst
required: false
schema:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of parked domains (aliases).
* `unlimited` or `null` — The account possesses unlimited parked domains.'
in: query
name: maxpark
required: false
schema:
default: 0
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of email accounts.
* `0`, `unlimited`, or `null` — The account possesses unlimited email accounts.'
in: query
name: maxpop
required: false
schema:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of each available type of SQL database.
For example, this parameter has a `5` value and the system administrator allows
MySQL® and PostgreSQL® databases. Users can create up to five MySQL databases
and up to five PostgreSQL databases.
* `0`, `unlimited`, or `null` — The account possesses unlimited databases.'
in: query
name: maxsql
required: false
schema:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s maximum number of subdomains.
`unlimited` or `null` — The account possesses unlimited subdomains.'
in: query
name: maxsub
required: false
schema:
example: unlimited
oneOf:
- enum:
- null
- enum:
- unlimited
type: string
- maximum: 999999
minimum: 0
type: integer
- description: 'The account''s main mail exchanger''s type.
* `local` - Local Mail Exchanger.
* `secondary` - Backup Mail Exchanger.
* `remote` - Remote Mail Exchanger.
* `auto` - Automatically Detect Configuration.
**Note:**
The function does **not** configure the primary MX entry to point to the appropriate exchanger. You must [perform
this function separately](https://docs.cpanel.net/whm/dns-functions/email-routing-configuration/).'
in: query
name: mxcheck
required: false
schema:
default: local
enum:
- local
- secondary
- remote
- auto
example: auto
type: string
- description: 'The name of the account owner.
* `root`
* A valid reseller account username on the server.'
in: query
name: owner
required: false
schema:
example: root
type: string
- description: 'Set the account to own itself. Ignored if `owner` is set.
* `1` — Set account to own itself.
* `0` — Do nothing.'
in: query
name: ownerself
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: "The account's password.\n\n**Note:**\n\n * You can use either the `pass` or the `password` parameter,\
\ but **not** both.\n * If you don't specify this value, the system generates a secure password."
in: query
name: pass
required: false
schema:
example: 123456luggage
type: string
- description: "The account's password.\n\n**Note:**\n\n * You can use **either** the `pass` or the `password` parameter,\
\ but **not** both.\n * If you don't specify this value, the system generates a secure password."
in: query
name: password
required: false
schema:
example: 123456luggage
type: string
- description: "A new plan name. Use this parameter to save unique account settings as a new plan.\n\n**Note:**\n\n\
\ * If you do **not** use this parameter but specify `1` for the `savepkg` value, the system will generate a plan\
\ name.\n * If you do **not** use this parameter and specify `0` or do not use the `savepkg` parameter, the function\
\ does not save a new plan.\n * If you do **not** use this parameter, the function will not save the new account\
\ settings."
in: query
name: pkgname
required: false
schema:
example: my_new_package
type: string
- description: "The account's hosting plan (package).\n\n**Important:**\n\n If you provide this value, **do not** use\
\ the optional quota-related parameters below. Instead, we recommend that you allow the account's plan to determine\
\ these values."
in: query
name: plan
required: false
schema:
default: default
example: default
type: string
- description: 'The account''s disk space quota.
* `0` — The account''s disk space is unlimited.'
in: query
name: quota
required: false
schema:
default: 0
example: 500
format: megabytes
maximum: 999999
minimum: 0
type: integer
- description: 'Whether to grant reseller privileges to the account.
* `1` — Grant reseller privileges.
* `0` — Do **not** grant reseller privileges.'
in: query
name: reseller
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Create the user as a reseller without an associated domain.
* `1` - Create the account as a reseller without an associated domain.
* `0` - Do **not** create the account as a reseller without an associated domain.
**Warning:**
If you create a reseller without a domain, certain parts of WHM will not function
for that user. These limitations exist both when logged in as that user **and**
when you attempt to perform actions which affect that user.'
in: query
name: reseller_without_domain
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to save the account''s settings as a new plan.
* `1` — Save.
* `0` — Do **not** save.'
in: query
name: savepkg
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to display the account password in the output.
* `y` — Display the account password in the output.
* `n` — Do NOT display the account password in the output.'
in: query
name: showpass
required: false
schema:
default: y
enum:
- y
- n
example: n
type: string
- description: 'Whether the account has Apache SpamAssassin™ enabled.
* `1` — Enabled.
* `0` — Disabled.'
in: query
name: spamassassin
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: "Whether to enable spam box filtering for the account.\n* `y` - Enable spam box filtering.\n* `n` - Disable\
\ spam box filtering.\n**Note:**\n\n You **must** enable Apache SpamAssassin™ to use the Spam Box feature."
in: query
name: spambox
required: false
schema:
default: y
enum:
- y
- n
example: y
type: string
- description: 'Whether [Sender Policy Framework (SPF)](https://en.wikipedia.org/wiki/Sender_Policy_Framework) is enabled
for the account.
* `1` — Enabled.
* `0` — Disabled.
This parameter defaults to the *Enable SPF on domains for newly created accounts*
setting''s value in WHM''s [*Tweak Settings*](https://docs.cpanel.net/whm/server-configuration/tweak-settings/)
interface (*WHM >> Home >> System Configuration >> Tweak Settings*).'
in: query
name: spf
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: "The account's user ID.\n\n**Note:**\n\n * To use this parameter, the function's caller **must** authenticate\
\ as the `root` user.\n * If you do not specify this parameter, the system generates a user ID.\n * This **must**\
\ be a unique value that is **not** currently associated with disk usage and does **not** exist on the server."
in: query
name: uid
required: false
schema:
example: 123456789
minimum: 0
type: integer
- description: "Whether to use registered nameservers for the domain.\n* `1` - Use registered nameservers.\n* `0` -\
\ Use the server's default nameservers.\n\n**Important:**\n\n If you set this parameter to `1`, you must also include\
\ the `hasuseregns` parameter with a value of `1`."
in: query
name: useregns
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ip:
description: The account's primary nameserver's IP address.
example: 192.0.2.0
format: ipv4
type: string
nameserver:
description: The account's primary nameserver.
example: ns1.example.com
type: string
nameserver2:
description: The account's secondary nameserver.
example: ns2.example.com
type: string
nameserver3:
description: The account's tertiary nameserver.
example: ns3.example.com
type: string
nameserver4:
description: The account's quaternary nameserver.
example: ns4.example.com
type: string
nameservera:
description: The account's primary nameservers' IP address.
example: 192.0.2.1
format: ipv4
nullable: true
type: string
nameservera2:
description: The account's secondary nameservers' IP address.
example: 192.0.2.2
format: ipv4
nullable: true
type: string
nameservera3:
description: The account's tertiary nameservers' IP address.
example: 192.0.2.3
format: ipv4
nullable: true
type: string
nameservera4:
description: The account's quaternary nameservers' IP address.
example: 192.0.2.4
format: ipv4
nullable: true
type: string
nameserverentry:
description: The primary nameserver's DNS name.
example: dnsentry1
nullable: true
type: string
nameserverentry2:
description: The secondary nameserver's DNS name.
example: dnsentry2
nullable: true
type: string
nameserverentry3:
description: The tertiary nameserver's DNS name.
example: dnsentry3
nullable: true
type: string
nameserverentry4:
description: The quaternary nameserver's DNS name.
example: dnsentry4
nullable: true
type: string
package:
description: The account's plan (package) name.
example: my_new_package
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: createacct
type: string
output:
description: An object that contains the function's raw output information.
properties:
raw:
description: The raw output from the account creation operation. This return may contain HTML
code.
example: 'Checking input data...Forced Dns is enabled.\nValidating Username......Done\nValidating
IP......Done\nValidating Contact Email......Done\n...Done\nValidating system setup......Done\nChecking
for database conflicts......Done\nWWWAcct 12.6.0 (c) 2024 WebPros International, LLC...\n\n+===================================+\n|
New Account Info |\n+===================================+\n| Domain: example.com\n| Ip: 192.0.2.0
(n)\n| HasCgi: y\n| UserName: username\n| PassWord: 123456luggage\n| CpanelMod: jupiter\n| HomeRoot:
/home\n| Quota: 1 GB\n| NameServer1: ns1.example.com\n| NameServer2: ns2.example.com\n| NameServer3:\n|
NameServer4:\n| Contact Email: username@example.com\n| Package: my_new_package\n| Feature List:
feature_list\n| Language: en\n+===================================+\n...Done\nCustom Account
Data Provided: no\nRunning pre creation script (/usr/local/cpanel/scripts/prewwwacct)......Done\nAdding
User...Removing Shell Access (n)\nSuccess...Done\nAdding Entries to userdata......Done\nSetting
up Mail & Local Domains...localdomains...valiases ...vdomainaliases ...vfilters ......Done\nConfiguring
DNS...Zone example.com has been successfully added\n...Done\nVerifying MX Records and Setting
up Databases...Reconfiguring Mail Routing:\nLOCAL MAIL EXCHANGER: This server will serve as
a primary mail exchanger for example.com''s mail.:\n This configuration has been automatically
detected based on your mx entries.\n\n...Done\nSetting up Service Subdomains......Done\nUpdating
Authentication Databases......Done\nSetting passwords......Done\nUpdating the userdata cache......Done\n\nCreating
bandwidth datastore......Done\nUpdating the dedicated IP address usage cache......Done\nGenerating
and installing DKIM keys......Done\nEnabling Apache SpamAssassin......Done\nEnabling Apache
SpamAssassin Spam Box......Done\nSending Account Information......Done\nRunning post creation
scripts (/usr/local/cpanel/scripts/legacypostwwwacct, /usr/local/cpanel/scripts/postwwwacct,
/usr/local/cpanel/scripts/postwwwacctuser)......Done\nwwwacct creation finished\nAccount Creation
Complete!!!...Account Creation Ok...Done\n'
type: string
type: object
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Account Creation Ok
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create cPanel account
tags:
- Account Creation
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n createacct \\\n username='username' \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/createacct?api.version=1&username=username&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/current_mysql_version:
get:
description: "This function retrieves the server's version of MySQL® or MariaDB®.\n\n**Important:**\n\n When you disable\
\ the [MySQL/MariaDB role](https://go.cpanel.net/serverroles) **and** remote MySQL is **not** already configured,\
\ the system **disables** this function."
operationId: Mysql-current_mysql_version
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
server:
default: mysql
description: 'The server''s database engine.
* `mysql`
* `mariadb`'
enum:
- mysql
- mariadb
example: mysql
type: string
version:
description: The version number, in `major`.`minor` format.
example: '8.0'
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: current_mysql_version
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return MySQL version
tags:
- Databases
- Manage MySQL Server
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n current_mysql_version\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/current_mysql_version?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: cPanel 11.48
/deactivate_zone_key:
get:
description: 'This function deactivates a domain''s DNSSEC security key.
**Note:**
Only servers that run PowerDNS can use DNSSEC. If you call this function on a server
that doesn''t use PowerDNS, you will receive an error.'
operationId: DNS-deactivate_zone_key
parameters:
- description: The domain for which to deactivate a security key.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: 'The security key''s ID.
**Note:**
Use the WHM AP1 `fetch_ds_records_for_domains` function to locate the
domain''s security key ID.'
in: query
name: key_id
required: true
schema:
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: deactivate_zone_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable domain's DNSSEC key
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n deactivate_zone_key \\\n domain='example.com' \\\n key_id='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/deactivate_zone_key?api.version=1&domain=example.com&key_id=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/delete_account_archives:
get:
description: This function removes a cPanel user account's archives.
operationId: Transfers-delete_account_archives
parameters:
- description: The cPanel account username.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
- description: The filepath to the archive storage location.
in: query
name: mountpoint
required: false
schema:
default: /home
example: /home/example/
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: delete_account_archives
type: string
output:
properties:
messages:
description: An array of status messages.
items:
example: 'Found archive: /home/example/example.tar.gz'
type: string
type: array
warnings:
description: An array of warning messages.
items:
example: This is a warning message.
type: string
type: array
type: object
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
type: object
description: HTTP Request was successful.
summary: Remove cPanel account's archives
tags:
- Transfers
- Transfer Configuration
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_account_archives \\\n user='username'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_account_archives?api.version=1&user=username
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '70'
/delete_account_enhancement:
get:
description: This function removes an account enhancement.
operationId: AccountEnhancements-delete_account_enhancement
parameters:
- description: The name of the account enhancement.
in: query
name: name
required: true
schema:
example: enhancement 5000
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The name of the method called.
example: delete_account_enhancement
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove an Account Enhancement
tags:
- Account Enhancements
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_account_enhancement \\\n name='enhancement 5000'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_account_enhancement?api.version=1&name=enhancement%205000
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '98'
/delete_configclusterserver:
get:
description: 'This function removes a server from a configuration cluster. The function''s return
data appears in the `metadata` section of its output.
**Important:**
If you log in to a configuration cluster server that is **not** the parent server,
**nothing** will indicate that the server is part of a configuration cluster. You can
**only** view and modify this information from the parent server.'
operationId: ClusterServer-delete_configclusterserver
parameters:
- description: The hostname or IP address of a remote configuration cluster server.
in: query
name: name
required: true
schema:
example: example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: delete_configclusterserver
type: string
name:
description: The remote configuration cluster server's name.
example: example.com
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete server from configuration cluster
tags:
- Server Administration
- Configuration Clusters
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_configclusterserver \\\n name='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_configclusterserver?api.version=1&name=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/delete_cpgreylist_trusted_host:
get:
description: This function deletes an IP address from the Greylisting _Trusted Hosts_ list.
operationId: cPGreyList-delete_cpgreylist_trusted_host
parameters:
- description: 'The record''s IP address, or a range of IP addresses.
**Note:**
To add multiple IP addresses, increment the parameter name (for example, `ip-1`, `ip-2`, `ip-3`).'
examples:
cidr-ipv4:
summary: CIDR Format IPv4
value: 192.168.0.1/16
cidr-ipv6:
summary: CIDR Format IPv6
value: 2001:db8::/32
multiple:
description: Multiple IP addresses.
value: ip-1=192.168.0.1&ip-2=192.168.0.2&ip-3=192.168.0.3
single:
description: A single IP address.
value: 192.168.0.1
single-ipv4:
summary: Single IPv4 Address
value: 192.0.2.0
single-ipv6:
summary: Single IPv6 Address
value: 2001:db8::1
in: query
name: ip
required: true
schema:
example: 192.168.0.1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ips_failed:
additionalProperties:
description: A failed IP address and the error message.
type: string
description: An object that contains the IP addresses that the function failed to remove from the
_Trusted Hosts_ list.
example:
'5.5': 'Invalid IP address or range: “5.5”'
type: object
ips_removed:
description: An array of IP addresses that the function removed from the _Trusted Hosts_ list.
example:
- 192.168.0.1
- 2001:db8::1
items:
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_cpgreylist_trusted_host
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove IP address from Greylisting trusted hosts
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_cpgreylist_trusted_host \\\n ip='192.168.0.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_cpgreylist_trusted_host?api.version=1&ip=192.168.0.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/delete_cphulk_record:
get:
description: This function deletes a record or records from cPHulk's whitelist or blacklist.
operationId: cPHulk-delete_cphulk_record
parameters:
- description: "The record's IP address.\n\n**Note:**\n\n To delete multiple IP addresses, increment the parameter name.\
\ For example, `ip-1`, `ip-2`, `ip-3`."
examples:
multiple:
description: Multiple IP addresses.
value:
- 192.168.0.1
- 192.168.0.2
- 2001:db8::1
- 2002:db8::1
single:
description: Single IP address.
value:
- 192.168.0.1
explode: true
in: query
name: ip
required: true
schema:
items:
$ref: '#/components/schemas/ip-address'
type: array
style: form
- description: 'The cPHulk list''s name.
* `white`
* `black`'
in: query
name: list_name
required: true
schema:
enum:
- white
- black
example: white
type: string
- description: "Whether to skip checking if cPHulk runs on the server.\n\n* `1` - Don’t check cPHulk’s status.\n* `0`\
\ - Check cPHulk’s status.\n\n**Note:**\n\n If cPHulk is disabled and you check its status, the function returns\
\ the following message:\n`cPHulk is disabled on the server`."
in: query
name: skip_enabled_check
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ips_failed:
additionalProperties:
description: "The reason why the system failed to add the IP address to the list.\n\n**Note:**\n\
\n The IP address is the property name."
example: Invalid IP address or range "192.68.0.1"
type: string
description: Information about IP addresses that the system failed to add to the list.
example:
192.168.0.1: This is why, alpha.
192.168.9.1: This is why, beta.
type: object
ips_removed:
description: The IP addresses that the function removed from the list.
items:
example: 192.168.0.1
format: ipv4
type: string
type: array
list_name:
description: 'The cPHulk list''s name.
* `black`
* `white`'
enum:
- black
- white
example: white
type: string
requester_ip:
description: The requester's IP address.
example: 192.168.0.1
format: ipv4
type: string
requester_ip_is_whitelisted:
description: 'Whether the requester''s IP address exists on cPHulk''s whitelist.
* `1` - Whitelisted.
* `0` - **Not** whitelisted.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_cphulk_record
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove login security record from list
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_cphulk_record \\\n list_name='white' \\\n ip='192.168.0.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_cphulk_record?api.version=1&list_name=white&ip=192.168.0.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/delete_customizations:
get:
description: 'This function deletes customization data.
Customization data includes brand logos and colors.
Server owners and resellers can supply customization data to whitelabel portions
of the product or customize the cPanel experience for their users.
This function is used to delete customization data for the Jupiter theme **only**.
If you provide the optional `path` parameter, the API will removed only the specific element specified in the `.`
separated path.
See the parameter for more details.'
operationId: Customizations-delete_customizations
parameters:
- description: The application name for the customization.
in: query
name: application
required: true
schema:
enum:
- cpanel
- webmail
example: cpanel
type: string
- description: The theme name for the customization.
in: query
name: theme
required: true
schema:
example: jupiter
type: string
- description: 'The JSONPath expression to reach to property you want to delete. We support only the
subset of JSONPath using the `.` style notation. There is presently no other JSONPath
features supported.'
in: query
name: path
required: false
schema:
example: brand.icon.description
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: delete_customizations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete customization data
tags:
- Customizations
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_customizations \\\n application='cpanel' \\\n theme='jupiter'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_customizations?api.version=1&application=cpanel&theme=jupiter
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '100'
x-cpanel-cli-support: true
/delete_domain:
get:
description: 'This function deletes a domain.
**Note:**
This function does **not** remove an addon domain''s associated subdomain. You **must** also run this function for
the associated subdomain.'
operationId: UserDomains-delete_domain
parameters:
- description: The name of the domain to delete.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
type:
description: 'The type of domain that the function deleted.
* `addon` — An addon domain.
* `parked` — A parked (alias) domain.
* `sub` — A subdomain.
* `null` — The domain does not exist on the server.'
enum:
- addon
- parked
- sub
example: addon
nullable: true
type: string
username:
description: 'The cPanel user that owned the domain.
* A cPanel account username.
* `null` — The function did **not** find a cPanel account that owns the given domain.'
example: username
format: domain
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_domain
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete domain
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_domain \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_domain?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/delete_featurelist:
get:
description: This function deletes a feature list.
operationId: FeatureLists-delete_featurelist
parameters:
- description: The feature list's name.
in: query
name: featurelist
required: true
schema:
example: TestList
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
deleted_featurelist:
description: The deleted feature list's name.
example: TestList
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_featurelist
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete feature list
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_featurelist \\\n featurelist='TestList'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_featurelist?api.version=1&featurelist=TestList
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/delete_hook:
get:
description: This function removes a script hook.
operationId: Hooks-delete_hook
parameters:
- description: 'The script hook''s ID.
**Note:**
To retrieve a hook''s ID, use the WHM API 1 `list_hooks` function.'
in: query
name: id
required: true
schema:
example: HzEpGvT6QGUYwxuX3hWB8AUq
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: delete_hook
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete script hook
tags:
- Script Hooks
- Scripts Hooks
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_hook \\\n id='HzEpGvT6QGUYwxuX3hWB8AUq'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_hook?api.version=1&id=HzEpGvT6QGUYwxuX3hWB8AUq
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/delete_rpm_version:
get:
description: 'This function removes RPM data. When you call this function, it performs the same
actions as the following command:
`/usr/local/cpanel/scripts/update_local_rpm_versions --del section.key value`
For more information, read our
[rpm.versions system](https://docs.cpanel.net/knowledge-base/rpm-versions/introduction-to-the-rpm-versions-system/)
documentation.
**Note:**
After you call this function, we **strongly** recommend that you run the
`/usr/local/cpanel/scripts/check_cpanel_pkgs` script.'
operationId: RPMVersions-delete_rpm_version
parameters:
- description: The [RPM's target](https://docs.cpanel.net/knowledge-base/rpm-versions/rpm-targets/).
in: query
name: key
required: true
schema:
example: 3rdparty
type: string
- description: The RPM's section within the `rpm.versions` file.
in: query
name: section
required: true
schema:
example: rpm_groups
type: string
- description: The RPM name.
in: query
name: value
required: true
schema:
example: cpanel-pcre
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
status:
description: 'Whether the function was successful.
* `1` — Success.
* `0` — Failure.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_rpm_version
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove rpm.versions system configuration
tags:
- RPM
- Package Manager Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_rpm_version \\\n section='rpm_groups' \\\n key='3rdparty' \\\n\
\ value='cpanel-pcre'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_rpm_version?api.version=1§ion=rpm_groups&key=3rdparty&value=cpanel-pcre
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/delete_ssl_vhost:
get:
description: This function deletes the SSL virtual host.
operationId: SSL-delete_ssl_vhost
parameters:
- description: The hostname whose SSL virtual host you'd like to delete.
in: query
name: host
required: true
schema:
example: example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
output:
description: Shows the status of the deletion.
example:
- Deleting the SSL host for example.com
- Done.
items:
type: string
type: array
removed_vhost_data:
description: The virtual host data that the script removed.
items:
properties:
ip_port:
description: The IP address where the virtual host data resided and its port number.
example:
- 192.0.2.0
- '443'
items:
type: string
type: array
is_ssl:
description: 'Whether the virtual host was SSL.
* `1` — The host was SSL.
- `0` — The host was **not** SSL.'
enum:
- 0
- 1
example: 1
type: integer
primary_on_ip_port:
description: The domain name that the removed virtual host used.
example: example.net
format: domain
type: string
servername:
description: The name of the deleted domain.
example: example.com
format: domain
type: string
vhost_entry:
description: The output text.
example: '
ServerName example.com
ServerAlias [...]
'
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: delete_ssl_vhost
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete SSL vhost
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delete_ssl_vhost \\\n host='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delete_ssl_vhost?api.version=1&host=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '82'
/deletesshkey:
get:
description: 'This function function deletes an SSH key from the server.
**Warning:**
Only the `root` account can use this function, and it only affects
the `root` keys. To perform this function on a cPanel user account, call the
cPanel API 2 `SSH::authkey` function through the WHM API.'
operationId: SSH-deletesshkey
parameters:
- description: The SSH key file's name.
in: query
name: file
required: true
schema:
example: /root/.ssh/test
type: string
- description: 'Whether to authorize the SSH key to access the server.
* `1` — Leave authorized.
* `0` — Do **not** leave authorized.'
in: query
name: leave_authorized
required: false
schema:
default: 1
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
file:
description: The SSH key file's name.
example: /root/.ssh/test
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: deletesshkey
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Delete SSH key
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n deletesshkey \\\n file='/root/.ssh/test'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/deletesshkey?api.version=1&file=%2froot%2f.ssh%2ftest
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/delip:
get:
description: This function removes an IP address from the server.
operationId: Ips-delip
parameters:
- description: The IPv4 address.
in: query
name: ip
required: true
schema:
example: 10.1.1.1
format: ipv4
type: string
- description: The network alias to which the IPv4 address is bound.
in: query
name: ethernetdev
required: false
schema:
default: ''
example: eth0
nullable: true
type: string
- description: 'Whether to remove the IP address if the ethernet interface is down.
* `1` — Do **not** remove the IP address.
* `0` — Remove the IP address.'
in: query
name: skipifshutdown
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: delip
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: eth0:cp2 is now down, 10.1.1.1 has been removed
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove IP address
tags:
- IP Addresses
- IPv4 Address Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delip \\\n ip='10.1.1.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delip?api.version=1&ip=10.1.1.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/delpkgext:
get:
description: "This function deletes a package extension from a hosting plan (package).\n\n**Note:**\n\n* You can additionally\
\ include extension's variables in your function call, in `key=value` format.\n Consult the extension's documentation\
\ for a list of possible variables. Extension variable names are case-sensitive."
operationId: Packages-delpkgext
parameters:
- description: 'The space delimited
[package extensions](https://go.cpanel.net/GuidetoPackageExtensions)
to delete.
**Note:**
* Extension names are case-sensitive.'
explode: true
in: query
name: _DELETE_EXTENSIONS
required: true
schema:
example: extension1 extension2
type: string
style: spaceDelimited
- description: The hosting plan's name.
in: query
name: name
required: true
schema:
example: package1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pkg:
description: The deleted hosting plan's name.
example: package1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: delpkgext
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove hosting plan extension
tags:
- Packages
- Hosting Plan Extensions
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n delpkgext \\\n name='package1' \\\n _DELETE_EXTENSIONS='extension1 extension2'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/delpkgext?api.version=1&name=package1&_DELETE_EXTENSIONS=extension1%20extension2
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/disable_authentication_provider:
get:
description: This function disables a external authentication identity provider for a specified service.
operationId: Authentication-disable_authentication_provider
parameters:
- description: A valid identity provider's identification key.
in: query
name: provider_id
required: true
schema:
example: cpanelid
type: string
- description: 'The cPanel & WHM service''s name:
* `cpaneld`
* `webmaild`
* `whostmgrd`'
in: query
name: service_name
required: true
schema:
enum:
- cpaneld
- webmaild
- whostmgrd
example: cpaneld
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: disable_authentication_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable identity provider
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_authentication_provider \\\n service_name='cpaneld' \\\n provider_id='cpanelid'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_authentication_provider?api.version=1&service_name=cpaneld&provider_id=cpanelid
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/disable_autossl:
get:
description: This function disables the AutoSSL feature.
operationId: SSL-disable_autossl
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: disable_autossl
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable AutoSSL
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_autossl\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_autossl?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/disable_cpgreylist:
get:
description: This function disables Greylisting.
operationId: cPGreyList-disable_cpgreylist
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: disable_cpgreylist
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable Greylisting
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_cpgreylist\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_cpgreylist?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/disable_cphulk:
get:
description: This function disables the cPHulk service.
operationId: cPHulk-disable_cphulk
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: disable_cphulk
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable login security
tags:
- cPHulk
- Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_cphulk\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_cphulk?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/disable_dkim:
get:
description: This function removes the DomainKeys Identified Mail (DKIM) records on the DNS server for one or more domains.
operationId: EmailAuth-disable_dkim
parameters:
- description: "The domain for which to remove DKIM records on the DNS server.\n\n**Note:**\n\n To remove multiple domain\
\ DKIM records, duplicate the parameter name. For example, use the `domain=example-1.com`, `domain=example-2.com`,\
\ and `domain=example-3.com` parameters."
examples:
multiple:
summary: To remove multiple domain DKIM records
value: domain=example-1.com domain=example-2.com domain=example-3.com
single:
summary: To remove a single domain DKIM record
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains information about the removal of a domain's DKIM record
on the DNS server.
items:
properties:
domain:
description: The domain for which the system removed the DKIM record.
example: example.com
type: string
msg:
description: Information about the removed DKIM record.
example: '[REMOVE:TXT@default._domainkey:v=DKIM1; k=rsa; p=MIGfMAOGCSqGSIb3DQEBAQUAA4GNADCBiLMNOpQDw5nw4NP1RsWXlfmiMzByDfOT16QCZO/xJtrPZKskZF8/sU0zWGTqKUOErlyJfoJzMDUv3/zzjGswc2nEmYqxxoQZaBkN4QaS6MvJQxysAr+sK8C248/r9zMperQdhJedUVejtpFQHJwgqpHy1tQMxY37L7sQjdxmQ5WnQ1acXiwIDAQAB;]'
type: string
status:
description: 'Whether the system removed the domain''s DKIM record on the DNS server.
- `1` — The system removed the domain''s DKIM record.
- `0` — The system did *not* remove the domain''s DKIM record.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: disable_dkim
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable domain's DKIM records
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_dkim \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_dkim?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/disable_dnssec_for_domains:
get:
description: "This function disables DNSSEC on the domain.\n\n**Note:**\n\n Only servers that run PowerDNS can use\
\ DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error.\n\n**Warning:**\n\
\n - This action is **irreversible**. If you disable DNSSEC on the domain, you will lose the associated keys. You\
\ can only retrieve the keys by restoring them from a full back up of the account.\n - If you disable DNSSEC, you\
\ **must** remove the Delegation of Signing (DS) records on your DNS server and with your registrar."
operationId: DNS-disable_dnssec_for_domains
parameters:
- description: 'The domain for which to disable DNSSEC.
**Note:**
To disable DNSSEC for multiple domains, duplicate or increment the parameter name. For example, to check three domains,
you could:
* Use the `domain` parameter multiple times.
* Use the `domain`, `domain-1`, `domain-2` parameters.'
examples:
multiple:
summary: Multiple domains
value: domain=example.com&domain-1=example1.com&domain-2=example2.com
multiple-alternative:
summary: Multiple domains
value: domain=example.com&domain=example1.com&domain=example2.com
single:
summary: A single domain.
value: example.com
in: query
name: domain
required: true
schema:
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domains:
description: An array of objects that contains information about each domain.
items:
properties:
disabled:
description: 'Whether the system disabled DNSSEC.
* `1` - Disabled.
* `0` - The system failed to disable DNSSEC.'
enum:
- 0
- 1
example: 1
type: integer
domain:
description: The domain for which the system disabled DNSSEC.
example: example.com
format: domain
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: disable_dnssec_for_domains
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable DNSSEC on domain
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_dnssec_for_domains \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_dnssec_for_domains?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/disable_failing_authentication_providers:
get:
description: This function disables any enabled identity provider modules that fail to load.
operationId: Authentication-disable_failing_authentication_providers
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects containing information about the external authentication identity
provider module failures.
items:
properties:
disabled_services:
description: An array of the cPanel services for which the external authentication identity
provider was previously disabled.
example:
- cpaneld
- webmaild
items:
type: string
type: array
failures_to_disable:
description: An array of objects containing the cPanel services for which the system fails to
disable the module.
items:
properties:
failure:
description: A description of the failure to disable the identity provider module for
that module.
example: An informative failure message.
type: string
service_name:
description: A cPanel service for which the system failed to disable the external authentication
identity provider.
example: whostmgrd
type: string
type: object
type: array
provider_failure:
description: A description of the failure.
example: '(ERR mcddbv) The system failed to load the module “Cpanel::Security::Authn::Provider::Facebook“
because of an error: Can''t locate Cpanel/Security/Authn/Provider/Facebook.pm in @INC (@INC
contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib/i386-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.4/i386-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.4 /opt/cpanel/perl5/514/site_lib/i386-linux-64int
/opt/cpanel/perl5/514/site_lib /var/cpanel/perl) at (eval 143) line 1.
BEGIN failed--compilation aborted at (eval 143) line 1.
'
type: string
provider_name:
description: The external authentication identity provider to disable.
example: facebook
type: string
provider_namespace:
description: The external authentication identity provider module's namespace.
example: Cpanel::Security::Authn::Provider::Facebook
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: disable_failing_authentication_providers
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable identity provider modules that fail to load
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_failing_authentication_providers\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_failing_authentication_providers?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/disable_mail_sni:
get:
deprecated: true
description: 'This function is deprecated and always fails.
**Note:**
Mail SNI is **always** enabled. cPanel & WHM no longer allows mail SNI to be disabled.
* Functions that disable Mail SNI fail and make no changes.
* Functions that enable Mail SNI succeed with a warning that Mail SNI is always enabled.'
operationId: SSL-disable_mail_sni
parameters:
- description: 'The account''s domain. You may pass multiple domains using additional
numbered parameters (e.g., `domain-1`, `domain-2`).
**Note:** This parameter has no effect — this function always fails
regardless of any input because mail SNI can no longer be disabled.'
in: query
name: domain
required: false
schema:
example: example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties: {}
type: object
metadata:
properties:
command:
description: The method name called.
example: disable_mail_sni
type: string
reason:
description: The reason the API function failed.
example: cPanel & WHM no longer allows mail SNI to be disabled.
type: string
result:
description: 'This function always returns `0` (failure) because mail SNI
can no longer be disabled.
* `0` - Failed.'
enum:
- 0
example: 0
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: (Deprecated) Disable SNI mail services for domains
tags:
- Mail
- Mail Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_mail_sni \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_mail_sni?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/disable_market_provider:
get:
description: This function disables a cPanel Market provider.
operationId: Market-disable_market_provider
parameters:
- description: The cPanel Market provider's name.
in: query
name: name
required: true
schema:
example: cPStore
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: disable_market_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Disable Market provider
tags:
- Market
- Provider Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n disable_market_provider \\\n name='cPStore'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/disable_market_provider?api.version=1&name=cPStore
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/domainuserdata:
get:
description: This function retrieves domain data.
operationId: Accounts-domainuserdata
parameters:
- description: The account's main domain.
in: query
name: domain
required: true
schema:
example: example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
userdata:
description: The domain information.
properties:
customlog:
description: A list of objects of Apache log information.
items:
properties:
format:
description: The custom log's format. A valid Apache log format.
example: combined
type: string
target:
description: An Apache custom log's location. The absolute path to the log file.
example: /usr/local/apache/domlogs/example.com
type: string
type: object
type: array
documentroot:
description: The path to the domain's document root. A valid filepath.
example: /home/username/public_html
type: string
group:
description: The account's group name. A valid group name.
example: reseller_username
type: string
hascgi:
description: 'Whether CGI is enabled for the account.
- 1 Enabled.
- 0 Disabled.'
enum:
- 0
- 1
example: 1
type: integer
homedir:
description: The path to the domain's home directory. The absolute path to the domain's home directory.
example: /home/username
type: string
ip:
description: The domain's IP address. A valid IP address.
example: 10.0.0.1
type: string
owner:
description: The WHM user who owns the cPanel account. A valid WHM username.
example: root
type: string
phpopenbasedirprotect:
description: 'Whether the PHP open_basedir tweak is enabled.
- 1 Enabled.
- 0 Disabled.'
enum:
- 0
- 1
example: 1
type: integer
port:
description: Apache's port to access the domain. A valid port number.
example: 80
type: integer
scriptalias:
description: an object containing Apache ScriptAlias information.
items:
properties:
path:
description: The path to Apache's CGI scripts. The url alias redirects to this location.
A valid URL or absolute file path.
example: /home/user/public_html/cgi-bin/
type: string
url:
description: The alias URL. This URL redirects to the path URL. A valid URL or file path.
example: /cgi-bin/
type: string
type: object
type: array
serveradmin:
description: The account owner's contact email address. A valid email address.
example: owner@example.com
type: string
serveralias:
description: The domain's aliases. A space-separated list of domain aliases.
example: parkeddomain.com www.parkeddomain.com seconddomain.com
type: string
servername:
description: The main domain on the domain's account. A valid domain name.
example: example.com
type: string
usecanonicalname:
description: 'The domain''s setting for canonical names (CNAMEs).
- On
- Off'
example: 'Off'
type: string
user:
description: The cPanel account username. A valid cPanel username.
example: user
type: string
userdirprotect:
description: 'The domain''s setting for the Apache mod_userdir Tweak.
- On
- Off'
example: 'Off'
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: domainuserdata
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Obtained userdata.
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain user information
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n domainuserdata \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/domainuserdata?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/dumpzone:
get:
deprecated: true
description: "This function returns a domain's DNS zone configuration.\n\n**Important:**\n\n* This function is **deprecated**.\
\ Use WHM's `parse_dns_zone` function.\n* You **must** include either the `domain` or the `zone` parameters.\n* When\
\ you disable the [DNS role](https://go.cpanel.net/serverroles), the\nsystem **disables** this function.\n\n**Note:**\n\
\nOn servers that run CentOS 7, you may see a `named` warning about the absence of\nSPF resource records on DNS.\n\
\ * This warning is **not** relevant on CentOS 7 servers, because\n [RFC 7208 deprecated SPF records](https://tools.ietf.org/html/rfc7208).\
\ CentOS 7\n servers use TXT records instead of SPF records.\n * Red Hat 7.1 and CentOS 7.1 both contain `bind-9.9.4-23.el7`,\
\ which is an\n updated version of BIND that complies with RFC 7208. To resolve this issue,\n update your operating\
\ system to a version that contains the updated version of\n BIND. For more information, read the\n [Red Hat Bugzilla\
\ case about SPF record errors](https://bugzilla.redhat.com/show_bug.cgi?id=1215164)."
operationId: DNS-dumpzone
parameters:
- description: The zone record's domain.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: The zone file's name.
in: query
name: zone
required: false
schema:
example: example.com.db
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
zone:
description: An array of objects of zone information. This array contains the `record` array of objects.
items:
anyOf:
- $ref: '#/components/schemas/a'
- $ref: '#/components/schemas/a6'
- $ref: '#/components/schemas/aaaa'
- $ref: '#/components/schemas/asfdb'
- $ref: '#/components/schemas/caa'
- $ref: '#/components/schemas/cname'
- $ref: '#/components/schemas/dname'
- $ref: '#/components/schemas/ds'
- $ref: '#/components/schemas/hinfo'
- $ref: '#/components/schemas/loc'
- $ref: '#/components/schemas/mx'
- $ref: '#/components/schemas/ns'
- $ref: '#/components/schemas/ptr'
- $ref: '#/components/schemas/rp'
- $ref: '#/components/schemas/soa'
- $ref: '#/components/schemas/srv'
- $ref: '#/components/schemas/sshfp'
- $ref: '#/components/schemas/txt'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: dumpzone
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Zone Serialized
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain's DNS zone configuration
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n dumpzone \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/dumpzone?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/ea4_get_additional_pkg_prefixes:
get:
description: This function returns any additional package prefixes set up in the `/etc/cpanel/ea4/additional-pkg-prefixes/`
file.
operationId: EA4-ea4_get_additional_pkg_prefixes
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
additional_pkg_prefixes:
description: A list of any additional package prefixes, beyond `ea`, that the server is using.
items:
example: altea
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_get_additional_pkg_prefixes
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return any additional package prefixes, beyond `ea`.
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: 'whmapi1 --output=jsonpretty ea4_get_additional_pkg_prefixes
'
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_get_additional_pkg_prefixes?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '116'
/ea4_get_currently_installed_packages:
get:
description: 'This function returns a list of the currently-installed EasyApache 4 packages.
**Important:**
When you disable the [Web Server role](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles),
the system **disables** this function.'
operationId: EA4-ea4_get_currently_installed_packages
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
packages:
description: A list of the currently installed packages.
items:
example: ea-apache24
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_get_currently_installed_packages
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return installed Easyapache 4 packages
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ea4_get_currently_installed_packages\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_get_currently_installed_packages?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/ea4_list_profiles:
get:
description: "This function returns a list of all [EasyApache 4](https://docs.cpanel.net/ea4/) profiles and the packages\
\ that each profile provides.\n\n **Important:**\n\n When you disable the [Web Server](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles)\
\ role, the system **disables** this function."
operationId: EA4-ea4_list_profiles
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: '**Note:**
* This function returns this array when a third-party vendor-created profile exists.
* The function may return this array multiple times.'
items:
properties:
desc:
description: A description of the profile.
example: The currently installed packages on the server.
type: string
name:
description: The profile name.
example: No PHP
type: string
path:
description: The file name of the profile.
example: default.json
type: string
pkgs:
description: An array of RPM packages that the profile includes.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
tags:
description: Labels that highlight key attributes of a profile.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
validation_data:
properties:
not_on_server:
description: An array of packages in the profile that do not exist in any of the server's
yum repositories.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
type: object
version:
description: The profile's current version ID.
example: '1.2'
type: string
type: object
type: array
properties:
cpanel:
description: An array of cPanel & WHM-provided EasyApache 4 profile settings objects.
items:
properties:
active:
description: 'Whether the cPanel & WHM-provided EasyApache 4 profile''s settings are active.
* `1` - Active.
* `0` - Inactive.'
enum:
- 0
- 1
example: 1
type: integer
desc:
description: A description of the profile.
example: The currently installed packages on the server.
type: string
name:
description: The profile name.
example: No PHP
type: string
pkgs:
description: An array of RPM packages that the profile includes.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
tags:
description: Labels that highlight key attributes of a profile.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
validation_data:
properties:
not_on_server:
description: An array of packages in the profile that do not exist in any of the server's
yum repositories.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
type: object
version:
description: The profile's current version ID.
example: '1.2'
type: string
type: object
type: array
custom:
description: 'An array of custom settings objects.
**Note:**
This function returns the custom array when a system administrator-created profile exists.'
items:
properties:
desc:
description: A description of the profile.
example: The currently installed packages on the server.
type: string
name:
description: The profile name.
example: No PHP
type: string
path:
description: The file name of the profile.
example: default.json
type: string
pkgs:
description: An array of RPM packages that the profile includes.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
tags:
description: Labels that highlight key attributes of a profile.
example:
- Apache 2.4
- PHP 7.4
items:
type: string
type: array
validation_data:
properties:
not_on_server:
description: An array of packages in the profile that do not exist in any of the server's
yum repositories.
example:
- ea-apache24
- ea-php74
items:
type: string
type: array
type: object
version:
description: The profile's current version ID.
example: '1.2'
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_list_profiles
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success.
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return EasyApache 4 profiles
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ea4_list_profiles\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_list_profiles?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/ea4_metainfo:
get:
description: This function returns the contents of the `/etc/cpanel/ea4/ea4-metainfo.json` file.
operationId: EA4-ea4_metainfo
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: 'Returns the contents of the `/etc/cpanel/ea4/ea4-metainfo.json` file.
Returns an empty value if the `/etc/cpanel/ea4/ea4-metainfo.json` file does not exist.'
type: object
description: Contents of the `/etc/cpanel/ea4/ea4-metainfo.json` file.
example:
additional_packages:
- ea-nginx
- ea-example
default_php_handler: cgi
default_php_package: ea-php72
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_metainfo
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return ea4-metainfo.json file contents
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ea4_metainfo\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_metainfo?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/ea4_recommendations:
get:
description: 'This function returns any recommendations attached to your installed
EasyApache 4 packages. For more information about the recommendation system,
read our [EasyApache 4 Recommendations](https://go.cpanel.net/EasyApache4Recommendations) documentation.
**Important:**
When you disable the [Web Server role](https://go.cpanel.net/howtouseserverprofiles#roles), the system **disables**
this function.'
operationId: EA4-ea4_recommendations
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: '* An object that contains recommendation information about a package.
**Note:**
* The function uses the name of the referenced package as the return name. For example, `ea-php74-php`.'
items:
properties:
desc:
description: 'The recommendation''s description.
**Note:**
* The function **only** returns this value if it exists.'
type: string
level:
description: 'The level that triggers a recommendation to appear, based on [Bootstrap 3 alert
components](http://getbootstrap.com/components/#alerts).
* `primary`
* `success`
* `info`
* `warning`
* `danger`
**Note:**
* The function **only** returns this value if it exists.
* This return''s value only affects the UI if set to `danger`.'
enum:
- primary
- success
- info
- warning
- danger
type: string
name:
description: The recommendation's name.
type: string
'on':
description: 'The action that triggers a recommendation.
* `add`
* `remove`'
enum:
- add
- remove
type: string
options:
description: An object that contains each option for the package's recommendations.
items:
properties:
items:
description: 'An array of information that corresponds with a text value.
**Note:**
The function **only** returns this value if it exists.'
example:
- ea-apache24
items:
type: string
type: array
level:
description: 'The level that triggers a recommendation to appear, based on [Bootstrap 3
alert components](http://getbootstrap.com/components/#alerts).
* `primary`
* `success`
* `info`
* `warning`
* `danger`
**Note:**
* The function **only** returns this value if it exists.
* This return''s value only affects the UI if set to `danger`.'
enum:
- primary
- success
- info
- warning
- danger
type: string
recommended:
description: 'The type of recommendation that the interface will return.
* `true` - Recommended.
* `false` - Not recommended.
**Note:**
* The function **only** returns this value if it exists.
* If the function does **not** return this value, then the text displayed in the interface
is informational.'
enum:
- true
- false
type: boolean
text:
description: The text returned in the user interface.
type: string
url:
description: 'A URL that provides more information.
**Note:**
The function **only** returns this value if it exists.'
format: url
type: string
type: object
type: array
url:
description: 'A URL to provide more information.
**Note:**
* The function **only** returns this value if it exists.'
format: url
type: string
type: object
type: array
example:
ea-php55-php:
- desc: PHP DSO runs as the user by default. In a shared hosting environment, this is a security issue.
level: danger
name: PHP DSO
'on': add
options:
- items:
- ruid2
- mpm-itk
level: success
recommended: true
text: 'We strongly recommend that you install one of the following packages unless this is a single-user
system:'
- level: warning
recommended: false
text: If you use suPHP, you will add some security, but may experience performance issues on your
server.
url: https://www.example.com
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_recommendations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success.
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return EasyApache 4 recommendations
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ea4_recommendations\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_recommendations?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/ea4_save_profile:
get:
description: "This function creates an EasyApache 4 profile. This function only writes files to the `/etc/cpanel/ea4/profiles/custom/`\
\ directory.\n\n**Important**:\n\n When you disable the [Web Server role](https://go.cpanel.net/serverroles), the\
\ system **disables** this function."
operationId: EA4-ea4_save_profile
parameters:
- description: The profile's file name.
in: query
name: filename
required: true
schema:
example: new_profile.json
type: string
- description: The profile's display name.
in: query
name: name
required: true
schema:
example: New Profile
type: string
- description: The packages that the profile contains.
explode: true
in: query
name: pkg
required: true
schema:
example:
- ea-apache24
- ea-apache24-foo
items:
type: string
type: array
style: form
- description: The description of the profile.
in: query
name: desc
required: false
schema:
default: ''
example: This is my new profile.
type: string
- description: 'Whether to overwrite the file, if it exists.
* `1` — Overwrite the file.
* `0` — Do **not** overwrite the file.'
in: query
name: overwrite
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: Tags that are appropriate for the profile.
explode: true
in: query
name: tag
required: false
schema:
default: []
example:
- Apache 2.4
- Optimized for static content
items:
type: string
type: array
style: form
- description: The profile's version number.
in: query
name: version
required: false
schema:
default: '0'
example: '1.3'
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
already_exists:
description: "Whether the filename value already exists.\n\n**Note**:\n\n The function only returns\
\ this field if the `overwrite` value is `0`, and the specified `filename` value already exists.\n\
- `1` — Exists.\n- `0` — Does **not** exist."
enum:
- 0
- 1
example: 1
type: integer
path:
description: "The new profile's path.\n\n**Note**:\n\n The function only returns this field if it\
\ succeeds."
example: /etc/cpanel/ea4/profiles/custom/new_profile.json
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: ea4_save_profile
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create EasyApache 4 profile
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ea4_save_profile \\\n filename='new_profile.json' \\\n name='New Profile'\
\ \\\n pkg='ea-apache24' pkg='ea-apache24-foo'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ea4_save_profile?api.version=1&filename=new_profile.json&name=New%20Profile&pkg=ea-apache24&pkg=ea-apache24-foo
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/edit_hook:
get:
description: This function edits a script hook.
operationId: Hooks-edit_hook
parameters:
- description: 'The script hook''s ID.
**Note:**
To retrieve a hook''s ID, use the WHM API 1 `list_hooks` function.'
in: query
name: id
required: true
schema:
example: HzEpGvT6QGUYwxuX3hWB8AUq
type: string
- description: The absolute file path to the script that runs after the hook script to check the results.
in: query
name: check
required: false
schema:
example: /scripts/postcourier-authlibup
type: string
- description: 'Whether the hook script is enabled.
* `1` — Enabled.
* `0` — Disabled.'
in: query
name: enabled
required: false
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether to escalate privileges to run the hook script as root.
* `1` — Escalate privileges.
* `0` — Do **not** escalate privileges.
**Note:**
* This parameter **only** applies to script hooks and **not** module hooks.
* Module hooks cannot escalate privileges.'
in: query
name: escalateprivs
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The type of function that the script hook launches.
* `script` — Runs a script.
* `module` — Calls a function in a module.'
in: query
name: exectype
required: false
schema:
enum:
- script
- module
example: script
type: string
- description: The hook script's absolute file path or its `module::subroutine` invocation.
in: query
name: hook
required: false
schema:
example: /scripts/postcourier-authlibup
type: string
- description: The script hook's notes.
in: query
name: notes
required: false
schema:
example: Note.
type: string
- description: The absolute file path to the script that rolls back the hook script.
in: query
name: rollback
required: false
schema:
example: /scripts/postcourier-authlibup
type: string
- description: 'The condition when the hook script executes.
* `pre` — The script runs before the function.
* `post` — The script runs after the function.'
in: query
name: stage
required: false
schema:
enum:
- pre
- post
example: post
type: string
- description: The script hook's priority in the hook's stage, where a lower value runs before a higher value.
in: query
name: weight
required: false
schema:
example: 100
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: edit_hook
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update script hook
tags:
- Script Hooks
- Scripts Hooks
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n edit_hook \\\n id='HzEpGvT6QGUYwxuX3hWB8AUq'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/edit_hook?api.version=1&id=HzEpGvT6QGUYwxuX3hWB8AUq
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/edit_rpm_version:
get:
description: 'This function edits RPM data. When you call this function, it performs the same actions
as the following command:
`/usr/local/cpanel/scripts/update_local_rpm_versions --edit section.key value`
For more information, read our
[rpm.versions system](https://docs.cpanel.net/knowledge-base/rpm-versions/introduction-to-the-rpm-versions-system/)
documentation.
**Note:**
After you call this function, we **strongly** recommend that you run the
`/usr/local/cpanel/scripts/check_cpanel_pkgs` script.'
operationId: RPMVersions-edit_rpm_version
parameters:
- description: The RPM's key.
in: query
name: key
required: true
schema:
example: 3rdparty
type: string
- description: The RPM's section.
in: query
name: section
required: true
schema:
example: rpm_groups
type: string
- description: The RPM's value.
in: query
name: value
required: true
schema:
example: cpanel-pcre
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
status:
description: 'Whether the function succeeded.
* `1` — Success.
* `0` — Failure.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: edit_rpm_version
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update rpm.versions system configuration
tags:
- RPM
- Package Manager Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n edit_rpm_version \\\n section='rpm_groups' \\\n key='3rdparty' \\\n \
\ value='cpanel-pcre'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/edit_rpm_version?api.version=1§ion=rpm_groups&key=3rdparty&value=cpanel-pcre
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/editpkg:
get:
description: 'This function edits a hosting plan (package).
**Note:**
* The
[Access Control List (ACL)](https://go.cpanel.net/GuidetoWHMPluginsAccessControlLists)
restricts some of the function''s parameters, which limit the features that WHM
users can access.
* This function applies any changes you make to **all** accounts that exist on
the hosting plan.
* This function **cannot** modify hosting plan names.'
operationId: Packages-editpkg
parameters:
- description: The hosting plan's name. If the hosting plan does not exist, the system will create it.
in: query
name: name
required: true
schema:
example: package1
type: string
- description: 'The hosting plan''s [package extensions](https://go.cpanel.net/GuidetoPackageExtensions).
If you do **not** provide a value, the hosting plan will **not** include package
extensions.
**Note:**
* We **strongly** recommend that you manage package extensions through WHM API
1''s `addpkgext` and `delpkgext` functions.
* You can include the extension''s variables in your function call, in `key=value` format.
Consult the extension''s documentation for a list of possible variables.
* Extension names and variables are case-sensitive.
* Use space-delimited format to add multiple package extensions.'
examples:
multiple:
summary: Add multiple package extensions.
value: extension1 extension2 extension3
single:
summary: Add a single package.
value: extension1
in: query
name: _PACKAGE_EXTENSIONS
required: false
schema:
type: string
- description: 'The hosting plan''s maximum bandwidth use, in megabytes (MB).
* `0`, `unlimited`, or `null` — The hosting plan allows unlimited
bandwidth.
**Note:**
The `0`, `unlimited`, or `null` values are **only** available to
users that possess the corresponding `unlimited` ACL permission.'
in: query
name: bwlimit
required: false
schema:
default: 1048576
example: 1048576
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'Whether CGI access is enabled for the hosting plan.
* `1` — Enabled.
* `0` — Disabled.
**Note:**
When a [server profile](https://go.cpanel.net/whmdocsServerProfile) disables
the [Web Server role](https://go.cpanel.net/serverroles#roles), this parameter
defaults to `0`. On these servers, you **cannot** enable CGI access.'
in: query
name: cgi
required: false
schema:
default: 1
enum:
- 1
- 0
example: 1
type: integer
- description: 'The hosting plan''s cPanel theme.
This parameter defaults to the server''s
[default cPanel theme](https://go.cpanel.net/whmdocsBasicasisWebHostManagerSetup).'
in: query
name: cpmod
required: false
schema:
example: jupiter
type: string
- description: 'Whether to enable Digest Authentication for accounts on the hosting plan.
* `1` — Enable.
* `0` — Disable.'
in: query
name: digestauth
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
- description: 'The hosting plan''s feature list.
If you do **not** use this parameter, the function assigns the `default`
feature list to the hosting plan''s accounts.'
in: query
name: featurelist
required: false
schema:
default: default
example: default
type: string
- deprecated: true
description: 'Whether Microsoft® FrontPage Extensions are enabled for the account.
**Note:**
cPanel & WHM ignores all FrontPage settings and parameters.'
in: query
name: frontpage
required: false
schema:
default: 0
enum:
- 1
- 0
example: 0
type: integer
- description: 'Whether the hosting plan allows shell access.
* `1` — The hosting plan allows shell access.
* `0` — The hosting plan does **not** allow shell access.'
in: query
name: hasshell
required: false
schema:
default: 0
enum:
- 1
- 0
example: 1
type: integer
- description: 'Whether the hosting plan uses a dedicated IP address.
* `y` — The hosting plan uses a dedicated IP address.
* `n` — The hosting plan does **not** use a dedicated IP address.'
in: query
name: ip
required: false
schema:
default: n
enum:
- y
- n
example: n
type: string
- description: 'The hosting plan''s default locale.
This parameter defaults to the server''s default locale.'
in: query
name: language
required: false
schema:
example: en
format: ISO-3166-1 (alpha-2)
type: string
- description: 'The percentage of failed or deferred email messages that an account on the
hosting plan can send per hour before outgoing mail is rate-limited.
* `0` or `unlimited` — The hosting plan allows unlimited email messages per hour.'
in: query
name: max_defer_fail_percentage
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- minimum: 0
type: integer
- enum:
- unlimited
type: string
- description: 'The maximum number of emails that the hosting plan allows accounts to send
in one hour.
* `0` or `unlimited` — The hosting plan allows unlimited emails per hour.'
in: query
name: max_email_per_hour
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum email account quota size, in megabytes (MB).
* `0`, `null, or `unlimited` — The hosting plan allows unlimited quota.
**Note:**
* This parameter does **not** affect any existing email accounts.
* The `unlimited` value is **only** available to users that possess
the corresponding `unlimited` ACL permission.'
in: query
name: max_emailacct_quota
required: false
schema:
default: 1024
example: 1024
oneOf:
- maximum: 4294967296
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: The hosting plan's maximum number of Team users.
in: query
name: max_team_users
required: false
schema:
example: 7
maximum: 7
minimum: 0
nullable: true
type: integer
- description: 'The hosting plan''s maximum number of addon domains.
* `unlimited` or `null` — The hosting plan allows unlimited
addon domains.'
in: query
name: maxaddon
required: false
schema:
default: 0
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of FTP accounts.
* `unlimited`, or `null` — The hosting plan allows unlimited databases.'
in: query
name: maxftp
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of mailing lists.
* `unlimited`, or `null` — The hosting plan allows unlimited
mailing lists.'
in: query
name: maxlst
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of parked domains (aliases).
* `unlimited` or `null` — The hosting plan allows unlimited parked
domains.'
in: query
name: maxpark
required: false
schema:
default: 0
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of email accounts.
* `unlimited`, or `null` — The hosting plan allows unlimited
email accounts.'
in: query
name: maxpop
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of each available type of SQL
database.
For example, if you set this value to `5` and the system administrator
allows MySQL® and PostgreSQL® databases, users with this hosting plan
can create up to five MySQL databases and up to five PostgreSQL databases.
* `unlimited`, or `null` — The hosting plan allows unlimited
databases.'
in: query
name: maxsql
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s maximum number of subdomains.
* `unlimited`, or `null` — The hosting plan allows unlimited
subdomains.'
in: query
name: maxsub
required: false
schema:
default: unlimited
example: unlimited
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
- description: 'The hosting plan''s disk space quota, in megabytes (MB).
* `0`, `unlimited`, or `null` — The hosting plan allows unlimited
disk space quota.
**Note:**
The `0`, `unlimited`, or `null` values are **only** available to
users that possess the corresponding `unlimited` ACL permission.'
in: query
name: quota
required: false
schema:
default: 10240
example: 10240
oneOf:
- maximum: 999999
minimum: 0
type: integer
- enum:
- null
- enum:
- unlimited
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pkg:
description: The new hosting plan's name.
example: package1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: editpkg
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update hosting plan
tags:
- Packages
- Hosting Plans
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n editpkg \\\n name='package1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/editpkg?api.version=1&name=package1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/editquota:
get:
description: This function modifies a user's disk quota.
operationId: Accounts-editquota
parameters:
- description: 'The account''s new quota.
* A positive integer that represents the maximum amount of disk space, in megabytes (MB).
* 0 or unlimited grants the account unlimited disk space.'
in: query
name: quota
required: true
schema:
example: 500
oneOf:
- minimum: 0
type: integer
- enum:
- unlimited
type: string
- description: The cPanel account username.
in: query
name: user
required: true
schema:
example: user
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: editquota
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Set quota for user.
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update cPanel account disk quota
tags:
- Bandwidth and Disk Quotas
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n editquota \\\n user='user' \\\n quota='500'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/editquota?api.version=1&user=user"a=500
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/editzonerecord:
post:
description: "This function edits a DNS zone record. To effectively use this function, use the following workflow:\n\
\ 1. Run the `dumpzone` function on the DNS zone record to edit.\n 1. Locate the `Line` value that corresponds to\
\ the data to edit.\n 1. Use the values from that zone record to formulate the appropriate `editzonerecord` parameters.\n\
\n**Important:**\n\n* When you call this function, you **must** include the additional parameters for the selected\
\ zone record type.\n* To change the zone record's IP address, we recommend that you use the [`swapip` script](https://go.cpanel.net/TheswapipScript)\
\ or the `setsiteip` function instead.\n* You **cannot** edit other DNS zones that reside on *Write-only* servers\
\ in a DNS cluster.\n\n**Note:**\n\nOn servers that run CentOS 7, you may see a `named` warning about the absence\
\ of SPF resource records on DNS.\n * This warning is **not** relevant on CentOS 7 servers, because [RFC 7208 deprecated\
\ SPF records](https://tools.ietf.org/html/rfc7208). CentOS 7 servers use TXT records instead of SPF records.\n *\
\ Red Hat 7.1 and CentOS 7.1 both contain `bind-9.9.4-23.el7`, which is an updated version of BIND that complies with\
\ RFC 7208. To resolve this issue, update your operating system to a version that contains the updated version of\
\ BIND. For more information, read the [Red Hat Bugzilla case about SPF record errors](https://bugzilla.redhat.com/show_bug.cgi?id=1215164).\n\
\n**Important:**\n\nWhen you disable the [DNS role](https://go.cpanel.net/serverroles#roles), the system **disables**\
\ this function."
operationId: DNS-editzonerecord
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/DnsEditZoneParameterType'
description: The updated DNS Zone Record.
required: true
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: editzonerecord
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: 'Bind reloading on hostname using rndc zone: [example.com]
'
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Update DNS zone record
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --input=json --output=jsonpretty \\\n editzonerecord\n"
- label: HTTP Request (Wire Format)
lang: HTTP
source: 'POST /cpsess##########/json-api/editzonerecord HTTP/1.1
Host: example.com:2083
Cookie: ###################################
Content-Type: application/json
Content-Length: 0
'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/emailtrack_search:
get:
description: "This function retrieves email delivery records.\n\n**Warning:**\n\n* On most servers, this function returns\
\ a large amount of output. We **strongly**\nrecommend that you [filter](https://go.cpanel.net/WHMAPI1FilterOutput)\
\ and\n[sort](https://go.cpanel.net/WHMAPI1SortOutput) the output.\n* The following example uses the filter and sort\
\ options:\n\n `https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_search?api.version=1&api.filter.enable=1&api.filter.a.field=sendunixtime&api.filter.a.arg0=1628889719&api.filter.a.type=gt&api.filter.b.field=sendunixtime&api.filter.b.arg0=1629847321&api.filter.b.type=lt&api.sort.enable=1&api.sort.a.field=sendunixtime&api.sort.a.reverse=0&api.chunk.enable=1&api.chunk.size=25&api.chunk.start=1&success=1`"
operationId: Exim-emailtrack_search
parameters:
- description: 'Whether to return delivery deferral events.
* `1` — Return delivery deferral events.
* `0` — Do not return delivery deferral events.'
in: query
name: defer
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The type of delivery records to retrieve.
* `all` — Retrieve all delivery records.
* `remote` — Retrieve remote delivery records.
* `local` — Retrieve local delivery records.'
in: query
name: deliverytype
required: false
schema:
default: all
enum:
- all
- remote
- local
example: all
type: string
- description: 'Whether to return delivery failure events.
* `1` — Return delivery failure events.
* `0` — Do not return delivery failure events.'
in: query
name: failure
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to return delivery attempts in progress.
* `1` — Return delivery attempts in progress.
* `0` — Do not return delivery attempts in progress.'
in: query
name: inprogress
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The number of results to return for each type.
**Note**
If you set this parameter to `0`, the function returns unlimited results.'
in: query
name: max_results_by_type
required: false
schema:
default: 0
example: 3
type: integer
- description: 'Whether to return successful delivery attempts.
* `1` — Return successful delivery attempts.
* `0` — Do not return successful delivery attempts.'
in: query
name: success
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records:
description: An array of objects containing the delivery record.
items:
properties:
actiontime:
description: When the delivery attempt happened in `YYYY-MM-DD HH-mm-SS` format.
example: '2012-02-06T14:17:51.000Z'
type: string
actionunixtime:
description: When the delivery attempt happened.
example: 1328559471
format: unix_timestamp
type: integer
deliveredto:
description: "The delivery attempt's final end point.\n\n**Note:**\n\n If the message went to\
\ a mailing list, the address will be the mailing list member's address."
example: null
nullable: true
type: string
deliverydomain:
description: The recipient's domain.
example: null
format: domain
nullable: true
type: string
deliveryuser:
description: The recipient's username.
example: null
nullable: true
type: string
domain:
description: The sender's domain.
example: example.com
format: domain
type: string
host:
description: The hostname that received the message.
example: null
format: hostname
nullable: true
type: string
ip:
description: The recipient's IP address.
example: null
format: ipv4
nullable: true
type: string
message:
description: The action taken.
example: Domain example.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed.
Message discarded.
type: string
msgid:
description: The message ID.
example: 1RuV0Z-0005NR-BN
type: string
recipient:
description: The recipient's mail address.
example: user@example.com
format: email
type: string
router:
description: The mail server's internal router name.
example: enforce_mail_permissions
type: string
sender:
description: The sender's full email address.
example: user@example.com
type: string
senderauth:
description: The user authentication.
example: localuser
format: hostname
type: string
senderhost:
description: The sender's hostname.
example: localhost
format: hostname
type: string
senderip:
description: The sender's IP address.
example: 127.0.0.1
type: string
sendunixtime:
description: When the message was sent.
example: 1328559471
format: unix_timestamp
type: integer
size:
description: The message's size.
example: 1653
format: bytes
minimum: 1
type: integer
spamscore:
description: 'The message''s spam score.
**Note:**
If the spam prevention engine uses a result range from `0` to `1` , the system multiplies
the result by `10`.'
example: 5
minimum: 0
type: integer
transport:
description: The mail transfer agent (MTA).
example: null
nullable: true
type: string
transport_is_remote:
description: 'Whether the mail transfer agent (MTA) is remote.
* `1` — Remote.
* `0` — Not remote.'
enum:
- 0
- 1
example: 0
type: integer
type:
description: 'The delivery status.
* `success`
* `defer`
* `failure`
* `inprogress`'
enum:
- success
- defer
- failure
- inprogress
example: success
type: string
user:
description: The sender's username.
example: cpanel1
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: emailtrack_search
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return email delivery records by search criteria
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n emailtrack_search\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_search?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/emailtrack_stats:
get:
description: This function retrieves email tracking statistics.
operationId: Exim-emailtrack_stats
parameters:
- description: 'The type of delivery to query. If you do not specify a value,
this function returns all types.
* `remote`
* `remote-or-faildefer`
* `local`'
in: query
name: deliverytype
required: false
schema:
enum:
- remote
- remote-or-faildefer
- local
example: remote
type: string
- description: 'The end date of the search window. This parameter defaults to the current time.
**Note**
This parameter is an alias for `endtime` and is provided for backwards compatibility.'
in: query
name: enddate
required: false
schema:
example: 1471552781
format: unix_timestamp
type: integer
- description: 'The end time of the search window. This parameter defaults to the current time.
**Note**
You can also call this the `enddate` parameter.'
in: query
name: endtime
required: false
schema:
example: 1471552781
format: unix_timestamp
type: integer
- description: 'Whether to return the `TOTALSIZE` parameter.
* 1 — Do **not** return.
* 0 — Return.'
in: query
name: nosize
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to return the `SUCCESSCOUNT` parameter.
* 1 — Do **not** return.
* 0 — Return.'
in: query
name: nosuccess
required: false
schema:
default: 0
enum:
- 0
- 1
example: 0
type: integer
- description: 'The start date of the search window.
**Note**
This parameter is an alias for `starttime` and is provided for backwards compatibility.'
in: query
name: startdate
required: false
schema:
default: 0
example: 1371552781
format: unix_timestamp
type: integer
- description: 'The start time of the search window.
**Note**
You can also call this the `startdate` parameter.'
in: query
name: starttime
required: false
schema:
default: 0
example: 1371552781
format: unix_timestamp
type: integer
- description: The cPanel username to query. If you do not specify a value, the function retrieves statistics for all
of the server's accounts.
in: query
name: user
required: false
schema:
example: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records:
description: An array of objects containing the message information.
items:
properties:
DEFERCOUNT:
description: The number of deferral events.
example: 0
minimum: 0
type: integer
DEFERFAILCOUNT:
description: The number of messages that the system deferred and failed to deliver.
example: 0
minimum: 0
type: integer
FAILCOUNT:
description: "The number of delivery failures.\n\n**Note:**\n\n If a message has three recipients,\
\ it can have a total of three failed deliveries."
example: 0
minimum: 0
type: integer
INPROGRESSCOUNT:
description: The number of messages currently in progress.
example: 0
minimum: 0
type: integer
SENDCOUNT:
description: The number of sent messages.
example: 14
minimum: 0
type: integer
SUCCESSCOUNT:
description: "The number of successful deliveries.\n\n**Note:**\n\n If a message has three recipients,\
\ it can have a total of three successful deliveries."
example: 14
type: integer
TOTALSIZE:
description: The total size of messages that the server sent.
example: 27444
format: bytes
minimum: 0
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: emailtrack_stats
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account email tracking statistics
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n emailtrack_stats\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_stats?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/emailtrack_user_stats:
get:
description: This function retrieves email tracking statistics for each user.
operationId: Exim-emailtrack_user_stats
parameters:
- description: 'The type of delivery to query. If you do not specify a value,
this function returns all types.
* `remote`
* `remote-or-faildefer`
* `local`'
in: query
name: deliverytype
required: false
schema:
enum:
- remote
- remote-or-faildefer
- local
example: remote
type: string
- description: The end time of the search window.
in: query
name: endtime
required: false
schema:
example: 1471552781
format: unix_timestamp
type: integer
- description: The sender's email address. If you do not specify a value, this function returns entries for mail from
all senders.
in: query
name: sender
required: false
schema:
example: username@example.com
format: email
type: string
- description: The start time of the search window.
in: query
name: starttime
required: false
schema:
default: 0
example: 1371552781
format: unix_timestamp
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records:
description: An array of objects containing the message information.
items:
properties:
DEFERCOUNT:
description: The number of deferral events.
example: 0
minimum: 0
type: integer
DEFERFAILCOUNT:
description: The number of messages that the system deferred and failed to deliver.
example: 0
minimum: 0
type: integer
DOMAIN:
description: The mailbox's domain.
example: example.com
format: domain
type: string
FAILCOUNT:
description: "The number of delivery failures.\n\n**Note:**\n\n If you assign a message three\
\ recipients, the system can fail to deliver the message three times."
example: 0
minimum: 0
type: integer
OWNER:
description: The mailbox's account owner.
example: root
type: string
PRIMARY_DOMAIN:
description: The mailbox account's primary domain.
example: example.com
format: domain
type: string
REACHED_MAXDEFERFAIL:
description: 'Whether the mailbox reached the maximum number of failed deferred messages.
* `1` — Reached.
* `0` — Has **not** reached.'
enum:
- 0
- 1
example: 1
type: integer
REACHED_MAXEMAILS:
description: 'Whether the mailbox has reached the maximum number of messages allowed per hour.
* `1` — Reached.
* `0` — Has **not** reached.'
enum:
- 0
- 1
example: 1
type: integer
SENDCOUNT:
description: The number of sent messages.
example: 14
minimum: 0
type: integer
SUCCESSCOUNT:
description: "The number of successful deliveries.\n\n**Note:**\n\n If you assign a message\
\ three recipients, the system can successfully deliver the message three times."
example: 14
minimum: 0
type: integer
TOTALSIZE:
description: The total size of messages sent by the server.
example: 27444
format: bytes
type: integer
USER:
description: The mailbox's owner.
example: example
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: emailtrack_user_stats
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all cPanel accounts email tracking statistics
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n emailtrack_user_stats\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/emailtrack_user_stats?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/enable_authentication_provider:
get:
description: This function enables an external authentication identity provider for a specified service.
operationId: Authentication-enable_authentication_provider
parameters:
- description: A valid identity provider's identification key.
in: query
name: provider_id
required: true
schema:
example: cpanelid
type: string
- description: 'The cPanel & WHM service''s name:
* `cpaneld`
* `webmaild`
* `whostmgrd`'
in: query
name: service_name
required: true
schema:
enum:
- cpaneld
- webmaild
- whostmgrd
example: cpaneld
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: enable_authentication_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable identity provider
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_authentication_provider \\\n service_name='cpaneld' \\\n provider_id='cpanelid'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_authentication_provider?api.version=1&service_name=cpaneld&provider_id=cpanelid
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/enable_cpgreylist:
get:
description: This function enables Greylisting.
operationId: cPGreyList-enable_cpgreylist
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: enable_cpgreylist
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable Greylisting
tags:
- Greylisting
- Spam Protection (Greylisting)
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_cpgreylist\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_cpgreylist?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/enable_cphulk:
get:
description: This function enables the cPHulk service.
operationId: cPHulk-enable_cphulk
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: enable_cphulk
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable login security
tags:
- cPHulk
- Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_cphulk\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_cphulk?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/enable_dkim:
get:
description: This function enables DomainKeys Identified Mail (DKIM) records on the DNS server for one or more domains.
operationId: EmailAuth-enable_dkim
parameters:
- description: "The domain for which to enable DKIM records on the DNS server.\n\n**Note:**\n\n To enable multiple domain\
\ DKIM records, duplicate the parameter name. For example, use the `domain=example-1.com`, `domain=example-2.com`,\
\ and `domain=example-3.com parameters`."
examples:
multiple:
summary: To enable multiple domain DKIM records
value: domain=example-1.com domain=example-2.com domain=example-3.com
single:
summary: To enable a single domain DKIM record
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects containing information about the enabled state of a domain's DKIM
records on the DNS server.
items:
properties:
domain:
description: The domain for which the system enabled the DKIM record.
example: example.com
format: domain
type: string
msg:
description: The domain's DKIM record status message.
example: Installed Keys
type: string
status:
description: 'Whether the system enabled the domain''s DKIM record on the DNS server.
* `1` — The system enabled the domain''s DKIM record.
* `0` — The system did **not** enable the domain''s DKIM record.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: enable_dkim
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable domain's DKIM records
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_dkim \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_dkim?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/enable_dnssec_for_domains:
get:
description: 'This function enables DNSSEC on the domain.
**Note:**
* Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn''t use PowerDNS,
you will receive an error.
* After you enable DNSSEC on the domain, you **must** add the Delegation of Signing (DS) records on your DNS server
and with your registrar.
* You **cannot** modify the DNSSEC security key. To make any changes, you **must** disable, delete, and re-create
the DNSSEC security key.'
operationId: DNS-enable_dnssec_for_domains
parameters:
- description: 'The domain for which to enable DNSSEC.
**Note:**
To enable DNSSEC on multiple domains, duplicate or increment the parameter name. For example, to check three domains,
you could:
* Use the `domain` parameter multiple times.
* Use the `domain`, `domain-1`, and `domain-2` parameters.'
examples:
multiple:
summary: Multiple domains
value: domain=example.com&domain-1=example1.com&domain-2=example2.com
multiple-alternative:
summary: Multiple domains
value: domain=example.com&domain=example1.com&domain=example2.com
single:
summary: A single domain.
value: example.com
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: 'Whether to activate the newly-created key.
* `1` - Activate the key.
* `0` - Do **not** activate the key.'
in: query
name: active
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'The algorithm that the system uses to generate the security key.
* `5` - RSA/SHA-1
* `6` - DSA-NSEC3-SHA1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384
**Note:**
We recommend that you use an ECDSA Curve P-256 with SHA-256 (13) value if your registrar supports it.'
in: query
name: algo_num
required: false
schema:
default: 8
enum:
- 5
- 6
- 7
- 8
- 10
- 13
- 14
example: 8
type: integer
- description: 'The manner in which the system creates the security key.
* `classic` - Use separate keys for KSK and ZSK. Use this value when the `algo_num` parameter is equal to or less
than 8.
* `simple` - Use a single key for both KSK and ZSK. Use this value when the `algo_num` parameter is greater than
8.'
in: query
name: key_setup
required: false
schema:
default: classic
enum:
- classic
- simple
example: classic
type: string
- description: The number of times that the system rehashes the first resource record hash operation.
in: query
name: nsec3_iterations
required: false
schema:
default: 7
example: 7
maximum: 500
minimum: 1
type: integer
- description: 'Whether NSEC3 operates in Narrow or Inclusive mode.
**Note:**
For information about these modes, read [PowerDNS''s DNSSEC documentation](https://doc.powerdns.com/authoritative/dnssec/intro.html).
* `1` - Narrow mode.
* `0` - Inclusive mode.'
in: query
name: nsec3_narrow
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: 'Whether the system will create records for all delegations.
* `1` - Create records for all delegations.
* `0` - Create records only for secure delegations.
**Note:**
Only use the `1` value if you **must** create records for all delegations.'
in: query
name: nsec3_opt_out
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
- description: 'A hexadecimal string that the system appends to the domain name before it applies the hash function
to the name.
**Note:**
For information about salt values, read [RFC 5155](https://tools.ietf.org/html/rfc5155#section-3.1.5).'
in: query
name: nsec3_salt
required: false
schema:
example: 1a2b3c4d5e6f
type: string
- description: 'Whether the domain will use [Next Secure Record](https://tools.ietf.org/html/rfc4470) (NSEC) or NSEC3
semantics.
* `1` - Use NSEC3 semantics.
* `0` - Use NSEC semantics.
**Note:**
If you use this value, the system ignores the other NSEC3 options.'
in: query
name: use_nsec3
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domains:
description: An array of objects that contains information about each domain.
items:
properties:
domain:
description: The domain for which the system enabled DNSSEC.
example: example.com
format: domain
type: string
enabled:
description: 'Whether the system enabled DNSSEC.
* `1` - Enabled.
* `0` - The system failed to enable DNSSEC.
**Note:**
This function will **not** return the `nsec_version` and `new_key_id` returns if this return
is a `0` value.'
enum:
- 0
- 1
example: 1
type: integer
new_key_id:
description: The assigned security key ID. A valid ID.
example: '2'
type: string
nsec_error:
description: 'The domain has a NSEC3 configuration error.
**Note:**
The function **only** displays this return if there is a NSEC3 configuration error. An error
message.'
example: Error message.
type: string
nsec_version:
description: 'The version of DNSSEC the system used.
* `NSEC3`
* `NSEC`
**Note:**
The function only displays this return if there is a NSEC3 configuration error. The system
also returns the error in the `nsec_error` return.'
enum:
- NSEC3
- NSEC
example: NSEC3
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: enable_dnssec_for_domains
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable DNSSEC on domain
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_dnssec_for_domains \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_dnssec_for_domains?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/enable_mail_sni:
get:
description: 'This function enables SNI for mail services on the specified domains.
**Note:**
Mail SNI is **always** enabled.
* Functions that enable Mail SNI succeed with a warning that Mail SNI is always enabled.
* Functions that disable Mail SNI fail and make no changes.'
operationId: SSL-enable_mail_sni
parameters:
- description: The account's domain. You may pass multiple domains using additional numbered parameters (e.g., `domain-1`,
`domain-2`).
in: query
name: domain
required: true
schema:
example: example.com
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
failed_domains:
additionalProperties:
description: 'The reason the domain failed to enable mail SNI.
**Note:**
The domain name is the return key.'
type: string
description: 'An object containing the domains that failed to enable mail SNI.
**Note:**
This object only includes domains that you do not own.'
type: object
updated_domains:
description: 'An object containing the domains with updated mail SNI status.
**Note:**
This object is always empty. Mail SNI is always enabled, and this function makes no changes.'
example: {}
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: enable_mail_sni
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
warnings:
description: Warnings generated while running the function.
items:
example: Mail SNI is always enabled now.
type: string
type: array
type: object
description: HTTP Request was successful.
summary: Enable SNI mail services for domains
tags:
- Mail
- Mail Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_mail_sni \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_mail_sni?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/enable_market_provider:
get:
description: This function enables a cPanel Market provider.
operationId: Market-enable_market_provider
parameters:
- description: The cPanel Market provider's name.
in: query
name: name
required: true
schema:
example: cPStore
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: enable_market_provider
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable Market provider
tags:
- Market
- Provider Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_market_provider \\\n name='cPStore'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_market_provider?api.version=1&name=cPStore
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/enable_monitor_all_enabled_services:
get:
description: This function enables monitoring for all enabled services.
operationId: Services-enable_monitor_all_enabled_services
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
services:
description: An array of objects that contains information about a service and its monitoring status.
items:
properties:
monitored:
description: 'Whether the system monitors the service.
- `1` - Monitored.
- `0` - Not monitored.'
enum:
- 0
- 1
example: 1
type: integer
service:
description: The service's name. A valid service name.
example: cphulkd
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: enable_monitor_all_enabled_services
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- `1` - Success
- `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable monitoring for all services
tags:
- Server Administration
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enable_monitor_all_enabled_services\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enable_monitor_all_enabled_services?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: 11.52.0.8
/enqueue_deferred_ssl_installations:
get:
description: 'This function adds SSL certificates to the installation queue. This allows you to
defer and batch SSL certificate installation.
**Important:**
You **must** enter the same quantity of `username`, `cab`, `crt`, `key`, and `vhost_name`
parameters. For example, to add three certificates to the installation queue, enter the
`username` parameter three times, then enter three `cab`, `crt`, `key`, and `vhost_name`
parameters.'
operationId: SSL-enqueue_deferred_ssl_installations
parameters:
- description: 'The Certificate Authority (CA) bundle''s contents.
**Note:**
* We recommend that you enter an empty string. An empty string tells the server to
download the CA bundle automatically.
* To add multiple certificates to the installation queue, duplicate or increment the
parameter name. For example, `cab-1`, `cab-2`, and `cab-3`.'
examples:
multiple:
summary: Enqueue multiple CA bundles.
value: cab-1=-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%0AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%0AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ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FlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ7V7e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----
cab-3=-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%0AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%0AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k+625h8cXyv%0ARLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz+iCWaEVh43KRuH6X4M%0AypqfpX/1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt/5%0A1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%0AdcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%0AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----
multiple-alternative:
summary: Enqueue multiple CA bundles.
value: cab=-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjI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wIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%0AdcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%0AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ7V7e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----
cab=-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%0AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%0AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k+625h8cXyv%0ARLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz+iCWaEVh43KRuH6X4M%0AypqfpX/1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt/5%0A1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%0AdcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%0AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----
single:
summary: Enqueue a single CA bundle.
value: '-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%0AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%0AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k+625h8cXyv%0ARLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz+iCWaEVh43KRuH6X4M%0AypqfpX/1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt/5%0A1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%0AdcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%0AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----'
in: query
name: cab
required: true
schema:
type: string
- description: "The certificate's contents.\n\n**Note:**\n\n To add multiple certificates to the installation queue,\
\ duplicate or increment the\n parameter name. For example, `crt-1`, `crt-2`, and `crt-3`."
examples:
multiple:
summary: Enqueue the contents of multiple certificates.
value: crt-1=-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjAWMRQw%0AEgYDVQQDDAtkb21haW4udGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBALer6vzwF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phbY%2F0rQp1YPsVN9tBgiag754HPo%0AbNDhWOZSZDKnh82DikTD6iciTxeblrvcbFC4Z76JH31dvqmNMEAgZvPCpq86Ued5%0A52gKM0u2%2BrK%2FzIYjh%2FhooqN%2BTY%2BJQ667JzLzPNenzAYFsoIQgVj6%2FZoFqJA4nbxC%0Azv%2Fspqc0OQ2W9m5egRPDhngKt%2Bi9804N7FeilBL%2FcpEgUHhgzMBi1T9n%2BYBrc6bO%0AjNjvnEQRbqZY%0A-----END%20CERTIFICATE-----
multiple-alternative:
summary: Enqueue the contents of multiple certificates.
value: crt=-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjAWMRQw%0AEgYDVQQDDAtkb21haW4udGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBALer6vzwFt%2BO6ooHcXpq%2Bi%2FOVVQEY3oWxrqH6mB%2FPssVSxwcf6bLjoO4so%2Fn%0Adrymhb9mqfkOqYVHwnQ%2Fh2uM%2BIw1NKKDfwOljWcgCS24NykbfQUlW%2FSNDTovdDGl%0AT1Aner090Qse%2B19ta8KS%2F3Akz37bkgqMkPO%2FiEOHlF%2FLbLvjfighkoGco51wc6d7%0AHCQwPWR%2BUenbQWzUwR4%2F4Pqw%2FYrxDAv8O%2FEnNfOGwnCnlnFq4a390VGriqMAngzI%0AlRMVDu4qJGW3dFNStVUm71%2B16ba%2FeIVBQGN2rbgie6Rb6VuHdsqSreea0tSLRxdd%0AFd7A0QMQRvtnqoUv6RZBhefr2t0CAwEAAaOBiTCBhjAdBgNVHQ4EFgQUeitnD4U4%0AMXtmLX53dTAZPENjovwwHwYDVR0jBBgwFoAUeitnD4U4MXtmLX53dTAZPENjovww%0ACQYDVR0TBAIwADA5BgNVHREEMjAwggtkb21haW4udG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iEOHlF%2FLbLvjfighkoGco51wc6d7%0AHCQwPWR%2BUenbQWzUwR4%2F4Pqw%2FYrxDAv8O%2FEnNfOGwnCnlnFq4a390VGriqMAngzI%0AlRMVDu4qJGW3dFNStVUm71%2B16ba%2FeIVBQGN2rbgie6Rb6VuHdsqSreea0tSLRxdd%0AFd7A0QMQRvtnqoUv6RZBhefr2t0CAwEAAaOBiTCBhjAdBgNVHQ4EFgQUeitnD4U4%0AMXtmLX53dTAZPENjovwwHwYDVR0jBBgwFoAUeitnD4U4MXtmLX53dTAZPENjovww%0ACQYDVR0TBAIwADA5BgNVHREEMjAwggtkb21haW4udGVzdIIQbWFpbC5kb21haW4u%0AdGVzdIIPd3d3LmRvbWFpbi50ZXN0MA0GCSqGSIb3DQEBCwUAA4IBAQAeD4Fc%2FBwM%0AfJEvlPO30%2FOp2JJxG92tbgsoY9CKTYoZy0IMHhwOrt%2FB36joYDrOhtiO6XsRw4Zm%0AAPT8ey9p61kUc6XWs5oU9aifKeAKzWCZV9wQphbY%2F0rQp1YPsVN9tBgiag754HPo%0AbNDhWOZSZDKnh82DikTD6iciTxeblrvcbFC4Z76JH31dvqmNMEAgZvPCpq86Ued5%0A52gKM0u2%2BrK%2FzIYjh%2FhooqN%2BTY%2BJQ667JzLzPNenzAYFsoIQgVj6%2FZoFqJA4nbxC%0Azv%2Fspqc0OQ2W9m5egRPDhngKt%2Bi9804N7FeilBL%2FcpEgUHhgzMBi1T9n%2BYBrc6bO%0AjNjvnEQRbqZY%0A-----END%20CERTIFICATE-----
single:
summary: Enqueue a single certificate's contents.
value: '-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjAWMRQw%0AEgYDVQQDDAtkb21haW4udGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBALer6vzwFt%2BO6ooHcXpq%2Bi%2FOVVQEY3oWxrqH6mB%2FPssVSxwcf6bLjoO4so%2Fn%0Adrymhb9mqfkOqYVHwnQ%2Fh2uM%2BIw1NKKDfwOljWcgCS24NykbfQUlW%2FSNDTovdDGl%0AT1Aner090Qse%2B19ta8KS%2F3Akz37bkgqMkPO%2FiEOHlF%2FLbLvjfighkoGco51wc6d7%0AHCQwPWR%2BUenbQWzUwR4%2F4Pqw%2FYrxDAv8O%2FEnNfOGwnCnlnFq4a390VGriqMAngzI%0AlRMVDu4qJGW3dFNStVUm71%2B16ba%2FeIVBQGN2rbgie6Rb6VuHdsqSreea0tSLRxdd%0AFd7A0QMQRvtnqoUv6RZBhefr2t0CAwEAAaOBiTCBhjAdBgNVHQ4EFgQUeitnD4U4%0AMXtmLX53dTAZPENjovwwHwYDVR0jBBgwFoAUeitnD4U4MXtmLX53dTAZPENjovww%0ACQYDVR0TBAIwADA5BgNVHREEMjAwggtkb21haW4udGVzdIIQbWFpbC5kb21haW4u%0AdGVzdIIPd3d3LmRvbWFpbi50ZXN0MA0GCSqGSIb3DQEBCwUAA4IBAQAeD4Fc%2FBwM%0AfJEvlPO30%2FOp2JJxG92tbgsoY9CKTYoZy0IMHhwOrt%2FB36joYDrOhtiO6XsRw4Zm%0AAPT8ey9p61kUc6XWs5oU9aifKeAKzWCZV9wQphbY%2F0rQp1YPsVN9tBgiag754HPo%0AbNDhWOZSZDKnh82DikTD6iciTxeblrvcbFC4Z76JH31dvqmNMEAgZvPCpq86Ued5%0A52gKM0u2%2BrK%2FzIYjh%2FhooqN%2BTY%2BJQ667JzLzPNenzAYFsoIQgVj6%2FZoFqJA4nbxC%0Azv%2Fspqc0OQ2W9m5egRPDhngKt%2Bi9804N7FeilBL%2FcpEgUHhgzMBi1T9n%2BYBrc6bO%0AjNjvnEQRbqZY%0A-----END%20CERTIFICATE-----'
in: query
name: crt
required: true
schema:
type: string
- description: 'The private key''s text.
**Note:**
To add multiple certificates to the installation queue, duplicate or increment the
parameter name. For example, `key-1`, `key-2`, and `key-2`.'
examples:
multiple:
summary: Enqueue the private key text of multiple certificates.
value: key-1=-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEowIBAAKCAQEAt6vq%2FPAW347qigdxemr6L85VVARjehbGuofqYH8%2ByxVLHBx%2F%0ApsuOg7iyj%2Bd2vKaFv2ap%2BQ6phUfCdD%2BHa4z4jDU0ooN%2FA6WNZyAJLbg3KRt9BSVb%0A9I0NOi90MaVPUCd6vT3RCx77X21rwpL%2FcCTPftuSCoyQ87%2BIQ4eUX8tsu%2BN%2BKCGS%0AgZyjnXBzp3scJDA9ZH5R6dtBbNTBHj%2Fg%2BrD9ivEMC%2Fw78Sc184bCcKeWcWrhrf3R%0AUauKowCeDMiVExUO7iokZbd0U1K1VSbvX7Xptr94hUFAY3atuCJ7pFvpW4d2ypKt%0A55rS1ItHF10V3sDRAxBG%2B2eqhS%2FpFkGF5%2Bva3QIDAQABAoIBAAONBE79iUOrLKec%0AezolpU6VS5sDNrUeiZsDk6ln7Fvavof9mQ4tc0TipjkX%2FXiqM32%2By1xwRyC3gW%2Fj%0A5odSw19ai%2Fj0V9lHMxOiT%2BsdW5uk12bpEP0KWQ4d6r4m9wCSstHDxy3S3IM8x0%2BM%0ArfmKDKTkM8%2BWZhsAQe8kSN8NPL3pIJnG%2Ftuc8lwFoZOEot6%2BAeGYdxxEdFbvVyEm%0Aa8%2FAhOQ5Z07T36bxuPtyRjwdnFH7hnmzpcWF5Iz8Jp8SrQ2XX2rKSQpa1Ic%2B6TMA%0AF7kJsOFiw%2B8aX6zTTVLsvQTHWEsnNWHKtbuNBoQcq2HyifrUxr550kZVMnyNC3ic%0A6EH%2FCxUCgYEA5qSo6zf6yJ5tdwm%2FNnrKwvFksapd%2Bi9%2BnAqQHHTFPtlzKHkZ7d5x%0AdklyzAMaoHVoeggtQynUcxcYKjy3i9Nj29P8wN6DhcxJY4Ohdk%2FsAILTcu8QyPzN%0A%2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l9PdL9SMPXAUABTa0RDC4hxhH2HtnkEw9aX%2BJq5sjiQ7AoNs7mpvYxqs%0A0HH7AoGBALhKD8FxNGYLK8oCO27NBdL%2F%2BypxgH5EnwVr%2B3fF49tfC5xpV9Odfu1Z%0ANGNFbjK47PVCLaGKzQUvU7jSAbKt3pDR0IcfiF%2BM6rc86CmZf%2BvAPTN3%2BJwG%2BcIE%0AcKuYkroIzFWDu9NYiioUI7%2Fa9XdmTvfrT3RSHmup0FoRmlRHD%2FM8%0A-----END%20RSA%20PRIVATE%20KEY-----
multiple-alternative:
summary: Enqueue the private key text of multiple certificates.
value: key=-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEowIBAAKCAQEAt6vq%2FPAW347qigdxemr6L85VVARjehbGuofqYH8%2ByxVLHBx%2F%0ApsuOg7iyj%2Bd2vKaFv2ap%2BQ6phUfCdD%2BHa4z4jDU0ooN%2FA6WNZyAJLbg3KRt9BSVb%0A9I0NOi90MaVPUCd6vT3RCx77X21rwpL%2FcCTPftuSCoyQ87%2BIQ4eUX8tsu%2BN%2BKCGS%0AgZyjnXBzp3scJDA9ZH5R6dtBbNTBHj%2Fg%2BrD9ivEMC%2Fw78Sc184bCcKeWcWrhrf3R%0AUauKowCeDMiVExUO7iokZbd0U1K1VSbvX7Xptr94hUFAY3atuCJ7pFvpW4d2ypKt%0A55rS1ItHF10V3sDRAxBG%2B2eqhS%2FpFkGF5%2Bva3QIDAQABAoIBAAONBE79iUOrLKec%0AezolpU6VS5sDNrUeiZsDk6ln7Fvavof9mQ4tc0TipjkX%2FXiqM32%2By1xwRyC3gW%2Fj%0A5odSw19ai%2Fj0V9lHMxOiT%2BsdW5uk12bpEP0KWQ4d6r4m9wCSstHDxy3S3IM8x0%2BM%0ArfmKDKTkM8%2BWZhsAQe8kSN8NPL3pIJnG%2Ftuc8lwFoZOEot6%2BAeGYdxxEdFbvVyEm%0Aa8%2FAhOQ5Z07T36bxuPtyRjwdnFH7hnmzpcWF5Iz8Jp8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TjRxtTubONaih0KMKx4m7w5IINYo7WcCR%0AnFqnzyuSHfMUy59YMXZjcUoc0bkCXIGUA9kpvXdhCFafC0bLlVFCKBXC2xd8VPK2%0AlHq2fAHBLWMeDeBDreiKhwKBgHrcweP8uOioK8rI9kQ4xD649MD4B1PDYjfqRObV%0AGecXN27Ak3bNJTjlzTBPfLNzZ0tRg2649JP%2F%2BUI8P4rdVXrIGHANTAjZl2bt4S51%0Aorrjjh9pl9PdL9SMPXAUABTa0RDC4hxhH2HtnkEw9aX%2BJq5sjiQ7AoNs7mpvYxqs%0A0HH7AoGBALhKD8FxNGYLK8oCO27NBdL%2F%2BypxgH5EnwVr%2B3fF49tfC5xpV9Odfu1Z%0ANGNFbjK47PVCLaGKzQUvU7jSAbKt3pDR0IcfiF%2BM6rc86CmZf%2BvAPTN3%2BJwG%2BcIE%0AcKuYkroIzFWDu9NYiioUI7%2Fa9XdmTvfrT3RSHmup0FoRmlRHD%2FM8%0A-----END%20RSA%20PRIVATE%20KEY-----
single:
summary: Enqueue a single certificate's private key text.
value: '-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEowIBAAKCAQEAt6vq%2FPAW347qigdxemr6L85VVARjehbGuofqYH8%2ByxVLHBx%2F%0ApsuOg7iyj%2Bd2vKaFv2ap%2BQ6phUfCdD%2BHa4z4jDU0ooN%2FA6WNZyAJLbg3KRt9BSVb%0A9I0NOi90MaVPUCd6vT3RCx77X21rwpL%2FcCTPftuSCoyQ87%2BIQ4eUX8tsu%2BN%2BKCGS%0AgZyjnXBzp3scJDA9ZH5R6dtBbNTBHj%2Fg%2BrD9ivEMC%2Fw78Sc184bCcKeWcWrhrf3R%0AUauKowCeDMiVExUO7iokZbd0U1K1VSbvX7Xptr94hUFAY3atuCJ7pFvpW4d2ypKt%0A55rS1ItHF10V3sDRAxBG%2B2eqhS%2FpFkGF5%2Bva3QIDAQABAoIBAAONBE79iUOrLKec%0AezolpU6VS5sDNrUeiZsDk6ln7Fvavof9mQ4tc0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DC4hxhH2HtnkEw9aX%2BJq5sjiQ7AoNs7mpvYxqs%0A0HH7AoGBALhKD8FxNGYLK8oCO27NBdL%2F%2BypxgH5EnwVr%2B3fF49tfC5xpV9Odfu1Z%0ANGNFbjK47PVCLaGKzQUvU7jSAbKt3pDR0IcfiF%2BM6rc86CmZf%2BvAPTN3%2BJwG%2BcIE%0AcKuYkroIzFWDu9NYiioUI7%2Fa9XdmTvfrT3RSHmup0FoRmlRHD%2FM8%0A-----END%20RSA%20PRIVATE%20KEY-----'
in: query
name: key
required: true
schema:
type: string
- description: 'The cPanel account username for which to enqueue the SSL certificate installations.
**Note:**
To add multiple certificates to the installation queue, duplicate or increment the
parameter name. For example, `username-1`, `username-2`, and `username-3`.'
examples:
multiple:
summary: Enqueue multiple SSL certificate installations.
value: username-1=username1 username-2=username2 username-3=username3
multiple-alternative:
summary: Enqueue multiple SSL certificate installations.
value: username=username1 username=username2 username=username3
single:
summary: Enqueue a single SSL certificate installation.
value: username
in: query
name: username
required: true
schema:
type: string
- description: "The name of the web virtual host (vhost) for which to install the certificate.\n\n**Note:**\n\n To add\
\ multiple certificates to the installation queue, duplicate or increment the\n parameter name. For example, `vhost_name-1`, `vhost_name-2`,\
\ and `vhost_name-3`."
examples:
multiple:
summary: Install the certificate for multiple vhosts.
value: vhost_name-1=host1.example.com vhost_name-2=host2.example.com vhost_name-3=host3.example.com
multiple-alternative:
summary: Install the certificate for multiple vhosts.
value: vhost_name=host1.example.com vhost_name=host2.example.com vhost_name=host3.example.com
single:
summary: Install the certificate for a single vhost.
value: host.example.com
in: query
name: vhost_name
required: true
schema:
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
type: object
metadata:
properties:
command:
description: The method name called.
example: enqueue_deferred_ssl_installations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add SSL certificate to installation queue
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n enqueue_deferred_ssl_installations \\\n username='username' \\\n cab='-----BEGIN%20CERTIFICATE-----%0AMIIB+jCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%0AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%0Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%0AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%0AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k+625h8cXyv%0ARLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz+iCWaEVh43KRuH6X4M%0AypqfpX/1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt/5%0A1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%0AdcZfHeFhVYAA1IFLezEPI2PnPfMD+fQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%0AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4/5ODFlitppK+ULdjG+BqXH/9Apy%0AbW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY%0A-----END%20CERTIFICATE-----'\
\ \\\n crt='-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjA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YEAy91D%0AlmTy4ka991Ungy%2BVcNTSw9z50l%2Fzu4GxmAlj1fsuX%2F27nbfpsOFjbvlm4xLfW3qM%0A%2BWkrvKXUuxeIbGcBnVlHFWgc6%2BKt5vNoOzUVsm5i90R%2Fg3vhB5cdvuVoTKf2EU4n%0ANVTSaM%2F6zpzBEHSKtTsbx0FiPjS04bk%2Bsi0REisCgYAwy3s1MEWtNd9AxN4gP4Aw%0AF%2FPOppV1PaESkCWG76lfL4%2FuaxhyO5JTjRxtTubONaih0KMKx4m7w5IINYo7WcCR%0AnFqnzyuSHfMUy59YMXZjcUoc0bkCXIGUA9kpvXdhCFafC0bLlVFCKBXC2xd8VPK2%0AlHq2fAHBLWMeDeBDreiKhwKBgHrcweP8uOioK8rI9kQ4xD649MD4B1PDYjfqRObV%0AGecXN27Ak3bNJTjlzTBPfLNzZ0tRg2649JP%2F%2BUI8P4rdVXrIGHANTAjZl2bt4S51%0Aorrjjh9pl9PdL9SMPXAUABTa0RDC4hxhH2HtnkEw9aX%2BJq5sjiQ7AoNs7mpvYxqs%0A0HH7AoGBALhKD8FxNGYLK8oCO27NBdL%2F%2BypxgH5EnwVr%2B3fF49tfC5xpV9Odfu1Z%0ANGNFbjK47PVCLaGKzQUvU7jSAbKt3pDR0IcfiF%2BM6rc86CmZf%2BvAPTN3%2BJwG%2BcIE%0AcKuYkroIzFWDu9NYiioUI7%2Fa9XdmTvfrT3RSHmup0FoRmlRHD%2FM8%0A-----END%20RSA%20PRIVATE%20KEY-----'\
\ \\\n vhost_name='host.example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/enqueue_deferred_ssl_installations?api.version=1&username=username&cab=-----BEGIN%2520CERTIFICATE-----%250AMIIB%2bjCCAWMCAgGjMA0GCSqGSIb3DQEBBAUAMEUxCzAJBgNVBAYTAlVTMRgwFgYD%250AVQQKEw9HVEUgQ29ycG9yYXRpb24xHDAaBgNVBAMTE0dURSBDeWJlclRydXN0IFJv%250Ab3QwHhcNOTYwMjIzMjMwMTAwWhcNMDYwMjIzMjM1OTAwWjBFMQswCQYDVQQGEwJV%250AUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMRwwGgYDVQQDExNHVEUgQ3liZXJU%250AcnVzdCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC45k%2b625h8cXyv%250ARLfTD0bZZOWTwUKOx7pJjTUteueLveUFMVnGsS8KDPufpz%2biCWaEVh43KRuH6X4M%250AypqfpX%2f1FZSj1aJGgthoTNE3FQZor734sLPwKfWVWgkWYXcKIiXUT0Wqx73llt%2f5%250A1KiOQswkwB6RJ0q1bQaAYznEol44AwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBABKz%250AdcZfHeFhVYAA1IFLezEPI2PnPfMD%2bfQ2qLvZ46WXTeorKeDWanOB5sCJo9Px4KWl%250AIjeaY8JIILTbcuPI9tl8vrGvU9oUtCG41tWW4%2f5ODFlitppK%2bULdjG%2bBqXH%2f9Apy%250AbW1EDp3zdHSo1TRJ6V6e6bR64eVaH4QwnNOfpSXY%250A-----END%2520CERTIFICATE-----&crt=-----BEGIN%2520CERTIFICATE-----%250AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%250AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjAWMRQw%250AEgYDVQQDDAtkb21haW4udGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%250AggEBALer6vzwFt%252BO6ooHcXpq%252Bi%252FOVVQEY3oWxrqH6mB%252FPssVSxwcf6bLjoO4so%252Fn%250Adrymhb9mqfkOqYVHwnQ%252Fh2uM%252BIw1NKKDfwOljWcgCS24NykbfQUlW%252FSNDTovdDGl%250AT1Aner090Qse%252B19ta8KS%252F3Akz37bkgqMkPO%252FiEOHlF%252FLbLvjfighkoGco51wc6d7%250AHCQwPWR%252BUenbQWzUwR4%252F4Pqw%252FYrxDAv8O%252FEnNfOGwnCnlnFq4a390VGriqMAngzI%250AlRMVDu4qJGW3dFNStVUm71%252B16ba%252FeIVBQGN2rbgie6Rb6VuHdsqSreea0tSLRxdd%250AFd7A0QMQRvtnqoUv6RZBhefr2t0CAwEAAaOBiTCBhjAdBgNVHQ4EFgQUeitnD4U4%250AMXtmLX53dTAZPENjovwwHwYDVR0jBBgwFoAUeitnD4U4MXtmLX53dTAZPENjovww%250ACQYDVR0TBAIwADA5BgNVHREEMjAwggtkb21haW4udGVzdIIQbWFpbC5kb21haW4u%250AdGVzdIIPd3d3LmRvbWFpbi50ZXN0MA0GCSqGSIb3DQEBCwUAA4IBAQAeD4Fc%252FBwM%250AfJEvlPO30%252FOp2JJxG92tbgsoY9CKTYoZy0IMHhwOrt%252FB36joYDrOhtiO6XsRw4Zm%250AAPT8ey9p61kUc6XWs5oU9aifKeAKzWCZV9wQphbY%252F0rQp1YPsVN9tBgiag754HPo%250AbNDhWOZSZDKnh82DikTD6iciTxeblrvcbFC4Z76JH31dvqmNMEAgZvPCpq86Ued5%250A52gKM0u2%252BrK%252FzIYjh%252FhooqN%252BTY%252BJQ667JzLzPNenzAYFsoIQgVj6%252FZoFqJA4nbxC%250Azv%252Fspqc0OQ2W9m5egRPDhngKt%252Bi9804N7FeilBL%252FcpEgUHhgzMBi1T9n%252BYBrc6bO%250AjNjvnEQRbqZY%250A-----END%2520CERTIFICATE-----&key=-----BEGIN%2520RSA%2520PRIVATE%2520KEY-----%250AMIIEowIBAAKCAQEAt6vq%252FPAW347qigdxemr6L85VVARjehbGuofqYH8%252ByxVLHBx%252F%250ApsuOg7iyj%252Bd2vKaFv2ap%252BQ6phUfCdD%252BHa4z4jDU0ooN%252FA6WNZyAJLbg3KRt9BSVb%250A9I0NOi90MaVPUCd6vT3RCx77X21rwpL%252FcCTPftuSCoyQ87%252BIQ4eUX8tsu%252BN%252BKCGS%250AgZyjnXBzp3scJDA9ZH5R6dtBbNTBHj%252Fg%252BrD9ivEMC%252Fw78Sc184bCcKeWcWrhrf3R%250AUauKowCeDMiVExUO7iokZbd0U1K1VSbvX7Xptr94hUFAY3atuCJ7pFvpW4d2ypKt%250A55rS1ItHF10V3sDRAxBG%252B2eqhS%252FpFkGF5%252Bva3QIDAQABAoIBAAONBE79iUOrLKec%250AezolpU6VS5sDNrUeiZsDk6ln7Fvavof9mQ4tc0TipjkX%252FXiqM32%252By1xwRyC3gW%252Fj%250A5odSw19ai%252Fj0V9lHMxOiT%252BsdW5uk12bpEP0KWQ4d6r4m9wCSstHDxy3S3IM8x0%252BM%250ArfmKDKTkM8%252BWZhsAQe8kSN8NPL3pIJnG%252Ftuc8lwFoZOEot6%252BAeGYdxxEdFbvVyEm%250Aa8%252FAhOQ5Z07T36bxuPtyRjwdnFH7hnmzpcWF5Iz8Jp8SrQ2XX2rKSQpa1Ic%252B6TMA%250AF7kJsOFiw%252B8aX6zTTVLsvQTHWEsnNWHKtbuNBoQcq2HyifrUxr550kZVMnyNC3ic%250A6EH%252FCxUCgYEA5qSo6zf6yJ5tdwm%252FNnrKwvFksapd%252Bi9%252BnAqQHHTFPtlzKHkZ7d5x%250AdklyzAMaoHVoeggtQynUcxcYKjy3i9Nj29P8wN6DhcxJY4Ohdk%252FsAILTcu8QyPzN%250A%252FcYVHWykmFuS55uEa2Mlv6j%252FTBraRJUYfiEl2ZvR77L5gke4GAsCKxcCgYEAy91D%250AlmTy4ka991Ungy%252BVcNTSw9z50l%252Fzu4GxmAlj1fsuX%252F27nbfpsOFjbvlm4xLfW3qM%250A%252BWkrvKXUuxeIbGcBnVlHFWgc6%252BKt5vNoOzUVsm5i90R%252Fg3vhB5cdvuVoTKf2EU4n%250ANVTSaM%252F6zpzBEHSKtTsbx0FiPjS04bk%252Bsi0REisCgYAwy3s1MEWtNd9AxN4gP4Aw%250AF%252FPOppV1PaESkCWG76lfL4%252FuaxhyO5JTjRxtTubONaih0KMKx4m7w5IINYo7WcCR%250AnFqnzyuSHfMUy59YMXZjcUoc0bkCXIGUA9kpvXdhCFafC0bLlVFCKBXC2xd8VPK2%250AlHq2fAHBLWMeDeBDreiKhwKBgHrcweP8uOioK8rI9kQ4xD649MD4B1PDYjfqRObV%250AGecXN27Ak3bNJTjlzTBPfLNzZ0tRg2649JP%252F%252BUI8P4rdVXrIGHANTAjZl2bt4S51%250Aorrjjh9pl9PdL9SMPXAUABTa0RDC4hxhH2HtnkEw9aX%252BJq5sjiQ7AoNs7mpvYxqs%250A0HH7AoGBALhKD8FxNGYLK8oCO27NBdL%252F%252BypxgH5EnwVr%252B3fF49tfC5xpV9Odfu1Z%250ANGNFbjK47PVCLaGKzQUvU7jSAbKt3pDR0IcfiF%252BM6rc86CmZf%252BvAPTN3%252BJwG%252BcIE%250AcKuYkroIzFWDu9NYiioUI7%252Fa9XdmTvfrT3RSHmup0FoRmlRHD%252FM8%250A-----END%2520RSA%2520PRIVATE%2520KEY-----&vhost_name=host.example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/enqueue_transfer_item:
get:
description: 'This function adds a transfer session to a queue. For more information about how this function works with
other
functions in the transfer and restore process, read our
[Guide to Transfer and Restore API Functions](https://go.cpanel.net/transferrestoreAPIguide) documentation.
**Important:**
The `module` parameter determines which additional parameters to use with the function.'
operationId: Transfers-enqueue_transfer_item
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/schemas-Transfers_EnqueueTransferItem_Type'
description: An enqueue transfer item.
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: enqueue_transfer_item
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add module to transfer session
tags:
- Transfers
- cPanel Account Transfer
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --input=json --output=jsonpretty \\\n enqueue_transfer_item\n"
- label: HTTP Request (Wire Format)
lang: HTTP
source: 'GET /cpsess##########/json-api/enqueue_transfer_item HTTP/1.1
Host: example.com:2083
Cookie: ###################################
Content-Type: application/json
Content-Length: 0
'
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/ensure_dkim_keys_exist:
get:
description: 'This function confirms the validity of a DomainKeys Identified Mail (DKIM) key for one or more domains.
**Note:**
* If an existing DKIM key does **not** meet the server''s security requirements, the system replaces the existing
DKIM key.
* If no DKIM key exists, the system creates a new key for the domain.'
operationId: EmailAuth-ensure_dkim_keys_exist
parameters:
- description: 'The domain for which to confirm a valid DKIM key exists.
**Note:**
To check the DKIM key validity for multiple domain, duplicate the parameter name. For example, use the `domain-1=example.com`,
`domain-2=example2.com`, and `domain-3=example3.com` parameters.'
examples:
multiple:
summary: Check the DKIM key validity for multiple domains.
value: domain=example1.com&domain=example2.com&domain=example3.com
single:
summary: Check the DKIM key validity for a single domain.
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects containing information about the domain's DKIM key validity.
items:
properties:
domain:
description: The domain for which the system confirmed that a valid DKIM key exists.
example: example.com
format: domain
type: string
msg:
description: The domain's DKIM key status message.
example: created new key
type: string
status:
description: 'Whether the system verified that the domain''s DKIM key exists.
* `1` — The system verified the existence of the domain''s DKIM key.
* `0` — The system did **not** verify the existence of the domain''s DKIM key.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: ensure_dkim_keys_exist
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed: Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate domain's DKIM keys
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n ensure_dkim_keys_exist \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/ensure_dkim_keys_exist?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/eol_php_sites:
get:
description: 'This function counts the number of domains across all cPanel users that are using
end-of-life (EOL) PHP versions. It determines EOL status by comparing each domain''s
PHP version against the `oldest_supported_version` value from the
`/etc/cpanel/ea4/ea4-metainfo.json` file.'
operationId: EolPHPSites-eol_php_sites
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
eol_php_sites:
description: The count of domains using PHP versions older than the oldest supported version.
example: 42
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: eol_php_sites
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Count domains using EOL PHP versions
tags:
- EasyApache
- EasyApache Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n eol_php_sites\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/eol_php_sites?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '136'
/execute_remote_whmapi1_with_password:
get:
description: This function executes WHM API 1 functions on a remote server.
operationId: Cpanel-execute_remote_whmapi1_with_password
parameters:
- description: The name of the function to call on the remote server.
in: query
name: function
required: true
schema:
example: passwd
type: string
- description: The remote server's hostname or IP address.
in: query
name: host
required: true
schema:
example: host.example.com
type: string
- description: "The name of the parameter for the function.\n\n**Note:**\n\n You must enter the same number of parameter_name\
\ and parameter_value parameters."
in: query
name: parameter_name
required: true
schema:
example: user
type: string
- description: "The value of the parameter for the function.\n\n**Note:**\n\n You must enter the same number of parameter_name\
\ and parameter_value parameters."
in: query
name: parameter_value
required: true
schema:
example: username2
type: string
- description: The password to log in to the remote server.
in: query
name: password
required: true
schema:
example: luggage12345
type: string
- description: The username to log in to the remote server.
in: query
name: username
required: true
schema:
example: username
type: string
- description: "Whether to use TLS verification. This parameter defaults to On.\n\n**Important:**\n\n We strongly recommend\
\ that you use TLS verification. Only connect to a server if you can verify its identity."
in: query
name: tls_verification
required: false
schema:
example: 'on'
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
app:
items:
type: string
type: array
key-name*:
description: "The function's output.\n\n**Note:**\n\n The system uses the remote function's return\
\ name. A valid possible values."
example: system
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: execute_remote_whmapi1_with_password
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Run remote WHM API 1 function
tags:
- API Execution
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n execute_remote_whmapi1_with_password \\\n host='host.example.com' \\\n\
\ username='username' \\\n password='luggage12345' \\\n function='passwd' \\\n parameter_name='user' \\\n parameter_value='username2'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/execute_remote_whmapi1_with_password?api.version=1&host=host.example.com&username=username&password=luggage12345&function=passwd¶meter_name=user¶meter_value=username2
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '90'
/exim_configuration_check:
get:
description: This function scans the Exim configuration file for errors, and if it finds errors attempts to repair them.
operationId: Exim-exim_configuration_check
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
message:
description: "The reason why the configuration check failed.\n\n**Note:**\n\n The function **only**\
\ returns this parameter if the configuration file contains errors."
example: "cPanel was unable to automatically merge your Exim configuration with the new settings that\
\ shipped\nwith the build you have installed (11.38.0 (build 9999)) because you have a custom or\
\ broken configuration which\ncannot be automatically configured.\n Since this configuration\
\ update is not critical, we left your previous configuration intact until\nthe new configuration\
\ can be properly installed. In order to complete this configuration update, you will \nneed to\
\ manually merge your configuration with the new configuration settings.\n\n\nPlease follow the\
\ steps below to complete this update:\n\n\t1. Backup\
\ your existing configuration\n\t2. Notate any\
\ custom changes you have made in the ACL section in the 'Advanced Editor Tab'.\n\t3. Choose\
\ 'Reset cPanel & WHM Exim configuration files, one option at a time, until the installed Exim configuration\
\ is valid' under the 'Reset Tab'.\n\t4. Reinstall\
\ your customizations in the 'Advanced Editor Tab'.\n\n\nCurrent Config Version: 10.320000\n\
New Config Version: 10.330000"
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: exim_configuration_check
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Configuration Update Failed
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Repair Exim configuration file
tags:
- Mail
- Mail Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n exim_configuration_check\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/exim_configuration_check?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/export_zone_dnskey:
get:
description: This function exports a domain's DNSKEY record value.
operationId: DNS-export_zone_dnskey
parameters:
- description: The domain from which to fetch the DNSKEY record value.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: The DNSSEC record's ID.
in: query
name: key_id
required: true
schema:
example: 12345
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
dnskey:
description: The DNSKEY record value.
example: AwEAAch8SGW4vE6PjFWA9rbUm0AfTq+gJ0HC/nLu+2axdWHBIStt9lsOzKDorAr4vlmhlJzEzA62s96xp6mZ7XHUyWnkFwLs8obo6upL2in4h1ToOxzVl3lTs8O+kWtDq5/h1nwFlPDs9zpLJhlkTCtx2OTGbvimEYeqwPolUuSQR/Yb
type: string
key_id:
description: The security key's ID.
example: 12345
minimum: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: export_zone_dnskey
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Export domain's DNSKEY record value
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n export_zone_dnskey \\\n domain='example.com' \\\n key_id='12345'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/export_zone_dnskey?api.version=1&domain=example.com&key_id=12345
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/export_zone_files:
get:
description: 'This function returns one or more DNS zones, in
[RFC-1035](https://tools.ietf.org/html/rfc1035) format.
**Important:**
When you disable the [DNS role](https://go.cpanel.net/serverroles), the system **disables** this function.'
operationId: DNS-export_zone_files
parameters:
- description: The DNS zones to display.
in: query
name: zone
required: true
schema:
example:
- example.com
- example.net
items:
example: example.com
format: domain
type: string
type: array
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: The requested DNS zone texts.
example:
- text_b64: AAAABBCCDdshjke==
zone: example.com
- text_b64: BBBBCCDDDdshjke==
zone: example.net
items:
properties:
text_b64:
description: The DNS zone’s text representation.
format: base64
type: string
zone:
description: The DNS zone’s name.
format: domain
type: string
type: object
type: array
metadata:
properties:
command:
description: The method name called.
example: export_zone_files
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Export DNS zones in zone file format
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n export_zone_files \\\n zone='example.com' zone='example.net'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/export_zone_files?api.version=1&zone=example.com&zone=example.net
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.96'
/export_zone_key:
get:
description: 'This function exports a DNSSEC security key to a domain.
**Note:**
Only servers that run PowerDNS can use DNSSEC. If you call this function on a server
that doesn''t use PowerDNS, you will receive an error.'
operationId: DNS-export_zone_key
parameters:
- description: The domain to export the security key to.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: 'The security key''s ID.
**Note:**
You can locate the ID with the WHM AP1 `fetch_ds_records_for_domains` function.'
in: query
name: key_id
required: true
schema:
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
key_tag:
description: The security key's integer value.
example: 40481
type: integer
key_type:
description: 'The type of security key.
* `CSK` — Combined Signing Key.
* `KSK` — Key Signing Key.
* `ZSK` — Zone Signing Key.'
example: CSK
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: export_zone_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Export domain's DNSSEC key
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n export_zone_key \\\n domain='example.com' \\\n key_id='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/export_zone_key?api.version=1&domain=example.com&key_id=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/expunge_mailbox_messages:
get:
description: "This function removes mail messages from a cPanel account that you select with a query.\n\n**Important:**\n\
\n When you disable the [Receive Mail role](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles),\
\ the system **disables** this function."
operationId: Mailboxes-expunge_mailbox_messages
parameters:
- description: An email account that exists on the server.
in: query
name: account
required: true
schema:
example: user@example.com
format: email
type: string
- description: "A mailbox name on the account.\n\n**Note:**\n\n Because you cannot escape wildcard characters such\
\ as (`*`), we recommend that you use functions that use the `mailbox_guid` parameter instead. For example, the\
\ WHM API 1 `expunge_messages_for_mailbox_guid` function."
in: query
name: mailbox
required: true
schema:
example: INBOX
type: string
- description: A [Dovecot search query](http://wiki2.dovecot.org/Tools/Doveadm/SearchQuery) to select which messages
you wish to remove from the mailbox.
in: query
name: query
required: true
schema:
example: savedbefore 52w
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: expunge_mailbox_messages
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove email account messages by Dovecot query
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n expunge_mailbox_messages \\\n account='user@example.com' \\\n mailbox='INBOX'\
\ \\\n query='savedbefore 52w'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/expunge_mailbox_messages?api.version=1&account=user%40example.com&mailbox=INBOX&query=savedbefore%2052w
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/expunge_messages_for_mailbox_guid:
get:
description: "This function removes mail messages from a cPanel account.\n\n**Important:**\n\n When you disable the\
\ [Receive Mail role](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles),\
\ the system **disables** this function."
operationId: Mailboxes-expunge_messages_for_mailbox_guid
parameters:
- description: The email account's name.
in: query
name: account
required: true
schema:
example: user@example.com
type: string
- description: 'The mailbox''s globally unique identifier (GUID).
**Note:**
To find the mailbox GUID, use the WHM API 1 - `get_mailbox_status` function.'
in: query
name: mailbox_guid
required: true
schema:
example: 2550860f0c58d158c92a000044f0d230
type: string
- description: The Dovecot search query to select which messages you wish to remove from the mailbox. For more information,
read [Dovecot's Search Query](http://wiki2.dovecot.org/Tools/Doveadm/SearchQuery) documentation.
in: query
name: query
required: true
schema:
example: savedbefore 52w
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: expunge_messages_for_mailbox_guid
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove email account messages by mailbox GUID
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n expunge_messages_for_mailbox_guid \\\n account='user@example.com' \\\n\
\ mailbox_guid='2550860f0c58d158c92a000044f0d230' \\\n query='savedbefore 52w'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/expunge_messages_for_mailbox_guid?api.version=1&account=user%40example.com&mailbox_guid=2550860f0c58d158c92a000044f0d230&query=savedbefore%2052w
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/fetch_connected_application:
post:
description: 'Retrieve the connection information related to a application that has been granted
access to this server. This data may include any number of properties, but its
primary purpose is to associate API tokens and public/private key pairs and similar
resources with a specific connected application.'
operationId: ConnectedApplications-fetch_connected_application
parameters:
- description: The name of the connected application.
in: query
name: name
required: true
schema:
example: application-1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
data:
additionalProperties: {}
description: Data associated with the connected application. There are a few predefined elements,
but any additional data may be stored here as well.
properties:
jwt:
additionalProperties: {}
description: The contents of a JSON Web Token used during registration, or updates.
example:
callback_url: https://application-1.com/api/si/servers/registrations/callback,
challenge: ddd13a92-d55e-4818-a960-9776ede6cd74,
email: john.doe@email.example,
exp: 1401912171,
ips:
- 1.1.1.1
- 2.2.2.2
iss: https://application-1.com
iss_desc: Sample application
name: John Doe,
redirect_url: https://application-1/redirect,
scope:
- admin:users,
- admin:resellers
- admin:domains
state: xyz
type: object
private_key:
description: The name of the private key, if any, used by encryption, signing, or other security
schemes used when communicating with this connected application.
example: FEF6253E6A122532430D
type: string
privileges_granted:
description: The actual privileges granted by the user.
example:
- list-accts
- list-resellers
- create-user-session
- acct-summary
- connected-applications
type: array
items:
type: string
public_key:
description: The name of the public key, if any, sent to the connected application during registration.
example: AAF6253E6A1225324305623EE
type: string
token_name:
description: The name of the API token, if any, sent to the connected application to allow that
application to make API calls on this server.
example: Application 1 API Token
type: string
type: object
name:
description: The name of the connected application.
example: application-1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_connected_application
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Fetch application connection information
tags:
- Server Administration
- Connected Applications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_connected_application \\\n name='application-1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_connected_application?api.version=1&name=application-1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '98'
/fetch_dkim_private_keys:
get:
description: "This function returns a domain's installed DKIM private key in [Privacy-Enhanced Mail](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail)\
\ (PEM) format.\n\n**Warning:**\n\n We **strongly** recommend that you protect your private key. If others obtain\
\ your private DKIM key, they could sign emails and impersonate you as a sender."
operationId: EmailAuth-fetch_dkim_private_keys
parameters:
- description: "The queried domain.\n\n**Note:**\n\n To retrieve multiple domain DKIM keys, increment the parameter\
\ name. For example, use the `domain-1=example-1.com`, `domain-2=example-2.com`, and `domain-3=example-3.com` \
\ parameters."
examples:
multiple:
summary: Query multiple domains.
value: domain=example-1.com&domain=example-2.com&domain=example-3.com
single:
summary: Query a single domain.
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array containing information about the domain's DKIM private key.
items:
properties:
domain:
description: The queried domain.
example: example.com
type: string
pem:
description: The domain's DKIM private key, in PEM format.
example: REDACTED_PRIVATE_KEY_EXAMPLE
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_dkim_private_keys
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain's DKIM private key
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_dkim_private_keys \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_dkim_private_keys?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/fetch_ds_records_for_domains:
get:
description: 'This function fetches a domain''s Delegation of Signing (DS) record.
**Note:**
Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn''t use PowerDNS, you
will receive an error.'
operationId: DNS-fetch_ds_records_for_domains
parameters:
- description: 'The domain to fetch a DS record from.
**Note:**
To fetch records from multiple domains, duplicate or increment the parameter name. For example, to check three domains,
you could:
* Use the `domain` parameter multiple times.
* Use the `domain`, `domain-1`, and `domain-2` parameters.'
examples:
multiple:
summary: Multiple domains
value: domain=example.com&domain-1=example1.com&domain-2=example2.com
multiple-alternative:
summary: Multiple domains
value: domain=example.com&domain=example1.com&domain=example2.com
single:
summary: A single domain.
value: example.com
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domains:
description: An array of objects that contains information about each domain.
items:
properties:
domain:
description: The domain name.
example: example.com
format: domain
type: string
ds_records:
description: 'An object that contains domain''s DS records.
**Note:**
If the domain does **not** have a DS record, this function returns an empty object.'
example:
keys:
'40481':
active: 1
algo_desc: RSA/SHA-256
algo_num: 8
algo_tag: RSASHA256
bits: 2048
created: 1575395316
digests:
- algo_desc: SHA-1
algo_num: 1
digest: 2808a14b89118256119d93d24b9e6b673dca092b
- algo_desc: SHA-256
algo_num: 2
digest: 02a57812deb952438382ed8dd20f00d4af844a55b5324d28bb
- algo_desc: SHA-384
algo_num: 4
digest: 4569a6fcfe9e151ec6a163307e67eaa3a9547f16cd80751b0d46eb498bd96743bd4ff7c4f6fd5f76cc780aeb979cd08d
flags: 257
key_id: 1
key_tag: 40481
key_type: KSK
privatekey: 'Private-key-format: v1.2
Algorithm: 8 (RSASHA256)
Modulus: syUlztxieV1aOtuYAGGA4VBxgquwqPTWQXcDVY1VRFcPgFmLMWYr6dDnN4OUhu2yIulK3KMeZmAc/DmwM+yNdCdYc9y84gw5OyONKduuPGYXfwCiJfOJ+NpGaFomK6fVFN8BMi6LUBytdA4gotPw45Uz8FIbl1KsEOnV4/ZpjiM=
PublicExponent: AQAB
PrivateExponent: LxIfsQ7vQPxqbPSuJ8t21b0RVkhOjtZmRaVD1wLf2KkXhZ4BmOVDvJgLaObF6/4gxFOQPBEQN84hT5TI25vYPrAwRAlP/yGmQ4Z2aPIYeEawoqqNoYEa5Xjs1X90i6/+Y8mJSZpGvr4/Y4ElothZTUw+LCYb6o9ulg53yya8KUE=
Prime1: 4od92Rbx9fSXRIk6eSSdTYN/Do3zgDiCuxmuZaCrrEAlkiK11iz/s4aZGj9+Yk4NfusjXr3NqU1OMfBiIp67Sw==
Prime2: ynOJdz/E4/B6iBtuz/4y0kasljMtiJnaNIxPr4LG+hByx7WWCnaPm6p8g1pz3FC/w7HAdWq9xzR1VnbRPGcZiQ==
Exponent1: KUKmkIEWZ0c6ujgIl4IsyK6X2O3QGV2xqiSeWFJwknpInZqG5lDh7jAo+NfxzDQNTz3C/oGx0RGMmZoANfAViw==
Exponent2: ZcFkmpdmstqv+7EuJUSy7pWvMV9Px5Ts4/SSKLkmoZGa314Zp/CnhapPIwZXrai4effhsCKSeImZYHgf+qgnYQ==
Coefficient: PBQUQquZB0kG//cy8oVA6nHvKkvVJ8zV4GVlkXHTDylbjoWBTuNWwQ93t5SM7Rz3JePHImWdOVMYNIXpPlp56g==
'
nsec_details:
nsec3_hash_algo_desc: SHA-1
nsec3_hash_algo_num: 1
nsec3_iterations: 7
nsec3_narrow: 1
nsec3_opt_out: 0
nsec3_salt: 1a2b3c4d5e6f
nsec_version: NSEC3
properties:
keys:
additionalProperties:
description: Each key/value property includes information related the domain's DNSSEC
record.
properties:
active:
description: 'Whether the DS key is active.
* `1` - Active.
* `0` - Inactive.'
enum:
- 0
- 1
example: 1
type: integer
algo_desc:
description: A description of the algorithm that the DS key uses.
example: RSA/SHA-256
type: string
algo_num:
description: 'The [Internet Engineering Task Force](https://www.ietf.org/) (IETF)-recognized
DNSSEC Digest Algorithm Number.
* `5` - RSA/SHA-1
* `6` - DSA-NSEC3-SHA1
* `7` - RSASHA1-NSEC3-SHA1
* `8` - RSA/SHA-256
* `10` - RSA/SHA-512
* `13` - ECDSA Curve P-256 with SHA-256
* `14` - ECDSA Curve P-384 with SHA-384'
enum:
- 5
- 6
- 7
- 8
- 10
- 13
- 14
example: 8
type: integer
algo_tag:
description: The short-form reference to the algorithm.
example: RSASHA256
type: string
bits:
description: The DS key's size, in bits.
example: 2048
format: bits
type: integer
created:
description: 'The key''s creation time, in [Unix time format](https://en.wikipedia.org/wiki/Unix_time).
* `0` - The creation time is unknown.
* A valid timestamp, in Unix epoch time.'
example: 1575395316
format: unix_timestamp
type: integer
digests:
description: An array of objects of information the registrar uses to populate DS
records.
items:
properties:
algo_desc:
description: A description of the algorithm that the DS record uses.
example: SHA-1
type: string
algo_num:
description: The IETF-recognized DNSSEC Algorithm Number.
example: 1
minimum: 1
type: integer
digest:
description: The actual digest in the DS record.
example: 2808a14b89118256119d93d24b9e6b673dca092b
type: string
type: object
type: array
flags:
description: 'An integer that determines the `key_type` value.
* `256` - A Zone Signing Key (ZSK).
* `257` - A Combined Signing Key (CSK) or Key Signing Key (KSK).'
enum:
- 256
- 257
example: 257
type: integer
key_id:
description: PowerDNS's internal identifier.
example: 1
minimum: 1
type: integer
key_tag:
description: The DS key's integer value.
example: 40481
minimum: 1
type: integer
key_type:
description: 'The DS key''s signing type.
* `CSK` - Combined Signing Key.
* `KSK` - Key Signing Key.
* `ZSK` - Zone Signing Key.'
enum:
- CSK
- KSK
- ZSK
example: KSK
type: string
privatekey:
description: The private key in ISC format.
example: 'Private-key-format: v1.2
Algorithm: 8 (RSASHA256)
Modulus: syUlztxieV1aOtuYAGGA4VBxgquwqPTWQXcDVY1VRFcPgFmLMWYr6dDnN4OUhu2yIulK3KMeZmAc/DmwM+yNdCdYc9y84gw5OyONKduuPGYXfwCiJfOJ+NpGaFomK6fVFN8BMi6LUBytdA4gotPw45Uz8FIbl1KsEOnV4/ZpjiM=
PublicExponent: AQAB
PrivateExponent: LxIfsQ7vQPxqbPSuJ8t21b0RVkhOjtZmRaVD1wLf2KkXhZ4BmOVDvJgLaObF6/4gxFOQPBEQN84hT5TI25vYPrAwRAlP/yGmQ4Z2aPIYeEawoqqNoYEa5Xjs1X90i6/+Y8mJSZpGvr4/Y4ElothZTUw+LCYb6o9ulg53yya8KUE=
Prime1: 4od92Rbx9fSXRIk6eSSdTYN/Do3zgDiCuxmuZaCrrEAlkiK11iz/s4aZGj9+Yk4NfusjXr3NqU1OMfBiIp67Sw==
Prime2: ynOJdz/E4/B6iBtuz/4y0kasljMtiJnaNIxPr4LG+hByx7WWCnaPm6p8g1pz3FC/w7HAdWq9xzR1VnbRPGcZiQ==
Exponent1: KUKmkIEWZ0c6ujgIl4IsyK6X2O3QGV2xqiSeWFJwknpInZqG5lDh7jAo+NfxzDQNTz3C/oGx0RGMmZoANfAViw==
Exponent2: ZcFkmpdmstqv+7EuJUSy7pWvMV9Px5Ts4/SSKLkmoZGa314Zp/CnhapPIwZXrai4effhsCKSeImZYHgf+qgnYQ==
Coefficient: PBQUQquZB0kG//cy8oVA6nHvKkvVJ8zV4GVlkXHTDylbjoWBTuNWwQ93t5SM7Rz3JePHImWdOVMYNIXpPlp56g==
'
type: string
type: object
description: An object containing the DS keys on the requested domain.
type: object
nsec_details:
description: 'An object with of the domain''s [Next Secure Record](https://tools.ietf.org/html/rfc4470)
(NSEC) information.
**Note:**
If the domain uses NSEC semantics, only the `nsec_version` return appears in this object.'
properties:
nsec3_hash_algo_desc:
description: description of the NSEC3 key's algorithm.
example: SHA-1
type: string
nsec3_hash_algo_num:
description: The DNSSEC ([Domain Name Security Extensions](https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions))
Digest Algorithm Number.
example: 1
minimum: 1
type: integer
nsec3_iterations:
description: The number of times that the system rehashes the first hash operation.
example: 7
minimum: 1
type: integer
nsec3_narrow:
description: 'Whether NSEC3 will operate in Narrow or Inclusive mode.
**Note:**
For more information about these modes, read [PowerDNS''s DNSSEC documentation](https://doc.powerdns.com/authoritative/dnssec/intro.html).
* `1` - Narrow mode.
* `0` - Inclusive mode.'
enum:
- 0
- 1
example: 1
type: integer
nsec3_opt_out:
description: 'Whether NSEC3 will create records for all delegations or only for secure
delegations.
* `1` - Create records for all delegations.
* `0` - Create records **only** for secure delegations.'
enum:
- 0
- 1
example: 0
type: integer
nsec3_salt:
description: 'The salt value that PowerDNS uses in the hashes.
**Note:**
For more information about salt values, read [RFC 5155](https://tools.ietf.org/html/rfc5155#section-3.1.5).'
example: 1a2b3c4d5e6f
type: string
nsec_version:
description: Whether the domain uses NSEC or NSEC3 ([Next Secure Record version 3](https://tools.ietf.org/html/rfc5155))
DNSSEC semantics.
enum:
- NSEC
- NSEC3
example: NSEC3
type: string
type: object
type: object
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_ds_records_for_domains
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain's DS record
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_ds_records_for_domains \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_ds_records_for_domains?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/fetch_mail_queue:
get:
description: This function retrieves the contents of the server's mail queue.
operationId: Exim-fetch_mail_queue
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records:
description: An array of objects that contain of the message information.
items:
properties:
frozen:
description: 'Whether the mail message is frozen.
* `1` — Frozen.
* `0` — **Not** frozen.'
enum:
- 0
- 1
example: 0
type: integer
msgid:
description: The mail message's ID.
example: 1UotX3-0002HX-Lr
type: string
recipients:
description: An array of the mail message's recipients.
items:
example: pricilla@graceland.com
format: email
type: string
type: array
sender:
description: The mail message's sender.
example: elvis@graceland.com
format: email
type: string
size:
description: The mail message's size in bytes.
example: 14336
format: bytes
minimum: 0
type: integer
time:
description: The mail message's timestamp.
example: 1371552781
format: unix_timestamp
type: integer
user:
description: The mail message's owner.
example: null
nullable: true
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_mail_queue
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return server mail queue contents
tags:
- Mail
- Mail Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_mail_queue\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_mail_queue?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/fetch_pkgacct_master_log:
get:
description: This function returns the contents of a `start_background_pkgacct` session's master log file.
operationId: Backup-fetch_pkgacct_master_log
parameters:
- description: The `start_background_pkgacct` session ID.
in: query
name: session_id
required: true
schema:
example: username20200323154328kDJ2Kx4xua2KtG
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
log:
description: The master log file's contents.
example: '{"contents":"pkgacct started.\n","partial":0,"timestamp":"2020-03-23 10:43:28 -0500","pid":4073,"indent":0,"type":"out"}
{"pid":4073,"timestamp":"2020-03-23 10:43:28 -0500","partial":0,"contents":"pkgacct version 10 -
user : username - tarball: 1 - target mysql : 5.7 - split: 1 - incremental: 0 - homedir: 0 - mailman:
1 - backup: 0 - archive version: 4 - running with uid 0\n","indent":0,"type":"out"}
{"type":"out","indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:28 -0500","partial":0,"contents":"pkgacct
using ''''/usr/bin/pigz -6 --processes 1 --blocksize 4096 --rsyncable'''' to compress archives\n"}
{"type":"out","indent":0,"partial":0,"timestamp":"2020-03-23 10:43:28 -0500","contents":"pkgacct
-- attempting to use daily backup to create an account package\n","pid":4073}
{"indent":0,"contents":"pkgacct -- could not use daily backup because no daily incremental backup
for user username can be found ( check if daily incremental backups are enabled )\n","partial":0,"timestamp":"2020-03-23
10:43:28 -0500","pid":4073,"type":"out"}
{"type":"out","pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:28 -0500","contents":"pkgacct
working dir : /home/cpmove-username","indent":0}
{"type":"out","indent":0,"pid":4073,"contents":"Copying Reseller Config...","timestamp":"2020-03-23
10:43:28 -0500","partial":1}
{"indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:28 -0500","partial":0,"contents":"Done\n","type":"out"}
{"type":"out","indent":0,"pid":4073,"partial":1,"timestamp":"2020-03-23 10:43:28 -0500","contents":"Copying
Suspension Info (if needed)..."}
{"type":"out","timestamp":"2020-03-23 10:43:28 -0500","partial":0,"contents":"Done\n","pid":4073,"indent":0}
{"type":"out","indent":0,"pid":4073,"contents":"Copying installed SSL certificates and keys...","partial":1,"timestamp":"2020-03-23
10:43:28 -0500"}
{"type":"out","partial":0,"timestamp":"2020-03-23 10:43:28 -0500","contents":"Performing ApacheTLS
component....","pid":4073,"indent":0}
{"type":"out","indent":0,"contents":"Completed ApacheTLS component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073}
{"type":"out","pid":4073,"contents":"Done\n","partial":0,"timestamp":"2020-03-23 10:43:29 -0500","indent":0}
{"indent":0,"contents":"Copying DKIM keys....","partial":1,"timestamp":"2020-03-23 10:43:29 -0500","pid":4073,"type":"out"}
{"type":"out","indent":0,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073}
{"type":"out","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"Copying Bandwidth
Data....","pid":4073,"indent":0}
{"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Performing Bandwidth component....","pid":4073,"indent":0,"type":"out"}
{"type":"out","contents":"Summary databases ","partial":1,"timestamp":"2020-03-23 10:43:29 -0500","pid":4073,"indent":0}
{"type":"out","contents":" done!\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"indent":0}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed
Bandwidth component.\n","type":"out"}
{"indent":0,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Done\n","pid":4073,"type":"out"}
{"type":"out","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"Copying Dns Zones....","pid":4073,"indent":0}
{"indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"...username.tld...","type":"out"}
{"indent":0,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Done\n","pid":4073,"type":"out"}
{"type":"out","indent":0,"pid":4073,"contents":"Copying Mail files....","timestamp":"2020-03-23
10:43:29 -0500","partial":1}
{"indent":0,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"type":"out"}
{"contents":"Copying proftpd file....","partial":1,"timestamp":"2020-03-23 10:43:29 -0500","pid":4073,"indent":0,"type":"out"}
{"indent":0,"pid":4073,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"type":"out"}
{"indent":0,"contents":"Performing Logs component....","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"type":"out"}
{"type":"out","indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"...log
file sizes [0 byte(s)]..."}
{"type":"out","indent":0,"pid":4073,"contents":"...username.tld-ssl_log...","timestamp":"2020-03-23
10:43:29 -0500","partial":1}
{"contents":"...username.tld...","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"pid":4073,"indent":0,"type":"out"}
{"indent":0,"pid":4073,"contents":"Completed Logs component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","type":"out"}
{"type":"out","indent":0,"contents":"Copy userdata...","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"pid":4073}
{"contents":"Done\n","partial":0,"timestamp":"2020-03-23 10:43:29 -0500","pid":4073,"indent":0,"type":"out"}
{"indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"Copy custom
virtualhost templates...","type":"out"}
{"type":"out","indent":0,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Done\n","pid":4073}
{"type":"out","contents":"Copying mailman lists and archives....","partial":1,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073,"indent":0}
{"type":"out","indent":0,"pid":4073,"contents":"Done copying mailman lists and archives.\n","timestamp":"2020-03-23
10:43:29 -0500","partial":1}
{"indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
Postgresql component....","type":"out"}
{"indent":0,"pid":4073,"contents":"Completed Postgresql component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","type":"out"}
{"type":"out","pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
Mysql component....","indent":0}
{"contents":"Determining mysql dbs...","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"pid":4073,"indent":0,"type":"out"}
{"type":"out","pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":1,"contents":"...mysqldump
version: 5.7.27...","indent":0}
{"type":"out","contents":"...mysql version: 5.7...","partial":1,"timestamp":"2020-03-23 10:43:29
-0500","pid":4073,"indent":0}
{"type":"out","indent":0,"contents":"Saving mysql privs...","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"pid":4073}
{"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Done\n","pid":4073,"indent":0,"type":"out"}
{"indent":0,"contents":"Storing MySQL databases...\n","partial":1,"timestamp":"2020-03-23 10:43:29
-0500","pid":4073,"type":"out"}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Done\n","type":"out"}
{"type":"out","indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"...Done\n"}
{"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"...Done\n","indent":0,"type":"out"}
{"type":"out","indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed
Mysql component.\n"}
{"indent":0,"contents":"Performing MysqlRemoteNotes component....","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073,"type":"out"}
{"indent":0,"contents":"Completed MysqlRemoteNotes component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073,"type":"out"}
{"pid":4073,"partial":1,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Copying cpuser file.......","indent":0,"type":"out"}
{"type":"out","indent":0,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073}
{"partial":1,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Copying crontab file.......","pid":4073,"indent":0,"type":"out"}
{"indent":0,"pid":4073,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"type":"out"}
{"type":"out","pid":4073,"contents":"Performing Quota component....","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","indent":0}
{"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Completed Quota component.\n","indent":0,"type":"out"}
{"type":"out","indent":0,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
Integration component....","pid":4073}
{"pid":4073,"contents":"Completed Integration component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","indent":0,"type":"out"}
{"indent":0,"contents":"Performing AuthnLinks component....","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"type":"out"}
{"type":"out","pid":4073,"contents":"Completed AuthnLinks component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","indent":0}
{"type":"out","indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
APITokens component...."}
{"indent":0,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Completed APITokens
component.\n","pid":4073,"type":"out"}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Performing
DNSSEC component....","type":"out"}
{"type":"out","indent":0,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed
DNSSEC component.\n","pid":4073}
{"type":"out","indent":0,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
Custom component....","pid":4073}
{"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"No custom components
to perform.\n","indent":0,"type":"out"}
{"contents":"Completed Custom component.\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"indent":0,"type":"out"}
{"type":"out","indent":0,"pid":4073,"contents":"Performing AutoSSL component....","timestamp":"2020-03-23
10:43:29 -0500","partial":0}
{"indent":0,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed AutoSSL component.\n","pid":4073,"type":"out"}
{"type":"out","pid":4073,"contents":"Storing Subdomains....\n","timestamp":"2020-03-23 10:43:29
-0500","partial":0,"indent":0}
{"type":"out","indent":0,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Done\n","pid":4073}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Storing Parked
Domains....\n","type":"out"}
{"type":"out","pid":4073,"contents":"Done\n","partial":0,"timestamp":"2020-03-23 10:43:29 -0500","indent":0}
{"indent":0,"contents":"Storing Addon Domains....\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"type":"out"}
{"contents":"Performing Password component....","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"indent":0,"type":"out"}
{"type":"out","indent":0,"contents":"Completed Password component.\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073}
{"type":"out","pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Performing
DigestShadow component....","indent":0}
{"type":"out","indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed
DigestShadow component.\n"}
{"type":"out","indent":0,"contents":"Copying shell.......","partial":1,"timestamp":"2020-03-23 10:43:29
-0500","pid":4073}
{"type":"out","indent":0,"pid":4073,"contents":"Done\n","timestamp":"2020-03-23 10:43:29 -0500","partial":0}
{"indent":0,"pid":4073,"contents":"Performing PublicContact component....","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","type":"out"}
{"indent":0,"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Completed
PublicContact component.\n","type":"out"}
{"contents":"Performing MailLimits component....","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"indent":0,"type":"out"}
{"indent":0,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"Completed MailLimits
component.\n","pid":4073,"type":"out"}
{"contents":"Performing LinkedNodes component....","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"pid":4073,"indent":0,"type":"out"}
{"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Completed LinkedNodes component.\n","pid":4073,"indent":0,"type":"out"}
{"pid":4073,"contents":"Creating Archive ....","timestamp":"2020-03-23 10:43:29 -0500","partial":1,"indent":0,"type":"out"}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"\n","type":"out"}
{"contents":"splitpkgacctfile is: /home/cpmove-username-split/cpmove-username.tar.gz.part00001\n","partial":0,"timestamp":"2020-03-23
10:43:29 -0500","pid":4073,"indent":0,"type":"out"}
{"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"\nsplitmd5sum is: e06a2d1f0cb499cb1d5ff15116f02df4\n","indent":0,"type":"out"}
{"type":"out","pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"\nsplitsize
is: 7275\n","indent":0}
{"type":"out","timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"Done\n","pid":4073,"indent":0}
{"pid":4073,"timestamp":"2020-03-23 10:43:29 -0500","partial":0,"contents":"\nmysqlsize is: 0\n","indent":0,"type":"out"}
{"indent":0,"pid":4073,"partial":0,"timestamp":"2020-03-23 10:43:29 -0500","contents":"pkgacct completed\n","type":"out"}'
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_pkgacct_master_log
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return start_background_pkgacct session log file
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_pkgacct_master_log \\\n session_id='username20200323154328kDJ2Kx4xua2KtG'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_pkgacct_master_log?api.version=1&session_id=username20200323154328kDJ2Kx4xua2KtG
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/fetch_security_advice:
get:
description: "This function returns the cPanel Security Advisor's security scan data. It advises you of how to resolve\
\ any security issues that it finds.\n\n**Note:**\n\n For more information, read the [cPanel Security Advisor](https://go.cpanel.net/githubsecurityadvisor)\
\ documentation at the WebPros International, LLC GitHub® repository."
operationId: Security-fetch_security_advice
parameters: []
responses:
'200':
content:
application/json:
examples:
advice_with_module_error:
value:
data:
payload:
- advice:
key: SSH_direct_root_login_permitted
suggestion: Manually edit /etc/ssh/sshd_config and change PermitRootLogin to “without-password”
or “no”, then restart SSH …
summary: SSH direct root logins are permitted.
type: ADVISE_BAD
module: Cpanel::Security::Advisor::Assessors::SSH
type: mod_advice
- advice:
key: SSH_is_current
suggestion: null
summary: 'Current SSH version is up to date: 11.22p33-44'
type: ADVISE_GOOD
module: Cpanel::Security::Advisor::Assessors::SSH
type: mod_advice
- message: Anvil not found at /usr/local/cpanel/Cpanel/Security/Advisor/Assessors/ACME.pm line 6.
module: Cpanel::Security::Advisor::Assessors::ACME
type: mod_load
metadata:
command: fetch_security_advice
reason: OK
result: 1
version: 1
schema:
properties:
data:
properties:
payload:
description: "**Note:**\n\n * This function only returns the the `advice` array of objects when the\
\ `type` return is the `mod_advice` value.\n * This function only returns the `message` return when\
\ the `type` return is the `mod_load` or `mod_run` value."
items:
properties:
advice:
description: "**Note:**\n\n This function only returns this object when the `type` return is\
\ the `mod_advice` value."
properties:
key:
description: A unique check identifier in the module that returns a status message.
example: ClamAV_not_installed
type: string
suggestion:
description: A message that suggests how to resolve the security issue.
example: Install ClamAV within "Manage
Plugins".
format: HTML
nullable: true
type: string
summary:
description: A summary about the module's current security status.
example: ClamAV is not installed.
format: HTML
type: string
type:
description: 'The level at which the module returns a specific security message.
* `ADVISE_BAD` - The object contains a security issue.
* `ADVISE_GOOD` - There are no security issues.
* `ADVISE_INFO` - The object contains an informational message.
* `ADVISE_WARN` - The object contains a warning.'
enum:
- ADVISE_BAD
- ADVISE_GOOD
- ADVISE_INFO
- ADVISE_WARN
example: ADVISE_BAD
type: string
type: object
message:
description: "A message that describes an error.\n\n**Note:**\n\n This function only returns\
\ this value for the `type` return's `mod_load` and `mod_run` values."
example: Can't call method "get_raw_conf" on an undefined value at /usr/local/cpanel/Whostmgr/Services/SSH/Config.pm
line 160.
type: string
module:
description: The name of a module that the Security Advisor checked.
example: Cpanel::Security::Advisor::Assessors::ClamAV
type: string
type:
description: 'The type of security message.
* `mod_advice` - There is a message from the Security Advisor module.
* `mod_load` - There was an error preventing the loading of the module.
* `mod_run` - There was an error preventing the system from completing one of the module''s
checks.'
enum:
- mod_advice
- mod_load
- mod_run
example: mod_advice
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_security_advice
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Security Advisor results
tags:
- Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_security_advice\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_security_advice?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/fetch_service_ssl_components:
get:
description: This function lists the system's services and their associated certificates.
operationId: SSL-fetch_service_ssl_components
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
services:
description: An array of objects containing the certificate information for each service.
items:
properties:
cabundle:
description: 'The Certificate Authority (CA) information.
This function returns an empty string if no CA bundle exists
for the certificate.'
example: ''
type: string
certificate:
description: The SSL certificate's contents.
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
type: string
certificate_info:
description: An object containing certificate information data.
properties:
domains:
description: The domains that correspond to the certificate.
items:
example: example.com
format: domain
type: string
type: array
ecdsa_curve_name:
description: 'The ECDSA curve that the certificate''s key uses.
* `prime256v1`
* `secp384r1`
* `null` — The certificate''s key is **not** an ECDSA key.'
enum:
- prime256v1
- secp384r1
example: null
nullable: true
type: string
ecdsa_public:
description: 'The certificate''s key''s ECDSA compressed public point, in hexadecimal format.
* `null` — The certificate''s key is **not** an ECDSA key.'
example: null
nullable: true
type: string
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — Self-signed.
* `0` — **Not** self-signed.'
enum:
- 1
- 0
example: 1
type: integer
issuer.commonName:
description: The certificate's Common Name.
example: example.com
type: string
issuer.organizationName:
description: The certificate's Organization Name.
example: Writer's Guild of America
type: string
issuer_text:
description: Information about the issuer.
example: 'countryName
US
stateOrProvinceName
Unknown
localityName
Unknown
organizationName
Unknown
organizationalUnitName
Unknown
commonName
example.com
emailAddress
test@example.com'
type: string
key_algorithm:
description: 'The certificate''s key''s algorithm.
* `rsaEncryption` — RSA.
* `id-ecPublicKey` — ECDSA.'
enum:
- rsaEncryption
- id-ecPublicKey
example: rsaEncryption
type: string
modulus:
description: 'The certificate''s key''s modulus, in hexadecimal format.
* `null` — The certificate''s key is **not** an RSA key.'
example: null
nullable: true
type: string
modulus_length:
description: 'The certificate''s modulus size.
* `null` — The certificate''s key is **not** an RSA key.'
example: null
nullable: true
type: integer
not_after:
description: The date the certificate expires.
example: 1601467200
format: unix_timestamp
type: integer
not_before:
description: The certificate's validation date.
example: 1569844800
format: unix_timestamp
type: integer
type: object
key:
description: The certificate's private key.
example: REDACTED_PRIVATE_KEY_EXAMPLE
format: pem-private-key
type: string
service:
description: 'The service that the certificate corresponds to.
* `ftp`
* `exim`
* `dovecot`
* `cpanel`'
enum:
- ftp
- exim
- dovecot
- cpanel
example: ftp
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_service_ssl_components
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return system services and associated certificates
tags:
- SSL
- SSL Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_service_ssl_components\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_service_ssl_components?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.40'
/fetch_ssl_certificates_for_fqdns:
get:
description: This function retrieves the certificate information for all fully qualified domain names (FQDNs) that the
account owns.
operationId: SSL-fetch_ssl_certificates_for_fqdns
parameters:
- description: 'A comma-separated list of domains for which to retrieve information.
**Note:**
For browser-based calls, you **must** URI-encode each comma (`%2C`).'
examples:
multiple:
summary: Fetch information for multiple domains.
value: domains=example-1.com,example-2.com,example-3.com
single:
summary: Fetch information for a single domain.
value: example.com
in: query
name: domains
required: true
schema:
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: Information about the certificate.
items:
properties:
cab:
description: The CA bundle's contents.
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
nullable: true
type: string
created:
description: The date the certificate was created.
example: 1538308800
format: unix_timestamp
type: integer
crt:
description: The certificate's contents.
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
type: string
domains:
description: The domains that the CSR covers.
example:
- example.servername.com
- example.com
- mail.example.com
- www.example.com
- www.example.servername.com
items:
format: domain
type: string
type: array
ecdsa_curve_name:
description: 'The ECDSA curve that the certificate''s key uses.
* `prime256v1`
* `secp384r1`
* `null` — The certificate''s key is **not** an ECDSA key.'
enum:
- prime256v1
- secp384r1
example: null
nullable: true
type: string
ecdsa_public:
description: 'The certificate''s key''s ECDSA compressed public point, in hexadecimal format.
* `null` — The certificate''s key is **not** an ECDSA key.'
example: null
nullable: true
type: string
friendly_name:
description: The certificate's friendly name.
example: example.com
type: string
id:
description: The certificate's identification.
example: example_servername_com_ce52d_6e643_2813308004_119580f9b01960cjones72bc519206bc
type: string
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — Self-signed.
* `0` — **Not** self-signed.'
enum:
- 1
- 0
example: 0
type: integer
issuer.commonName:
description: The certificate's Common Name.
example: example.servername.com
type: string
issuer.organizationName:
description: The certificate's Organization Name.
example: Organization
type: string
key:
description: The private key's text.
example: REDACTED_PRIVATE_KEY_EXAMPLE
format: pem-private-key
type: string
key_algorithm:
description: 'The certificate''s key''s algorithm.
* `rsaEncryption` — RSA.
* `id-ecPublicKey` — ECDSA.'
enum:
- rsaEncryption
- id-ecPublicKey
example: rsaEncryption
type: string
modulus:
description: 'The certificate''s key''s modulus, in hexadecimal format.
* `null` — The certificate''s key is **not** an RSA key.'
example: ab4c2a3cc30ff10e918915dee7b5171318373de000774d31c4546bea93303d9b56ae4728615d247c7119ee72660fa05d527b97ac3a936f5cfbf027aa505b79f9942d8c6b79e428cf15a5241db344ad99b697c6ca07ab239c44d9ede7b8017c7f99a7ff8e1819d28e123004b987cecd3a8179ca0fd8d2d9ee9dca6efd1cb3797cc92f1cb4327d163069b6c39b17487e25e286862e8ac65b20d47d03e3c00c1c42c562f7b159ef312546bbbffe327fb6a8a354b10bbf5016b9d264b999c92662960af913e98a48201f145706d382716e67ce94b3661f7b5ee931ab4054957c3006d1ca6dd9e2b996999af5c6b4dda12f8b4b0cf89027df058e69b03469fd646a01
nullable: true
type: string
modulus_length:
description: 'The certificate''s key''s modulus length.
* `null` — The certificate''s key is **not** an RSA key.'
example: 2048
nullable: true
type: integer
not_after:
description: The date the certificate expired.
example: 1569844800
format: unix_timestamp
type: integer
not_before:
description: The date the certificate started.
example: 1538308800
format: unix_timestamp
type: integer
signature_algorithm:
description: The certificate's OID hash algorithm signature.
example: sha256WithRSAEncryption
type: string
subject.commonName:
description: The certificate's Common Name.
example: example.com
type: string
users:
description: A list of cPanel account owners.
example:
- username
items:
format: username
type: string
type: array
validation_type:
description: 'The certificate''s validation type.
* `ev` — Extended Validation.
* `ov` — Organization Validated.
* `dv` — Domain Validated.
* `null` — The system could **not** parse and determine the
certificate''s validation type.'
enum:
- ev
- ov
- dv
example: dv
nullable: true
type: string
verify_error:
description: An error message that explains the reason for a verification error.
example: DEPTH_ZERO_SELF_SIGNED_CERT
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_ssl_certificates_for_fqdns
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account FQDN certificate information
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_ssl_certificates_for_fqdns \\\n domains='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_ssl_certificates_for_fqdns?api.version=1&domains=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '66'
/fetch_ssl_vhosts:
get:
description: This function lists the server's virtual hosts (vhosts) and their installed SSL certificates.
operationId: SSL-fetch_ssl_vhosts
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
vhosts:
description: An array of objects containing virtual host information.
items:
properties:
crt:
description: Information about the certificate.
properties:
created:
description: The date the certificate was created.
example: 1538308800
format: unix_timestamp
type: integer
domains:
description: A list of the certificate's associated domains.
example:
- example.com
- subdomain.example.com
items:
format: domain
type: string
type: array
ecdsa_curve_name:
description: 'The ECDSA curve that the certificate''s key uses.
* `prime256v1`
* `secp384r1`
* `null` — The certificate''s key is **not** an ECDSA key.'
enum:
- prime256v1
- secp384r1
example: null
nullable: true
type: string
ecdsa_public:
description: 'The certificate''s key''s ECDSA compressed public point, in hexadecimal format.
* `null` — The certificate''s key is **not** an ECDSA key.'
example: null
nullable: true
type: string
encryption_algorithm:
description: 'The certificate''s key''s algorithm.
* `rsaEncryption` — RSA.
* `id-ecPublicKey` — ECDSA.'
enum:
- rsaEncryption
- id-ecPublicKey
example: rsaEncryption
type: string
id:
description: The certificate's ID.
example: example1_com_e353a_5bc13_1408033388_9a1d40aff655f98fed7206e5af466065
type: string
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — Self-signed.
* `0` — Not self-signed.'
enum:
- 1
- 0
example: 1
type: integer
issuer.commonName:
description: The certificate's issuer.
example: example.com
type: string
issuer.organizationName:
description: The certificate's Organization Name.
example: Organization
type: string
issuer_text:
description: The full text of issuer information.
example: 'commonName
subdomain.example.com'
type: string
modulus:
description: 'The certificate''s key''s modulus, in hexadecimal format.
* `null` — The certificate''s key is **not** an RSA key.'
example: e353aa25cc8ad05d3225611e4410c0270c11b2d46f88705d3d179a23102ab24ee167c1a9070b9f554e83bade1b84256e11c5a0cb2ac96b96f28e802b11c721d73fbfe61dd9839974a6fce4e17915c0fbf885056f18656041cf70db460b22cab5fd2502491e4ab9f0d2cb727480e0ebd62e83870acda31bfa2d4625efd82234f9729f351ea02fb162609c1654c11b5dec468539a3bb83073a85f78bcf577cd8b718501145cccd89d7adb0bb18c872e7303a15e2c75a6ab315c7fa099e4351a4f0ff126c2693f71d9f21d9f798b94bb689277083fea8dcc01b6af268d0ad8b7a481f8a179d07639cdf3290c93723937a767c400a8ce4b1ca19f0a7117084d5bc13
nullable: true
type: string
modulus_length:
description: 'The certificate''s key''s modulus length.
* `null` — The certificate''s key is **not** an RSA key.'
example: 2048
nullable: true
type: integer
not_after:
description: The date the certificate expires.
example: 1601467200
format: unix_timestamp
type: integer
not_before:
description: The date the certificate became active.
example: 1569844800
format: unix_timestamp
type: integer
public_exponent:
description: The certificate's exponent.
example: '010001'
type: string
signature_algorithm:
description: The certificate's OID hash algorithm.
example: sha256WithRSAEncryption
type: string
subject.commonName:
description: An object containing the certificate's Common Name.
properties:
commonName:
description: The certificate's Common Name.
example: example.com
type: string
type: object
subject_text:
description: The certificate's subject text.
example: 'commonName
subdomain.example.com'
type: string
validation_type:
description: 'The certificate''s validation type.
* `dv` — Domain validation.
* `ev` — Extended validation.
* `ov` — Organizational validation.
* `null` — Self-signed certificate.'
enum:
- dv
- ev
- ov
example: dv
nullable: true
type: string
type: object
docroot:
description: The absolute directory path of the primary domain's document root.
example: /home/example/public_html
format: path
type: string
domains:
description: A list of the virtual host's domains.
example:
- example.com
items:
format: domain
type: string
type: array
ip:
description: The virtual host's IP address.
example: 192.168.0.20
format: ipv4
type: string
iptype:
description: 'The type of IP address.
* `shared`
* `dedicated`'
enum:
- shared
- dedicated
example: dedicated
type: string
ipv6:
description: The virtual host's IPv6 address.
example: 2001:0db8:0:0:1:0:0:1
format: ipv6
type: string
is_primary_on_ip:
description: 'Whether the certificate''s domain is the IP address''s primary domain.
* `1` — Primary domain.
* `0` — **Not** the primary domain.'
enum:
- 1
- 0
example: 1
type: integer
mail_sni_status:
description: 'Whether SNI for mail is enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 1
- 0
example: 1
type: integer
needs_sni:
description: 'Whether the virtual host requires SNI to function properly for
SSL certificates.
* `1` — Requires SNI.
* `0` — Does **not** require SNI.'
enum:
- 1
- 0
example: 0
type: integer
servername:
description: The virtual host's primary domain.
example: example.com
format: domain
type: string
type:
description: 'The virtual host''s domain type.
* `addon` — Addon domain.
* `main` — Main domain on account.
* `parked` — Parked domain.
* `sub` — Subomain.'
enum:
- addon
- main
- parked
- sub
example: sub
type: string
user:
description: The virtual host's username.
example: example
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_ssl_vhosts
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return server vhosts and SSL certificates
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_ssl_vhosts\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_ssl_vhosts?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/fetch_transfer_session_log:
get:
description: "This function returns a transfer session's log file.\n\n**Note:**\n\n For more information about how this\
\ function works with other functions in the transfer and restore process, read our [Guide to Transfer and Restore\
\ API Functions](https://go.cpanel.net/transferrestoreAPIguide) documentation."
operationId: Transfers-fetch_transfer_session_log
parameters:
- description: The log file's name.
in: query
name: logfile
required: true
schema:
example: master.log
oneOf:
- enum:
- master.log
- master.error_log
type: string
- description: A valid log file name found in the `master.log` file.
example: item-TRANSFER_AccountRemoteUser_root
type: string
- description: The transfer session's ID.
in: query
name: transfer_session_id
required: true
schema:
example: vm5docscpanelcopya20140224163412sylG
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
log:
description: The logfile's contents.
example: '{"contents":{"action":"start","time":1598991042,"child_number":0},"pid":12789,"type":"control","indent":0,"partial":0}
{"partial":0,"indent":0,"type":"control","pid":12789,"contents":{"time":1598991042,"action":"initiator","child_number":0,"msg":"norootcopy"}}
{"partial":0,"indent":0,"pid":12789,"type":"control","contents":{"msg":2.3,"child_number":0,"time":1598991042,"action":"version"}}
{"type":"control","pid":12789,"contents":{"time":1598991042,"queue":"TRANSFER","action":"queue_count","msg":1,"child_number":0},"partial":0,"indent":0}
{"contents":{"time":1598991042,"action":"queue_size","queue":"TRANSFER","child_number":0,"msg":1},"type":"control","pid":12789,"indent":0,"partial":0}
{"type":"control","pid":12789,"contents":{"time":1598991042,"queue":"RESTORE","action":"queue_count","child_number":0,"msg":1},"partial":0,"indent":0}
{"partial":0,"indent":0,"pid":12789,"type":"control","contents":{"child_number":0,"msg":1,"time":1598991042,"action":"queue_size","queue":"RESTORE"}}
{"partial":0,"indent":0,"pid":12789,"type":"control","contents":{"action":"remotehost","time":1598991042,"msg":"10.1.32.200","child_number":0}}
{"partial":0,"indent":0,"type":"control","pid":12790,"contents":{"item":"root","time":1598991042,"child_number":1,"action":"start","queue":"TRANSFER","logfile":"item-TRANSFER_AccountRemoteUser_root","local_item":"root","item_name":"Account","item_type":"AccountRemoteUser"}}
{"indent":0,"partial":0,"contents":{"action":"process-item","queue":"TRANSFER","logfile":"item-TRANSFER_AccountRemoteUser_root","item_type":"AccountRemoteUser","item_name":"Account","local_item":"root","msg":"item-TRANSFER_AccountRemoteUser_root","item":"root","time":1598991042,"child_number":1},"pid":12790,"type":"control"}
{"indent":0,"partial":0,"contents":{"logfile":"item-TRANSFER_AccountRemoteUser_root","item_name":"Account","item_type":"AccountRemoteUser","local_item":"root","msg":{"size":1},"queue":"TRANSFER","action":"start-item","child_number":1,"item":"root","time":1598991042},"pid":12790,"type":"control"}
{"contents":{"child_number":1,"item":"root","time":1598991042,"logfile":"item-TRANSFER_AccountRemoteUser_root","local_item":"root","msg":{"dangerous_items":0,"skipped_items":0,"altered_items":0,"failure":"The
account “root” already exists on “control.box.new”.","size":1,"warnings":0,"contents":{"warnings":null,"skipped_items":null,"dangerous_items":null,"altered_items":null}},"item_name":"Account","item_type":"AccountRemoteUser","queue":"TRANSFER","action":"failed-item"},"type":"control","pid":12790,"indent":0,"partial":0}
{"indent":0,"partial":0,"contents":{"item_type":"AccountRemoteUser","item_name":"Account","msg":{"size":1},"local_item":"root","logfile":"item-RESTORE_AccountRemoteUser_root","action":"start-item","queue":"RESTORE","child_number":1,"time":1598991042,"item":"root"},"type":"control","pid":12790}
{"pid":12790,"type":"control","contents":{"item_type":"AccountRemoteUser","item_name":"Account","msg":{"size":1,"failure":"The
account “root” already exists on “control.box.new”."},"local_item":"root","logfile":"item-RESTORE_AccountRemoteUser_root","action":"failed-item","queue":"RESTORE","child_number":1,"time":1598991042,"item":"root"},"partial":0,"indent":0}
{"contents":{"time":1598991042,"action":"complete","queue":"TRANSFER","child_number":1},"pid":12790,"type":"control","indent":0,"partial":0}
{"type":"control","pid":12791,"contents":{"queue":"RESTORE","action":"complete","time":1598991043,"child_number":1},"partial":0,"indent":0}
{"pid":12789,"type":"control","contents":{"child_number":0,"action":"complete","time":1598991043},"partial":0,"indent":0}
'
format: json
type: string
metadata:
properties:
command:
description: The method name called.
example: fetch_transfer_session_log
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return transfer session's log file
tags:
- Transfers
- Transfer Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_transfer_session_log \\\n transfer_session_id='vm5docscpanelcopya20140224163412sylG'\
\ \\\n logfile='master.log'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_transfer_session_log?api.version=1&transfer_session_id=vm5docscpanelcopya20140224163412sylG&logfile=master.log
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/fetch_vhost_ssl_components:
get:
description: "This function lists the components of each SSL certificate on the server's virtual hosts.\n\n**Warning:**\n\
\n* On most servers, this function returns a large amount of output. We **strongly**\nrecommend that you [filter](https://go.cpanel.net/WHMAPI1FilterOutput)\
\ and\n[sort](https://go.cpanel.net/WHMAPI1SortOutput) the output.\n* The following example uses the filter and sort\
\ options:\n\n `https://hostname.example.com:2087/cpsess##########/json-api/fetch_vhost_ssl_components?api.version=1&api.filter.a.field=servername&api.filter.a.arg0=servername.com&api.filter.a.type=eq&api.filter.enable=1&api.sort.enable=1&api.sort.a.field=servername`"
operationId: SSL-fetch_vhost_ssl_components
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
components:
description: An array of objects containing the certificate information.
items:
properties:
cabundle:
description: The certificate's certificate authority (CA) bundle.
example: null
nullable: true
type: string
cabundle_id:
description: The ID of the certificate's CA bundle.
example: null
nullable: true
type: string
certificate:
description: The certificate's text.
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
certificate_id:
description: The certificate's ID.
example: example_com_ecfeb_5c8df_1608653403_1de5d524f287f7ec75531239a2f4a133
type: string
key:
description: The certificate's private key.
example: REDACTED_PRIVATE_KEY_EXAMPLE
type: string
key_id:
description: The ID of the certificate's key.
example: ecfeb_5c8df_35927dbac0386ff253c269a9cda4c6f3
type: string
servername:
description: The domain or domains that the certificate covers.
example: example.com
format: domain
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: fetch_vhost_ssl_components
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all SSL certificate components on vhost
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetch_vhost_ssl_components\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetch_vhost_ssl_components?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/fetchcrtinfo:
get:
description: This function retrieves information about a certificate.
operationId: SSL-fetchcrtinfo
parameters:
- description: The certificate's internal system ID.
in: query
name: id
required: true
schema:
example: example_com_bf638_f81af_1500191700_79e34f42c83f748bd49474ab9d66f7cd
type: string
- description: The cPanel account's username.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cabundle:
description: The certificate authority (CA) bundle certificate.
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
certificate:
description: The certificate's text.
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — Self-signed.
* `0` — **Not** self-signed.'
enum:
- 1
- 0
example: 0
type: integer
key:
description: The private key's text.
example: REDACTED_PRIVATE_KEY_EXAMPLE
type: string
subject.commonName_ip:
description: The certificate's IP address.
example: 192.0.2.0
format: ipv4
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: fetchcrtinfo
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return SSL certificate information
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetchcrtinfo \\\n user='username' \\\n id='example_com_bf638_f81af_1500191700_79e34f42c83f748bd49474ab9d66f7cd'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetchcrtinfo?api.version=1&user=username&id=example_com_bf638_f81af_1500191700_79e34f42c83f748bd49474ab9d66f7cd
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/fetchsslinfo:
get:
description: This function retrieves information about SSL certificates that you could install for a user. This function
does **not** provide information about the currently installed certificates.
operationId: SSL-fetchsslinfo
parameters:
- description: The certificate's text.
in: query
name: crtdata
required: false
schema:
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
- description: The domain's name.
in: query
name: domain
required: false
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cab:
description: The certificate's certificate authority (CA) bundle.
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
crt:
description: The certificate's text.
example: REDACTED_CERTIFICATE_EXAMPLE
type: string
crt_origin:
description: The username of the certificate's creator.
example: example
format: username
type: string
domain:
description: The domain name on the certificate.
example: example.com
format: domain
type: string
ip:
description: The certificate's IP address.
example: 192.168.0.20
format: ipv4
type: string
key:
description: The certificate's private key.
example: REDACTED_PRIVATE_KEY_EXAMPLE
type: string
key_origin:
description: The username of the key's creator.
example: example
format: username
type: string
searched_users:
description: A list of users that the system searched to find certificate information.
example:
- root
- example
items:
format: username
type: string
type: array
user:
description: The certificate's owner.
example: example
format: username
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: fetchsslinfo
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account SSL certificate information
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n fetchsslinfo\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/fetchsslinfo?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/flush_cphulk_login_history:
get:
description: 'This function removes the login history entries from the cPHulk
database.'
operationId: cPHulk-flush_cphulk_login_history
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records_removed:
description: 'The number of entries that the function deleted
from the cPHulk database.'
example: 10
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: flush_cphulk_login_history
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove all login security records
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n flush_cphulk_login_history\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/flush_cphulk_login_history?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/flush_cphulk_login_history_for_ips:
get:
description: This function removes specific login history entries from the cPHulk database. Use this function to unblock
one or more IP addresses.
operationId: cPHulk-flush_cphulk_login_history_for_ips
parameters:
- description: "The record's IP address.\n\n**Note:**\n\n To unblock multiple IP addresses, increment the parameter\
\ name (for example, to unblock three IP addresses, use the `ip-1`, `ip-2`, and `ip-3` parameters)."
examples:
multiple:
description: Multiple IPv4 addresses.
value:
- 192.168.0.1
- 192.168.0.2
- 192.168.0.3
multiple-ipv6:
summary: Multiple IPv6 addresses.
value:
- 2001:db8::1
- 2002:db8::1
- 2003:db8::1
single:
description: A single IPv4 address.
value:
- 192.168.0.1
single-ipv6:
summary: Single IPv6 Address
value:
- 2001:db8::1
explode: true
in: query
name: ip
required: true
schema:
items:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
type: array
style: form
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
iptable_bans_removed:
description: The number of `iptables` temporary block rules that the function deleted.
example: 1
minimum: 0
type: integer
records_removed:
description: The number of entries that the function deleted.
example: 1
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: flush_cphulk_login_history_for_ips
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Remove login security IP address block
tags:
- cPHulk
- Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n flush_cphulk_login_history_for_ips \\\n ip='192.168.0.1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/flush_cphulk_login_history_for_ips?api.version=1&ip=192.168.0.1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/force_dedistribution_from_node:
get:
description: 'This function converts cPanel accounts that use a given
[child node](https://go.cpanel.net/cPanelGlossary#child-node)
to use the local server instead.
Unlike the WHM API 1 `modifyacct` API call, this API does **not**
transfer users’ data from the child node as part of the conversion.
This API is useful for emergency repairs if, for example, a child
node goes permanently offline while accounts still use it.
**Warning:**
Because this API does not transfer users’ data from the child node,
all converted users will lose data. You should **only** call this API
as a last resort.'
operationId: Cpanel-force_dedistribution_from_node
parameters:
- description: 'The child node’s alias (friendly name). This is the value passed in the
WHM API 1 `link_server_node_with_api_token` function’s `alias` parameter.'
in: query
name: node_alias
required: true
schema:
example: mailalias
type: string
- description: 'The usernames of the
[distributed cPanel accounts](https://go.cpanel.net/cPanelGlossary#distributed-cpanel-account)
to convert.'
in: query
name: user
required: true
schema:
example:
- username
- username1
items:
type: string
type: array
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
log:
description: Log entries that indicate the conversion’s progress.
items:
properties:
contents:
description: The message content.
example: Converting “username1” …
type: string
indent:
description: The log message’s indent level.
example: 0
minimum: 0
type: integer
type:
description: 'The log level of the message.
* `success` – A success message.
* `out` – An informational message.
* `warn` – A warning message.
* `error` – An error message.'
enum:
- success
- out
- warn
- error
example: success
type: string
type: object
type: array
user_info:
description: Information about each newly-converted cPanel account.
items:
properties:
username:
description: The cPanel account’s username.
example: username1
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: force_dedistribution_from_node
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Repair distributed accounts with data loss
tags:
- Server Administration
- Server Nodes
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n force_dedistribution_from_node \\\n node_alias='mailalias' \\\n user='username'\
\ user='username1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/force_dedistribution_from_node?api.version=1&node_alias=mailalias&user=username&user=username1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '94'
/forcepasswordchange:
get:
description: This function forces a user to change the account password after the next login attempt.
operationId: Accounts-forcepasswordchange
parameters:
- description: The list of users. The system will force each user that you specify to change their account's password
the next time that they log in.
in: query
name: users_json
required: true
schema:
example: '{"user1":1,"user2":1,"user3":1}'
format: json
type: string
- description: 'Whether to halt the function if it experiences an error.
* `1` - Halt on error.
* `0` - Continue on error.'
in: query
name: stop_on_failure
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
updated:
description: A list of usernames that the system will force to change their passwords. One or more
valid usernames.
items:
example: user
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: forcepasswordchange
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- `1` - Success
- `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Enable forced password update
tags:
- Passwords
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n forcepasswordchange \\\n users_json='{\"user1\":1,\"user2\":1,\"user3\"\
:1}'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/forcepasswordchange?api.version=1&users_json=%7b%22user1%22%3a1%2c%22user2%22%3a1%2c%22user3%22%3a1%7d
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/generate_mobileconfig:
get:
description: 'This function generates a mobile configuration profile for an email account.
**Important:**
When you disable the [*Receive Mail* role](https://go.cpanel.net/serverroles), the system **disables** this function.'
operationId: Email-generate_mobileconfig
parameters:
- description: The email account's username.
in: query
name: account
required: true
schema:
example: username
type: string
- description: 'Whether to use an SSL-encrypted connection.
* `1` — Use an SSL-encrypted connnection.
* `0` — Do **not** use an SSL-encrypted connection.'
in: query
name: use_ssl
required: true
schema:
enum:
- 0
- 1
example: 1
type: integer
- description: "A comma-separated list of the email account service's `.mobileconfig` file names.\n* `caldav` — The\
\ `.mobileconfig` file for calendar setup.\n* `carddav` — The `.mobileconfig` file for contacts setup.\n* `email`\
\ — The `.mobileconfig` file for email setup.\n\n**Note:**\n\n * If you don't specify a value, this parameter uses\
\ the default values.\n * You can request one, two, or all possible values.\n * The function ignores unsupported\
\ values."
in: query
name: selected_account_services
required: false
schema:
default: email,caldav,carddav
enum:
- caldav
- carddav
- email
example: email
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: The function's raw output. This function returns this value as a binary of an Apple mobile
configuration file containing a series of sub-tags and keys. For more information, read [Apple's
key reference](https://developer.apple.com/business/documentation/Configuration-Profile-Reference.pdf).
example: 'MIIcIwYJKoZIhvcNAQcCoIIcFDCCHBACAQExDzANBglghkgBZQMEAgEFADCCFS4GCSqGSIb3DQEH
AaCCFR8EghUbPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQ
RSBwbGlzdCBQVUJMSUMgIi0vL0FwcGxlLy9EVEQgUExJU1QgMS4wLy9FTiIgImh0dHA6Ly93d3cu
YXBwbGUuY29tL0RURHMvUHJvcGVydHlMaXN0LTEuMC5kdGQiPg0KPHBsaXN0IHZlcnNpb249IjEu
MCI+DQo8ZGljdD4NCiAgPGtleT5QYXlsb2FkQ29udGVudDwva2V5Pg0KICA8YXJyYXk+DQogICAg
PGRpY3Q+DQogICAgICAgIDxrZXk+Q2FsREFWQWNjb3VudERlc2NyaXB0aW9uPC9rZXk+DQogICAg
ICAgIDxzdHJpbmc+dXNlcm5hbWVAaG9zdC0xNzItMTYtMS0xMS5hc2hsZXk4MnNiLnRsZDwvc3Ry
aW5nPg0KICAgICAgICA8a2V5PkNhbERBVkhvc3ROYW1lPC9rZXk+DQogICAgICAgIDxzdHJpbmc+
aG9zdC0xNzItMTYtMS0xMS5hc2hsZXk4MnNiLnRsZDwvc3RyaW5nPg0KICAgICAgICA8a2V5PkNh
bERBVlBvcnQ8L2tleT4NCiAgICAgICAgPGludGVnZXI+ODQ0MzwvaW50ZWdlcj4NCiAgICAgICAg
PGtleT5DYWxEQVZQcmluY2lwYWxVUkw8L2tleT4NCiAgICAgICAgPHN0cmluZz4vcHJpbmNpcGFs
cy9fX3VpZHNfXy8vPC9zdHJpbmc+DQogICAgICAgIDxrZXk+Q2FsREFWVXNlU1NMPC9rZXk+DQog
ICAgICAgIDx0cnVlLz4NCiAgICAgICAgPGtleT5DYWxEQVZVc2Vyb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Inb5NRBoK0MAc3f0vmAXrF087ayyNy6E1DqpdPWAGpCKYfIzWtIccrxKcguoIM4mWZ/Lp6mrZ
I/2K6npCz9Wlm7iYASSsP3NMO8JWk7EWPA==
'
format: base64
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: generate_mobileconfig
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create email account mobile profile configuration
tags:
- Mail
- Mail Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n generate_mobileconfig \\\n account='username' \\\n use_ssl='1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/generate_mobileconfig?api.version=1&account=username&use_ssl=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/generatesshkeypair:
get:
description: This function generates an SSH key pair.
operationId: SSH-generatesshkeypair
parameters:
- description: 'Whether to abort the function if the user already has a key with the same name.
* `1` — Abort.
* `0` — Continue.'
in: query
name: abort_on_existing_key
required: false
schema:
default: 1
enum:
- 0
- 1
example: 1
type: integer
- description: The key's encryption algorithm. The parameter defaults to the system's default algorithm.
in: query
name: algorithm
required: false
schema:
enum:
- rsa2
- dsa
example: dsa
type: string
- description: 'The key''s bits:
* `1024` — The DSA algorithm''s default value.
* `2048`
* `4096` — The RSA algorithm''s default value.'
in: query
name: bits
required: false
schema:
enum:
- 1024
- 2048
- 4096
example: 2048
type: integer
- description: A comment.
in: query
name: comment
required: false
schema:
default: ''
example: NoComment
type: string
- description: 'The key''s filename.
This parameter defaults to `id_rsa` if the algorithm is RSA, and `id_dsa`
if the algorithm is DSA.'
in: query
name: name
required: false
schema:
default: id_rsa
example: KeyFile
type: string
- description: The key's secure passphrase.
in: query
name: passphrase
required: false
schema:
default: ''
example: 123456luggage
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
fingerprint:
description: The key's [MD5](https://en.wikipedia.org/wiki/MD5) fingerprint.
example: null
format: md5
nullable: true
type: string
name:
description: The key's filename.
example: KeyFile
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: generatesshkeypair
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create SSH key pair
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n generatesshkeypair\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/generatesshkeypair?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/generatessl:
get:
description: This function generates a private key file, a certificate signing request (CSR), and a self-signed SSL
certificate.
operationId: SSL-generatessl
parameters:
- description: A comma-separated list of the certificate's domains.
examples:
multiple:
summary: Generate an SSL certificate for multiple domains.
value: domain=example1.com,example2.com,example3.com
single:
summary: Generate an SSL certificate for a single domain.
value: example.com
in: query
name: domains
required: true
schema:
format: domain
type: string
- description: 'The certificate''s country code.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: countryName
required: false
schema:
example: US
format: ISO-3166-1 (alpha-2)
type: string
- description: 'The certificate''s contact email address.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: emailAddress
required: false
schema:
example: username@example.com
format: email
type: string
- description: 'The size of the certificate''s key, in bits.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: keysize
required: false
schema:
example: 2048
minimum: 1
type: integer
- description: 'The certificate''s city or locality.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: localityName
required: false
schema:
example: Houston
type: string
- description: The department of the organization that owns the certificate.
in: query
name: organizationalUnitName
required: false
schema:
default: null
example: Development
nullable: true
type: string
- description: 'The certificate''s organization.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: organizationName
required: false
schema:
example: Example, L.L.C.
type: string
- description: The certificate's passphrase.
in: query
name: pass
required: false
schema:
default: null
example: 123456luggage
nullable: true
type: string
- description: 'Whether the function will skip certificate generation.
* `1` — Skip certificate generate (do **not** generate a certificate).
* `0` — Do **not** skip certificate generation (generate a certificate).
**Note:**
The function will still generate a CSR and key and save both to the user''s `SSLStorage`
data store.'
in: query
name: skip_certificate
required: false
schema:
default: 0
enum:
- 1
- 0
example: 0
type: integer
- description: 'The certificate''s state or province name.
If you do not use this parameter, your CSR will **not** include this field.'
in: query
name: stateOrProvinceName
required: false
schema:
example: Texas
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cert:
description: The certificate's text.
example: REDACTED_CERTIFICATE_EXAMPLE
format: base64 certificate
type: string
cert_id:
description: The certificate's ID.
example: example_com_a2459_9d253_1405012775_521f3620ac92180d24a74813a921b23e
type: string
certfile:
description: The absolute file path to the certificate's location.
example: /var/cpanel/ssl/system/certs/example_com_e0054_da789_1405012513_401c27501f5e0dd8d1b1d9caa902a0c8.crt
format: path
type: string
csr:
description: The CSR's text.
example: REDACTED_CERTIFICATE_EXAMPLE
format: base64 certificate
type: string
csr_id:
description: The CSR's ID.
example: example_com_e0054_da789_96b6625681492b7c43844b6ec37764de
type: string
csrfile:
description: The absolute file path to the CSR.
example: /var/cpanel/ssl/system/csrs/example_com_a2459_9d253_d5edb563abb8dd426099bbb358c8f2bc.csr
format: path
type: string
key:
description: The private key's text.
example: REDACTED_PRIVATE_KEY_EXAMPLE
format: base64 certificate
type: string
key_id:
description: The private key's ID.
example: e0054_da789_101721a053024156a34e0df8a9c388d4
type: string
keyfile:
description: The absolute file path to the private key.
example: /var/cpanel/ssl/system/keys/e0054_da789_101721a053024156a34e0df8a9c388d4.key
format: path
type: string
sender:
description: The username that generated the request.
example: admin
type: string
sender_host:
description: The host that generated the request.
example: hostname.example.com
format: domain
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: generatessl
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Key, Certificate, and CSR generated OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Create self-signed SSL certificate
tags:
- SSL
- SSL Server Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n generatessl \\\n domains='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/generatessl?api.version=1&domains=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/get_adjusted_market_providers_products:
get:
description: 'This function lists all available cPanel Market products from enabled providers,
with the prices that the adjustments database modifies.'
operationId: Market-get_adjusted_market_providers_products
parameters: []
responses:
'200':
content:
application/json:
examples:
group_ssl_certificate:
summary: product_group=ssl_certificate
value:
data:
products:
- base_name: ''
billing_type: one-time
description: An extended-validated (EV) SSL certificate signed by cPanel.
display_name: cPanel EV SSL Certificate
enabled: 1
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05LjUwNCA1LjA5Ni0xNS4zIDUuMDk2aC0zMS41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ljk5NyAxMC40MDIgMTMuNSAyMi4yNTQgMTYuNSAzNS41NSAzIDEzLjMwNSAyLjU5NCAyNi45NTQtMS4yMDIgNDAuOTVsLTEuMiA0LjVjLTIuNTk3IDkuNjAyLTYuNTk3IDE4LjQ1LTEyIDI2LjU1LTUuMzk4IDguMDk4LTExLjg0NyAxNS4wNTItMTkuMzQ3IDIwLjg0OC03LjUgNS44MDUtMTUuODU1IDEwLjMwNS0yNS4wNSAxMy41LTkuMiAzLjIwNC0xOC44MDUgNC44MDUtMjguODA1IDQuODA1aC01NC4yOTdsMTAuOC00MC41YzEuNi01LjQwMiA0LjYtOS44IDktMTMuMjAzIDQuMzk2LTMuMzk4IDkuNDk3LTUuMTAyIDE1LjMwMi01LjEwMmgxNy4zOThjNy4yIDAgMTMuNjUzLTIuMiAxOS4zNTItNi41OTcgNS42OTUtNC4zOTggOS40NDUtMTAuMDk3IDExLjI1LTE3LjEgMS4zOTQtNC45OTcgMS41NDctOS45LjQ0NS0xNC43LTEuMS00LjgtMy4wNS05LjA0Ny01Ljg0OC0xMi43NS0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=
icon_mime_type: image/svg+xml
license_term: 0
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel EV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: 209
provider_display_name: cPanel Store
provider_name: cPStore
recommended: 0
requires_ip: 0
x_certificate_term:
- 1
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
- description: Consult the EV SSL Certificate Guidelines (https://cabforum.org/extended-validation/)
for more information about this field’s options.
label: Business Category
name: business_category
options:
- - b
- Incorporated Business (“Private Organization”)
- - d
- Non-incorporated Business (“Business Entity”)
- - c
- Government Entity (“Government Entity”)
type: choose_one
- is_optional: 1
label: City Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_locality_name
- is_optional: 1
label: State or Province Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_state_or_province_name
- label: Country Code Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_country_name
type: country_code
- is_optional: 1
label: Date of Incorporation
name: date_of_incorporation
type: date
- is_optional: 1
label: Assumed Name (DBA (Doing Business As))
name: assumed_name
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 60
x_price_per_domain_maximum: 600
x_price_per_domain_minimum: 60
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ev
x_warn_after: 604800
metadata:
command: get_adjusted_market_providers_products
reason: OK
result: 1
version: 1
schema:
properties:
data:
properties:
products:
description: An array of objects that contains information about the products in the cPanel Market.
items:
additionalProperties:
description: Any product-specific additional properties. Each additional property value begins
with the `x_` prefix.
x-additionalPropertiesName: x_properties
properties:
base_name:
description: The base name, if one exists.
type: string
billing_type:
description: The billing type.
example: one-time
type: string
description:
description: The product's description.
example: Get an SSL Certificate today.
type: string
display_name:
description: The product's display name.
example: Extended Validated cPanel SSL Certificate
type: string
enabled:
description: 'Whether the product is enabled.
* `0` - Disabled.
* `1` - Enabled.'
enum:
- 0
- 1
example: 1
type: integer
icon:
description: The icon to display in the product list.
example: 'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAKq2lDQ1BJQ0MgUHJvZmlsZQAASImV
lgdQU+kWx7970xstAQEpoffeQUroofcmKiGhhBJiICDYEXEFVhQRacqCrjQFV6XIKiIWRFkUG/YF
WRTUdbFgQ+Vd4BHee/N23rwzc3J/c+Z8/3vul++b+QNAvsfi81NgCQBSeRmCIA9nekRkFB33O8AC
JUAC2kCFxU7nMwICfMDfxoe7AJp73jKY0/r7vv8akpy4dDYAUADCsZx0dirCp5DsZvMFGQCgkARq
WRn8OS5HmCZABkT46BwnLHDPHMcu8O35npAgF4QnAMCTWSxBAgCk90idnslOQHTINISNeRwuD2FX
hB3YiSwOwnkI66emps3xcYS1Y/9FJ+HfNGNFmixWgogXvmU+8K7cdH4KK/v/3I7/HakpwsV3qCJJ
ThR4BiFPGWTPGpLTvEXMi/XzX2QuZ75/nhOFnqGLzE53iVpkDsvVe5GFyaGMRWYJltZyM5ghiyxI
CxLpx6W7BYv045g+ohlS/EQcz3VnLnJOYkj4Imdyw/wWOT052Hupx0VUFwiDRDPHC9xF35iavjQb
m7U0Q0ZiiOfSbBGiGThxrm6iOi9U1M/PcBZp8lMCRP1xKR6ienpmsGhtBnLAFjmJ5RWwpBMg2h/A
AMEgFEk6CAOewBSYI4lMlRG3bu5MA5c0fraAm5CYQWcgtyaOzuSxDfXppsYmFgDM3cGFv/jd9fm7
BcnGLtWykPUrviNnkbBUi3gKwDGkJs9aqmluBkAaBUBbL1soyFyooed+MIAIxAENyCF3XA254wbI
ZJbADjgBN+AF/EEIiASrARskglQgAFlgA9gK8kEh2A32gUpQAw6BBnAMnAAd4Aw4Dy6Da+AGuAMe
ghEwDl6CKfABzEAQhI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4E6mU/Oy88vG
S2Icj5INa0ARojeqmchVGilkabLkNOqCpEVC17O6XNWk8cMffFtx5ezZWVykXkQpPpFIiE/wjUlW
11xzDhkt6QnKzS8sUCQUwSHISZglPF0VZnlroXCI5SRjOhbHk2ebBO1DI7Es8kOiIxGZyyRx9dJp
zGeTFBifCm+AxIVBIwjqD/uVECnckx8xRD66m8vwkdTcyQ0BGHL54+bEkmu+OinS+Px+VI4OsXtQ
Yo/g5Lwr7BYDfaJuAR9Ljrxh5ERocly6wa6pdaE/HOH0KsQKRqBU5Hmim14vJ1LtiI46ir0Crlqo
jDoZqR4y/Li/tIIBx8diIZYe1wbMsURClRkHieqVyxXcuXOfD5toNNtclh1xHOlG4k1IILQQr3Uv
u5pcFJweV6w0X02osBX4eKCLQCm24pWVJ0zFBvXeBS/zyzdBjNcdLDcSRafxD6iAS9xnZuIq9/LO
MM7+JPCCLhFhmoVo8no9YNlZJ8RT6jQB51idr94Wjev2LIRCEfzmd3/H9s6hYrjX64bJpiIeyLRL
D5/j5q9ucd0wTTKPu6mLTkqEtBNHxRj15f//Ah9jPXoBZ9CgAAAAAElFTkSuQmCC'
format: base64 image
type: string
icon_mime_type:
description: The icon's image format.
example: image/svg+xml
type: string
license_term:
description: The license term.
example: 0
type: integer
max_users:
description: The maximum number of users.
minimum: 1
nullable: true
type: integer
maximum_server_price:
description: '
The product''s maximum price.
* null - The produce does **not** possess a maximum price.'
example: 888.88
format: currency
minimum: 0
nullable: true
type: number
minimum_server_price:
description: '
The product''s minimum price.
* null - The product does **not** possess a minimum price.'
example: 3
format: currency
minimum: 0
nullable: true
type: number
price:
description: 'The product''s price.
* null - The product does **not** possess a static price.'
example: 6
format: currency
minimum: 0
nullable: true
type: number
price_unit:
description: The currency code of the product's price, in [ISO-4217 format](https://en.wikipedia.org/wiki/ISO_4217)
format.
example: USD
type: string
product:
description: The product's display name.
example: cPanel EV Certificate
type: string
product_category:
description: The product's category.
example: N/A
nullable: true
type: string
product_group:
description: The product's group.
example: ssl_certificate
type: string
product_id:
description: The product ID.
example: 209
minimum: 1
type: integer
provider_display_name:
description: The cPanel Market provider's display name.
example: cPanel Store
type: string
provider_name:
description: The cPanel Market provider's name.
example: cPStore
type: string
recommended:
description: 'Whether we recommend the product.
* `1` - We recommend the product.
* `0` - We do **not** recommend the product.'
enum:
- 0
- 1
example: 1
type: integer
requires_ip:
description: 'Whether the product requires an IP.
* `1` - Requires an IP address.
* `0` - Does **not** require an IP address.'
enum:
- 0
- 1
example: 1
type: integer
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_adjusted_market_providers_products
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Market providers' products adjusted prices
tags:
- Market
- Product Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_adjusted_market_providers_products\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_adjusted_market_providers_products?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_all_contact_importances:
get:
description: 'This function lists the importance of all application events in
WHM''s
[*Contact Manager*](https://docs.cpanel.net/whm/server-contacts/contact-manager/)
interface (*WHM >> Home >> Server Contacts >> Contact Manager*).'
operationId: Contact-get_all_contact_importances
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
importances:
description: An array of objects containing event importance information.
items:
properties:
app:
description: The cPanel & WHM module's name.
example: wwwacct
type: string
event:
description: 'The event''s name.
**Note:**
An asterisk character (`*`) represents all events in the module.'
example: '*'
type: string
importance:
description: 'The importance of the contact event:
* `1` — High.
* `2` — Medium.
* `3` — Low.
* `0` — Disabled.'
example: 0
type: integer
name:
description: 'The contact event''s name:
* `High`
* `Medium`
* `Low`
* `Disabled`'
example: High
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_all_contact_importances
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Contact Manager event importance settings
tags:
- Server Administration
- Notifications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_all_contact_importances\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_all_contact_importances?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_api_calls:
get:
description: 'This function returns the cPanel API 1 functions that the system called on specific dates.
This is useful, for example, to check whether your system calls any cPanel API 1 functions.
**Important:**
The function **only** returns cPanel API 1 functions. We deprecated cPanel API 1 and plan
to remove those functions at a later date. For more information, read our
[Guide to Replacing cPanel API 1 Functions with UAPI Equivalents](https://go.cpanel.net/replacecpapi1)
documentation.'
operationId: Sys-get_api_calls
parameters:
- description: 'The cPanel API 1 function to query.
**Note:**
`cpapi1` is the **only** possible value.'
in: query
name: type
required: false
schema:
default: cpapi1
example: cpapi1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
result:
items:
properties:
count:
description: 'The total number of times that the system called
the function on the day in the `timestamp` return.'
example: 200000
type: integer
entry:
description: 'The cPanel API 1 module and function that the system executed.
For a complete list of cPanel API 1 functions, read our
[Guide to cPanel API 1](https://go.cpanel.net/cpanelapi1)
documentation.'
example: Email::printdomainoptions
type: string
timestamp:
description: 'The date that the system called the function, in
[Unix time format](https://wikipedia.org/wiki/Unix_time).'
example: 1548828000
format: unix_timestamp
type: integer
type: array
metadata:
properties:
command:
description: The method name called.
example: get_api_calls
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return deprecated cPanel API 1 functions by date
tags:
- Server Administration
- API Statistics
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_api_calls\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_api_calls?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_api_pages:
get:
description: "This function returns the daily interface use of cPanel API 1 functions. Use this function to find out\
\ which API calls your custom interfaces or third-party plugins use.\n\n**Important:**\n\n The function *only* returns\
\ cPanel API 1 functions. We *deprecated* cPanel API 1 and plan to remove those functions at a later date. For more\
\ information, read our [Guide to Replacing cPanel API 1 Functions with UAPI Equivalents](https://go.cpanel.net/replacecpapi1)\
\ documentation."
operationId: Sys-get_api_pages
parameters:
- description: The cPanel API type to query.
in: query
name: type
required: false
schema:
default: cpapi1
enum:
- cpapi1
example: cpapi1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
count:
description: The total number of times that the system called the function on the day in the `timestamp`
return.
example: 200000
minimum: 1
type: integer
entry:
description: The path to the file where the function executes.
example: /usr/local/cpanel/base/frontend/jupiter/plugin1/index.html.tt
type: string
timestamp:
description: "The date that the system called the function.\n\n**Note:**\n\n The time portion of\
\ this value is arbitrary. Only the date is valid."
example: 1548828000
format: unix_timestamp
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_api_pages
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: 'Return deprecated cPanel API 1 functions '
tags:
- Server Administration
- API Statistics
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_api_pages\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_api_pages?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_appconfig_application_list:
get:
description: This function lists registered [AppConfig](https://go.cpanel.net/appconfig) applications.
operationId: Sys-get_appconfig_application_list
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cpanel:
description: An array of objects representing the values set for application installed for cPanel.
items:
$ref: '#/components/schemas/AppConfig'
type: array
webmail:
description: An array of objects representing the values set for application installed for Webmail.
items:
$ref: '#/components/schemas/AppConfig'
type: array
whostmgr:
description: An array of objects representing the values set for application installed for WHM.
items:
$ref: '#/components/schemas/AppConfig'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_appconfig_application_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Got application list
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return registered applications
tags:
- Server Administration
- Applications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_appconfig_application_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_appconfig_application_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: 11.38.1
/get_application_contact_event_importance:
get:
description: "This function retrieves the importance level of an application event for WHM's Contact Manager interface\
\ (Home >> Server Contacts >> Contact Manager).\n\n**Note:**\n\n The system will create a notification setting for\
\ the application's events if one does not already exist."
operationId: Contact-get_application_contact_event_importance
parameters:
- description: The application module's name.
in: query
name: app
required: true
schema:
example: Check
type: string
- description: The event's name.
in: query
name: event
required: true
schema:
example: SecurityAdvisorStateChange
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
importance:
description: 'The importance level at which to send the notification.
* `1` - High.
* `2` - Medium.
* `3` - Low.
* `0` - Disabled.'
enum:
- 1
- 2
- 3
- 0
example: 0
type: integer
name:
description: 'The text version of the importance.
- `High`
- `Medium`
- `Low`
- `Disabled`'
enum:
- High
- Medium
- Low
- Disabled
example: Disabled
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_application_contact_event_importance
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return app's event contact importance setting
tags:
- Server Administration
- Notifications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_application_contact_event_importance \\\n app='Check' \\\n event='SecurityAdvisorStateChange'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_application_contact_event_importance?api.version=1&app=Check&event=SecurityAdvisorStateChange
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_application_contact_importance:
get:
description: 'This function retrieves the importance level of an application''s events for WHM''s
[*Contact Manager*](https://docs.cpanel.net/whm/server-contacts/contact-manager/)
interface (*WHM >> Home >> Server Contacts >> Contact Manager*).
**Note:**
The system creates a notification setting for the application''s events if one does
not already exist.'
operationId: Contact-get_application_contact_importance
parameters:
- description: The cPanel & WHM application module's name.
in: query
name: app
required: true
schema:
example: Check
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
importance:
description: 'The importance level at which to send the notification.
* `1` — High.
* `2` — Medium.
* `3` — Low.
* `0` — Disabled.'
enum:
- 1
- 2
- 3
- 0
example: 0
type: integer
name:
description: 'The text version of the importance setting.
* `High`
* `Medium`
* `Low`
* `Disabled`'
enum:
- High
- Medium
- Low
- Disabled
example: Disabled
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_application_contact_importance
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return app contact importance setting
tags:
- Server Administration
- Notifications
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_application_contact_importance \\\n app='Check'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_application_contact_importance?api.version=1&app=Check
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_autossl_check_schedule:
get:
description: This function returns the cron entry for the `autossl_check.pl` AutoSSL certificate check script.
operationId: SSL-get_autossl_check_schedule
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cron:
description: A list of the time elements of a cron entry that schedules when the script will run.
For more information about each element in a cron entry, read the [Cron Wikipedia article](https://en.wikipedia.org/wiki/Cron).
items:
example: 54 1 * * *
type: string
type: array
next_time:
description: The next time that the script will run. A time value, in [ISO-8601](http://www.iso.org/iso/home/standards/iso8601.htm)
format.
example: '2016-06-09T06:00:00.000Z'
format: ISO-8601 Date Time
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_check_schedule
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return AutoSSL check script cron entry
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_check_schedule\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_check_schedule?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_autossl_log:
get:
description: This function returns the contents of an AutoSSL log file.
operationId: SSL-get_autossl_log
parameters:
- description: When the system created the log file.
in: query
name: start_time
required: true
schema:
example: '2016-06-09T14:25:37.000Z'
format: ISO-8601 Date Time
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: Entries from an AutoSSL log.
items:
properties:
contents:
description: The contents of an entry.
example: This system has AutoSSL set to use cPanel (powered by Sectigo).
type: string
indent:
description: The level of indentation to display.
example: 0
minimum: 0
type: integer
partial:
description: We do not currently use this return.
enum:
- 0
example: 0
type: integer
pid:
description: The AutoSSL process’s ID.
example: 29189
minimum: 1
type: integer
timestamp:
description: When the system created the log file entry.
example: '2016-06-09T14:25:37.000Z'
format: ISO-8601 Date Time
type: string
type:
description: 'The type of log file entry.
* `out` (WHM''s _Manage AutoSSL_ interface represents this type as `info`.)
* `warn`
* `success`
* `failure`'
enum:
- out
- warn
- success
- failure
example: out
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_log
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return AutoSSL log file's contents
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_log \\\n start_time='2016-06-09T14:25:37Z'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_log?api.version=1&start_time=2016-06-09T14%3a25%3a37Z
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_autossl_logs_catalog:
get:
description: This function lists the AutoSSL feature's log files.
operationId: SSL-get_autossl_logs_catalog
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contain information about an AutoSSL log file.
items:
properties:
in_progress:
description: 'Whether AutoSSL is in progress.
* `1` — AutoSSL is in progress.
* `0` — AutoSSL is **not** in progress.'
enum:
- 0
- 1
example: 1
type: integer
provider:
description: The AutoSSL provider's name.
example: cPanel
type: string
start_time:
description: When the system created the log file.
example: '2016-06-09T14:25:37.000Z'
format: ISO-8601 Date Time
type: string
username:
description: 'The user that corresponds to the AutoSSL log entry.
* The username of a cPanel user that the account owns.
* `*` — All users.'
example: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_logs_catalog
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return AutoSSL log files
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_logs_catalog\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_logs_catalog?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_autossl_metadata:
get:
description: This function retrieves values for the currently authenticated user's AutoSSL's metadata keys.
operationId: SSL-get_autossl_metadata
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An object containing the user's AutoSSL metadata key values.
properties:
clobber_externally_signed:
description: 'This option will allow AutoSSL to replace certificates that none of this systems
AutoSSL modules issued.
When you enable this option, AutoSSL will install certificates that replace users Certificate
Authority (CA) issued certificates if they are invalid or expire within three days.
* `1` - Replace the certificate.
* `0` - Do **not** replace the certificate.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_expiry:
description: 'This option will send a notification when an AutoSSL certificate expires. This occurs
when AutoSSL cannot request a new certificate.
**Note:**
This can happen if all of a websites domains fail Domain Control Validation (DCV), or if the
AutoSSL provider has not issued a certificate in response to a request.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_expiry_coverage:
description: 'This option will send a notification if at least one currently-secured domain will
lose coverage when the certificate renews.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_expiry_coverage_user:
description: 'This option will send a notification if at least
one of a user''s currently-secured domains will lose
coverage when the certificate renews.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_expiry_user:
description: 'This option will send a notification when a
user''s AutoSSL certificate expires. This occurs when
AutoSSL cannot request a new certificate for a user.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal:
description: 'This option will send a notification when AutoSSL
successfully renews a certificate.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_coverage:
description: 'This option will send a notification if a currently-secured
domain fails DCV and the certificate has not reached its
renewal period.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_coverage_reduced:
description: 'This option will send a notification when AutoSSL
has renewed a certificate and the new certificate lacks
at least one domain that the previous certificate secured.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_coverage_reduced_user:
description: 'This option will send a notification when AutoSSL
has renewed a certificate for a user and the new certificate
lacks at least one domain that the previous certificate
secured.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_coverage_user:
description: 'This option will send a notification if a currently-secured
domain fails DCV and the certificate has not reached its
renewal period.
* `1` - Notify.
* `0` - Do **not** notify.'
type: integer
notify_autossl_renewal_uncovered_domains:
description: 'This option will send a notification when AutoSSL
has renewed a certificate and the new certificate lacks
one or more of the websites domains.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_uncovered_domains_user:
description: 'This option will send a notification when AutoSSL
has renewed a certificate for a user and the new certificate
lacks one or more of the websites domains.
* `1` - Notify.
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
notify_autossl_renewal_user:
description: 'This option will send a notification when AutoSSL
successfully renews a certificate for a user.
* `1` - Notify
* `0` - Do **not** notify.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_metadata
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is 0. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return current user's AutoSSL metadata
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_metadata\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_metadata?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '60'
/get_autossl_problems_for_domain:
get:
description: This function returns a list of objects that contains the latest Domain Control Validation (DCV) problems
for a specific domain.
operationId: SSL-get_autossl_problems_for_domain
parameters:
- description: The domain for which to poll the DCV status.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
problems_by_domain:
description: An array of objects that contains DCV problems for a domain.
items:
description: An object containing information about a DCV problem for a domain.
properties:
domain:
description: The domain queried for problems.
example: example.tld
format: domain
type: string
log:
description: The name of the directory containing the log files for this problem. This directory
is located under `/var/cpanel/logs/autossl/`.
example: '2017-08-19T13:41:04.000Z'
format: ISO-8601 Date Time
type: string
problem:
description: The problem the domain encountered during DCV.
example: The domain does not resolve to any IPv4 addresses on the internet.
type: string
time:
description: The time that the problem occurred.
example: '2017-08-19T13:41:04.000Z'
format: ISO-8601 Date Time
type: string
type: object
type: array
metadata:
properties:
command:
description: The method name called.
example: get_autossl_problems_for_domain
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain DCV issues
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_problems_for_domain \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_problems_for_domain?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/get_autossl_problems_for_user:
get:
description: This function returns the list of the latest Domain Control Validation (DCV) problems for a cPanel user.
operationId: SSL-get_autossl_problems_for_user
parameters:
- description: The user for whom to poll the DCV status.
in: query
name: username
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
problems_by_domain:
description: An array of objects that contain information about DCV problems for each domain.
items:
properties:
domain:
description: The domain's name
example: doesnotexist.example.com
format: domain
type: string
log:
description: The log folder of the last run in the `/var/cpanel/logs/autossl/` directory.
example: '2017-09-07T03:51:01.000Z'
format: ISO-8601 Date Time
type: string
problem:
description: 'The human readable explanation of the DCV problem.
**Note**
The system does **not** localize this return.'
example: doesnotexist.example.com does not resolve to any IPv4 addresses on the internet.
type: string
time:
description: The last run time of the AutoSSL queue.
example: '2017-08-12T21:02:56.000Z'
format: ISO-8601 Date Time
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_problems_for_user
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return account DCV issues
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_problems_for_user \\\n username='username'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_problems_for_user?api.version=1&username=username
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/get_autossl_providers:
get:
description: This function lists available AutoSSL providers on the server.
operationId: SSL-get_autossl_providers
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: This array of objects contains information about available AutoSSL providers.
example:
- display_name: Sectigo
enabled: 1
module_name: cPanel
specs:
AVERAGE_DELIVERY_TIME: 120
DCV_METHODS:
- http
- dns
DELIVERY_METHOD: queue
HTTP_DCV_MAX_REDIRECTS: 0
MAX_DOMAINS_PER_CERTIFICATE: 1000
RATE_LIMIT_CERTIFICATES_PER_REGISTERED_DOMAIN_PER_WEEK: 0
SUPPORTS_ANCESTOR_DCV: 1
SUPPORTS_WILDCARD: 0
VALIDITY_PERIOD: 7776000
- display_name: Let’s Encrypt™
enabled: 0
module_name: LetsEncrypt
specs:
AVERAGE_DELIVERY_TIME: 5
DCV_METHODS:
- http
- dns
DELIVERY_METHOD: api
HTTP_DCV_MAX_REDIRECTS: 10
MAX_DOMAINS_PER_CERTIFICATE: 100
RATE_LIMIT_CERTIFICATES_PER_REGISTERED_DOMAIN_PER_WEEK: 50
SUPPORTS_ANCESTOR_DCV: 0
SUPPORTS_WILDCARD: 1
VALIDITY_PERIOD: 7776000
x_account_id: https://acme-v01.api.letsencrypt.org/acme/reg/12345678
x_terms_of_service: https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
x_terms_of_service_accepted: 1
items:
additionalProperties:
description: Additional returns specific to the AutoSSL provider module. The name of the property
will always start with `x_`.
properties:
display_name:
description: The AutoSSL provider module's display name.
example: Sectigo
type: string
enabled:
description: 'Whether the AutoSSL provider is enabled.
* `1` - The provider is enabled.
* `0` - The provider is disabled.'
enum:
- 0
- 1
example: 1
type: integer
module_name:
description: The AutoSSL provider module's name.
example: cPanel
type: string
specs:
description: The provider's specifications.
properties:
AVERAGE_DELIVERY_TIME:
description: The amount of time in seconds that the provider requires to issue a certificate.
example: 120
type: integer
DCV_METHODS:
description: 'The methods that the provider uses
to validate the domain.
* `dns` - DNS Validation Method.
* `http` - HTTP Validation Method.'
items:
enum:
- dns
- http
example: http
type: string
type: array
DELIVERY_METHOD:
description: 'The method that the provider uses
to issue the certificate.
* `queue` - The provider delivers certificates through a download queue.
* `api` - The provider delivers certificates through API calls.'
enum:
- queue
- api
example: queue
type: string
HTTP_DCV_MAX_REDIRECTS:
description: The maximum number of redirections a domain can use and still pass an HTTP-based
DCV.
example: 10
type: integer
MAX_DOMAINS_PER_CERTIFICATE:
description: The number of unique domains each certificate can contain.
example: 100
minimum: 1
type: integer
RATE_LIMIT_CERTIFICATES_PER_REGISTERED_DOMAIN_PER_WEEK:
description: The maximum number of certificates that the provider will allow per domain
in a week.
example: 50
type: integer
SUPPORTS_ANCESTOR_DCV:
description: 'Whether the successful Domain Control
Validation (DCV) of a parent domain implies the
success of a subdomain.
* `1` - The provider supports DCV.
* `0` - The provider does **not** support DCV."'
enum:
- 0
- 1
example: 1
type: integer
SUPPORTS_WILDCARD:
description: 'Whether the provider supports wildcard
domains on an SSL certificate.
* `1` - The provider supports wildcard domains.
* `0` - The provider does **not** support wildcard domains.'
enum:
- 0
- 1
example: 1
type: integer
VALIDITY_PERIOD:
description: "The amount of time before the certificate expired, in seconds.\n\n**Note:**\n\
\n\n A valid integer."
example: 7776000
type: integer
type: object
x_account_id:
description: The user's account profile URL at the provider.
example: https://acme-v01.api.letsencrypt.org/acme/reg/12345678
type: string
x_terms_of_service:
description: 'The URL of the provider''s current terms of service.
**Note:**
If the terms of service available at the `x_terms_of_service` location is newer than the `x_terms_of_service_accepted`
location, the system administrator will need to accept the new terms of service.'
example: https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf
format: url
type: string
x_terms_of_service_accepted:
description: 'Whether the AutoSSL provider is Enabled.
* `1` - The AutoSSL provider is enabled.
* `0` - The AutoSSL provider is **not** enabled.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_providers
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available AutoSSL providers
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_providers\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_providers?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_autossl_user_excluded_domains:
get:
description: This function lists an account's domains the system excludes from AutoSSL.
operationId: SSL-get_autossl_user_excluded_domains
parameters:
- description: The cPanel user's account.
in: query
name: username
required: true
schema:
example: example
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contain a list of domains excluded from AutoSSL.
items:
properties:
excluded_domain:
description: A list of domains excluded from AutoSSL.
example: cpcalendars.example.com
format: domain
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_autossl_user_excluded_domains
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all AutoSSL-excluded domains
tags:
- SSL
- Auto-Generated Certificates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_autossl_user_excluded_domains \\\n username='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_autossl_user_excluded_domains?api.version=1&username=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '66'
/get_available_applications:
get:
description: 'This function returns the contents of a `dynamicui` file. For more
information, read our
[Guide to WHM dynamicui Files](https://go.cpanel.net/GuidetoWHMdynamicuiFiles)
documentation.'
operationId: DynamicUI-get_available_applications
parameters:
- description: 'A comma-separated list of the application entries to return.
To determine the application''s name, find its
[`file` value in the `dynamicui.conf` file](https://go.cpanel.net/GuidetoWHMdynamicuiFiles),
and then remove the file extension.
If you do not specify this value, the function returns the entire `dynamicui.conf`
file.'
in: query
name: applications_list
required: false
schema:
example: create_support_ticket
type: string
- description: The `dynamicui` configuration file to retrieve, relative to the `/usr/local/cpanel/whostmgr/docroot/themes/x/`
directory.
in: query
name: file
required: false
schema:
default: dynamicui.conf
example: dynamicui.conf
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
groups:
description: An array of objects containing the file's contents.
items:
$ref: '#/components/schemas/Group'
raw:
description: An array of objects containing the file's raw data for template directives.
items:
$ref: '#/components/schemas/Raw'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_available_applications
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return dynamicui file
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_available_applications\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_available_applications?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '76'
/get_available_authentication_providers:
get:
description: This function lists available external authentication identity providers for all services.
operationId: Authentication-get_available_authentication_providers
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
providers:
description: An array of available identity provider names and settings. Each hash in the array includes
the cpaneld_link , whostmgrd_link , webmaild_link , icon , icon_type , provider_name , display_name
, documentation_url , color , configured , id , label , textcolor , whostmgr_enabled , cpaneld_enabled
, and webmaild_enabled returns.
items:
properties:
color:
description: The background color of the button on the cPanel interface. A valid RGB hexadecimal
color value.
example: dd4b39
type: string
configured:
description: 'Whether the identity provider is configured on the server.
- 1 The provider is configured.
- 0 The provider is not configured.'
enum:
- 0
- 1
example: 1
type: integer
cpaneld_enabled:
description: 'Whether the identity provider is enabled for the cpaneld service.
- 1 The provider is enabled for the cpaneld service..
- 0 The provider is not enabled for the cpaneld service.'
enum:
- 0
- 1
example: 1
type: integer
cpaneld_link:
description: link to the identity provider's configuration for the cpaneld service on the system.
A valid URL .
example: https://hostname.example.com:2083/openid_connect/cpanelid
type: string
display_name:
description: The display name of the identity provider. A valid string.
example: cPanel
type: string
documentation_url:
description: The URL to the identity provider's documentation. A valid URL.
example: https://go.cpanel.net/cpanelidmanage
type: string
icon:
description: The icon file to display in the button on the cPanel login interface. A valid Base64-encoded,
JPG or PNG-formatted image file.
example: Click to view...iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAYAAABX5MJvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAV1JREFUeNrsVtGNwjAMJegGYIRucBmhtwEjdAMyQjYoG2SEG6HcBGUDugFskHOQg1zTlFaN\/\/KkqMh2yYvt53S3KygomIZaE+y9P8BDJ9xXpdSDxT9jwX7dxDJsDMvCuvl33GF1sBwS5O8GX7eVgCabGyRkGJF25v0sJHrcyDH7iMhWEl9zWSD1\/xs1klJn8J\/gZ4WxNdgu8KyiDXGIfmJ7LO6R8CI5rJnwO+Kv0Wb9Z7xlZr+wMt8f\/ANmyCoCMF3CUmP8rOmHip1AM\/8tdbLcjfnL5NigYmIp+ilp5iYRJNkmajtLIBuJiUZ1S+aDKGDjI8tGk+N\/9yuy0ODcGIjL8UEmcXKLDelRDQ5tHcuIkSLQE1WYhIRfMRIEmiV1Z7NES5Rh9nIisRGVWGOyyyflC5fSkDsTmk1KnVBMbForqQw+IVtUCP3KEpdojffHnRGKcq3LZ3pBgST+BRgANXt+WPKE7tYAAAAASUVORK5CYII=
type: string
icon_type:
description: The icon file's MIME type. A valid image format's MIME type.
example: image/svg+xml
type: string
id:
description: The ID of the identity provider. A valid string.
example: cpanelid
type: string
label:
description: The text label that will appear on the cPanel login interface. A valid string.
example: Log in with a cPanelID Account
type: string
provider_name:
description: The name of the identity provider. A valid string.
example: cpanel
type: string
textcolor:
description: The color of the text label on the cPanel login interface. A valid RGB hexadecimal
color value.
example: FFFFFF
type: string
webmaild_enabled:
description: 'Whether the identity provider is enabled for the webmaild service.
- 1 The provider is enabled for the webmaild service.
- 0 The provider is not enabled for the webmaild service.'
enum:
- 0
- 1
example: 1
type: integer
webmaild_link:
description: link to the identity provider's configuration for the webmaild service on the system.
A valid URL .
example: https://hostname.example.com:2096/openid_connect/cpanelid
type: string
whostmgr_enabled:
description: 'Whether the identity provider is enabled for the whostmgr service.
- 1 The provider is enabled for the whostmgr service.
- 0 The provider is not enabled for the whostmgr service.'
enum:
- 0
- 1
example: 1
type: integer
whostmgrd_link:
description: link to the identity provider's configuration for the whostmgrd service on the
system. A valid URL.
example: https://hostname.example.com:2087/openid_connect/cpanelid
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_available_authentication_providers
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available identity providers
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_available_authentication_providers\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_available_authentication_providers?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/get_available_featurelists:
get:
deprecated: true
description: '**DEPRECATED:** Use `get_featurelists` instead.
This function lists the authenticated user''s available feature lists.
**Notes:**
* This function is deprecated because it treats a lack of available feature lists as an error for non-admin resellers,
which is incorrect behavior.
* When you call this function with the `root` account, it returns **all** feature lists on the server.
* When you call this function with a reseller account, it **only** returns feature lists that the account owns.'
operationId: FeatureLists-get_available_featurelists
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
available_featurelists:
description: An array of available feature lists.
example:
- default
- disabled
- reseller1_test1
items:
example: default
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_available_featurelists
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
examples:
success:
value:
metadata:
command: get_available_featurelists
reason: OK
result: 1
version: 1
data:
available_featurelists:
- default
- disabled
- reseller1_test1
error:
value:
metadata:
command: get_available_featurelists
reason: Unable to retrieve list of available featurelists
result: 0
version: 1
description: HTTP Request was successful.
summary: (Deprecated) Get available feature lists
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_available_featurelists\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_available_featurelists?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.0'
/get_available_profiles:
get:
description: This function returns a list of available server profiles.
operationId: Cpanel-get_available_profiles
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
profiles:
description: An array of objects that contains the available server profiles.
example:
- code: STANDARD
description: The Standard Node profile provides all services and access to every cPanel feature.
enabled_roles:
- description: Calendars and Contacts provides CalDAV and CardDAV services.
module: CalendarContact
name: Calendars and Contacts
- description: DNS allows users to create and edit Domain Name System zone files.
module: DNS
name: DNS
- description: FTP allows users to manage the files associated with their site with an FTP client.
module: FTP
name: FTP
- description: File Storage allows users to access the File Manager and Git™ Version Control features.
module: FileStorage
name: File Storage
- description: Receive Mail allows users to receive email, as well as create and manage their email
accounts.
module: MailReceive
name: Receive Mail
- description: Send Mail allows users to send email.
module: MailSend
name: Send Mail
- description: Local Mail allows the system to process email.
module: MailLocal
name: Local Mail
- description: MySQL®/MariaDB allows users to create and manage MySQL/MariaDB databases.
module: MySQL
name: MySQL/MariaDB
- description: PostgreSQL allows users to create and manage PostgreSQL databases.
module: Postgres
name: PostgreSQL
- description: Spam Filter allows users to use Apache SpamAssassin™ to identify, sort, and delete
unsolicited mail.
module: SpamFilter
name: Spam Filter
- description: Webmail provides access to webmail services.
module: Webmail
name: Webmail
- description: Web Disk allows users to manage and manipulate files on the server with multiple
types of devices.
module: WebDisk
name: Web Disk
- description: Web Server allows users to create and manage websites for their domains.
module: WebServer
name: Web Server
experimental: 0
items:
properties:
code:
description: The profile's ID.
example: MAILNODE
type: string
description:
description: The profile's description.
example: This profile provides only services and cPanel features that allow the system to serve
mail.
type: string
disabled_roles:
description: The roles that this profile disables. The function returns an empty array if no
disabled roles exist.
items:
properties:
description:
description: The role's description.
example: File Storage allows users to access the File Manager and Git™ Version Control
features.
type: string
module:
description: The role's module name.
example: FileStorage
type: string
name:
description: The role's name.
example: File Storage
type: string
type: object
type: array
enabled_roles:
description: The roles that this profile enables.
items:
properties:
description:
description: The role's description.
example: Receive Mail allows users to receive email, as well as create and manage their
email accounts.
type: string
module:
description: The role's module name.
example: MailReceive
type: string
name:
description: The role's name.
example: Receive Mail
type: string
type: object
type: array
experimental:
description: 'Whether the profile is experimental.
* `1` - Experimental.
* `0` - **Not** experimental.'
enum:
- 1
- 0
example: 0
type: integer
name:
description: The profile's name.
example: Mail
type: string
optional_roles:
description: The optional roles that this profile enables. The function returns an empty array
if no optional roles exist.
items:
properties:
description:
description: The role's description.
example: DNS allows users to create and edit Domain Name System zone files.
type: string
module:
description: The role's module name.
example: DNS
type: string
name:
description: The role's name.
example: DNS
type: string
type: object
type: array
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_available_profiles
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available server profiles
tags:
- Server Administration
- Server Profiles
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_available_profiles\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_available_profiles?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '76'
/get_available_tiers:
get:
description: 'This function lists of each available version of cPanel & WHM, and each
version''s latest maintenance release. This function also lists the cPanel & WHM
version for each
[release tier](https://docs.cpanel.net/knowledge-base/cpanel-product/product-versions-and-the-release-process/).'
operationId: Sys-get_available_tiers
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: The latest maintenance release for a cPanel & WHM version number.
type: string
description: A list of the latest available version of cPanel & WHM.
example:
'11.30': 11.30.8.0
'11.32': 11.32.7.3
'11.34': 11.34.2.8
'11.36': 11.36.2.12
'11.38': 11.38.2.23
'11.40': 11.40.1.22
'11.42': 11.42.1.31
'11.44': 11.44.3.5
'11.46': 11.46.4.0
'11.48': 11.48.5.3
'11.50': 11.50.6.2
'11.52': 11.52.6.6
'11.54': 11.54.0.36
'11.56': 11.56.0.52
'11.58': 11.58.0.52
'11.60': 11.60.0.48
'11.62': 11.62.0.48
'11.64': 11.64.0.42
'11.66': 11.66.0.35
'11.68': 11.68.0.39
'11.70': 11.70.0.69
'11.72': 11.72.0.12
'11.74': 11.74.0.12
'11.76': 11.76.0.22
'11.78': 11.78.0.49
'11.80': 11.80.0.24
'11.82': 11.82.0.19
'11.84': 11.84.0.22
'11.86': 11.86.0.24
'11.88': 11.88.0.13
'11.90': 11.90.0.3
current: 11.90.0.3
edge: 11.90.0.3
lts: 11.86.0.24
release: 11.88.0.13
stable: 11.88.0.13
properties:
current:
description: The version of cPanel & WHM that is currently on the CURRENT tier.
type: string
edge:
description: The version of cPanel & WHM that is currently on the EDGE tier.
type: string
lts:
description: The version of cPanel & WHM that is currently on the LTS tier.
type: string
release:
description: The version of cPanel & WHM that is currently on the RELEASE tier.
type: string
stable:
description: The version of cPanel & WHM that is currently on the STABLE tier.
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_available_tiers
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Got tiers list
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel & WHM available versions
tags:
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_available_tiers\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_available_tiers?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.38'
/get_best_ssldomain_for_service:
get:
description: This function retrieves the most appropriate SSL-encrypted domain to use to access a service.
operationId: SSL-get_best_ssldomain_for_service
parameters:
- description: The service's name.
in: query
name: service
required: true
schema:
example: whostmgr
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
cert_match_method:
description: 'The method that the system used to match the domain with the certificate.
* `none` — No domain matches the certificate.
* `exact` — The domain exactly matches the certificate.
* `exact-wildcard` — The domain exactly matches the domain of a wildcard certificate.
* `mail-wildcard` — The mail subdomain of the domain matches the domain of the wildcard certificate.
* `www-wildcard` — The `www` subdomain of the domain matches the domain of the wildcard certificate.
* `hostname-wildcard` — The hostname''s domain matches the domain of the wildcard certificate.
* `hostname` — The hostname matches the domain of the certificate.
* `localdomain_on_cert-mail-wildcard` — Any `mail` subdomain of any domain on the server matches
the certificate.
* `localdomain_on_cert-www-wildcard` — Any `www` subdomain of any domain on the server matches the
certificate.
* `localdomain_on_cert` — Any domain on the server matches the certificate.'
enum:
- none
- exact
- exact-wildcard
- mail-wildcard
- www-wildcard
- hostname-wildcard
- hostname
- localdomain_on_cert-mail-wildcard
- localdomain_on_cert-www-wildcard
- localdomain_on_cert
example: none
type: string
cert_valid_not_after:
description: The expiration date of the certificate.
example: 1457452989
format: unix_timestamp
type: integer
is_currently_valid:
description: 'Whether the certificate is currently valid.
* `1` — The certificate is valid.
* `0` — The certificate is **not** valid.
**Note:**
If the certificate is valid, the following statements are true:
* The certificate is **not** self-signed (the `is_self_signed` value is `0`).
* The certificate matches the SSL domain (the `ssldomain_matches_cert` value is `1`).
* The certificate is within its validity period (the `cert_valid_not_after` value is less than the
current time and date).'
enum:
- 0
- 1
example: 0
type: integer
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — The certificate is self-signed.
* `0` — The certificate is **not** self-signed.
**Note:**
For legacy reasons, if the `ssldomain_matches_cert` value is `0`, then the function will **always**
return a value
of `1` for the `is_self_signed return` return, regardless of whether the certificate is actually
self-signed.'
enum:
- 0
- 1
example: 1
type: integer
is_wild_card:
description: 'Whether the service uses a wildcard certificate.
* `1` — The service uses a wildcard certificate.
* `0` — The service does **not** use a wildcard certificate.'
enum:
- 0
- 1
example: 0
type: integer
ssldomain:
description: The domain of the service's SSL certificate.
example: hostname.example.com
format: domain
type: string
ssldomain_matches_cert:
description: 'Whether an SSL-encrypted domain matches the certificate.
* `1` — Matches.
* `0` — Does **not** match.'
enum:
- 0
- 1
example: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_best_ssldomain_for_service
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return SSL-encrypted domain for service access
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_best_ssldomain_for_service \\\n service='whostmgr'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_best_ssldomain_for_service?api.version=1&service=whostmgr
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_commerce:
get:
description: This function returns Sitejet Commerce data.
operationId: get_commerce
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
is_enabled:
description: '* `1` - Sitejet Commerce is enabled.
* `0` - Sitejet Commerce is disabled.'
enum:
- 0
- 1
example: 1
type: integer
storeurl:
description: The current URL of the storefront for purchasing the Sitejet Commerce upgrade.
example: http://www.example-store.com/shop
format: url
type: string
metadata:
properties:
command:
description: The method name called.
example: get_commerce
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Get Commerce Data
tags:
- Sitejet
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n Sitejet/get_commerce\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/Sitejet/get_commerce?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.122'
/get_countries_with_known_ip_ranges:
get:
description: This function lists the country codes available for whitelist and blacklist functions.
operationId: CountryCodes-get_countries_with_known_ip_ranges
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
countries:
description: 'A list of the [ISO 3166-1 alpha-2 country codes](https://www.iso.org/iso-3166-country-codes.html).
You can enter these codes to whitelist or blacklist a country''s
range of IP addresses in the WHM API 1 function `set_cphulk_config_key`.'
items:
properties:
code:
description: A valid [ISO 3166-1 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
example: US
format: ISO-3166-1 (alpha-2)
pattern: ^[A-Z]{2}$
type: string
name:
description: The country's name.
example: United States
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_countries_with_known_ip_ranges
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- `1` — Success.
- `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security country codes
tags:
- cPHulk
- Reporting
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_countries_with_known_ip_ranges\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_countries_with_known_ip_ranges?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '70'
/get_cphulk_brutes:
get:
description: This function lists brute force attack entries from the cPHulk database.
operationId: cPHulk-get_cphulk_brutes
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
brutes:
description: An array of information about each brute force attack.
items:
properties:
exptime:
description: When the login request will time out.
example: '2014-12-07T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The IP address of the login attempt.
example: 192.168.0.1
logintime:
description: When the login attempt occurred.
example: '2014-11-20T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
notes:
description: The login entry's notes.
example: this was a triumph
type: string
timeleft:
description: The number of minutes that remain before cPHulk removes the block.
example: 14
minimum: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_cphulk_brutes
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security brute force attacks
tags:
- cPHulk
- Reporting
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_cphulk_brutes\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_cphulk_brutes?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/get_cphulk_excessive_brutes:
get:
description: This function retrieves excessive brute force attack entries from the cPHulk database.
operationId: cPHulk-get_cphulk_excessive_brutes
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
excessive_brutes:
description: Information about each brute force attack.
items:
properties:
exptime:
description: When the login request will time out.
example: '2014-12-07T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The IP address of the login attempt.
example: 192.168.0.1
logintime:
description: When the login attempt occurred.
example: '2014-11-20T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
notes:
description: The login entry's notes.
example: this was a triumph
type: string
timeleft:
description: The number of minutes that remain before cPHulk removes the block.
example: 14
minimum: 1
type: number
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_cphulk_excessive_brutes
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security excessive brute force attacks
tags:
- cPHulk
- Reporting
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_cphulk_excessive_brutes\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_cphulk_excessive_brutes?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/get_cphulk_failed_logins:
get:
description: This function lists failed login attempt entries from the cPHulk database.
operationId: cPHulk-get_cphulk_failed_logins
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
failed_logins:
description: Information about each failed login attempt.
items:
properties:
authservice:
description: The name of the authentication service that the login attempt used.
example: dovecot
type: string
exptime:
description: When the login request will time out.
example: '2014-12-07T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The login attempt's IP address.
example: 192.168.0.1
logintime:
description: When the login attempt occurred.
example: '2014-11-20T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
service:
description: The login attempt's service. name.
example: ftp
type: string
timeleft:
description: The number of minutes that remain before cPHulk removes the block.
example: 14
minimum: 1
type: integer
user:
description: The login attempt's username.
example: example
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_cphulk_failed_logins
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security failed logins
tags:
- cPHulk
- Reporting
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_cphulk_failed_logins\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_cphulk_failed_logins?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/get_cphulk_user_brutes:
get:
description: This function lists brute force attack entries from the cPHulk database, ordered by user accounts.
operationId: cPHulk-get_cphulk_user_brutes
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
user_brutes:
description: Information about each brute force attempt.
items:
properties:
authservice:
description: The authentication service on which the login attempt occurred.
example: dovecot
type: string
exptime:
description: When the login request will time out.
example: '2014-12-07T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
ip:
anyOf:
- format: ipv4
type: string
- format: ipv6
type: string
description: The IP address of the login attempt.
example: 192.168.0.1
logintime:
description: When the login attempt occurred.
example: '2014-11-20T00:00:00.000Z'
format: ISO-8601 Date Time (Space Separated)
type: string
service:
description: The name of the service on which the login attempt occurred.
example: ftp
type: string
timeleft:
description: The number of minutes that remain before cPHulk removes the block.
example: 14
type: integer
user:
description: The username for which login attempt occurred.
example: example
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_cphulk_user_brutes
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return login security brute force attacks by user
tags:
- cPHulk
- Reporting
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_cphulk_user_brutes\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_cphulk_user_brutes?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.48'
/get_current_lts_expiration_status:
get:
description: This function determines whether a branch's Long-Term Support (LTS) version expires within three months.
For more information about LTS, read our [cPanel Long-Term Support documentation](https://docs.cpanel.net/knowledge-base/cpanel-product/product-versions-and-the-release-process/#more-about-lts).
operationId: Update-get_current_lts_expiration_status
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
expiration:
description: When support for the build version expires.
example: 1585612801
format: unix_timestamp
type: integer
expires_in_next_three_months:
description: 'Whether the LTS version expires within the next three months.
- `1` — LTS expires within the next three months.
- `0` — LTS does **not** expire within the next three months.'
enum:
- 0
- 1
example: 0
type: integer
full_version:
description: The full version number.
example: 11.88.1.11
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_current_lts_expiration_status
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Long Term Support expiration status
tags:
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_current_lts_expiration_status\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_current_lts_expiration_status?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/get_current_profile:
get:
description: 'This function returns details about the server''s current
[cPanel & WHM server profile](https://docs.cpanel.net/whm/server-configuration/server-profile/).'
operationId: Cpanel-get_current_profile
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
code:
description: The code ID of the current profile.
example: MAILNODE
type: string
description:
description: A description about the current profile.
example: This profile provides only services and cPanel features that allow the system to serve mail.
type: string
disabled_roles:
description: The disabled roles of the current profile.
example:
- description: FTP allows users to manage the files associated with their site with an FTP client.
module: FTP
name: FTP
- description: File Storage allows users to access the File Manager and Git™ Version Control features.
module: FileStorage
name: File Storage
- description: MySQL®/MariaDB allows users to create and manage MySQL/MariaDB databases.
module: MySQL
name: MySQL/MariaDB
- description: PostgreSQL allows users to create and manage PostgreSQL databases.
module: Postgres
name: PostgreSQL
- description: Web Disk allows users to manage and manipulate files on the server with multiple types
of devices.
module: WebDisk
name: Web Disk
- description: Web Server allows users to create and manage websites for their domains.
module: WebServer
name: Web Server
items:
properties:
description:
description: The role's description.
type: string
module:
description: The role's module name.
type: string
name:
description: The role's name.
type: string
type: object
type: array
enabled_roles:
description: The current profile's enabled roles.
example:
- description: Calendars and Contacts provides CalDAV and CardDAV services.
module: CalendarContact
name: Calendars and Contacts
- description: Receive Mail allows users to receive email, as well as create and manage their email
accounts.
module: MailReceive
name: Receive Mail
- description: Send Mail allows users to send email.
module: MailSend
name: Send Mail
- description: Local Mail allows the system to process email.
module: MailLocal
name: Local Mail
- description: Webmail provides access to webmail services.
module: Webmail
name: Webmail
items:
properties:
description:
description: The role's description.
type: string
module:
description: The role's module name.
type: string
name:
description: The role's name.
type: string
type: object
type: array
experimental:
description: 'Whether the profile is experimental.
* `1` — Experimental.
* `0` — Not experimental.
**Important:**
We do **not** recommend using experimental profiles on production environments.'
enum:
- 1
- 0
example: 1
type: integer
name:
description: The name of the system's current server profile.
example: Mail
type: string
optional_roles:
description: The optional roles of the current server profile.
example:
- description: DNS allows users to create and edit Domain Name System zone files.
module: DNS
name: DNS
- description: Spam Filter allows users to use Apache SpamAssassin™ to identify, sort, and delete
unsolicited mail.
module: SpamFilter
name: Spam Filter
items:
properties:
description:
description: The role's description.
type: string
module:
description: The role's module name.
type: string
name:
description: The role's name.
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_current_profile
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return server's node profile
tags:
- Server Administration
- Server Profiles
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_current_profile\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_current_profile?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '76'
/get_current_users_count:
get:
description: This function returns the number of cPanel accounts on the server.
operationId: Accounts-get_current_users_count
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
users:
description: The number of cPanel accounts.
example: 100
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_current_users_count
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- `1` - Success
- `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel accounts total number
tags:
- Account Creation
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_current_users_count\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_current_users_count?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/get_database_optimizations:
get:
description: 'This function retrieves available database optimizations.
**Warning:**
On some servers, this function may return a large amount of output. We strongly suggest that you [filter](https://go.cpanel.net/WHMAPI1FilterOutput)
and [sort](https://go.cpanel.net/WHMAPI1SortOutput) the output.
**Important:**
The system **disables** this function when you have **not** configured remote MySQL, and you''ve disabled the MySQL/MariaDB
and PostgreSQL [roles](https://go.cpanel.net/serverroles).'
operationId: DB-get_database_optimizations
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contain my.cnf options and their recommended values.
items:
properties:
name:
description: The name of the option.
example: innodb_sort_buffer_size
type: string
reason:
description: A justification for why the option should be adjusted.
example: Your system's peak theoretical memory allocation is too high and may cause instability.
type: string
value:
description: The recommended option value.
example: 2M
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_database_optimizations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return MySQL database optimizations
tags:
- Databases
- MySQL Databases
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_database_optimizations\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_database_optimizations?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/get_default_dmarc_record:
get:
description: 'This function retrieves the server''s default DMARC record.
The system uses the default DMARC record when creating new accounts or applying DMARC policies that don''t specify
a custom record.'
operationId: EmailAuth-get_default_dmarc_record
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An object that contains the server's default DMARC record.
properties:
record:
description: The server's default DMARC record string.
example: v=DMARC1; p=none;
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_default_dmarc_record
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Get the server's default DMARC record
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_default_dmarc_record\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_default_dmarc_record?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '124'
/get_disk_usage:
get:
description: This function lists the disk usage status of the system's user accounts. This also lists information about
file system object (inode) usage.
operationId: DiskUsage-get_disk_usage
parameters:
- description: 'Each cPanel & WHM server maintains a cache of users’ disk quota
usage. This parameter controls the way this function will use
that cache.
* `on` - Use the quota cache. This is fast, but it may be inaccurate.
* `off` - Ignore the quota cache. This is slower, but it will be more accurate.'
in: query
name: cache_mode
required: false
schema:
default: 'on'
enum:
- 'on'
- 'off'
example: 'on'
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
accounts:
description: A list of objects containing the disk usage data for all accounts on the server.
items:
properties:
blocks_limit:
description: 'The account''s disk space quota, in kibibytes (KiB).
* `null` - The account has unlimited disk space.'
example: null
minimum: 0
nullable: true
type: integer
blocks_used:
description: The account's current disk space usage, in kibibytes (KiB).
example: 2632
minimum: 0
type: integer
inodes_limit:
description: 'The account''s inode quota.
* `null` - The account has an unlimited number of inodes.'
example: 9999
minimum: 0
nullable: true
type: integer
inodes_used:
description: The account's current inode usage.
example: 340
minimum: 0
type: integer
user:
description: The cPanel or Reseller account username.
example: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_disk_usage
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all cPanel accounts disk usage
tags:
- Bandwidth and Disk Quotas
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_disk_usage\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_disk_usage?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_domain_info:
get:
description: This function returns information about each domain on the server.
operationId: Accounts-get_domain_info
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domains:
description: "array of objects representing the domain's data.\n\n**Note:**\n\n This return only includes\
\ domains that you manually created. This does not include service subdomain (proxy subdomains)\
\ or automatically-created domains."
items:
properties:
docroot:
description: The document root for the addon domain. An absolute file path.
example: /home/user1/public_html/example.com
type: string
domain:
description: The account's main domain. A valid domain.
example: example.com
type: string
domain_type:
description: The domain's type.
example: addon
type: string
ipv4:
description: The domain's IPv4 address. A valid IPv4 address.
example: 192.0.2.255
type: string
ipv4_ssl:
description: The domain's secure IPv4 address. A valid IPv4 address.
example: 192.0.2.255
type: string
ipv6:
description: 'The domain''s IPv6 address.
* A valid IPv6 address.
* `null` An IPv6 address does not exist for this domain.'
example: 2001:DB8:g1m:0N3y::1
nullable: true
type: string
ipv6_is_dedicated:
description: 'The domain possesses an IPv6 address.
* `1` An IPv6 address exists for this domain.
* `0` An IPv6 address does not exist for this domain.'
enum:
- 0
- 1
example: 1
type: integer
modsecurity_enabled:
description: 'Whether ModSecurity is enabled on the server.
* `1` ModSecurity is enabled.
* `0` ModSecurity is not enabled.'
enum:
- 0
- 1
example: 1
type: integer
parent_domain:
description: The parent domain. A valid domain name.
example: example.com
type: string
php_version:
description: The installed PHP versions.
example: ea-php54
type: string
port:
description: The server's port number.
example: 80
type: integer
port_ssl:
description: The server's secure port number.
example: 443
type: integer
user:
description: The account username. A cPanel account or reseller username on the server.
example: username
type: string
user_owner:
description: The domain's owner.
example: user1
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_domain_info
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` Success
* `0` Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all domains information
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_domain_info\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_domain_info?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '70'
/get_ecommerce:
get:
deprecated: true
description: This function returns Sitejet Commerce data.
operationId: get_ecommerce
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
is_enabled:
description: '* `1` - Sitejet Commerce is enabled.
* `0` - Sitejet Commerce is disabled.'
enum:
- 0
- 1
example: 1
type: integer
storeurl:
description: The current URL of the storefront for purchasing the Sitejet Commerce upgrade.
example: http://www.example-store.com/shop
format: url
type: string
metadata:
properties:
command:
description: The method name called.
example: get_ecommerce
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Get Ecommerce Data
tags:
- Sitejet
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n Sitejet/get_ecommerce\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/Sitejet/get_ecommerce?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.122'
/get_feature_metadata:
get:
description: This function lists the details of the authenticated user's available feature lists.
operationId: FeatureLists-get_feature_metadata
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
features:
description: An array of objects containing information about a feature.
items:
properties:
id:
description: The feature's ID.
example: addondomains
type: string
is_plugin:
description: 'Whether the feature is a plugin.
* `1` — Plugin.
* `0` — **Not** a plugin.'
enum:
- 1
- 0
example: 0
type: integer
name:
description: The feature's name.
example: Addon Domain Manager
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_feature_metadata
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return current user's available feature lists info
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_feature_metadata\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_feature_metadata?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_feature_names:
get:
description: This function lists all available features.
operationId: FeatureLists-get_feature_names
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
feature:
description: An array of objects that contain a list of available features.
items:
properties:
id:
description: The feature's ID.
example: sslmanager
type: string
name:
description: The feature's name.
example: SSL Manager
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_feature_names
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all features
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_feature_names\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_feature_names?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_featurelist_data:
get:
description: This function lists features in a specific feature list.
operationId: FeatureLists-get_featurelist_data
parameters:
- description: The feature list for which to list information.
in: query
name: featurelist
required: true
schema:
example: '"Mail Only"'
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
featurelist:
description: The feature list's name.
example: Mail Only
type: string
features:
description: An array of objects containing the feature's information.
items:
properties:
dependencies:
description: List of feature names that are required dependencies for this feature to function
properly.
example:
- ssl
- dns
items:
type: string
type: array
id:
description: The feature's ID.
example: email_trace
type: string
name:
description: The feature's name.
example: Email Trace
type: string
is_disabled:
description: 'Whether the feature is disabled.
* `1` — Disabled.
* `0` — **Not** disabled.
**Note:**
* The `disabled` feature list does **not** use this return.
* Users on your server can''t access disabled features. For more
information, read our
[Feature Manager](https://go.cpanel.net/whmdocsFeatureManager)
documentation.'
enum:
- 1
- 0
example: 0
type: integer
is_standalone_experience:
description: 'Whether the system auto-redirects the user to the redirect_url when this feature
is enabled. Only one such feature may be enabled for a feature list.
* `1` — The feature supports standalone mode.
* `0` — The feature does not support standalone mode.'
enum:
- 1
- 0
example: 0
type: integer
badge_label:
description: Custom label shown on the feature manager interfaces. This label will be localized
into the current users language.
example: Auto Launch
type: string
badge_class:
description: CSS class name to apply styling to the custom label in the feature manager interfaces.
example: label-blue
type: string
required_package_extension:
description: The ID of a package extension this feature depends on. Empty if the feature needs
no extension.
example: ai-app-builder
type: string
is_meridian_only:
description: 'Whether this feature is a Meridian (theme-integrated) experience.
* `1` — The feature is Meridian-only.
* `0` — The feature is explicitly **not** Meridian-only.
* `null` — Not explicitly set. The system derives this from
`badge_label` for features shipped before this attribute existed.'
enum:
- 1
- 0
- null
example: null
nullable: true
type: integer
redirect_url:
description: The URL where users should be redirected to when logging into cPanel.
example: https://example.com/standalone
type: string
suppress_plugin_label:
description: 'Whether to suppress the display of the standard ''plugin'' label in the feature
manager.
* `1` — Hide the plugin label.
* `0` — Show the plugin label.'
enum:
- 1
- 0
example: 0
type: integer
only_one_rules:
description: 'Array of regular expression patterns used to enforce mutual exclusion with other
features. When this feature is enabled, any features matching these patterns cannot be enabled
simultaneously. This is primarily used for standalone experiences where only one feature should
redirect users upon login.
Each pattern in the array is a regular expression that matches against feature IDs. For example,
a pattern like `^standalone-.*` would match any feature starting with "standalone-".'
example:
- ^(standalone-email_trace|email_trace)$
- ^standalone-.*$
items:
type: string
type: array
value:
description: 'Whether the feature list includes the feature.
* `1` — The feature list includes this feature.
* `0` — The feature list does **not** include this feature.
**Note:**
The `disabled` feature list uses the **opposite** logic for this return.
* `1` — The `disabled` feature list does **not** include this feature.
* `0` — The `disabled` feature list includes this feature.'
enum:
- 1
- 0
example: 1
type: integer
required:
- id
- is_disabled
- value
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_featurelist_data
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return feature list configuration
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_featurelist_data \\\n featurelist='Mail Only'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_featurelist_data?api.version=1&featurelist=%22Mail%20Only%22
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_featurelists:
get:
description: 'This function lists the authenticated user''s available feature lists.
**Notes:**
* When you call this function with the `root` account, it returns **all** feature lists on the server.
* When you call this function with a reseller account, it **only** returns feature lists that the account owns.'
operationId: FeatureLists-get_featurelists
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
featurelists:
description: An array of available feature lists.
example:
- default
- disabled
- reseller1_test1
- reseller1_test2
items:
example: default
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_featurelists
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return current user's available feature lists
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_featurelists\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_featurelists?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/get_featurelists_by_package_types:
get:
description: This function lists features grouped by package type.
operationId: FeatureLists-get_featurelists_by_package_types
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
example:
package_types_feature_lists:
nova:
- __default_nova
- nova_custom
standard:
- Mail Only
- default
- disabled
- basic_plan
properties:
package_types_feature_lists:
description: An object that contains package types as keys and arrays of feature list names as values.
properties:
nova:
description: An array of feature list names associated with this package type.
items:
type: string
type: array
standard:
description: An array of feature list names associated with this package type.
items:
type: string
type: array
required:
- standard
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_featurelists_by_package_types
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return feature lists by package type
tags:
- Packages
- Feature Lists
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_featurelists_by_package_types\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_featurelists_by_package_types?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_fpm_count_and_utilization:
get:
description: 'This function provides information that will help you to determine
whether your server can handle the workload if you enable PHP-FPM for all domains.
**Important:**
When you disable the
[Web Server role](https://go.cpanel.net/howtouseserverprofiles),
the system **disables** this function.
**Warning:**
We **strongly** recommend that you only activate Apache PHP-FPM if your server
has at least 2 GB of RAM available, or at least 30 MB of RAM per domain. If you enable
PHP-FPM on a server with less than the required RAM, your server may experience severe
performance issues.'
operationId: PHP-get_fpm_count_and_utilization
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
domains_to_be_enabled:
description: The number of domains that you will enable with PHP-FPM when you run the `/scripts/php_fpm_config_convert`
script.
example: 2
minimum: 0
type: integer
domains_using_fpm:
description: The number of domains with PHP-FPM enabled.
example: 20
minimum: 0
type: integer
memory_needed:
description: The approximate number of megabytes of memory that your system will require to convert
the remaining domains to PHP-FPM.
example: 90000
format: megabytes
minimum: 0
type: integer
number_of_new_fpm_accounts_we_can_handle:
description: The approximate number of domains on which you can enable PHP-FPM without a server overload.
example: 8
minimum: 0
type: integer
show_warning:
description: 'Whether you **may** overload your server when you convert all domains
to PHP-FPM.
* `1` — **High** risk of server overload when you enable PHP-FPM.
* `0` — **Low** risk of server overload when you enable PHP-FPM.'
enum:
- 1
- 0
example: 0
type: integer
total_domains:
description: The total number of domains on the server.
example: 22
minimum: 0
type: integer
metadata:
properties:
command:
description: The method name called.
example: get_fpm_count_and_utilization
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return workload data for PHP-FPM on all domains
tags:
- PHP-FPM
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_fpm_count_and_utilization\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_fpm_count_and_utilization?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '66'
/get_homedir_roots:
get:
description: 'This function returns all the directories where the system stores
users'' home directories. It returns them in descending order, based on the
current amount of available free disk space for each directory. For example,
the first directory the function lists has the most available free disk space.
**Note:**
Use WHM''s Basic WebHost Manager Setup (WHM >> Home >> Server Configuration >> Basic WebHost Manager Setup) to configure
where the system will create a new user''s home directory.'
operationId: Accounts-get_homedir_roots
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array containing data for each home parent directory. This array contains the path
return.
items:
properties:
path:
description: directory where the system can store users' home directories. A valid directory
path.
example: /home
format: local_path
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_homedir_roots
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return home directories list
tags:
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_homedir_roots\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_homedir_roots?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/get_in_product_survey_url:
get:
description: This function returns whether to display the in-product survey banner and the survey link.
operationId: InProductSurvey-get_in_product_survey_url
parameters: []
responses:
'200':
description: HTTP Request was successful.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
display:
type: string
enum:
- '0'
- '1'
example: '1'
description: 'Indicates whether the banner should be displayed.
* `1` — Display the banner.
* `0` — Do not display the banner.'
link:
type: string
example: https://example.com/survey?token=ABC123
description: The fully-resolved survey URL.
max_dismiss:
type: string
example: '3'
description: Maximum number of times the banner may be dismissed before it is suppressed.
new_user:
type: string
enum:
- '0'
- '1'
example: '0'
description: 'Indicates whether the authenticated user is considered new.
* `1` — New user.
* `0` — Existing user.'
submit_event:
type: string
example: survey_submitted
description: Event identifier emitted on successful survey submission for analytics.
server_type:
type: string
example: whm
description: Product/server type identifier.
user_type:
type: string
enum:
- whm
example: whm
description: The user context type. Always "whm" for this endpoint.
metadata:
properties:
command:
type: string
example: get_in_product_survey_url
description: The method name called.
reason:
type: string
example: OK
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
result:
type: integer
enum:
- 0
- 1
example: 1
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
version:
type: integer
example: 1
description: The version of the API function.
summary: Get in-product survey URL
tags:
- InProductSurvey
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_in_product_survey_url"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_in_product_survey_url?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_integration_link_user_config:
get:
description: This function retrieves configuration information about a specified integration link in a specified user's
cPanel interface.
operationId: Integration-get_integration_link_user_config
parameters:
- description: 'The integration link''s app name.
**Warning:**
If you create a link with an app value that already exists, the function will replace the existing link with the
newly-created link.'
in: query
name: app
required: true
schema:
example: WHMCS_billing
type: string
- description: The cPanel account name.
in: query
name: user
required: true
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
userconfig:
description: An object with information about the user's integration link.
properties:
app:
description: The application to link.
example: WHMCS_billing
type: string
autologin_token_url:
description: 'A publicly-available URL to which the server will send the
`app`, `token`, `user`, and `subscriber_unique_id` values through
an HTTP POST request. The destination server will respond
with a JSON-encoded object with either a `redirect_url`
key or the `retry` and `attempt` keys.
* If the response contains `redirect_url`, the system will redirect
the user to that URL (for example, `{"redirect_url":"http://www.whmcs.com/client_area/login/?one_time_user_token_that_expires_in_120_seconds=d41d8cd98f00}`
will send the user to that URL).
* If the response contains `retry` and `attempt`, the system will wait for
the `retry` value in seconds for a maximum of 60 seconds
and then attempt the call again. The `attempt` value indicates
the number of attempts that the system tried. The system
will stop after three attempts (for example, `{"retry":30,
"attempt":2}` represents the second attempt to connect,
and the system will pause the user for 30 seconds before
it tries again).'
example: http://www.example.com/login.cgi
format: url
type: string
base64_png_image:
description: The image to display for the application on the cPanel *Home* interface.
example: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA%2fwD%2fAP%2bgvaeTAAAACXBIWXMAAABIAAAASABGyWs%2bAAALVUlEQVRo3sWZe3BU1R3HP79z793dZAPkBYIg4RUSBKkIEfCNog5WbaWOHevUWttOVXxVtFWctmpb2xGptVOt1ken1bbSVsVSxVba8UkrsRIxYhbRJEqRVxJCErK7d%2b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Obkak%2f%2bfZNdCFSTbDRRQ4D3MuWo%2fZ0TUtr493BsRHA7OBE4P%2fiz7CGK4Sq%2fmcv%2f7Qe%2bi089F6oMeFXWgeJqlN7FdONybRlGKuhwpBOngkEFjI%2bauHOYWLBOPEQuZ%2fTkn0wm63ve3eBT5KBk5euPP%2fYBbwMsyFwobgacTUMvfQfx00FCIU5t8hjqwFrg%2bEzMGsw4VAhSCrtN7fticJuw%2b0HPTj3Cg0ArOP3UF%2fVZjFncDyYRArFL2YauBJgJHOOErs0WpncktZxu%2bt8NEtvs6kF429lqVVd%2bUXMBhCwuLAnzDF2KeBW4Fbsi%2fDSY6FRoPJmEX4aeF4gvOj4WJQATn3A%2fMYeJuYRS%2bmTP4XQ1eouzAHYBvg4D0jJvtPBgbE%2bI8lIAQbk5lzo0kaE%2f8vBD6LqZ3yZdVOTNY9D%2bPr6%2fK0OYxBLjM%2bCQGCCaXhCz0XE5VuCwh2AP8g%2fyy0YCx%2fIPj7GmB9TptmYI8Su%2b80%2b2MLCC0kF3Pd8yVMcbUfeAiz8MKEtwEf5OmqAdgben8XU%2b0%2bD%2bzGXBZ%2bAfiLr93gzrJwFNQ6tB7KMHF6M7B34D0xEeDXgdAs%2fIDsvVmjhNpXY0qYTUDqo5blw72p7yB07Li8Ps6quh6uqy9GUGngVQ0X0D%2bz7YJuAOk77wkRDW8tPzIKEnAo60RVORErhq%2b9dUrsKIgjIL722l0%2fucVSDh2pDwoZatj4H%2bRdIAdHBVWZAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE1LTA5LTAyVDEyOjM5OjQ4LTA1OjAwppVa9QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNS0wOS0wMlQxMjozOTo0OC0wNTowMNfI4kkAAAAASUVORK5CYII%3d
format: base64 image
type: string
implements:
description: 'The service for which to implement authentication. The `implements` value is a string
from the WHM API 1 `get_users_links` function. Typically, this function returns one of the following
values:
* `billing` — This link appears in the user menu.
* `customer_service` — This link appears in the user menu.
* `support` — This link appears in the user menu.
* `upgrade` — This link appears in the user menu and context-sensitive areas when the user may
require more of a resource.'
example: billing
type: string
label:
description: The label to display for the application on the cPanel *Home* interface.
example: WHMCS Billing
type: string
subscriber_unique_id:
description: The subscriber's unique ID that the system will present to the URL in the `autologin_token_url`
endpoint.
example: '1234'
type: string
url:
description: 'A publicly-available URL to which to send the user if the
location in the `autologin_token_url` parameter does not
respond.'
example: http://www.example.com
format: url
type: string
user:
description: The cPanel account name.
example: username
format: username
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_integration_link_user_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return integration link configuration
tags:
- Integration
- Links
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_integration_link_user_config \\\n user='username' \\\n app='WHMCS_billing'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_integration_link_user_config?api.version=1&user=username&app=WHMCS_billing
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/get_linked_server_node:
get:
description: This function returns details about a linked remote server node.
operationId: Cpanel-get_linked_server_node
parameters:
- description: The name of a linked remote server node.
in: query
name: alias
required: true
schema:
example: example
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
enabled_services:
description: The services enabled on the linked remote server node.
items:
example: apache_php_fpm
type: string
type: array
hostname:
description: The remote server node's hostname.
example: example.com
format: domain
type: string
last_check:
description: The last time that the server queried the current status of the remote server node.
example: 1556576165
format: unix_timestamp
type: integer
system_settings:
additionalProperties:
type: object
description: 'A list of the `worker_capabilities` return''s system settings.
The key is a role name and the value is an object with system settings for the role.'
example:
Mail:
globalspamassassin: 0
tls_verified:
description: 'Whether the remote server node has a valid SSL certificate.
* `1` - The remote server node has a valid SSL certificate.
* `0` - The remote server node does not have a valid SSL certificate.'
enum:
- 0
- 1
example: 1
type: integer
username:
description: The username required to make API calls to the linked remote server node.
example: root
format: username
type: string
version:
description: The version of cPanel & WHM installed on the remote server node.
example: 11.86.0.0
type: string
worker_capabilities:
additionalProperties:
type: object
description: 'A group of services required for a remote server node to perform a specific task. The
key is a role name
and the value is an object with required options for the role.'
example:
Mail: {}
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_linked_server_node
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return linked remote server node settings
tags:
- Server Administration
- Server Nodes
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_linked_server_node \\\n alias='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_linked_server_node?api.version=1&alias=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_login_url:
get:
description: 'This function retrieves the login URL for the cPanel Store or a
cPanel Market provider.'
operationId: Market-get_login_url
parameters:
- description: The cPanel Store or cPanel Market provider's name.
in: query
name: provider
required: true
schema:
example: cPStore
type: string
- description: 'The location to which the cPanel Store or cPanel Market provider
redirects the user''s browser after they log in.'
in: query
name: url_after_login
required: true
schema:
example: http://hostname.example.com/redirectionlocation.cgi?state
format: url
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: The URL to which to redirect the browser after login.
example: https://account.cpanel.net/oauth2/auth/login?client_id=d5eff4a09e29d5b20752674c0ab2c799c428eb23df4db2df10a5c9d96c37472c76013a41e9a0c714e852965ceaed2e8e05e2f738bc27ee562cfb683fbfc75a01&email=&redirect_uri=http%3A%2F%2Fhostname.example.com%2Fredirectionlocation.cgi%3Fstate&response_type=token
format: url
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_login_url
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel Store or cPanel Market login URL
tags:
- Authentication
- Login URL
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_login_url \\\n provider='cPStore' \\\n url_after_login='http://hostname.example.com/redirectionlocation.cgi?state'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_login_url?api.version=1&provider=cPStore&url_after_login=http%3a%2f%2fhostname.example.com%2fredirectionlocation.cgi%3fstate
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/get_lts_wexpire:
get:
description: This function parses the `/etc/cpanel/TIERS.json` file and returns whether a branch qualifies for Long-Term
Support (LTS). For more information about LTS, read our [cPanel Long-Term Support](https://go.cpanel.net/cpanel-lts)
documentation.
operationId: Update-get_lts_wexpire
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
branch:
additionalProperties:
description: The branch.
items:
properties:
build:
description: The build version number.
example: 11.90.0.5
type: string
is_main:
description: 'Whether the build represents the main build of the branch.
* `1` - The build is the main build of the branch.
* `0` - The build is **not** the main build of the branch.
**Note:**
This will be `1` for exactly one of the entries in this array.'
enum:
- 0
- 1
example: 0
type: integer
type: object
type: array
description: An object that lists information about available branch builds.
example:
11.78.0:
- build: 11.78.0.49
is_main: 1
11.80.0:
- build: 11.80.0.24
is_main: 1
11.82.0:
- build: 11.82.0.19
is_main: 1
11.84.0:
- build: 11.84.0.22
is_main: 1
11.86.0:
- build: 11.86.0.25
is_main: 1
11.88.0:
- build: 11.88.0.14
is_main: 1
11.90.0:
- build: 11.90.0.5
is_main: 1
type: object
flags:
additionalProperties:
description: 'Feature or flag in the output format.
* `1` - Feature is present in the returned data.
* `0` - Feature is **not** present in the returned data.'
enum:
- 0
- 1
type: integer
description: An object containing Features or flags supported by this output.
example:
is_main: 1
type: object
tiers:
additionalProperties:
description: The release tier.
items:
properties:
build:
description: The build version number.
type: string
expires:
description: 'When WebPros International, LLC support for the build version expires.
Encoded as a Unix Timestamp.
**Note:**
This item is only present when the version is LTS.'
example: '1617148801'
type: string
is_lts:
description: 'Whether cPanel offers this version as LTS.
* `1` — Long-term support.
* `0` — No Long-term support.
**Note:**
This item is only present when the version is LTS.'
enum:
- 1
example: 1
type: integer
is_main:
description: 'Whether the build represents the main build of the tier.
* `1` - The build is the main build of the tier.
* `0` - The build is **not** the main build of the tier.
**Note:**
This will be `1` for exactly one of the entries in this array.'
enum:
- 0
- 1
example: 1
type: integer
named:
description: 'The release tier or tiers which currently offer this branch, if applicable.
**Note:**
This item is only present when the version is part of a named tier.'
example:
- edge
- current
- release
items:
enum:
- edge
- current
- release
- stable
- lts
type: string
type: array
type: object
type: array
description: An object that lists information about build versions in release tiers.
example:
'11.78':
- build: 11.78.0.49
expires: '1588636799'
is_lts: 1
is_main: 1
'11.80':
- build: 11.80.0.24
is_main: 1
'11.82':
- build: 11.82.0.19
is_main: 1
'11.84':
- build: 11.84.0.22
is_main: 1
'11.86':
- build: 11.86.0.25
expires: '1617148801'
is_lts: 1
is_main: 1
named:
- lts
'11.88':
- build: 11.88.0.13
is_main: 0
named:
- stable
- build: 11.88.0.14
is_main: 1
'11.90':
- build: 11.90.0.5
is_main: 1
named:
- current
- edge
- release
type: object
metadata:
properties:
command:
description: The method name called.
example: get_lts_wexpire
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Long Term Support status for all versions
tags:
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_lts_wexpire\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_lts_wexpire?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/get_mailbox_status:
get:
description: "This function lists the status of a cPanel's mail account's mailboxes.\n\n**Important:**\n\n When you\
\ disable the [*Receive Mail* role](https://go.cpanel.net/howtouseserverprofiles#roles), the system **disables** this\
\ function."
operationId: Mailboxes-get_mailbox_status
parameters:
- description: 'An email account or cPanel account''s username.
**Note:**
`_mainaccount` is an alias representing the cPanel user''s mailbox (for example, `_mainaccount@example.com represents
the example mailbox.)'
in: query
name: account
required: true
schema:
example: user@example.com
oneOf:
- format: email
type: string
- format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: 'An object containing information about the mailbox''s contents.
**Note:**
The mailbox name is the return''s name.'
properties:
guid:
description: The mailbox globally unique identifier (GUID).
example: 1234560f0c58d158c92a000044f0d230
type: string
messages:
description: The total number of messages in the mailbox.
example: 0
minimum: 0
type: integer
vsize:
description: The total virtual size of the mailbox's contents with `CRLF` line terminators.
example: 0
format: bytes
minimum: 0
type: integer
type: object
example:
INBOX:
guid: 111111234560f0c58d158c92a000044f
messages: 42000
vsize: 42
INBOX.Drafts:
guid: 11111111234560f0c58d158c92a00000
messages: 5
vsize: 522
INBOX.Sent:
guid: 1111111234560f0c58d158c92a000004
messages: 1
vsize: 56
INBOX.Trash:
guid: 1111234560f0c58d158c92a000044f0d
messages: 2001
vsize: 5643
INBOX.angel_face@example_com:
guid: 11234560f0c58d158c92a000044f0d23
messages: 3
vsize: 1524
INBOX.marla_singer@example_com:
guid: 1234560f0c58d158c92a000044f0d230
messages: 5
vsize: 100
INBOX.narrator@example_com:
guid: 11111234560f0c58d158c92a000044f0
messages: 0
vsize: 0
INBOX.robert_paulsen@example_com:
guid: 111111111234560f0c58d158c92a0001
messages: 2
vsize: 2222
INBOX.tyler_durden@example_com:
guid: 111234560f0c58d158c92a000044f0d2
messages: 55
vsize: 12244
type: object
metadata:
properties:
command:
description: The method name called.
example: get_mailbox_status
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account mailboxes status by name
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_mailbox_status \\\n account='user@example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_mailbox_status?api.version=1&account=user%40example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_mailbox_status_list:
get:
description: "This function lists the status of a cPanel's mail account's mailboxes.\n\n**Important:**\n\n When you\
\ disable the [Receive Mail role](https://go.cpanel.net/howtouseserverprofiles#roles), the system **disables** this\
\ function."
operationId: Mailboxes-get_mailbox_status_list
parameters:
- description: The email account's name.
example: user@example.com
in: query
name: account
required: true
schema:
anyOf:
- description: A valid email account that exists on the server
example: user@example.com
format: email
type: string
- description: The cPanel user's account name.
example: example
format: username
type: string
- description: An alias that represents the cPanel user's mailbox
example: _mainaccount@example.com
format: email
type: string
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
mailboxes:
description: An array that contains information about the mailbox's contents.
items:
properties:
guid:
description: The alpha-numeric 32-byte mailbox GUID.
example: 1234560f0c58d158c92a000044f0d230
type: string
mailbox:
description: The mailbox name.
example: INBOX.marla_singer@example_com
type: string
messages:
description: The total number of messages in the mailbox.
example: 0
minimum: 0
type: integer
vsize:
description: The total virtual size of the mailbox's contents, computed with CRLF line terminators.
example: 0
format: bytes
minimum: 0
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_mailbox_status_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account mailboxes status list
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_mailbox_status_list \\\n account='user@example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_mailbox_status_list?api.version=1&account=user%40example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/get_market_providers_commission_config:
get:
description: This function returns the commission configuration of all available cPanel Market providers.
operationId: Market-get_market_providers_commission_config
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains commission ID information about a cPanel Market provider.
items:
properties:
local_commission_id:
description: The locally-cached commission ID that the server owner uses for the cPanel Market
provider.
example: user@example.com
format: email
type: string
provider_display_name:
description: The cPanel Market provider's display name.
example: cPanel Store
type: string
provider_name:
description: The cPanel Market provider's name.
example: cPStore
type: string
remote_commission_id:
description: The commission ID that the server owner uses for the cPanel Market provider.
example: user@example.com
format: email
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_market_providers_commission_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Market providers' commission configuration
tags:
- Market
- Provider Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_market_providers_commission_config\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_market_providers_commission_config?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_market_providers_list:
get:
description: This function lists the available cPanel Market providers.
operationId: Market-get_market_providers_list
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects with information about each cPanel Market provider.
items:
properties:
display_name:
description: The cPanel Market provider's display name.
example: cPanel Store
type: string
enabled:
description: 'Whether the cPanel Market provider is enabled.
* `1` - Enabled.
* `0` - Disabled.'
enum:
- 0
- 1
example: 1
type: integer
even_commission_divisor:
description: "The price of the Market provider's products must be a multiple of this value.\n\
\n**Note:**\n\n This function returns the even_commission_divisor value only if the `supports_commission`\
\ value is `1`."
example: 6
type: integer
name:
description: The cPanel Market provider's name.
example: cPStore
type: string
supports_commission:
description: 'Whether the cPanel Market provider supports sales commissions.
* `1` - The provider supports commissions.
* `0` - The provider does **not** support commissions.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_market_providers_list
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Market providers
tags:
- Market
- Provider Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_market_providers_list\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_market_providers_list?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_market_providers_product_metadata:
get:
description: "This function lists all available cPanel Market providers' products and the attributes of\neach product\
\ that can be managed by an administrator.\n\nThe return list includes different `attribute` data depending the `product_group`\
\ for each product.\n\n\n \n | Product Group | \n Attributes Returned | \n Description | \n\
\
\n \n | ssl_certificate | \n SSLMarketProviderMetaData | \n Contains additional\
\ attributes only applicable to SSL Certificates | \n
\n \n | * | \n MarketProviderMetaData | \n\
\ Any products not in a product_group listed above will include only these attributes. | \n\
\
\n
\n\n**Note:**\n\nThe function does **not** return the `product_group` name.\n\nTo get the `product_group`\
\ name for a `product_id`, run WHM API 1's [`get_market_providers_products`](https://go.cpanel.net/Market-get-market-providers-products)\
\ function."
operationId: Market-get_market_providers_product_metadata
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
product_metadata:
items:
properties:
attributes:
oneOf:
- $ref: '#/components/schemas/MarketProviderMetaData'
- $ref: '#/components/schemas/SSLMarketProviderMetaData'
product_id:
description: The product's ID.
example: '123'
type: string
provider_display_name:
description: The cPanel Market provider's display name.
example: cPanel Store
type: string
provider_name:
description: The cPanel Market provider's name.
example: cPStore
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_market_providers_product_metadata
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Market providers' products metadata
tags:
- Market
- Product Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_market_providers_product_metadata\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_market_providers_product_metadata?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_market_providers_products:
get:
description: This function lists products available in the server's cPanel Market.
operationId: Market-get_market_providers_products
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
products:
description: 'A list of the products in the cPanel Market.
**Note:**
Additional returns that correspond to each product may appear.'
example:
- base_name: ''
billing_type: one-time
description: An extended-validated (EV) SSL certificate signed by COMODO.
display_name: Comodo EV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo EV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '155'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
- description: Consult the EV SSL Certificate Guidelines (https://cabforum.org/extended-validation/)
for more information about this field’s options.
label: Business Category
name: business_category
options:
- - b
- Incorporated Business (“Private Organization”)
- - d
- Non-incorporated Business (“Business Entity”)
- - c
- Government Entity (“Government Entity”)
type: choose_one
- is_optional: 1
label: City Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_locality_name
- is_optional: 1
label: State or Province Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_state_or_province_name
- label: Country Code Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_country_name
type: country_code
- is_optional: 1
label: Date of Incorporation
name: date_of_incorporation
type: date
- is_optional: 1
label: Assumed Name (DBA (Doing Business As))
name: assumed_name
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 108
x_price_per_domain_maximum: 1080
x_price_per_domain_minimum: 108
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ev
x_warn_after: 604800
- base_name: ''
billing_type: one-time
description: A 2-year extended-validated (EV) SSL certificate signed by Comodo.
display_name: 2-Year Comodo EV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo EV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '261'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
- description: Consult the EV SSL Certificate Guidelines (https://cabforum.org/extended-validation/)
for more information about this field’s options.
label: Business Category
name: business_category
options:
- - b
- Incorporated Business (“Private Organization”)
- - d
- Non-incorporated Business (“Business Entity”)
- - c
- Government Entity (“Government Entity”)
type: choose_one
- is_optional: 1
label: City Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_locality_name
- is_optional: 1
label: State or Province Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_state_or_province_name
- label: Country Code Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_country_name
type: country_code
- is_optional: 1
label: Date of Incorporation
name: date_of_incorporation
type: date
- is_optional: 1
label: Assumed Name (DBA (Doing Business As))
name: assumed_name
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 216
x_price_per_domain_maximum: 2160
x_price_per_domain_minimum: 216
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ev
x_warn_after: 604800
- base_name: ''
billing_type: one-time
description: An organization-validated (OV) SSL certificate signed by COMODO.
display_name: Comodo OV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo OV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '217'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 36
x_price_per_domain_maximum: 360
x_price_per_domain_minimum: 36
x_price_per_wildcard_domain: '150.00'
x_price_per_wildcard_domain_maximum: '1500.00'
x_price_per_wildcard_domain_minimum: '150.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ov
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A 2-year organization-validated (OV) SSL certificate signed by Comodo.
display_name: 2-Year Comodo OV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo OV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '253'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 72
x_price_per_domain_maximum: 720
x_price_per_domain_minimum: 72
x_price_per_wildcard_domain: '300.00'
x_price_per_wildcard_domain_maximum: '3000.00'
x_price_per_wildcard_domain_minimum: '300.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ov
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A domain-validated (DV) SSL certificate signed by cPanel.
display_name: cPanel DV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05LjUwNCA1LjA5Ni0xNS4zIDUuMDk2aC0zMS41Yy03LjIgMC0xMy41NSAyLjEwMi0xOS4wNSA2LjMtNS41MDUgNC4yLTkuMzUzIDkuOTA0LTExLjU1MiAxNy4xMDMtMS40IDUuNDAzLTEuNTUgMTAuNS0uNDUgMTUuMzAyIDEuMDk4IDQuNzk2IDMuMDQ3IDkuMDUgNS44NTIgMTIuNzUgMi43OTcgMy43MDMgNi40IDYuNjUyIDEwLjc5NyA4Ljg1IDQuMzk3IDIuMiA5LjE5OCAzLjI5OCAxNC40IDMuMjk4aDE5LjJjMy42MDIgMCA2LjU0NyAxLjQ1MyA4Ljg1MiA0LjM1MiAyLjI5NyAyLjkwMiAyLjk0NSA2LjE0OCAxLjk1IDkuNzVsLTEyIDQ0LjM5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TAyIDE1LjMwMi01LjEwMmgxNy4zOThjNy4yIDAgMTMuNjUzLTIuMiAxOS4zNTItNi41OTcgNS42OTUtNC4zOTggOS40NDUtMTAuMDk3IDExLjI1LTE3LjEgMS4zOTQtNC45OTcgMS41NDctOS45LjQ0NS0xNC43LTEuMS00LjgtMy4wNS05LjA0Ny01Ljg0OC0xMi43NS0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel DV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '159'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification: null
x_max_http_redirects: 0
x_payment_trigger: issuance
x_price_per_domain: 9
x_price_per_domain_maximum: 30
x_price_per_domain_minimum: 3
x_price_per_wildcard_domain: '75.00'
x_price_per_wildcard_domain_maximum: '750.00'
x_price_per_wildcard_domain_minimum: '75.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: dv
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A 2-year domain-validated (DV) SSL certificate signed by cPanel.
display_name: 2-Year cPanel DV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRo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users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel DV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '225'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification: null
x_max_http_redirects: 0
x_payment_trigger: issuance
x_price_per_domain: 18
x_price_per_domain_maximum: 60
x_price_per_domain_minimum: 6
x_price_per_wildcard_domain: '150.00'
x_price_per_wildcard_domain_maximum: '1500.00'
x_price_per_wildcard_domain_minimum: '150.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: dv
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: An organization-validated (OV) SSL certificate signed by cPanel.
display_name: cPanel OV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05LjUwNCA1LjA5Ni0xNS4zIDUuMDk2aC0zMS41Yy03LjIgMC0xMy41NSAyLjEwMi0xOS4wNSA2LjMtNS41MDUgNC4yLTkuMzUzIDkuOTA0LTExLjU1MiAxNy4xMDMtMS40IDUuNDAzLTEuNTUgMTAuNS0uNDUgMTUuMzAyIDEuMDk4IDQuNzk2IDMuMDQ3IDkuMDUgNS44NTIgMTIuNzUgMi43OTcgMy43MDMgNi40IDYuNjUyIDEwLjc5NyA4Ljg1IDQuMzk3IDIuMiA5LjE5OCAzLjI5OCAxNC40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LjIwNC0xOC44MDUgNC44MDUtMjguODA1IDQuODA1aC01NC4yOTdsMTAuOC00MC41YzEuNi01LjQwMiA0LjYtOS44IDktMTMuMjAzIDQuMzk2LTMuMzk4IDkuNDk3LTUuMTAyIDE1LjMwMi01LjEwMmgxNy4zOThjNy4yIDAgMTMuNjUzLTIuMiAxOS4zNTItNi41OTcgNS42OTUtNC4zOTggOS40NDUtMTAuMDk3IDExLjI1LTE3LjEgMS4zOTQtNC45OTcgMS41NDctOS45LjQ0NS0xNC43LTEuMS00LjgtMy4wNS05LjA0Ny01Ljg0OC0xMi43NS0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel OV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '213'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 30
x_price_per_domain_maximum: 300
x_price_per_domain_minimum: 30
x_price_per_wildcard_domain: '99.00'
x_price_per_wildcard_domain_maximum: '990.00'
x_price_per_wildcard_domain_minimum: '99.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ov
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A 2-year organization-validated (OV) SSL certificate signed by cPanel.
display_name: 2-Year cPanel OV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05LjUwNCA1LjA5Ni0xNS4zIDUuMDk2aC0zMS41Yy03LjIgMC0xMy41NSAyLjEwMi0xOS4wNSA2LjMtNS41MDUgNC4yLTkuMzUzIDkuOTA0LTExLjU1MiAxNy4xMDMtMS40IDUuNDAzLTEuNTUgMTAuNS0uNDUgMTUuMzAyIDEuMDk4IDQuNzk2IDMuMDQ3IDkuMDUgNS44NTIgMTIuNzUgMi43OTcgMy43MDMgNi40IDYuNjUyIDEwLjc5NyA4Ljg1IDQuMzk3IDIuMiA5LjE5OCAzLjI5OCAxNC40IDMuMjk4aDE5LjJjMy42MDIgMCA2LjU0NyAxLjQ1MyA4Ljg1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uOC00MC41YzEuNi01LjQwMiA0LjYtOS44IDktMTMuMjAzIDQuMzk2LTMuMzk4IDkuNDk3LTUuMTAyIDE1LjMwMi01LjEwMmgxNy4zOThjNy4yIDAgMTMuNjUzLTIuMiAxOS4zNTItNi41OTcgNS42OTUtNC4zOTggOS40NDUtMTAuMDk3IDExLjI1LTE3LjEgMS4zOTQtNC45OTcgMS41NDctOS45LjQ0NS0xNC43LTEuMS00LjgtMy4wNS05LjA0Ny01Ljg0OC0xMi43NS0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel OV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '233'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 60
x_price_per_domain_maximum: 600
x_price_per_domain_minimum: 60
x_price_per_wildcard_domain: '198.00'
x_price_per_wildcard_domain_maximum: '1980.00'
x_price_per_wildcard_domain_minimum: '198.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ov
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A domain-validated (DV) SSL certificate signed by COMODO.
display_name: Comodo DV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo DV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '151'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification: null
x_max_http_redirects: 0
x_payment_trigger: issuance
x_price_per_domain: 12
x_price_per_domain_maximum: 120
x_price_per_domain_minimum: 12
x_price_per_wildcard_domain: '99.00'
x_price_per_wildcard_domain_maximum: '990.00'
x_price_per_wildcard_domain_minimum: '99.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: dv
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: A 2-year domain-validated (DV) SSL certificate signed by Comodo.
display_name: 2-Year Comodo DV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNTUwIiB3aWR0aD0iNDE3LjE2Ij48ZyBmaWxsPSIjMzViNTZjIj48cGF0aCBkPSJNNDE0LjM5NiAyNmM3LTExIDAtMjYtMTMtMjZIMTg3LjM5NWMtNDUgMC04MSAxMi0xMDcgMzZzLTQyIDU4LTQ2IDEwM2wtMTAgMTE2Yy00IDQ1IDUgNzkgMjggMTAzIDIyIDI0IDU2IDM2IDEwMSAzNmg0OXYtMWM5LjAwMS0xIDE1LjAwMS03IDE2LjAwMS0xN2w1LTU3YzAtMTEtNy0xOS0xOC4wMDEtMTloLTI3Yy0xNyAwLTMwLTQtMzctMTItNy03LTEwLTIwLTgtMzlsOS0xMDRjMi0xOCA3LTMxIDE1LTM5czIxLTEyIDM5LTEyaDE0NC4wMDFjMTcgMCAzNC05IDQ0LTIzbDMwLTQ1Ii8+PHBhdGggZD0iTTMuMzk1IDUyNGMtOCAxMS0xIDI2IDEyIDI2aDIxNy4wMDFjNDUgMCA4MS0xMiAxMDgtMzYgMjYtMjQgNDEtNTggNDUtMTAybDExLTExN2MzLTQ1LTYtNzktMjgtMTAzLTIzLTI0LTU2LTM2LTEwMS0zNmgtNDl2MWMtMTAuMDAxIDEtMTUuMDAxIDctMTYuMDAxIDE3bC01IDU4Yy0xIDEwIDcgMTggMTcuMDAxIDE4aDI3YzE4IDAgMzAgNCAzNyAxMnMxMCAyMSA5IDM5bC0xMCAxMDRjLTEgMTktNiAzMi0xNCAzOS05IDgtMjIgMTItNDAgMTJINzYuMzk1Yy0xNyAwLTMzIDktNDMgMjRsLTMwIDQ0Ii8+PC9nPjwvc3ZnPg==
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: Comodo DV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '245'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification: null
x_max_http_redirects: 0
x_payment_trigger: issuance
x_price_per_domain: 24
x_price_per_domain_maximum: 240
x_price_per_domain_minimum: 24
x_price_per_wildcard_domain: '198.00'
x_price_per_wildcard_domain_maximum: '1980.00'
x_price_per_wildcard_domain_minimum: '198.00'
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: dv
x_warn_after: 604800
x_wildcard_parent_domain_free: 1
- base_name: ''
billing_type: one-time
description: An extended-validated (EV) SSL certificate signed by cPanel.
display_name: cPanel EV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGV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ZnPgo=
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel EV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '209'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '1'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
- description: Consult the EV SSL Certificate Guidelines (https://cabforum.org/extended-validation/)
for more information about this field’s options.
label: Business Category
name: business_category
options:
- - b
- Incorporated Business (“Private Organization”)
- - d
- Non-incorporated Business (“Business Entity”)
- - c
- Government Entity (“Government Entity”)
type: choose_one
- is_optional: 1
label: City Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_locality_name
- is_optional: 1
label: State or Province Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_state_or_province_name
- label: Country Code Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_country_name
type: country_code
- is_optional: 1
label: Date of Incorporation
name: date_of_incorporation
type: date
- is_optional: 1
label: Assumed Name (DBA (Doing Business As))
name: assumed_name
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 60
x_price_per_domain_maximum: 600
x_price_per_domain_minimum: 60
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ev
x_warn_after: 604800
- base_name: ''
billing_type: one-time
description: A 2-year extended-validated (EV) SSL certificate signed by cPanel.
display_name: 2-Year cPanel EV SSL Certificate
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNTlwdCIgaGVpZ2h0PSIzMjAiIHZpZXdCb3g9IjAgMCAzNTkgMjQwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik0xMjMgMGgyMzUuMzd2MjQwSDEyM3ptMCAwIi8+PC9jbGlwUGF0aD48L2RlZnM+PHBhdGggZD0iTTg5LjY5IDU5LjEwMmg2Ny44MDJsLTEwLjUgNDAuMmMtMS42MDUgNS42LTQuNjA1IDEwLjEtOSAxMy41LTQuNDAyIDMuNC05LjUwNCA1LjA5Ni0xNS4zIDUuMDk2aC0zMS41Yy03LjIgMC0xMy41NSAyLjEwMi0xOS4wNSA2LjMtNS41MDUgNC4yLTkuMzUzIDkuOTA0LTExLjU1MiAxNy4xMDMtMS40IDUuNDAzLTEuNTUgMTAuNS0uNDUgMTUuMzAyIDEuMDk4IDQuNzk2IDMuMDQ3IDkuMDUgNS44NTIgMTIuNzUgMi43OTcgMy43MDMgNi40IDYuNjUyIDEwLjc5NyA4Ljg1IDQuMzk3IDIuMiA5LjE5OCAzLjI5OCAxNC40IDMuMjk4aDE5LjJjMy42MDIgMCA2LjU0NyAxLjQ1MyA4Ljg1MiA0LjM1MiAyLjI5NyAyLjkwMiAyLjk0NSA2LjE0OCAxLjk1IDkuNzVsLTEyIDQ0LjM5OGgtMjFjLTE0LjQwMyAwLTI3LjY1My0zLjE0OC0zOS43NS05LjQ1LTEyLjEwMi02LjMtMjIuMTUzLTE0LjY0OC0zMC4xNTMtMjUuMDUtOC0xMC4zOTUtMTMuNDU0LTIyLjI0Ni0xNi4zNS0zNS41NDctMi45LTEzLjMtMi41NS0yNi45NSAxLjA1Mi00MC45NT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S0yLjgtMy42OTUtNi40MDItNi42OTUtMTAuNzk2LTktNC40MDYtMi4yOTctOS4yMDYtMy40NS0xNC40MDItMy40NUgyMzMuMzlsLTQzLjggMTYyLjkwM2MtMS42MDYgNS40LTQuNjA2IDkuNzk3LTkgMTMuMTk1LTQuNDAzIDMuNDA3LTkuNDA2IDUuMTAyLTE1IDUuMTAyaC00MS43IiBmaWxsPSIjZmY2YzJjIi8+PC9nPjwvc3ZnPgo=
icon_mime_type: image/svg+xml
license_term: '0'
max_users: null
maximum_server_price: null
minimum_server_price: null
price: null
price_unit: USD
product: cPanel EV Certificate
product_category: N/A
product_group: ssl_certificate
product_id: '241'
provider_display_name: cPanel Store
provider_name: cPStore
requires_ip: '0'
x_certificate_term:
- '2'
- year
x_identity_verification:
- label: Organization Name
name: organizationName
- is_optional: 1
label: Department Name
name: organizationalUnitName
- description: 9 consecutive digits or “##-###-####” (More information (https://go.cpanel.net/get_duns))
is_optional: 1
label: Dun & Bradstreet D-U-N-S (Data Universal Numbering System) Number
name: duns_number
pattern: ^[0-9]{2}(?:-[0-9]{3}-[0-9]{4}|[0-9]{7})$
- label: Street Address
name: streetAddress
- label: City
name: localityName
- label: State or Province
name: stateOrProvinceName
- label: Postal Code
name: postalCode
- label: Country Code
name: countryName
type: country_code
- label: Representative’s Given (First) Name
name: rep_forename
- label: Representative’s Surname (Last Name)
name: rep_surname
- label: Representative’s Email Address
name: rep_email_address
type: email
- description: This should be one of the organization’s publicly-listed telephone numbers.
is_optional: 1
label: Representative’s Telephone Number
name: rep_telephone
type: tel
- description: Consult the EV SSL Certificate Guidelines (https://cabforum.org/extended-validation/)
for more information about this field’s options.
label: Business Category
name: business_category
options:
- - b
- Incorporated Business (“Private Organization”)
- - d
- Non-incorporated Business (“Business Entity”)
- - c
- Government Entity (“Government Entity”)
type: choose_one
- is_optional: 1
label: City Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_locality_name
- is_optional: 1
label: State or Province Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_state_or_province_name
- label: Country Code Where Incorporated (JOI (Jurisdiction of Incorporation))
name: joi_country_name
type: country_code
- is_optional: 1
label: Date of Incorporation
name: date_of_incorporation
type: date
- is_optional: 1
label: Assumed Name (DBA (Doing Business As))
name: assumed_name
x_max_http_redirects: 0
x_payment_trigger: checkout
x_price_per_domain: 120
x_price_per_domain_maximum: 1200
x_price_per_domain_minimum: 120
x_ssl_per_domain_pricing: 1
x_supports_dns_dcv: 1
x_validation_type: ev
x_warn_after: 604800
items:
$ref: '#/components/schemas/MarketItemType'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_market_providers_products
type: string
reason:
description: 'The reason the API function failed when the `metadata.result` field is `0`.
This field may display a success message when a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Market providers products
tags:
- Market
- Product Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_market_providers_products\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_market_providers_products?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_maximum_users:
get:
description: This function returns the maximum number of cPanel accounts that the server's license allows.
operationId: Accounts-get_maximum_users
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
users:
description: 'The maximum number of cPanel accounts that the server''s license allows.
* `0` - Unlimited'
example: 100
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_maximum_users
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return maximum accounts for license
tags:
- Account Creation
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_maximum_users\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_maximum_users?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/get_nameserver_config:
get:
description: This function retrieves the default nameservers for the currently-authenticated user.
operationId: Nameserver-get_nameserver_config
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
nameservers:
description: The currently-authenticated user's nameservers.
example:
- ns1.example.com
- ns2.example.com
items:
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_nameserver_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return current user's nameservers
tags:
- DNS
- Resolvers
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_nameserver_config\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_nameserver_config?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_password_strength:
get:
description: This function measures the strength of a password.
operationId: Accounts-get_password_strength
parameters:
- description: The password.
in: query
name: password
required: true
schema:
example: 12345luggage
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
strength:
description: The password's strength.
example: 21
maximum: 100
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_password_strength
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return password strength
tags:
- Passwords
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_password_strength \\\n password='12345luggage'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_password_strength?api.version=1&password=12345luggage
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_pkgacct_session_state:
get:
description: This function returns the state of a `start_background_pkgacct` session.
operationId: Backup-get_pkgacct_session_state
parameters:
- description: The `start_background_pkgacct` session ID.
in: query
name: session_id
required: true
schema:
example: username20200323154328kDJ2Kx4xua2KtG
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
state:
description: 'The `start_background_pkgacct` session''s state.
* `COMPLETED`
* `FAILED`
* `RUNNING`'
enum:
- COMPLETED
- FAILED
- RUNNING
example: COMPLETED
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_pkgacct_session_state
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return start_background_pkgacct session state
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_pkgacct_session_state \\\n session_id='username20200323154328kDJ2Kx4xua2KtG'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_pkgacct_session_state?api.version=1&session_id=username20200323154328kDJ2Kx4xua2KtG
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '88'
/get_provider_client_configurations:
get:
description: This function retrieves the configuration details for the client of an external authentication identity
provider.
operationId: Authentication-get_provider_client_configurations
parameters:
- description: The identity provider's key.
in: query
name: provider_id
required: true
schema:
example: cpanelid
type: string
- description: 'The cPanel & WHM service''s name.
* `cpaneld` — The cPanel daemon.
* `whostmgrd` — The WHM daemon.
* `webmaild` — The Webmail daemon.'
in: query
name: service_name
required: true
schema:
enum:
- cpaneld
- whostmgrd
- webmaild
example: cpaneld
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
client_configurations:
description: An object that contains the client configuration information.
properties:
client_id:
description: The client ID for the identity provider.
example: '1234567890'
type: string
client_secret:
description: The secret for the client ID.
example: victoria
type: string
redirect_uris:
description: The redirection URIs for each interface that the identity provider uses.
example:
- https://hostname.example.com:2083/openid_connect_callback/cpanelid
- https://hostname.example.com:2087/openid_connect_callback/cpanelid
- https://hostname.example.com:2096/openid_connect_callback/cpanelid
items:
format: url
type: string
type: array
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_provider_client_configurations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return identity provider client configuration
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_provider_client_configurations \\\n service_name='cpaneld' \\\n provider_id='cpanelid'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_provider_client_configurations?api.version=1&service_name=cpaneld&provider_id=cpanelid
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/get_provider_configuration_fields:
get:
description: This function retrieves the configuration fields for a external authentication identity provider.
operationId: Authentication-get_provider_configuration_fields
parameters:
- description: The identity provider's key.
in: query
name: provider_id
required: true
schema:
example: cpanelid
type: string
- description: 'The cPanel & WHM service''s name.
* `cpaneld`
* `whostmgrd`
* `webmaild`'
in: query
name: service_name
required: true
schema:
enum:
- cpaneld
- whostmgrd
- webmaild
example: cpaneld
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
configuration_fields:
description: An array of objects containing the configuration information for each field.
example:
- description: The Secret of the Client
display_order: 1
field_id: client_secret
label: Client Secret
value: null
- description: The ID of the Client.
display_order: 0
field_id: client_id
label: Client ID
value: null
items:
properties:
description:
description: The description of the configuration field.
type: string
display_order:
description: The display order of the configuration field.
minimum: 0
type: integer
field_id:
description: The name of the configuration field.
type: string
label:
description: The label of the configuration field.
type: string
value:
description: The value of the configuration field, if available.
nullable: true
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_provider_configuration_fields
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return identity provider configuration fields
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_provider_configuration_fields \\\n service_name='cpaneld' \\\n provider_id='cpanelid'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_provider_configuration_fields?api.version=1&service_name=cpaneld&provider_id=cpanelid
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/get_provider_display_configurations:
get:
description: This function retrieves the display configuration for the login button of an external authentication identity
provider.
operationId: Authentication-get_provider_display_configurations
parameters:
- description: The identity provider's key.
in: query
name: provider_id
required: true
schema:
example: google
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
configurations:
description: An array of objects containing information about each service's external authentication
display information.
example:
- color: dd4b39
display_name: Google
documentation_url: https://developers.google.com/identity/protocols/OpenIDConnect
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDIyIDE0Ij48ZyBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik03IDZ2Mi40aDMuOTdjLS4xNiAxLjAzLTEuMiAzLjAyLTMuOTcgMy4wMi0yLjM5IDAtNC4zNC0xLjk4LTQuMzQtNC40MlM0LjYxIDIuNTggNyAyLjU4YzEuMzYgMCAyLjI3LjU4IDIuNzkgMS4wOGwxLjktMS44M0MxMC40Ny42OSA4Ljg5IDAgNyAwIDMuMTMgMCAwIDMuMTMgMCA3czMuMTMgNyA3IDdjNC4wNCAwIDYuNzItMi44NCA2LjcyLTYuODQgMC0uNDYtLjA1LS44MS0uMTEtMS4xNkg3ek0yMiA2aC0yVjRoLTJ2MmgtMnYyaDJ2MmgyVjhoMiIvPjwvZz48L3N2Zz4=
icon_type: image/svg+xml
label: Log in via Google
link: /openid_connect/google
provider_name: google
service: cpaneld
textcolor: FFFFFF
- color: dd4b39
display_name: Google
documentation_url: https://developers.google.com/identity/protocols/OpenIDConnect
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDIyIDE0Ij48ZyBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik03IDZ2Mi40aDMuOTdjLS4xNiAxLjAzLTEuMiAzLjAyLTMuOTcgMy4wMi0yLjM5IDAtNC4zNC0xLjk4LTQuMzQtNC40MlM0LjYxIDIuNTggNyAyLjU4YzEuMzYgMCAyLjI3LjU4IDIuNzkgMS4wOGwxLjktMS44M0MxMC40Ny42OSA4Ljg5IDAgNyAwIDMuMTMgMCAwIDMuMTMgMCA3czMuMTMgNyA3IDdjNC4wNCAwIDYuNzItMi44NCA2LjcyLTYuODQgMC0uNDYtLjA1LS44MS0uMTEtMS4xNkg3ek0yMiA2aC0yVjRoLTJ2MmgtMnYyaDJ2MmgyVjhoMiIvPjwvZz48L3N2Zz4=
icon_type: image/svg+xml
label: Log in via Google
link: /openid_connect/google
provider_name: google
service: webmaild
textcolor: FFFFFF
- color: dd4b39
display_name: Google
documentation_url: https://developers.google.com/identity/protocols/OpenIDConnect
icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDIyIDE0Ij48ZyBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik03IDZ2Mi40aDMuOTdjLS4xNiAxLjAzLTEuMiAzLjAyLTMuOTcgMy4wMi0yLjM5IDAtNC4zNC0xLjk4LTQuMzQtNC40MlM0LjYxIDIuNTggNyAyLjU4YzEuMzYgMCAyLjI3LjU4IDIuNzkgMS4wOGwxLjktMS44M0MxMC40Ny42OSA4Ljg5IDAgNyAwIDMuMTMgMCAwIDMuMTMgMCA3czMuMTMgNyA3IDdjNC4wNCAwIDYuNzItMi44NCA2LjcyLTYuODQgMC0uNDYtLjA1LS44MS0uMTEtMS4xNkg3ek0yMiA2aC0yVjRoLTJ2MmgtMnYyaDJ2MmgyVjhoMiIvPjwvZz48L3N2Zz4=
icon_type: image/svg+xml
label: Log in via Google
link: /openid_connect/google
provider_name: google
service: whostmgrd
textcolor: FFFFFF
items:
properties:
color:
description: The background color of the button in the cPanel interface.
format: RGB
type: string
display_name:
description: The display name of the identity provider.
type: string
documentation_url:
description: The URL to the identity provider's documentation.
format: url
type: string
icon:
description: The icon file in the button that the cPanel login interface displays.
format: byte
type: string
icon_type:
description: The icon file's MIME type.
type: string
label:
description: The text label in the button that the cPanel login interface displays.
type: string
link:
description: A reference URL to the identity provider's configuration for the system.
type: string
provider_name:
description: The name of the identity provider.
type: string
service:
description: 'The service''s name.
* `cpaneld`
* `whostmgrd`
* `webmaild`'
enum:
- cpaneld
- whostmgrd
- webmaild
type: string
textcolor:
description: The color of the text label in the button that the cPanel login interface displays.
format: RGB
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_provider_display_configurations
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return identity provider login interface appearance
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_provider_display_configurations \\\n provider_id='google'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_provider_display_configurations?api.version=1&provider_id=google
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: 58.0.12
/get_public_contact:
get:
description: This function retrieves an account's [public contact information](https://docs.cpanel.net/whm/cpanel/customization/#public-contact).
operationId: PublicContact-get_public_contact
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
name:
description: The public contact name of the reseller.
example: Bob's Hosting
type: string
url:
description: The public contact URL.
example: https://bobshosting.net
format: url
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_public_contact
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return current user's public contact information
tags:
- Resellers
- Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_public_contact\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_public_contact?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '68'
/get_public_ip:
get:
description: 'This function returns the public IP address for a specified public or private IP address. You can use
this function to determine the system''s main public IP address, especially for [systems that use a 1:1 NAT configuration](https://go.cpanel.net/11NAT).
* cPanel & WHM uses the main public IP address to perform many different functions. For example, the system uses this
IP address to verify the server''s license status with WebPros International, LLC.
* System administrators can configure the main public IP address in WHM''s [Basic WebHost Manager Setup](https://go.cpanel.net/whmdocsBasicasisWebHostManagerSetup)
interface (_Home >> Server Configuration >> Basic WebHost Manager Setup_).'
operationId: Ips-get_public_ip
parameters:
- description: A valid public or private IP address to query.
in: query
name: ip
required: true
schema:
example: 192.0.2.0
format: ipv4
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
public_ip:
description: The public IP address.
example: 192.0.2.0
format: ipv4
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_public_ip
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return public IP address of private IP address
tags:
- IP Addresses
- Network Address Translation
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_public_ip \\\n ip='192.0.2.0'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_public_ip?api.version=1&ip=192.0.2.0
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/get_remote_access_hash:
get:
deprecated: true
description: 'This function retrieves a hash from a remote access file.
**Warning:**
We deprecated this function. We **strongly** suggest that you use the WHM API 1 `api_token_list` function.'
operationId: Resellers-get_remote_access_hash
parameters:
- description: The server's hostname.
in: query
name: host
required: true
schema:
example: hostname.example.com
type: string
- description: The user's password.
in: query
name: password
required: true
schema:
example: 123456luggage
type: string
- description: The user's username.
in: query
name: username
required: true
schema:
example: user
type: string
- description: 'Whether to generate a new hash for the user, if one does not exist.
* `1` — Generate a new hash.
* `0` — Do **not** generate a new hash.'
in: query
name: generate
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
accesshash:
description: The account's remote access hash.
example: 6b355856c00606648b803a7d896186632472d584eaf0dad878b8885e1f64edad24b31ff79f2675303a598ac211ad5188c589fb60c5786a3e8d85c2029ca4ea76edb62becff7e3f7c5421f51bb4896737c22eda761e2a6fd96404bf513ee9051480ea86c800ab9b45f5255590836c7b769816a8f7f5def1e0c6cb19c212f01f56bb3392854ce51178a943eab6d1ce5d44857e980f70724f50964d2fbe01cb076a119dc5bf421051c2a0882550cdc69872832167c91e11bbe5c95d98474096ebe14b6ca9da2d73faecea5ec37f208912f5da578d5f8ab7c257584002e1808614f9859dceae564e8f30a9790c232d005ebd44f912e20b72e731fc600156e5b9f2902b0dd913010022e6b0deb6a2fb0d38ff3fd005c53f321ec812d3be10643dce81c46e1b9e2abe8814d46ba49b8a173b3e01ec677ea182cabb55db6d9eab2240755be1bbb1d7094a155fd262934ec099fdba3b10f409dced62d3d570ab6478a269a95da1314a45a5916da07312bf7e5a53d57b090e9c24932776f7ffdcf90ba2fa5cd935995795348b67311185f54da6b90da8771585e78c5f587e427bead9198faaa631b8216099c25373c8d4c26a011f295188963840777d09d95b6385df8337098b7e231534323457b9388fe9ea8046
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_remote_access_hash
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return remote access file's hash
tags:
- Server Administration
- API Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_remote_access_hash \\\n username='user' \\\n password='123456luggage'\
\ \\\n host='hostname.example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_remote_access_hash?api.version=1&username=user&password=123456luggage&host=hostname.example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_rpm_version_data:
get:
description: 'This function lists a key''s available RPMs. For more information, read our
[rpm.versions system](https://go.cpanel.net/rpm-versions)
documentation.'
operationId: RPMVersions-get_rpm_version_data
parameters:
- description: The RPM's section.
in: query
name: section
required: true
schema:
example: rpm_groups
type: string
- description: The RPM's key. If you do **not** specify a value, the function returns all RPM categories.
in: query
name: key
required: false
schema:
example: 3rdparty
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
description: 'The RPM section and its associated RPMs.
**Note:**
* This function uses the RPM section''s name and RPM key''s name for each return value.
* If you specify the `key` parameter, this function returns **only** the called RPM key.
* If you do **not** specify the `key` parameter, the function returns **all** RPM keys
in the called `section` parameter. '
oneOf:
- additionalProperties:
description: A list of all available RPMs. The system uses the RPM key's name as the return name.
items:
type: string
type: array
example:
3rdparty:
- cpanel-pcre
- cpanel-pixman
- cpanel-analog
- additionalProperties:
additionalProperties:
description: A list of all available RPMs. The system uses the RPM key's name as the return name.
items:
type: string
type: array
description: A list containing the RPM section's RPM information. The system uses the RPM section
name as the return name.
type: object
example:
rpm_groups:
3rdparty:
- cpanel-pcre
- cpanel-pixman
- cpanel-analog
metadata:
properties:
command:
description: The method name called.
example: get_rpm_version_data
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available RPM packages
tags:
- RPM
- List Package Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_rpm_version_data \\\n section='rpm_groups'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_rpm_version_data?api.version=1§ion=rpm_groups
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/get_scoped_userdata:
get:
description: This function retrieves all userdata key/value pairs within the specified scope.
operationId: UserData-get_scoped_userdata
parameters:
- description: The scope name whose userdata you wish to retrieve.
in: query
name: scope
required: true
schema:
example: example_scope
type: string
responses:
'200':
description: HTTP Request was successful.
content:
application/json:
schema:
type: object
properties:
data:
type: object
description: A mapping of userdata keys to their string values for the given scope.
additionalProperties:
type: string
example:
theme: dark
items_per_page: '50'
metadata:
properties:
command:
type: string
example: get_scoped_userdata
description: The method name called.
reason:
type: string
example: OK
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
result:
type: integer
enum:
- 0
- 1
example: 1
description: '* `1` - Success
* `0` - Failed. Check the `reason` field for more details.'
version:
type: integer
example: 1
description: The version of the API function.
summary: Get scoped userdata
tags:
- UserData
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_scoped_userdata \\\n scope='example_scope'"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_scoped_userdata?api.version=1&scope=example_scope
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_server_node_status:
get:
description: 'This function returns the status of a linked remote server node. It returns
the linked remote server''s status with the WHM API 1 `version` and `get_current_profile` functions.'
operationId: Cpanel-get_server_node_status
parameters:
- description: "The required API token to make API calls to the remote server node.\n\n**Note:**\n\n The API token **must**\
\ have `root`-level access on the remote server node."
in: query
name: api_token
required: true
schema:
example: 23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H
type: string
- description: 'The remote server node''s hostname or IP address.
**Note:**
If you use an IP address, you **must** use the `skip_tls_verification=1` parameter.'
in: query
name: hostname
required: true
schema:
example: example.com
type: string
- description: 'The username required to make API calls to the remote server node.
**Note:**
The username **must** have `root`-level access on the remote server node.'
in: query
name: username
required: true
schema:
example: root
type: string
- description: 'Whether to skip [SSL/TLS verification](https://go.cpanel.net/guidetoSSL). The system performs this action
when it queries the remote server node.
* `1` - Skip SSL/TLS verification.
* `0` - Do **not** skip SSL/TLS verification.'
in: query
name: skip_tls_verification
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
enabled_services:
description: An list of the remote server node's enabled services.
items:
example: apache_php_fpm
type: string
type: array
remote_node_linkages:
description: 'An array of objects of the remote server''s [child nodes](https://go.cpanel.net/cPanelGlossary#child-node).
This function returns this information via the `list_linked_server_nodes` function.
**Note:**
If you call this function on a parent node for its child node, this function returns an empty object.'
items:
example:
alias: MailNode
enabled_services:
- apache_php_fpm
- cpanellogd
- cpdavd
- cpgreylistd
- cphulkd
- cpsrvd
- crond
- dnsadmin
- exim
- imap
- ipaliases
- lmtp
- mailman
- mysql
- named
- nscd
- pop
- queueprocd
- rsyslogd
- spamd
- sshd
- tailwatchd
hostname: mailnode.example.com
last_check: 1583934071
system_settings:
Mail:
globalspamassassin: '1'
tls_verified: 0
username: root
version: 11.90.0.0
worker_capabilities:
Mail: {}
type: object
type: array
system_settings:
description: An object containing the remote server's child node system settings.
example:
Mail:
globalspamassassin: 1
type: object
tls_verified:
description: 'Whether the remote server node has a valid [SSL certificate](https://go.cpanel.net/guidetoSSL).
* `1` - The remote server node has a valid SSL certificate.
* `0` - The remote server node does **not** have a valid SSL certificate.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The installed version of cPanel & WHM on the remote server node.
example: 11.90.0.0
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_server_node_status
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return linked server node status
tags:
- Server Administration
- Server Nodes
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_server_node_status \\\n api_token='23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H'\
\ \\\n hostname='example.com' \\\n username='root'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_server_node_status?api.version=1&api_token=23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H&hostname=example.com&username=root
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/get_service_config:
get:
description: This function returns a service's configuration settings.
operationId: AdvConfig-get_service_config
parameters:
- description: 'The service''s name.
* `dovecot` — The Dovecot service.
**Note:**
For a fresh install, the data returned for the Dovecot
service will only contain the list of protocols. It will
not be until the mailserver configuration is saved that
the return data for Dovecot will look like what is shown
in the example.'
in: query
name: service
required: true
schema:
enum:
- dovecot
example: dovecot
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
anyOf:
- type: string
- type: integer
- type: object
description: 'A configuration key''s setting.
**Note:**
The key name is the return''s name.'
description: A list of the configuration key's settings.
example:
auth_cache_negative_ttl: 3600
auth_cache_size: 1M
auth_cache_ttl: 3600
auth_policy_hash_nonce: 91057590
compress_messages: 0
config_vsz_limit: 2048
auth_allow_cleartext: 'yes'
expire_trash: 0
expire_spam: 0
hulk_auth_passwd: FAMONex4Bn9Hv1BO
include_trash_in_quota: 0
incoming_reached_quota: bounce
ipv6: 'on'
lmtp_process_limit: 500
lmtp_process_min_avail: 0
lmtp_user_concurrency_limit: 4
login_max_processes_count: 50
login_process_per_connection: 'no'
login_process_size: 128
login_processes_count: 2
mail_process_size: 512
mdbox_rotate_interval: 0
mdbox_rotate_size: 10M
protocol_imap:
mail_max_userip_connections: 20
map_idle_notify_interval: 24
protocol_pop3:
mail_max_userip_connections: 3
protocols: imap pop3
ssl_cipher_list: ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
ssl_min_protocol: TLSv1.2
type: object
metadata:
properties:
command:
description: The method name called.
example: get_service_config
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return service configuration settings
tags:
- Server Administration
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_service_config \\\n service='dovecot'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_service_config?api.version=1&service=dovecot
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_service_config_key:
get:
description: This function returns a specific configuration key for a service.
operationId: AdvConfig-get_service_config_key
parameters:
- description: The configuration key's name.
in: query
name: key
required: true
schema:
example: mail_process_size
type: string
- description: The service's name.
in: query
name: service
required: true
schema:
example: dovecot
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
key name:
description: "configuration key's current setting.\n\n**Note:**\n\n This return's name is the value\
\ that you pass in this function's key parameter. A valid setting."
example: '512'
type: string
mail_process_size: {}
type: object
metadata:
properties:
command:
description: The method name called.
example: get_service_config_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return service configuration key
tags:
- Server Administration
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_service_config_key \\\n service='dovecot' \\\n key='mail_process_size'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_service_config_key?api.version=1&service=dovecot&key=mail_process_size
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_service_proxy_backends:
get:
description: 'This function reports a cPanel account''s
[service proxying](https://go.cpanel.net/ServiceProxying)
configuration.'
operationId: Accounts-get_service_proxy_backends
parameters:
- description: The cPanel account's username.
in: query
name: username
required: true
schema:
example: example
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: The account’s service proxying backends.
items:
properties:
backend:
description: The name of the server to which the system will proxy requests for this service
group.
example: example.com
format: domain
type: string
service_group:
description: 'The name of the proxying service group, if applicable.
* null — The account’s general service proxying backend.'
example: Mail
nullable: true
type: string
type: object
type: array
metadata:
properties:
command:
description: The method name called.
example: get_service_proxy_backends
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return a cPanel account’s service proxying setup
tags:
- Services
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_service_proxy_backends \\\n username='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_service_proxy_backends?api.version=1&username=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '94'
/get_shared_ip:
get:
description: This function retrieves the IP address that an account shares with the accounts that it owns.
operationId: Ips-get_shared_ip
parameters:
- description: 'The WHM user''s username.
**Note:**
This parameter defaults to the currently-authenticated user.'
in: query
name: user
required: false
schema:
example: example
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
ip:
description: "The IP address that the WHM user shares.\n\n**Note:**\n\n If the user does **not** have\
\ a shared IP address, the function returns the tilde ( `~` ) character."
example: 192.168.0.1
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_shared_ip
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return shared IP address
tags:
- IP Addresses
- IPv4 Address Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_shared_ip\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_shared_ip?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '62'
/get_tcp4_sockets:
get:
description: This function returns data about the system's transmission control protocol (TCP) IPv4 sockets.
operationId: Sys-get_tcp4_sockets
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains the status of the system's TCP IPv4 sockets.
items:
properties:
dport:
description: The source port that the Linux kernel reports for the socket.
example: 443
type: integer
dst:
description: The destination IPv4 address.
example: 10.0.0.2
format: ipv4
type: string
inode:
description: The inode number the Linux kernel assigned to the socket.
example: 27171
minimum: 1
type: integer
rqueue:
description: The number of bytes in the socket's read buffer.
example: 0
format: bytes
type: integer
sport:
description: The source port number.
example: 2087
type: integer
src:
description: The source IPv4 address.
example: 10.0.0.1
format: ipv4
type: string
state:
description: The socket's current state, in the Linux kernel's numeric format.
example: 10
minimum: 1
type: integer
uid:
description: The socket's user ID (UID).
example: 102
minimum: 1
type: integer
wqueue:
description: The number of bytes the system is waiting to send.
example: 45
format: bytes
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_tcp4_sockets
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return TCP IPv4 sockets data
tags:
- Server Administration
- Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_tcp4_sockets\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_tcp4_sockets?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_tcp6_sockets:
get:
description: This function returns data about the system's transmission control protocol (TCP) IPv6 sockets.
operationId: Sys-get_tcp6_sockets
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains the status of the system's TCP IPv6 sockets.
items:
properties:
dport:
description: The source port that the Linux kernel reports for the socket.
example: 443
minimum: 1
type: integer
dst:
description: The destination IPv6 address.
example: 2001:0db8:0:0:1:0:0:1
format: bytes
type: string
inode:
description: The inode number the Linux kernel assigned to the socket.
example: 27171
minimum: 1
type: integer
rqueue:
description: The number of bytes in the socket's read buffer.
example: 0
format: bytes
type: integer
sport:
description: The source port number.
example: 2087
minimum: 1
type: integer
src:
description: The source IPv6 address.
example: 2001:0db8:0:0:1:0:0:2
format: ipv6
type: string
state:
description: The socket's current state, in the Linux kernel's numeric format.
example: 10
minimum: 1
type: integer
uid:
description: The socket's user ID (UID).
example: 102
minimum: 1
type: integer
wqueue:
description: The number of bytes that the system is waiting to send.
example: 45
format: bytes
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_tcp6_sockets
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return TCP IPv6 sockets data
tags:
- Server Administration
- Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_tcp6_sockets\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_tcp6_sockets?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_transfer_session_state:
get:
description: 'This function retrieves the state of a transfer session.
**Note:**
For more information about how this function works with other functions in the transfer and restore process, read
our [Guide to Transfer and Restore API Functions](https://go.cpanel.net/transferrestoreAPIguide) documentation.'
operationId: Transfers-get_transfer_session_state
parameters:
- description: The transfer session's ID.
in: query
name: transfer_session_id
required: true
schema:
example: exampleservercopya20140206192428NtyW
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
state_name:
description: 'The transfer session''s state.
* `TRANSFER_PENDING`
* `TRANSFER_INPROGRESS`
* `RESTORE_PENDING`
* `RESTORE_INPROGRESS`
* `RUNNING`
* `PAUSED`
* `PENDING`
* `COMPLETED`
* `ABORTED`
* `FAILED`'
enum:
- TRANSFER_PENDING
- TRANSFER_INPROGRESS
- RESTORE_PENDING
- RESTORE_INPROGRESS
- RUNNING
- PAUSED
- PENDING
- COMPLETED
- ABORTED
- FAILED
example: TRANSFER_INPROGRESS
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: get_transfer_session_state
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return transfer session's status
tags:
- Transfers
- Transfer Monitoring
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_transfer_session_state \\\n transfer_session_id='exampleservercopya20140206192428NtyW'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_transfer_session_state?api.version=1&transfer_session_id=exampleservercopya20140206192428NtyW
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.44'
/get_tweaksetting:
get:
description: 'This function retrieves values from the
[`/var/cpanel/cpanel.config`](https://go.cpanel.net/ThecpanelconfigFile)
file and the server''s [Exim configuration](https://go.cpanel.net/whmdocsEximConfigurationManager).'
operationId: Cpanel-get_tweaksetting
parameters:
- description: The [*Tweak Settings*](https://go.cpanel.net/whmdocsTweakSettings) option.
in: query
name: key
required: true
schema:
example: defaultmailaction
type: string
- description: 'One of the following *Tweak Settings* module names:
* `Apache`
* `Basic`
* `Mail`
* `Main`'
in: query
name: module
required: false
schema:
default: Main
enum:
- Apache
- Basic
- Mail
- Main
example: Main
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
tweaksetting:
description: A list of the *Tweak Settings* option's information.
properties:
key:
description: A key name in the `cpanel.config` file.
example: defaultmailaction
type: string
value:
description: The value. This value depends on the `key` value's requirements.
example: localuser
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: get_tweaksetting
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return Tweak Settings option's value
tags:
- Configurations
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_tweaksetting \\\n key='defaultmailaction'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_tweaksetting?api.version=1&key=defaultmailaction
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_udp4_sockets:
get:
description: This function returns data about the system's user datagram protocol (UDP) IPv4 sockets.
operationId: Sys-get_udp4_sockets
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains the status of the system's UDP IPv4 sockets.
items:
properties:
dport:
description: The source port that the Linux kernel reports for the socket.
example: 443
minimum: 1
type: integer
dst:
description: The destination IPv4 address.
example: 10.0.0.2
format: ipv4
type: string
inode:
description: The inode number the Linux kernel assigned to the socket.
example: 27171
minimum: 1
type: integer
rqueue:
description: The number of bytes in the socket's read buffer.
example: 0
format: bytes
minimum: 1
type: integer
sport:
description: The source port number.
example: 53
minimum: 1
type: integer
src:
description: The source IPv4 address.
example: 10.0.0.1
format: ipv4
type: string
state:
description: The socket's current state, in the Linux kernel's numeric format.
example: 10
minimum: 1
type: integer
uid:
description: The socket's user ID (UID).
example: 25
minimum: 1
type: integer
wqueue:
description: The number of bytes that the system is waiting to send.
example: 45
format: bytes
minimum: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_udp4_sockets
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return UDP IPv4 sockets data
tags:
- Server Administration
- Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_udp4_sockets\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_udp4_sockets?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_udp6_sockets:
get:
description: "This function returns data about the system's user datagram protocol (UDP) IPv6 sockets.\n\n**Important:**\n\
\n This function may perform slower on a CentOS 6 system with a large number of UDP sockets."
operationId: Sys-get_udp6_sockets
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contains the status of the system's UDP IPv6 sockets.
items:
properties:
dport:
description: The source port that the Linux kernel reports for the socket.
example: 443
maximum: 65535
minimum: 0
type: integer
dst:
description: The destination IPv6 address.
example: 2001:0db8:0:0:1:0:0:2
format: ipv6
type: string
inode:
description: The inode number the Linux kernel assigned to the socket.
example: 27171
minimum: 1
type: integer
rqueue:
description: The number of bytes in the socket's read buffer.
example: 0
minimum: 0
type: integer
sport:
description: The source port number.
example: 53
maximum: 65535
minimum: 0
type: integer
src:
description: The source IPv6 address.
example: 2001:0db8:0:0:1:0:0:1
format: ipv6
type: string
state:
description: The socket's current state, in the Linux kernel's numeric format.
example: 10
type: integer
uid:
description: The socket's user ID (UID).
example: 25
minimum: 0
type: integer
wqueue:
description: The number of bytes that the system is waiting to send.
example: 45
minimum: 0
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_udp6_sockets
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return UDP IPv6 sockets data
tags:
- Server Administration
- Connections
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_udp6_sockets\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_udp6_sockets?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_unique_recipient_count_per_sender_for_user:
get:
description: This function gets the number of unique recipients that a system user sent mail to within a period of time.
It groups this data by each of the user's email accounts.
operationId: Exim-get_unique_recipient_count_per_sender_for_user
parameters:
- description: An end time to query.
in: query
name: end_time
required: true
schema:
example: 1550923200
format: unix_timestamp
type: integer
- description: A start time to query.
in: query
name: start_time
required: true
schema:
example: 1550872800
format: unix_timestamp
type: integer
- description: The system user's username.
in: query
name: user
required: true
schema:
example: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contain a count of the number of unique recipients a system
user sent mail to.
items:
properties:
sender:
description: The user's email address.
example: username@example.com
type: string
unique_recipient_count:
description: The number of unique recipients that the email account sent mail to.
example: 51
minimum: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_unique_recipient_count_per_sender_for_user
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account unique email recipients
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_unique_recipient_count_per_sender_for_user \\\n user='username' \\\
\n start_time='1550872800' \\\n end_time='1550923200'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_unique_recipient_count_per_sender_for_user?api.version=1&user=username&start_time=1550872800&end_time=1550923200
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_unique_sender_recipient_count_per_user:
get:
description: This function gets a count of the email addresses that each system account sent mail to within a specific
period of time. It groups the data by each system user for all the system's users.
operationId: Exim-get_unique_sender_recipient_count_per_user
parameters:
- description: An end time to query.
in: query
name: end_time
required: true
schema:
example: 1551192100
format: unix_timestamp
type: integer
- description: A start time to query.
in: query
name: start_time
required: true
schema:
example: 1550702383
format: unix_timestamp
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects that contain a count for all system users' unique email recipients.
items:
properties:
unique_sender_recipient_count:
description: A count of the unique sender-recipient pairs for mail sent during a period of time.
example: 120
minimum: 1
type: integer
user:
description: A system user's username.
example: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_unique_sender_recipient_count_per_user
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return all cPanel account unique email recipients
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_unique_sender_recipient_count_per_user \\\n start_time='1550702383'\
\ \\\n end_time='1551192100'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_unique_sender_recipient_count_per_user?api.version=1&start_time=1550702383&end_time=1551192100
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '80'
/get_update_availability:
get:
description: 'This function checks whether your server uses the
[latest version of cPanel & WHM for your release tier](https://docs.cpanel.net/knowledge-base/cpanel-product/product-versions-and-the-release-process/).'
operationId: Update-get_update_availability
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
current_version:
description: The server's current version of cPanel & WHM.
example: 88.0.12
type: string
newest_version:
description: The available version of cPanel & WHM available for the server's support tier.
example: 88.0.12
type: string
tier:
description: 'The server''s
[support tier](https://docs.cpanel.net/knowledge-base/cpanel-product/product-versions-and-the-release-process/#release-tiers):
* `edge` — EDGE.
* `current` — CURRENT.
* `release` — RELEASE.
* `stable` — STABLE.
* `lts` — Long-Term Support (LTS).'
enum:
- edge
- current
- release
- stable
- lts
example: current
type: string
update_available:
description: 'Whether a new version of cPanel & WHM is available for the server''s support tier.
- `1` — Available.
- `0` — Not available.'
enum:
- 0
- 1
example: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: get_update_availability
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return if server uses the default update version
tags:
- Server Administration
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_update_availability\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_update_availability?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/get_upgrade_opportunities:
get:
description: 'This function lists accounts that could benefit from upgrading to a different package.
The listed accounts may be nearing (or exceeding) resource usage thresholds.'
operationId: Accounts-get_upgrade_opportunities
parameters:
- description: A fixed number of blocks to use as an alternative disk usage threshold.
in: query
name: disk_threshold_blocks
required: false
schema:
default: 2097152
example: 8388608
minimum: 0
type: integer
- description: The fraction of 1 at which to consider usage "near".
in: query
name: nearness_fraction
required: false
schema:
default: 0.8
example: 0.6
exclusiveMaximum: true
exclusiveMinimum: true
maximum: 1
minimum: 0
type: number
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
upgrade_opportunities:
additionalProperties:
description: The property name is the cPanel account.
properties:
bw_limit:
description: Upgrade opportunities related to bandwidth limits.
properties:
last_month:
allOf:
- description: Bandwidth usage for last month.
type: object
- $ref: '#/components/schemas/nearReachedBaseSchema'
messages:
description: An array of human-readable messages representing the facts listed in the other
structured data in the `bw_limit` object.
items:
example: This account has used 54% of its bandwidth quota for this month.
type: string
type: array
this_month:
allOf:
- description: Bandwidth usage for this month.
type: object
- $ref: '#/components/schemas/nearReachedBaseSchema'
type: object
disk_usage:
description: Upgrade opportunities related to disk usage.
properties:
messages:
description: An array of human-readable messages representing the facts listed in the other
structured data in the `disk_usage` object.
items:
example: This account has used 94% of its disk quota.
type: string
type: array
relative_to_fixed_amount:
allOf:
- description: Relative to a preset fixed amount (customizable).
type: object
- $ref: '#/components/schemas/diskSchema'
relative_to_quota:
allOf:
- description: Relative to the account's quota, if applicable.
type: object
- $ref: '#/components/schemas/diskSchema'
type: object
messages:
description: An array of human-readable messages representing the facts listed in the other
structured data.
example:
- This account has used 54% of its bandwidth quota for this month.
- This account has used 94% of its disk quota.
items:
type: string
type: array
description: The collection of accounts and information about their upgrade opportunities.
metadata:
properties:
command:
description: The method name called.
example: get_upgrade_opportunities
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Get upgrade opportunities
tags:
- Accounts
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_upgrade_opportunities\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_upgrade_opportunities?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/get_user_email_forward_destination:
get:
description: 'This function retrieves the destination to which the system forwards a system account''s email.
**Note:**
* Usually, the system sends notices about the server''s problems and activity to the `root` account.
* If you do **not** use the `suexec` module, the `nobody` user receives bounce messages from email that CGI scripts
send.'
operationId: Email-get_user_email_forward_destination
parameters:
- description: The system account name.
in: query
name: user
required: true
schema:
example: root
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
forward_to:
description: The system accounts or email addresses to which the system forwards the account's email.
items:
example: user@example.com
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_user_email_forward_destination
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account forward destination
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_user_email_forward_destination \\\n user='root'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_user_email_forward_destination?api.version=1&user=root
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.52'
/get_users_and_domains_with_backup_metadata:
get:
description: This function lists all users and their domains that have backup metadata.
operationId: Backup-get_users_and_domains_with_backup_metadata
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: The cPanel user account's associated domain.
example: example.com
format: domain
type: string
description: Keys are cPanel user accounts that contain backup metadata.
example:
username: example.com
username2: example.net
username3: example.org
type: object
metadata:
properties:
command:
description: The method name called.
example: get_users_and_domains_with_backup_metadata
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success.
* `0` - Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return users and domains with backup metadata
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_users_and_domains_with_backup_metadata\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_users_and_domains_with_backup_metadata?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '74'
/get_users_authn_linked_accounts:
get:
description: This function lists all accounts that link to available external authentication identity providers.
operationId: Accounts-get_users_authn_linked_accounts
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
username_linked_accounts:
description: An array of objects containing user accounts with their linked identity provider accounts.
items:
properties:
link_time:
description: When the user linked the account.
example: 1443124003
format: unix_timestamp
type: integer
preferred_username:
description: The preferred username of the account on the identity provider that the interface
will display.
example: username@example.com
type: string
provider_id:
description: The system's internal key for the identity provider.
example: cpanelid
type: string
provider_protocol:
description: The identity provider's protocol.
example: openid_connect
type: string
subject_unique_identifier:
description: The unique identifier for the user at the identity provider.
example: '123456789012345678901'
type: string
username:
description: The cPanel account's username.
example: username
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_users_authn_linked_accounts
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return accounts linked to identity providers
tags:
- Authentication
- External Authentication
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_users_authn_linked_accounts\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_users_authn_linked_accounts?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '54'
/get_users_features_settings:
get:
description: This function lists the features settings of cPanel accounts.
operationId: FeatureLists-get_users_features_settings
parameters:
- description: 'The user''s username.
**Note:**
To check multiple users, increment the parameter name. For example, `user-1`, `user-2`, and `user-3`.'
examples:
multiple:
description: Multiple users.
value: user-1=example1 user-2=example2 user-3=example3
single:
description: A single user.
value: example
in: query
name: user
required: true
schema:
type: string
- description: 'The feature''s name.
**Note:**
* To check multiple features, increment the parameter name. For example, `feature-1`, `feature-2`, and `feature-3`.
* If you use this parameter, you **must** enter a feature name, or the function returns an error. If you do **not**
use this parameter, the function returns data for all features on the server.'
examples:
multiple:
description: Multiple feature.
value: feature-1=autossl feature-2=changemx feature-3=addondomains
single:
description: A single feature.
value: autossl
in: query
name: feature
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
users_features_settings:
description: An array of objects that contain information about the feature list settings.
items:
properties:
cpuser_setting:
description: 'The user''s setting for the feature in their `cpuser` file, which overrides the
`feature_list_setting` return.
* `1` - Enabled.
* `0` - Disabled.
* `null` — The feature is **not** defined in the feature list.'
enum:
- 1
- 0
example: 1
nullable: true
type: integer
feature:
description: The feature name.
example: autossl
type: string
feature_list:
description: The feature list's name.
example: autossl
type: string
feature_list_setting:
description: 'The user''s feature list setting.
* `1` - Enabled.
* `0` - Disabled.'
enum:
- 1
- 0
example: 1
type: integer
user:
description: The user's username.
example: example
format: username
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_users_features_settings
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
type: object
description: HTTP Request was successful.
summary: Return cPanel accounts' feature settings
tags:
- Packages
- Feature Access
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_users_features_settings \\\n user='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_users_features_settings?api.version=1&user=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '58'
/get_users_links:
get:
description: 'This function returns a list of
[application keys](https://go.cpanel.net/jupiter-appkeys)
(appkeys) and the URLs that correspond to applications for the cPanel user''s theme.
Use the appkey values for the `app` parameter''s value in the WHM API 1 `create_user_session`
function.'
operationId: Plugins-get_users_links
parameters:
- description: The requested user's username.
in: query
name: user
required: true
schema:
example: user
type: string
- description: 'The interface for which to filter results:
* `cpanel` — cPanel
* `webmail` — Webmail'
in: query
name: service
required: false
schema:
default: cpaneld
enum:
- cpaneld
- webmail
example: cpaneld
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
description: 'The name of the appkey and its corresponding URL to the specific
application.
**Note:**
This function returns this value as the appkey name and the appkey''s
application URL.'
type: string
description: A list of appkeys and their corresponding file locations.
example:
Backups_Home: frontend/jupiter/backup/index.html
Calendar_Configure: frontend/jupiter/mail/calendars_and_contacts/index.html
ContactInfo_Change: frontend/jupiter/contact/index.html
Cron_Home: frontend/jupiter/cron/index.html
Database_MySQL: frontend/jupiter/sql/index.html
Database_phpMyAdmin: frontend/jupiter/sql/PhpMyAdmin.html
Email_AccountLevelFiltering: frontend/jupiter/mail/filters/userfilters.html
Email_Accounts: frontend/jupiter/mail/pops/index.html
Email_Archive: frontend/jupiter/mail/archive.html
Email_Authentication: frontend/jupiter/mail/auth.html
Email_AutoResponders: frontend/jupiter/mail/autores.html
Email_BoxTrapper: frontend/jupiter/mail/boxtrapper.html
Email_DefaultAddress: frontend/jupiter/mail/def.html
Email_DeliveryReport: frontend/jupiter/mail/def.html
Email_Disk_Usage: frontend/jupiter/mail/manage_disk_usage/
Email_Forwarders: frontend/jupiter/mail/fwds.html
Email_GreyListing: frontend/jupiter/mail/greylisting/index.html
Email_MailingLists: frontend/jupiter/mail/lists.html
Email_Routing: frontend/jupiter/mail/email_routing.html
Email_SpamFilter: frontend/jupiter/mail/spam/spam.html
Email_UserLevelFiltering: frontend/jupiter/mail/filters/managefilters.html
FileManager_Home: frontend/jupiter/filemanager/index.html
Locale_Change: frontend/jupiter/setlang/index.html
Password_Change: frontend/jupiter/passwd/index.html
SSL_TLS_Manager: frontend/jupiter/ssl/index.html
SSL_TLS_Status: frontend/jupiter/security/tls_status/
SSL_TLS_Wizard: frontend/jupiter/security/tls_wizard/
Solr_Disk_Usage: frontend/jupiter/mail/search_index/
Stats_AWStats: frontend/jupiter/stats/awstats_landing.html
type: object
metadata:
properties:
command:
description: The method name called.
example: get_users_links
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return cPanel account theme's app keys and URLs
tags:
- Styles
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_users_links \\\n user='user'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_users_links?api.version=1&user=user
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.50'
/get_users_with_backup_metadata:
get:
description: This function lists users with backup metadata.
operationId: Backup-get_users_with_backup_metadata
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
accounts:
description: The cPanel user accounts on the server that contain backup metadata.
items:
example: username
format: username
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: get_users_with_backup_metadata
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return users with backup metadata
tags:
- Backups
- Backup or Restore
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n get_users_with_backup_metadata\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/get_users_with_backup_metadata?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '70'
/getdiskusage:
get:
description: This function retrieves the server's drive partition information.
operationId: Sys-getdiskusage
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
partition:
description: An array of objects that contain drive partition information.
items:
properties:
available:
description: The partition's unused disk space, measured in kilobytes.
example: 377856
format: kilobytes
minimum: 1
type: integer
device:
description: The partition's device name.
example: /dev/vda1
type: string
disk:
description: The partition's label.
example: vda1
type: string
filesystem:
description: The partition's absolute directory path.
example: /
type: string
inodes_available:
description: The number of unused inodes on the partition.
example: 20575847
minimum: 1
type: integer
inodes_ipercentage:
description: The percentage of the partition's total
example: 2
minimum: 0
type: integer
inodes_total:
description: The total number of inodes that the partition will allow.
example: 20970944
minimum: 1
type: integer
inodes_used:
description: The number of inodes used on the partition.
example: 395097
minimum: 1
type: integer
mount:
description: The partition's mount point.
example: /boot
type: string
percentage:
description: The percentage of the partition's total disk space used.
example: 20
minimum: 1
type: integer
total:
description: The partition's total allocated disk space, measured in kilobytes.
example: 495844
format: kilobytes
minimum: 1
type: integer
used:
description: The partition's disk space used, measured in kilobytes.
example: 92388
format: kilobytes
minimum: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: getdiskusage
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: Successfully retrieved disk usage
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return server's drive partition information
tags:
- Server Administration
- System Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getdiskusage\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getdiskusage?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.32'
/getdomainowner:
get:
description: This function lists the owner of a domain.
operationId: Accounts-getdomainowner
parameters:
- description: A domain on the system that is owned by the user calling this function.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
user:
description: 'The user who owns the domain.
**Note:**
This value returns `null` if the user calling the function does not own the account for the domain
**or** the domain does not exist on the server.'
example: username
format: username
nullable: true
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: getdomainowner
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- 1 - Success
- 0 - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return domain owner
tags:
- Domain Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getdomainowner \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getdomainowner?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/gethostname:
get:
description: This function retrieves the server's hostname.
operationId: Sys-gethostname
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
hostname:
description: The server's hostname.
example: hostname.example.com
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: gethostname
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return server's hostname
tags:
- Server Administration
- System Information
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n gethostname\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/gethostname?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/getminimumpasswordstrengths:
get:
description: This function retrieves the minimum password strength for cPanel & WHM accounts.
operationId: Security-getminimumpasswordstrengths
parameters:
- description: 'The service for which to display the minimum password value.
If you do not use this parameter, this function returns the minimum password
setting for all values.
* `default` - All services
* `createacct` - New cPanel accounts
* `list` - Mailing lists
* `mysql` - MySQL® database users
* `passwd` - WHM user or system accounts
* `postgres` - PostgreSQL database users
* `sshkey` - SSH keys
* `virtual` - Mail, FTP, Web Disk, and WebDAV accounts'
in: query
name: name
required: false
schema:
enum:
- default
- createacct
- ftp
- list
- mysql
- passwd
- postgres
- sshkey
- virtual
example: default
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
createacct:
description: The minimum password strength for new cPanel accounts.
example: 50
maximum: 100
minimum: 0
type: integer
default:
description: The minimum password strength for **all** services.
example: 50
maximum: 100
minimum: 0
type: integer
ftp:
description: The minimum password strength for FTP accounts.
example: 50
maximum: 100
minimum: 0
type: integer
list:
description: The minimum password strength for mailing lists.
example: 50
maximum: 100
minimum: 0
type: integer
mysql:
description: The minimum password strength for MySQL® database users.
example: 50
maximum: 100
minimum: 0
type: integer
passwd:
description: The minimum password strength for WHM user or system accounts.
example: 50
maximum: 100
minimum: 0
type: integer
postgres:
description: The minimum password strength for PostgreSQL database users.
example: 50
maximum: 100
minimum: 0
type: integer
sshkey:
description: The minimum password strength for SSH keys.
example: 50
maximum: 100
minimum: 0
type: integer
virtual:
description: The minimum password strength for mail, FTP, Web Disk, and WebDAV accounts.
example: 50
maximum: 100
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: getminimumpasswordstrengths
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return minimum password strength
tags:
- Security
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getminimumpasswordstrengths\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getminimumpasswordstrengths?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '82'
/getpkginfo:
get:
description: This function lists a hosting plan's (package's) settings.
operationId: Packages-getpkginfo
parameters:
- description: The hosting plan's name.
in: query
name: pkg
required: true
schema:
example: package1
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
pkg:
description: 'A list of the hosting plan''s settings.
**Note:**
* The function will only return the package''s enabled resources and settings.
* If the account or its hosting plan use package extensions, the list also
includes the extension''s variables.'
properties:
BWLIMIT:
description: 'The hosting plan''s bandwidth limit, in megabytes (MB).
* `unlimited` — The hosting plan allows unlimited bandwidth.'
example: unlimited
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited bandwidth.
- enum:
- null
- enum:
- unlimited
type: string
CGI:
description: 'Whether CGI is enabled for the hosting plan.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 1
- 0
example: 1
type: integer
CPMOD:
description: The hosting plan's cPanel interface theme.
example: jupiter
type: string
DIGESTAUTH:
description: 'Whether the hosting plan enables Digest Authentication.
* `y` — Enabled.
* `n` — Disabled.'
example: n
type: string
FEATURELIST:
description: The hosting plan's [feature list](https://go.cpanel.net/whmdocsFeatureManager).
example: myfeaturelist
type: string
FRONTPAGE:
deprecated: true
description: 'Whether Microsoft® FrontPage Extensions are enabled for the account.
**Note:**
cPanel & WHM ignores all FrontPage settings and parameters.'
enum:
- 1
- 0
example: 0
type: integer
HASSHELL:
description: 'Whether shell access is enabled for the hosting plan.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 1
- 0
example: 1
type: integer
IP:
description: 'Whether the hosting plan grants accounts a dedicated IP address.
* `1` — Dedicated IP address.
* `0` — Shared IP address.'
enum:
- 1
- 0
example: 1
type: integer
LANG:
description: The hosting plan's locale.
example: en
format: ISO-3166-1 (alpha-2)
type: string
MAXADDON:
description: 'The hosting plan''s maximum number of addon domains.
* `unlimited` — The hosting plan allows unlimited addon domains.'
example: 1
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited addon domains.
- enum:
- null
- enum:
- unlimited
type: string
MAXFTP:
description: 'The hosting plan''s maximum number of FTP accounts.
* `unlimited` — The hosting plan allows unlimited FTP accounts.'
example: 2
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited FTP accounts.
- enum:
- null
- enum:
- unlimited
type: string
MAXLST:
description: 'The hosting plan''s maximum number of mailing lists.
* `unlimited` — The hosting plan allows unlimited mailing lists.'
example: unlimited
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited mailing lists.
- enum:
- null
- enum:
- unlimited
type: string
MAXPARK:
description: 'The hosting plan''s maximum number of parked domains (aliases).
* `unlimited` — The hosting plan allows unlimited parked domains.'
example: 1
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited parked domains.
enum:
- unlimited
type: string
MAXPOP:
description: 'The hosting plan''s maximum number of email accounts.
* `unlimited` — The hosting plan allows unlimited email accounts.'
example: 20
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited email accounts.
- enum:
- null
- enum:
- unlimited
type: string
MAXSQL:
description: 'The hosting plan''s maximum number of SQL databases.
* `unlimited` — The hosting plan allows unlimited SQL databases.'
example: 1
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited SQL databases.
- enum:
- null
- enum:
- unlimited
type: string
MAXSUB:
description: 'The hosting plan''s maximum number of subdomains.
* `unlimited` — The hosting plan allows unlimited subdomains.'
example: 5
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited subdomains.
- enum:
- null
- enum:
- unlimited
type: string
MAX_DEFER_FAIL_PERCENTAGE:
description: 'The
[percentage of failed or deferred email messages](https://go.cpanel.net/howtopreventspam)
that the hosting plan can send per hour before the system rate-limits
outgoing mail.
* `unlimited` — The hosting plan allows unlimited email messages.'
example: 10
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited email messages.
enum:
- unlimited
type: string
MAX_EMAILACCT_QUOTA:
description: 'The hosting plan''s maximum email account quota size, in megabytes (MB).
* `unlimited` — The hosting plan allows an unlimited email account quota size.'
example: unlimited
oneOf:
- minimum: 1
type: integer
- description: The hosting plan allows an unlimited email account quota size.
enum:
- unlimited
type: string
MAX_EMAIL_PER_HOUR:
description: 'The [maximum number of emails](https://go.cpanel.net/howtopreventspam)
that the hosting plan can send in one hour.
* `unlimited` — The hosting plan allows unlimited emails per hour.'
example: 100
oneOf:
- minimum: 0
type: integer
- description: The hosting plan allows unlimited emails per hour.
enum:
- unlimited
type: string
MAX_TEAM_USERS:
description: The hosting plan's maximum number of Team users.
example: 7
maximum: 7
minimum: 0
nullable: true
type: integer
QUOTA:
description: "The hosting plan's disk space limit, in megabytes (MB).\n\n * `unlimited` — The\
\ hosting plan has unlimited disk space."
example: 100
oneOf:
- minimum: 0
type: integer
- description: The hosting plan has unlimited disk space.
- enum:
- null
- enum:
- unlimited
type: string
_PACKAGE_EXTENSIONS:
description: A list of one or more of the hosting plan's package extensions, if any exist.
example: ''
type: string
type: object
type: object
metadata:
properties:
command:
description: The method name called.
example: getpkginfo
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return hosting plan configuration
tags:
- Packages
- Hosting Plans
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getpkginfo \\\n pkg='package1'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getpkginfo?api.version=1&pkg=package1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/getresellerips:
get:
description: This function lists a reseller's available IP addresses.
operationId: Resellers-getresellerips
parameters:
- description: 'A reseller''s username, to query only that reseller.
**Note:**
If you do **not** specify a value, the function lists available IP addresses for the `root`
user.'
in: query
name: user
required: false
schema:
example: username
format: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
all:
description: 'Whether all of the reseller''s IP addresses are available.
* `1` — All of the reseller''s IP addresses are available.
* `0` — Some or all IP addresses are unavailable.'
enum:
- 0
- 1
example: 1
type: integer
ip:
description: The reseller's available IP addresses.
items:
example: 192.168.0.20
format: ipv4
type: string
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: getresellerips
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return reseller's available IP addresses
tags:
- Resellers
- Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getresellerips\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getresellerips?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/getzonerecord:
get:
description: "This function returns a line from a domain's DNS zone configuration.\n\n**Note:**\n\nOn servers that run\
\ CentOS 7, you may see a named warning about the absence of SPF resource records on DNS.\n * This warning is **not**\
\ relevant on CentOS 7 servers, because [RFC 7208 deprecated SPF records](https://tools.ietf.org/html/rfc7208). CentOS\
\ 7 servers use TXT records instead of SPF records.\n * Red Hat 7.1 and CentOS 7.1 both contain `bind-9.9.4-23.el7`,\
\ which is an updated version of BIND that complies with RFC 7208. To resolve this issue, update your operating system\
\ to a version that contains the updated version of BIND. For more information, read the [Red Hat Bugzilla case about\
\ SPF record errors](https://bugzilla.redhat.com/show_bug.cgi?id=1215164).\n\n**Important:**\n\n When you disable\
\ the [DNS Role](https://go.cpanel.net/serverroles), the system **disables** this function."
operationId: DNS-getzonerecord
parameters:
- description: The zone record's domain.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: The zone record's line number.
in: query
name: line
required: true
schema:
example: 2
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
record:
description: An array of objects containing the domain's zone record data.
items:
$ref: '#/components/schemas/getzonerecordResponseBase'
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: getzonerecord
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: Record obtained.
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return specific line from domain's DNS configuration
tags:
- DNS
- DNS Zones
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n getzonerecord \\\n domain='example.com' \\\n line='2'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/getzonerecord?api.version=1&domain=example.com&line=2
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/has_digest_auth:
get:
description: 'This function checks whether Digest Authentication is enabled for
a cPanel user. Windows® Vista, Windows® 7, and Windows® 8 require Digest Authentication
support in order to access [Web Disk](https://docs.cpanel.net/cpanel/files/web-disk/) over an unencrypted connection.'
operationId: Sys-has_digest_auth
parameters:
- description: The cPanel account username.
in: query
name: user
required: true
schema:
example: username
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
digestauth:
description: 'Whether Digest Authentication support is enabled.
* `1` — Enabled.
* `0` — Disabled.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: has_digest_auth
type: string
reason:
description: 'The reason the API function failed when the `metadata.result`
field is `0`. This field may display a success message when
a function succeeds.'
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate cPanel account Digest Authentication
tags:
- Accounts
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n has_digest_auth \\\n user='username'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/has_digest_auth?api.version=1&user=username
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.34'
/has_local_authority:
get:
description: 'This function checks whether the local server has the authority to publish changes for the domain''s DNS
records.
**Important:**
When you disable the [DNS role](https://go.cpanel.net/howtouseserverprofiles#roles), the system **disables** this
function.'
operationId: DNS-has_local_authority
parameters:
- description: 'The domain to check whether the local server is authoritative for the domain''s DNS records.
**Note:**
To check multiple domains, duplicate or increment the parameter name. For example, to check three domains, use the `domain` parameter
multiple times. Or the `domain`, `domain-1`, and `domain-2` parameters.'
examples:
multiple:
summary: Multiple domains
value: domain=example.com domain-1=example1.com domain-2=example2.com
single:
summary: A single domain
value: example.com
in: query
name: domain
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
records:
description: An array of objects that contains information about about the authoritative status of
a domain's local DNS zone files.
items:
properties:
domain:
description: The queried domain.
example: example.com
type: string
error:
description: "A message that details the reason why the local server's authoritative check failed.\n\
\n**Note:**\n\n The function **only** returns this value when the check fails."
example: (XID qdbmuk) DNS query (example3.com/SOA) timeout!
type: string
local_authority:
description: 'Whether the local server is authoritative for the domain''s DNS records.
* `1` — The local server is authoritative for the domain''s DNS records.
* `0` — The local server is **not** authoritative for the domain''s DNS records.'
enum:
- 0
- 1
example: 1
type: integer
nameservers:
description: The domain's authoritative nameservers, if any exist.
example:
- ns1.example.com
- ns2.example.com
items:
format: domain
type: string
type: array
zone:
description: The DNS zone that contains the domain's DNS records, if one exists.
example: example.com
format: domain
nullable: true
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: has_local_authority
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate local server is authoritative
tags:
- DNS
- Domain Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n has_local_authority \\\n domain='example.com'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/has_local_authority?api.version=1&domain=example.com
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/has_mycnf_for_cpuser:
get:
description: 'This function checks whether a cPanel user''s home directory contains
a valid .my.cnf file.'
operationId: Sys-has_mycnf_for_cpuser
parameters:
- description: The cPanel account username.
in: query
name: user
required: true
schema:
example: user
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
has_mycnf_for_cpuser:
description: 'Whether a valid .my.cnf file exists in the account''s home directory.
- `1` - Exists.
- `0` - Does not exist.'
enum:
- 0
- 1
example: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: has_mycnf_for_cpuser
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '- `1` - Success
- `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Validate MySQL Configuration file
tags:
- Accounts
- Account Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n has_mycnf_for_cpuser \\\n user='user'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/has_mycnf_for_cpuser?api.version=1&user=user
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.40'
/hold_outgoing_email:
get:
description: "This function sets Exim's queue to hold email that a user sends to an external address.\n\n**Note:**\n\
\n If mail for a cPanel user's account is suspended, the system will reject their email before the mail server puts\
\ it in the queue."
operationId: Accounts-hold_outgoing_email
parameters:
- description: 'The cPanel account.
**Note**
You **cannot** suspend the root user''s outgoing email with this function.'
in: query
name: user
required: true
schema:
example: example
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: hold_outgoing_email
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Add cPanel account to outbound email hold queue
tags:
- Mail
- cPanel Account Mail Management
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n hold_outgoing_email \\\n user='example'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/hold_outgoing_email?api.version=1&user=example
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '56'
/import_zone_key:
get:
description: 'This function imports a DNSSEC security key.
**Note:**
Only servers that run PowerDNS can use DNSSEC. If you call this function on a server
that doesn''t use PowerDNS, you will receive an error.'
operationId: DNS-import_zone_key
parameters:
- description: The domain for which to import the security key.
in: query
name: domain
required: true
schema:
example: example.com
type: string
- description: 'The security key''s data that the
[pdnsuti](https://doc.powerdns.com/authoritative/manpages/pdnsutil.1.html)
utility''s `export-zone-key` call returns.'
in: query
name: key_data
required: true
schema:
example: Private-key-format:%20v1.2%0AAlgorithm:%2013%20\(ECDSAP256SHA256\)%0APrivateKey:%20xCM281KtWE9oCsUX8fP1hDZ02/X7JCjp4QZA/DZjfX0=%0A%0A
type: string
- description: 'The security key''s type.
* `ksk` — Key-Signing Key
* `zsk` — Zone Signing Key
**Note:**
You **must** call these values in lowercase.'
in: query
name: key_type
required: true
schema:
example: ksk
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
import_key_id:
description: The system's assigned ID for the imported security key.
example: 1
minimum: 1
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: import_zone_key
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Import DNSSEC key
tags:
- DNS
- DNS Security
x-codeSamples:
- label: CLI
lang: Shell
source: whmapi1 --output=jsonpretty import_zone_key domain='example.com' key_type='ksk' key_data='Private-key-format:%20v1.2%0AAlgorithm:%2013%20\(ECDSAP256SHA256\)%0APrivateKey:%20xCM281KtWE9oCsUX8fP1hDZ02/X7JCjp4QZA/DZjfX0=%0A%0A'
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/import_zone_key?api.version=1&domain=example.com&key_type=ksk&key_data=Private-key-format%3a%2520v1.2%250AAlgorithm%3a%252013%2520%5c%28ECDSAP256SHA256%5c%29%250APrivateKey%3a%2520xCM281KtWE9oCsUX8fP1hDZ02%2fX7JCjp4QZA%2fDZjfX0%3d%250A%250A
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '86'
/importsshkey:
get:
description: This function imports an SSH key.
operationId: SSH-importsshkey
parameters:
- description: The key's contents.
in: query
name: key
required: true
schema:
example: REDACTED_PRIVATE_KEY_EXAMPLE
type: string
- description: The key's name.
in: query
name: name
required: true
schema:
example: TestKey
type: string
- description: 'Whether to extract and save only the private key.
* `1` — Private key only.
* `0` — All data.
**Note:**
This parameter defaults to `1` for
PPK [(PuTTY Key Generator)](https://www.puttygen.com/)
files and `0` for all other imports.'
in: query
name: extract_private
required: false
schema:
enum:
- 0
- 1
example: 0
type: integer
- description: 'Whether to extract and save only the public key.
* `1` — Public key only.
* `0` — All data.
**Note:**
This parameter defaults to `1` for
PPK [(PuTTY Key Generator)](https://www.puttygen.com/)
files and `0` for all other imports.'
in: query
name: extract_public
required: false
schema:
enum:
- 0
- 1
example: 0
type: integer
- description: 'The key''s passphrase.
**Note:**
This parameter is **required** whenever you import a PPK file.'
in: query
name: passphrase
required: false
schema:
default: null
example: 123456luggage
nullable: true
type: string
responses:
'200':
content:
application/json:
schema:
properties:
metadata:
properties:
command:
description: The method name called.
example: importsshkey
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Import SSH key
tags:
- SSH Keys and Connections
x-codeSamples:
- label: CLI
lang: Shell
source: REDACTED_PRIVATE_KEY_EXAMPLE
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/importsshkey?api.version=1&name=TestKey&key=-----BEGIN%20RSA%20PRIVATE%20KEY-----%20hPH%2bo4NgZrky7iGBb5iUg8R4aQzLPexpYfet25bLESvHOtutsBkbN7UWAaoM0pgM%20hytunlM8UU4BArJWlJyY6AD59aluZowBbuowKeU%2bf%2bTRaeJNJvkxTCOAipzp6LyG%20nrSVJ5hxSN%2fRPfntho1MEsdWYewVI4eLayuiZJyD%2bVONCYJh%2fvPLaZ9AVUJuMerl%20s%2fZJ24AwCW8cILG%2bC3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c3tTHa%2bcv0f7xY%20oL63hWLgZQD2m%2fg6rKpsN3NhC77tCyCNZavdKy7usvZyCsoH%2fmPR2129LcwAwbJ3%20u2Ec7qLncztSePHOmfmCTTED00a0YzFhKIQoJf7GrgLCMapYN%2fYPu0vgTDMPSi11%20RH0rdyzd6MuPVDZwLnWO%2bSltjX85yz1ba%2fQ199HZwQOw6ZyejDaPSWJHOndD3k%2br%20Q0T38gci9k4D87EwmfpK7zOaCoaiGiRQ6%2bDdYOv6hlzQ6Fdb2FOtlGQZharQ9WTC%20jOJBEj2oGUruc6P3fqhfUVllWi4cck0GgWZwcsmG1dDr8W6K9lrGA1dPbXoOns1B%20l58ghMGtHG7D0VlHs6SIqFmHr5kUgSQ4jJ2KZkVU8CrPBZ2HRtHQJJyjZWW2AbrE%20-----END%20RSA%20PRIVATE%20KEY-----
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11'
/install_dkim_private_keys:
get:
description: 'This function installs existing keys for use in a DomainKeys Identified Mail (DKIM) record. This is useful
if you do not want the system to generate keys for DKIM records.
**Notes:**
* This function does **not** update the local DNS server''s records.
* If the local DNS server is authoritative for the domain''s DNS records, use the WHM API 1 `enable_dkim` function
to update the local DNS server''s DNS records.
* We recommend that you use the WHM API 1 `install_dkim_private_keys` and `enable_dkim` functions in a batch WHM API
1 call.'
operationId: EmailAuth-install_dkim_private_keys
parameters:
- description: 'The domain for which to install an RSA private key to the local server''s DKIM record.
**Note:**
To install RSA private keys for multiple domains, increment the parameter name. For example, use the `domain-1=example-1.com`, `domain-2=example-2.com`,
and `domain-3=example-3.com` parameters.'
examples:
multiple:
summary: The domains for which to install an RSA private key to the local server's DKIM record.
value: domain-1=example-1.com&domain-2=example-2.com&domain-3=example-3.com
single:
summary: The domain for which to install an RSA private key to the local server's DKIM record.
value: example.com
in: query
name: domain
required: true
schema:
format: domain
type: string
- description: "An RSA key in [Privacy-Enhanced Mail (PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format.\n\
\n**Note:**\n\n * You **must** provide this parameter for each `domain` parameter.\n * To install multiple RSA keys\
\ for a domain, increment the parameter name. For example, use the `key-1`, `key-2` parameters.\nexamples:\n single:\n\
\ summary: An RSA key in [Privacy-Enhanced Mail (PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format.\n\
\ value: key\n multiple:\n summary: RSA keys in [Privacy-Enhanced Mail (PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail)\
\ format.\n value: key-1=KEYKEYKEY&key-2=KEYKEYKEY"
in: query
name: key
required: true
schema:
example: AAAAB3NzaC1yc2EAAAABIwAAAQEA5kSivOqhs0U9ZMN20nxFe27QZ3t0lT2zbH7OSXylKd1rjAjYXGnSXC9j2uaZlemHlptBKVziMJC86ha7Hcj6dVOVrDQ6vF4q34bOCjtKLphQ0IjBzVIvqILH9eLJdRaOrS34CmgmPaisrCk5wKVlakygvUfcj3HzaTKS6THyZDGx5shdTpa9lby8tpOD3JceV7ay4w8r0DipoKPC0OLpvS4EABEeMo9sx8zQEaKv03XygjNCCYtFvxlQQIRGlVoL7mPaHSaL3anI05RpNbm/PS+9BhZg+BqNjU4ofHBbfkXk5MiN6M7ieR4Sk5BquccboGF13U5slNgmCEekdt0amw
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects containing information about the RSA private key installation to
the local server's DKIM record.
items:
properties:
domain:
description: The RSA private key's associated domain.
example: example.com
format: domain
type: string
msg:
description: The RSA private key's installation status message.
example: Installed Keys
type: string
status:
description: 'Whether the system installed the RSA private key to the local server''s DKIM record.
* `1` — The system installed the RSA private key.
* `0` — The system **cannot** install the RSA private key.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: install_dkim_private_keys
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Install existing private key to DKIM record
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n install_dkim_private_keys \\\n domain='example.com' \\\n key='AAAAB3NzaC1yc2EAAAABIwAAAQEA5kSivOqhs0U9ZMN20nxFe27QZ3t0lT2zbH7OSXylKd1rjAjYXGnSXC9j2uaZlemHlptBKVziMJC86ha7Hcj6dVOVrDQ6vF4q34bOCjtKLphQ0IjBzVIvqILH9eLJdRaOrS34CmgmPaisrCk5wKVlakygvUfcj3HzaTKS6THyZDGx5shdTpa9lby8tpOD3JceV7ay4w8r0DipoKPC0OLpvS4EABEeMo9sx8zQEaKv03XygjNCCYtFvxlQQIRGlVoL7mPaHSaL3anI05RpNbm/PS+9BhZg+BqNjU4ofHBbfkXk5MiN6M7ieR4Sk5BquccboGF13U5slNgmCEekdt0amw'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/install_dkim_private_keys?api.version=1&domain=example.com&key=AAAAB3NzaC1yc2EAAAABIwAAAQEA5kSivOqhs0U9ZMN20nxFe27QZ3t0lT2zbH7OSXylKd1rjAjYXGnSXC9j2uaZlemHlptBKVziMJC86ha7Hcj6dVOVrDQ6vF4q34bOCjtKLphQ0IjBzVIvqILH9eLJdRaOrS34CmgmPaisrCk5wKVlakygvUfcj3HzaTKS6THyZDGx5shdTpa9lby8tpOD3JceV7ay4w8r0DipoKPC0OLpvS4EABEeMo9sx8zQEaKv03XygjNCCYtFvxlQQIRGlVoL7mPaHSaL3anI05RpNbm%2fPS%2b9BhZg%2bBqNjU4ofHBbfkXk5MiN6M7ieR4Sk5BquccboGF13U5slNgmCEekdt0amw
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/install_rpm_plugin:
get:
description: This function starts a plugin installation. The installation runs as a background process.
operationId: Plugins-install_rpm_plugin
parameters:
- description: The name of a plugin RPM to install.
in: query
name: name
required: true
schema:
example: plugin name
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
log_entry:
description: The name of the RPM plugin log entry for this installation, which includes a timestamp.
example: 2017-01-01T19:39:27Z_plugin_name
type: string
pid:
description: The PID of the process that will install the RPM.
example: 1234
minimum: 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: install_rpm_plugin
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Install WHM plugin RPM package
tags:
- RPM
- Install or Uninstall Package
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n install_rpm_plugin \\\n name='plugin name'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/install_rpm_plugin?api.version=1&name=plugin%20name
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/install_service_ssl_certificate:
get:
description: 'This function installs a new SSL certificate on a service.
**Important:**
You **must** restart the selected service after you install a new SSL certificate.'
operationId: SSL-install_service_ssl_certificate
parameters:
- description: 'The certificate to install.
**Note:**
You **must** URI-encode this value.'
in: query
name: crt
required: true
schema:
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
type: string
- description: 'The certificate''s key.
**Note:**
You **must** URI-encode this value.'
in: query
name: key
required: true
schema:
example: REDACTED_PRIVATE_KEY_EXAMPLE
format: pem-private-key
type: string
- description: 'The service on which to install the SSL certificate.
* `ftp`
* `exim`
* `dovecot`
* `cpanel`
**Important:**
You **must** restart the selected service after you install a new SSL certificate.'
in: query
name: service
required: true
schema:
enum:
- ftp
- exim
- dovecot
- cpanel
example: cpanel
type: string
- description: 'The certificate''s Certificate Authority (CA) bundle.
**Note:**
You **must** URI-encode this value.'
in: query
name: cabundle
required: false
schema:
default: ''
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
certificate:
description: The SSL certificate's contents.
example: REDACTED_CERTIFICATE_EXAMPLE
format: pem-certificate
type: string
certificate_info:
description: An object containing the service's certificate information.
properties:
domains:
description: A list of domains that correspond to the certificate.
items:
example: example.com
format: domain
type: string
type: array
ecdsa_curve_name:
description: 'The ECDSA curve that the certificate''s key uses.
* `prime256v1`
* `secp384r1`
* `null` — The certificate''s key is **not** an ECDSA key.'
enum:
- prime256v1
- secp384r1
example: null
nullable: true
type: string
ecdsa_public:
description: 'The certificate''s key''s ECDSA compressed public point, in hexadecimal format.
* `null` — The certificate''s key is **not** an ECDSA key.'
example: null
nullable: true
type: string
is_self_signed:
description: 'Whether the certificate is self-signed.
* `1` — Self-signed.
* `0` — **Not** self-signed.'
enum:
- 1
- 0
example: 1
type: integer
issuer.commonName:
description: The certificate's Common Name.
example: example.com
nullable: true
type: string
issuer.organizationName:
description: The certificate's Organization Name.
example: Organization
type: string
issuer_text:
description: The certificate's issuer information.
example: 'localityName
city
emailaddress
c.example@example.com
stateOrProvinceName
state
countryName
US
commonName
hostname
organizationName
cpanel'
type: string
key_algorithm:
description: 'The certificate''s key''s algorithm.
* `rsaEncryption` — RSA.
* `id-ecPublicKey` — ECDSA.'
enum:
- rsaEncryption
- id-ecPublicKey
example: rsaEncryption
type: string
modulus:
description: 'The certificate''s key''s modulus, in hexadecimal format.
* `null` — The certificate''s key is **not** an RSA key.'
example: a673c3b17344664b35f8791f562d3aea6bf4d8faa3ae3fc0a519380fd453964a36677c34d48677ecb7f5ed035df026f5f0f8fbfe21745e52daf1f3b9e58c73f0baefdb709320e2202e7d05250b051a59b30ff1fef22d83d7140c1c81cea314a0890ce8d2226799872181c58a74016c7aaa2cff5ac72b575cecde8f304aa572a2ea03d8b173ab76c6e8cdb9dfd0da81e1119cefd4b8b4dbfbe0e46c7f1ee2fe8b5fd5504e58ccbc0d13b4fa41ecc9ebd0dabe1d1fec5c724f748167e7c0553e997f9b77eb36abce70973f06df151748d41b758de3efd7afa6f2464a1547f5ff158469d96e248be464df9eda0e7ce854a89332a2c1278b17c425368a9604f454db
nullable: true
type: string
modulus_length:
description: 'The certificate''s key''s modulus size, in bits.
* `null` — The certificate''s key is **not** an RSA key.'
example: 2048
type: integer
not_after:
description: The date the certificate expires.
example: 1601467200
format: unix_timestamp
type: integer
not_before:
description: The certificate's validation date.
example: 1601467200
format: unix_timestamp
type: integer
signature_algorithm:
description: The certificate's OID hash algorithm signature.
example: sha256WithRSAEncryption
type: string
validation_type:
description: 'The certificate''s validation type.
* `ev` — Extended Validation.
* `ov` — Organization Validation.
* `dv` — Domain Validation.
* `null` — The certificate does not match one of the system’s recognized validation types.'
enum:
- ev
- ov
- dv
example: dv
nullable: true
type: string
type: object
service:
description: 'The service that the certificate corresponds to.
* `ftp`
* `exim`
* `dovecot`
* `cpanel`'
enum:
- ftp
- exim
- dovecot
- cpanel
example: cpanel
type: string
service_description:
description: The service's description.
example: Calendar, cPanel, WebDisk, Webmail, and WHM Services
type: string
type: object
metadata:
properties:
command:
description: The method name called.
example: install_service_ssl_certificate
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 1
- 0
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Install SSL certificate for service
tags:
- SSL
- cPanel Account Settings
x-codeSamples:
- label: CLI
lang: Shell
source: REDACTED_PRIVATE_KEY_EXAMPLE
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/install_service_ssl_certificate?api.version=1&service=cpanel&crt=-----BEGIN%20CERTIFICATE-----%0aMIIE3f4g5h7j73f235gy54hvcNAQELBQAwgYYxEDAOBgNVBAcMB2hvd097342boi0w389w0BCQ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v3PhRKL%0aJXpUIDMCgYEA2P7D%2foZu%2bdEPW8JhUsDDXY238ZDbQzWBi6n1uUnMJCnUABd%2fmvuV%0aILR%2fiSBHmt9UdH2YECwry58xFjhXwfTvPc155PiJddjENGFUqohjl0wh0VzLEyfF%0aVb6iVMIdrycD%2fO4U26I3Qco2lQYPoPgrBkAGJ5%2fGCjkTiL0JssoMXa4%3d%0a-----END%20RSA%20PRIVATE%20KEY-----
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '11.40'
/install_spf_records:
get:
description: This function installs a Sender Policy Framework (SPF) record for a domain on the DNS server.
operationId: EmailAuth-install_spf_records
parameters:
- description: 'The domain for which to install an SPF record on the DNS server.
**Note:**
To install multiple SPF records, increment the parameter name. For example, use the `domain-1=example-1.com`, `domain-2=example-2.com`,
and `domain-3=example3.com` parameters.'
examples:
multiple:
summary: Multiple domains
value: domain-1=example-1.com&domain-2=example-2.com&domain-3=example-3.com
single:
summary: Single domain
value: example.com
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: 'An SPF record.
You **must** provide this parameter for every `domain` parameter.'
in: query
name: record
required: true
schema:
example: v%3Dspf1%20%2Bip4%3A1192.0.2.0%20-all
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
payload:
description: An array of objects containing information about the domain's SPF record installation
to the DNS server.
items:
properties:
domain:
description: The SPF record's associated domain on the DNS server.
example: example.com
format: domain
type: string
msg:
description: The SPF record's installation status to the DNS server.
example: '[REPLACE:TXT@example.com.:v=spf1 ip4:192.0.2.0 -all]'
type: string
status:
description: 'Whether the system installed the SPF record to the DNS server.
* `1` — The system installed the SPF record on the DNS server.
* `0` — The system **cannot** install the SPF record on the DNS server.'
enum:
- 0
- 1
example: 1
type: integer
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: install_spf_records
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success.
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Install domain SPF record
tags:
- Mail
- Mail DNS Settings
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n install_spf_records \\\n domain='example.com' \\\n record='v%3Dspf1%20%2Bip4%3A1192.0.2.0%20-all'\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/install_spf_records?api.version=1&domain=example.com&record=v%253Dspf1%2520%252Bip4%253A1192.0.2.0%2520-all
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '78'
/installable_mysql_versions:
get:
description: 'This function lists all available versions of MySQL® and MariaDB.
**Important:**
When you disable the [MySQL/MariaDB](https://go.cpanel.net/howtouseserverprofiles#roles) role **and** remote MySQL
is **not** already configured, the system disables this function.'
operationId: Mysql-installable_mysql_versions
parameters: []
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
versions:
description: An array of objects that contain information about the database version information.
items:
properties:
server:
description: 'The server''s database engine.
* `mysql`
* `mariadb`'
enum:
- mysql
- mariadb
example: mariadb
type: string
version:
description: The version number in `major.minor` format.
example: '10.0'
type: string
type: object
type: array
type: object
metadata:
properties:
command:
description: The method name called.
example: installable_mysql_versions
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is `0`. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` — Success
* `0` — Failed. Check the `reason` field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return available MySQL versions
tags:
- Databases
- Manage MySQL Server
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n installable_mysql_versions\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/installable_mysql_versions?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: cPanel 11.48
/installed_versions:
get:
description: This function lists the versions of third-party software that ship with cPanel & WHM.
operationId: ApplicationVersions-installed_versions
parameters:
- description: 'Whether to list the server''s installed RPMs in the function''s
`cpanel_packages`, `ea_4_packages`, and `os_packages` arrays.
* `1` - List.
* `0` - Do **not** list.'
in: query
name: packages
required: false
schema:
default: 0
enum:
- 0
- 1
example: 1
type: integer
responses:
'200':
content:
application/json:
schema:
properties:
data:
example:
apache: 2.4.12
apache_php_default_version: 0
apache_php_versions:
- 0
bind: 9.9.4-29
clamav: 0.99.2-1
cpanel_and_whm: 11.64.0.9999
cpanel_packages:
- cpanel-ace-editor-1.2.6-1.cp1166.noarch
- cpanel-yui-2.9.0-5.cp1136.noarch
cpanel_php: 7.2.7-4
cron: 0
cronie: 1.4.11-23
dovecot: 2.2.31 (65cde28)
ea_4_packages: []
easyapache: '4'
exim: 4.89-2
linux_kernel: 3.10.0-327.18.2.el7.x86_64
mailman: 2.1.23-9
mariadb: 0
mariadb_build: 0
munin: 0
mysql: 5.7.61
mysql_build: 5.7.61-1
nscd: 2.17-222
openssh-server: 7.4p1-21
operating_system_name: centos
operating_system_version: '7.2'
os_packages:
- ImageMagick-6.7.8.9-15.el7_2.x86_64
- zsh-5.0.2-14.el7.x86_64
p0f: 3.09b-1
postgresql: 0
postgresql_build: 0
powerdns: 0
proftpd: 0
pureftpd: 1.0.45
roundcube: 1.2.4-1
rsyslog: 8.24.0-16
spamd: 3.4.2
squirrelmail: 0
properties:
apache:
description: 'The Apache® version.
* `0` - Apache is **not** installed on the server.'
example: 2.4.12
oneOf:
- description: A version of Apache.
type: string
- description: Apache is **not** installed.
enum:
- 0
type: integer
apache_php_default_version:
description: 'The default PHP version for Apache.
* `0` - PHP for Apache is **not** installed on the server.'
example: 7.3.21-1.1.1
oneOf:
- description: A version for Apache of default PHP.
type: string
- description: default PHP is **not** installed.
enum:
- 0
type: integer
apache_php_versions:
description: 'An array of PHP versions that the system installs for Apache.
If PHP for Apache is **not** installed, this will return an array containing `0`.
**Note:**
Unlike other keys in this object, this returns a `[0]` value when PHP for Apache is **not** installed.'
example:
- 7.1.33-3.4.2
- 7.2.33-1.1.1
- 7.3.21-1.1.1
items:
oneOf:
- description: A version of PHP for Apache.
type: string
- description: PHP for Apache is **not** installed on the server.
enum:
- 0
type: integer
type: array
bind:
description: 'The BIND version.
* `0` - BIND is **not** installed on the server.'
example: 9.9.4-29
oneOf:
- description: A version of BIND.
type: string
- description: BIND is **not** installed.
enum:
- 0
type: integer
clamav:
description: 'The ClamAV version.
* `0` - ClamAV is **not** installed on the server.'
example: 0.99.2-1
oneOf:
- description: A version of ClamAV.
type: string
- description: ClamAV is **not** installed.
enum:
- 0
type: integer
cpanel_and_whm:
description: The cPanel & WHM version.
example: 11.64.0.9999
type: string
cpanel_packages:
description: 'An array of cPanel-provided RPMs.
**Note:**
The function **only** returns this array if you set the `packages` parameter to `1`.'
example:
- cpanel-ace-editor-1.1.9-1.cp1152.noarch
- cpanel-analog-6.0-2.cp1136.x86_64
- cpanel-angular-chosen-1.4.0-1.cp1158.noarch
items:
type: string
type: array
cpanel_php:
description: 'The system PHP version.
* `0` - System PHP is **not** installed on the server.'
example: 7.2.7-4
oneOf:
- description: A version of cPanel & WHM.
type: string
- description: cPanel & WHM is **not** installed.
enum:
- 0
type: integer
cron:
description: 'The version of the ISC / Vixie cron daemon. This is the default cron service installed
on Ubuntu.
* `0` - ISC / Vixie cron is **not** installed on the server.'
example: 3.0pl1-136ubuntu1
oneOf:
- description: A version of the cron daemon.
type: string
- description: ISC / Vixie cron is **not** installed.
enum:
- 0
type: integer
cronie:
description: 'The version of the cronie cron daemon. This is the default cron service installed on
CentOS, CloudLinux, AlmaLinux, and other systems running derivatives of Red Hat Enterprise Linux.
* `0` - cronie is **not** installed on the server.'
example: 1.4.11-23
oneOf:
- description: A version of the cron daemon.
type: string
- description: cronie is **not** installed.
enum:
- 0
type: integer
dovecot:
description: 'The Dovecot version.
* `0` - Dovecot is **not** installed on the server.'
example: 2.2.31 (65cde28)
oneOf:
- description: A version of Dovecot.
type: string
- description: Dovecot is **not** installed.
enum:
- 0
type: integer
ea_4_packages:
description: 'An array of EasyApache 4 (EA4)-provided RPMs.
**Note:**
The function **only** returns this array if you set the `packages` parameter to `1`.'
example: []
items:
type: string
type: array
easyapache:
description: 'The EasyApache version.
* `0` - EasyApache is **not** installed on the server.'
example: '4'
oneOf:
- description: A version of EasyApache.
type: string
- description: EasyApache is **not** installed.
enum:
- 0
type: integer
exim:
description: 'The Exim version.
* `0` - Exim is **not** installed on the server.'
example: 4.89-2
oneOf:
- description: A version of Exim.
type: string
- description: Exim is **not** installed.
enum:
- 0
type: integer
linux_kernel:
description: The Linux® kernel version.
example: 3.10.0-327.18.2.e17.x86_64
type: string
mailman:
description: 'The Mailman version.
* `0` - Mailman is **not** installed on the server.'
example: 2.1.23-9
oneOf:
- description: A version of Mailman.
type: string
- description: Mailman is **not** installed.
enum:
- 0
type: integer
mariadb:
description: 'The MariaDB® version number.
* `0` - MariaDB is **not** installed on the server.'
example: 5.5.65
oneOf:
- description: A version number of MariaDB.
type: string
- description: MariaDB is **not** installed.
enum:
- 0
type: integer
mariadb_build:
description: 'The MariaDB RPM''s version number.
* `0` - MariaDB RPM''s is **not** installed on the server.'
example: 5.5.65-1
oneOf:
- description: A version number of MariaDB RPM's.
type: string
- description: MariaDB RPM's is **not** installed.
enum:
- 0
type: integer
munin:
description: 'The Munin version.
* `0` - Munin is **not** installed on the server.'
example: 2.0.30
oneOf:
- description: A version of Munin.
type: string
- description: Munin is **not** installed.
enum:
- 0
type: integer
mysql:
description: 'The MySQL® version number.
* `0` - MySQL is **not** installed on the server.'
example: 5.7.61
oneOf:
- description: A version number of MySQL.
type: string
- description: MySQL is **not** installed.
enum:
- 0
type: integer
mysql_build:
description: 'The MySQL RPM''s version number.
* `0` - MySQL RPM''s is **not** installed on the server.'
example: 5.7.61-1
oneOf:
- description: A version number of MySQL RPM's.
type: string
- description: MySQL RPM's is **not** installed.
enum:
- 0
type: integer
nscd:
description: 'The Name Service Cache Daemon version number.
* `0` - Name Service Cache Daemon is **not** installed on the server.'
example: 2.17-222
oneOf:
- description: A version number of Name Service Cache Daemon.
type: string
- description: Name Service Cache Daemon is **not** installed.
enum:
- 0
type: integer
openssh-server:
description: 'The OpenSSH version.
* `0` - OpenSSH is **not** installed on the server.'
example: clients-6.6.1p1-25
oneOf:
- description: A version of OpenSSH.
type: string
- description: OpenSSH is **not** installed.
enum:
- 0
type: integer
operating_system_name:
description: The server's operating system (OS).
example: centos
type: string
operating_system_version:
description: The version of the server's OS.
example: '7.2'
type: string
os_packages:
description: "An array of OS-provided RPMs.\n\n**Note:**\n\n The function **only** returns this array\
\ if you set the `packages` parameter to `1`."
example:
- GeoIP-1.5.0-11.el7.x86_64
- ImageMagick-6.7.8.9-15.el7_2.x86_64
- ModemManager-glib-1.6.0-2.el7.x86_64
items:
type: string
type: array
p0f:
description: 'The Passive OS Fingerprinting version number.
* `0` - Passive OS Fingerprinting is **not** installed on the server.'
example: 3.09b-1
oneOf:
- description: A version number of Passive OS Fingerprinting.
type: string
- description: Passive OS Fingerprinting is **not** installed.
enum:
- 0
type: integer
postgresql:
description: 'The PostgreSQL® version.
* `0` - PostgreSQL is **not** installed on the server.'
example: '9.2'
oneOf:
- description: A version of PostgreSQL.
type: string
- description: PostgreSQL is **not** installed.
enum:
- 0
type: integer
postgresql_build:
description: 'The PostgreSQL RPM''s version number.
* `0` - PostgreSQL RPM''s is **not** installed on the server.'
example: '0'
oneOf:
- description: A version number of PostgreSQL RPM's.
type: string
- description: PostgreSQL RPM's is **not** installed.
enum:
- 0
type: integer
powerdns:
description: 'The PowerDNS version.
* `0` - PowerDNS is **not** installed on the server.'
example: 4.1.10-15
oneOf:
- description: A version of PowerDNS.
type: string
- description: PowerDNS is **not** installed.
enum:
- 0
type: integer
proftpd:
description: 'The ProFTP version.
* `0` - ProFTP is **not** installed on the server.'
example: 1.3.7d
oneOf:
- description: A version of ProFTP.
type: string
- description: ProFTP is **not** installed.
enum:
- 0
type: integer
pureftpd:
description: 'The Pure-FTPd version.
* `0` - Pure-FTPd is **not** installed on the server.'
example: 1.0.45
oneOf:
- description: A version of Pure-FTPd.
type: string
- description: Pure-FTPd is **not** installed.
enum:
- 0
type: integer
roundcube:
description: 'The Roundcube version.
* `0` - Roundcube is **not** installed on the server.'
example: 1.2.4-1
oneOf:
- description: A version of Roundcube.
type: string
- description: Roundcube is **not** installed.
enum:
- 0
type: integer
rsyslog:
description: 'The Rsyslog version number.
* `0` - Rsyslog is **not** installed on the server.'
example: 8.24.0-16
oneOf:
- description: A version number of Rsyslog.
type: string
- description: Rsyslog is **not** installed.
enum:
- 0
type: integer
spamd:
description: 'The Apache SpamAssassin™ version number.
* `0` - Apache SpamAssassin is **not** installed on the server.'
example: 3.4.2
oneOf:
- description: A version number of Apache SpamAssassin.
type: string
- description: Apache SpamAssassin is **not** installed.
enum:
- 0
type: integer
type: object
metadata:
properties:
command:
description: The method name called.
example: installed_versions
type: string
reason:
description: The reason the API function failed when the `metadata.result` field is 0. This field
may display a success message when a function succeeds.
example: OK
type: string
result:
description: '* `1` - Success
* `0` - Failed: Check the reason field for more details.'
enum:
- 0
- 1
example: 1
type: integer
version:
description: The version of the API function.
example: 1
type: integer
type: object
description: HTTP Request was successful.
summary: Return third-party software versions
tags:
- Updates
x-codeSamples:
- label: CLI
lang: Shell
source: "whmapi1 --output=jsonpretty \\\n installed_versions\n"
- label: URL
lang: HTTP
source: https://hostname.example.com:2087/cpsess##########/json-api/installed_versions?api.version=1
x-cpanel-api-version: WHM API 1
x-cpanel-available-version: '64'
/installssl:
get:
description: This function installs an SSL certificate.
operationId: SSL-installssl
parameters:
- description: 'The certificate''s text.
**Note:**
You **must** URI-encode this value.'
in: query
name: crt
required: true
schema:
example: '-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUy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BYBrc6bO%0AjNjvnEQRbqZY%0A-----END%20CERTIFICATE-----'
type: string
- description: The domain's name.
in: query
name: domain
required: true
schema:
example: example.com
format: domain
type: string
- description: 'The certificate''s key.
**Note:**
You **must** URI-encode this value.'
in: query
name: key
required: true
schema:
example: '-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEpAIBAAKCAQEA4AVM6J4Qg3DIFWr/eJ5GRmIATYsJIepKbrDy70sq+udcO8R8xxak0oMZ/9mUdpjSNK/fLVTuCO0kxTfQ9VUWJllX7ThD6Zh9ZvlC/nf/OEZLm3ZbnBgu8rbC8E9wuDOkKbJLnINgdhtowIydLK2MJ++q62bFV89jkHWTMcKyyqHENo3hc+lkpd9vnp8rZTinaVb7nX26uQqAFZYRo+WU0G/NPsq40QVSMoqPxyEz4qXo0hvuIlCXmzFZq/6fCVPEKPLhQgMmpdBkMz4dVOazREfqXdjMD2+QXSNiA1AwWr8l0r4rtzlxEYDJIR41yXp0xMl3KoolxMyvLBqZy32niQIDAQABAoIBAQCmbGmhWmPsMeoCt1WJFxQgD4goE0U6k+Kt7vjbOt14Pk6v/B2yjaju1wSGpO59WLS4/XrwI2se6IXrmba7u3VUEgWXLriNHoLy7/SMNTs+ZEKhAMG36eNe3tVdT7busTag31r6sEMGGwCsIwpU+azosk0oylWLEX/m/uHWEs1eaIEWWWtgHB+KZrrP7Rr9RYfVQ144DxmOxS3Ca9+mST62WqAVPR6POWGEfZqnZl/ePWZPcQYbFrhwnnefNoYBl/bnLZBo8rbNWxAqOEOuKfkrBzglKG/39WKPw8rj4JIVzY0yOuFCW6xCDWRkOrhU8Ol/3FvwDa3uJpkpmgPr4TgxAoGBAPGPLmxSuOYR97mDAXxrs037F2GCbqWvI6m7/ezWe9yn+bMpjSIWfsgtq4FsyqzPueEkDdQWi3xh6nu2WI/1Tl875opGAqEIJMqss/u11tnva5wzu1cCL6H85A5+HMOBvP3sm6CObKcVw92h7kxynVIUJJWhjfeZMN8gBFFpKIVFAoGBAO1ptXBmXLC/YKKvtHI3M16/ZopvM8ZqU2HcAHaw214Refw9JJ/e3/xTNfSerVTyCAQO1AdWTzJKBN8jmSYv1Mk1D3RpQPNR7wVzi46KR081AU41uMpqIGVOwHtyVnW/ZfLrc1DLIK8Cx8aHfoxffwzoMO5SEQSooeZfOLhsfDN1AoGBAKQTUEINsj+75psgbAr6ELGgItJ9yPBLVRr+cUzEpx9LDWVvjMihpP4NX1gq8EOPWT+ewLHVmmsjCyV6xw8JXXF8e2xif3in0m3D/wCzE7u2T06rKM3B017hKnrZmGoHnrqPU2osM4sOUpshWX6dv1Q4EF1+fbK3YCW+VpCBsB9NAoGAQo+uhNLODee56iKkzpjXWCsFTq6ar3hD5F3P63buKdNwhd2GlSPhXFbf+7M5GWW6BZk6rMvv7EOAVice2uvyFm8/4/1WbmF8R+T7LX1rPLO5p/m701QpvP11TabiwqRkqtSEQhSRF0AKTojSW/yyHCZFAawUhV/Z9EKiHmKb97kCgYAyzmFc2it0HqnsOnRybop603nqMtWGTQO4cxa93HUDpYajuK2K3DfrxUj6lG3z/oKJGGE2JqgZ6LBAhNJtJWJu2ox3pKGE63QjLJnVwb8y1NFYpe/crbLePuBwIR0L7drXxfv7O5btY7h6QI2d1/UIAQPAWbxLoTM+ndQ/uPEdfA%3D%3D-----END%20RSA%20PRIVATE%20KEY-----'
type: string
- description: 'The certificate''s certificate authority (CA) bundle.
If you do not use this parameter, the system automatically determines the
appropriate CA bundle file to use.
**Note:**
You **must** URI-encode this value.'
in: query
name: cab
required: false
schema:
example: '-----BEGIN%20CERTIFICATE-----%0AMIIDNTCCAh2gAwIBAgIFAY0o0kwwDQYJKoZIhvcNAQELBQAwFjEUMBIGA1UEAwwL%0AZG9tYWluLnRlc3QwHhcNMTcxMDMxMTUyMjU1WhcNMTgxMDMxMTUyMjU1WjAWMRQw%0AEgYDVQQDDAtkb21haW4udGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBALer6vzwFt%2BO6ooHcXpq%2Bi%2FOVVQEY3oWxrqH6mB%2FPssVSxwcf6bLjoO4so%2Fn%0Adrymhb9mqfkOqYVHwnQ%2Fh2uM%2BIw1NKKDfwOljWcgCS24NykbfQUlW%2FSNDTovdDGl%0AT1Aner090Qse%2B19ta8KS%2F3Akz37bkgqMkPO%2FiEOHlF%2FLbLvjfighkoGco51wc6d7%0AHCQwPWR%2BUenbQWzUwR4%2F4Pqw%2FYrxDAv8O%2FEnNfOGwnCnlnFq4a390VGriqMAngzI%0AlRMVDu4qJGW3dFNStVUm71%2B16ba%2FeIVBQGN2rbgie6Rb6VuHdsqSreea0tSLRxdd%0AFd7A0QMQRvtnqoUv6RZBhefr2t0CAwEAAaOBiTCBhjAdBgNVHQ4EFgQUeitnD4U4%0AMXtmLX53dTAZPENjovwwHwYDVR0jBBgwFoAUeitnD4U4MXtmLX53dTAZPENjovww%0ACQYDVR0TBAIwADA5BgNVHREEMjAwggtkb21haW4udGVzdIIQbWFpbC5kb21haW4u%0AdGVzdIIPd3d3LmRvbWFpbi50ZXN0MA0GCSqGSIb3DQEBCwUAA4IBAQAeD4Fc%2FBwM%0AfJEvlPO30%2FOp2JJxG92tbgsoY9CKTYoZy0IMHhwOrt%2FB36joYDrOhtiO6XsRw4Zm%0AAPT8ey9p61kUc6XWs5oU9aifKeAKzWCZV9wQphbY%2F0rQp1YPsVN9tBgiag754HPo%0AbNDhWOZSZDKnh82DikTD6iciTxeblrvcbFC4Z76JH31dvqmNMEAgZvPCpq86Ued5%0A52gKM0u2%2BrK%2FzIYjh%2FhooqN%2BTY%2BJQ667JzLzPNenzAYFsoIQgVj6%2FZoFqJA4nbxC%0Azv%2Fspqc0OQ2W9m5egRPDhngKt%2Bi9804N7FeilBL%2FcpEgUHhgzMBi1T9n%2BYBrc6bO%0AjNjvnEQRbqZY%0A-----END%20CERTIFICATE-----'
type: string
- description: 'The IP address of the certificate''s domain.
This parameter defaults to the domain''s local IP address.'
in: query
name: ip
required: false
schema:
example: 192.168.0.20
format: ipv4
type: string
responses:
'200':
content:
application/json:
schema:
properties:
data:
properties:
action:
description: The action for the function to execute.
enum:
- install
example: install
type: string
aliases:
description: A list of domain aliases on the account.
example:
- mail.example.com
- subdomain.example.com
items:
format: domain
type: string
type: array
domain:
description: The domain on which the function installed the SSL certificate.
example: example.com
format: domain
type: string
extra_certificate_domains:
description: A list of domains that possess additional SSL certificates.
example:
- mail.example.com
- subdomain.example.com
items:
format: domain
type: string
type: array
html:
description: The function's raw HTML output.
example: Certificate verification passed
The Certificate for the domain example.com was
installed on the IP 192.168.0.20.