{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-audit-get-response-schema.json",
  "title": "AuditGetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-audits-api-openapi.yml#/components/schemas/AuditGetResponse",
  "allOf": [
    {
      "$ref": "#/$defs/PageInfo"
    },
    {
      "$ref": "#/$defs/AuditResponse"
    },
    {
      "$ref": "#/$defs/_errorContextResponse"
    }
  ],
  "$defs": {
    "Audit": {
      "allOf": [
        {
          "$ref": "#/$defs/_builtIn"
        },
        {
          "$ref": "#/$defs/_context"
        },
        {
          "type": "object",
          "properties": {
            "arguments": {
              "description": "The arguments provided to the command.",
              "type": "string",
              "readOnly": true
            },
            "command": {
              "description": "The top level command that starts with the string \"pure\" as a convention.",
              "type": "string",
              "readOnly": true
            },
            "origin": {
              "description": "The array from which the command originated.",
              "title": "FixedReference",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReference"
                }
              ]
            },
            "subcommand": {
              "description": "The `command` and `subcommand` combination determines which action the user attempted to\nperform.\n",
              "type": "string",
              "readOnly": true
            },
            "system_event": {
              "description": "If set to `true`, the audit record represents a system-initiated event resulting from a previous configuration.\nIf set to `false`, the audit record represents an event invoked directly by a user.\n",
              "type": "boolean",
              "readOnly": true
            },
            "time": {
              "description": "The time at which the command was run in milliseconds since the UNIX epoch.",
              "type": "integer",
              "format": "int64",
              "readOnly": true
            },
            "user": {
              "description": "The user who ran the command.",
              "type": "string",
              "readOnly": true
            },
            "user_interface": {
              "description": "The user interface through which the user session event was performed.\nValid values are `CLI`, `GUI`, and `REST`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    },
    "AuditResponse": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Audit"
          }
        }
      }
    },
    "PageInfo": {
      "type": "object",
      "properties": {
        "continuation_token": {
          "description": "Continuation token that can be provided in the `continuation_token`\nquery param to get the next page of data.\nIf you use the continuation token to page through data you\nare guaranteed to get all items exactly once regardless of\nhow items are modified. If an item is added or deleted during\nthe pagination then it may or may not be returned.\nThe continuation token is generated if the limit is less\nthan the remaining number of items, and the default sort is used\n(no sort is specified).\n",
          "type": "string"
        },
        "more_items_remaining": {
          "description": "Returns a value of `true` if subsequent items can be retrieved.\n",
          "type": "boolean"
        },
        "total_item_count": {
          "description": "The total number of records after applying all filter query parameters.\nThe `total_item_count` will be calculated if and only if the corresponding\nquery parameter `total_item_count` is set to `true`. If this query parameter\nis not set or set to `false`, a value of `null` will be returned.\n",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "_builtIn": {
      "description": "A built-in resource. Many are singletons predefined by Purity (e.g., support\nsettings). Some correspond to a piece of software, like an app, or hardware,\nlike a controller. Others are created by the system in response to some event\n(e.g., alerts, audit records).\n\nTypically, a user can't create, delete or rename a built-in resource. A few\ncan be created or deleted, but not renamed because the names are meaningful\nto Purity (e.g., VIFs).\n",
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified and cannot refer to another resource.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "A locally unique, system-generated name. The name cannot be modified.\n",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "_context": {
      "type": "object",
      "properties": {
        "context": {
          "description": "The context in which the operation was performed.\n\nValid values include a reference to any array which is a member of the same fleet\nor to the fleet itself.\n\nOther parameters provided with the request, such as names of volumes or snapshots,\nare resolved relative to the provided `context`.\n",
          "readOnly": true,
          "title": "FixedReferenceWithType",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReferenceWithType"
            }
          ]
        }
      }
    },
    "_errorContextResponse": {
      "type": "object",
      "properties": {
        "errors": {
          "description": "The list of errors encountered when attempting to perform an operation.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/_errorcontextresponseErrors"
          }
        }
      }
    },
    "_errorcontextresponseErrors": {
      "type": "object",
      "properties": {
        "context": {
          "description": "Contains information relating to the cause of this error,\nor the name of the object that was being processed when the error was encountered.\nThis may be `null` for more general errors.\n",
          "type": "string"
        },
        "location_context": {
          "description": "Contains information relating to the context in which the request was executing\nwhen the error occurred.\nFor example, this may be the name of an array in the same fleet.\nThis may be `null` for more general errors, or if no explicit `context` parameter\nwas provided with the request.\n",
          "title": "FixedReferenceWithType",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReferenceWithType"
            }
          ]
        },
        "message": {
          "description": "A description of the error which occurred.",
          "type": "string"
        }
      },
      "x-aliases": [
        "_errorContextResponseErrors"
      ]
    },
    "_fixedReference": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The resource name, such as volume name, file system name,\nsnapshot name, and so on.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true,
      "x-aliases": [
        "_fixedReferenceWithoutType"
      ]
    },
    "_fixedReferenceWithType": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReference"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are the unique part of the resource's REST endpoint.\nFor example, a reference to a file system would have a\n`resource_type` of `file-systems`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ],
      "x-aliases": [
        "_fixedReference"
      ]
    }
  }
}