cURL
curl --request POST \ --url https://api.example.com/api/app/{app_id}/secrets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "secret_name": "<string>", "data": [ { "key": "<string>", "value": "<string>" } ] } '
{ "secret_name": "<string>", "k8s_name": "<string>", "data": [ { "key": "<string>", "value": "<string>" } ], "created_at": "<string>" }
Create a new K8s opaque secret for an app.
The access token received from the authorization server in the OAuth 2.0 flow.
Request model for creating a new K8s secret.
User-facing name of the secret.
Key-value pairs to store.
Show child attributes
Secret created successfully
Detail view of a secret with masked values.
K8s resource name.
Key-value pairs (values masked as '****').
ISO timestamp when the secret was created.
Was this page helpful?