Alibaba Cloud v3.38.0, Jun 2 23
Alibaba Cloud v3.38.0, Jun 2 23
alicloud.dbs.BackupPlan
Explore with Pulumi AI
Provides a DBS Backup Plan resource.
For information about DBS Backup Plan and how to use it, see What is Backup Plan.
NOTE: Available in v1.185.0+.
Create BackupPlan Resource
new BackupPlan(name: string, args: BackupPlanArgs, opts?: CustomResourceOptions);
@overload
def BackupPlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_gateway_id: Optional[str] = None,
backup_log_interval_seconds: Optional[int] = None,
backup_method: Optional[str] = None,
backup_objects: Optional[str] = None,
backup_period: Optional[str] = None,
backup_plan_name: Optional[str] = None,
backup_rate_limit: Optional[str] = None,
backup_retention_period: Optional[int] = None,
backup_speed_limit: Optional[str] = None,
backup_start_time: Optional[str] = None,
backup_storage_type: Optional[str] = None,
backup_strategy_type: Optional[str] = None,
cross_aliyun_id: Optional[str] = None,
cross_role_name: Optional[str] = None,
database_region: Optional[str] = None,
database_type: Optional[str] = None,
duplication_archive_period: Optional[int] = None,
duplication_infrequent_access_period: Optional[int] = None,
enable_backup_log: Optional[bool] = None,
instance_class: Optional[str] = None,
instance_type: Optional[str] = None,
oss_bucket_name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
resource_group_id: Optional[str] = None,
source_endpoint_database_name: Optional[str] = None,
source_endpoint_instance_id: Optional[str] = None,
source_endpoint_instance_type: Optional[str] = None,
source_endpoint_ip: Optional[str] = None,
source_endpoint_oracle_sid: Optional[str] = None,
source_endpoint_password: Optional[str] = None,
source_endpoint_port: Optional[int] = None,
source_endpoint_region: Optional[str] = None,
source_endpoint_sid: Optional[str] = None,
source_endpoint_user_name: Optional[str] = None,
status: Optional[str] = None,
storage_region: Optional[str] = None,
used_time: Optional[int] = None)
@overload
def BackupPlan(resource_name: str,
args: BackupPlanArgs,
opts: Optional[ResourceOptions] = None)
func NewBackupPlan(ctx *Context, name string, args BackupPlanArgs, opts ...ResourceOption) (*BackupPlan, error)
public BackupPlan(string name, BackupPlanArgs args, CustomResourceOptions? opts = null)
public BackupPlan(String name, BackupPlanArgs args)
public BackupPlan(String name, BackupPlanArgs args, CustomResourceOptions options)
type: alicloud:dbs:BackupPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupPlanArgs
- 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 BackupPlanArgs
- 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 BackupPlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupPlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupPlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BackupPlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BackupPlan resource accepts the following input properties:
- Backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- Backup
Plan stringName The name of the resource.
- Database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- Instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- Source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- Backup
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- Backup
Log intInterval Seconds The backup log interval seconds.
- Backup
Objects string The backup object.
- Backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- Backup
Rate stringLimit The backup rate limit.
- Backup
Retention intPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- Backup
Speed stringLimit The backup speed limit.
- Backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- Backup
Storage stringType Built-in storage type, Valid values:
system
.- Backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- Cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- Cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- Database
Region string The database region.
- Duplication
Archive intPeriod The storage time for conversion to archive cold standby is 365 days by default.
- Duplication
Infrequent intAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- Enable
Backup boolLog Whether to enable incremental log Backup.
- Instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- Oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- Payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- Period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- Resource
Group stringId The ID of the resource group.
- Source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- Source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- Source
Endpoint stringIp The source endpoint ip.
- Source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Source
Endpoint intPort The source endpoint port.
- Source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- Source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Status string
The status of the resource. Valid values:
pause
,running
.- Storage
Region string The storage region.
- Used
Time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- Backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- Backup
Plan stringName The name of the resource.
- Database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- Instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- Source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- Backup
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- Backup
Log intInterval Seconds The backup log interval seconds.
- Backup
Objects string The backup object.
- Backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- Backup
Rate stringLimit The backup rate limit.
- Backup
Retention intPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- Backup
Speed stringLimit The backup speed limit.
- Backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- Backup
Storage stringType Built-in storage type, Valid values:
system
.- Backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- Cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- Cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- Database
Region string The database region.
- Duplication
Archive intPeriod The storage time for conversion to archive cold standby is 365 days by default.
- Duplication
Infrequent intAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- Enable
Backup boolLog Whether to enable incremental log Backup.
- Instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- Oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- Payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- Period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- Resource
Group stringId The ID of the resource group.
- Source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- Source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- Source
Endpoint stringIp The source endpoint ip.
- Source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Source
Endpoint intPort The source endpoint port.
- Source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- Source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Status string
The status of the resource. Valid values:
pause
,running
.- Storage
Region string The storage region.
- Used
Time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Method String Backup method. Valid values:
duplication
,logical
,physical
.- backup
Plan StringName The name of the resource.
- database
Type String Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- instance
Class String The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- source
Endpoint StringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- backup
Gateway StringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log IntegerInterval Seconds The backup log interval seconds.
- backup
Objects String The backup object.
- backup
Period String Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Rate StringLimit The backup rate limit.
- backup
Retention IntegerPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed StringLimit The backup speed limit.
- backup
Start StringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage StringType Built-in storage type, Valid values:
system
.- backup
Strategy StringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun StringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role StringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region String The database region.
- duplication
Archive IntegerPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent IntegerAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup BooleanLog Whether to enable incremental log Backup.
- instance
Type String The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket StringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type String The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period String
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group StringId The ID of the resource group.
- source
Endpoint StringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint StringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint StringIp The source endpoint ip.
- source
Endpoint StringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint IntegerPort The source endpoint port.
- source
Endpoint StringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint StringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status String
The status of the resource. Valid values:
pause
,running
.- storage
Region String The storage region.
- used
Time Integer Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- backup
Plan stringName The name of the resource.
- database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- backup
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log numberInterval Seconds The backup log interval seconds.
- backup
Objects string The backup object.
- backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Rate stringLimit The backup rate limit.
- backup
Retention numberPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed stringLimit The backup speed limit.
- backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage stringType Built-in storage type, Valid values:
system
.- backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region string The database region.
- duplication
Archive numberPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent numberAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup booleanLog Whether to enable incremental log Backup.
- instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group stringId The ID of the resource group.
- source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint stringIp The source endpoint ip.
- source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint numberPort The source endpoint port.
- source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status string
The status of the resource. Valid values:
pause
,running
.- storage
Region string The storage region.
- used
Time number Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup_
method str Backup method. Valid values:
duplication
,logical
,physical
.- backup_
plan_ strname The name of the resource.
- database_
type str Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- instance_
class str The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- source_
endpoint_ strinstance_ type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- backup_
gateway_ strid The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup_
log_ intinterval_ seconds The backup log interval seconds.
- backup_
objects str The backup object.
- backup_
period str Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup_
rate_ strlimit The backup rate limit.
- backup_
retention_ intperiod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup_
speed_ strlimit The backup speed limit.
- backup_
start_ strtime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup_
storage_ strtype Built-in storage type, Valid values:
system
.- backup_
strategy_ strtype The backup strategy type. Valid values:
simple
,manual
.- cross_
aliyun_ strid The UID that is backed up across Alibaba cloud accounts.
- cross_
role_ strname The name of the RAM role that is backed up across Alibaba cloud accounts.
- database_
region str The database region.
- duplication_
archive_ intperiod The storage time for conversion to archive cold standby is 365 days by default.
- duplication_
infrequent_ intaccess_ period The storage time is converted to low-frequency access. The default time is 180 days.
- enable_
backup_ boollog Whether to enable incremental log Backup.
- instance_
type str The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss_
bucket_ strname The OSS Bucket name. The system automatically generates a new name by default.
- payment_
type str The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period str
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource_
group_ strid The ID of the resource group.
- source_
endpoint_ strdatabase_ name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source_
endpoint_ strinstance_ id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source_
endpoint_ strip The source endpoint ip.
- source_
endpoint_ stroracle_ sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source_
endpoint_ strpassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source_
endpoint_ intport The source endpoint port.
- source_
endpoint_ strregion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source_
endpoint_ strsid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source_
endpoint_ struser_ name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status str
The status of the resource. Valid values:
pause
,running
.- storage_
region str The storage region.
- used_
time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Method String Backup method. Valid values:
duplication
,logical
,physical
.- backup
Plan StringName The name of the resource.
- database
Type String Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- instance
Class String The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- source
Endpoint StringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- backup
Gateway StringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log NumberInterval Seconds The backup log interval seconds.
- backup
Objects String The backup object.
- backup
Period String Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Rate StringLimit The backup rate limit.
- backup
Retention NumberPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed StringLimit The backup speed limit.
- backup
Start StringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage StringType Built-in storage type, Valid values:
system
.- backup
Strategy StringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun StringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role StringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region String The database region.
- duplication
Archive NumberPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent NumberAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup BooleanLog Whether to enable incremental log Backup.
- instance
Type String The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket StringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type String The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period String
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group StringId The ID of the resource group.
- source
Endpoint StringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint StringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint StringIp The source endpoint ip.
- source
Endpoint StringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint NumberPort The source endpoint port.
- source
Endpoint StringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint StringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status String
The status of the resource. Valid values:
pause
,running
.- storage
Region String The storage region.
- used
Time Number Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupPlan resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing BackupPlan Resource
Get an existing BackupPlan 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?: BackupPlanState, opts?: CustomResourceOptions): BackupPlan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_gateway_id: Optional[str] = None,
backup_log_interval_seconds: Optional[int] = None,
backup_method: Optional[str] = None,
backup_objects: Optional[str] = None,
backup_period: Optional[str] = None,
backup_plan_name: Optional[str] = None,
backup_rate_limit: Optional[str] = None,
backup_retention_period: Optional[int] = None,
backup_speed_limit: Optional[str] = None,
backup_start_time: Optional[str] = None,
backup_storage_type: Optional[str] = None,
backup_strategy_type: Optional[str] = None,
cross_aliyun_id: Optional[str] = None,
cross_role_name: Optional[str] = None,
database_region: Optional[str] = None,
database_type: Optional[str] = None,
duplication_archive_period: Optional[int] = None,
duplication_infrequent_access_period: Optional[int] = None,
enable_backup_log: Optional[bool] = None,
instance_class: Optional[str] = None,
instance_type: Optional[str] = None,
oss_bucket_name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
resource_group_id: Optional[str] = None,
source_endpoint_database_name: Optional[str] = None,
source_endpoint_instance_id: Optional[str] = None,
source_endpoint_instance_type: Optional[str] = None,
source_endpoint_ip: Optional[str] = None,
source_endpoint_oracle_sid: Optional[str] = None,
source_endpoint_password: Optional[str] = None,
source_endpoint_port: Optional[int] = None,
source_endpoint_region: Optional[str] = None,
source_endpoint_sid: Optional[str] = None,
source_endpoint_user_name: Optional[str] = None,
status: Optional[str] = None,
storage_region: Optional[str] = None,
used_time: Optional[int] = None) -> BackupPlan
func GetBackupPlan(ctx *Context, name string, id IDInput, state *BackupPlanState, opts ...ResourceOption) (*BackupPlan, error)
public static BackupPlan Get(string name, Input<string> id, BackupPlanState? state, CustomResourceOptions? opts = null)
public static BackupPlan get(String name, Output<String> id, BackupPlanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- Backup
Log intInterval Seconds The backup log interval seconds.
- Backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- Backup
Objects string The backup object.
- Backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- Backup
Plan stringName The name of the resource.
- Backup
Rate stringLimit The backup rate limit.
- Backup
Retention intPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- Backup
Speed stringLimit The backup speed limit.
- Backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- Backup
Storage stringType Built-in storage type, Valid values:
system
.- Backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- Cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- Cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- Database
Region string The database region.
- Database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- Duplication
Archive intPeriod The storage time for conversion to archive cold standby is 365 days by default.
- Duplication
Infrequent intAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- Enable
Backup boolLog Whether to enable incremental log Backup.
- Instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- Instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- Oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- Payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- Period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- Resource
Group stringId The ID of the resource group.
- Source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- Source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- Source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- Source
Endpoint stringIp The source endpoint ip.
- Source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Source
Endpoint intPort The source endpoint port.
- Source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- Source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Status string
The status of the resource. Valid values:
pause
,running
.- Storage
Region string The storage region.
- Used
Time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- Backup
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- Backup
Log intInterval Seconds The backup log interval seconds.
- Backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- Backup
Objects string The backup object.
- Backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- Backup
Plan stringName The name of the resource.
- Backup
Rate stringLimit The backup rate limit.
- Backup
Retention intPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- Backup
Speed stringLimit The backup speed limit.
- Backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- Backup
Storage stringType Built-in storage type, Valid values:
system
.- Backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- Cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- Cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- Database
Region string The database region.
- Database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- Duplication
Archive intPeriod The storage time for conversion to archive cold standby is 365 days by default.
- Duplication
Infrequent intAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- Enable
Backup boolLog Whether to enable incremental log Backup.
- Instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- Instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- Oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- Payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- Period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- Resource
Group stringId The ID of the resource group.
- Source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- Source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- Source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- Source
Endpoint stringIp The source endpoint ip.
- Source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Source
Endpoint intPort The source endpoint port.
- Source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- Source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- Source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- Status string
The status of the resource. Valid values:
pause
,running
.- Storage
Region string The storage region.
- Used
Time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Gateway StringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log IntegerInterval Seconds The backup log interval seconds.
- backup
Method String Backup method. Valid values:
duplication
,logical
,physical
.- backup
Objects String The backup object.
- backup
Period String Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Plan StringName The name of the resource.
- backup
Rate StringLimit The backup rate limit.
- backup
Retention IntegerPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed StringLimit The backup speed limit.
- backup
Start StringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage StringType Built-in storage type, Valid values:
system
.- backup
Strategy StringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun StringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role StringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region String The database region.
- database
Type String Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- duplication
Archive IntegerPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent IntegerAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup BooleanLog Whether to enable incremental log Backup.
- instance
Class String The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- instance
Type String The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket StringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type String The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period String
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group StringId The ID of the resource group.
- source
Endpoint StringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint StringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint StringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- source
Endpoint StringIp The source endpoint ip.
- source
Endpoint StringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint IntegerPort The source endpoint port.
- source
Endpoint StringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint StringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status String
The status of the resource. Valid values:
pause
,running
.- storage
Region String The storage region.
- used
Time Integer Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Gateway stringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log numberInterval Seconds The backup log interval seconds.
- backup
Method string Backup method. Valid values:
duplication
,logical
,physical
.- backup
Objects string The backup object.
- backup
Period string Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Plan stringName The name of the resource.
- backup
Rate stringLimit The backup rate limit.
- backup
Retention numberPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed stringLimit The backup speed limit.
- backup
Start stringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage stringType Built-in storage type, Valid values:
system
.- backup
Strategy stringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun stringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role stringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region string The database region.
- database
Type string Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- duplication
Archive numberPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent numberAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup booleanLog Whether to enable incremental log Backup.
- instance
Class string The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- instance
Type string The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket stringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type string The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period string
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group stringId The ID of the resource group.
- source
Endpoint stringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint stringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint stringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- source
Endpoint stringIp The source endpoint ip.
- source
Endpoint stringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint stringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint numberPort The source endpoint port.
- source
Endpoint stringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint stringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint stringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status string
The status of the resource. Valid values:
pause
,running
.- storage
Region string The storage region.
- used
Time number Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup_
gateway_ strid The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup_
log_ intinterval_ seconds The backup log interval seconds.
- backup_
method str Backup method. Valid values:
duplication
,logical
,physical
.- backup_
objects str The backup object.
- backup_
period str Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup_
plan_ strname The name of the resource.
- backup_
rate_ strlimit The backup rate limit.
- backup_
retention_ intperiod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup_
speed_ strlimit The backup speed limit.
- backup_
start_ strtime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup_
storage_ strtype Built-in storage type, Valid values:
system
.- backup_
strategy_ strtype The backup strategy type. Valid values:
simple
,manual
.- cross_
aliyun_ strid The UID that is backed up across Alibaba cloud accounts.
- cross_
role_ strname The name of the RAM role that is backed up across Alibaba cloud accounts.
- database_
region str The database region.
- database_
type str Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- duplication_
archive_ intperiod The storage time for conversion to archive cold standby is 365 days by default.
- duplication_
infrequent_ intaccess_ period The storage time is converted to low-frequency access. The default time is 180 days.
- enable_
backup_ boollog Whether to enable incremental log Backup.
- instance_
class str The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- instance_
type str The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss_
bucket_ strname The OSS Bucket name. The system automatically generates a new name by default.
- payment_
type str The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period str
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource_
group_ strid The ID of the resource group.
- source_
endpoint_ strdatabase_ name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source_
endpoint_ strinstance_ id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source_
endpoint_ strinstance_ type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- source_
endpoint_ strip The source endpoint ip.
- source_
endpoint_ stroracle_ sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source_
endpoint_ strpassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source_
endpoint_ intport The source endpoint port.
- source_
endpoint_ strregion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source_
endpoint_ strsid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source_
endpoint_ struser_ name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status str
The status of the resource. Valid values:
pause
,running
.- storage_
region str The storage region.
- used_
time int Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
- backup
Gateway StringId The ID of the backup gateway. This parameter is required when the
source_endpoint_instance_type
isAgent
.- backup
Log NumberInterval Seconds The backup log interval seconds.
- backup
Method String Backup method. Valid values:
duplication
,logical
,physical
.- backup
Objects String The backup object.
- backup
Period String Full backup cycle, Valid values:
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. supports the selection of multiple fetch values, separated by English commas (,).- backup
Plan StringName The name of the resource.
- backup
Rate StringLimit The backup rate limit.
- backup
Retention NumberPeriod The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
- backup
Speed StringLimit The backup speed limit.
- backup
Start StringTime The start time of full Backup. The format is
<I> HH:mm</I>
Z(UTC time).- backup
Storage StringType Built-in storage type, Valid values:
system
.- backup
Strategy StringType The backup strategy type. Valid values:
simple
,manual
.- cross
Aliyun StringId The UID that is backed up across Alibaba cloud accounts.
- cross
Role StringName The name of the RAM role that is backed up across Alibaba cloud accounts.
- database
Region String The database region.
- database
Type String Database type. Valid values:
DRDS
,FIle
,MSSQL
,MariaDB
,MongoDB
,MySQL
,Oracle
,PPAS
,PostgreSQL
,Redis
.- duplication
Archive NumberPeriod The storage time for conversion to archive cold standby is 365 days by default.
- duplication
Infrequent NumberAccess Period The storage time is converted to low-frequency access. The default time is 180 days.
- enable
Backup BooleanLog Whether to enable incremental log Backup.
- instance
Class String The instance class. Valid values:
large
,medium
,micro
,small
,xlarge
.- instance
Type String The instance type. Valid values:
RDS
,PolarDB
,DDS
,Kvstore
,Other
.- oss
Bucket StringName The OSS Bucket name. The system automatically generates a new name by default.
- payment
Type String The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
.- period String
Specify that the prepaid instance is of the package year or monthly type. Valid values:
Month
,Year
.- resource
Group StringId The ID of the resource group.
- source
Endpoint StringDatabase Name The name of the database. This parameter is required when the
database_type
isPostgreSQL
orMongoDB
.- source
Endpoint StringInstance Id The ID of the database instance. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
, orExpress
.- source
Endpoint StringInstance Type The location of the database. Valid values:
RDS
,ECS
,Express
,Agent
,DDS
,Other
.- source
Endpoint StringIp The source endpoint ip.
- source
Endpoint StringOracle Sid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringPassword The source endpoint password. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- source
Endpoint NumberPort The source endpoint port.
- source
Endpoint StringRegion The region of the database. This parameter is required when the
source_endpoint_instance_type
isRDS
,ECS
,DDS
,Express
, orAgent
.- source
Endpoint StringSid Oracle SID name. This parameter is required when the
database_type
isOracle
.- source
Endpoint StringUser Name The source endpoint username. This parameter is not required when the
database_type
isRedis
, or when thesource_endpoint_instance_type
isAgent
and thedatabase_type
isMSSQL
. This parameter is required in other scenarios.- status String
The status of the resource. Valid values:
pause
,running
.- storage
Region String The storage region.
- used
Time Number Specify purchase duration. When the parameter
period
isYear
, theused_time
value is 1 to 9. When the parameterperiod
isMonth
, theused_time
value is 1 to 11.
Import
DBS Backup Plan can be imported using the id, e.g.
$ pulumi import alicloud:dbs/backupPlan:BackupPlan example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.