Gets the global settings that enforce the maximum expiry of SSH keys and restrictions on SSH key types.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
The global ssh key settings configuration.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/admin' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"maxExpiryDays": {
"asInt": 2154,
"present": true
},
"keyTypeRestrictions": [
{
"minKeyLength": {
"asInt": 2154,
"present": true
},
"allowed": true,
"algorithm": "RSA"
}
]
}Updates the global settings that enforces the maximum expiry of SSH keys and restrictions on SSH key types.
Forge and OAuth2 apps cannot access this REST resource.
A request containing expiry length to be set for SSH keys and a list of SSH key type restrictions.
object
array<RestSshKeyTypeRestriction>
The ssh key global settings were updated.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
curl --request PUT \
--url 'http://{baseurl}/rest/admin' \
--header 'Content-Type: application/json' \
--data '{
"maxExpiryDays": {
"asInt": 2154,
"present": true
},
"keyTypeRestrictions": [
{
"minKeyLength": {
"asInt": 2154,
"present": true
},
"allowed": true,
"algorithm": "RSA"
}
]
}'Retrieves a list of all supported SSH key algorithms and lengths.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
A list of supported SSH key algorithms and lengths.
any
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/admin/supported-key-types' \
--header 'Accept: application/json'Rate this page: