published on Monday, Jun 15, 2026 by Byteplus
published on Monday, Jun 15, 2026 by Byteplus
Backup Information
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const dNSBackupDemo = new bytepluscc.dns.Backup("DNSBackupDemo", {zid: "21xxxx"});
import pulumi
import pulumi_bytepluscc as bytepluscc
d_ns_backup_demo = bytepluscc.dns.Backup("DNSBackupDemo", zid="21xxxx")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dns.NewBackup(ctx, "DNSBackupDemo", &dns.BackupArgs{
Zid: pulumi.String("21xxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var dNSBackupDemo = new Bytepluscc.Dns.Backup("DNSBackupDemo", new()
{
Zid = "21xxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.dns.Backup;
import com.byteplus.bytepluscc.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 dNSBackupDemo = new Backup("dNSBackupDemo", BackupArgs.builder()
.zid("21xxxx")
.build());
}
}
resources:
dNSBackupDemo:
type: bytepluscc:dns:Backup
name: DNSBackupDemo
properties:
zid: 21xxxx
Example coming soon!
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[str] = 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: bytepluscc:dns:Backup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_dns_backup" "name" {
# resource properties
}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 Bytepluscc.Dns.Backup("backupResource", new()
{
Zid = "string",
});
example, err := dns.NewBackup(ctx, "backupResource", &dns.BackupArgs{
Zid: pulumi.String("string"),
})
resource "bytepluscc_dns_backup" "backupResource" {
zid = "string"
}
var backupResource = new com.byteplus.bytepluscc.dns.Backup("backupResource", com.byteplus.bytepluscc.dns.BackupArgs.builder()
.zid("string")
.build());
backup_resource = bytepluscc.dns.Backup("backupResource", zid="string")
const backupResource = new bytepluscc.dns.Backup("backupResource", {zid: "string"});
type: bytepluscc:dns:Backup
properties:
zid: string
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 string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- Zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- zid String
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- zid str
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- zid String
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:
- Backup
Id string - Backup ID.
- Backup
Time string - Backup creation time. Time zone is UTC+8.
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Count int - Number of DNS records in the backup.
- Backup
Id string - Backup ID.
- Backup
Time string - Backup creation time. Time zone is UTC+8.
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Count int - Number of DNS records in the backup.
- backup_
id string - Backup ID.
- backup_
time string - Backup creation time. Time zone is UTC+8.
- id string
- The provider-assigned unique ID for this managed resource.
- record_
count number - Number of DNS records in the backup.
- backup
Id String - Backup ID.
- backup
Time String - Backup creation time. Time zone is UTC+8.
- id String
- The provider-assigned unique ID for this managed resource.
- record
Count Integer - Number of DNS records in the backup.
- backup
Id string - Backup ID.
- backup
Time string - Backup creation time. Time zone is UTC+8.
- id string
- The provider-assigned unique ID for this managed resource.
- record
Count number - Number of DNS records in the backup.
- backup_
id str - Backup ID.
- backup_
time str - Backup creation time. Time zone is UTC+8.
- id str
- The provider-assigned unique ID for this managed resource.
- record_
count int - Number of DNS records in the backup.
- backup
Id String - Backup ID.
- backup
Time String - Backup creation time. Time zone is UTC+8.
- id String
- The provider-assigned unique ID for this managed resource.
- record
Count Number - Number of DNS records in the backup.
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,
record_count: Optional[int] = None,
zid: Optional[str] = None) -> Backupfunc 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: bytepluscc:dns:Backup get: id: ${id}import {
to = bytepluscc_dns_backup.example
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.
- Backup
Id string - Backup ID.
- Backup
Time string - Backup creation time. Time zone is UTC+8.
- Record
Count int - Number of DNS records in the backup.
- Zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- Backup
Id string - Backup ID.
- Backup
Time string - Backup creation time. Time zone is UTC+8.
- Record
Count int - Number of DNS records in the backup.
- Zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- backup_
id string - Backup ID.
- backup_
time string - Backup creation time. Time zone is UTC+8.
- record_
count number - Number of DNS records in the backup.
- zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- backup
Id String - Backup ID.
- backup
Time String - Backup creation time. Time zone is UTC+8.
- record
Count Integer - Number of DNS records in the backup.
- zid String
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- backup
Id string - Backup ID.
- backup
Time string - Backup creation time. Time zone is UTC+8.
- record
Count number - Number of DNS records in the backup.
- zid string
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- backup_
id str - Backup ID.
- backup_
time str - Backup creation time. Time zone is UTC+8.
- record_
count int - Number of DNS records in the backup.
- zid str
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
- backup
Id String - Backup ID.
- backup
Time String - Backup creation time. Time zone is UTC+8.
- record
Count Number - Number of DNS records in the backup.
- zid String
- The domain ID for which you need to manually create a backup. You can call the ListZones API to obtain the domain ID.
Import
$ pulumi import bytepluscc:dns/backup:Backup example "zid|backup_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jun 15, 2026 by Byteplus