Queries
Use queries to retrieve data from the API.
Getting an instance of a Type
Individual types can be queried to get a single instance, usually by passing an ID
as a parameter to the query. For example, to get a single User
:
query {
User(id: "1") {
id
name
}
}
Getting Metadata (count)
The _all...Meta
and _flexSearch...Meta
queries get metadata about all the entities of a given type or based on the flex search results. Generally, count
is the only available property that can be queried. Note, you CAN use filters pagination with these queries.
For example, to get the metadata for all Users
:
query {
_allUsersMeta {
count
}
}
Getting collections of a Type
The all...
queries get all the entities of a given type. You can use filters and pagination with these queries.
For example, to get all Users
:
query {
allUsers {
id
name
}
}
Searching for instances of a Type
The flexSearch...
queries search for specified types that match the given search criteria. You can use filters and pagination with these queries.
For example, to search for all Users
with a name that contains "John":
query {
flexSearchUsers(filter: { name: { contains: "John" } }) {
id
name
}
}
All Queries
- Artifact
- Asset
- AssetVersion
- AssetVersionMetrics
- Cve
- CveUpdateSummary
- Cwe
- ExportJob
- File
- FileSystem
- Finding
- FindingComment
- FindingStatus
- Group
- License
- LicenseException
- OperatingSystem
- OperatingSystemInstance
- Organization
- Patch
- ProcessingEventLog
- Product
- ProductFamily
- SecurityAdvisory
- SoftwareComponent
- SoftwareComponentComment
- SoftwareComponentInstance
- SoftwareComponentInstanceRelationship
- SoftwareComponentStatus
- Tag
- Test
- User
- Vendor
- _allArtifactsMeta
- _allAssetVersionMetricsMeta
- _allAssetVersionsMeta
- _allAssetsMeta
- _allCveUpdateSummariesMeta
- _allCvesMeta
- _allCwesMeta
- _allExportJobsMeta
- _allFileSystemsMeta
- _allFilesMeta
- _allFindingCommentsMeta
- _allFindingStatusesMeta
- _allFindingsMeta
- _allGroupsMeta
- _allLicenseExceptionsMeta
- _allLicensesMeta
- _allOperatingSystemInstancesMeta
- _allOperatingSystemsMeta
- _allOrganizationsMeta
- _allPatchesMeta
- _allProcessingEventLogsMeta
- _allProductFamiliesMeta
- _allProductsMeta
- _allSecurityAdvisoriesMeta
- _allSoftwareComponentCommentsMeta
- _allSoftwareComponentInstanceRelationshipsMeta
- _allSoftwareComponentInstancesMeta
- _allSoftwareComponentStatusesMeta
- _allSoftwareComponentsMeta
- _allTagsMeta
- _allTestsMeta
- _allUsersMeta
- _allVendorsMeta
- _flexSearchArtifactsMeta
- _flexSearchAssetVersionsMeta
- _flexSearchAssetsMeta
- _flexSearchCveUpdateSummariesMeta
- _flexSearchCvesMeta
- _flexSearchCwesMeta
- _flexSearchFileSystemsMeta
- _flexSearchFilesMeta
- _flexSearchFindingsMeta
- _flexSearchGroupsMeta
- _flexSearchOperatingSystemInstancesMeta
- _flexSearchOperatingSystemsMeta
- _flexSearchOrganizationsMeta
- _flexSearchProcessingEventLogsMeta
- _flexSearchProductFamiliesMeta
- _flexSearchProductsMeta
- _flexSearchSoftwareComponentInstancesMeta
- _flexSearchSoftwareComponentsMeta
- _flexSearchTagsMeta
- _flexSearchTestsMeta
- _flexSearchUsersMeta
- _flexSearchVendorsMeta
- allArtifacts
- allAssetVersionMetrics
- allAssetVersions
- allAssets
- allCveUpdateSummaries
- allCves
- allCwes
- allExportJobs
- allFileSystems
- allFiles
- allFindingComments
- allFindingStatuses
- allFindings
- allGroups
- allLicenseExceptions
- allLicenses
- allOperatingSystemInstances
- allOperatingSystems
- allOrganizations
- allPatches
- allProcessingEventLogs
- allProductFamilies
- allProducts
- allSecurityAdvisories
- allSoftwareComponentComments
- allSoftwareComponentInstanceRelationships
- allSoftwareComponentInstances
- allSoftwareComponentStatuses
- allSoftwareComponents
- allTags
- allTests
- allUsers
- allVendors
- canSupportBinaryUpload
- flexSearchArtifacts
- flexSearchAssetVersions
- flexSearchAssets
- flexSearchCveUpdateSummaries
- flexSearchCves
- flexSearchCwes
- flexSearchFileSystems
- flexSearchFiles
- flexSearchFindings
- flexSearchGroups
- flexSearchOperatingSystemInstances
- flexSearchOperatingSystems
- flexSearchOrganizations
- flexSearchProcessingEventLogs
- flexSearchProductFamilies
- flexSearchProducts
- flexSearchSoftwareComponentInstances
- flexSearchSoftwareComponents
- flexSearchTags
- flexSearchTests
- flexSearchUsers
- flexSearchVendors
- generateExportDownloadPresignedUrl
- generateExportDownloadPresignedUrlAsAttachment
- getAuditLogsArtifacts
- getAuditLogsUsers
- getAverageRiskScore
- getOsDistros
- getOsMajorVersions
- getOsPatchesByMajorVersion
- getSequencedAssetVersionsByAsset
- getSoftwareComponentRelationshipAggregateBySCInstanceId
- getSoftwareComponentRelationshipEdgesByFilter
- getSoftwareComponentRelationshipsBySCInstanceId
- getSoftwareComponentWithDependencies
- getTrendingDataSeverity
- getTrendingDataStatus
- organizationLicense
- pollForProcessingStatusesTimeout
- previewCreateSoftwareComponentInstance
- previewMergeSoftwareComponentInstance
- previewUpdateSoftwareComponentInstance
This page was generated: 2024-11-06