Create Logger Group

Creates a new logger group. Administrator privileges are required to call this API.

HTTP Request

POST /api/sonar/logger-groups
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d name="Firewall" \
     -X POST https://HOSTNAME/api/sonar/logger-groups
Request Parameters
KeyRequiredTypeDescriptionNote
guidXStringLogger group identifier36-characters GUID. If not specified, randomly generated.
nameOStringLogger group nameMinimum 1 to maximum 50 characters.
descriptionXStringLogger group descriptionMaximum 2,000 characters
parent_guidXStringParent logger group identifier36-characters GUID

Success Response

{}

Error Responses

Required argument is missing

HTTP status code 400

{
  "error_code": "null-argument",
  "error_msg": "name should be not null"
}
Invalid argument length

HTTP status code 400

{
  "error_code": "invalid-argument",
  "error_msg": "'name' must be less than or equal to 50 characters."
}
No administrator privileges

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "no-permission"
}