- 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
list
Description
List all versions of a specific secret with pagination options.
Synopsis
$ abeja secret-version list [--help]
Usage: abeja secret-version list [OPTIONS]
List secret versions
Options:
-s, --secret_id, --secret-id TEXT
Secret ID [required]
-o, --offset INTEGER Offset for pagination. Default: 0
-l, --limit INTEGER Limit for pagination (1-100). Default: 50
--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 for which you want to list versions. This option is required.
-o
, --offset
Specify the offset for pagination. Default is 0.
-l
, --limit
Specify the limit for pagination. Value must be between 1-100. Default is 50.
--organization_id
, --organization-id
Specify the organization ID. If not specified, the current organization ID from the configuration is used.
Example
List all versions of a secret
Command:
$ abeja secret-version list --secret-id secret-abcdef123456
Output:
{
"versions": [
{
"id": "version-123456789012",
"secret_id": "secret-abcdef123456",
"version": 2,
"status": "active",
"value": "new-password-value",
"created_at": "2023-05-12T10:30:00.000000Z"
},
{
"id": "version-098765432109",
"secret_id": "secret-abcdef123456",
"version": 1,
"status": "inactive",
"value": "old-password-value",
"created_at": "2023-05-01T10:30:00.000000Z"
}
],
"offset": 0,
"limit": 50,
"has_next": false
}
List versions with pagination
Command:
$ abeja secret-version list --secret-id secret-abcdef123456 --offset 1 --limit 10
Output:
{
"versions": [
{
"id": "version-098765432109",
"secret_id": "secret-abcdef123456",
"version": 1,
"status": "inactive",
"value": "old-password-value",
"created_at": "2023-05-01T10:30:00.000000Z"
}
],
"offset": 1,
"limit": 10,
"has_next": false
}