- Created by Documentation, last modified on May 01, 2019
disable_authentication_provider
disable_failing_authentication_providers
enable_authentication_provider
get_available_authentication_providers
get_provider_client_configurations
get_provider_configuration_fields
get_provider_display_configurations
get_users_authn_linked_accounts
set_provider_client_configurations
set_provider_display_configurations
twofactorauth_generate_tfa_config
twofactorauth_get_user_configs
cpgreylist_is_server_netblock_trusted
cpgreylist_list_entries_for_common_mail_provider
cpgreylist_load_common_mail_providers_config
cpgreylist_save_common_mail_providers_config
cpgreylist_trust_entries_for_common_mail_provider
cpgreylist_untrust_entries_for_common_mail_provider
create_cpgreylist_trusted_host
delete_cpgreylist_trusted_host
block_incoming_email_from_country
block_incoming_email_from_domain
expunge_messages_for_mailbox_guid
get_unique_recipient_count_per_sender_for_user
get_unique_sender_recipient_count_per_user
get_user_email_forward_destination
list_blocked_incoming_email_countries
list_blocked_incoming_email_domains
set_user_email_forward_destination
unblock_incoming_email_from_country
unblock_incoming_email_from_domain
Description
This function sets the minimum password strength for cPanel & WHM accounts.
Examples
https://hostname.example.com:2087/cpsess##########/json-api/setminimumpasswordstrengths?api.version=1&passwd=50
https://hostname.example.com:2087/cpsess##########/xml-api/setminimumpasswordstrengths?api.version=1&passwd=50
whmapi1 setminimumpasswordstrengths passwd=50
Notes:
- Unless otherwise noted, you must URI-encode values.
- For more information and additional output options, read our Guide to WHM API 1 documentation or run the
whmapi1 --help
command. If you run CloudLinux™, you must use the full path of the
whmapi1
command:/usr/local/cpanel/bin/whmapi1
{ "metadata": { "reason": "OK", "result": 1, "version": 1, "command": "setminimumpasswordstrengths" } }
<result> <metadata> <reason>OK</reason> <result>1</result> <version>1</version> <command>setminimumpasswordstrengths</command> </metadata> </result>
Note:
Parameters
Note:
If you do not specify a value, the system will retain the existing setting.
Parameter | Type | Description | Possible values | Example |
---|---|---|---|---|
default | integer | The minimum password strength for all services. | A positive integer from 1 to 100 . |
50
|
bandmin | integer | The minimum password strength for Bandmin. Note: We removed this parameter in cPanel & WHM version 58. | A positive integer from 1 to 100 . |
50 |
cpaddons | integer | The minimum password strength for cPAddons. | A positive integer from 1 to 100 . |
50 |
createacct | integer | The minimum password strength for new cPanel accounts. | A positive integer from 1 to 100 . |
50 |
ftp | integer | The minimum password strength for FTP accounts. Note: We removed this parameter in cPanel & WHM version 54. | A positive integer from
|
50
|
list | integer | The minimum password strength for mailing lists. | A positive integer from 1 to 100 . |
50
|
mysql | integer | The minimum password strength for MySQL® database users. | A positive integer from 1 to 100 . |
50
|
passwd | integer | The minimum password strength for WHM user or system accounts. | A positive integer from 1 to 100 . |
50
|
pop | integer | The minimum password strength for mail accounts. Note: We removed this parameter in cPanel & WHM version 54. | A positive integer from
|
50
|
postgres | integer | The minimum password strength for PostgreSQL database users. | A positive integer from 1 to 100 . |
50
|
sshkey | integer | The minimum password strength for SSH keys. | A positive integer from 1 to 100 . |
50
|
webdisk | integer | The minimum password strength for Web Disk (WebDAV) accounts. Note: We removed this parameter in cPanel & WHM version 54. | A positive integer from
|
50
|
virtual | integer | The minimum password strength for mail, FTP, Web Disk, and WebDAV accounts. Note: We added this parameter in cPanel & WHM version 54. | A positive integer from |
|
Returns
This function only returns metadata.
Function information
API Version:
Available in:
WHM 11+
Methods:
GET, POST
Required Parameters:
Return Formats:
About WHM API 1
WHM API 1 performs functions and accesses data in WHM.
Notes:
- Some functions and parameters may require that you authenticate as the
root
user. - You must use the appropriate WHM ports (
2086
or2087
) to call WHM API functions.
Find a function
Related functions
-
Page:WHM API 1 Functions - get_mailbox_status_list — This function lists the status of a cPanel's mail account's mailboxes.
-
Page:WHM API 1 Sections - Server Administration — Server administration functions allow you to manage your server's services and functions.
-
Page:WHM API 1 Functions - configurebackgroundprocesskiller — This function configures the server's background process killer.
-
Page:WHM API 1 Functions - get_all_contact_importances — This function lists the importance of all application events in WHM's Contact Manager interface (Home >> Server Contacts >> Contact Manager).
-
Page:WHM API 1 Functions - get_appconfig_application_list — This function lists registered AppConfig applications.