Required permission
Account > Ssh > General > Update
Path parameters
identityId
string requiredID of the SSH identity
Request body
- {object}
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
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
PUT /v1/integrations/ssh-identities/{identityId}
PUT /v1/teams/{teamId}/integrations/ssh-identities/{identityId}
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PUT \
--data '{"name":"Example SSH Identity","sshPublicKeys":[{"key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."}],"restrictions":{"projects":{"enabled":false},"tags":{"enabled":false,"matchCondition":"or"}}}' \
https://api.northflank.com/v1/integrations/ssh-identities/{identityId}Example response
200 OK
JSON
{
"data": {
"id": "example-credentials",
"name": "Example SSH Identity",
"sshPublicKeys": [
{
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."
}
],
"restrictions": {
"projects": {
"enabled": false
},
"tags": {
"enabled": false,
"matchCondition": "or"
}
}
}
}