Aptible Images API
The Images API from Aptible — 4 operation(s) for images.
The Images API from Aptible — 4 operation(s) for images.
openapi: 3.2.0
info:
contact:
email: support@aptible.com
description: REST API for the core Aptible platform.
title: Aptible API v1 Images API
version: v1
servers:
- url: '{baseUrl}'
variables:
baseUrl:
default: https://api.aptible.com
description: Override for local or test environments
security:
- token: []
tags:
- name: Images
paths:
/database_images:
get:
description: Returns a paginated list of available database images.
operationId: ListDatabaseImages
parameters:
- description: Current page of paginated results
explode: true
in: query
name: page
required: false
schema:
type: integer
style: form
- description: Number of results to return per page
explode: true
in: query
name: per_page
required: false
schema:
type: integer
style: form
- description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
explode: true
in: query
name: no_embed
required: false
schema:
type: boolean
style: form
- description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
explode: false
in: header
name: Prefer
required: false
schema:
enum:
- no_sensitive_extras=true
type: string
style: simple
responses:
'200':
content:
application/hal+json:
schema:
$ref: '#/components/schemas/ListDatabaseImages_200_response'
description: successful
security: []
summary: list database_images
tags:
- Images
/database_images/{id}:
get:
description: Returns the details of a specific database image by ID.
operationId: GetDatabaseImage
parameters:
- description: id
explode: false
in: path
name: id
required: true
schema:
type: integer
style: simple
- description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
explode: true
in: query
name: no_embed
required: false
schema:
type: boolean
style: form
- description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
explode: false
in: header
name: Prefer
required: false
schema:
enum:
- no_sensitive_extras=true
type: string
style: simple
responses:
'200':
content:
application/hal+json:
schema:
$ref: '#/components/schemas/database_image'
description: successful
security: []
summary: show database_image
tags:
- Images
/apps/{app_id}/images:
get:
description: Returns a paginated list of images for the specified app.
operationId: ListImagesForApp
parameters:
- description: app_id
explode: false
in: path
name: app_id
required: true
schema:
type: integer
style: simple
- description: Current page of paginated results
explode: true
in: query
name: page
required: false
schema:
type: integer
style: form
- description: Number of results to return per page
explode: true
in: query
name: per_page
required: false
schema:
type: integer
style: form
- description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
explode: true
in: query
name: no_embed
required: false
schema:
type: boolean
style: form
- description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
explode: false
in: header
name: Prefer
required: false
schema:
enum:
- no_sensitive_extras=true
type: string
style: simple
responses:
'200':
content:
application/hal+json:
schema:
$ref: '#/components/schemas/ListImagesForApp_200_response'
description: successful
default:
content:
application/hal+json:
schema:
$ref: '#/components/schemas/error'
description: Error response. Often a 4xx or 5xx status code
summary: list images
tags:
- Images
/images/{id}:
get:
description: Returns the details of a specific image by ID.
operationId: GetImage
parameters:
- description: id
explode: false
in: path
name: id
required: true
schema:
type: integer
style: simple
- description: 'When true, omits embedded resources from the response. Also triggered when the Prefer: no_sensitive_extras=true header is present.'
explode: true
in: query
name: no_embed
required: false
schema:
type: boolean
style: form
- description: When set to no_sensitive_extras=true, omits sensitive fields and embedded resources from the response.
explode: false
in: header
name: Prefer
required: false
schema:
enum:
- no_sensitive_extras=true
type: string
style: simple
responses:
'200':
content:
application/hal+json:
schema:
$ref: '#/components/schemas/image'
description: successful
default:
content:
application/hal+json:
schema:
$ref: '#/components/schemas/error'
description: Error response. Often a 4xx or 5xx status code
summary: show image
tags:
- Images
components:
schemas:
ListImagesForApp_200_response__embedded:
properties:
images:
items:
$ref: '#/components/schemas/image'
type: array
type: object
database_image:
properties:
id:
type: integer
_type:
type: string
created_at:
format: dateTime
type: string
updated_at:
format: dateTime
type: string
type:
type: string
version:
type: string
discoverable:
type: boolean
visible:
type: boolean
default:
type: boolean
description:
type: string
docker_repo:
type: string
_links:
$ref: '#/components/schemas/database_image__links'
required:
- _type
- created_at
- default
- description
- discoverable
- docker_repo
- id
- type
- updated_at
- version
- visible
ListDatabaseImages_200_response__embedded:
properties:
database_images:
items:
$ref: '#/components/schemas/database_image'
type: array
type: object
error:
properties:
code:
type: integer
error:
type: string
message:
type: string
required:
- code
- error
- message
type: object
ListImagesForApp_200_response:
properties:
_embedded:
$ref: '#/components/schemas/ListImagesForApp_200_response__embedded'
total_count:
type: integer
per_page:
type: integer
current_page:
type: integer
_links:
$ref: '#/components/schemas/ListImagesForApp_200_response__links'
required:
- _embedded
- _links
- current_page
- per_page
- total_count
type: object
image__links:
properties:
app:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
operations:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
self:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
type: object
image:
properties:
id:
type: integer
git_repo:
type: string
x-nullable: true
git_ref:
type: string
x-nullable: true
docker_repo:
type: string
x-nullable: true
docker_ref:
type: string
x-nullable: true
dualstack_hint:
type: integer
x-nullable: true
platform:
type: string
x-nullable: true
release:
type: string
x-nullable: true
scan:
type: string
x-nullable: true
exposed_ports:
items:
type: integer
type: array
_type:
type: string
created_at:
format: dateTime
type: string
updated_at:
format: dateTime
type: string
_links:
$ref: '#/components/schemas/image__links'
required:
- _type
- created_at
- docker_ref
- docker_repo
- dualstack_hint
- exposed_ports
- git_ref
- git_repo
- id
- platform
- release
- scan
- updated_at
ListAccountsForStack_200_response__links_stack:
properties:
href:
format: uri
type: string
type: object
ListDatabaseImages_200_response__links:
properties:
next:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
prev:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
self:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
type: object
ListImagesForApp_200_response__links:
properties:
app:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
next:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
prev:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
self:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
type: object
ListDatabaseImages_200_response:
properties:
_embedded:
$ref: '#/components/schemas/ListDatabaseImages_200_response__embedded'
total_count:
type: integer
per_page:
type: integer
current_page:
type: integer
_links:
$ref: '#/components/schemas/ListDatabaseImages_200_response__links'
required:
- _embedded
- _links
- current_page
- per_page
- total_count
type: object
database_image__links:
properties:
database:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
self:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
type: object
securitySchemes:
token:
in: header
name: Authorization
type: apiKey