ModifyBackup
In this article:
ModifyBackup#
Description#
Request for backup modification.
Request Parameters#
Required parameters#
backupId — The backup ID.
Type: String
Required: Yes
Optional parameters#
protected — Indicates whether to protect the backup from automatic deletion.
Type: Boolean
Required: No
Response Elements#
backup — The backup description.
Type: Backup object
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.modify_backup(
backupId='paas-backup-F16D2D6C',
protected=True,
)
Or c2-paas utility from CROC Cloud API Client software suite:
c2-paas ModifyBackup backupId paas-backup-F16D2D6C protected true