1. Packages
  2. Volcengine
  3. API Docs
  4. dns
  5. BackupSchedule
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

volcengine.dns.BackupSchedule

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

    Provides a resource to manage dns backup schedule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.dns.BackupSchedule("foo", {
        schedule: 1,
        zid: 58846,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.dns.BackupSchedule("foo",
        schedule=1,
        zid=58846)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/dns"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dns.NewBackupSchedule(ctx, "foo", &dns.BackupScheduleArgs{
    			Schedule: pulumi.Int(1),
    			Zid:      pulumi.Int(58846),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Dns.BackupSchedule("foo", new()
        {
            Schedule = 1,
            Zid = 58846,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.dns.BackupSchedule;
    import com.pulumi.volcengine.dns.BackupScheduleArgs;
    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) {
            var foo = new BackupSchedule("foo", BackupScheduleArgs.builder()        
                .schedule(1)
                .zid(58846)
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:dns:BackupSchedule
        properties:
          schedule: 1
          zid: 58846
    

    Create BackupSchedule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BackupSchedule(name: string, args: BackupScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def BackupSchedule(resource_name: str,
                       args: BackupScheduleArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupSchedule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       schedule: Optional[int] = None,
                       zid: Optional[int] = None)
    func NewBackupSchedule(ctx *Context, name string, args BackupScheduleArgs, opts ...ResourceOption) (*BackupSchedule, error)
    public BackupSchedule(string name, BackupScheduleArgs args, CustomResourceOptions? opts = null)
    public BackupSchedule(String name, BackupScheduleArgs args)
    public BackupSchedule(String name, BackupScheduleArgs args, CustomResourceOptions options)
    
    type: volcengine:dns:BackupSchedule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BackupScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BackupScheduleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BackupScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupScheduleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var backupScheduleResource = new Volcengine.Dns.BackupSchedule("backupScheduleResource", new()
    {
        Schedule = 0,
        Zid = 0,
    });
    
    example, err := dns.NewBackupSchedule(ctx, "backupScheduleResource", &dns.BackupScheduleArgs{
    	Schedule: pulumi.Int(0),
    	Zid:      pulumi.Int(0),
    })
    
    var backupScheduleResource = new BackupSchedule("backupScheduleResource", BackupScheduleArgs.builder()
        .schedule(0)
        .zid(0)
        .build());
    
    backup_schedule_resource = volcengine.dns.BackupSchedule("backupScheduleResource",
        schedule=0,
        zid=0)
    
    const backupScheduleResource = new volcengine.dns.BackupSchedule("backupScheduleResource", {
        schedule: 0,
        zid: 0,
    });
    
    type: volcengine:dns:BackupSchedule
    properties:
        schedule: 0
        zid: 0
    

    BackupSchedule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BackupSchedule resource accepts the following input properties:

    Schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    Zid int
    The ID of the domain for which you want to update the backup schedule.
    Schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    Zid int
    The ID of the domain for which you want to update the backup schedule.
    schedule Integer
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid Integer
    The ID of the domain for which you want to update the backup schedule.
    schedule number
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid number
    The ID of the domain for which you want to update the backup schedule.
    schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid int
    The ID of the domain for which you want to update the backup schedule.
    schedule Number
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid Number
    The ID of the domain for which you want to update the backup schedule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BackupSchedule resource produces the following output properties:

    CountLimit int
    Maximum number of backups per domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    CountLimit int
    Maximum number of backups per domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    countLimit Integer
    Maximum number of backups per domain.
    id String
    The provider-assigned unique ID for this managed resource.
    countLimit number
    Maximum number of backups per domain.
    id string
    The provider-assigned unique ID for this managed resource.
    count_limit int
    Maximum number of backups per domain.
    id str
    The provider-assigned unique ID for this managed resource.
    countLimit Number
    Maximum number of backups per domain.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BackupSchedule Resource

    Get an existing BackupSchedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BackupScheduleState, opts?: CustomResourceOptions): BackupSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            count_limit: Optional[int] = None,
            schedule: Optional[int] = None,
            zid: Optional[int] = None) -> BackupSchedule
    func GetBackupSchedule(ctx *Context, name string, id IDInput, state *BackupScheduleState, opts ...ResourceOption) (*BackupSchedule, error)
    public static BackupSchedule Get(string name, Input<string> id, BackupScheduleState? state, CustomResourceOptions? opts = null)
    public static BackupSchedule get(String name, Output<String> id, BackupScheduleState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:dns:BackupSchedule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CountLimit int
    Maximum number of backups per domain.
    Schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    Zid int
    The ID of the domain for which you want to update the backup schedule.
    CountLimit int
    Maximum number of backups per domain.
    Schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    Zid int
    The ID of the domain for which you want to update the backup schedule.
    countLimit Integer
    Maximum number of backups per domain.
    schedule Integer
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid Integer
    The ID of the domain for which you want to update the backup schedule.
    countLimit number
    Maximum number of backups per domain.
    schedule number
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid number
    The ID of the domain for which you want to update the backup schedule.
    count_limit int
    Maximum number of backups per domain.
    schedule int
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid int
    The ID of the domain for which you want to update the backup schedule.
    countLimit Number
    Maximum number of backups per domain.
    schedule Number
    The backup schedule. 0: Turn off automatic backup. 1: Automatic backup once per hour. 2: Automatic backup once per day. 3: Automatic backup once per month.
    zid Number
    The ID of the domain for which you want to update the backup schedule.

    Import

    DnsBackupSchedule can be imported using the id, e.g.

    $ pulumi import volcengine:dns/backupSchedule:BackupSchedule default resource_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine