Lists the SSH identities saved to this account. Does not display SSH public keys.
Required permission
Account > Ssh > General > Read
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.identities
[array]- {object}An array of SSH Identities
id
string requiredID of the docker credentialsmin length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$sshPublicKeys
[array]A list of SSH public keys.- {object}
key
string requiredThe SSH public key.restrictions
{object}Configuration of restrictions.projects
{object}Configuration of project restriction settings.enabled
booleanWhether restriction by project should be enabled.items
[array]An array of previously defined projects.- stringmin length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
updatedAt
stringtime of updatecreatedAt
stringtime of creationpagination
{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/integrations/ssh-identities
GET /v1/teams/{teamId}/integrations/ssh-identities
Example response
200 OK
A list of SSH identities saved to this account.
JSON
{
"data": {
"identities": [
{
"id": "example-credentials",
"name": "Example SSH Identity",
"sshPublicKeys": [
{
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
}
],
"restrictions": {
"projects": {
"enabled": false
},
"tags": {
"enabled": false,
"matchCondition": "or"
}
}
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}