Obtains a random password string.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetRandomPassword |
The operation that you want to perform. Set the value to GetRandomPassword. |
PasswordLength | String | No | 32 |
The number of bytes that the password to be generated contains. Valid values: 8 to 128. Default value: 32 |
ExcludeCharacters | String | No | ABCabc |
The characters that are not included in the password to be generated. Valid values:
This parameter is empty by default. |
ExcludeLowercase | String | No | false |
Specifies whether to exclude lowercase letters. Valid values:
|
ExcludeUppercase | String | No | false |
Specifies whether to exclude uppercase letters. Valid values:
|
ExcludeNumbers | String | No | false |
Specifies whether to exclude digits. Valid values:
|
ExcludePunctuation | String | No | false |
Specifies whether to exclude special characters. Valid values:
|
RequireEachIncludedType | String | No | true |
Specifies whether to include all the preceding character types. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RandomPassword | String | IxGn>NMmNB(y? iZ<Yc,_H/{2GC'U**** |
The generated random password. |
RequestId | String | 6b0cbe25-5e33-467e-972e-7a83c6c97604 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=GetRandomPassword
&<Common request parameters>
Sample success responses
XML
format
<RequestId>6b0cbe25-5e33-467e-972e-7a83c6c97604</RequestId>
<RandomPassword>IxGn>NMmNB(y? iZ<Yc,_H/{2GC'U****</RandomPassword>
JSON
format
{"RequestId":"6b0cbe25-5e33-467e-972e-7a83c6c97604","RandomPassword":"IxGn>NMmNB(y? iZ<Yc,_H/{2GC'U****"}
Error code
For a list of error codes, visit the API Error Center.