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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "topics": {
          "minItems": 0, 
          "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.", 
                "maximum": 16384
              }, 
              "id": {
                "minLength": 0, 
                "type": "string", 
                "description": "Specifies the system-provided ID for the audit topic.", 
                "maxLength": 255
              }, 
              "name": {
                "minLength": 0, 
                "type": "string", 
                "description": "Specifies the name of the audit topic.", 
                "maxLength": 255
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "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.", 
      "maximum": 16384
    }, 
    "name": {
      "minLength": 0, 
      "required": true, 
      "type": "string", 
      "description": "Specifies the name of the audit topic.", 
      "maxLength": 255
    }
  }
}

POST response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "id": {
          "minLength": 0, 
          "required": true, 
          "type": "string", 
          "description": "ID of created item that can be used to refer to item in the collection-item resource path.", 
          "maxLength": 255
        }
      }
    }
  ]
}
