Views SSH identity data including public keys.
Required permission
Account > Ssh > General > Read
Path parameters
identityId
string requiredID of the SSH identity
Response body
- {object}Response object.
data
{object} requiredResult data.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 creation
API
CLI
JS Client
GET /v1/integrations/ssh-identities/{identityId}
GET /v1/teams/{teamId}/integrations/ssh-identities/{identityId}
Example response
200 OK
Data about the SSH identity.
JSON
{
"data": {
"id": "example-credentials",
"name": "Example SSH Identity",
"sshPublicKeys": [
{
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
}
],
"restrictions": {
"projects": {
"enabled": false
},
"tags": {
"enabled": false,
"matchCondition": "or"
}
}
}
}