{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-audit-get-response-2-schema.json",
  "title": "AuditGetResponse_2",
  "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_2",
  "allOf": [
    {
      "$ref": "#/$defs/PageInfo_2"
    },
    {
      "$ref": "#/$defs/AuditResponse"
    }
  ],
  "$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_2": {
      "type": "object",
      "properties": {
        "continuation_token": {
          "description": "Continuation token that can be provided in the `continuation_token` query\nparam 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"
        },
        "total_item_count": {
          "description": "Total number of items after applying `filter` params.",
          "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"
            }
          ]
        }
      }
    },
    "_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"
      ]
    }
  }
}