EtcdBackup
Import
Etcd Backup can be imported using the Rancher etcd backup ID
$ pulumi import rancher2:index/etcdBackup:EtcdBackup foo <ETCD_BACKUP_ID>
Create a EtcdBackup Resource
new EtcdBackup(name: string, args: EtcdBackupArgs, opts?: CustomResourceOptions);
def EtcdBackup(resource_name: str, opts: Optional[ResourceOptions] = None, annotations: Optional[Mapping[str, Any]] = None, backup_config: Optional[EtcdBackupBackupConfigArgs] = None, cluster_id: Optional[str] = None, filename: Optional[str] = None, labels: Optional[Mapping[str, Any]] = None, manual: Optional[bool] = None, name: Optional[str] = None, namespace_id: Optional[str] = None)
func NewEtcdBackup(ctx *Context, name string, args EtcdBackupArgs, opts ...ResourceOption) (*EtcdBackup, error)
public EtcdBackup(string name, EtcdBackupArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args EtcdBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EtcdBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EtcdBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
EtcdBackup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The EtcdBackup resource accepts the following input properties:
- Cluster
Id string Cluster ID to config Etcd Backup (string)
- Annotations Dictionary<string, object>
Annotations for Etcd Backup object (map)
- Backup
Config EtcdBackup Backup Config Args Backup config for etcd backup (list maxitems:1)
- Filename string
Filename of the Etcd Backup (string)
- Labels Dictionary<string, object>
Labels for Etcd Backup object (map)
- Manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- Name string
The name of the Etcd Backup (string)
- Namespace
Id string Description for the Etcd Backup (string)
- Cluster
Id string Cluster ID to config Etcd Backup (string)
- Annotations map[string]interface{}
Annotations for Etcd Backup object (map)
- Backup
Config EtcdBackup Backup Config Backup config for etcd backup (list maxitems:1)
- Filename string
Filename of the Etcd Backup (string)
- Labels map[string]interface{}
Labels for Etcd Backup object (map)
- Manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- Name string
The name of the Etcd Backup (string)
- Namespace
Id string Description for the Etcd Backup (string)
- cluster
Id string Cluster ID to config Etcd Backup (string)
- annotations {[key: string]: any}
Annotations for Etcd Backup object (map)
- backup
Config EtcdBackup Backup Config Backup config for etcd backup (list maxitems:1)
- filename string
Filename of the Etcd Backup (string)
- labels {[key: string]: any}
Labels for Etcd Backup object (map)
- manual boolean
Manual execution of the Etcd Backup. Default
false
(bool)- name string
The name of the Etcd Backup (string)
- namespace
Id string Description for the Etcd Backup (string)
- cluster_
id str Cluster ID to config Etcd Backup (string)
- annotations Mapping[str, Any]
Annotations for Etcd Backup object (map)
- backup_
config EtcdBackup Backup Config Args Backup config for etcd backup (list maxitems:1)
- filename str
Filename of the Etcd Backup (string)
- labels Mapping[str, Any]
Labels for Etcd Backup object (map)
- manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- name str
The name of the Etcd Backup (string)
- namespace_
id str Description for the Etcd Backup (string)
Outputs
All input properties are implicitly available as output properties. Additionally, the EtcdBackup 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 str
- The provider-assigned unique ID for this managed resource.
Look up an Existing EtcdBackup Resource
Get an existing EtcdBackup 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?: EtcdBackupState, opts?: CustomResourceOptions): EtcdBackup
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, annotations: Optional[Mapping[str, Any]] = None, backup_config: Optional[EtcdBackupBackupConfigArgs] = None, cluster_id: Optional[str] = None, filename: Optional[str] = None, labels: Optional[Mapping[str, Any]] = None, manual: Optional[bool] = None, name: Optional[str] = None, namespace_id: Optional[str] = None) -> EtcdBackup
func GetEtcdBackup(ctx *Context, name string, id IDInput, state *EtcdBackupState, opts ...ResourceOption) (*EtcdBackup, error)
public static EtcdBackup Get(string name, Input<string> id, EtcdBackupState? state, CustomResourceOptions? opts = null)
- 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.
The following state arguments are supported:
- Annotations Dictionary<string, object>
Annotations for Etcd Backup object (map)
- Backup
Config EtcdBackup Backup Config Args Backup config for etcd backup (list maxitems:1)
- Cluster
Id string Cluster ID to config Etcd Backup (string)
- Filename string
Filename of the Etcd Backup (string)
- Labels Dictionary<string, object>
Labels for Etcd Backup object (map)
- Manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- Name string
The name of the Etcd Backup (string)
- Namespace
Id string Description for the Etcd Backup (string)
- Annotations map[string]interface{}
Annotations for Etcd Backup object (map)
- Backup
Config EtcdBackup Backup Config Backup config for etcd backup (list maxitems:1)
- Cluster
Id string Cluster ID to config Etcd Backup (string)
- Filename string
Filename of the Etcd Backup (string)
- Labels map[string]interface{}
Labels for Etcd Backup object (map)
- Manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- Name string
The name of the Etcd Backup (string)
- Namespace
Id string Description for the Etcd Backup (string)
- annotations {[key: string]: any}
Annotations for Etcd Backup object (map)
- backup
Config EtcdBackup Backup Config Backup config for etcd backup (list maxitems:1)
- cluster
Id string Cluster ID to config Etcd Backup (string)
- filename string
Filename of the Etcd Backup (string)
- labels {[key: string]: any}
Labels for Etcd Backup object (map)
- manual boolean
Manual execution of the Etcd Backup. Default
false
(bool)- name string
The name of the Etcd Backup (string)
- namespace
Id string Description for the Etcd Backup (string)
- annotations Mapping[str, Any]
Annotations for Etcd Backup object (map)
- backup_
config EtcdBackup Backup Config Args Backup config for etcd backup (list maxitems:1)
- cluster_
id str Cluster ID to config Etcd Backup (string)
- filename str
Filename of the Etcd Backup (string)
- labels Mapping[str, Any]
Labels for Etcd Backup object (map)
- manual bool
Manual execution of the Etcd Backup. Default
false
(bool)- name str
The name of the Etcd Backup (string)
- namespace_
id str Description for the Etcd Backup (string)
Supporting Types
EtcdBackupBackupConfig
- Enabled bool
Enable etcd backup (bool)
- Interval
Hours int Interval hours for etcd backup. Default
12
(int)- Retention int
Retention for etcd backup. Default
6
(int)- S3Backup
Config EtcdBackup Backup Config S3Backup Config Args S3 config options for etcd backup. Valid for
imported
andrke
clusters. (list maxitems:1)- Safe
Timestamp bool
- Enabled bool
Enable etcd backup (bool)
- Interval
Hours int Interval hours for etcd backup. Default
12
(int)- Retention int
Retention for etcd backup. Default
6
(int)- S3Backup
Config EtcdBackup Backup Config S3Backup Config S3 config options for etcd backup. Valid for
imported
andrke
clusters. (list maxitems:1)- Safe
Timestamp bool
- enabled boolean
Enable etcd backup (bool)
- interval
Hours number Interval hours for etcd backup. Default
12
(int)- retention number
Retention for etcd backup. Default
6
(int)- s3Backup
Config EtcdBackup Backup Config S3Backup Config S3 config options for etcd backup. Valid for
imported
andrke
clusters. (list maxitems:1)- safe
Timestamp boolean
- enabled bool
Enable etcd backup (bool)
- interval_
hours int Interval hours for etcd backup. Default
12
(int)- retention int
Retention for etcd backup. Default
6
(int)- s3_
backup_ Etcdconfig Backup Backup Config S3Backup Config Args S3 config options for etcd backup. Valid for
imported
andrke
clusters. (list maxitems:1)- safe_
timestamp bool
EtcdBackupBackupConfigS3BackupConfig
- Bucket
Name string Bucket name for S3 service (string)
- Endpoint string
Endpoint for S3 service (string)
- Access
Key string Access key for S3 service (string)
- Custom
Ca string Base64 encoded custom CA for S3 service. Use filebase64(
) for encoding file. Available from Rancher v2.2.5 (string) - Folder string
Folder for S3 service. Available from Rancher v2.2.7 (string)
- Region string
Region for S3 service (string)
- Secret
Key string Secret key for S3 service (string)
- Bucket
Name string Bucket name for S3 service (string)
- Endpoint string
Endpoint for S3 service (string)
- Access
Key string Access key for S3 service (string)
- Custom
Ca string Base64 encoded custom CA for S3 service. Use filebase64(
) for encoding file. Available from Rancher v2.2.5 (string) - Folder string
Folder for S3 service. Available from Rancher v2.2.7 (string)
- Region string
Region for S3 service (string)
- Secret
Key string Secret key for S3 service (string)
- bucket
Name string Bucket name for S3 service (string)
- endpoint string
Endpoint for S3 service (string)
- access
Key string Access key for S3 service (string)
- custom
Ca string Base64 encoded custom CA for S3 service. Use filebase64(
) for encoding file. Available from Rancher v2.2.5 (string) - folder string
Folder for S3 service. Available from Rancher v2.2.7 (string)
- region string
Region for S3 service (string)
- secret
Key string Secret key for S3 service (string)
- bucket_
name str Bucket name for S3 service (string)
- endpoint str
Endpoint for S3 service (string)
- access_
key str Access key for S3 service (string)
- custom_
ca str Base64 encoded custom CA for S3 service. Use filebase64(
) for encoding file. Available from Rancher v2.2.5 (string) - folder str
Folder for S3 service. Available from Rancher v2.2.7 (string)
- region str
Region for S3 service (string)
- secret_
key str Secret key for S3 service (string)
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.