getCrossRegionBackups

This data source provides the Rds Parameter Groups of the current Alibaba Cloud user.

NOTE: Available in v1.196.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetCrossRegionBackupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var backups = RdsFunctions.getCrossRegionBackups(GetCrossRegionBackupsArgs.builder()
.dbInstanceId("example_value")
.startTime("2022-12-01T00:00:00Z")
.endTime("2022-12-16T00:00:00Z")
.build());
ctx.export("firstRdsCrossRegionBackups", backups.applyValue(getCrossRegionBackupsResult -> getCrossRegionBackupsResult.backups()[0].id()));
}
}

Return

A collection of values returned by getCrossRegionBackups.

Parameters

argument

A collection of arguments for invoking getCrossRegionBackups.


suspend fun getCrossRegionBackups(backupId: String? = null, crossBackupId: String? = null, crossBackupRegion: String? = null, dbInstanceId: String, endTime: String? = null, ids: List<String>? = null, outputFile: String? = null, resourceGroupId: String? = null, startTime: String? = null): GetCrossRegionBackupsResult

Return

A collection of values returned by getCrossRegionBackups.

See also

Parameters

backupId

The ID of the cross-region data backup file.

crossBackupId

The ID of the cross-region data backup file.

crossBackupRegion

The ID of the destination region where the cross-region data backup file of the instance is stored.

dbInstanceId

The db instance id.

endTime

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

ids

A list of Cross Region Backup IDs.

outputFile

File name where to save data source results (after running pulumi preview).

resourceGroupId

The ID of the resource group.

startTime

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.


Return

A collection of values returned by getCrossRegionBackups.

See also

Parameters

argument

Builder for com.pulumi.alicloud.rds.kotlin.inputs.GetCrossRegionBackupsPlainArgs.