Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

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:

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 Mapping[str, Any]

(Computed) Annotations for Etcd Backup object (map)

backup_config 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 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

GetEtcdBackupBackupConfigS3BackupConfig

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

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.