{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-registry/json-schema/azure-container-registry-token-list-result-schema.json",
  "title": "TokenListResult",
  "description": "The result of a request to list tokens for a container registry.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-container-registry-tokens-api-openapi.yml#/components/schemas/TokenListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The list of tokens. Since this list may be incomplete, the nextLink field should be used to request the next list of tokens.",
      "items": {
        "$ref": "#/$defs/Token"
      }
    },
    "nextLink": {
      "type": "string",
      "description": "The URI that can be used to request the next list of tokens."
    }
  },
  "$defs": {
    "ProvisioningState": {
      "type": "string",
      "description": "The provisioning state of the archive at the time the operation was called.",
      "enum": [
        "Creating",
        "Updating",
        "Deleting",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      }
    },
    "Token": {
      "type": "object",
      "description": "An object that represents a token for a container registry.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/TokenProperties",
          "description": "The properties of the token.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "TokenCertificate": {
      "type": "object",
      "description": "The properties of a certificate used for authenticating a token.",
      "properties": {
        "name": {
          "$ref": "#/$defs/TokenCertificateName"
        },
        "expiry": {
          "type": "string",
          "format": "date-time",
          "description": "The expiry datetime of the certificate."
        },
        "thumbprint": {
          "type": "string",
          "description": "The thumbprint of the certificate."
        },
        "encodedPemCertificate": {
          "type": "string",
          "description": "Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token."
        }
      }
    },
    "TokenCertificateName": {
      "type": "string",
      "enum": [
        "certificate1",
        "certificate2"
      ],
      "x-ms-enum": {
        "name": "TokenCertificateName",
        "modelAsString": true,
        "values": [
          {
            "name": "certificate1",
            "value": "certificate1"
          },
          {
            "name": "certificate2",
            "value": "certificate2"
          }
        ]
      }
    },
    "TokenCredentialsProperties": {
      "type": "object",
      "description": "The properties of the credentials that can be used for authenticating the token.",
      "properties": {
        "certificates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TokenCertificate"
          },
          "x-ms-identifiers": [
            "thumbprint"
          ]
        },
        "passwords": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TokenPassword"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "TokenPassword": {
      "type": "object",
      "description": "The password that will be used for authenticating the token of a container registry.",
      "properties": {
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The creation datetime of the password."
        },
        "expiry": {
          "type": "string",
          "format": "date-time",
          "description": "The expiry datetime of the password."
        },
        "name": {
          "$ref": "#/$defs/TokenPasswordName",
          "description": "The password name \"password1\" or \"password2\""
        },
        "value": {
          "type": "string",
          "description": "The password value.",
          "readOnly": true
        }
      }
    },
    "TokenPasswordName": {
      "type": "string",
      "description": "The password name \"password1\" or \"password2\"",
      "enum": [
        "password1",
        "password2"
      ],
      "x-ms-enum": {
        "name": "TokenPasswordName",
        "modelAsString": true,
        "values": [
          {
            "name": "password1",
            "value": "password1"
          },
          {
            "name": "password2",
            "value": "password2"
          }
        ]
      }
    },
    "TokenProperties": {
      "type": "object",
      "description": "The properties of a token.",
      "properties": {
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The creation date of scope map.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Provisioning state of the resource.",
          "readOnly": true
        },
        "scopeMapId": {
          "type": "string",
          "description": "The resource ID of the scope map to which the token will be associated with."
        },
        "credentials": {
          "$ref": "#/$defs/TokenCredentialsProperties",
          "description": "The credentials that can be used for authenticating the token."
        },
        "status": {
          "$ref": "#/$defs/TokenStatus",
          "description": "The status of the token example enabled or disabled."
        }
      }
    },
    "TokenStatus": {
      "type": "string",
      "description": "The status of the token example enabled or disabled.",
      "enum": [
        "enabled",
        "disabled"
      ],
      "x-ms-enum": {
        "name": "TokenStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "enabled",
            "value": "enabled"
          },
          {
            "name": "disabled",
            "value": "disabled"
          }
        ]
      }
    }
  }
}