{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-audits-get-response-schema.json",
  "title": "AuditsGetResponse",
  "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/AuditsGetResponse",
  "allOf": [
    {
      "$ref": "#/$defs/PageInfo_3"
    },
    {
      "$ref": "#/$defs/AuditsResponse"
    }
  ],
  "$defs": {
    "Audit_3": {
      "allOf": [
        {
          "$ref": "#/$defs/_arraysResource"
        },
        {
          "description": "An audit of an action executed on an array or in Pure1.\n",
          "type": "object",
          "properties": {
            "arguments": {
              "description": "Arguments provided to the command.",
              "type": "string"
            },
            "command": {
              "description": "The command that was executed.",
              "type": "string"
            },
            "origin": {
              "description": "Origin of the action. Valid values are `array` and `Pure1`.",
              "type": "string"
            },
            "subcommand": {
              "description": "The subcommand that was executed.",
              "type": "string"
            },
            "time": {
              "description": "Time at which the command was run in milliseconds since UNIX epoch.\n",
              "type": "integer",
              "format": "int64"
            },
            "user": {
              "description": "The user who ran the command.",
              "type": "string"
            }
          }
        }
      ]
    },
    "AuditsResponse": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Audit_3"
          }
        }
      }
    },
    "PageInfo_3": {
      "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"
        },
        "total_item_count": {
          "description": "Total number of items after applying filter params.",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "_arrays": {
      "type": "object",
      "properties": {
        "arrays": {
          "description": "The list of arrays where this resource exists. Many resources are on a single array, but\nsome resources, such as pods, can be shared across multiple arrays.\n",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/_fixedReferenceFqdn"
          }
        }
      },
      "x-readOnly": true
    },
    "_arraysResource": {
      "description": "A built-in resource that exists on one or multiple arrays.\n",
      "allOf": [
        {
          "$ref": "#/$defs/_resource"
        },
        {
          "$ref": "#/$defs/_arrays"
        }
      ]
    },
    "_fixedReferenceFqdn": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReference_3"
        },
        {
          "type": "object",
          "properties": {
            "fqdn": {
              "description": "The fully qualified domain name of the appliance when `resource_type` is `arrays`,\n`null` otherwise.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    },
    "_fixedReference_3": {
      "type": "object",
      "properties": {
        "id": {
          "description": "The opaque and unique id of this resource.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The name of this resource.",
          "type": "string",
          "readOnly": true
        },
        "resource_type": {
          "description": "The type of this resource represented by the name of its REST endpoint.\nFor example, \"arrays\", \"network-interfaces\", and \"metrics\".\nThe value may be `null` if the resource is not represented.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true
    },
    "_resource": {
      "description": "An ordinary (as opposed to built-in) resource that can be created, named,\nrenamed, or deleted by the user. This might be a virtual resource (e.g.,\na volume), or correspond to something in the physical environment, like a\nhost or a server.\n",
      "allOf": [
        {
          "$ref": "#/$defs/_timeAware"
        },
        {
          "type": "object",
          "properties": {
            "id": {
              "description": "A non-modifiable, globally unique ID chosen by the system.",
              "type": "string",
              "readOnly": true
            },
            "name": {
              "description": "A modifiable, locally unique name chosen by the user.",
              "type": "string"
            }
          }
        }
      ]
    },
    "_timeAware": {
      "type": "object",
      "properties": {
        "_as_of": {
          "description": "The freshness of the data (timestamp in millis since epoch).",
          "type": "integer",
          "format": "int64",
          "readOnly": true
        }
      }
    }
  }
}