Resource URL: /platform/<<version=1>>/audit/topics

    Overview: This resource applies the standard collection pattern to audit
              topics.

     Methods: GET, POST

********************************************************************************

Method GET: Retrieve a list of audit topics.

       URL: GET /platform/<<version=1>>/audit/topics

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "topics": {
      "items": {
        "type": "object", 
        "description": "Specifies the configuration settings for an audit topic.", 
        "properties": {
          "max_cached_messages": {
            "minimum": 0, 
            "type": "integer", 
            "description": "Specifies the maximum number of messages that can be sent and received at the same time. Messages that are sent and received at the same time can be lost if a system crash occurs. You can prevent message loss by setting this property to 0, which sets audit logs to synchronous."
          }, 
          "id": {
            "type": "string", 
            "description": "Specifies the system-provided ID for the audit topic."
          }, 
          "name": {
            "type": "string", 
            "description": "Specifies the name of the audit topic."
          }
        }
      }, 
      "type": "array"
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }
  }
}

********************************************************************************

Method POST: Create a new audit topic.

        URL: POST /platform/<<version=1>>/audit/topics

There are no query arguments for this method.

Required POST request body fields:
name

POST request body schema:
{
  "type": "object", 
  "description": "Specifies the configuration settings for an audit topic.", 
  "properties": {
    "max_cached_messages": {
      "minimum": 0, 
      "type": "integer", 
      "description": "Specifies the maximum number of messages that can be sent and received at the same time. Messages that are sent and received at the same time can be lost if a system crash occurs. You can prevent message loss by setting this property to 0, which sets audit logs to synchronous."
    }, 
    "name": {
      "required": true, 
      "type": "string", 
      "description": "Specifies the name of the audit topic."
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "id": {
      "required": true, 
      "type": "string", 
      "description": "ID of created item that can be used to refer to item in the collection-item resource path."
    }
  }
}
