POST Salt
This API allows to configure the following four fields: master, master_type, retry_dns, and retry_dns_count.
Note that this API is only aware of these specific fields and will not recognize any additional fields in the /etc/salt/minion.d/master.conf file. Starting from version 8.18, any configuration details added directly to this file will not be recognized by the API.
{
"master": [
"salt-master-1.licf.vmware.com",
"salt-master-2.licf.vmware.com"
],
"masterType": "str",
"retryDns": 10,
"retryDnsCount": 3
}
HTTP response code 200 indicates that salt was configured successfully.
{
"master": [
"salt-master-1.licf.vmware.com",
"salt-master-2.licf.vmware.com"
],
"masterType": "str",
"retryDns": 10,
"retryDnsCount": 3
}
The request failed because the request body either did not contain valid JSON, or did not match the required JSON format.
{
"errorMessage": "Invalid request body.",
"errorCode": "JSON_FORMAT_ERROR",
"errorDetails": {
"reason": "..."
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
Internal error while processing the client request
{
"errorMessage": "Failed to process request."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/salt