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 @@ -9,6 +9,7 @@ ARGS:
access-key Access key to update
[default-project-id] New default Project ID to set
[description] New description to update
[expires-at] New expiration date of the API key

FLAGS:
-h, --help help for update
Expand Down
1 change: 1 addition & 0 deletions docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ scw iam api-key update <access-key ...> [arg=value ...]
| access-key | Required | Access key to update |
| default-project-id | | New default Project ID to set |
| description | | New description to update |
| expires-at | | New expiration date of the API key |



Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/iam/v1alpha1/iam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,13 @@ func iamAPIKeyUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "expires-at",
Short: `New expiration date of the API key`,
Required: false,
Deprecated: false,
Positional: false,
},
},
Run: func(ctx context.Context, args any) (i any, e error) {
request := args.(*iam.UpdateAPIKeyRequest)
Expand Down
Loading