Create Minion

Create Minion
Create (trust) a minion

Create (trust) a minion

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

Master id, minion public key, and optional minion id (auto-generated if omitted)

SaltMinion of type(s) application/json
Required  

Show optional properties

{
    "masterId": "string",
    "minionPublicKey": "string"
}
{
    "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

Authentication
This operation uses the following authentication methods.
Responses
201

Minion trusted 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

Operation doesn't return any data structure

500

Error while creating trusted minion

Operation doesn't return any data structure

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