PortalSite
One site of a Portal. It serves whichever immutable source version is published.
Fields
Unique site identifier.
Portal the site belongs to; deleting the Portal deletes the site.
Display name of the site.
Source snapshot currently served, or null before the first publication.
Revision incremented on every change, including publication; pass it as expectedRevision to reject stale writes.
Referenced by (3)
Exact type SDL
"""
One site of a Portal. It serves whichever immutable source version is published.
"""
type PortalSite @iac_resource(name: "portal_site") @iac_ops(create: "createPortalSite", read: "getPortalSite", update: "updatePortalSite", delete: "deletePortalSite") {
"""Unique site identifier."""
id: PortalSiteID! @iac_identity(assignedBy: SERVER) @iac_computed
"""Portal the site belongs to; deleting the Portal deletes the site."""
portalId: PortalID! @iac_ref(resource: "portal", onTargetDelete: CASCADE) @iac_createOnly
"""Display name of the site."""
name: String!
"""
Source snapshot currently served, or null before the first publication.
"""
publishedVersionId: PortalSiteVersionID @iac_ref(resource: "portal_site_version") @iac_writtenBy(operation: "publishPortalSite", argument: "versionId")
"""
Revision incremented on every change, including publication; pass it as `expectedRevision` to reject stale writes.
"""
revision: Int! @iac_computed
}