{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unity-catalog/json-schema/unity-catalog-list-credentials-response-schema.json",
  "title": "ListCredentialsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unity-catalog-credentials-api-openapi.yml#/components/schemas/ListCredentialsResponse",
  "type": "object",
  "properties": {
    "credentials": {
      "description": "An array of credential information objects.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CredentialInfo"
      }
    },
    "next_page_token": {
      "type": "string",
      "description": "Opaque token to retrieve the next page of results. Absent if there are no more pages.\n__page_token__ should be set to this value for the next request (for the next page of results).\n"
    }
  },
  "$defs": {
    "AwsIamRoleArn": {
      "description": "The Amazon Resource Name (ARN) of the AWS IAM role used to vend temporary credentials.",
      "type": "string"
    },
    "AwsIamRoleResponse": {
      "type": "object",
      "required": [
        "role_arn"
      ],
      "properties": {
        "role_arn": {
          "$ref": "#/$defs/AwsIamRoleArn"
        },
        "unity_catalog_iam_arn": {
          "description": "The Amazon Resource Name (ARN) of the AWS IAM used by the Unity Catalog Server. This is the identity that is going to assume the AWS IAM role.",
          "type": "string"
        },
        "external_id": {
          "description": "The external ID used in role assumption to prevent confused deputy problem.",
          "type": "string"
        }
      }
    },
    "CredentialInfo": {
      "type": "object",
      "properties": {
        "name": {
          "description": "The credential name. The name must be unique within the metastore.",
          "type": "string"
        },
        "aws_iam_role": {
          "$ref": "#/$defs/AwsIamRoleResponse"
        },
        "comment": {
          "description": "Comment associated with the credential.",
          "type": "string"
        },
        "owner": {
          "description": "Username of current owner of credential.",
          "type": "string"
        },
        "full_name": {
          "description": "The full name of the credential.",
          "type": "string"
        },
        "id": {
          "description": "The unique identifier of the credential.",
          "type": "string"
        },
        "created_at": {
          "description": "Time at which this Credential was created, in epoch milliseconds.",
          "type": "integer",
          "format": "int64"
        },
        "created_by": {
          "description": "Username of credential creator.",
          "type": "string"
        },
        "updated_at": {
          "description": "Time at which this credential was last modified, in epoch milliseconds.",
          "type": "integer",
          "format": "int64"
        },
        "updated_by": {
          "description": "Username of user who last modified the credential.",
          "type": "string"
        },
        "purpose": {
          "$ref": "#/$defs/CredentialPurpose"
        }
      }
    },
    "CredentialPurpose": {
      "type": "string",
      "enum": [
        "STORAGE"
      ]
    }
  }
}