Alibaba Cloud
getOssBackupPlans
This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.
NOTE: Available in v1.131.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ids = Output.Create(AliCloud.Hbr.GetOssBackupPlans.InvokeAsync(new AliCloud.Hbr.GetOssBackupPlansArgs
{
NameRegex = "^my-OssBackupPlan",
}));
this.HbrOssBackupPlanId = ids.Apply(ids => ids.Plans?[0]?.Id);
}
[Output("hbrOssBackupPlanId")]
public Output<string> HbrOssBackupPlanId { get; set; }
}
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.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
NameRegex: pulumi.StringRef("^my-OssBackupPlan"),
}, nil)
if err != nil {
return err
}
ctx.Export("hbrOssBackupPlanId", ids.Plans[0].Id)
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.hbr.get_oss_backup_plans(name_regex="^my-OssBackupPlan")
pulumi.export("hbrOssBackupPlanId", ids.plans[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.hbr.getOssBackupPlans({
nameRegex: "^my-OssBackupPlan",
});
export const hbrOssBackupPlanId = ids.then(ids => ids.plans?[0]?.id);
Coming soon!
Using getOssBackupPlans
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 getOssBackupPlans(args: GetOssBackupPlansArgs, opts?: InvokeOptions): Promise<GetOssBackupPlansResult>
function getOssBackupPlansOutput(args: GetOssBackupPlansOutputArgs, opts?: InvokeOptions): Output<GetOssBackupPlansResult>
def get_oss_backup_plans(bucket: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
vault_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOssBackupPlansResult
def get_oss_backup_plans_output(bucket: 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,
vault_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOssBackupPlansResult]
func GetOssBackupPlans(ctx *Context, args *GetOssBackupPlansArgs, opts ...InvokeOption) (*GetOssBackupPlansResult, error)
func GetOssBackupPlansOutput(ctx *Context, args *GetOssBackupPlansOutputArgs, opts ...InvokeOption) GetOssBackupPlansResultOutput
> Note: This function is named GetOssBackupPlans
in the Go SDK.
public static class GetOssBackupPlans
{
public static Task<GetOssBackupPlansResult> InvokeAsync(GetOssBackupPlansArgs args, InvokeOptions? opts = null)
public static Output<GetOssBackupPlansResult> Invoke(GetOssBackupPlansInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOssBackupPlansResult> getOssBackupPlans(GetOssBackupPlansArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:hbr/getOssBackupPlans:getOssBackupPlans
Arguments:
# Arguments dictionary
The following arguments are supported:
- Bucket string
The name of OSS bucket.
- Ids List<string>
A list of OssBackupPlan IDs.
- Name
Regex string A regex string to filter results by OssBackupPlan name.
- Output
File string - Vault
Id string The ID of backup vault.
- Bucket string
The name of OSS bucket.
- Ids []string
A list of OssBackupPlan IDs.
- Name
Regex string A regex string to filter results by OssBackupPlan name.
- Output
File string - Vault
Id string The ID of backup vault.
- bucket String
The name of OSS bucket.
- ids
List
A list of OssBackupPlan IDs.
- name
Regex String A regex string to filter results by OssBackupPlan name.
- output
File String - vault
Id String The ID of backup vault.
- bucket string
The name of OSS bucket.
- ids string[]
A list of OssBackupPlan IDs.
- name
Regex string A regex string to filter results by OssBackupPlan name.
- output
File string - vault
Id string The ID of backup vault.
- bucket str
The name of OSS bucket.
- ids Sequence[str]
A list of OssBackupPlan IDs.
- name_
regex str A regex string to filter results by OssBackupPlan name.
- output_
file str - vault_
id str The ID of backup vault.
- bucket String
The name of OSS bucket.
- ids
List
A list of OssBackupPlan IDs.
- name
Regex String A regex string to filter results by OssBackupPlan name.
- output
File String - vault
Id String The ID of backup vault.
getOssBackupPlans Result
The following output properties are available:
- 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 Oss Backup Plans Plan> - Bucket string
- Name
Regex string - Output
File string - Vault
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Plans
[]Get
Oss Backup Plans Plan - Bucket string
- Name
Regex string - Output
File string - Vault
Id string
- id String
The provider-assigned unique ID for this managed resource.
- ids
List
- names
List
- plans
List
Oss Backup Plans Plan> - bucket String
- name
Regex String - output
File String - vault
Id String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- plans
Get
Oss Backup Plans Plan[] - bucket string
- name
Regex string - output
File string - vault
Id string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- plans
Sequence[Get
Oss Backup Plans Plan] - bucket str
- name_
regex str - output_
file str - vault_
id str
Supporting Types
GetOssBackupPlansPlan
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Bucket string
The name of OSS bucket.
- Created
Time string The creation time of the backup plan. UNIX time in seconds.
- Disabled bool
Whether to be suspended. Valid values:
true
,false
.- Id string
The ID of Oss backup plan.
- Oss
Backup stringPlan Id The ID of Oss backup plan.
- Oss
Backup stringPlan Name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- Prefix string
Backup prefix.
- Retention string
Backup retention days, the minimum is 1.
- Schedule string
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- Updated
Time string The update time of the backup plan. UNIX time in seconds.
- Vault
Id string The ID of backup vault.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Bucket string
The name of OSS bucket.
- Created
Time string The creation time of the backup plan. UNIX time in seconds.
- Disabled bool
Whether to be suspended. Valid values:
true
,false
.- Id string
The ID of Oss backup plan.
- Oss
Backup stringPlan Id The ID of Oss backup plan.
- Oss
Backup stringPlan Name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- Prefix string
Backup prefix.
- Retention string
Backup retention days, the minimum is 1.
- Schedule string
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- Updated
Time string The update time of the backup plan. UNIX time in seconds.
- Vault
Id string The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- bucket String
The name of OSS bucket.
- created
Time String The creation time of the backup plan. UNIX time in seconds.
- disabled Boolean
Whether to be suspended. Valid values:
true
,false
.- id String
The ID of Oss backup plan.
- oss
Backup StringPlan Id The ID of Oss backup plan.
- oss
Backup StringPlan Name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- prefix String
Backup prefix.
- retention String
Backup retention days, the minimum is 1.
- schedule String
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- updated
Time String The update time of the backup plan. UNIX time in seconds.
- vault
Id String The ID of backup vault.
- backup
Type string Backup type. Valid values:
COMPLETE
.- bucket string
The name of OSS bucket.
- created
Time string The creation time of the backup plan. UNIX time in seconds.
- disabled boolean
Whether to be suspended. Valid values:
true
,false
.- id string
The ID of Oss backup plan.
- oss
Backup stringPlan Id The ID of Oss backup plan.
- oss
Backup stringPlan Name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- prefix string
Backup prefix.
- retention string
Backup retention days, the minimum is 1.
- schedule string
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- updated
Time string The update time of the backup plan. UNIX time in seconds.
- vault
Id string The ID of backup vault.
- backup_
type str Backup type. Valid values:
COMPLETE
.- bucket str
The name of OSS bucket.
- created_
time str The creation time of the backup plan. UNIX time in seconds.
- disabled bool
Whether to be suspended. Valid values:
true
,false
.- id str
The ID of Oss backup plan.
- oss_
backup_ strplan_ id The ID of Oss backup plan.
- oss_
backup_ strplan_ name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- prefix str
Backup prefix.
- retention str
Backup retention days, the minimum is 1.
- schedule str
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- updated_
time str The update time of the backup plan. UNIX time in seconds.
- vault_
id str The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- bucket String
The name of OSS bucket.
- created
Time String The creation time of the backup plan. UNIX time in seconds.
- disabled Boolean
Whether to be suspended. Valid values:
true
,false
.- id String
The ID of Oss backup plan.
- oss
Backup StringPlan Id The ID of Oss backup plan.
- oss
Backup StringPlan Name The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
- prefix String
Backup prefix.
- retention String
Backup retention days, the minimum is 1.
- schedule String
Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
- updated
Time String The update time of the backup plan. UNIX time in seconds.
- vault
Id String The ID of backup vault.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.