vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getBackupPlan
Explore with Pulumi AI
Use this data source to get backup plan info
New since v0.4.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const planDatasource = vkcs.getBackupPlan({
name: vkcs_backup_plan.backup_plan.name,
});
import pulumi
import pulumi_vkcs as vkcs
plan_datasource = vkcs.get_backup_plan(name=vkcs_backup_plan["backup_plan"]["name"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupBackupPlan(ctx, &vkcs.LookupBackupPlanArgs{
Name: pulumi.StringRef(vkcs_backup_plan.Backup_plan.Name),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var planDatasource = Vkcs.GetBackupPlan.Invoke(new()
{
Name = vkcs_backup_plan.Backup_plan.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetBackupPlanArgs;
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 planDatasource = VkcsFunctions.getBackupPlan(GetBackupPlanArgs.builder()
.name(vkcs_backup_plan.backup_plan().name())
.build());
}
}
variables:
planDatasource:
fn::invoke:
function: vkcs:getBackupPlan
arguments:
name: ${vkcs_backup_plan.backup_plan.name}
Using getBackupPlan
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 getBackupPlan(args: GetBackupPlanArgs, opts?: InvokeOptions): Promise<GetBackupPlanResult>
function getBackupPlanOutput(args: GetBackupPlanOutputArgs, opts?: InvokeOptions): Output<GetBackupPlanResult>
def get_backup_plan(instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupPlanResult
def get_backup_plan_output(instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupPlanResult]
func LookupBackupPlan(ctx *Context, args *LookupBackupPlanArgs, opts ...InvokeOption) (*LookupBackupPlanResult, error)
func LookupBackupPlanOutput(ctx *Context, args *LookupBackupPlanOutputArgs, opts ...InvokeOption) LookupBackupPlanResultOutput
> Note: This function is named LookupBackupPlan
in the Go SDK.
public static class GetBackupPlan
{
public static Task<GetBackupPlanResult> InvokeAsync(GetBackupPlanArgs args, InvokeOptions? opts = null)
public static Output<GetBackupPlanResult> Invoke(GetBackupPlanInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupPlanResult> getBackupPlan(GetBackupPlanArgs args, InvokeOptions options)
public static Output<GetBackupPlanResult> getBackupPlan(GetBackupPlanArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getBackupPlan:getBackupPlan
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - optional string → ID of the instance that should be included in backup plan
- Name string
- optional string → Name of the backup plan
- Region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- Instance
Id string - optional string → ID of the instance that should be included in backup plan
- Name string
- optional string → Name of the backup plan
- Region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- instance
Id String - optional string → ID of the instance that should be included in backup plan
- name String
- optional string → Name of the backup plan
- region String
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- instance
Id string - optional string → ID of the instance that should be included in backup plan
- name string
- optional string → Name of the backup plan
- region string
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- instance_
id str - optional string → ID of the instance that should be included in backup plan
- name str
- optional string → Name of the backup plan
- region str
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
- instance
Id String - optional string → ID of the instance that should be included in backup plan
- name String
- optional string → Name of the backup plan
- region String
- optional string → The
region
to fetch availability zones from, defaults to the provider'sregion
.
getBackupPlan Result
The following output properties are available:
- Full
Retention GetBackup Plan Full Retention - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- Gfs
Retention GetBackup Plan Gfs Retention - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- Id string
- string → ID of the resource
- Incremental
Backup bool - boolean → Whether incremental backups should be stored
- Instance
Ids List<string> - string → List of ids of backed up instances
- Provider
Id string - string → ID of backup provider
- Region string
- Schedule
Get
Backup Plan Schedule - Instance
Id string - Name string
- Full
Retention GetBackup Plan Full Retention - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- Gfs
Retention GetBackup Plan Gfs Retention - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- Id string
- string → ID of the resource
- Incremental
Backup bool - boolean → Whether incremental backups should be stored
- Instance
Ids []string - string → List of ids of backed up instances
- Provider
Id string - string → ID of backup provider
- Region string
- Schedule
Get
Backup Plan Schedule - Instance
Id string - Name string
- full
Retention GetBackup Plan Full Retention - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- gfs
Retention GetBackup Plan Gfs Retention - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- id String
- string → ID of the resource
- incremental
Backup Boolean - boolean → Whether incremental backups should be stored
- instance
Ids List<String> - string → List of ids of backed up instances
- provider
Id String - string → ID of backup provider
- region String
- schedule
Get
Backup Plan Schedule - instance
Id String - name String
- full
Retention GetBackup Plan Full Retention - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- gfs
Retention GetBackup Plan Gfs Retention - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- id string
- string → ID of the resource
- incremental
Backup boolean - boolean → Whether incremental backups should be stored
- instance
Ids string[] - string → List of ids of backed up instances
- provider
Id string - string → ID of backup provider
- region string
- schedule
Get
Backup Plan Schedule - instance
Id string - name string
- full_
retention GetBackup Plan Full Retention - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- gfs_
retention GetBackup Plan Gfs Retention - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- id str
- string → ID of the resource
- incremental_
backup bool - boolean → Whether incremental backups should be stored
- instance_
ids Sequence[str] - string → List of ids of backed up instances
- provider_
id str - string → ID of backup provider
- region str
- schedule
Get
Backup Plan Schedule - instance_
id str - name str
- full
Retention Property Map - → Parameters for full retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- gfs
Retention Property Map - → Parameters for gfs retention policy. Specifies number of full backups stored. Incremental backups (if enabled) are not counted as full
- id String
- string → ID of the resource
- incremental
Backup Boolean - boolean → Whether incremental backups should be stored
- instance
Ids List<String> - string → List of ids of backed up instances
- provider
Id String - string → ID of backup provider
- region String
- schedule Property Map
- instance
Id String - name String
Supporting Types
GetBackupPlanFullRetention
- Max
Full doubleBackup - number → Maximum number of backups
- Max
Full float64Backup - number → Maximum number of backups
- max
Full DoubleBackup - number → Maximum number of backups
- max
Full numberBackup - number → Maximum number of backups
- max_
full_ floatbackup - number → Maximum number of backups
- max
Full NumberBackup - number → Maximum number of backups
GetBackupPlanGfsRetention
- Gfs
Monthly double - number → Number of months to store backups
- Gfs
Weekly double - number → Number of weeks to store backups
- Gfs
Yearly double - number → Number of years to store backups
- Gfs
Monthly float64 - number → Number of months to store backups
- Gfs
Weekly float64 - number → Number of weeks to store backups
- Gfs
Yearly float64 - number → Number of years to store backups
- gfs
Monthly Double - number → Number of months to store backups
- gfs
Weekly Double - number → Number of weeks to store backups
- gfs
Yearly Double - number → Number of years to store backups
- gfs
Monthly number - number → Number of months to store backups
- gfs
Weekly number - number → Number of weeks to store backups
- gfs
Yearly number - number → Number of years to store backups
- gfs_
monthly float - number → Number of months to store backups
- gfs_
weekly float - number → Number of weeks to store backups
- gfs_
yearly float - number → Number of years to store backups
- gfs
Monthly Number - number → Number of months to store backups
- gfs
Weekly Number - number → Number of weeks to store backups
- gfs
Yearly Number - number → Number of years to store backups
GetBackupPlanSchedule
- Dates List<string>
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- Every
Hours double - number → Hour period of backups
- Time string
- string → Time of backup in format hh:mm, using UTC timezone
- Dates []string
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- Every
Hours float64 - number → Hour period of backups
- Time string
- string → Time of backup in format hh:mm, using UTC timezone
- dates List<String>
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- every
Hours Double - number → Hour period of backups
- time String
- string → Time of backup in format hh:mm, using UTC timezone
- dates string[]
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- every
Hours number - number → Hour period of backups
- time string
- string → Time of backup in format hh:mm, using UTC timezone
- dates Sequence[str]
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- every_
hours float - number → Hour period of backups
- time str
- string → Time of backup in format hh:mm, using UTC timezone
- dates List<String>
- string → List of days when to perform backups. If incremental_backups is enabled, this field contains day of full backup
- every
Hours Number - number → Hour period of backups
- time String
- string → Time of backup in format hh:mm, using UTC timezone
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.