Get workspace build secrets
GET
Lists the metadata of the secrets linked to a workspace build, including secrets whose values a later build cleared. Values are never returned. env_replaces and file_replaces name the workspace owner's user secrets that each live secret displaces, and are omitted when the caller cannot read those user secrets.
CoderSessionTokenheader
Coder-Session-Token<token>workspacebuild*stringWorkspace build ID
Format
uuidOK
application/json- response
[index: integer]?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/workspacebuilds/{workspacebuild}/secrets" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
[ { "cleared_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "description": "string", "enabled": true, "env_name": "string", "env_replaces": "84a889b2-94af-4f34-9249-aa46f6f7b463", "ephemeral": true, "file_path": "string", "file_replaces": "1fdcc987-93b6-4e8f-afdc-b4eba4090da4", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "updated_at": "2019-08-24T14:15:22Z", "workspace_build_id": "badaf2eb-96c5-4050-9f1d-db2d39ca5478" }]