Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine
volcengine.dns.Backups
Explore with Pulumi AI
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.
- Name
Regex string - A Name Regex of Resource.
- Output
File 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 string - A Name Regex of Resource.
- Output
File 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.
- name
Regex String - A Name Regex of Resource.
- output
File 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.
- name
Regex string - A Name Regex of Resource.
- output
File 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.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
Backups Result
The following output properties are available:
- Backup
Infos List<BackupsBackup Info> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Zid int
- Name
Regex string - Output
File string
- Backup
Infos []BackupsBackup Info - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Zid int
- Name
Regex string - Output
File string
- backup
Infos List<BackupsBackup Info> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- zid Integer
- name
Regex String - output
File String
- backup
Infos BackupsBackup Info[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- zid number
- name
Regex string - output
File string
- backup_
infos Sequence[BackupsBackup Info] - 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
- backup
Infos List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- zid Number
- name
Regex String - output
File String
Supporting Types
BackupsBackupInfo
- Backup
Id string - The ID of the backup.
- Backup
Time string - The time when the backup was created. The time zone is UTC + 8.
- Record
Count int - The number of DNS records in the backup.
- Backup
Id string - The ID of the backup.
- Backup
Time string - The time when the backup was created. The time zone is UTC + 8.
- Record
Count int - The number of DNS records in the backup.
- backup
Id String - The ID of the backup.
- backup
Time String - The time when the backup was created. The time zone is UTC + 8.
- record
Count Integer - The number of DNS records in the backup.
- backup
Id string - The ID of the backup.
- backup
Time string - The time when the backup was created. The time zone is UTC + 8.
- record
Count 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.
- backup
Id String - The ID of the backup.
- backup
Time String - The time when the backup was created. The time zone is UTC + 8.
- record
Count 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.