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
PostgresBackupPolicies DataSource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const myPostgresbackuppolicies = planetscale.getPostgresBackupPolicies({
database: "...my_database...",
organization: "...my_organization...",
});
import pulumi
import pulumi_planetscale as planetscale
my_postgresbackuppolicies = planetscale.get_postgres_backup_policies(database="...my_database...",
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.GetPostgresBackupPolicies(ctx, &planetscale.GetPostgresBackupPoliciesArgs{
Database: "...my_database...",
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 myPostgresbackuppolicies = Planetscale.GetPostgresBackupPolicies.Invoke(new()
{
Database = "...my_database...",
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.GetPostgresBackupPoliciesArgs;
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 myPostgresbackuppolicies = PlanetscaleFunctions.getPostgresBackupPolicies(GetPostgresBackupPoliciesArgs.builder()
.database("...my_database...")
.organization("...my_organization...")
.build());
}
}
variables:
myPostgresbackuppolicies:
fn::invoke:
function: planetscale:getPostgresBackupPolicies
arguments:
database: '...my_database...'
organization: '...my_organization...'
Example coming soon!
Using getPostgresBackupPolicies
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 getPostgresBackupPolicies(args: GetPostgresBackupPoliciesArgs, opts?: InvokeOptions): Promise<GetPostgresBackupPoliciesResult>
function getPostgresBackupPoliciesOutput(args: GetPostgresBackupPoliciesOutputArgs, opts?: InvokeOptions): Output<GetPostgresBackupPoliciesResult>def get_postgres_backup_policies(database: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresBackupPoliciesResult
def get_postgres_backup_policies_output(database: pulumi.Input[Optional[str]] = None,
organization: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresBackupPoliciesResult]func GetPostgresBackupPolicies(ctx *Context, args *GetPostgresBackupPoliciesArgs, opts ...InvokeOption) (*GetPostgresBackupPoliciesResult, error)
func GetPostgresBackupPoliciesOutput(ctx *Context, args *GetPostgresBackupPoliciesOutputArgs, opts ...InvokeOption) GetPostgresBackupPoliciesResultOutput> Note: This function is named GetPostgresBackupPolicies in the Go SDK.
public static class GetPostgresBackupPolicies
{
public static Task<GetPostgresBackupPoliciesResult> InvokeAsync(GetPostgresBackupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresBackupPoliciesResult> Invoke(GetPostgresBackupPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresBackupPoliciesResult> getPostgresBackupPolicies(GetPostgresBackupPoliciesArgs args, InvokeOptions options)
public static Output<GetPostgresBackupPoliciesResult> getPostgresBackupPolicies(GetPostgresBackupPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getPostgresBackupPolicies:getPostgresBackupPolicies
arguments:
# arguments dictionarydata "planetscale_getpostgresbackuppolicies" "name" {
# arguments
}The following arguments are supported:
- Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme.
- Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme.
- database str
- Database name slug from
list_databases. Example:app-db. - organization str
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme.
getPostgresBackupPolicies Result
The following output properties are available:
- Database string
- Database name slug from
list_databases. Example:app-db. - Datas
List<Get
Postgres Backup Policies Data> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Organization name slug from
list_organizations. Example:acme.
- Database string
- Database name slug from
list_databases. Example:app-db. - Datas
[]Get
Postgres Backup Policies Data - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - datas list(object)
- id string
- The provider-assigned unique ID for this managed resource.
- organization string
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - datas
List<Get
Postgres Backup Policies Data> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- Organization name slug from
list_organizations. Example:acme.
- database string
- Database name slug from
list_databases. Example:app-db. - datas
Get
Postgres Backup Policies Data[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- Organization name slug from
list_organizations. Example:acme.
- database str
- Database name slug from
list_databases. Example:app-db. - datas
Sequence[Get
Postgres Backup Policies Data] - id str
- The provider-assigned unique ID for this managed resource.
- organization str
- Organization name slug from
list_organizations. Example:acme.
- database String
- Database name slug from
list_databases. Example:app-db. - datas List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- organization String
- Organization name slug from
list_organizations. Example:acme.
Supporting Types
GetPostgresBackupPoliciesData
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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