Settings/Log Server Operations
POSTLog Server OperationsSince 5.3.28SynchronousAuth Required
AddLogServer
AddLogServer
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredThe resource name.
descriptionStringOptional. The resource description.
categoryStringRequiredThe log category.Note: When category is SnatLog, type must be FluentBit, and the output type in configuration must be Syslog.
typeStringRequiredThe log type.
levelStringOptional. The log severity level.
Responses
Endpoint
POST/zstack/v1/log/servers
/zstack/v1/log/servers
Request Example
curl -X POST 'http://{host}/zstack/v1/log/servers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","description":"<description>","category":"<category>","type":"<type>","level":"<level>","configuration":"<configuration>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": {} }Change History
This API has no change history records yet.
