ModelSites module
Environment
A model in the Sites module, with 17 members for templates, 14 API properties and 25 members for admin templates.
Templates view
Properties 17
Take no arguments.
-
#
getLastVcsHash() -
string - Fetches the last VCS hash for the environment. Returns the first 7 characters.
-
#
getAnySiteLastVcsHash() -
string - Fetches the last VCS hash the current environment, or (if this is empty) for any site's environment where the name matches the current environment. Returns the first 7 characters.
-
#
getId() -
?int -
#
getName() -
?string -
#
getSitePath() -
?string -
#
getHostnames() -
?Collection<Hostname> -
#
getVcsLogs() -
?Collection<VcsLog> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 14
Read-only values on the record.
-
#
anySiteLastVcsHash -
string - Fetches the last VCS hash the current environment, or (if this is empty) for any site's environment where the name matches the current environment. Returns the first 7 characters.
-
#
id -
?int -
#
name -
?string -
#
sitePath -
?string -
#
hostnames -
?Collection<Hostname> -
#
vcsLogs -
?Collection<VcsLog>
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 25
Take no arguments.
-
#
getLastVcsHash() -
string - Fetches the last VCS hash for the environment. Returns the first 7 characters.
-
#
getAnySiteLastVcsHash() -
string - Fetches the last VCS hash the current environment, or (if this is empty) for any site's environment where the name matches the current environment. Returns the first 7 characters.
-
#
getId() -
?int -
#
getName() -
?string -
#
getSitePath() -
?string -
#
getHostnames() -
?Collection<Hostname> -
#
getVcsLogs() -
?Collection<VcsLog> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getAvailableRootEntities()Admin only -
array - Get the entities supported to be added as root entities
No members match the filter.