{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecr/json-schema/amazon-ecr-describe-images-request-schema.json",
  "title": "DescribeImagesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecr-operations-api-openapi.yml#/components/schemas/DescribeImagesRequest",
  "type": "object",
  "properties": {
    "registryId": {
      "type": "string",
      "description": "The Amazon Web Services account ID associated with the registry that contains the repository in which to describe images. If you do not specify a registry, the default registry is assumed."
    },
    "repositoryName": {
      "type": "string",
      "description": "The repository that contains the images to describe."
    },
    "imageIds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImageIdentifier"
      },
      "description": "The list of image IDs for the requested repository."
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value returned from a previous paginated DescribeImages request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This option cannot be used when you specify images with imageIds."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of repository results returned by DescribeImages in paginated output. When this parameter is used, DescribeImages only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeImages returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify images with imageIds."
    },
    "filter": {
      "$ref": "#/$defs/DescribeImagesFilter"
    }
  },
  "required": [
    "repositoryName"
  ],
  "$defs": {
    "DescribeImagesFilter": {
      "type": "object",
      "properties": {
        "tagStatus": {
          "type": "string",
          "enum": [
            "TAGGED",
            "UNTAGGED",
            "ANY"
          ],
          "description": "The tag status with which to filter your DescribeImages results. You can filter results based on whether they are TAGGED or UNTAGGED."
        },
        "imageStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "ARCHIVED",
            "ACTIVATING",
            "ANY"
          ],
          "description": "The image status with which to filter your DescribeImages results. Valid values are ACTIVE, ARCHIVED, and ACTIVATING. If not specified, only images with ACTIVE status are returned."
        }
      }
    },
    "ImageIdentifier": {
      "type": "object",
      "properties": {
        "imageDigest": {
          "type": "string",
          "description": "The sha256 digest of the image manifest."
        },
        "imageTag": {
          "type": "string",
          "description": "The tag used for the image."
        }
      }
    }
  }
}