@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
167 lines (166 loc) • 6.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of rds mysql backups
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.rds_mysql.getBackups({
* instanceId: "mysql-b51d37110dd1",
* });
* ```
*/
/** @deprecated volcengine.rds_mysql.Backups has been deprecated in favor of volcengine.rds_mysql.getBackups */
export declare function backups(args?: BackupsArgs, opts?: pulumi.InvokeOptions): Promise<BackupsResult>;
/**
* A collection of arguments for invoking Backups.
*/
export interface BackupsArgs {
/**
* The end time of the backup.
*/
backupEndTime?: string;
/**
* The id of the backup.
*/
backupId?: string;
/**
* Backup type, value: Physical: Physical backup. Default value. Logical: Logical backup. Description: There is no default value. When this field is not passed, backups of all states under the query conditions limited by other fields are returned.
*/
backupMethod?: string;
/**
* The start time of the backup.
*/
backupStartTime?: string;
/**
* Backup status, values: Success: Success. Failed: Failed. Running: In progress. Description: There is no default value. When this field is not passed, all backups in all states under the query conditions limited by other fields are returned.
*/
backupStatus?: string;
/**
* Backup method, value: Full: Full backup under physical backup type or library table backup under logical backup type. Increment: Incremental backup under physical backup type. DumpAll: Full database backup under logical backup type. Description: There is no default value. When this field is not passed, all backups of all methods under the query conditions limited by other fields are returned.
*/
backupType?: string;
/**
* Creator of backup. Values: System: System. User: User. Description: There is no default value. When this field is not passed, all types of backups under the query conditions limited by other fields are returned.
*/
createType?: string;
/**
* The id of the instance.
*/
instanceId?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by Backups.
*/
export interface BackupsResult {
/**
* The end time of backup, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
*/
readonly backupEndTime?: string;
/**
* The id of the backup.
*/
readonly backupId?: string;
/**
* Backup type, value: Physical: Physical backup. Logical: Logical backup.
*/
readonly backupMethod?: string;
/**
* The start time of backup, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
*/
readonly backupStartTime?: string;
/**
* Backup status, values: Success. Failed. Running.
*/
readonly backupStatus?: string;
/**
* Backup method, values:
* Full: Full backup under physical backup type or library table backup under logical backup type.
* Increment: Incremental backup under physical backup type (created by the system).
* DumpAll: Full database backup under logical backup type.
* Description:
* There is no default value. When this field is not passed, all types of backups under the query conditions limited by other fields are returned.
*/
readonly backupType?: string;
/**
* The collection of query.
*/
readonly backups: outputs.rds_mysql.BackupsBackup[];
/**
* Creator of backup. Values: System. User.
*/
readonly createType?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId?: string;
readonly outputFile?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of rds mysql backups
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.rds_mysql.getBackups({
* instanceId: "mysql-b51d37110dd1",
* });
* ```
*/
/** @deprecated volcengine.rds_mysql.Backups has been deprecated in favor of volcengine.rds_mysql.getBackups */
export declare function backupsOutput(args?: BackupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<BackupsResult>;
/**
* A collection of arguments for invoking Backups.
*/
export interface BackupsOutputArgs {
/**
* The end time of the backup.
*/
backupEndTime?: pulumi.Input<string>;
/**
* The id of the backup.
*/
backupId?: pulumi.Input<string>;
/**
* Backup type, value: Physical: Physical backup. Default value. Logical: Logical backup. Description: There is no default value. When this field is not passed, backups of all states under the query conditions limited by other fields are returned.
*/
backupMethod?: pulumi.Input<string>;
/**
* The start time of the backup.
*/
backupStartTime?: pulumi.Input<string>;
/**
* Backup status, values: Success: Success. Failed: Failed. Running: In progress. Description: There is no default value. When this field is not passed, all backups in all states under the query conditions limited by other fields are returned.
*/
backupStatus?: pulumi.Input<string>;
/**
* Backup method, value: Full: Full backup under physical backup type or library table backup under logical backup type. Increment: Incremental backup under physical backup type. DumpAll: Full database backup under logical backup type. Description: There is no default value. When this field is not passed, all backups of all methods under the query conditions limited by other fields are returned.
*/
backupType?: pulumi.Input<string>;
/**
* Creator of backup. Values: System: System. User: User. Description: There is no default value. When this field is not passed, all types of backups under the query conditions limited by other fields are returned.
*/
createType?: pulumi.Input<string>;
/**
* The id of the instance.
*/
instanceId?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}