Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ARGS:
[ephemeral-policy.expires-once-accessed] Returns `true` if the version expires after a single user access.
[ephemeral-policy.action] Action to perform when the version of a secret expires (unknown_action | delete | disable)
[protected] Returns `true` if secret protection is enabled on a given secret
[key-id] The Scaleway's Key Manager key ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
Expand Down
1 change: 1 addition & 0 deletions docs/commands/secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ scw secret secret create [arg=value ...]
| ephemeral-policy.expires-once-accessed | | Returns `true` if the version expires after a single user access. |
| ephemeral-policy.action | One of: `unknown_action`, `delete`, `disable` | Action to perform when the version of a secret expires |
| protected | | Returns `true` if secret protection is enabled on a given secret |
| key-id | | The Scaleway's Key Manager key ID |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/secret/v1beta1/secret_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ func secretSecretCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "key-id",
Short: `The Scaleway's Key Manager key ID`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
Expand Down
Loading