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
LookupEtcdBackupin 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 Dict[str, Any]
(Computed) Annotations for Etcd Backup object (map)
- backup_
config Dict[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 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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.