The Secrets API provides operations to manage Secrets for Okta Privileged Access teams. Secrets are encrypted key-value pairs used to store sensitive information.
See Secrets.
Resolves the ID or path for a secret or secret folder. Users must be authorized to perform this action by an existing security policy.
To resolve the ID, the request must include the named path. To resolve the path, the request must include the ID.
OK
{- "id": "string",
- "parent_folder_path": "string",
- "project": {
- "id": "string",
- "name": "string"
}, - "resource_group": {
- "id": "string",
- "name": "string"
}, - "secret_folder_name": "string",
- "secret_name": "string"
}
{- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "type": "folder"
}
Lists all top-level secret folders for a project. Users must be authorized to perform this action by an existing security policy.
OK
Forbidden
{- "list": [
- {
- "description": "string",
- "id": "string",
- "name": "string",
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "type": "folder"
}
]
}
Creates a secret folder. Users must be authorized to perform this action by an existing security policy.
Created
Forbidden
{- "description": "string",
- "name": "string",
- "parent_folder_id": "string"
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Retrieves the specified secret folder. Users must be authorized to perform this action by an existing security policy.
OK
Forbidden
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Updates the specified secret folder. Users must be authorized to perform this action by an existing security policy.
OK
Forbidden
{- "description": "string",
- "name": "string"
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Deletes the specified secret folder. Users must be authorized to perform this action by an existing security policy.
No Content
Forbidden
{- "list": [
- {
- "access_credential": "managed",
- "availability_details_text": "string",
- "brokered": true,
- "checkout_requirements": {
- "max_checkout_duration_in_seconds": 0,
- "required": true
}, - "conditionals": [
- {
- "access_request_type_id": "string",
- "access_request_type_name": "string",
- "acr_values": "phr",
- "condition_is_met": true,
- "description": "string",
- "expires_after_seconds": 0,
- "type": "access_request"
}
], - "current_user_checkout_expires_at": "2019-08-24T14:15:22Z",
- "details": {
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "privileges": {
- "_type": "string",
- "folder_create": true,
- "folder_delete": true,
- "folder_update": true,
- "list": true,
- "secret_create": true,
- "secret_delete": true,
- "secret_reveal": true,
- "secret_update": true
}, - "secret_id": "string",
- "secret_name": "string",
- "_type": "string"
}, - "identity": "string",
- "resource_status": "available",
- "rule_ids": [
- "string"
], - "server_host_name": "string",
- "server_id": "string",
- "short_text": "string",
- "sudo_command_bundles": [
- {
- "ent_type": "string",
- "sudo_add_env": [
- "string"
], - "sudo_commands": [
- "string"
], - "sudo_group_name": "string",
- "sudo_id": "string",
- "sudo_login_username": "string",
- "sudo_name": "string",
- "sudo_noexec": true,
- "sudo_nopasswd": true,
- "sudo_runas": "string",
- "sudo_setenv": true,
- "sudo_sub_env": [
- "string"
]
}
], - "sudo_display_name": "string",
- "user_access_type": "string"
}
]
}
Lists all items in a secret folder. Users must be authorized to perform this action by an existing security policy.
OK
Forbidden
{- "list": [
- {
- "description": "string",
- "id": "string",
- "name": "string",
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "type": "folder"
}
]
}
Creates a secret. Users must be authorized to perform this action by an existing security policy.
description | string or null The description of the secret |
name required | string The name of the secret |
parent_folder_id required | string The UUID of the secret's parent folder |
secret_jwe required | string The encrypted secret is a fully serialized JWE. The secret is encrypted using a public key provided by the Retrieve the vault JWKS resource on the client side. Typically, the secret encryption is performed by the Okta Privileged Access (OPA) client or the Terraform provider. |
Created
Forbidden
{- "description": "string",
- "name": "string",
- "parent_folder_id": "string",
- "secret_jwe": "string"
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Retrieves the specified secret. Users must be authorized to perform this action by an existing security policy.
OK
Forbidden
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Reveals the specified secret. Users must be authorized to perform this action by an existing security policy.
required | object (RawJSONWebKey) A JSON Web Key formatted in accordance with RFC 7517. |
OK
Forbidden
{- "public_key": {
- "alg": "RSA-OAEP-256",
- "crv": "P-256",
- "d": "string",
- "dp": "string",
- "dq": "string",
- "e": "string",
- "k": "string",
- "kid": "/regex/",
- "kty": "EC",
- "n": "string",
- "p": "string",
- "q": "string",
- "qi": "string",
- "use": "string",
- "x": "string",
- "x5c": [
- "string"
], - "x5t": "string",
- "x5t#S256": "string",
- "x5u": "string",
- "y": "string"
}
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string",
- "secret_jwe": "string"
}
Updates the specified secret. Users must be authorized to perform this action by an existing security policy.
description | string or null The description of the secret |
name required | string The name of the secret |
parent_folder_id required | string The UUID of the secret's parent folder |
secret_jwe required | string The encrypted secret is a fully serialized JWE. The secret is encrypted using a public key provided by the Retrieve the vault JWKS resource on the client side. Typically, the secret encryption is performed by the Okta Privileged Access (OPA) client or the Terraform provider. |
OK
Forbidden
{- "description": "string",
- "name": "string",
- "parent_folder_id": "string",
- "secret_jwe": "string"
}
{- "created_at": "2023-08-25T12:00:00.000000Z",
- "created_by": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "updated_at": "2023-08-25T12:00:00.000000Z",
- "updated_by": "string"
}
Deletes the specified secret. Users must be authorized to perform this action by an existing security policy.
No Content
Forbidden
{- "list": [
- {
- "access_credential": "managed",
- "availability_details_text": "string",
- "brokered": true,
- "checkout_requirements": {
- "max_checkout_duration_in_seconds": 0,
- "required": true
}, - "conditionals": [
- {
- "access_request_type_id": "string",
- "access_request_type_name": "string",
- "acr_values": "phr",
- "condition_is_met": true,
- "description": "string",
- "expires_after_seconds": 0,
- "type": "access_request"
}
], - "current_user_checkout_expires_at": "2019-08-24T14:15:22Z",
- "details": {
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "privileges": {
- "_type": "string",
- "folder_create": true,
- "folder_delete": true,
- "folder_update": true,
- "list": true,
- "secret_create": true,
- "secret_delete": true,
- "secret_reveal": true,
- "secret_update": true
}, - "secret_id": "string",
- "secret_name": "string",
- "_type": "string"
}, - "identity": "string",
- "resource_status": "available",
- "rule_ids": [
- "string"
], - "server_host_name": "string",
- "server_id": "string",
- "short_text": "string",
- "sudo_command_bundles": [
- {
- "ent_type": "string",
- "sudo_add_env": [
- "string"
], - "sudo_commands": [
- "string"
], - "sudo_group_name": "string",
- "sudo_id": "string",
- "sudo_login_username": "string",
- "sudo_name": "string",
- "sudo_noexec": true,
- "sudo_nopasswd": true,
- "sudo_runas": "string",
- "sudo_setenv": true,
- "sudo_sub_env": [
- "string"
]
}
], - "sudo_display_name": "string",
- "user_access_type": "string"
}
]
}
Lists all top-level secret folders for a team
OK
{- "list": [
- {
- "description": "string",
- "id": "string",
- "name": "string",
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "type": "folder"
}
]
}
Lists all top-level secret folders for a user. Users must be authorized to perform this action by an existing security policy.
OK
{- "list": [
- {
- "description": "string",
- "id": "string",
- "name": "string",
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "type": "folder"
}
]
}