Update Key Rotation Policy
PUT {{apiPath}}/environments/{{envID}}/keyRotationPolicies/{{krpID}}
The PUT /environments/{{envID}}/keyRotationPolicies/{{krpID}}
operation updates the specified KRP for an environment.
Prerequisites
- See Certificate Management and Key Rotation Policies for important overview information.
For property descriptions, see Key Rotation Policy data model.
Property | Type | Required? |
---|---|---|
algorithm | String | Required |
currentKeyId | UUID | N/A |
dn | String | Required |
id | UUID | N/A |
keyLength | Integer | Required |
name | String | Required |
nextKeyId | UUID | N/A |
rotatedAt | Date | N/A |
rotationPeriod | Integer | Optional |
signatureAlgorithm | String | Required |
usageType | String | Required |
validityPeriod | Integer | Required |
Request Body
{"name"=>"Test Key Rotation Policy update", "dn"=>"CN=Test Key Rotation Policy, OU=Ping Identity, O=Ping Identity, L=, ST=, C=US", "algorithm"=>"RSA", "keyLength"=>2048, "validityPeriod"=>365, "signatureAlgorithm"=>"SHA256withRSA", "usageType"=>"SIGNING", "rotationPeriod"=>120}
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/keyRotationPolicies/fe1f3377-3d11-49fc-901b-8657eaa3960f"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"fe1f3377-3d11-49fc-901b-8657eaa3960f","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"name":"Test Key Rotation Policy update","usageType":"SIGNING","default":false,"dn":"CN=Test Key Rotation Policy, OU=Ping Identity, O=Ping Identity, L=, ST=, C=US","algorithm":"RSA","keyLength":2048,"validityPeriod":365,"signatureAlgorithm":"SHA256withRSA","rotationPeriod":120,"currentKeyId":"3a2207a0-944f-11ee-b003-6bd4f5a214b0","nextKeyId":"3a2d5240-944f-11ee-b003-6bd4f5a214b0","rotatedAt":"2023-12-06T15:50:49.168Z"}