| Property | Description | Returns | 
|---|---|---|
| primary | Check whether this environment is the primary environment | bool | 
| lastVcsHash | Fetches the last VCS hash for the environment. Returns the first 7 characters. | string | 
| anySiteLastVcsHash | 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. | string | 
| id | int | |
| name | string | |
| sitePath | string | |
| rootEntity | Get the root entity associated with this environment | string | 
| rootRecordId | Get the ID of the root record associated with this environment | int | 
| primaryHostname | Hostname | |
| vcsConfig | VcsConfig | |
| client | Client | |
| site | Site | |
| hostnames | Collection (Hostname) | |
| vcsLogs | Collection (VcsLog) | 
Sites\Models\Api\Environment
Environment