Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 3.57 KB

old-new-api-mappings.md

File metadata and controls

18 lines (15 loc) · 3.57 KB

Red Hat Connect API migration assistance

The legacy Red Hat Connect API, which is located here, will be deprecated on July 10th, 2021 and no longer be available for use. The new API can be found here. In order to ease the transition, this page attempts to guide users to to endpoints in the new API that provide similar functionality to a deprecated one.

old new Notes
GET /api/v2/companies/{nid} get_vendor_by_org_id nid / cnid is obsolete
GET /api/v2/container/{pid}/certResults/{digest} query all images in your project Scan status and certification results can be discovered by querying for your container images. For example, you may query all images in your project. Note that not all results in the certification assessment data will be applicable for a given image.
GET /api/v2/projects/{pid} Query project by PID Query by PID is provided as a convenience but the new API uses the _id property of projects as the primary identifier. _id is also what you will find in the links section of the new API. It is recommended you transition away from using PID in order to have the best experience with the new API. Note: project _id is also visible in the url when viewing the project in the browser.
PUT /api/v2/projects/{pid} Update your projects using PATCH or PUT endpoints. Requires using the new project identifier (_id) rather than PID.
POST /api/v2/projects create project
POST /api/v2/projects/{pid}/tags Tags are distributed across image metadata. You may query for all images in your project to compile the list.
POST /api/v2/projects/{pid}/archive PATCH your project with 'project_status' = 'archived'.
POST /api/v2/projects/{pid}/[re]build Create a build request
POST /api/v2/projects/{pid}/containers/{digest}/tags/{tag}/publish Create a tag request
POST /api/v2/projects/{pid}/containers/{digest}/vulnerabilities For a given container image record you can query for its vulnerabilities.
GET /api/v2/products/{nid} Legacy products were replaced by product listings in the first half of 2020.