Aptible Backup Retention Policies API
The BackupRetentionPolicies API from Aptible — 2 operation(s) for backupretentionpolicies.
The BackupRetentionPolicies API from Aptible — 2 operation(s) for backupretentionpolicies.
openapi: 3.2.0
info:
contact:
email: support@aptible.com
description: REST API for the core Aptible platform.
title: Aptible API v1 Backup Retention Policies API
version: v1
servers:
- url: '{baseUrl}'
variables:
baseUrl:
default: https://api.aptible.com
description: Override for local or test environments
security:
- token: []
tags:
- name: BackupRetentionPolicies
paths:
/accounts/{account_id}/backup_retention_policies:
get:
description: Returns a paginated list of backup retention policies for the specified account.
operationId: ListBackupRetentionPoliciesForAccount
parameters:
- description: account_id
explode: false
in: path
name: account_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/ListBackupRetentionPoliciesForAccount_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 backup retention policies
tags:
- BackupRetentionPolicies
post:
description: Creates a new backup retention policy for the specified account.
operationId: CreateBackupRetentionPolicy
parameters:
- description: account_id
explode: false
in: path
name: account_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
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateBackupRetentionPolicy_request'
responses:
'201':
description: successful
default:
content:
application/hal+json:
schema:
$ref: '#/components/schemas/error'
description: Error response. Often a 4xx or 5xx status code
summary: create backup retention policy
tags:
- BackupRetentionPolicies
/backup_retention_policies/{id}:
get:
description: Returns the details of a specific backup retention policy by ID.
operationId: GetBackupRetentionPolicy
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/backup_retention_policy'
description: successful
default:
content:
application/hal+json:
schema:
$ref: '#/components/schemas/error'
description: Error response. Often a 4xx or 5xx status code
summary: show backup_retention_policy
tags:
- BackupRetentionPolicies
components:
schemas:
CreateBackupRetentionPolicy_request:
properties:
daily:
type: integer
x-omitempty: false
monthly:
type: integer
x-omitempty: false
yearly:
type: integer
x-omitempty: false
keep_final:
type: boolean
x-omitempty: false
make_copy:
type: boolean
x-omitempty: false
type: object
error:
properties:
code:
type: integer
error:
type: string
message:
type: string
required:
- code
- error
- message
type: object
ListActivityReportsForAccount_200_response__links:
properties:
account:
$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
ListBackupRetentionPoliciesForAccount_200_response__embedded:
properties:
backup_retention_policies:
items:
$ref: '#/components/schemas/backup_retention_policy'
type: array
type: object
ListBackupRetentionPoliciesForAccount_200_response:
properties:
_embedded:
$ref: '#/components/schemas/ListBackupRetentionPoliciesForAccount_200_response__embedded'
total_count:
type: integer
per_page:
type: integer
current_page:
type: integer
_links:
$ref: '#/components/schemas/ListActivityReportsForAccount_200_response__links'
required:
- _embedded
- _links
- current_page
- per_page
- total_count
type: object
backup_retention_policy__links:
properties:
account:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
self:
$ref: '#/components/schemas/ListAccountsForStack_200_response__links_stack'
type: object
backup_retention_policy:
properties:
id:
type: integer
_type:
type: string
created_at:
format: dateTime
type: string
daily:
type: integer
monthly:
type: integer
yearly:
type: integer
pitr_days:
type: integer
make_copy:
type: boolean
keep_final:
type: boolean
_links:
$ref: '#/components/schemas/backup_retention_policy__links'
required:
- _type
- created_at
- daily
- id
- keep_final
- make_copy
- monthly
- pitr_days
- yearly
ListAccountsForStack_200_response__links_stack:
properties:
href:
format: uri
type: string
type: object
securitySchemes:
token:
in: header
name: Authorization
type: apiKey