Generate Random Secret
- Print
- PDF
Generate Random Secret
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
Generate a random string that can be used as a confidential value. (Consists of English letters, numbers, and special characters)
You can add conditions to the randomization.
POST https://secretmanager.apigw.ntruss.com/action/v1/secrets/{secretId}/jobs/{jobToken}/generate-random-secret
Request
Request parameters
Parameter name | Type | Description |
---|---|---|
secretId | String | Secret ID (automatically injected via trigger, can be obtained as an environment variable: Replace secret action example code) |
jobToken | String | Job action token (automatically injected via trigger, can be obtained as an environment variable: Replace secret action example code) |
Request body
{
"length": 32,
"excludeCharacters": "string",
"excludeNumbers": true,
"excludePunctuation": true,
"excludeUppercase": true,
"excludeLowercase": true,
"includeSpace": true,
"requireEachIncludedType": true
}
Parameter name | Type | Description |
---|---|---|
length | Integer | Random string length (up to 32 characters) |
excludeCharacters | String | Characters to exclude |
excludeNumbers | Boolean | Whether to exclude numbers |
excludeNumbers | Boolean | Whether to exclude special characters |
excludeUppercase | Boolean | Whether to exclude uppercase letters |
excludeLowercase | Boolean | Whether to exclude lowercase letters |
includeSpace | Boolean | Whether to include spaces |
requireEachIncludedType | Boolean | Whether each included type is required |
Response
Response body
{
"code": "SUCCESS",
"data": {
"randomString": "string"
}
}
Parameter name | Type | Description |
---|---|---|
randomString | String | Random string |
Was this article helpful?