Get Base Images
Return a paginated list of base images order by name available for an organization (shared and private ones). The id of the organization is fetched from CSP token
Return objects based on status (ACTIVE, DEPRECATED, DELETED)
DEPRECATED,DELETED
Returns base images matches with the name
centos 7
Base images whose number of applications is non zero (with_applications=true)
An integer that identifies the page number for a paged response
An integer that identifies the maximum page size for a paged response
Paginated list of base images in an organization
{
"page": 1,
"page_size": 5,
"total_size": 10,
"total_pages": 2,
"items": [
{
"id": "d16c7f4d-b38a-405b-a1ca-3ac0a79418c1",
"name": "Debian 11",
"description": "Debian 11 base image",
"container_image": "docker.io/library/debian:11",
"operating_system": {
"id": "d16c7f4d-b38a-405b-a1ca-3ac0a79418c1",
"name": "Centos 7",
"distro": "centos",
"version": "7"
},
"healthy": true,
"last_checked_at": "2023-03-03T00:59:52.762Z",
"application_count": 2,
"status": "ACTIVE",
"packaging_type": "CONTAINER_IMAGE",
"platforms": [
{
"os_family": "linux",
"architecture": "amd64"
}
],
"pull_registry": {
"id": "549cfa79-352c-4555-9d28-4442de551829",
"name": "Harbor registry for my org",
"url": "https://harbor.mydomain.com",
"healthy": true,
"last_checked_at": "2023-03-03T00:59:52.762Z"
},
"created_at": "2023-03-03T00:59:52.762Z",
"created_by": "johndoe",
"updated_at": "2023-03-03T00:59:52.762Z",
"updated_by": "johndoe",
"removed_at": "2023-03-03T00:59:52.762Z",
"removed_by": "johndoe",
"deprecated_at": "2023-03-03T00:59:52.762Z",
"_links": {
"pull_registry": {
"href": "/v1/registries/cddcfa79-352c-4555-9d28-4442de559876"
},
"operating_system": {
"href": "/v1/operating-system/351c1739-ca01-4a74-8124-1b99257cd7c9"
}
}
}
]
}
An error related to the request
{
"type": "https://example.com/probs/validation-error",
"title": "Validation error",
"status": 400,
"detail": "There was an error validating the request",
"violations": [
{
"field": "amount",
"message": "It should be greater than zero"
}
]
}
It represents a constraints violation error
The requesting user is not authorized to get the base images
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
An internal server error object
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
The server is temporarily unavailable
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
curl -H 'Authorization: <value>' https://{api_host}/v1/base-images