1. Packages
  2. Selectel Provider
  3. API Docs
  4. getCloudbackupPlanV2
selectel 7.2.1 published on Tuesday, Dec 9, 2025 by selectel
selectel logo
selectel 7.2.1 published on Tuesday, Dec 9, 2025 by selectel

    Provides a list of backup plans for Selectel Backups in the Cloud. For more information about backup plans, see the official Selectel documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const plan1 = selectel.getCloudbackupPlanV2({
        projectId: project1.id,
        region: "ru-3",
        filter: {
            name: "my-backup-plan",
            volumeName: "my-volume",
            status: "started",
        },
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    plan1 = selectel.get_cloudbackup_plan_v2(project_id=project1["id"],
        region="ru-3",
        filter={
            "name": "my-backup-plan",
            "volume_name": "my-volume",
            "status": "started",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.LookupCloudbackupPlanV2(ctx, &selectel.LookupCloudbackupPlanV2Args{
    			ProjectId: project1.Id,
    			Region:    "ru-3",
    			Filter: selectel.GetCloudbackupPlanV2Filter{
    				Name:       pulumi.StringRef("my-backup-plan"),
    				VolumeName: pulumi.StringRef("my-volume"),
    				Status:     pulumi.StringRef("started"),
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var plan1 = Selectel.GetCloudbackupPlanV2.Invoke(new()
        {
            ProjectId = project1.Id,
            Region = "ru-3",
            Filter = new Selectel.Inputs.GetCloudbackupPlanV2FilterInputArgs
            {
                Name = "my-backup-plan",
                VolumeName = "my-volume",
                Status = "started",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetCloudbackupPlanV2Args;
    import com.pulumi.selectel.inputs.GetCloudbackupPlanV2FilterArgs;
    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 plan1 = SelectelFunctions.getCloudbackupPlanV2(GetCloudbackupPlanV2Args.builder()
                .projectId(project1.id())
                .region("ru-3")
                .filter(GetCloudbackupPlanV2FilterArgs.builder()
                    .name("my-backup-plan")
                    .volumeName("my-volume")
                    .status("started")
                    .build())
                .build());
    
        }
    }
    
    variables:
      plan1:
        fn::invoke:
          function: selectel:getCloudbackupPlanV2
          arguments:
            projectId: ${project1.id}
            region: ru-3
            filter:
              name: my-backup-plan
              volumeName: my-volume
              status: started
    

    Using getCloudbackupPlanV2

    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 getCloudbackupPlanV2(args: GetCloudbackupPlanV2Args, opts?: InvokeOptions): Promise<GetCloudbackupPlanV2Result>
    function getCloudbackupPlanV2Output(args: GetCloudbackupPlanV2OutputArgs, opts?: InvokeOptions): Output<GetCloudbackupPlanV2Result>
    def get_cloudbackup_plan_v2(filter: Optional[GetCloudbackupPlanV2Filter] = None,
                                id: Optional[str] = None,
                                project_id: Optional[str] = None,
                                region: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCloudbackupPlanV2Result
    def get_cloudbackup_plan_v2_output(filter: Optional[pulumi.Input[GetCloudbackupPlanV2FilterArgs]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                project_id: Optional[pulumi.Input[str]] = None,
                                region: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCloudbackupPlanV2Result]
    func LookupCloudbackupPlanV2(ctx *Context, args *LookupCloudbackupPlanV2Args, opts ...InvokeOption) (*LookupCloudbackupPlanV2Result, error)
    func LookupCloudbackupPlanV2Output(ctx *Context, args *LookupCloudbackupPlanV2OutputArgs, opts ...InvokeOption) LookupCloudbackupPlanV2ResultOutput

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

    public static class GetCloudbackupPlanV2 
    {
        public static Task<GetCloudbackupPlanV2Result> InvokeAsync(GetCloudbackupPlanV2Args args, InvokeOptions? opts = null)
        public static Output<GetCloudbackupPlanV2Result> Invoke(GetCloudbackupPlanV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudbackupPlanV2Result> getCloudbackupPlanV2(GetCloudbackupPlanV2Args args, InvokeOptions options)
    public static Output<GetCloudbackupPlanV2Result> getCloudbackupPlanV2(GetCloudbackupPlanV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getCloudbackupPlanV2:getCloudbackupPlanV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filter GetCloudbackupPlanV2Filter
    Values to filter backup plans.
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filter GetCloudbackupPlanV2Filter
    Values to filter backup plans.
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filter GetCloudbackupPlanV2Filter
    Values to filter backup plans.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filter GetCloudbackupPlanV2Filter
    Values to filter backup plans.
    id string
    Unique identifier of the resource that is backed up according to the backup plan.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filter GetCloudbackupPlanV2Filter
    Values to filter backup plans.
    id str
    Unique identifier of the resource that is backed up according to the backup plan.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the backup plan is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filter Property Map
    Values to filter backup plans.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.

    getCloudbackupPlanV2 Result

    The following output properties are available:

    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Plans List<GetCloudbackupPlanV2Plan>
    List of backup plans:
    ProjectId string
    Region string
    Filter GetCloudbackupPlanV2Filter
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Plans []GetCloudbackupPlanV2Plan
    List of backup plans:
    ProjectId string
    Region string
    Filter GetCloudbackupPlanV2Filter
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    plans List<GetCloudbackupPlanV2Plan>
    List of backup plans:
    projectId String
    region String
    filter GetCloudbackupPlanV2Filter
    id string
    Unique identifier of the resource that is backed up according to the backup plan.
    plans GetCloudbackupPlanV2Plan[]
    List of backup plans:
    projectId string
    region string
    filter GetCloudbackupPlanV2Filter
    id str
    Unique identifier of the resource that is backed up according to the backup plan.
    plans Sequence[GetCloudbackupPlanV2Plan]
    List of backup plans:
    project_id str
    region str
    filter GetCloudbackupPlanV2Filter
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    plans List<Property Map>
    List of backup plans:
    projectId String
    region String
    filter Property Map

    Supporting Types

    GetCloudbackupPlanV2Filter

    Name string
    Name of the backup plan.
    Status string
    Status of the backup plan.
    VolumeName string
    Name of the volume.
    Name string
    Name of the backup plan.
    Status string
    Status of the backup plan.
    VolumeName string
    Name of the volume.
    name String
    Name of the backup plan.
    status String
    Status of the backup plan.
    volumeName String
    Name of the volume.
    name string
    Name of the backup plan.
    status string
    Status of the backup plan.
    volumeName string
    Name of the volume.
    name str
    Name of the backup plan.
    status str
    Status of the backup plan.
    volume_name str
    Name of the volume.
    name String
    Name of the backup plan.
    status String
    Status of the backup plan.
    volumeName String
    Name of the volume.

    GetCloudbackupPlanV2Plan

    Lists List<GetCloudbackupPlanV2PlanList>
    Plans list:
    Total double
    Total number of backup plans.
    Lists []GetCloudbackupPlanV2PlanList
    Plans list:
    Total float64
    Total number of backup plans.
    lists List<GetCloudbackupPlanV2PlanList>
    Plans list:
    total Double
    Total number of backup plans.
    lists GetCloudbackupPlanV2PlanList[]
    Plans list:
    total number
    Total number of backup plans.
    lists Sequence[GetCloudbackupPlanV2PlanList]
    Plans list:
    total float
    Total number of backup plans.
    lists List<Property Map>
    Plans list:
    total Number
    Total number of backup plans.

    GetCloudbackupPlanV2PlanList

    BackupMode string
    Backup mode.
    CreatedAt string
    Time when the backup plan was created.
    FullBackupsAmount double
    Number of full backups.
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Name string
    Resource name.
    Resources List<GetCloudbackupPlanV2PlanListResource>
    List of resources that are backed up according to the backup plan:
    SchedulePattern string
    Schedule pattern for the backup plan.
    ScheduleType string
    Schedule type for the backup plan.
    Status string
    Status of the backup plan.
    BackupMode string
    Backup mode.
    CreatedAt string
    Time when the backup plan was created.
    FullBackupsAmount float64
    Number of full backups.
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Name string
    Resource name.
    Resources []GetCloudbackupPlanV2PlanListResource
    List of resources that are backed up according to the backup plan:
    SchedulePattern string
    Schedule pattern for the backup plan.
    ScheduleType string
    Schedule type for the backup plan.
    Status string
    Status of the backup plan.
    backupMode String
    Backup mode.
    createdAt String
    Time when the backup plan was created.
    fullBackupsAmount Double
    Number of full backups.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    name String
    Resource name.
    resources List<GetCloudbackupPlanV2PlanListResource>
    List of resources that are backed up according to the backup plan:
    schedulePattern String
    Schedule pattern for the backup plan.
    scheduleType String
    Schedule type for the backup plan.
    status String
    Status of the backup plan.
    backupMode string
    Backup mode.
    createdAt string
    Time when the backup plan was created.
    fullBackupsAmount number
    Number of full backups.
    id string
    Unique identifier of the resource that is backed up according to the backup plan.
    name string
    Resource name.
    resources GetCloudbackupPlanV2PlanListResource[]
    List of resources that are backed up according to the backup plan:
    schedulePattern string
    Schedule pattern for the backup plan.
    scheduleType string
    Schedule type for the backup plan.
    status string
    Status of the backup plan.
    backup_mode str
    Backup mode.
    created_at str
    Time when the backup plan was created.
    full_backups_amount float
    Number of full backups.
    id str
    Unique identifier of the resource that is backed up according to the backup plan.
    name str
    Resource name.
    resources Sequence[GetCloudbackupPlanV2PlanListResource]
    List of resources that are backed up according to the backup plan:
    schedule_pattern str
    Schedule pattern for the backup plan.
    schedule_type str
    Schedule type for the backup plan.
    status str
    Status of the backup plan.
    backupMode String
    Backup mode.
    createdAt String
    Time when the backup plan was created.
    fullBackupsAmount Number
    Number of full backups.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    name String
    Resource name.
    resources List<Property Map>
    List of resources that are backed up according to the backup plan:
    schedulePattern String
    Schedule pattern for the backup plan.
    scheduleType String
    Schedule type for the backup plan.
    status String
    Status of the backup plan.

    GetCloudbackupPlanV2PlanListResource

    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Name string
    Resource name.
    Type string
    Resource type.
    Id string
    Unique identifier of the resource that is backed up according to the backup plan.
    Name string
    Resource name.
    Type string
    Resource type.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    name String
    Resource name.
    type String
    Resource type.
    id string
    Unique identifier of the resource that is backed up according to the backup plan.
    name string
    Resource name.
    type string
    Resource type.
    id str
    Unique identifier of the resource that is backed up according to the backup plan.
    name str
    Resource name.
    type str
    Resource type.
    id String
    Unique identifier of the resource that is backed up according to the backup plan.
    name String
    Resource name.
    type String
    Resource type.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 7.2.1 published on Tuesday, Dec 9, 2025 by selectel
      Meet Neo: Your AI Platform Teammate