Linux Package Metadata
Base URL
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata
Supported Requests
Method |
URL |
Input |
Return |
---|---|---|---|
GET |
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata |
Input Models
Name |
Type |
Description |
---|---|---|
count |
Int |
Provides the number of advisory names to return. The default is 100 and the maximum value is 1000. |
errorPolicy |
Enum |
Determines if the call will throw an error when encountering an invalid ID.
|
start |
Int |
Sets the starting point. The items are sorted according to the packageId and the starting point is the index into that sorted list. |
Only one of the following can be included in a request: |
||
packageNames |
Comma delimited strings |
Retrieve all advisory metadata for the specified package names. |
advisoryNames |
Comma delimited strings |
Retrieve all advisory metadata for the specified advisory names. |
Example with Sample Response
Find all Package Metadata
GET Request
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata
Sample Response
{
"count": 100,
"links": {
"next": {
"href": "https://device-name.example.com:3121/st/console/api/v1.0/linux/packagemetadata?start=101""
}
},
"value": [
{
"advisoryName": "ELBA-2022-2354",
"architecture": "X86_64",
"links": {
"self": {
"href": "https://device-name.example.com:3121/st/console/api/v1.0/linux/packagemetadata/packagemetadata/aardvark-dns-2:1.0.1-34.0.1.el9_0.x86_64.rpm"
}
},
"packageName": "aardvark-dns-2:1.0.1-34.0.1.el9_0.x86_64.rpm",
"packageShortName": "aardvark-dns",
"packageVersion": "2:1.0.1-34.0.1.el9_0",
"repositoryName": "Oracle Linux 9 Application Stream Packages (x86_64)"
},
{
"advisoryName": "ELBA-2024-2373",
"architecture": "X86_64",
"links": {
"self": {
"href": "https://device-name.example.com:3121/st/console/api/v1.0/linux/packagemetadata/bind-libs-32:9.16.23-15.0.1.el9.x86_64.rpm"
}
},
"packageName": "bind-libs-32:9.16.23-15.0.1.el9.x86_64.rpm",
"packageShortName": "bind-libs",
"packageVersion": "32:9.16.23-15.0.1.el9",
"repositoryName": "Oracle Linux 9 Application Stream Packages (x86_64)"
}
]
}
}
Other Request Examples
GET Request
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata?Count=2
GET Request
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata/abattis-cantarell-fonts-0.301-4.el9.noarch.rpm
GET Request
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata?advisoryNames=ELBA-2023-6517,ELBA-2024-2373
GET Request
https://<consoleFQDN:port>/st/console/api/v1.0/linux/packagemetadata?packageName=aardvark-dns-2:1.0.1-36.0.1.el9_0.x86_64.rpm,abattis-cantarell-fonts-0.301-4.el9.noarch.rpm