Secrets /
List global secrets
Gets a list of global secrets
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.secrets
[array] requiredAn array of global secrets- {object}A global secret object
id
string requiredIdentifier for the global secretname
string requiredGlobal secret namedescription
stringA short description of the global secrettype
string requiredThe permission type of the global secret.one ofsecret, configcreatedAt
string requiredThe time the global secret was created.updatedAt
string requiredThe time the global secret was last updated.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/secrets
Example response
200 OK
The list of secrets.
JSON
{
"data": {
"secrets": [
{
"id": "example-secret",
"name": "Example Secret",
"description": "This is the global secret description",
"type": "secret",
"createdAt": "2020-01-01T12:00:00.000Z",
"updatedAt": "2020-01-01T12:00:00.000Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}