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

volcengine.dns.Backups

Explore with Pulumi AI

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

    Use this data source to query detailed information of dns backups

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.dns.Backups({
        zid: 58846,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.dns.backups(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.Backups(ctx, &dns.BackupsArgs{
    			Zid: 58846,
    		}, nil)
    		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 = Volcengine.Dns.Backups.Invoke(new()
        {
            Zid = 58846,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.dns.DnsFunctions;
    import com.pulumi.volcengine.dns.inputs.BackupsArgs;
    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 foo = DnsFunctions.Backups(BackupsArgs.builder()
                .zid(58846)
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:dns:Backups
          Arguments:
            zid: 58846
    

    Using Backups

    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 backups(args: BackupsArgs, opts?: InvokeOptions): Promise<BackupsResult>
    function backupsOutput(args: BackupsOutputArgs, opts?: InvokeOptions): Output<BackupsResult>
    def backups(name_regex: Optional[str] = None,
                output_file: Optional[str] = None,
                zid: Optional[int] = None,
                opts: Optional[InvokeOptions] = None) -> BackupsResult
    def backups_output(name_regex: Optional[pulumi.Input[str]] = None,
                output_file: Optional[pulumi.Input[str]] = None,
                zid: Optional[pulumi.Input[int]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[BackupsResult]
    func Backups(ctx *Context, args *BackupsArgs, opts ...InvokeOption) (*BackupsResult, error)
    func BackupsOutput(ctx *Context, args *BackupsOutputArgs, opts ...InvokeOption) BackupsResultOutput
    public static class Backups 
    {
        public static Task<BackupsResult> InvokeAsync(BackupsArgs args, InvokeOptions? opts = null)
        public static Output<BackupsResult> Invoke(BackupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<BackupsResult> backups(BackupsArgs args, InvokeOptions options)
    public static Output<BackupsResult> backups(BackupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:dns:Backups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Zid int
    The ID of the domain for which you want to get the backup schedule.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Zid int
    The ID of the domain for which you want to get the backup schedule.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    zid Integer
    The ID of the domain for which you want to get the backup schedule.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    zid number
    The ID of the domain for which you want to get the backup schedule.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    zid int
    The ID of the domain for which you want to get the backup schedule.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    zid Number
    The ID of the domain for which you want to get the backup schedule.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.

    Backups Result

    The following output properties are available:

    BackupInfos List<BackupsBackupInfo>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Zid int
    NameRegex string
    OutputFile string
    BackupInfos []BackupsBackupInfo
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Zid int
    NameRegex string
    OutputFile string
    backupInfos List<BackupsBackupInfo>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    zid Integer
    nameRegex String
    outputFile String
    backupInfos BackupsBackupInfo[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    zid number
    nameRegex string
    outputFile string
    backup_infos Sequence[BackupsBackupInfo]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    zid int
    name_regex str
    output_file str
    backupInfos List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    zid Number
    nameRegex String
    outputFile String

    Supporting Types

    BackupsBackupInfo

    BackupId string
    The ID of the backup.
    BackupTime string
    The time when the backup was created. The time zone is UTC + 8.
    RecordCount int
    The number of DNS records in the backup.
    BackupId string
    The ID of the backup.
    BackupTime string
    The time when the backup was created. The time zone is UTC + 8.
    RecordCount int
    The number of DNS records in the backup.
    backupId String
    The ID of the backup.
    backupTime String
    The time when the backup was created. The time zone is UTC + 8.
    recordCount Integer
    The number of DNS records in the backup.
    backupId string
    The ID of the backup.
    backupTime string
    The time when the backup was created. The time zone is UTC + 8.
    recordCount number
    The number of DNS records in the backup.
    backup_id str
    The ID of the backup.
    backup_time str
    The time when the backup was created. The time zone is UTC + 8.
    record_count int
    The number of DNS records in the backup.
    backupId String
    The ID of the backup.
    backupTime String
    The time when the backup was created. The time zone is UTC + 8.
    recordCount Number
    The number of DNS records in the backup.

    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