Creates a backup job.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
JobName | string | No | The name of the backup job. | k8s-backup-infra-20220131150046-hbr |
SourceType | string | Yes | The type of the data source. Valid values:
| CONTAINER |
Retention | long | Yes | The retention period of the backup data. Unit: days. | 15 |
InstanceId | string | Yes | This parameter is required only if you set the SourceType parameter to UDM_ECS. This parameter specifies the ID of the ECS instance. | i-bp1xxxxxxxxxxxxxxysm |
BackupType | string | No | The backup type. Valid values:
| INCREMENTAL |
VaultId | string | No | The ID of the backup vault. | v-000xxxxxxxxxxxxxxy1v |
SpeedLimit | string | No | This parameter is required only if you set the SourceType parameter to ECS_FILE. This parameter specifies the throttling rules. Format:
| 0:24:NaN |
Options | string | No | This parameter is required only if you set the SourceType parameter to ECS_FILE. This parameter specifies whether to use Windows Volume Shadow Copy Service (VSS) to define a source path.
| {"UseVSS":false} |
Include | string | No | This parameter is required only if you set the SourceType parameter to ECS_FILE. This parameter specifies the paths to the files that you want to back up. The value must be 1 to 255 characters in length. | ["/home/alice/*.pdf", "/home/bob/*.txt"] |
Exclude | string | No | This parameter is required only if you set the SourceType parameter to ECS_FILE. This parameter specifies the paths to the files that are excluded from the backup job. The value must be 1 to 255 characters in length. | ["/var", "/proc"] |
ClusterId | string | No | The ID of the cluster. | cl-00068btz******oku |
ContainerResources | string | No | The cluster resources. This parameter is required only if you set the SourceType parameter to CONTAINER. | [{\"resourceType\":\"PV\",\"backupMethod\":\"FILE\",\"resourceId\":\"674dac6d-74cd-47e9-a675-09e2f10d2c45\",\"resourceInfo\":\"{\\\"pv_name\\\":\\\"nas-650dac6d-74cd-47e9-a675-09e2f10d2c45\\\",\\\"pv_size\\\":\\\"8Gi\\\",\\\"storage_class\\\":\\\"alibabacloud-cnfs-nas\\\",\\\"pvc_name\\\":\\\"data-postgresql-default-0\\\",\\\"namespace\\\":\\\"database\\\"}\",\"host\":\"cn-huhehaote.192.168.13.133\",\"hostPrefix\":\"6f5e758e-8d35-4584-b9ce-8333adfc7547/volumes/kubernetes.io~csi/nas-670dac6d-74cd-47e9-a675-09e2f10d2c45/mount\",\"pvPath\":\"/\"}] |
InitiatedByAck | boolean | No | This parameter specifies whether to initiate the request by using Container Service for Kubernetes (ACK). Default value: false. | false |
ContainerClusterId | string | No | The ID of the cluster. This parameter is required only if you set the SourceType parameter to CONTAINER. | cc-000xxxxxxxxxxxxxxi00 |
CrossAccountType | string | No | Specifies whether data is backed up within the same Alibaba Cloud account or across Alibaba Cloud accounts. Valid values:
| SELF_ACCOUNT |
CrossAccountUserId | long | No | The ID of the source Alibaba Cloud account that authorizes the current Alibaba Cloud account to back up data across Alibaba Cloud accounts. | 158975xxxxxx4625 |
CrossAccountRoleName | string | No | The name of the RAM role that is created within the source Alibaba Cloud account and assigned to the current Alibaba Cloud account to authorize the current Alibaba Cloud account to back up data across Alibaba Cloud accounts. | BackupRole |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "successful",
"RequestId": "25F49E7B-7E39-542E-83AD-62E6E7F73786",
"Success": true,
"JobId": "job-000csy09q50a2jdcbwbo"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|