PUT SSH Server Groups
The PUT //ServerGroups method is used to update an existing SSH server groups defined in Keyfactor Command. This method returns HTTP 200 OK on a success with details for the updated SSH server group.
Tip: The following permissions (see
Security Roles and Claims) are required to use this feature:
/ssh/server_admin/
OR
/ssh/enterprise_admin/
SSH actions are affected by ownership on the server group and limited for users with only the Server Admin (/ssh/server_admin/) role. For more information, see SSH Permissions.
Important: Any previously populated fields that are not submitted with their full existing data using this method will be cleared of their existing data. When using this method, you should first do a GET to retrieve all the values for the record you want to update, enter corrected data into the field(s) you want to update, and then submit all the fields using PUT, including the fields that contain values but which you are not changing.
Table 788: PUT SSH Server Groups Input Parameters
ID |
Body |
A string indicating the Keyfactor Command reference GUID for the SSH server group. This GUID is automatically set by Keyfactor Command. |
OwnerName |
Body |
Required. A string indicating the Active Directory user who owns the server group (in DOMAIN\\username format). The owner can only be set by a Keyfactor Command user with the SSH Enterprise Admin role. See SSH Server Group Operations in the Keyfactor Command Reference Guide for more information. Tip: Notice that the field name and structure returned on a GET is not the same as that used on a POST and PUT for the server group owner. |
GroupName |
Body |
Required. A string indicating the name of the SSH server group. |
SyncSchedule |
Body |
An object providing the inventory schedule for the SSH server group. The schedule can be off (unset) or one of the supported values. Show schedule details.
Off |
Turn off a previously configured schedule. |
Interval |
A dictionary that indicates a job scheduled to run every x minutes with the specified parameter. Any interval that is selected in the UI will be converted to minutes when stored in the database.Minutes | An integer indicating the number of minutes between each interval. |
For example, every hour: Copy"Interval": { "Minutes": 60 }
|
Daily |
A dictionary that indicates a job scheduled to run every day at the same time with the parameter:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
For example, daily at 11:30 pm:
Copy
"Daily": { "Time": "2023-11-25T23:30:00Z" }
|
Weekly |
A dictionary that indicates a job scheduled to run on a specific day or days every week at the same time with the parameters:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
Days |
An array of values representing the days of the week on which to run the job. These can either be entered as integers (0 for Sunday, 1 for Monday, etc.) or as days of the week (e.g. “Sunday”). |
For example, every Monday, Wednesday and Friday at 5:30 pm:
Copy
"Weekly": { "Days": [ "Monday", "Wednesday", "Friday" ], "Time": "2023-11-27T17:30:00Z" }
|
Monthly |
A dictionary that indicates a job scheduled to run on a specific day or days every month at the same time with the parameters:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
Day |
The number of the day, in the month, to run the job. |
For example, on the first of every month at 5:30 pm:
Copy
"Monthly": { "Day": 1 "Time": "2023-11-27T17:30:00Z" }
|
Note: Although the Keyfactor API Reference and Utility—Swagger—Example Value may show examples of various other schedules, only the schedules shown here—that are available in the Management Portal for this functionality—are valid for this endpoint.
For example:
Copy
"SyncSchedule": { "Weekly": { "Days": [ "Monday", "Wednesday", "Friday" ], "Time": "2022-11-20T14:00:00Z" } }
The default is unset.
|
UnderManagement |
Body |
A Boolean indicating whether the SSH server group is in inventory only mode (False) or inventory and publish policy mode (True). The default is False. |
Table 789: PUT SSH Server Groups Response Data
ID |
Body |
A string indicating the Keyfactor Command reference GUID for the SSH server group. This GUID is automatically set by Keyfactor Command. |
Owner |
Body |
An object indicating the Active Directory user who owns the server group. See SSH Server Group Operations in the Keyfactor Command Reference Guide for more information. Show owner details.
Id
|
An integer indicating the Keyfactor Command reference ID of the user who holds the owner role on the SSH server group.
|
Username
|
A string indicating the username of the user (in DOMAIN\\username format) who holds the owner role on the SSH server group.
|
|
GroupName |
Body |
A string indicating the name of the SSH server group. |
SyncSchedule |
Body |
An object providing the inventory schedule for the SSH server group. The schedule can be off (unset) or one of the supported values. Show schedule details.
Off |
Turn off a previously configured schedule. |
Interval |
A dictionary that indicates a job scheduled to run every x minutes with the specified parameter. Any interval that is selected in the UI will be converted to minutes when stored in the database.Minutes | An integer indicating the number of minutes between each interval. |
For example, every hour: Copy"Interval": { "Minutes": 60 }
|
Daily |
A dictionary that indicates a job scheduled to run every day at the same time with the parameter:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
For example, daily at 11:30 pm:
Copy
"Daily": { "Time": "2023-11-25T23:30:00Z" }
|
Weekly |
A dictionary that indicates a job scheduled to run on a specific day or days every week at the same time with the parameters:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
Days |
An array of values representing the days of the week on which to run the job. These can either be entered as integers (0 for Sunday, 1 for Monday, etc.) or as days of the week (e.g. “Sunday”). |
For example, every Monday, Wednesday and Friday at 5:30 pm:
Copy
"Weekly": { "Days": [ "Monday", "Wednesday", "Friday" ], "Time": "2023-11-27T17:30:00Z" }
|
Monthly |
A dictionary that indicates a job scheduled to run on a specific day or days every month at the same time with the parameters:
Time |
The date and time to next run the job. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z). |
Day |
The number of the day, in the month, to run the job. |
For example, on the first of every month at 5:30 pm:
Copy
"Monthly": { "Day": 1 "Time": "2023-11-27T17:30:00Z" }
|
Note: Although the Keyfactor API Reference and Utility—Swagger—Example Value may show examples of various other schedules, only the schedules shown here—that are available in the Management Portal for this functionality—are valid for this endpoint.
For example:
Copy
"SyncSchedule": { "Weekly": { "Days": [ "Monday", "Wednesday", "Friday" ], "Time": "2022-11-20T14:00:00Z" } }
|
UnderManagement |
Body |
A Boolean indicating whether the SSH server group is in inventory only mode (False) or inventory and publish policy mode (True). |
ServerCount |
Body |
An integer indicating the number of SSH servers that belong to the server group. |
Tip: See the
Keyfactor API Reference and Utility which provides a utility through which the
Keyfactor endpoints can be called and results returned. It is intended to be used primarily for validation, testing and development. It also serves secondarily as documentation for the API. The link to the
Keyfactor API Reference and Utility is in the dropdown from the help icon (

) at the top of the
Management Portal page next to the
Log Out button.