1. Registry
  2. Packages
  3. Planetscale Provider
  4. API Docs
  5. getNekiBackupPolicies
Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale
Viewing docs for planetscale 1.11.0
published on Friday, Sep 18, 2026 by planetscale

    NekiBackupPolicies DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as planetscale from "@pulumi/planetscale";
    
    const myNekibackuppolicies = planetscale.getNekiBackupPolicies({
        database: "...my_database...",
        organization: "...my_organization...",
    });
    
    import pulumi
    import pulumi_planetscale as planetscale
    
    my_nekibackuppolicies = planetscale.get_neki_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.GetNekiBackupPolicies(ctx, &planetscale.GetNekiBackupPoliciesArgs{
    			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 myNekibackuppolicies = Planetscale.GetNekiBackupPolicies.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.GetNekiBackupPoliciesArgs;
    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 myNekibackuppolicies = PlanetscaleFunctions.getNekiBackupPolicies(GetNekiBackupPoliciesArgs.builder()
                .database("...my_database...")
                .organization("...my_organization...")
                .build());
    
        }
    }
    
    variables:
      myNekibackuppolicies:
        fn::invoke:
          function: planetscale:getNekiBackupPolicies
          arguments:
            database: '...my_database...'
            organization: '...my_organization...'
    
    Example coming soon!
    

    Using getNekiBackupPolicies

    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 getNekiBackupPolicies(args: GetNekiBackupPoliciesArgs, opts?: InvokeOptions): Promise<GetNekiBackupPoliciesResult>
    function getNekiBackupPoliciesOutput(args: GetNekiBackupPoliciesOutputArgs, opts?: InvokeOutputOptions): Output<GetNekiBackupPoliciesResult>
    def get_neki_backup_policies(database: Optional[str] = None,
                                 organization: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetNekiBackupPoliciesResult
    def get_neki_backup_policies_output(database: pulumi.Input[Optional[str]] = None,
                                 organization: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetNekiBackupPoliciesResult]
    func GetNekiBackupPolicies(ctx *Context, args *GetNekiBackupPoliciesArgs, opts ...InvokeOption) (*GetNekiBackupPoliciesResult, error)
    func GetNekiBackupPoliciesOutput(ctx *Context, args *GetNekiBackupPoliciesOutputArgs, opts ...InvokeOption) GetNekiBackupPoliciesResultOutput

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

    public static class GetNekiBackupPolicies 
    {
        public static Task<GetNekiBackupPoliciesResult> InvokeAsync(GetNekiBackupPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetNekiBackupPoliciesResult> Invoke(GetNekiBackupPoliciesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNekiBackupPoliciesResult> Invoke(GetNekiBackupPoliciesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNekiBackupPoliciesResult> getNekiBackupPolicies(GetNekiBackupPoliciesArgs args, InvokeOptions options)
    public static Output<GetNekiBackupPoliciesResult> getNekiBackupPolicies(GetNekiBackupPoliciesArgs args, InvokeOptions options)
    public static Output<GetNekiBackupPoliciesResult> getNekiBackupPolicies(GetNekiBackupPoliciesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: planetscale:index/getNekiBackupPolicies:getNekiBackupPolicies
      arguments:
        # arguments dictionary
    data "planetscale_get_neki_backup_policies" "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.

    getNekiBackupPolicies Result

    The following output properties are available:

    Database string
    Database name slug from list_databases. Example: app-db.
    Datas List<GetNekiBackupPoliciesData>
    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 []GetNekiBackupPoliciesData
    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<GetNekiBackupPoliciesData>
    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 GetNekiBackupPoliciesData[]
    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[GetNekiBackupPoliciesData]
    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

    GetNekiBackupPoliciesData

    FrequencyUnit string
    The unit for the frequency of the backup policy
    FrequencyValue 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
    Required bool
    Whether the policy is a required system backup that cannot be updated or deleted.
    RetentionUnit string
    The unit for the retention period of the backup policy
    RetentionValue double
    A number value for the retention period of the backup policy
    ScheduleDay double
    Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
    ScheduleTime string
    The time of day that the backup is scheduled, in HH:MM format
    ScheduleWeek 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
    FrequencyUnit string
    The unit for the frequency of the backup policy
    FrequencyValue 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
    Required bool
    Whether the policy is a required system backup that cannot be updated or deleted.
    RetentionUnit string
    The unit for the retention period of the backup policy
    RetentionValue float64
    A number value for the retention period of the backup policy
    ScheduleDay float64
    Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
    ScheduleTime string
    The time of day that the backup is scheduled, in HH:MM format
    ScheduleWeek 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
    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
    required bool
    Whether the policy is a required system backup that cannot be updated or deleted.
    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
    frequencyUnit String
    The unit for the frequency of the backup policy
    frequencyValue 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
    required Boolean
    Whether the policy is a required system backup that cannot be updated or deleted.
    retentionUnit String
    The unit for the retention period of the backup policy
    retentionValue Double
    A number value for the retention period of the backup policy
    scheduleDay Double
    Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
    scheduleTime String
    The time of day that the backup is scheduled, in HH:MM format
    scheduleWeek 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
    frequencyUnit string
    The unit for the frequency of the backup policy
    frequencyValue 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
    required boolean
    Whether the policy is a required system backup that cannot be updated or deleted.
    retentionUnit string
    The unit for the retention period of the backup policy
    retentionValue number
    A number value for the retention period of the backup policy
    scheduleDay number
    Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
    scheduleTime string
    The time of day that the backup is scheduled, in HH:MM format
    scheduleWeek 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
    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
    required bool
    Whether the policy is a required system backup that cannot be updated or deleted.
    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
    frequencyUnit String
    The unit for the frequency of the backup policy
    frequencyValue 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
    required Boolean
    Whether the policy is a required system backup that cannot be updated or deleted.
    retentionUnit String
    The unit for the retention period of the backup policy
    retentionValue Number
    A number value for the retention period of the backup policy
    scheduleDay Number
    Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
    scheduleTime String
    The time of day that the backup is scheduled, in HH:MM format
    scheduleWeek 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 planetscale Terraform Provider.
    Viewing docs for planetscale 1.11.0
    published on Friday, Sep 18, 2026 by planetscale

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial