@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
115 lines • 3.03 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* A Backup and DR Backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.backupdisasterrecovery.getBackup({
* location: "us-central1",
* project: "project-test",
* dataSourceId: "ds-test",
* backupVaultId: "bv-test",
* });
* ```
*/
export declare function getBackup(args: GetBackupArgs, opts?: pulumi.InvokeOptions): Promise<GetBackupResult>;
/**
* A collection of arguments for invoking getBackup.
*/
export interface GetBackupArgs {
/**
* The ID of the Backup Vault of the Data Source in which the Backup belongs.
*/
backupVaultId: string;
/**
* The ID of the Data Source in which the Backup belongs.
*/
dataSourceId: string;
/**
* The location in which the Backup belongs.
*/
location: string;
/**
* The Google Cloud Project in which the Backup belongs.
*/
project: string;
}
/**
* A collection of values returned by getBackup.
*/
export interface GetBackupResult {
/**
* Name of the Backup Vault associated with Backup.
*/
readonly backupVaultId: string;
/**
* List of all backups under data source. Structure is defined below.
*/
readonly backups: outputs.backupdisasterrecovery.GetBackupBackup[];
/**
* The time when the backup was created.
*/
readonly createTime: string;
/**
* Name of the Data Source associated with Backup.
*/
readonly dataSourceId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Location of the resource.
*/
readonly location: string;
/**
* Name of the resource.
*/
readonly name: string;
readonly project: string;
}
/**
* A Backup and DR Backup.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.backupdisasterrecovery.getBackup({
* location: "us-central1",
* project: "project-test",
* dataSourceId: "ds-test",
* backupVaultId: "bv-test",
* });
* ```
*/
export declare function getBackupOutput(args: GetBackupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBackupResult>;
/**
* A collection of arguments for invoking getBackup.
*/
export interface GetBackupOutputArgs {
/**
* The ID of the Backup Vault of the Data Source in which the Backup belongs.
*/
backupVaultId: pulumi.Input<string>;
/**
* The ID of the Data Source in which the Backup belongs.
*/
dataSourceId: pulumi.Input<string>;
/**
* The location in which the Backup belongs.
*/
location: pulumi.Input<string>;
/**
* The Google Cloud Project in which the Backup belongs.
*/
project: pulumi.Input<string>;
}
//# sourceMappingURL=getBackup.d.ts.map