1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. hbr
  5. getBackupJobs
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

alicloud.hbr.getBackupJobs

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

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

    NOTE: Available in v1.138.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultEcsBackupPlans = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new()
        {
            NameRegex = "plan-name",
        });
    
        var defaultBackupJobs = AliCloud.Hbr.GetBackupJobs.Invoke(new()
        {
            SourceType = "ECS_FILE",
            Filters = new[]
            {
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "VaultId",
                    Operator = "IN",
                    Values = new[]
                    {
                        defaultEcsBackupPlans.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId),
                    },
                },
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "InstanceId",
                    Operator = "IN",
                    Values = new[]
                    {
                        defaultEcsBackupPlans.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId),
                    },
                },
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "CompleteTime",
                    Operator = "BETWEEN",
                    Values = new[]
                    {
                        "2021-08-23T14:17:15CST",
                        "2021-08-24T14:17:15CST",
                    },
                },
            },
        });
    
        var example = AliCloud.Hbr.GetBackupJobs.Invoke(new()
        {
            SourceType = "ECS_FILE",
            Status = "COMPLETE",
            Filters = new[]
            {
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "VaultId",
                    Operator = "IN",
                    Values = new[]
                    {
                        defaultEcsBackupPlans.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId),
                    },
                },
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "InstanceId",
                    Operator = "IN",
                    Values = new[]
                    {
                        defaultEcsBackupPlans.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId),
                    },
                },
                new AliCloud.Hbr.Inputs.GetBackupJobsFilterInputArgs
                {
                    Key = "CompleteTime",
                    Operator = "LESS_THAN",
                    Values = new[]
                    {
                        "2021-10-20T20:20:20CST",
                    },
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudHbrBackupJobsDefault1"] = defaultBackupJobs.Apply(getBackupJobsResult => getBackupJobsResult.Jobs[0]?.Id),
            ["alicloudHbrBackupJobsExample1"] = example.Apply(getBackupJobsResult => getBackupJobsResult.Jobs[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 {
    defaultEcsBackupPlans, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
    NameRegex: pulumi.StringRef("plan-name"),
    }, nil);
    if err != nil {
    return err
    }
    defaultBackupJobs, err := hbr.GetBackupJobs(ctx, &hbr.GetBackupJobsArgs{
    SourceType: "ECS_FILE",
    Filters: []hbr.GetBackupJobsFilter{
    {
    Key: pulumi.StringRef("VaultId"),
    Operator: pulumi.StringRef("IN"),
    Values: interface{}{
    defaultEcsBackupPlans.Plans[0].VaultId,
    },
    },
    {
    Key: pulumi.StringRef("InstanceId"),
    Operator: pulumi.StringRef("IN"),
    Values: interface{}{
    defaultEcsBackupPlans.Plans[0].InstanceId,
    },
    },
    {
    Key: pulumi.StringRef("CompleteTime"),
    Operator: pulumi.StringRef("BETWEEN"),
    Values: []string{
    "2021-08-23T14:17:15CST",
    "2021-08-24T14:17:15CST",
    },
    },
    },
    }, nil);
    if err != nil {
    return err
    }
    example, err := hbr.GetBackupJobs(ctx, &hbr.GetBackupJobsArgs{
    SourceType: "ECS_FILE",
    Status: pulumi.StringRef("COMPLETE"),
    Filters: []hbr.GetBackupJobsFilter{
    {
    Key: pulumi.StringRef("VaultId"),
    Operator: pulumi.StringRef("IN"),
    Values: interface{}{
    defaultEcsBackupPlans.Plans[0].VaultId,
    },
    },
    {
    Key: pulumi.StringRef("InstanceId"),
    Operator: pulumi.StringRef("IN"),
    Values: interface{}{
    defaultEcsBackupPlans.Plans[0].InstanceId,
    },
    },
    {
    Key: pulumi.StringRef("CompleteTime"),
    Operator: pulumi.StringRef("LESS_THAN"),
    Values: []string{
    "2021-10-20T20:20:20CST",
    },
    },
    },
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("alicloudHbrBackupJobsDefault1", defaultBackupJobs.Jobs[0].Id)
    ctx.Export("alicloudHbrBackupJobsExample1", example.Jobs[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.GetEcsBackupPlansArgs;
    import com.pulumi.alicloud.hbr.inputs.GetBackupJobsArgs;
    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 defaultEcsBackupPlans = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
                .nameRegex("plan-name")
                .build());
    
            final var defaultBackupJobs = HbrFunctions.getBackupJobs(GetBackupJobsArgs.builder()
                .sourceType("ECS_FILE")
                .filters(            
                    GetBackupJobsFilterArgs.builder()
                        .key("VaultId")
                        .operator("IN")
                        .values(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].vaultId()))
                        .build(),
                    GetBackupJobsFilterArgs.builder()
                        .key("InstanceId")
                        .operator("IN")
                        .values(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].instanceId()))
                        .build(),
                    GetBackupJobsFilterArgs.builder()
                        .key("CompleteTime")
                        .operator("BETWEEN")
                        .values(                    
                            "2021-08-23T14:17:15CST",
                            "2021-08-24T14:17:15CST")
                        .build())
                .build());
    
            final var example = HbrFunctions.getBackupJobs(GetBackupJobsArgs.builder()
                .sourceType("ECS_FILE")
                .status("COMPLETE")
                .filters(            
                    GetBackupJobsFilterArgs.builder()
                        .key("VaultId")
                        .operator("IN")
                        .values(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].vaultId()))
                        .build(),
                    GetBackupJobsFilterArgs.builder()
                        .key("InstanceId")
                        .operator("IN")
                        .values(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].instanceId()))
                        .build(),
                    GetBackupJobsFilterArgs.builder()
                        .key("CompleteTime")
                        .operator("LESS_THAN")
                        .values("2021-10-20T20:20:20CST")
                        .build())
                .build());
    
            ctx.export("alicloudHbrBackupJobsDefault1", defaultBackupJobs.applyValue(getBackupJobsResult -> getBackupJobsResult.jobs()[0].id()));
            ctx.export("alicloudHbrBackupJobsExample1", example.applyValue(getBackupJobsResult -> getBackupJobsResult.jobs()[0].id()));
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_ecs_backup_plans = alicloud.hbr.get_ecs_backup_plans(name_regex="plan-name")
    default_backup_jobs = alicloud.hbr.get_backup_jobs(source_type="ECS_FILE",
        filters=[
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="VaultId",
                operator="IN",
                values=[default_ecs_backup_plans.plans[0].vault_id],
            ),
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="InstanceId",
                operator="IN",
                values=[default_ecs_backup_plans.plans[0].instance_id],
            ),
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="CompleteTime",
                operator="BETWEEN",
                values=[
                    "2021-08-23T14:17:15CST",
                    "2021-08-24T14:17:15CST",
                ],
            ),
        ])
    example = alicloud.hbr.get_backup_jobs(source_type="ECS_FILE",
        status="COMPLETE",
        filters=[
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="VaultId",
                operator="IN",
                values=[default_ecs_backup_plans.plans[0].vault_id],
            ),
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="InstanceId",
                operator="IN",
                values=[default_ecs_backup_plans.plans[0].instance_id],
            ),
            alicloud.hbr.GetBackupJobsFilterArgs(
                key="CompleteTime",
                operator="LESS_THAN",
                values=["2021-10-20T20:20:20CST"],
            ),
        ])
    pulumi.export("alicloudHbrBackupJobsDefault1", default_backup_jobs.jobs[0].id)
    pulumi.export("alicloudHbrBackupJobsExample1", example.jobs[0].id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultEcsBackupPlans = alicloud.hbr.getEcsBackupPlans({
        nameRegex: "plan-name",
    });
    const defaultBackupJobs = Promise.all([defaultEcsBackupPlans, defaultEcsBackupPlans]).then(([defaultEcsBackupPlans, defaultEcsBackupPlans1]) => alicloud.hbr.getBackupJobs({
        sourceType: "ECS_FILE",
        filters: [
            {
                key: "VaultId",
                operator: "IN",
                values: [defaultEcsBackupPlans.plans?.[0]?.vaultId],
            },
            {
                key: "InstanceId",
                operator: "IN",
                values: [defaultEcsBackupPlans1.plans?.[0]?.instanceId],
            },
            {
                key: "CompleteTime",
                operator: "BETWEEN",
                values: [
                    "2021-08-23T14:17:15CST",
                    "2021-08-24T14:17:15CST",
                ],
            },
        ],
    }));
    const example = Promise.all([defaultEcsBackupPlans, defaultEcsBackupPlans]).then(([defaultEcsBackupPlans, defaultEcsBackupPlans1]) => alicloud.hbr.getBackupJobs({
        sourceType: "ECS_FILE",
        status: "COMPLETE",
        filters: [
            {
                key: "VaultId",
                operator: "IN",
                values: [defaultEcsBackupPlans.plans?.[0]?.vaultId],
            },
            {
                key: "InstanceId",
                operator: "IN",
                values: [defaultEcsBackupPlans1.plans?.[0]?.instanceId],
            },
            {
                key: "CompleteTime",
                operator: "LESS_THAN",
                values: ["2021-10-20T20:20:20CST"],
            },
        ],
    }));
    export const alicloudHbrBackupJobsDefault1 = defaultBackupJobs.then(defaultBackupJobs => defaultBackupJobs.jobs?.[0]?.id);
    export const alicloudHbrBackupJobsExample1 = example.then(example => example.jobs?.[0]?.id);
    
    variables:
      defaultEcsBackupPlans:
        fn::invoke:
          Function: alicloud:hbr:getEcsBackupPlans
          Arguments:
            nameRegex: plan-name
      defaultBackupJobs:
        fn::invoke:
          Function: alicloud:hbr:getBackupJobs
          Arguments:
            sourceType: ECS_FILE
            filters:
              - key: VaultId
                operator: IN
                values:
                  - ${defaultEcsBackupPlans.plans[0].vaultId}
              - key: InstanceId
                operator: IN
                values:
                  - ${defaultEcsBackupPlans.plans[0].instanceId}
              - key: CompleteTime
                operator: BETWEEN
                values:
                  - 2021-08-23T14:17:15CST
                  - 2021-08-24T14:17:15CST
      example:
        fn::invoke:
          Function: alicloud:hbr:getBackupJobs
          Arguments:
            sourceType: ECS_FILE
            status: COMPLETE
            filters:
              - key: VaultId
                operator: IN
                values:
                  - ${defaultEcsBackupPlans.plans[0].vaultId}
              - key: InstanceId
                operator: IN
                values:
                  - ${defaultEcsBackupPlans.plans[0].instanceId}
              - key: CompleteTime
                operator: LESS_THAN
                values:
                  - 2021-10-20T20:20:20CST
    outputs:
      alicloudHbrBackupJobsDefault1: ${defaultBackupJobs.jobs[0].id}
      alicloudHbrBackupJobsExample1: ${example.jobs[0].id}
    

    Using getBackupJobs

    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 getBackupJobs(args: GetBackupJobsArgs, opts?: InvokeOptions): Promise<GetBackupJobsResult>
    function getBackupJobsOutput(args: GetBackupJobsOutputArgs, opts?: InvokeOptions): Output<GetBackupJobsResult>
    def get_backup_jobs(filters: Optional[Sequence[GetBackupJobsFilter]] = None,
                        ids: Optional[Sequence[str]] = None,
                        output_file: Optional[str] = None,
                        sort_direction: Optional[str] = None,
                        source_type: Optional[str] = None,
                        status: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetBackupJobsResult
    def get_backup_jobs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetBackupJobsFilterArgs]]]] = None,
                        ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        sort_direction: Optional[pulumi.Input[str]] = None,
                        source_type: Optional[pulumi.Input[str]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetBackupJobsResult]
    func GetBackupJobs(ctx *Context, args *GetBackupJobsArgs, opts ...InvokeOption) (*GetBackupJobsResult, error)
    func GetBackupJobsOutput(ctx *Context, args *GetBackupJobsOutputArgs, opts ...InvokeOption) GetBackupJobsResultOutput

    > Note: This function is named GetBackupJobs in the Go SDK.

    public static class GetBackupJobs 
    {
        public static Task<GetBackupJobsResult> InvokeAsync(GetBackupJobsArgs args, InvokeOptions? opts = null)
        public static Output<GetBackupJobsResult> Invoke(GetBackupJobsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBackupJobsResult> getBackupJobs(GetBackupJobsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:hbr/getBackupJobs:getBackupJobs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    Filters List<Pulumi.AliCloud.Hbr.Inputs.GetBackupJobsFilter>
    Ids List<string>

    A list of Backup Job IDs.

    OutputFile string

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

    SortDirection string

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    Status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    SourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    Filters []GetBackupJobsFilter
    Ids []string

    A list of Backup Job IDs.

    OutputFile string

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

    SortDirection string

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    Status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    sourceType String

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    filters List<GetBackupJobsFilter>
    ids List<String>

    A list of Backup Job IDs.

    outputFile String

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

    sortDirection String

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    status String

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    sourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    filters GetBackupJobsFilter[]
    ids string[]

    A list of Backup Job IDs.

    outputFile string

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

    sortDirection string

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    source_type str

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    filters Sequence[GetBackupJobsFilter]
    ids Sequence[str]

    A list of Backup Job IDs.

    output_file str

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

    sort_direction str

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    status str

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    sourceType String

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    filters List<Property Map>
    ids List<String>

    A list of Backup Job IDs.

    outputFile String

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

    sortDirection String

    The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: ASCEND, DESCEND.

    status String

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    getBackupJobs Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    Ids List<string>
    Jobs List<Pulumi.AliCloud.Hbr.Outputs.GetBackupJobsJob>
    SourceType string
    Filters List<Pulumi.AliCloud.Hbr.Outputs.GetBackupJobsFilter>
    OutputFile string
    SortDirection string
    Status string
    Id string

    The provider-assigned unique ID for this managed resource.

    Ids []string
    Jobs []GetBackupJobsJob
    SourceType string
    Filters []GetBackupJobsFilter
    OutputFile string
    SortDirection string
    Status string
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    jobs List<GetBackupJobsJob>
    sourceType String
    filters List<GetBackupJobsFilter>
    outputFile String
    sortDirection String
    status String
    id string

    The provider-assigned unique ID for this managed resource.

    ids string[]
    jobs GetBackupJobsJob[]
    sourceType string
    filters GetBackupJobsFilter[]
    outputFile string
    sortDirection string
    status string
    id str

    The provider-assigned unique ID for this managed resource.

    ids Sequence[str]
    jobs Sequence[GetBackupJobsJob]
    source_type str
    filters Sequence[GetBackupJobsFilter]
    output_file str
    sort_direction str
    status str
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    jobs List<Property Map>
    sourceType String
    filters List<Property Map>
    outputFile String
    sortDirection String
    status String

    Supporting Types

    GetBackupJobsFilter

    Key string

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    Operator string

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    Values List<string>

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    Key string

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    Operator string

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    Values []string

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    key String

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    operator String

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    values List<String>

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    key string

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    operator string

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    values string[]

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    key str

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    operator str

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    values Sequence[str]

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    key String

    The key of the field to filter. Valid values: PlanId, VaultId, InstanceId, Bucket, FileSystemId, CompleteTime.

    operator String

    The operator of the field to filter. Valid values: EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IN.

    values List<String>

    Set of values that are accepted for the given field.

    NOTE: Numeric types such as CompleteTime do not support IN operations for the time being.

    GetBackupJobsJob

    ActualBytes string

    The actual data volume of the backup task (After deduplication) . Unit byte.

    ActualItems string

    The actual number of items in the backup task. (Currently only file backup is available).

    BackJobName string

    The name of backup job.

    BackupJobId string

    The ID of the backup job.

    BackupType string

    Backup type. Valid values: COMPLETE(full backup).

    Bucket string

    The name of target OSS bucket.

    BytesDone string

    The amount of backup data (Incremental). Unit byte.

    BytesTotal string

    The total amount of data sources. Unit byte.

    CompleteTime string

    The completion time of backup job. UNIX time seconds.

    CreateTime string

    The creation time of backup job. UNIX time seconds.

    CrossAccountRoleName string

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    CrossAccountType string

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    CrossAccountUserId int

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    ErrorMessage string

    Error message.

    Exclude string

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    FileSystemId string

    The ID of destination file system.

    Id string

    The ID of the backup job.

    Include string

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    InstanceId string

    The ID of target ECS instance.

    ItemsDone string

    The number of items restore job recovered.

    ItemsTotal string

    The total number of items restore job recovered.

    NasCreateTime string

    File system creation time. UNIX time in seconds.

    OtsDetails List<Pulumi.AliCloud.Hbr.Inputs.GetBackupJobsJobOtsDetail>
    Paths List<string>

    List of backup path. e.g. ["/home", "/var"].

    PlanId string

    The ID of a backup plan.

    Prefix string

    The prefix of Oss bucket files.

    Progress string

    Backup progress. The value is 100%*100.

    SourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    StartTime string

    The scheduled backup start time. UNIX time seconds.

    Status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    UpdatedTime string

    The update time of backup job. UNIX time seconds.

    VaultId string

    The ID of backup vault.

    ActualBytes string

    The actual data volume of the backup task (After deduplication) . Unit byte.

    ActualItems string

    The actual number of items in the backup task. (Currently only file backup is available).

    BackJobName string

    The name of backup job.

    BackupJobId string

    The ID of the backup job.

    BackupType string

    Backup type. Valid values: COMPLETE(full backup).

    Bucket string

    The name of target OSS bucket.

    BytesDone string

    The amount of backup data (Incremental). Unit byte.

    BytesTotal string

    The total amount of data sources. Unit byte.

    CompleteTime string

    The completion time of backup job. UNIX time seconds.

    CreateTime string

    The creation time of backup job. UNIX time seconds.

    CrossAccountRoleName string

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    CrossAccountType string

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    CrossAccountUserId int

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    ErrorMessage string

    Error message.

    Exclude string

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    FileSystemId string

    The ID of destination file system.

    Id string

    The ID of the backup job.

    Include string

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    InstanceId string

    The ID of target ECS instance.

    ItemsDone string

    The number of items restore job recovered.

    ItemsTotal string

    The total number of items restore job recovered.

    NasCreateTime string

    File system creation time. UNIX time in seconds.

    OtsDetails []GetBackupJobsJobOtsDetail
    Paths []string

    List of backup path. e.g. ["/home", "/var"].

    PlanId string

    The ID of a backup plan.

    Prefix string

    The prefix of Oss bucket files.

    Progress string

    Backup progress. The value is 100%*100.

    SourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    StartTime string

    The scheduled backup start time. UNIX time seconds.

    Status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    UpdatedTime string

    The update time of backup job. UNIX time seconds.

    VaultId string

    The ID of backup vault.

    actualBytes String

    The actual data volume of the backup task (After deduplication) . Unit byte.

    actualItems String

    The actual number of items in the backup task. (Currently only file backup is available).

    backJobName String

    The name of backup job.

    backupJobId String

    The ID of the backup job.

    backupType String

    Backup type. Valid values: COMPLETE(full backup).

    bucket String

    The name of target OSS bucket.

    bytesDone String

    The amount of backup data (Incremental). Unit byte.

    bytesTotal String

    The total amount of data sources. Unit byte.

    completeTime String

    The completion time of backup job. UNIX time seconds.

    createTime String

    The creation time of backup job. UNIX time seconds.

    crossAccountRoleName String

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountType String

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountUserId Integer

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    errorMessage String

    Error message.

    exclude String

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    fileSystemId String

    The ID of destination file system.

    id String

    The ID of the backup job.

    include String

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    instanceId String

    The ID of target ECS instance.

    itemsDone String

    The number of items restore job recovered.

    itemsTotal String

    The total number of items restore job recovered.

    nasCreateTime String

    File system creation time. UNIX time in seconds.

    otsDetails List<GetBackupJobsJobOtsDetail>
    paths List<String>

    List of backup path. e.g. ["/home", "/var"].

    planId String

    The ID of a backup plan.

    prefix String

    The prefix of Oss bucket files.

    progress String

    Backup progress. The value is 100%*100.

    sourceType String

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    startTime String

    The scheduled backup start time. UNIX time seconds.

    status String

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    updatedTime String

    The update time of backup job. UNIX time seconds.

    vaultId String

    The ID of backup vault.

    actualBytes string

    The actual data volume of the backup task (After deduplication) . Unit byte.

    actualItems string

    The actual number of items in the backup task. (Currently only file backup is available).

    backJobName string

    The name of backup job.

    backupJobId string

    The ID of the backup job.

    backupType string

    Backup type. Valid values: COMPLETE(full backup).

    bucket string

    The name of target OSS bucket.

    bytesDone string

    The amount of backup data (Incremental). Unit byte.

    bytesTotal string

    The total amount of data sources. Unit byte.

    completeTime string

    The completion time of backup job. UNIX time seconds.

    createTime string

    The creation time of backup job. UNIX time seconds.

    crossAccountRoleName string

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountType string

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountUserId number

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    errorMessage string

    Error message.

    exclude string

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    fileSystemId string

    The ID of destination file system.

    id string

    The ID of the backup job.

    include string

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    instanceId string

    The ID of target ECS instance.

    itemsDone string

    The number of items restore job recovered.

    itemsTotal string

    The total number of items restore job recovered.

    nasCreateTime string

    File system creation time. UNIX time in seconds.

    otsDetails GetBackupJobsJobOtsDetail[]
    paths string[]

    List of backup path. e.g. ["/home", "/var"].

    planId string

    The ID of a backup plan.

    prefix string

    The prefix of Oss bucket files.

    progress string

    Backup progress. The value is 100%*100.

    sourceType string

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    startTime string

    The scheduled backup start time. UNIX time seconds.

    status string

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    updatedTime string

    The update time of backup job. UNIX time seconds.

    vaultId string

    The ID of backup vault.

    actual_bytes str

    The actual data volume of the backup task (After deduplication) . Unit byte.

    actual_items str

    The actual number of items in the backup task. (Currently only file backup is available).

    back_job_name str

    The name of backup job.

    backup_job_id str

    The ID of the backup job.

    backup_type str

    Backup type. Valid values: COMPLETE(full backup).

    bucket str

    The name of target OSS bucket.

    bytes_done str

    The amount of backup data (Incremental). Unit byte.

    bytes_total str

    The total amount of data sources. Unit byte.

    complete_time str

    The completion time of backup job. UNIX time seconds.

    create_time str

    The creation time of backup job. UNIX time seconds.

    cross_account_role_name str

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    cross_account_type str

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    cross_account_user_id int

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    error_message str

    Error message.

    exclude str

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    file_system_id str

    The ID of destination file system.

    id str

    The ID of the backup job.

    include str

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    instance_id str

    The ID of target ECS instance.

    items_done str

    The number of items restore job recovered.

    items_total str

    The total number of items restore job recovered.

    nas_create_time str

    File system creation time. UNIX time in seconds.

    ots_details Sequence[GetBackupJobsJobOtsDetail]
    paths Sequence[str]

    List of backup path. e.g. ["/home", "/var"].

    plan_id str

    The ID of a backup plan.

    prefix str

    The prefix of Oss bucket files.

    progress str

    Backup progress. The value is 100%*100.

    source_type str

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    start_time str

    The scheduled backup start time. UNIX time seconds.

    status str

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    updated_time str

    The update time of backup job. UNIX time seconds.

    vault_id str

    The ID of backup vault.

    actualBytes String

    The actual data volume of the backup task (After deduplication) . Unit byte.

    actualItems String

    The actual number of items in the backup task. (Currently only file backup is available).

    backJobName String

    The name of backup job.

    backupJobId String

    The ID of the backup job.

    backupType String

    Backup type. Valid values: COMPLETE(full backup).

    bucket String

    The name of target OSS bucket.

    bytesDone String

    The amount of backup data (Incremental). Unit byte.

    bytesTotal String

    The total amount of data sources. Unit byte.

    completeTime String

    The completion time of backup job. UNIX time seconds.

    createTime String

    The creation time of backup job. UNIX time seconds.

    crossAccountRoleName String

    The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountType String

    The type of the cross account backup. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    crossAccountUserId Number

    The original account ID of the cross account backup managed by the current account. It is valid only when source_type is ECS_FILE, NAS, OSS or OTS.

    errorMessage String

    Error message.

    exclude String

    Exclude path. String of Json list. Up to 255 characters. e.g. "[\"/home/work\"]"

    fileSystemId String

    The ID of destination file system.

    id String

    The ID of the backup job.

    include String

    Include path. String of Json list. Up to 255 characters. e.g. "[\"/var\"]"

    instanceId String

    The ID of target ECS instance.

    itemsDone String

    The number of items restore job recovered.

    itemsTotal String

    The total number of items restore job recovered.

    nasCreateTime String

    File system creation time. UNIX time in seconds.

    otsDetails List<Property Map>
    paths List<String>

    List of backup path. e.g. ["/home", "/var"].

    planId String

    The ID of a backup plan.

    prefix String

    The prefix of Oss bucket files.

    progress String

    Backup progress. The value is 100%*100.

    sourceType String

    The type of data source. Valid Values: ECS_FILE, OSS, NAS, UDM_DISK.

    startTime String

    The scheduled backup start time. UNIX time seconds.

    status String

    The status of restore job. Valid values: COMPLETE , PARTIAL_COMPLETE, FAILED.

    updatedTime String

    The update time of backup job. UNIX time seconds.

    vaultId String

    The ID of backup vault.

    GetBackupJobsJobOtsDetail

    TableNames List<string>
    TableNames []string
    tableNames List<String>
    tableNames string[]
    table_names Sequence[str]
    tableNames List<String>

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi