{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-jit-request-definition-list-result-schema.json",
  "title": "JitRequestDefinitionListResult",
  "description": "List of JIT requests.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-jitrequests-api-openapi.yml#/components/schemas/JitRequestDefinitionListResult",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JitRequestDefinition"
      },
      "description": "The array of Jit request definition."
    },
    "nextLink": {
      "type": "string",
      "description": "The URL to use for getting the next set of results."
    }
  },
  "$defs": {
    "ApplicationClientDetails": {
      "readOnly": true,
      "properties": {
        "oid": {
          "type": "string",
          "description": "The client Oid."
        },
        "puid": {
          "type": "string",
          "description": "The client Puid"
        },
        "applicationId": {
          "type": "string",
          "description": "The client application Id."
        }
      },
      "description": "The application client details to track the entity creating/updating the managed app resource."
    },
    "JitAuthorizationPolicies": {
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The the principal id that will be granted JIT access."
        },
        "roleDefinitionId": {
          "type": "string",
          "description": "The role definition id that will be granted to the Principal."
        }
      },
      "required": [
        "principalId",
        "roleDefinitionId"
      ],
      "description": "The JIT authorization policies."
    },
    "JitRequestDefinition": {
      "properties": {
        "properties": {
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/JitRequestProperties",
          "description": "The JIT request properties."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ],
      "description": "Information about JIT request definition."
    },
    "JitRequestProperties": {
      "properties": {
        "applicationResourceId": {
          "type": "string",
          "description": "The parent application id."
        },
        "publisherTenantId": {
          "readOnly": true,
          "type": "string",
          "description": "The publisher tenant id."
        },
        "jitAuthorizationPolicies": {
          "description": "The JIT authorization policies.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/JitAuthorizationPolicies"
          }
        },
        "jitSchedulingPolicy": {
          "$ref": "#/$defs/JitSchedulingPolicy",
          "description": "The JIT request properties."
        },
        "provisioningState": {
          "readOnly": true,
          "$ref": "#/$defs/ProvisioningState",
          "description": "The JIT request provisioning state."
        },
        "jitRequestState": {
          "readOnly": true,
          "$ref": "#/$defs/JitRequestState",
          "description": "The JIT request state."
        },
        "createdBy": {
          "readOnly": true,
          "$ref": "#/$defs/ApplicationClientDetails",
          "description": "The client entity that created the JIT request."
        },
        "updatedBy": {
          "readOnly": true,
          "$ref": "#/$defs/ApplicationClientDetails",
          "description": "The client entity that last updated the JIT request."
        }
      },
      "required": [
        "applicationResourceId",
        "jitAuthorizationPolicies",
        "jitSchedulingPolicy"
      ],
      "description": "Information about JIT request properties"
    },
    "JitRequestState": {
      "description": "The JIT request state.",
      "readOnly": true,
      "enum": [
        "NotSpecified",
        "Pending",
        "Approved",
        "Denied",
        "Failed",
        "Canceled",
        "Expired",
        "Timeout"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "JitRequestState",
        "modelAsString": true
      }
    },
    "JitSchedulingPolicy": {
      "properties": {
        "type": {
          "$ref": "#/$defs/JitSchedulingType",
          "description": "The type of JIT schedule."
        },
        "duration": {
          "type": "string",
          "format": "duration",
          "title": "The required duration of the JIT request."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the request."
        }
      },
      "required": [
        "type",
        "duration",
        "startTime"
      ],
      "description": "The JIT scheduling policies."
    },
    "JitSchedulingType": {
      "description": "The JIT request scheduling type.",
      "readOnly": true,
      "enum": [
        "NotSpecified",
        "Once",
        "Recurring"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "JitSchedulingType",
        "modelAsString": true
      }
    },
    "ProvisioningState": {
      "description": "Provisioning status of the managed application.",
      "readOnly": true,
      "enum": [
        "NotSpecified",
        "Accepted",
        "Running",
        "Ready",
        "Creating",
        "Created",
        "Deleting",
        "Deleted",
        "Canceled",
        "Failed",
        "Succeeded",
        "Updating"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true
      }
    },
    "Resource": {
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Resource ID"
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Resource name"
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Resource type"
        },
        "location": {
          "type": "string",
          "description": "Resource location"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Resource tags"
        }
      },
      "description": "Resource information.",
      "x-ms-azure-resource": true
    }
  }
}