Obtains a random password string.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| PasswordLength | string | No | The number of bytes that the password to be generated contains. Valid values: 8 to 128. Default value: 32 | 32 |
| ExcludeCharacters | string | No | The characters that are not included in the password to be generated. Valid values:
This parameter is empty by default. | ABCabc |
| ExcludeLowercase | string | No | Specifies whether to exclude lowercase letters. Valid values:
| false |
| ExcludeUppercase | string | No | Specifies whether to exclude uppercase letters. Valid values:
| false |
| ExcludeNumbers | string | No | Specifies whether to exclude digits. Valid values:
| false |
| ExcludePunctuation | string | No | Specifies whether to exclude special characters. Valid values:
| false |
| RequireEachIncludedType | string | No | Specifies whether to include all the preceding character types. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSONformat
{
"RandomPassword": "IxGn>NMmNB(y?iZ<Yc,_H/{2GC'U****",
"RequestId": "6b0cbe25-5e33-467e-972e-7a83c6c97604"
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | InvalidParameter | some of the specified parameters "\" is not valid |
| 500 | InternalFailure | Internal Failure |
For a list of error codes, visit the Service error codes.
