Rotate Minion Key

Rotate Minion Key
Rotate a trusted minion's key

Rotate a trusted minion's key

Request
URI
POST
https://{api_host}/suite-api/api/salt/minions/rotate
COPY
Request Body

Master id, current minion public key (used to resolve the minion to rotate), and new minion public key

RotateMinionKey of type(s) application/json
Required  
{
    "currentMinionPublicKey": "string",
    "masterId": "string",
    "newMinionPublicKey": "string"
}
string
currentMinionPublicKey
Required  
Constraints: minLength: 1

Minion's current trusted public key in PEM format, used to resolve which minion to rotate

string
masterId
Required  
Constraints: minLength: 1

Unique identifier of the Salt Master

string
newMinionPublicKey
Required  
Constraints: minLength: 1

Minion's new public key in PEM format

Authentication
This operation uses the following authentication methods.
Responses
200

Minion key rotated successfully

Returns SaltMinion of type(s) application/json
{
    "acceptedAt": 0,
    "createdAt": 0,
    "description": "string",
    "keyState": "string",
    "masterFqdn": "string",
    "masterId": "string",
    "masterPublicKey": "string",
    "minionId": "string",
    "minionPublicKey": "string",
    "presenceStatus": "string",
    "rejectedAt": 0,
    "resourceKind": "string",
    "updatedAt": 0
}
integer As int64 As int64
acceptedAt
Optional

Epoch millis when the key was accepted, if applicable

integer As int64 As int64
createdAt
Optional

Epoch millis when the trust record was created

string
description
Optional

Human-readable description of the minion

string
keyState
Optional

Trust state of a minion's key

Enumeration: TRUSTED, REJECTED, UNKNOWN
string
masterFqdn
Optional

Master fully qualified domain name

string
masterId
Required  
Constraints: minLength: 1

Unique identifier of the Salt Master

string
masterPublicKey
Optional

Master public key in Base64 format

string
minionId
Read-Only  

Server-generated minion identifier

string
minionPublicKey
Required  
Constraints: minLength: 1

Minion's public key in PEM format

string
presenceStatus
Optional

Presence/reachability status of the Salt master

Enumeration: PRESENT, LOST, UNKNOWN
integer As int64 As int64
rejectedAt
Optional

Epoch millis when the key was rejected, if applicable

string
resourceKind
Read-Only  

The VCF resource kind hosted on this minion (e.g. "vcenter", "sddcm"), read from its vcfops_resource_kind grain; null if the minion hasn't reported this grain yet

integer As int64 As int64
updatedAt
Optional

Epoch millis when the trust record was last updated


400

Invalid request, or no trusted minion found for the given current public key

Operation doesn't return any data structure

500

Error while rotating minion key

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"currentMinionPublicKey":"string","masterId":"string","newMinionPublicKey":"string"}' https://{api_host}/suite-api/api/salt/minions/rotate