- Overview
- Getting Started Guide
- UserGuide
-
References
-
ABEJA Platform CLI
- CONFIG COMMAND
- DATALAKE COMMAND
- DATASET COMMAND
- TRAINING COMMAND
-
MODEL COMMAND
- check-endpoint-image
- check-endpoint-json
- create-deployment
- create-endpoint
- create-model
- create-service
- create-trigger
- create-version
- delete-deployment
- delete-endpoint
- delete-model
- delete-service
- delete-version
- describe-deployments
- describe-endpoints
- describe-models
- describe-service-logs
- describe-services
- describe-versions
- download-versions
- run-local
- run-local-server
- start-service
- stop-service
- submit-run
- update-endpoint
- startapp command
- SECRET COMMAND
- SECRET VERSION COMMAND
-
ABEJA Platform CLI
- FAQ
- Appendix
update
Description
Update the status of a specific secret version, allowing you to set it as active or inactive.
Synopsis
$ abeja secret-version update [--help]
Usage: abeja secret-version update [OPTIONS]
Update a secret version
Options:
-s, --secret_id, --secret-id TEXT
Secret ID [required]
-v, --version_id, --version-id TEXT
Version ID [required]
--status [active|inactive] Version status (active or inactive) [required]
--organization_id, --organization-id TEXT
Organization ID. If not specified, the current
organization ID is used.
--help Show this message and exit.
Options
-s
, --secret_id
, --secret-id
Specify the ID of the secret that contains the version you want to update. This option is required.
-v
, --version_id
, --version-id
Specify the ID of the specific version you want to update. This option is required.
--status
Specify the new status for the secret version. Valid values are ‘active’ or ‘inactive’. This option is required.
--organization_id
, --organization-id
Specify the organization ID. If not specified, the current organization ID from the configuration is used.
Example
Deactivate a secret version
Command:
$ abeja secret-version update --secret-id secret-abcdef123456 --version-id version-123456789012 --status inactive
Output:
{
"id": "version-123456789012",
"secret_id": "secret-abcdef123456",
"version": 2,
"status": "inactive",
"created_at": "2023-05-12T10:30:00.000000Z"
}
Activate a secret version
Command:
$ abeja secret-version update --secret-id secret-abcdef123456 --version-id version-098765432109 --status active
Output:
{
"id": "version-098765432109",
"secret_id": "secret-abcdef123456",
"version": 1,
"status": "active",
"created_at": "2023-05-01T10:30:00.000000Z"
}