← All types
Ob Object

PortalSiteVersion

An immutable source snapshot of a site. Publishing one makes it the served version; publishing an older one rolls back.

Fields

Unique snapshot identifier.

Site the snapshot belongs to; deleting the site deletes its snapshots.

source

String!Non-null

The site document: one <portal-site> XML document of typed parts, at most 1 MiB.

ISO 8601 time the snapshot was created.

Referenced by (3)
Exact type SDL
"""
An immutable source snapshot of a site. Publishing one makes it the served version; publishing an older one rolls back.
"""
type PortalSiteVersion @iac_resource(name: "portal_site_version") @iac_replace(strategy: CREATE_BEFORE_DESTROY) @iac_ops(create: "createPortalSiteVersion", read: "getPortalSiteVersion", delete: "deletePortalSiteVersion") {
  """Unique snapshot identifier."""
  id: PortalSiteVersionID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Site the snapshot belongs to; deleting the site deletes its snapshots."""
  siteId: PortalSiteID! @iac_ref(resource: "portal_site", onTargetDelete: CASCADE) @iac_forcesReplace
  """
  The site document: one `<portal-site>` XML document of typed parts, at most 1 MiB.
  """
  source: String! @iac_forcesReplace @iac_artifact(language: XML, validators: ["portal-site-source"], models: ["portal_site_document"], description: "Site document, including its pages and components.")
  """ISO 8601 time the snapshot was created."""
  createdAt: String! @iac_computed
}