getEtcdBackup
Use this data source to retrieve information about a Rancher v2 etcd backup.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetEtcdBackup.InvokeAsync(new Rancher2.GetEtcdBackupArgs
{
ClusterId = "<CLUSTER_ID>",
Name = "foo",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupEtcdBackup(ctx, &rancher2.LookupEtcdBackupArgs{
ClusterId: "<CLUSTER_ID>",
Name: "foo",
}, nil)
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_etcd_backup(cluster_id="<CLUSTER_ID>",
name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getEtcdBackup({
clusterId: "<CLUSTER_ID>",
name: "foo",
}, { async: true }));
Using getEtcdBackup
function getEtcdBackup(args: GetEtcdBackupArgs, opts?: InvokeOptions): Promise<GetEtcdBackupResult>
def get_etcd_backup(cluster_id: Optional[str] = None, name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetEtcdBackupResult
func LookupEtcdBackup(ctx *Context, args *LookupEtcdBackupArgs, opts ...InvokeOption) (*LookupEtcdBackupResult, error)
Note: This function is named
LookupEtcdBackup
in the Go SDK.
public static class GetEtcdBackup {
public static Task<GetEtcdBackupResult> InvokeAsync(GetEtcdBackupArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- cluster_
id str Cluster ID to config Etcd Backup (string)
- name str
The name of the Etcd Backup (string)
getEtcdBackup Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations for Etcd Backup object (map)
- Backup
Config GetEtcd Backup Backup Config (Computed) Backup config for etcd backup (list maxitems:1)
- Cluster
Id string - Filename string
(Computed) Filename of the Etcd Backup (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels for Etcd Backup object (map)
- Manual bool
(Computed) Manual execution of the Etcd Backup. Default
false
(bool)- Name string
- Namespace
Id string (Computed) Description for the Etcd Backup (string)
- Annotations map[string]interface{}
(Computed) Annotations for Etcd Backup object (map)
- Backup
Config GetEtcd Backup Backup Config (Computed) Backup config for etcd backup (list maxitems:1)
- Cluster
Id string - Filename string
(Computed) Filename of the Etcd Backup (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels for Etcd Backup object (map)
- Manual bool
(Computed) Manual execution of the Etcd Backup. Default
false
(bool)- Name string
- Namespace
Id string (Computed) Description for the Etcd Backup (string)
- annotations {[key: string]: any}
(Computed) Annotations for Etcd Backup object (map)
- backup
Config GetEtcd Backup Backup Config (Computed) Backup config for etcd backup (list maxitems:1)
- cluster
Id string - filename string
(Computed) Filename of the Etcd Backup (string)
- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels for Etcd Backup object (map)
- manual boolean
(Computed) Manual execution of the Etcd Backup. Default
false
(bool)- name string
- namespace
Id string (Computed) Description for the Etcd Backup (string)
- annotations Mapping[str, Any]
(Computed) Annotations for Etcd Backup object (map)
- backup_
config GetEtcd Backup Backup Config (Computed) Backup config for etcd backup (list maxitems:1)
- cluster_
id str - filename str
(Computed) Filename of the Etcd Backup (string)
- id str
The provider-assigned unique ID for this managed resource.
- labels Mapping[str, Any]
(Computed) Labels for Etcd Backup object (map)
- manual bool
(Computed) Manual execution of the Etcd Backup. Default
false
(bool)- name str
- namespace_
id str (Computed) Description for the Etcd Backup (string)
Supporting Types
GetEtcdBackupBackupConfig
- enabled boolean
- interval
Hours number - retention number
- s3Backup
Config GetEtcd Backup Backup Config S3Backup Config - safe
Timestamp boolean
GetEtcdBackupBackupConfigS3BackupConfig
- bucket_
name str - endpoint str
- access_
key str - custom_
ca str - folder str
- region str
- secret_
key str
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.