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",
        }));
    }

}

Coming soon!

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>
function  get_etcd_backup(cluster_id=None, name=None, opts=None)
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:

ClusterId string

Cluster ID to config Etcd Backup (string)

Name string

The name of the Etcd Backup (string)

ClusterId string

Cluster ID to config Etcd Backup (string)

Name string

The name of the Etcd Backup (string)

clusterId string

Cluster ID to config Etcd Backup (string)

name string

The name of the Etcd Backup (string)

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)

BackupConfig GetEtcdBackupBackupConfig

(Computed) Backup config for etcd backup (list maxitems:1)

ClusterId 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
NamespaceId string

(Computed) Description for the Etcd Backup (string)

Annotations map[string]interface{}

(Computed) Annotations for Etcd Backup object (map)

BackupConfig GetEtcdBackupBackupConfig

(Computed) Backup config for etcd backup (list maxitems:1)

ClusterId 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
NamespaceId string

(Computed) Description for the Etcd Backup (string)

annotations {[key: string]: any}

(Computed) Annotations for Etcd Backup object (map)

backupConfig GetEtcdBackupBackupConfig

(Computed) Backup config for etcd backup (list maxitems:1)

clusterId 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
namespaceId string

(Computed) Description for the Etcd Backup (string)

annotations Dict[str, Any]

(Computed) Annotations for Etcd Backup object (map)

backup_config Dict[GetEtcdBackupBackupConfig]

(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 Dict[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

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Enabled bool
IntervalHours int
Retention int
S3BackupConfig GetEtcdBackupBackupConfigS3BackupConfigArgs
SafeTimestamp bool
Enabled bool
IntervalHours int
Retention int
S3BackupConfig GetEtcdBackupBackupConfigS3BackupConfig
SafeTimestamp bool
enabled boolean
intervalHours number
retention number
s3BackupConfig GetEtcdBackupBackupConfigS3BackupConfig
safeTimestamp boolean
enabled bool
intervalHours float
retention float
s3BackupConfig Dict[GetEtcdBackupBackupConfigS3BackupConfig]
safeTimestamp bool

GetEtcdBackupBackupConfigS3BackupConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

BucketName string
Endpoint string
AccessKey string
CustomCa string
Folder string
Region string
SecretKey string
BucketName string
Endpoint string
AccessKey string
CustomCa string
Folder string
Region string
SecretKey string
bucketName string
endpoint string
accessKey string
customCa string
folder string
region string
secretKey string
bucketName str
endpoint str
access_key str
customCa 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.