Uses AI to translate a free-text product description, such as "Chrome 120 on Windows 11", into CPE 2.3 (Common Platform Enumeration) names for the application, operating system, and hardware it mentions. Returns an error message when it cannot produce them. Answers are cached by input text. Pass the result to vulnerabilityCPEtoCVEIds, or use vulnerabilityInputToCVEIds to do both steps at once.
Response
Returns a CPEPayload!
Arguments
| Name | Description |
|---|---|
orgId - OrganizationId!
|
The id of the Organization. |
input - String!
|
Input. |
aiModel - AiModelInput
|
Optionally specify AI model to utilize. |
Example
Query
query vulnerabilityInputToCPE(
$orgId: OrganizationId!,
$input: String!,
$aiModel: AiModelInput
) {
vulnerabilityInputToCPE(
orgId: $orgId,
input: $input,
aiModel: $aiModel
) {
product
operatingSystem
hardware
error
}
}
Variables
{
"orgId": "615f3b3b28284380e28a7342",
"input": "xyz789",
"aiModel": AiModelInput
}
Response
{
"data": {
"vulnerabilityInputToCPE": {
"product": "xyz789",
"operatingSystem": "xyz789",
"hardware": "xyz789",
"error": "abc123"
}
}
}