action dracoon_create_and_preserve_key_pair {
label: "Create system rescue key pair and preserve copy of old private key"
description: "
🚀 Since v4.24.0
\n\n### Description: \nCreate system rescue key pair and preserve copy of old private key.\n\n### Precondition:\n* Right 🔓 change config\n* Existence of own key pair\n\n### Postcondition:\nSystem rescue key pair is created. \nCopy of old private key is preserved.\n\n### Further Information:\nYou can submit your old private key, encrypted with your current password. \nThis allows migrating file keys encrypted with your old key pair to the new one.\n"
provider: dracoon
method: POST
path: "/v4/settings/keypairs"
encoding: json
input: {
type: "object"
properties: {
"X-Sds-Auth-Token": {
type: "string"
}
previousPrivateKey: {
type: "object"
description: "Private key container"
required: ["privateKey", "version"]
properties: {
createdAt: {
type: "string"
format: "date-time"
description: "🚀 Since v4.24.0\n\nCreation date"
}
createdBy: {
type: "integer"
format: "int64"
description: "🚀 Since v4.24.0\n\nCreated by user"
}
privateKey: {
type: "string"
description: "Private key"
}
version: {
type: "string"
description: "Version"
}
}
}
privateKeyContainer: {
type: "object"
additionalProperties: true
}
publicKeyContainer: {
type: "object"
description: "Public key container"
required: ["publicKey", "version"]
properties: {
createdAt: {
type: "string"
format: "date-time"
description: "🚀 Since v4.24.0\n\nCreation date"
}
createdBy: {
type: "integer"
format: "int64"
description: "🚀 Since v4.24.0\n\nCreated by user"
}
publicKey: {
type: "string"
description: "Public key"
}
version: {
type: "string"
description: "Version"
}
}
}
}
required: ["previousPrivateKey", "privateKeyContainer", "publicKeyContainer"]
additionalProperties: false
}
output: {
type: "object"
additionalProperties: true
}
}