published on Monday, Jul 20, 2026 by Byteplus
published on Monday, Jul 20, 2026 by Byteplus
Domain backup plan configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const dNSBackupScheduleDemo = new bytepluscc.dns.BackupSchedule("DNSBackupScheduleDemo", {
zid: "2xxxx71",
schedule: 1,
});
import pulumi
import pulumi_bytepluscc as bytepluscc
d_ns_backup_schedule_demo = bytepluscc.dns.BackupSchedule("DNSBackupScheduleDemo",
zid="2xxxx71",
schedule=1)
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.NewBackupSchedule(ctx, "DNSBackupScheduleDemo", &dns.BackupScheduleArgs{
Zid: pulumi.String("2xxxx71"),
Schedule: pulumi.Int(1),
})
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 dNSBackupScheduleDemo = new Bytepluscc.Dns.BackupSchedule("DNSBackupScheduleDemo", new()
{
Zid = "2xxxx71",
Schedule = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.dns.BackupSchedule;
import com.byteplus.bytepluscc.dns.BackupScheduleArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 dNSBackupScheduleDemo = new BackupSchedule("dNSBackupScheduleDemo", BackupScheduleArgs.builder()
.zid("2xxxx71")
.schedule(1)
.build());
}
}
resources:
dNSBackupScheduleDemo:
type: bytepluscc:dns:BackupSchedule
name: DNSBackupScheduleDemo
properties:
zid: 2xxxx71
schedule: 1
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_dns_backupschedule" "DNSBackupScheduleDemo" {
zid = "2xxxx71"
schedule = 1
}
Create BackupSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupSchedule(name: string, args: BackupScheduleArgs, opts?: CustomResourceOptions);@overload
def BackupSchedule(resource_name: str,
args: BackupScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
schedule: Optional[int] = None,
zid: Optional[str] = None)func NewBackupSchedule(ctx *Context, name string, args BackupScheduleArgs, opts ...ResourceOption) (*BackupSchedule, error)public BackupSchedule(string name, BackupScheduleArgs args, CustomResourceOptions? opts = null)
public BackupSchedule(String name, BackupScheduleArgs args)
public BackupSchedule(String name, BackupScheduleArgs args, CustomResourceOptions options)
type: bytepluscc:dns:BackupSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_dns_backup_schedule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BackupScheduleArgs
- 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 BackupScheduleArgs
- 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 BackupScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupScheduleArgs
- 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 backupScheduleResource = new Bytepluscc.Dns.BackupSchedule("backupScheduleResource", new()
{
Schedule = 0,
Zid = "string",
});
example, err := dns.NewBackupSchedule(ctx, "backupScheduleResource", &dns.BackupScheduleArgs{
Schedule: pulumi.Int(0),
Zid: pulumi.String("string"),
})
resource "bytepluscc_dns_backup_schedule" "backupScheduleResource" {
lifecycle {
create_before_destroy = true
}
schedule = 0
zid = "string"
}
var backupScheduleResource = new BackupSchedule("backupScheduleResource", BackupScheduleArgs.builder()
.schedule(0)
.zid("string")
.build());
backup_schedule_resource = bytepluscc.dns.BackupSchedule("backupScheduleResource",
schedule=0,
zid="string")
const backupScheduleResource = new bytepluscc.dns.BackupSchedule("backupScheduleResource", {
schedule: 0,
zid: "string",
});
type: bytepluscc:dns:BackupSchedule
properties:
schedule: 0
zid: string
BackupSchedule 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 BackupSchedule resource accepts the following input properties:
- Schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- Zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- Schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- Zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- schedule number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- schedule Integer
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid String
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- schedule number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid str
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- schedule Number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid String
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupSchedule resource produces the following output properties:
- Count
Limit int - Backup quantity limit.
- Id string
- The provider-assigned unique ID for this managed resource.
- Count
Limit int - Backup quantity limit.
- Id string
- The provider-assigned unique ID for this managed resource.
- count_
limit number - Backup quantity limit.
- id string
- The provider-assigned unique ID for this managed resource.
- count
Limit Integer - Backup quantity limit.
- id String
- The provider-assigned unique ID for this managed resource.
- count
Limit number - Backup quantity limit.
- id string
- The provider-assigned unique ID for this managed resource.
- count_
limit int - Backup quantity limit.
- id str
- The provider-assigned unique ID for this managed resource.
- count
Limit Number - Backup quantity limit.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BackupSchedule Resource
Get an existing BackupSchedule 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?: BackupScheduleState, opts?: CustomResourceOptions): BackupSchedule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
count_limit: Optional[int] = None,
schedule: Optional[int] = None,
zid: Optional[str] = None) -> BackupSchedulefunc GetBackupSchedule(ctx *Context, name string, id IDInput, state *BackupScheduleState, opts ...ResourceOption) (*BackupSchedule, error)public static BackupSchedule Get(string name, Input<string> id, BackupScheduleState? state, CustomResourceOptions? opts = null)public static BackupSchedule get(String name, Output<String> id, BackupScheduleState state, CustomResourceOptions options)resources: _: type: bytepluscc:dns:BackupSchedule get: id: ${id}import {
to = bytepluscc_dns_backup_schedule.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.
- Count
Limit int - Backup quantity limit.
- Schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- Zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- Count
Limit int - Backup quantity limit.
- Schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- Zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- count_
limit number - Backup quantity limit.
- schedule number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- count
Limit Integer - Backup quantity limit.
- schedule Integer
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid String
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- count
Limit number - Backup quantity limit.
- schedule number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid string
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- count_
limit int - Backup quantity limit.
- schedule int
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid str
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
- count
Limit Number - Backup quantity limit.
- schedule Number
- Backup plan: - 0: Disable automatic backup. - 1: Automatically back up every hour. - 2: Automatically back up every day. - 3: Automatically back up every month.
- zid String
- You need to obtain the ID of the domain name for the backup plan. You can call the ListZones API to get the domain name ID.
Import
$ pulumi import bytepluscc:dns/backupSchedule:BackupSchedule example "zid"
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, Jul 20, 2026 by Byteplus