POST SSH/MoveKeysetsToPolicy

Moves a list of keysets to a policy folder. Instead of using the Device object, you can apply settings like algorithms and permissions on the keyset.

Requirements

  • Token scope:  SSH:Manage

Headers

  • Content type: Content-Type:application/json.

  • Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.

Parameters

Input parameters

Name

Description

KeysetIds

An array of keyset Ids.

The identifier of a set of public and private key pairs. Depending on your environment, the value may be expressed with or without curly braces {}. You can get the KeysetId, from POST SSH/KeyUsage or the SSH Keyset Inventory. For example:

Location of KeysetID in the UI

PolicyPath Deprecated. Use PolicyDN instead.

PolicyDN

The Distinguished Name (DN) of the Policy folder. The new location for the keyset.

Returns

Response description

Name

Description

Response

SshWebResponse object with result of the operation. For more information, see SSH SshWebResponse object. For error information, see SSH web error codes.

Example: Move keysets to a policy folder

Request

POST https://tpp.venafi.example/vedsdk/SSH/MoveKeysetsToPolicy
Authorization:Bearer 4MyGeneratedBearerTknz==
{
   "KeysetIds" : ["{2649452D57E72135742359561B9E3BD670F28084}"],
   "PolicyDN" : "\\VED\\Policy\\SvrRoom297"
}

Response

HTTP/1.1 200 OK
{
   "Success":true
}