Gets the global settings that enforce the maximum expiry of SSH keys and restrictions on SSH key types.
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
{
"keyTypeRestrictions": [
{
"minKeyLength": {
"present": true,
"asInt": 2154
},
"allowed": true,
"algorithm": "RSA"
}
],
"maxExpiryDays": {
"present": true,
"asInt": 2154
}
}
Updates the global settings that enforces the maximum expiry of SSH keys and restrictions on SSH key types.
A request containing expiry length to be set for SSH keys and a list of SSH key type restrictions.
array<RestSshKeyTypeRestriction>
object
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 '{
"keyTypeRestrictions": [
{
"minKeyLength": {
"present": true,
"asInt": 2154
},
"allowed": true,
"algorithm": "RSA"
}
],
"maxExpiryDays": {
"present": true,
"asInt": 2154
}
}'
Retrieves a list of all supported SSH key algorithms and lengths.
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: