{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-log-targets-object-store-response-schema.json",
  "title": "LogTargetsObjectStoreResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-audit-log-target-for-object-store-api-openapi.yml#/components/schemas/LogTargetsObjectStoreResponse",
  "type": "object",
  "properties": {
    "items": {
      "description": "A list of log target objects.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/LogTargetsObjectStoreWithContext"
      }
    }
  },
  "$defs": {
    "LogTargetsObjectStore": {
      "allOf": [
        {
          "$ref": "#/$defs/_resource"
        },
        {
          "type": "object",
          "properties": {
            "bucket": {
              "description": "Reference to the bucket where audit logs will be stored.\n",
              "title": "Reference",
              "allOf": [
                {
                  "$ref": "#/$defs/_reference"
                }
              ]
            },
            "log_name_prefix": {
              "description": "The prefix of the audit log object.\n",
              "title": "AuditLogNamePrefix",
              "allOf": [
                {
                  "$ref": "#/$defs/_auditLogNamePrefix"
                }
              ]
            },
            "log_rotate": {
              "description": "The threshold after which the audit log object will be rotated.\n",
              "title": "AuditLogRotate",
              "allOf": [
                {
                  "$ref": "#/$defs/_auditLogRotate"
                }
              ]
            }
          }
        }
      ]
    },
    "LogTargetsObjectStoreWithContext": {
      "allOf": [
        {
          "$ref": "#/$defs/_context"
        },
        {
          "$ref": "#/$defs/LogTargetsObjectStore"
        }
      ]
    },
    "_auditLogNamePrefix": {
      "type": "object",
      "properties": {
        "prefix": {
          "description": "Prefix for the audit log object name.\n",
          "type": "string"
        }
      }
    },
    "_auditLogRotate": {
      "type": "object",
      "properties": {
        "duration": {
          "description": "Time after which audit log objects will be rotated.\nMeasured in milliseconds.\nMultiples of 60000 are supported.\n",
          "type": "integer",
          "format": "int64",
          "minimum": 300000,
          "maximum": 86400000
        }
      }
    },
    "_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": "FixedReference",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReference"
            }
          ]
        }
      }
    },
    "_fixedReference": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReferenceWithoutType"
        },
        {
          "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
            }
          }
        }
      ]
    },
    "_fixedReferenceWithoutType": {
      "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
    },
    "_reference": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string"
        },
        "name": {
          "description": "The resource name,\nsuch as volume name, pod name, snapshot name, and so on.\n",
          "type": "string"
        },
        "resource_type": {
          "description": "Type of the object (full name of the endpoint).\nValid values are `hosts`, `host-groups`, `network-interfaces`, `pods`,\n`ports`, `pod-replica-links`, `subnets`, `volumes`, `volume-snapshots`,\n`volume-groups`, `directories`, `policies/nfs`, `policies/smb`, and\n`policies/snapshot`, etc.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-aliases": [
        "_referenceWithFixedType"
      ]
    },
    "_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., a\nfile system), or correspond to something in the environment, like a host or a\nserver.\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 user-specified name.\nThe name must be locally unique and can be changed.\n",
          "type": "string"
        }
      }
    }
  }
}