{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-rest-wif-trust-policy-schema.json",
  "title": "RestWifTrustPolicy",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-workload-identity-federation-api-openapi.yml#/components/schemas/RestWifTrustPolicy",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "issuerUrl": {
      "type": "string"
    },
    "issuerUrlHash": {
      "type": "string"
    },
    "jwksUri": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "audience": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    },
    "serviceUserMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RestWifServiceUserMapping"
      }
    }
  },
  "$defs": {
    "RestWifClaimMapping": {
      "type": "object",
      "properties": {
        "claimName": {
          "type": "string"
        },
        "claimValue": {
          "type": "string"
        },
        "matchType": {
          "type": "string",
          "enum": [
            "EXACT",
            "GLOB"
          ]
        }
      }
    },
    "RestWifServiceUserMapping": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string"
        },
        "serviceUserUuid": {
          "type": "string"
        },
        "environmentId": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ]
        },
        "claimMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RestWifClaimMapping"
          }
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        }
      }
    }
  }
}