getHanaBackupPlans

This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user.

NOTE: Available in v1.179.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.hbr.HbrFunctions;
import com.pulumi.alicloud.hbr.inputs.GetHanaBackupPlansArgs;
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 ids = HbrFunctions.getHanaBackupPlans(GetHanaBackupPlansArgs.builder()
.clusterId("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("hbrHanaBackupPlanId1", ids.applyValue(getHanaBackupPlansResult -> getHanaBackupPlansResult.plans()[0].id()));
}
}

Return

A collection of values returned by getHanaBackupPlans.

Parameters

argument

A collection of arguments for invoking getHanaBackupPlans.


suspend fun getHanaBackupPlans(clusterId: String, databaseName: String? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, vaultId: String? = null): GetHanaBackupPlansResult

Return

A collection of values returned by getHanaBackupPlans.

See also

Parameters

clusterId

The ID of the SAP HANA instance.

databaseName

The name of the database.

ids

A list of Hana Backup Plan IDs.

nameRegex

A regex string to filter results by Hana Backup Plan name.

outputFile

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

pageNumber
pageSize
vaultId

The ID of the backup vault.


Return

A collection of values returned by getHanaBackupPlans.

See also

Parameters

argument

Builder for com.pulumi.alicloud.hbr.kotlin.inputs.GetHanaBackupPlansPlainArgs.