{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-managed-tenant-detailed-response-schema.json",
  "title": "ManagedTenantDetailedResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-mssp-managed-tenant-lifecycle-endpoints-api-openapi.yml#/components/schemas/ManagedTenantDetailedResponse",
  "type": "object",
  "properties": {
    "prismaId": {
      "type": "string"
    },
    "externalTenantId": {
      "type": "string"
    },
    "customerName": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "PROVISIONING",
        "UPDATING",
        "DELETING",
        "DELETED",
        "OFFBOARDING",
        "ERRORED"
      ]
    },
    "isSynthetic": {
      "type": "boolean"
    },
    "wasMigrated": {
      "type": "boolean"
    },
    "msspId": {
      "type": "string"
    },
    "tenantGroupId": {
      "type": "string",
      "format": "uuid"
    },
    "planType": {
      "type": "string",
      "enum": [
        "RS_STANDARD",
        "RS_FOUNDATION",
        "RS_ADVANCED"
      ]
    },
    "contactInfo": {
      "$ref": "#/$defs/ContactInfo"
    },
    "stack": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "baseApiUrl": {
      "type": "string"
    },
    "tenantLicense": {
      "$ref": "#/$defs/ManagedTenantLicenseResponse"
    },
    "createdBy": {
      "type": "string"
    },
    "createdAt": {
      "type": "integer",
      "format": "int64"
    },
    "modules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModuleInfo"
      }
    },
    "erroredBy": {
      "type": "string",
      "format": "uuid"
    },
    "policyGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PolicyGroupInfo"
      }
    }
  },
  "$defs": {
    "ContactInfo": {
      "required": [
        "email",
        "firstName",
        "lastName"
      ],
      "type": "object",
      "properties": {
        "firstName": {
          "maxLength": 63,
          "minLength": 1,
          "type": "string"
        },
        "lastName": {
          "maxLength": 63,
          "minLength": 1,
          "type": "string"
        },
        "email": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        }
      }
    },
    "ManagedTenantLicenseResponse": {
      "type": "object",
      "properties": {
        "tenantLicenseId": {
          "type": "string"
        },
        "serialNumber": {
          "type": "string"
        },
        "licensePoolId": {
          "type": "string"
        },
        "allocatedCredits": {
          "type": "integer",
          "format": "int32"
        },
        "startDate": {
          "type": "integer",
          "format": "int64"
        },
        "endDate": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "ModuleInfo": {
      "required": [
        "feature_name"
      ],
      "type": "object",
      "properties": {
        "feature_name": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "billing_type": {
          "type": "string",
          "enum": [
            "TRIAL",
            "BUY"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "PROVISION_STARTED",
            "PROVISION_SUCCESSFUL",
            "PROVISION_FAILED"
          ]
        },
        "additional_data": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      }
    },
    "PolicyGroupInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "policyCount": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}