Viewing docs for planetscale 1.2.0
published on Tuesday, Jun 16, 2026 by planetscale
published on Tuesday, Jun 16, 2026 by planetscale
Viewing docs for planetscale 1.2.0
published on Tuesday, Jun 16, 2026 by planetscale
published on Tuesday, Jun 16, 2026 by planetscale
VitessBackupPolicy DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myVitessbackuppolicy = planetscale.getVitessBackupPolicy({
database: "...my_database...",
id: "...my_id...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_vitessbackuppolicy = planetscale.get_vitess_backup_policy(database="...my_database...",
id="...my_id...",
organization="...my_organization...")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/planetscale/planetscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := planetscale.LookupVitessBackupPolicy(ctx, &planetscale.LookupVitessBackupPolicyArgs{
Database: "...my_database...",
Id: "...my_id...",
Organization: "...my_organization...",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Planetscale = Pulumi.Planetscale;
return await Deployment.RunAsync(() =>
{
var myVitessbackuppolicy = Planetscale.GetVitessBackupPolicy.Invoke(new()
{
Database = "...my_database...",
Id = "...my_id...",
Organization = "...my_organization...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.planetscale.PlanetscaleFunctions;
import com.pulumi.planetscale.inputs.GetVitessBackupPolicyArgs;
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 myVitessbackuppolicy = PlanetscaleFunctions.getVitessBackupPolicy(GetVitessBackupPolicyArgs.builder()
.database("...my_database...")
.id("...my_id...")
.organization("...my_organization...")
.build());
}
}
variables:
myVitessbackuppolicy:
fn::invoke:
function: planetscale:getVitessBackupPolicy
arguments:
database: '...my_database...'
id: '...my_id...'
organization: '...my_organization...'
Example coming soon!
Using getVitessBackupPolicy
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 getVitessBackupPolicy(args: GetVitessBackupPolicyArgs, opts?: InvokeOptions): Promise<GetVitessBackupPolicyResult>
function getVitessBackupPolicyOutput(args: GetVitessBackupPolicyOutputArgs, opts?: InvokeOptions): Output<GetVitessBackupPolicyResult>def get_vitess_backup_policy(database: Optional[str] = None,
id: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVitessBackupPolicyResult
def get_vitess_backup_policy_output(database: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVitessBackupPolicyResult]func LookupVitessBackupPolicy(ctx *Context, args *LookupVitessBackupPolicyArgs, opts ...InvokeOption) (*LookupVitessBackupPolicyResult, error)
func LookupVitessBackupPolicyOutput(ctx *Context, args *LookupVitessBackupPolicyOutputArgs, opts ...InvokeOption) LookupVitessBackupPolicyResultOutput> Note: This function is named LookupVitessBackupPolicy in the Go SDK.
public static class GetVitessBackupPolicy
{
public static Task<GetVitessBackupPolicyResult> InvokeAsync(GetVitessBackupPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetVitessBackupPolicyResult> Invoke(GetVitessBackupPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVitessBackupPolicyResult> getVitessBackupPolicy(GetVitessBackupPolicyArgs args, InvokeOptions options)
public static Output<GetVitessBackupPolicyResult> getVitessBackupPolicy(GetVitessBackupPolicyArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getVitessBackupPolicy:getVitessBackupPolicy
arguments:
# arguments dictionarydata "planetscale_getvitessbackuppolicy" "name" {
# arguments
}The following arguments are supported:
- Database string
- Database name slug from
list_databases. Example:app-db. - Id string
- The ID of the backup policy
- Organization string
- Organization name slug from
list_organizations. Example:acme.
- Database string
- Database name slug from
list_databases. Example:app-db. - Id string
- The ID of the backup policy
- Organization string
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - id string
- The ID of the backup policy
- organization string
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - id String
- The ID of the backup policy
- organization String
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - id string
- The ID of the backup policy
- organization string
- Organization name slug from
list_organizations. Example:acme.
- database str
- Database name slug from
list_databases. Example:app-db. - id str
- The ID of the backup policy
- organization str
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - id String
- The ID of the backup policy
- organization String
- Organization name slug from
list_organizations. Example:acme.
getVitessBackupPolicy Result
The following output properties are available:
- Database string
- Database name slug from
list_databases. Example:app-db. - Display
Name string - The display name of the backup policy
- Frequency
Unit string - The unit for the frequency of the backup policy
- Frequency
Value double - A number value for the frequency of the backup policy
- Id string
- The ID of the backup policy
- Name string
- The name of the backup policy
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Retention
Unit string - The unit for the retention period of the backup policy
- Retention
Value double - A number value for the retention period of the backup policy
- Schedule
Day double - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- Schedule
Time string - The time of day that the backup is scheduled, in HH:MM format
- Schedule
Week double - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- Target string
- Whether the policy is for production or development branches
- Database string
- Database name slug from
list_databases. Example:app-db. - Display
Name string - The display name of the backup policy
- Frequency
Unit string - The unit for the frequency of the backup policy
- Frequency
Value float64 - A number value for the frequency of the backup policy
- Id string
- The ID of the backup policy
- Name string
- The name of the backup policy
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Retention
Unit string - The unit for the retention period of the backup policy
- Retention
Value float64 - A number value for the retention period of the backup policy
- Schedule
Day float64 - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- Schedule
Time string - The time of day that the backup is scheduled, in HH:MM format
- Schedule
Week float64 - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- Target string
- Whether the policy is for production or development branches
- database string
- Database name slug from
list_databases. Example:app-db. - display_
name string - The display name of the backup policy
- frequency_
unit string - The unit for the frequency of the backup policy
- frequency_
value number - A number value for the frequency of the backup policy
- id string
- The ID of the backup policy
- name string
- The name of the backup policy
- organization string
- Organization name slug from
list_organizations. Example:acme. - retention_
unit string - The unit for the retention period of the backup policy
- retention_
value number - A number value for the retention period of the backup policy
- schedule_
day number - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- schedule_
time string - The time of day that the backup is scheduled, in HH:MM format
- schedule_
week number - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- target string
- Whether the policy is for production or development branches
- database String
- Database name slug from
list_databases. Example:app-db. - display
Name String - The display name of the backup policy
- frequency
Unit String - The unit for the frequency of the backup policy
- frequency
Value Double - A number value for the frequency of the backup policy
- id String
- The ID of the backup policy
- name String
- The name of the backup policy
- organization String
- Organization name slug from
list_organizations. Example:acme. - retention
Unit String - The unit for the retention period of the backup policy
- retention
Value Double - A number value for the retention period of the backup policy
- schedule
Day Double - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- schedule
Time String - The time of day that the backup is scheduled, in HH:MM format
- schedule
Week Double - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- target String
- Whether the policy is for production or development branches
- database string
- Database name slug from
list_databases. Example:app-db. - display
Name string - The display name of the backup policy
- frequency
Unit string - The unit for the frequency of the backup policy
- frequency
Value number - A number value for the frequency of the backup policy
- id string
- The ID of the backup policy
- name string
- The name of the backup policy
- organization string
- Organization name slug from
list_organizations. Example:acme. - retention
Unit string - The unit for the retention period of the backup policy
- retention
Value number - A number value for the retention period of the backup policy
- schedule
Day number - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- schedule
Time string - The time of day that the backup is scheduled, in HH:MM format
- schedule
Week number - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- target string
- Whether the policy is for production or development branches
- database str
- Database name slug from
list_databases. Example:app-db. - display_
name str - The display name of the backup policy
- frequency_
unit str - The unit for the frequency of the backup policy
- frequency_
value float - A number value for the frequency of the backup policy
- id str
- The ID of the backup policy
- name str
- The name of the backup policy
- organization str
- Organization name slug from
list_organizations. Example:acme. - retention_
unit str - The unit for the retention period of the backup policy
- retention_
value float - A number value for the retention period of the backup policy
- schedule_
day float - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- schedule_
time str - The time of day that the backup is scheduled, in HH:MM format
- schedule_
week float - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- target str
- Whether the policy is for production or development branches
- database String
- Database name slug from
list_databases. Example:app-db. - display
Name String - The display name of the backup policy
- frequency
Unit String - The unit for the frequency of the backup policy
- frequency
Value Number - A number value for the frequency of the backup policy
- id String
- The ID of the backup policy
- name String
- The name of the backup policy
- organization String
- Organization name slug from
list_organizations. Example:acme. - retention
Unit String - The unit for the retention period of the backup policy
- retention
Value Number - A number value for the retention period of the backup policy
- schedule
Day Number - Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
- schedule
Time String - The time of day that the backup is scheduled, in HH:MM format
- schedule
Week Number - Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
- target String
- Whether the policy is for production or development branches
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
Viewing docs for planetscale 1.2.0
published on Tuesday, Jun 16, 2026 by planetscale
published on Tuesday, Jun 16, 2026 by planetscale