DeleteBackups#

Description#

Request to delete a PaaS service backup.

Request Parameters#

Required parameters#

  • serviceId — The service ID.

    • Type: String

    • Required: Yes

Optional parameters#

  • backupIds — List of backup IDs.

    • Type: Array of strings

    • Required: No

Response Elements#

If the request is successful, API returns the HTTP 200 response with an empty HTTP body.

Examples#

Managing PaaS services in K2 Cloud via API requires a customized version of the boto3 library:

import boto3

session = boto3.Session(
   aws_access_key_id="<AWS_ACCESS_KEY_ID>",
   aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
   region_name="",
)

paas_client = session.client(
   'paas',
   endpoint_url='https://paas.k2.cloud/',
)

paas_client.delete_backups(
   serviceId='fm-cluster-7867D61F',
   backupIds=['paas-backup-F16D2D6C'],
)

Or c2-paas utility from K2 Cloud API Client software suite:

c2-paas DeleteBackups serviceId fm-cluster-7867D61F backupIds.1 paas-backup-F16D2D6C