List Environments
/api/v1/app/{appId}/env/list deprecated List Environments
First time here? - use our V2 environments API instead!
Lists environments that belong to this application.
Returns a paginated list of Environments.
| Parameter | Default | Description |
|---|---|---|
| environments | [] | List of environments. |
| nextPageToken | "" | PageToken to provide for the next page of results. |
| totalCount | 0 | Total number of results. |
Environment
An Application-environment with details of recent scan stats included.
| Parameter | Default | Description |
|---|---|---|
| environmentName | "" | The name of this environment. |
| environmentId | "" | The UUID identifier of this environment. |
| currentScanSummary | {} | Summary of the scan results and triaged findings for this environment. |
| latestScanType | "UNKNOWN" | Type of newest scan in this environment. Options include DEFAULT, REST, GRAPHQL, GRPC, SOAP. |
Scan Summary
The summary of findings from scan results.
| Parameter | Default | Description |
|---|---|---|
| configHash | "" | Hash of the HawkScan configuration used for this scan. |
| timestamp | 0 | Seconds since unix epoch timestamp of when the scan was started. |
| alertStats | {} | Summarized statistics of findings for this scan. |
| version | "" | The version of HawkScan used for this scan. |
| scanId | "" | The UUID identifier of this scan. |
| applicationId | "" | The UUID identifier of this scan's application. |
The returned list of environments is filtered by the User's API Token Team membership.
Requires
read:applicationpermission.
Path parameters
appIdstring · uuidrequiredUUID identifier for this StackHawk Application.
Query parameters
envsstring[]A comma-delimited list of environment names of StackHawk Applications to filter by.
pageSizeinteger · int32Pagination response size limit.
10pageTokeninteger · int32Pagination request page increment.
0sortFieldstringResource field to sort paginated response by.
2 available options
idnamesortDirstringPaginated results are sorted 'asc' or 'desc'.
2 available options
ascdescResponse
Paginated response of environments.
List of environments.
PageToken to provide for the next page of results.
Total number of results.
List of environments.
PageToken to provide for the next page of results.
Total number of results.
Unauthorized