Creates a new secret
required | object (Secret) |
Secret response
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKerberosTGTKeyTabFile",
- "port": 22,
- "principal": "example-principal",
- "realm": "example-realm",
- "key_path": "key/file/path"
}
}
}
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKeyPath",
- "port": 80,
- "username": "example_secret",
- "key_path": "example_secret",
- "encrypted_passphrase": "account.example_secret"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "draft": false
}
Retrieves the information of the secrets.
Secret list response
[- {
- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKeyPath",
- "port": 80,
- "username": "example_secret",
- "key_path": "example_secret",
- "encrypted_passphrase": "account.example_secret"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "draft": false
}
]
Validates if the secret at the secretManager path can be referenced
Details of the secret reference
required | object (Secret) |
Response of the secret reference validation
{- "secret_manager_identifier": "prod_sm_one",
- "secret_ref_path": "path1/path2#key"
}
{- "success": true,
- "message": "Validation is Successful, Secret can be referenced"
}
Retrieves the information of the secret.
Secret response
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKeyPath",
- "port": 80,
- "username": "example_secret",
- "key_path": "example_secret",
- "encrypted_passphrase": "account.example_secret"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "draft": false
}
Deletes the information of the secret with the matching secret identifier.
Secret response
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKeyPath",
- "port": 80,
- "username": "example_secret",
- "key_path": "example_secret",
- "encrypted_passphrase": "account.example_secret"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "draft": false
}
Updates the information of the secret with the matching secret identifier.
required | object (Secret) |
Secret response
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKerberosTGTKeyTabFile",
- "port": 22,
- "principal": "example-principal",
- "realm": "example-realm",
- "key_path": "key/file/path"
}
}
}
{- "secret": {
- "name": "example_secret",
- "identifier": "example_secret",
- "org": "default",
- "project": "example_project",
- "tags": {
- "property1": "example_secret"
}, - "description": "example_secret",
- "spec": {
- "type": "SSHKeyPath",
- "port": 80,
- "username": "example_secret",
- "key_path": "example_secret",
- "encrypted_passphrase": "account.example_secret"
}
}, - "created": 1234567890,
- "updated": 1234567890,
- "draft": false
}