List Environments - V2
/api/v2/org/{orgId}/envs List Environments V2
Lists environments that belong to this organization.
Returns a new style paginated list of Environments.
| Parameter | Default | Description |
|---|---|---|
| orgId | "" | The org id that these environments belong to. |
| environments | [] | List of environment views. |
| totalCount | 0 | Total number of environments in the results. |
| currentPage | {} | The current page. |
| hasNext | false | Whether or not there is a next page. |
| nextPage | {} | |
| nextPageToken | "" | |
| hasPrev | false | Whether or not there is a previous page. |
| prevPage | {} | |
| prevPageToken | "" | |
| findingsHealth | {} | |
| scanFrequencyHealth | {} |
Environment
| Parameter | Default | Description |
|---|---|---|
| environmentId | "" | The UUID identifier of this environment. |
| environmentName | "" | The name of this environment. |
| applicationId | "" | The UUID identifier of this application. |
| applicationName | "" | The name of this application. |
| lastScanId | "" | The UUID identifier of the last scan id |
| lastScanTotalUntriaged | 0 | The total number of untriaged alerts in the last scan. |
| lastScanHighUntriaged | 0 | The total number of high untriaged alerts in the last scan. |
| lastScanMediumUntriaged | 0 | The total number of medium untriaged alerts in the last scan. |
| lastScanLowUntriaged | 0 | The total number of low untriaged alerts in the last scan. |
| lastScanTimestamp | 0 | The timestamp of when the last scan started. |
| lastScanDuration | 0 | The duration of the last scan. |
| lastScanStatus | "UNKNOWN" | the status of the last scan. |
| applicationStatus | "UNKNOWN" | the status of the application. |
| repositoriesCount | 0 | the number of repositories mapped to an application |
| attackSurface | {} | the attack surface details for the application. |
| latestScanConfigHash | "" | the config hash of the latest scan config |
| lastScanCompletedTimestamp | 0 | the timestamp of when the last scan completed. |
| lastScanHawkscanVersion | "" | the version of HawkScan used for the last scan. |
| thirtyDayCommitActivity | 0 | the number of commits made in all connected repositories in the past 30 days for this application. |
| lastScanExternalAlertStats | [] | Stats about any linked external SAST integrations used to look for related findings. |
| cloudScanTarget | {} | Cloud Scan Target configuration. |
| applicationType | "UNKNOWN" | The type of this environment's associated application. |
| screenrMetadata | [] | Screenr (flightpath) session metadata. Null/absent if no session. |
| lastScanHawkScanType | "UNKNOWN" | The type of HawkScan execution for the last scan (traditional, hosted, etc.) |
The returned list of environments is filtered by the organization id and User's API Token Team membership.
Filter Query Params
query: A string to filter by application and environment name (both are matched on for now).appIds: A comma-separated list of application uuids to filter by.envIds: A comma-separated list of environment uuids to filter by.teamIds: A comma-separated list of team uuids to filter by.envs: A comma-separated list of environment names to filter by.lastScanDate: A last scan date qualifier to filter by. Possible values areLAST_24_HOURS,LAST_7_DAYS,LAST_14_DAYS,LAST_30_DAYS,OVER_30_DAYS.lastScanDateStatus: A comma-separated list of last scan date statuses to filter by. Possible values areLAST_SCAN_STATUS_SUCCESS,LAST_SCAN_STATUS_ERRORED,LAST_SCAN_STATUS_IN_PROGRESS, andLAST_SCAN_STATUS_PENDING.
Last Scan Fields
All fields relating to the last scan for a given environment are just that - the last scan recorded for that given environment. If there are no scans, these fields will be empty. If you need more than the most recent scan, use the scan list API instead.
Requires
read:applicationpermission.
Path parameters
orgIdstring · uuidrequiredUUID identifier for this StackHawk Organization.
Query parameters
querystringA term used to filter results based on matching content in one or more fields.
sortFieldstringResource field to sort paginated response by.
9 available options
environmentIdenvironmentNameapplicationNamescanDatescanDurationmappedRepositoryCountscanFindingsCountsthirtyDayCommitActivityflightpathLastUpdatedsortDirstringPaginated results are sorted 'asc' or 'desc'.
3 available options
ASCDESCUNSORTEDincludeAppHealthStatsbooleanSpecifies whether to include application health statistics.
falsepagestringPagination page key.
pageSizeinteger · int32Pagination response size limit.
10pageTokeninteger · int32Pagination request page increment.
0appIdsstring[]A comma-delimited list of UUID identifiers of StackHawk Applications.
envIdsstring[]A comma-delimited list of UUID identifiers of StackHawk Environments.
teamIdsstring[]A comma-delimited list of UUID identifiers of StackHawk Teams to filter by.
envsstring[]A comma-delimited list of environment names of StackHawk Applications to filter by.
lastScanDatestringThe enum value for the last scan date filter.
6 available options
LAST_SCAN_DATE_UNSPECIFIEDLAST_24_HOURSLAST_7_DAYSLAST_14_DAYSLAST_30_DAYSOVER_30_DAYSapplicationTypesstring[]A comma-separated list of ApplicationType names.
["STANDARD"]lastScanStatusstring[]A comma-separated list of last scan status filters.
hasFlightpathSessionbooleanFilter by whether the environment's application has a flightpath session.
Response
Paginated response of application environments.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
List of environment views.
Hide child attributesShow child attributes
The UUID identifier of this application.
The name of this application.
the status of the application.
2 available options
ACTIVEENV_INCOMPLETEThe type of this environment's associated application.
2 available options
STANDARDCLOUDHide child attributesShow child attributes
the application id for the slick of attack surface details.
the total view of repositories mapped to an application.
Hide child attributesShow child attributes
The mapped applications to this repository
Hide child attributesShow child attributes
Read-only field for the application status.
2 available options
ACTIVEENV_INCOMPLETEThe application id.
Read-only field for the last scan host.
Read-only field for the last scan id.
Read-only field for the last scan timestamp.
The application name.
Whether or not this repository is archived.
clone timestamp.
The number of commits in the past 30 days.
last recorded commitSha of the default branch.
Whether or not this repository is a fork.
the frameworks discovered for the repository
Whether or not the repository has a generated open api spec
Whether or not this repository is hidden.
The StackHawk API Discovery results of this repository.
Hide child attributesShow child attributes
The name of the StackHawk API Discover insight.
The processed response of the StackHawk API Discovery insight.
Whether or not this repository is in the StackHawk API Discovery Attack Surface.
Whether or not this repository is new.
Whether or not this repository is new to the attack surface.
The languages used in this repository.
Hide child attributesShow child attributes
The name of the language.
The percentage that this language comprises in a repository.
The number of bytes of this language in a repository.
The StackHawk language id.
The last branch committed to for this repository.
The last commit timestamp of the repository.
Hide child attributesShow child attributes
The avatar url of the contributor.
The number recent of contributions.
The email of the contributor - frequently blank.
The last time this user contributed.
The username of the contributor.
The remote contributor id.
The source of the contributor.
5 available options
UNKNOWNGITHUBAZURE_DEVOPSBITBUCKETGITLABThe StackHawk contributor id.
Deprecated - the last scan host of the associated application. Use appInfos instead.
Deprecated - the last scan id of the associated application. Use appInfos instead.
Deprecated - the last scan timestamp of the associated application. Use appInfos instead.
The name of the repository
Provider dependent, optional namespace/group/subgroup/folder the repository belongs to.
If applicable, the unique identifier of the repository's namespace.
Notes/comments added to this repository by users.
Hide child attributesShow child attributes
The text content of the note.
The unique StackHawk identifier for this note.
The timestamp when this note was created (Unix timestamp in milliseconds).
The email of the user who created this note.
Hide child attributesShow child attributes
Hide child attributesShow child attributes
Hide child attributesShow child attributes
5 available options
VARIABLEFUNCTIONCLASSMODULEFILE7 available options
NUCLEOSTARTS_WITHENDS_WITHCONTAINSEXACTLEVENSHTEINBREAKOUTHide child attributesShow child attributes
5 available options
UNKNOWN_FRAMEWORKSPRINGEXPRESS_JSPLAYFLASKHide child attributesShow child attributes
Hide child attributesShow child attributes
Hide child attributesShow child attributes
3 available options
UNKNOWNREST_CONTROLLERIMPORT6 available options
NONEBUILDINGDONEERRORUNABLE_TO_COMPLETENOT_APPLICABLEWhether or not this repository is private.
Unique identifier of the repository's organization or equivalent entity type.
The repository provider's top level entity this repository is associated with.
The remote url of the repository.
last recorded size of repository in bytes.
The source of the repository.
5 available options
UNKNOWNGITHUBAZURE_DEVOPSBITBUCKETGITLABThe StackHawk API Discovery Score.
Hide child attributesShow child attributes
The name of the tag.
The StackHawk tag id.
Deprecated - the application id associated with this repository. Use appInfos instead.
Deprecated - the application name associated with this repository. Use appInfos instead.
Deprecated - the application status of the associated application. Use appInfos instead.
2 available options
ACTIVEENV_INCOMPLETEThe Integration Id this repository is associated to.
The StackHawk repository id.
The StackHawk API Discovery Status.
3 available options
NOT_APPLICABLENOT_COVEREDCOVEREDThe topics of this repository.
Hide child attributesShow child attributes
The name of the topic.
The StackHawk topic id.
Hide child attributesShow child attributes
Indicates if the domain is verified or not.
The target URL.
The UUID identifier of this environment.
The name of this environment.
the timestamp of when the last scan completed.
The duration of the last scan.
Stats about any linked external SAST integrations used to look for related findings.
Hide child attributesShow child attributes
22 available options
UNKNOWNSLACKJIRADATADOGMSTEAMSWEBHOOKJIRA_SERVERSNYKGITHUBMERGE_AZURE_DEVOPS_BOARDSVANTAAZURE_DEVOPSBITBUCKETGITLABEMAILGITHUB_ENTERPRISEGITLAB_SELF_HOSTEDBITBUCKET_SELF_HOSTEDAZURE_DEVOPS_SELF_HOSTEDSEMGREPENDOR_LABSWIZThe type of HawkScan execution for the last scan (traditional, hosted, etc.)
4 available options
HAWKSCAN_TYPE_SCANHAWKSCAN_TYPE_FLIGHTPATHHAWKSCAN_TYPE_HOSTEDHAWKSCAN_TYPE_CONFIGURATIONthe version of HawkScan used for the last scan.
The total number of high untriaged alerts in the last scan.
The UUID identifier of the last scan id
The total number of low untriaged alerts in the last scan.
The total number of medium untriaged alerts in the last scan.
the status of the last scan.
4 available options
UNKNOWNCOMPLETEDERRORSTARTEDThe timestamp of when the last scan started.
The total number of untriaged alerts in the last scan.
the config hash of the latest scan config
the number of repositories mapped to an application
Screenr (flightpath) session metadata. Null/absent if no session.
the number of commits made in all connected repositories in the past 30 days for this application.
Hide child attributesShow child attributes
Whether or not there is a next page.
Whether or not there is a previous page.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
The org id that these environments belong to.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
Hide child attributesShow child attributes
Total number of environments in the results.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
List of environment views.
Hide child attributesShow child attributes
The UUID identifier of this application.
The name of this application.
the status of the application.
2 available options
ACTIVEENV_INCOMPLETEThe type of this environment's associated application.
2 available options
STANDARDCLOUDHide child attributesShow child attributes
the application id for the slick of attack surface details.
the total view of repositories mapped to an application.
Hide child attributesShow child attributes
The mapped applications to this repository
Hide child attributesShow child attributes
Read-only field for the application status.
2 available options
ACTIVEENV_INCOMPLETEThe application id.
Read-only field for the last scan host.
Read-only field for the last scan id.
Read-only field for the last scan timestamp.
The application name.
Whether or not this repository is archived.
clone timestamp.
The number of commits in the past 30 days.
last recorded commitSha of the default branch.
Whether or not this repository is a fork.
the frameworks discovered for the repository
Whether or not the repository has a generated open api spec
Whether or not this repository is hidden.
The StackHawk API Discovery results of this repository.
Hide child attributesShow child attributes
The name of the StackHawk API Discover insight.
The processed response of the StackHawk API Discovery insight.
Whether or not this repository is in the StackHawk API Discovery Attack Surface.
Whether or not this repository is new.
Whether or not this repository is new to the attack surface.
The languages used in this repository.
Hide child attributesShow child attributes
The name of the language.
The percentage that this language comprises in a repository.
The number of bytes of this language in a repository.
The StackHawk language id.
The last branch committed to for this repository.
The last commit timestamp of the repository.
Hide child attributesShow child attributes
The avatar url of the contributor.
The number recent of contributions.
The email of the contributor - frequently blank.
The last time this user contributed.
The username of the contributor.
The remote contributor id.
The source of the contributor.
5 available options
UNKNOWNGITHUBAZURE_DEVOPSBITBUCKETGITLABThe StackHawk contributor id.
Deprecated - the last scan host of the associated application. Use appInfos instead.
Deprecated - the last scan id of the associated application. Use appInfos instead.
Deprecated - the last scan timestamp of the associated application. Use appInfos instead.
The name of the repository
Provider dependent, optional namespace/group/subgroup/folder the repository belongs to.
If applicable, the unique identifier of the repository's namespace.
Notes/comments added to this repository by users.
Hide child attributesShow child attributes
The text content of the note.
The unique StackHawk identifier for this note.
The timestamp when this note was created (Unix timestamp in milliseconds).
The email of the user who created this note.
Hide child attributesShow child attributes
Hide child attributesShow child attributes
Hide child attributesShow child attributes
5 available options
VARIABLEFUNCTIONCLASSMODULEFILE7 available options
NUCLEOSTARTS_WITHENDS_WITHCONTAINSEXACTLEVENSHTEINBREAKOUTHide child attributesShow child attributes
5 available options
UNKNOWN_FRAMEWORKSPRINGEXPRESS_JSPLAYFLASKHide child attributesShow child attributes
Hide child attributesShow child attributes
Hide child attributesShow child attributes
3 available options
UNKNOWNREST_CONTROLLERIMPORT6 available options
NONEBUILDINGDONEERRORUNABLE_TO_COMPLETENOT_APPLICABLEWhether or not this repository is private.
Unique identifier of the repository's organization or equivalent entity type.
The repository provider's top level entity this repository is associated with.
The remote url of the repository.
last recorded size of repository in bytes.
The source of the repository.
5 available options
UNKNOWNGITHUBAZURE_DEVOPSBITBUCKETGITLABThe StackHawk API Discovery Score.
Hide child attributesShow child attributes
The name of the tag.
The StackHawk tag id.
Deprecated - the application id associated with this repository. Use appInfos instead.
Deprecated - the application name associated with this repository. Use appInfos instead.
Deprecated - the application status of the associated application. Use appInfos instead.
2 available options
ACTIVEENV_INCOMPLETEThe Integration Id this repository is associated to.
The StackHawk repository id.
The StackHawk API Discovery Status.
3 available options
NOT_APPLICABLENOT_COVEREDCOVEREDThe topics of this repository.
Hide child attributesShow child attributes
The name of the topic.
The StackHawk topic id.
Hide child attributesShow child attributes
Indicates if the domain is verified or not.
The target URL.
The UUID identifier of this environment.
The name of this environment.
the timestamp of when the last scan completed.
The duration of the last scan.
Stats about any linked external SAST integrations used to look for related findings.
Hide child attributesShow child attributes
22 available options
UNKNOWNSLACKJIRADATADOGMSTEAMSWEBHOOKJIRA_SERVERSNYKGITHUBMERGE_AZURE_DEVOPS_BOARDSVANTAAZURE_DEVOPSBITBUCKETGITLABEMAILGITHUB_ENTERPRISEGITLAB_SELF_HOSTEDBITBUCKET_SELF_HOSTEDAZURE_DEVOPS_SELF_HOSTEDSEMGREPENDOR_LABSWIZThe type of HawkScan execution for the last scan (traditional, hosted, etc.)
4 available options
HAWKSCAN_TYPE_SCANHAWKSCAN_TYPE_FLIGHTPATHHAWKSCAN_TYPE_HOSTEDHAWKSCAN_TYPE_CONFIGURATIONthe version of HawkScan used for the last scan.
The total number of high untriaged alerts in the last scan.
The UUID identifier of the last scan id
The total number of low untriaged alerts in the last scan.
The total number of medium untriaged alerts in the last scan.
the status of the last scan.
4 available options
UNKNOWNCOMPLETEDERRORSTARTEDThe timestamp of when the last scan started.
The total number of untriaged alerts in the last scan.
the config hash of the latest scan config
the number of repositories mapped to an application
Screenr (flightpath) session metadata. Null/absent if no session.
the number of commits made in all connected repositories in the past 30 days for this application.
Hide child attributesShow child attributes
Whether or not there is a next page.
Whether or not there is a previous page.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
The org id that these environments belong to.
Hide child attributesShow child attributes
Generic filters that each type can define for its needs (isConnected=true, hasMapping=false, etc)
Hide child attributesShow child attributes
Hide child attributesShow child attributes
The values of a given filter to filter on.
The name of the filter to apply.
A single value to filter on.
The page number to retrieve - 0 based
The query string to filter the results.
the page size to retrieve.
Hide child attributesShow child attributes
The direction to sort the results.
3 available options
ASCDESCUNSORTEDGeneric here, each type should define its own Enums + Converters
Hide child attributesShow child attributes
Total number of environments in the results.
Unauthorized