ListBackups#

Description#

Request for the list of existing PaaS service backups.

Request Parameters#

Optional parameters#

  • serviceClass — The PaaS service class.

    • Type: String

    • Required: No

    • Valid values for a specifc service type:

      • mysql: database

      • pgsql: database

      • redis: database | cacher

      • memcached: cacher

      • mongodb: database

      • elasticsearch: search

      • rabbitmq: message_broker

  • serviceId — The PaaS service ID.

    • Type: String

    • Required: No

  • serviceType — PaaS service type.

    • Type: String

    • Required: No

    • Valid values: mysql | pgsql | redis | memcached | mongodb | elasticsearch | rabbitmq

Response Elements#

  • backups — List of existing backups.

    • Type: List of Backup objects

Examples#

Managing PaaS services in NGN 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="ngn",
)

paas_client = session.client(
   'paas',
   endpoint_url='https://paas.cloud.ngn.com.tr/',
)

paas_client.list_backups(
   serviceType='redis',
)

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

c2-paas ListBackups serviceType redis