alicloud.hbr.getHanaBackupPlans
Explore with Pulumi AI
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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Hbr.GetHanaBackupPlans.Invoke(new()
{
ClusterId = "example_value",
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
return new Dictionary<string, object?>
{
["hbrHanaBackupPlanId1"] = ids.Apply(getHanaBackupPlansResult => getHanaBackupPlansResult.Plans[0]?.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := hbr.GetHanaBackupPlans(ctx, &hbr.GetHanaBackupPlansArgs{
ClusterId: "example_value",
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("hbrHanaBackupPlanId1", ids.Plans[0].Id)
return nil
})
}
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()));
}
}
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.hbr.get_hana_backup_plans(cluster_id="example_value",
ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("hbrHanaBackupPlanId1", ids.plans[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.hbr.getHanaBackupPlans({
clusterId: "example_value",
ids: [
"example_value-1",
"example_value-2",
],
});
export const hbrHanaBackupPlanId1 = ids.then(ids => ids.plans?.[0]?.id);
variables:
ids:
fn::invoke:
Function: alicloud:hbr:getHanaBackupPlans
Arguments:
clusterId: example_value
ids:
- example_value-1
- example_value-2
outputs:
hbrHanaBackupPlanId1: ${ids.plans[0].id}
Using getHanaBackupPlans
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHanaBackupPlans(args: GetHanaBackupPlansArgs, opts?: InvokeOptions): Promise<GetHanaBackupPlansResult>
function getHanaBackupPlansOutput(args: GetHanaBackupPlansOutputArgs, opts?: InvokeOptions): Output<GetHanaBackupPlansResult>
def get_hana_backup_plans(cluster_id: Optional[str] = None,
database_name: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
vault_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHanaBackupPlansResult
def get_hana_backup_plans_output(cluster_id: Optional[pulumi.Input[str]] = None,
database_name: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
vault_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHanaBackupPlansResult]
func GetHanaBackupPlans(ctx *Context, args *GetHanaBackupPlansArgs, opts ...InvokeOption) (*GetHanaBackupPlansResult, error)
func GetHanaBackupPlansOutput(ctx *Context, args *GetHanaBackupPlansOutputArgs, opts ...InvokeOption) GetHanaBackupPlansResultOutput
> Note: This function is named GetHanaBackupPlans
in the Go SDK.
public static class GetHanaBackupPlans
{
public static Task<GetHanaBackupPlansResult> InvokeAsync(GetHanaBackupPlansArgs args, InvokeOptions? opts = null)
public static Output<GetHanaBackupPlansResult> Invoke(GetHanaBackupPlansInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHanaBackupPlansResult> getHanaBackupPlans(GetHanaBackupPlansArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:hbr/getHanaBackupPlans:getHanaBackupPlans
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string The ID of the SAP HANA instance.
- Database
Name string The name of the database.
- Ids List<string>
A list of Hana Backup Plan IDs.
- Name
Regex string A regex string to filter results by Hana Backup Plan name.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Vault
Id string The ID of the backup vault.
- Cluster
Id string The ID of the SAP HANA instance.
- Database
Name string The name of the database.
- Ids []string
A list of Hana Backup Plan IDs.
- Name
Regex string A regex string to filter results by Hana Backup Plan name.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Vault
Id string The ID of the backup vault.
- cluster
Id String The ID of the SAP HANA instance.
- database
Name String The name of the database.
- ids List<String>
A list of Hana Backup Plan IDs.
- name
Regex String A regex string to filter results by Hana Backup Plan name.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size Integer - vault
Id String The ID of the backup vault.
- cluster
Id string The ID of the SAP HANA instance.
- database
Name string The name of the database.
- ids string[]
A list of Hana Backup Plan IDs.
- name
Regex string A regex string to filter results by Hana Backup Plan name.
- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size number - vault
Id string The ID of the backup vault.
- cluster_
id str The ID of the SAP HANA instance.
- database_
name str The name of the database.
- ids Sequence[str]
A list of Hana Backup Plan IDs.
- name_
regex str A regex string to filter results by Hana Backup Plan name.
- output_
file str File name where to save data source results (after running
pulumi preview
).- page_
number int - page_
size int - vault_
id str The ID of the backup vault.
- cluster
Id String The ID of the SAP HANA instance.
- database
Name String The name of the database.
- ids List<String>
A list of Hana Backup Plan IDs.
- name
Regex String A regex string to filter results by Hana Backup Plan name.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size Number - vault
Id String The ID of the backup vault.
getHanaBackupPlans Result
The following output properties are available:
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Plans
List<Pulumi.
Ali Cloud. Hbr. Outputs. Get Hana Backup Plans Plan> - Database
Name string - Name
Regex string - Output
File string - Page
Number int - Page
Size int - Vault
Id string
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Plans
[]Get
Hana Backup Plans Plan - Database
Name string - Name
Regex string - Output
File string - Page
Number int - Page
Size int - Vault
Id string
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- plans
List<Get
Hana Backup Plans Plan> - database
Name String - name
Regex String - output
File String - page
Number Integer - page
Size Integer - vault
Id String
- cluster
Id string - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- plans
Get
Hana Backup Plans Plan[] - database
Name string - name
Regex string - output
File string - page
Number number - page
Size number - vault
Id string
- cluster_
id str - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- plans
Sequence[Get
Hana Backup Plans Plan] - database_
name str - name_
regex str - output_
file str - page_
number int - page_
size int - vault_
id str
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- plans List<Property Map>
- database
Name String - name
Regex String - output
File String - page
Number Number - page
Size Number - vault
Id String
Supporting Types
GetHanaBackupPlansPlan
- Backup
Prefix string The backup prefix.
- Backup
Type string The backup type.
- Cluster
Id string The ID of the SAP HANA instance.
- Database
Name string The name of the database.
- Id string
The ID of the resource.
- Page
Total string - Plan
Id string The ID of the backup plan.
- Plan
Name string The name of the backup plan.
- Schedule string
The backup policy.
- Status string
The status of the resource.
- Vault
Id string The ID of the backup vault.
- Backup
Prefix string The backup prefix.
- Backup
Type string The backup type.
- Cluster
Id string The ID of the SAP HANA instance.
- Database
Name string The name of the database.
- Id string
The ID of the resource.
- Page
Total string - Plan
Id string The ID of the backup plan.
- Plan
Name string The name of the backup plan.
- Schedule string
The backup policy.
- Status string
The status of the resource.
- Vault
Id string The ID of the backup vault.
- backup
Prefix String The backup prefix.
- backup
Type String The backup type.
- cluster
Id String The ID of the SAP HANA instance.
- database
Name String The name of the database.
- id String
The ID of the resource.
- page
Total String - plan
Id String The ID of the backup plan.
- plan
Name String The name of the backup plan.
- schedule String
The backup policy.
- status String
The status of the resource.
- vault
Id String The ID of the backup vault.
- backup
Prefix string The backup prefix.
- backup
Type string The backup type.
- cluster
Id string The ID of the SAP HANA instance.
- database
Name string The name of the database.
- id string
The ID of the resource.
- page
Total string - plan
Id string The ID of the backup plan.
- plan
Name string The name of the backup plan.
- schedule string
The backup policy.
- status string
The status of the resource.
- vault
Id string The ID of the backup vault.
- backup_
prefix str The backup prefix.
- backup_
type str The backup type.
- cluster_
id str The ID of the SAP HANA instance.
- database_
name str The name of the database.
- id str
The ID of the resource.
- page_
total str - plan_
id str The ID of the backup plan.
- plan_
name str The name of the backup plan.
- schedule str
The backup policy.
- status str
The status of the resource.
- vault_
id str The ID of the backup vault.
- backup
Prefix String The backup prefix.
- backup
Type String The backup type.
- cluster
Id String The ID of the SAP HANA instance.
- database
Name String The name of the database.
- id String
The ID of the resource.
- page
Total String - plan
Id String The ID of the backup plan.
- plan
Name String The name of the backup plan.
- schedule String
The backup policy.
- status String
The status of the resource.
- vault
Id String The ID of the backup vault.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.