1. Packages
  2. Volcengine
  3. API Docs
  4. dns
  5. Backup
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.dns.Backup

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Provides a resource to manage dns backup

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.dns.Backup("foo", {zid: 58846});
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.dns.Backup("foo", 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.NewBackup(ctx, "foo", &dns.BackupArgs{
    			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.Backup("foo", new()
        {
            Zid = 58846,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.dns.Backup;
    import com.pulumi.volcengine.dns.BackupArgs;
    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 Backup("foo", BackupArgs.builder()        
                .zid(58846)
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:dns:Backup
        properties:
          zid: 58846
    

    Create Backup Resource

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

    Constructor syntax

    new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
    @overload
    def Backup(resource_name: str,
               args: BackupArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Backup(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               zid: Optional[int] = None)
    func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)
    public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
    public Backup(String name, BackupArgs args)
    public Backup(String name, BackupArgs args, CustomResourceOptions options)
    
    type: volcengine:dns:Backup
    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 BackupArgs
    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 BackupArgs
    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 BackupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupArgs
    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 backupResource = new Volcengine.Dns.Backup("backupResource", new()
    {
        Zid = 0,
    });
    
    example, err := dns.NewBackup(ctx, "backupResource", &dns.BackupArgs{
    	Zid: pulumi.Int(0),
    })
    
    var backupResource = new com.pulumi.volcengine.dns.Backup("backupResource", com.pulumi.volcengine.dns.BackupArgs.builder()
        .zid(0)
        .build());
    
    backup_resource = volcengine.dns.Backup("backupResource", zid=0)
    
    const backupResource = new volcengine.dns.Backup("backupResource", {zid: 0});
    
    type: volcengine:dns:Backup
    properties:
        zid: 0
    

    Backup 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 Backup resource accepts the following input properties:

    Zid int
    The ID of the domain for which you want to get the backup schedule.
    Zid int
    The ID of the domain for which you want to get the backup schedule.
    zid Integer
    The ID of the domain for which you want to get the backup schedule.
    zid number
    The ID of the domain for which you want to get the backup schedule.
    zid int
    The ID of the domain for which you want to get the backup schedule.
    zid Number
    The ID of the domain for which you want to get the backup schedule.

    Outputs

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

    BackupId string
    The ID of backup.
    BackupTime string
    Time when the backup was created. Timezone is UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    BackupId string
    The ID of backup.
    BackupTime string
    Time when the backup was created. Timezone is UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    backupId String
    The ID of backup.
    backupTime String
    Time when the backup was created. Timezone is UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    backupId string
    The ID of backup.
    backupTime string
    Time when the backup was created. Timezone is UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    backup_id str
    The ID of backup.
    backup_time str
    Time when the backup was created. Timezone is UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    backupId String
    The ID of backup.
    backupTime String
    Time when the backup was created. Timezone is UTC.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Backup Resource

    Get an existing Backup 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?: BackupState, opts?: CustomResourceOptions): Backup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_id: Optional[str] = None,
            backup_time: Optional[str] = None,
            zid: Optional[int] = None) -> Backup
    func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
    public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
    public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:dns:Backup    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:
    BackupId string
    The ID of backup.
    BackupTime string
    Time when the backup was created. Timezone is UTC.
    Zid int
    The ID of the domain for which you want to get the backup schedule.
    BackupId string
    The ID of backup.
    BackupTime string
    Time when the backup was created. Timezone is UTC.
    Zid int
    The ID of the domain for which you want to get the backup schedule.
    backupId String
    The ID of backup.
    backupTime String
    Time when the backup was created. Timezone is UTC.
    zid Integer
    The ID of the domain for which you want to get the backup schedule.
    backupId string
    The ID of backup.
    backupTime string
    Time when the backup was created. Timezone is UTC.
    zid number
    The ID of the domain for which you want to get the backup schedule.
    backup_id str
    The ID of backup.
    backup_time str
    Time when the backup was created. Timezone is UTC.
    zid int
    The ID of the domain for which you want to get the backup schedule.
    backupId String
    The ID of backup.
    backupTime String
    Time when the backup was created. Timezone is UTC.
    zid Number
    The ID of the domain for which you want to get the backup schedule.

    Import

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

    $ pulumi import volcengine:dns/backup:Backup default ZID:BackupID
    

    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.31 published on Monday, May 12, 2025 by Volcengine