ncloud_secret_job_generate_random_secret
Generates a random secret string for a secret rotation job, called by the rotation function with a job token. Returns the secret in plain text.
Instructions
Generate a random secret string for a rotation job. Rotation-function API (Secret Rotate Process Control): meant to be called by the rotation trigger's function with the job token it receives, not during normal administration. ⚠️ The response contains the secret value in plain text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | Yes | Length of the random string (5-32, default 12) | |
| jobToken | Yes | Rotation job token (injected into the rotation function's environment; also in ncloud_secret_get_secret_logs) | |
| secretId | Yes | Secret ID (see ncloud_secret_list_secrets) | |
| includeSpace | No | Include spaces (default true) | |
| keyIsolation | No | Which Secret Manager host to call: 'global' (default) for secrets encrypted with a KMS global key (secretmanager.apigw.ntruss.com); 'regional' for secrets encrypted with a KMS region-isolated key (ocapi-kr.ncloud.com/secretmanager — the only option in the JPN region) | global |
| excludeNumbers | No | Exclude digits (default false) | |
| excludeLowercase | No | Exclude lowercase letters (default false) | |
| excludeUppercase | No | Exclude uppercase letters (default false) | |
| excludeCharacters | No | Characters to exclude (one string, no separator) | |
| excludePunctuation | No | Exclude punctuation (default false) | |
| requireEachIncludedType | No | Require every non-excluded character type to appear (default true) |