Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 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 dictionaryThe 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.
getBackups Result
The following output properties are available:
- Backup
Infos List<GetBackups Backup 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 []GetBackups Backup 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<GetBackups Backup 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 GetBackups Backup 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[GetBackups Backup 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
GetBackupsBackupInfo
- 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
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
