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

volcengine.dns.getBackups

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 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.getBackups({
        zid: 58846,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.dns.get_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.GetBackups(ctx, &dns.GetBackupsArgs{
    			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.GetBackups.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.GetBackupsArgs;
    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.getBackups(GetBackupsArgs.builder()
                .zid(58846)
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:dns:getBackups
          Arguments:
            zid: 58846
    

    Using getBackups

    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 getBackups(args: GetBackupsArgs, opts?: InvokeOptions): Promise<GetBackupsResult>
    function getBackupsOutput(args: GetBackupsOutputArgs, opts?: InvokeOptions): Output<GetBackupsResult>
    def get_backups(name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    zid: Optional[int] = None,
                    opts: Optional[InvokeOptions] = None) -> GetBackupsResult
    def get_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[GetBackupsResult]
    func GetBackups(ctx *Context, args *GetBackupsArgs, opts ...InvokeOption) (*GetBackupsResult, error)
    func GetBackupsOutput(ctx *Context, args *GetBackupsOutputArgs, opts ...InvokeOption) GetBackupsResultOutput

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

    public static class GetBackups 
    {
        public static Task<GetBackupsResult> InvokeAsync(GetBackupsArgs args, InvokeOptions? opts = null)
        public static Output<GetBackupsResult> Invoke(GetBackupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBackupsResult> getBackups(GetBackupsArgs args, InvokeOptions options)
    public static Output<GetBackupsResult> getBackups(GetBackupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:dns/getBackups:getBackups
      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.

    getBackups Result

    The following output properties are available:

    BackupInfos List<GetBackupsBackupInfo>
    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 []GetBackupsBackupInfo
    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<GetBackupsBackupInfo>
    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 GetBackupsBackupInfo[]
    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[GetBackupsBackupInfo]
    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

    GetBackupsBackupInfo

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