hbr

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type EcsBackupClient

type EcsBackupClient struct {
	pulumi.CustomResourceState

	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringOutput `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringOutput `pulumi:"dataProxySetting"`
	// The ID of ECS instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringOutput `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringOutput `pulumi:"maxWorker"`
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringOutput `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringOutput `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringOutput `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringOutput `pulumi:"proxyUser"`
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringOutput `pulumi:"status"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolOutput `pulumi:"useHttps"`
}

Provides a Hybrid Backup Recovery (HBR) Ecs Backup Client resource.

For information about Hybrid Backup Recovery (HBR) Ecs Backup Client and how to use it, see [What is Ecs Backup Client](https://www.alibabacloud.com/help/doc-detail/186570.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{
			NameRegex: pulumi.StringRef("ecs_instance_name"),
			Status:    pulumi.StringRef("Running"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewEcsBackupClient(ctx, "example", &hbr.EcsBackupClientArgs{
			InstanceId:       pulumi.String(_default.Instances[0].Id),
			UseHttps:         pulumi.Bool(false),
			DataNetworkType:  pulumi.String("PUBLIC"),
			MaxCpuCore:       pulumi.String("2"),
			MaxWorker:        pulumi.String("4"),
			DataProxySetting: pulumi.String("USE_CONTROL_PROXY"),
			ProxyHost:        pulumi.String("192.168.11.101"),
			ProxyPort:        pulumi.String("80"),
			ProxyUser:        pulumi.String("user"),
			ProxyPassword:    pulumi.String("password"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Notice

> **Note:** Please read the following precautions carefully before deleting a client: 1. You cannot delete active clients that have received heartbeat packets within one hour. 2. You can make the client inactive by change the status of client to `STOPPED`. 3. The resources bound to the client will be deleted in cascade, including:

  • Backup plan
  • Backup task (Running in the background)
  • Snapshot

## Import

Hybrid Backup Recovery (HBR) Ecs Backup Client can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/ecsBackupClient:EcsBackupClient example <id>

```

func GetEcsBackupClient

func GetEcsBackupClient(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EcsBackupClientState, opts ...pulumi.ResourceOption) (*EcsBackupClient, error)

GetEcsBackupClient gets an existing EcsBackupClient resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEcsBackupClient

func NewEcsBackupClient(ctx *pulumi.Context,
	name string, args *EcsBackupClientArgs, opts ...pulumi.ResourceOption) (*EcsBackupClient, error)

NewEcsBackupClient registers a new resource with the given unique name, arguments, and options.

func (*EcsBackupClient) ElementType

func (*EcsBackupClient) ElementType() reflect.Type

func (*EcsBackupClient) ToEcsBackupClientOutput

func (i *EcsBackupClient) ToEcsBackupClientOutput() EcsBackupClientOutput

func (*EcsBackupClient) ToEcsBackupClientOutputWithContext

func (i *EcsBackupClient) ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput

type EcsBackupClientArgs

type EcsBackupClientArgs struct {
	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringPtrInput
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringInput
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringPtrInput
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringPtrInput
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringPtrInput
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringPtrInput
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringPtrInput
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringPtrInput
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringPtrInput
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
}

The set of arguments for constructing a EcsBackupClient resource.

func (EcsBackupClientArgs) ElementType

func (EcsBackupClientArgs) ElementType() reflect.Type

type EcsBackupClientArray

type EcsBackupClientArray []EcsBackupClientInput

func (EcsBackupClientArray) ElementType

func (EcsBackupClientArray) ElementType() reflect.Type

func (EcsBackupClientArray) ToEcsBackupClientArrayOutput

func (i EcsBackupClientArray) ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput

func (EcsBackupClientArray) ToEcsBackupClientArrayOutputWithContext

func (i EcsBackupClientArray) ToEcsBackupClientArrayOutputWithContext(ctx context.Context) EcsBackupClientArrayOutput

type EcsBackupClientArrayInput

type EcsBackupClientArrayInput interface {
	pulumi.Input

	ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput
	ToEcsBackupClientArrayOutputWithContext(context.Context) EcsBackupClientArrayOutput
}

EcsBackupClientArrayInput is an input type that accepts EcsBackupClientArray and EcsBackupClientArrayOutput values. You can construct a concrete instance of `EcsBackupClientArrayInput` via:

EcsBackupClientArray{ EcsBackupClientArgs{...} }

type EcsBackupClientArrayOutput

type EcsBackupClientArrayOutput struct{ *pulumi.OutputState }

func (EcsBackupClientArrayOutput) ElementType

func (EcsBackupClientArrayOutput) ElementType() reflect.Type

func (EcsBackupClientArrayOutput) Index

func (EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutput

func (o EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput

func (EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutputWithContext

func (o EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutputWithContext(ctx context.Context) EcsBackupClientArrayOutput

type EcsBackupClientInput

type EcsBackupClientInput interface {
	pulumi.Input

	ToEcsBackupClientOutput() EcsBackupClientOutput
	ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput
}

type EcsBackupClientMap

type EcsBackupClientMap map[string]EcsBackupClientInput

func (EcsBackupClientMap) ElementType

func (EcsBackupClientMap) ElementType() reflect.Type

func (EcsBackupClientMap) ToEcsBackupClientMapOutput

func (i EcsBackupClientMap) ToEcsBackupClientMapOutput() EcsBackupClientMapOutput

func (EcsBackupClientMap) ToEcsBackupClientMapOutputWithContext

func (i EcsBackupClientMap) ToEcsBackupClientMapOutputWithContext(ctx context.Context) EcsBackupClientMapOutput

type EcsBackupClientMapInput

type EcsBackupClientMapInput interface {
	pulumi.Input

	ToEcsBackupClientMapOutput() EcsBackupClientMapOutput
	ToEcsBackupClientMapOutputWithContext(context.Context) EcsBackupClientMapOutput
}

EcsBackupClientMapInput is an input type that accepts EcsBackupClientMap and EcsBackupClientMapOutput values. You can construct a concrete instance of `EcsBackupClientMapInput` via:

EcsBackupClientMap{ "key": EcsBackupClientArgs{...} }

type EcsBackupClientMapOutput

type EcsBackupClientMapOutput struct{ *pulumi.OutputState }

func (EcsBackupClientMapOutput) ElementType

func (EcsBackupClientMapOutput) ElementType() reflect.Type

func (EcsBackupClientMapOutput) MapIndex

func (EcsBackupClientMapOutput) ToEcsBackupClientMapOutput

func (o EcsBackupClientMapOutput) ToEcsBackupClientMapOutput() EcsBackupClientMapOutput

func (EcsBackupClientMapOutput) ToEcsBackupClientMapOutputWithContext

func (o EcsBackupClientMapOutput) ToEcsBackupClientMapOutputWithContext(ctx context.Context) EcsBackupClientMapOutput

type EcsBackupClientOutput

type EcsBackupClientOutput struct{ *pulumi.OutputState }

func (EcsBackupClientOutput) DataNetworkType

func (o EcsBackupClientOutput) DataNetworkType() pulumi.StringOutput

The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.

func (EcsBackupClientOutput) DataProxySetting

func (o EcsBackupClientOutput) DataProxySetting() pulumi.StringOutput

The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.

func (EcsBackupClientOutput) ElementType

func (EcsBackupClientOutput) ElementType() reflect.Type

func (EcsBackupClientOutput) InstanceId

func (o EcsBackupClientOutput) InstanceId() pulumi.StringOutput

The ID of ECS instance.

func (EcsBackupClientOutput) MaxCpuCore

func (o EcsBackupClientOutput) MaxCpuCore() pulumi.StringOutput

The number of CPU cores used by a single backup task, 0 means no restrictions.

func (EcsBackupClientOutput) MaxWorker

The number of concurrent jobs for a single backup task, 0 means no restrictions.

func (EcsBackupClientOutput) ProxyHost

Custom data plane proxy server host address.

func (EcsBackupClientOutput) ProxyPassword

func (o EcsBackupClientOutput) ProxyPassword() pulumi.StringOutput

The password of custom data plane proxy server.

func (EcsBackupClientOutput) ProxyPort

Custom data plane proxy server host port.

func (EcsBackupClientOutput) ProxyUser

The username of custom data plane proxy server.

func (EcsBackupClientOutput) Status

Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.

func (EcsBackupClientOutput) ToEcsBackupClientOutput

func (o EcsBackupClientOutput) ToEcsBackupClientOutput() EcsBackupClientOutput

func (EcsBackupClientOutput) ToEcsBackupClientOutputWithContext

func (o EcsBackupClientOutput) ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput

func (EcsBackupClientOutput) UseHttps

Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.

type EcsBackupClientState

type EcsBackupClientState struct {
	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringPtrInput
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringPtrInput
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringPtrInput
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringPtrInput
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringPtrInput
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringPtrInput
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringPtrInput
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringPtrInput
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
}

func (EcsBackupClientState) ElementType

func (EcsBackupClientState) ElementType() reflect.Type

type EcsBackupPlan

type EcsBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// The detail of the backup plan.
	Detail pulumi.StringPtrOutput `pulumi:"detail"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsBackupPlanName pulumi.StringOutput `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrOutput `pulumi:"include"`
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayOutput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrOutput `pulumi:"speedLimit"`
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute update_paths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrOutput `pulumi:"updatePaths"`
	// The ID of Backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a HBR Ecs Backup Plan resource.

For information about HBR Ecs Backup Plan and how to use it, see [What is Ecs Backup Plan](https://www.alibabacloud.com/help/doc-detail/186574.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "valut-name"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultInstances, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{
			NameRegex: pulumi.StringRef("no-deleteing-hbr-ecs-backup-plan"),
			Status:    pulumi.StringRef("Running"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewEcsBackupPlan(ctx, "example", &hbr.EcsBackupPlanArgs{
			EcsBackupPlanName: pulumi.String("example_value"),
			InstanceId:        pulumi.String(defaultInstances.Instances[0].Id),
			VaultId:           defaultVault.ID(),
			Retention:         pulumi.String("1"),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			SpeedLimit:        pulumi.String("0:24:5120"),
			Paths: pulumi.StringArray{
				pulumi.String("/home"),
				pulumi.String("/var"),
			},
			Exclude: pulumi.String("  [\"/home/exclude\"]\n"),
			Include: pulumi.String("  [\"/home/include\"]\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Notice

**About Backup path rules:** 1. If there is no wildcard `*`, you can enter 8 items of path. 2. When using wildcard `*`, only one item of path can be input, and wildcards like `/*/*` are supported. 3. Each item of path only supports absolute paths, for example starting with `/`, `\`, `C:\`, `D:\`.

**About Restrictions:** 1. When using `VSS`: multiple paths, UNC paths, wildcards, and excluded files not supported. 2. When using `UNC`: VSS not supported, wildcards not supported, and files to be excluded are not supported.

**About include/exclude path rules:** 1. Supports up to 8 paths, including paths using wildcards `*`. 2. If the path does not contain `/`, then `*` matches multiple path names or file names, for example `*abc*` will match `/abc/`, `/d/eabcd/`, `/a/abc`; `*.txt` will match all files with an extension `.txt`. 3. If the path contains `/`, each `*` only matches a single-level path or file name. For example, `/a/*/*/` share will match `/a/b/c/share`, but not `/a/d/share`. 4. If the path ends with `/`, it means the folder matches. For example, `*tmp/` will match `/a/b/aaatmp/`, `/tmp/` and so on. 5. The path separator takes Linux system `/` as an example, if it is Windows system, please replace it with `\`.

## Import

HBR Ecs Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/ecsBackupPlan:EcsBackupPlan example <id>

```

func GetEcsBackupPlan

func GetEcsBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EcsBackupPlanState, opts ...pulumi.ResourceOption) (*EcsBackupPlan, error)

GetEcsBackupPlan gets an existing EcsBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEcsBackupPlan

func NewEcsBackupPlan(ctx *pulumi.Context,
	name string, args *EcsBackupPlanArgs, opts ...pulumi.ResourceOption) (*EcsBackupPlan, error)

NewEcsBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*EcsBackupPlan) ElementType

func (*EcsBackupPlan) ElementType() reflect.Type

func (*EcsBackupPlan) ToEcsBackupPlanOutput

func (i *EcsBackupPlan) ToEcsBackupPlanOutput() EcsBackupPlanOutput

func (*EcsBackupPlan) ToEcsBackupPlanOutputWithContext

func (i *EcsBackupPlan) ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput

type EcsBackupPlanArgs

type EcsBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The detail of the backup plan.
	Detail pulumi.StringPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsBackupPlanName pulumi.StringInput
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrInput
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrInput
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringInput
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrInput
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrInput
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute update_paths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a EcsBackupPlan resource.

func (EcsBackupPlanArgs) ElementType

func (EcsBackupPlanArgs) ElementType() reflect.Type

type EcsBackupPlanArray

type EcsBackupPlanArray []EcsBackupPlanInput

func (EcsBackupPlanArray) ElementType

func (EcsBackupPlanArray) ElementType() reflect.Type

func (EcsBackupPlanArray) ToEcsBackupPlanArrayOutput

func (i EcsBackupPlanArray) ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput

func (EcsBackupPlanArray) ToEcsBackupPlanArrayOutputWithContext

func (i EcsBackupPlanArray) ToEcsBackupPlanArrayOutputWithContext(ctx context.Context) EcsBackupPlanArrayOutput

type EcsBackupPlanArrayInput

type EcsBackupPlanArrayInput interface {
	pulumi.Input

	ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput
	ToEcsBackupPlanArrayOutputWithContext(context.Context) EcsBackupPlanArrayOutput
}

EcsBackupPlanArrayInput is an input type that accepts EcsBackupPlanArray and EcsBackupPlanArrayOutput values. You can construct a concrete instance of `EcsBackupPlanArrayInput` via:

EcsBackupPlanArray{ EcsBackupPlanArgs{...} }

type EcsBackupPlanArrayOutput

type EcsBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanArrayOutput) ElementType

func (EcsBackupPlanArrayOutput) ElementType() reflect.Type

func (EcsBackupPlanArrayOutput) Index

func (EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutput

func (o EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput

func (EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutputWithContext

func (o EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutputWithContext(ctx context.Context) EcsBackupPlanArrayOutput

type EcsBackupPlanInput

type EcsBackupPlanInput interface {
	pulumi.Input

	ToEcsBackupPlanOutput() EcsBackupPlanOutput
	ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput
}

type EcsBackupPlanMap

type EcsBackupPlanMap map[string]EcsBackupPlanInput

func (EcsBackupPlanMap) ElementType

func (EcsBackupPlanMap) ElementType() reflect.Type

func (EcsBackupPlanMap) ToEcsBackupPlanMapOutput

func (i EcsBackupPlanMap) ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput

func (EcsBackupPlanMap) ToEcsBackupPlanMapOutputWithContext

func (i EcsBackupPlanMap) ToEcsBackupPlanMapOutputWithContext(ctx context.Context) EcsBackupPlanMapOutput

type EcsBackupPlanMapInput

type EcsBackupPlanMapInput interface {
	pulumi.Input

	ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput
	ToEcsBackupPlanMapOutputWithContext(context.Context) EcsBackupPlanMapOutput
}

EcsBackupPlanMapInput is an input type that accepts EcsBackupPlanMap and EcsBackupPlanMapOutput values. You can construct a concrete instance of `EcsBackupPlanMapInput` via:

EcsBackupPlanMap{ "key": EcsBackupPlanArgs{...} }

type EcsBackupPlanMapOutput

type EcsBackupPlanMapOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanMapOutput) ElementType

func (EcsBackupPlanMapOutput) ElementType() reflect.Type

func (EcsBackupPlanMapOutput) MapIndex

func (EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutput

func (o EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput

func (EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutputWithContext

func (o EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutputWithContext(ctx context.Context) EcsBackupPlanMapOutput

type EcsBackupPlanOutput

type EcsBackupPlanOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanOutput) BackupType

func (o EcsBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (EcsBackupPlanOutput) CrossAccountRoleName

func (o EcsBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (EcsBackupPlanOutput) CrossAccountType

func (o EcsBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (EcsBackupPlanOutput) CrossAccountUserId

func (o EcsBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (EcsBackupPlanOutput) Detail

The detail of the backup plan.

func (EcsBackupPlanOutput) Disabled

func (o EcsBackupPlanOutput) Disabled() pulumi.BoolOutput

Whether to disable the backup task. Valid values: `true`, `false`.

func (EcsBackupPlanOutput) EcsBackupPlanName

func (o EcsBackupPlanOutput) EcsBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (EcsBackupPlanOutput) ElementType

func (EcsBackupPlanOutput) ElementType() reflect.Type

func (EcsBackupPlanOutput) Exclude

Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`

func (EcsBackupPlanOutput) Include

Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`

func (EcsBackupPlanOutput) InstanceId

func (o EcsBackupPlanOutput) InstanceId() pulumi.StringOutput

The ID of ECS instance. The ecs backup client must have been installed on the host.

func (EcsBackupPlanOutput) Options

Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.

func (EcsBackupPlanOutput) Paths

List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.

func (EcsBackupPlanOutput) Retention

func (o EcsBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (EcsBackupPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

func (EcsBackupPlanOutput) SpeedLimit

Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.

func (EcsBackupPlanOutput) ToEcsBackupPlanOutput

func (o EcsBackupPlanOutput) ToEcsBackupPlanOutput() EcsBackupPlanOutput

func (EcsBackupPlanOutput) ToEcsBackupPlanOutputWithContext

func (o EcsBackupPlanOutput) ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput

func (EcsBackupPlanOutput) UpdatePaths deprecated

func (o EcsBackupPlanOutput) UpdatePaths() pulumi.BoolPtrOutput

Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.

Deprecated: Attribute update_paths has been deprecated in v1.139.0+ and you do not need to set it anymore.

func (EcsBackupPlanOutput) VaultId

The ID of Backup vault.

type EcsBackupPlanState

type EcsBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The detail of the backup plan.
	Detail pulumi.StringPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsBackupPlanName pulumi.StringPtrInput
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrInput
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrInput
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringPtrInput
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrInput
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringPtrInput
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrInput
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute update_paths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringPtrInput
}

func (EcsBackupPlanState) ElementType

func (EcsBackupPlanState) ElementType() reflect.Type

type GetBackupJobsArgs

type GetBackupJobsArgs struct {
	Filters []GetBackupJobsFilter `pulumi:"filters"`
	// A list of Backup Job IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: `ASCEND`, `DESCEND`.
	SortDirection *string `pulumi:"sortDirection"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType string `pulumi:"sourceType"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getBackupJobs.

type GetBackupJobsFilter

type GetBackupJobsFilter struct {
	// The key of the field to filter. Valid values: `PlanId`, `VaultId`, `InstanceId`, `Bucket`, `FileSystemId`, `CompleteTime`.
	Key *string `pulumi:"key"`
	// The operator of the field to filter. Valid values: `EQUAL`, `NOT_EQUAL`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`, `IN`.
	Operator *string `pulumi:"operator"`
	// Set of values that are accepted for the given field.
	Values []string `pulumi:"values"`
}

type GetBackupJobsFilterArgs

type GetBackupJobsFilterArgs struct {
	// The key of the field to filter. Valid values: `PlanId`, `VaultId`, `InstanceId`, `Bucket`, `FileSystemId`, `CompleteTime`.
	Key pulumi.StringPtrInput `pulumi:"key"`
	// The operator of the field to filter. Valid values: `EQUAL`, `NOT_EQUAL`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`, `IN`.
	Operator pulumi.StringPtrInput `pulumi:"operator"`
	// Set of values that are accepted for the given field.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetBackupJobsFilterArgs) ElementType

func (GetBackupJobsFilterArgs) ElementType() reflect.Type

func (GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutput

func (i GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput

func (GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutputWithContext

func (i GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutputWithContext(ctx context.Context) GetBackupJobsFilterOutput

type GetBackupJobsFilterArray

type GetBackupJobsFilterArray []GetBackupJobsFilterInput

func (GetBackupJobsFilterArray) ElementType

func (GetBackupJobsFilterArray) ElementType() reflect.Type

func (GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutput

func (i GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput

func (GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutputWithContext

func (i GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutputWithContext(ctx context.Context) GetBackupJobsFilterArrayOutput

type GetBackupJobsFilterArrayInput

type GetBackupJobsFilterArrayInput interface {
	pulumi.Input

	ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput
	ToGetBackupJobsFilterArrayOutputWithContext(context.Context) GetBackupJobsFilterArrayOutput
}

GetBackupJobsFilterArrayInput is an input type that accepts GetBackupJobsFilterArray and GetBackupJobsFilterArrayOutput values. You can construct a concrete instance of `GetBackupJobsFilterArrayInput` via:

GetBackupJobsFilterArray{ GetBackupJobsFilterArgs{...} }

type GetBackupJobsFilterArrayOutput

type GetBackupJobsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsFilterArrayOutput) ElementType

func (GetBackupJobsFilterArrayOutput) Index

func (GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutput

func (o GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput

func (GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutputWithContext

func (o GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutputWithContext(ctx context.Context) GetBackupJobsFilterArrayOutput

type GetBackupJobsFilterInput

type GetBackupJobsFilterInput interface {
	pulumi.Input

	ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput
	ToGetBackupJobsFilterOutputWithContext(context.Context) GetBackupJobsFilterOutput
}

GetBackupJobsFilterInput is an input type that accepts GetBackupJobsFilterArgs and GetBackupJobsFilterOutput values. You can construct a concrete instance of `GetBackupJobsFilterInput` via:

GetBackupJobsFilterArgs{...}

type GetBackupJobsFilterOutput

type GetBackupJobsFilterOutput struct{ *pulumi.OutputState }

func (GetBackupJobsFilterOutput) ElementType

func (GetBackupJobsFilterOutput) ElementType() reflect.Type

func (GetBackupJobsFilterOutput) Key

The key of the field to filter. Valid values: `PlanId`, `VaultId`, `InstanceId`, `Bucket`, `FileSystemId`, `CompleteTime`.

func (GetBackupJobsFilterOutput) Operator

The operator of the field to filter. Valid values: `EQUAL`, `NOT_EQUAL`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`, `IN`.

func (GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutput

func (o GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput

func (GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutputWithContext

func (o GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutputWithContext(ctx context.Context) GetBackupJobsFilterOutput

func (GetBackupJobsFilterOutput) Values

Set of values that are accepted for the given field.

type GetBackupJobsJob

type GetBackupJobsJob struct {
	// The actual data volume of the backup task (After deduplication) . Unit byte.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of items in the backup task. (Currently only file backup is available).
	ActualItems string `pulumi:"actualItems"`
	// The name of backup job.
	BackJobName string `pulumi:"backJobName"`
	// The ID of the backup job.
	BackupJobId string `pulumi:"backupJobId"`
	// Backup type. Valid values: `COMPLETE`(full backup).
	BackupType string `pulumi:"backupType"`
	// The name of target OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The amount of backup data (Incremental). Unit byte.
	BytesDone string `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal string `pulumi:"bytesTotal"`
	// The completion time of backup job. UNIX time seconds.
	CompleteTime string `pulumi:"completeTime"`
	// The creation time of backup job. UNIX time seconds.
	CreateTime string `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountRoleName string `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountType string `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountUserId int `pulumi:"crossAccountUserId"`
	// Error message.
	ErrorMessage string `pulumi:"errorMessage"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude string `pulumi:"exclude"`
	// The ID of destination file system.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of the backup job.
	Id string `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include string `pulumi:"include"`
	// The ID of target ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// The number of items restore job recovered.
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal string `pulumi:"itemsTotal"`
	// File system creation time. UNIX time in seconds.
	NasCreateTime string                      `pulumi:"nasCreateTime"`
	OtsDetails    []GetBackupJobsJobOtsDetail `pulumi:"otsDetails"`
	// List of backup path. e.g. `["/home", "/var"]`.
	Paths []string `pulumi:"paths"`
	// The ID of a backup plan.
	PlanId string `pulumi:"planId"`
	// The prefix of Oss bucket files.
	Prefix string `pulumi:"prefix"`
	// Backup progress. The value is 100%*100.
	Progress string `pulumi:"progress"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType string `pulumi:"sourceType"`
	// The scheduled backup start time. UNIX time seconds.
	StartTime string `pulumi:"startTime"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status string `pulumi:"status"`
	// The update time of backup job. UNIX time seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetBackupJobsJobArgs

type GetBackupJobsJobArgs struct {
	// The actual data volume of the backup task (After deduplication) . Unit byte.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of items in the backup task. (Currently only file backup is available).
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// The name of backup job.
	BackJobName pulumi.StringInput `pulumi:"backJobName"`
	// The ID of the backup job.
	BackupJobId pulumi.StringInput `pulumi:"backupJobId"`
	// Backup type. Valid values: `COMPLETE`(full backup).
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of target OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The amount of backup data (Incremental). Unit byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The completion time of backup job. UNIX time seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The creation time of backup job. UNIX time seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountRoleName pulumi.StringInput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountType pulumi.StringInput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountUserId pulumi.IntInput `pulumi:"crossAccountUserId"`
	// Error message.
	ErrorMessage pulumi.StringInput `pulumi:"errorMessage"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringInput `pulumi:"exclude"`
	// The ID of destination file system.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of the backup job.
	Id pulumi.StringInput `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringInput `pulumi:"include"`
	// The ID of target ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The number of items restore job recovered.
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// File system creation time. UNIX time in seconds.
	NasCreateTime pulumi.StringInput                  `pulumi:"nasCreateTime"`
	OtsDetails    GetBackupJobsJobOtsDetailArrayInput `pulumi:"otsDetails"`
	// List of backup path. e.g. `["/home", "/var"]`.
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// The ID of a backup plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The prefix of Oss bucket files.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// Backup progress. The value is 100%*100.
	Progress pulumi.StringInput `pulumi:"progress"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The scheduled backup start time. UNIX time seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of backup job. UNIX time seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetBackupJobsJobArgs) ElementType

func (GetBackupJobsJobArgs) ElementType() reflect.Type

func (GetBackupJobsJobArgs) ToGetBackupJobsJobOutput

func (i GetBackupJobsJobArgs) ToGetBackupJobsJobOutput() GetBackupJobsJobOutput

func (GetBackupJobsJobArgs) ToGetBackupJobsJobOutputWithContext

func (i GetBackupJobsJobArgs) ToGetBackupJobsJobOutputWithContext(ctx context.Context) GetBackupJobsJobOutput

type GetBackupJobsJobArray

type GetBackupJobsJobArray []GetBackupJobsJobInput

func (GetBackupJobsJobArray) ElementType

func (GetBackupJobsJobArray) ElementType() reflect.Type

func (GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutput

func (i GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput

func (GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutputWithContext

func (i GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutputWithContext(ctx context.Context) GetBackupJobsJobArrayOutput

type GetBackupJobsJobArrayInput

type GetBackupJobsJobArrayInput interface {
	pulumi.Input

	ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput
	ToGetBackupJobsJobArrayOutputWithContext(context.Context) GetBackupJobsJobArrayOutput
}

GetBackupJobsJobArrayInput is an input type that accepts GetBackupJobsJobArray and GetBackupJobsJobArrayOutput values. You can construct a concrete instance of `GetBackupJobsJobArrayInput` via:

GetBackupJobsJobArray{ GetBackupJobsJobArgs{...} }

type GetBackupJobsJobArrayOutput

type GetBackupJobsJobArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobArrayOutput) ElementType

func (GetBackupJobsJobArrayOutput) Index

func (GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutput

func (o GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput

func (GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutputWithContext

func (o GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutputWithContext(ctx context.Context) GetBackupJobsJobArrayOutput

type GetBackupJobsJobInput

type GetBackupJobsJobInput interface {
	pulumi.Input

	ToGetBackupJobsJobOutput() GetBackupJobsJobOutput
	ToGetBackupJobsJobOutputWithContext(context.Context) GetBackupJobsJobOutput
}

GetBackupJobsJobInput is an input type that accepts GetBackupJobsJobArgs and GetBackupJobsJobOutput values. You can construct a concrete instance of `GetBackupJobsJobInput` via:

GetBackupJobsJobArgs{...}

type GetBackupJobsJobOtsDetail

type GetBackupJobsJobOtsDetail struct {
	TableNames []string `pulumi:"tableNames"`
}

type GetBackupJobsJobOtsDetailArgs

type GetBackupJobsJobOtsDetailArgs struct {
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (GetBackupJobsJobOtsDetailArgs) ElementType

func (GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutput

func (i GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput

func (GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutputWithContext

func (i GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailOutput

type GetBackupJobsJobOtsDetailArray

type GetBackupJobsJobOtsDetailArray []GetBackupJobsJobOtsDetailInput

func (GetBackupJobsJobOtsDetailArray) ElementType

func (GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutput

func (i GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput

func (GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutputWithContext

func (i GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailArrayOutput

type GetBackupJobsJobOtsDetailArrayInput

type GetBackupJobsJobOtsDetailArrayInput interface {
	pulumi.Input

	ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput
	ToGetBackupJobsJobOtsDetailArrayOutputWithContext(context.Context) GetBackupJobsJobOtsDetailArrayOutput
}

GetBackupJobsJobOtsDetailArrayInput is an input type that accepts GetBackupJobsJobOtsDetailArray and GetBackupJobsJobOtsDetailArrayOutput values. You can construct a concrete instance of `GetBackupJobsJobOtsDetailArrayInput` via:

GetBackupJobsJobOtsDetailArray{ GetBackupJobsJobOtsDetailArgs{...} }

type GetBackupJobsJobOtsDetailArrayOutput

type GetBackupJobsJobOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOtsDetailArrayOutput) ElementType

func (GetBackupJobsJobOtsDetailArrayOutput) Index

func (GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutput

func (o GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput

func (GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutputWithContext

func (o GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailArrayOutput

type GetBackupJobsJobOtsDetailInput

type GetBackupJobsJobOtsDetailInput interface {
	pulumi.Input

	ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput
	ToGetBackupJobsJobOtsDetailOutputWithContext(context.Context) GetBackupJobsJobOtsDetailOutput
}

GetBackupJobsJobOtsDetailInput is an input type that accepts GetBackupJobsJobOtsDetailArgs and GetBackupJobsJobOtsDetailOutput values. You can construct a concrete instance of `GetBackupJobsJobOtsDetailInput` via:

GetBackupJobsJobOtsDetailArgs{...}

type GetBackupJobsJobOtsDetailOutput

type GetBackupJobsJobOtsDetailOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOtsDetailOutput) ElementType

func (GetBackupJobsJobOtsDetailOutput) TableNames

func (GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutput

func (o GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput

func (GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutputWithContext

func (o GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailOutput

type GetBackupJobsJobOutput

type GetBackupJobsJobOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOutput) ActualBytes

func (o GetBackupJobsJobOutput) ActualBytes() pulumi.StringOutput

The actual data volume of the backup task (After deduplication) . Unit byte.

func (GetBackupJobsJobOutput) ActualItems

func (o GetBackupJobsJobOutput) ActualItems() pulumi.StringOutput

The actual number of items in the backup task. (Currently only file backup is available).

func (GetBackupJobsJobOutput) BackJobName

func (o GetBackupJobsJobOutput) BackJobName() pulumi.StringOutput

The name of backup job.

func (GetBackupJobsJobOutput) BackupJobId

func (o GetBackupJobsJobOutput) BackupJobId() pulumi.StringOutput

The ID of the backup job.

func (GetBackupJobsJobOutput) BackupType

Backup type. Valid values: `COMPLETE`(full backup).

func (GetBackupJobsJobOutput) Bucket

The name of target OSS bucket.

func (GetBackupJobsJobOutput) BytesDone

The amount of backup data (Incremental). Unit byte.

func (GetBackupJobsJobOutput) BytesTotal

The total amount of data sources. Unit byte.

func (GetBackupJobsJobOutput) CompleteTime

func (o GetBackupJobsJobOutput) CompleteTime() pulumi.StringOutput

The completion time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) CreateTime

The creation time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) CrossAccountRoleName

func (o GetBackupJobsJobOutput) CrossAccountRoleName() pulumi.StringOutput

The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) CrossAccountType

func (o GetBackupJobsJobOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) CrossAccountUserId

func (o GetBackupJobsJobOutput) CrossAccountUserId() pulumi.IntOutput

The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) ElementType

func (GetBackupJobsJobOutput) ElementType() reflect.Type

func (GetBackupJobsJobOutput) ErrorMessage

func (o GetBackupJobsJobOutput) ErrorMessage() pulumi.StringOutput

Error message.

func (GetBackupJobsJobOutput) Exclude

Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`

func (GetBackupJobsJobOutput) FileSystemId

func (o GetBackupJobsJobOutput) FileSystemId() pulumi.StringOutput

The ID of destination file system.

func (GetBackupJobsJobOutput) Id

The ID of the backup job.

func (GetBackupJobsJobOutput) Include

Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`

func (GetBackupJobsJobOutput) InstanceId

The ID of target ECS instance.

func (GetBackupJobsJobOutput) ItemsDone

The number of items restore job recovered.

func (GetBackupJobsJobOutput) ItemsTotal

The total number of items restore job recovered.

func (GetBackupJobsJobOutput) NasCreateTime

func (o GetBackupJobsJobOutput) NasCreateTime() pulumi.StringOutput

File system creation time. UNIX time in seconds.

func (GetBackupJobsJobOutput) OtsDetails

func (GetBackupJobsJobOutput) Paths

List of backup path. e.g. `["/home", "/var"]`.

func (GetBackupJobsJobOutput) PlanId

The ID of a backup plan.

func (GetBackupJobsJobOutput) Prefix

The prefix of Oss bucket files.

func (GetBackupJobsJobOutput) Progress

Backup progress. The value is 100%*100.

func (GetBackupJobsJobOutput) SourceType

The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.

func (GetBackupJobsJobOutput) StartTime

The scheduled backup start time. UNIX time seconds.

func (GetBackupJobsJobOutput) Status

The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.

func (GetBackupJobsJobOutput) ToGetBackupJobsJobOutput

func (o GetBackupJobsJobOutput) ToGetBackupJobsJobOutput() GetBackupJobsJobOutput

func (GetBackupJobsJobOutput) ToGetBackupJobsJobOutputWithContext

func (o GetBackupJobsJobOutput) ToGetBackupJobsJobOutputWithContext(ctx context.Context) GetBackupJobsJobOutput

func (GetBackupJobsJobOutput) UpdatedTime

func (o GetBackupJobsJobOutput) UpdatedTime() pulumi.StringOutput

The update time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) VaultId

The ID of backup vault.

type GetBackupJobsOutputArgs

type GetBackupJobsOutputArgs struct {
	Filters GetBackupJobsFilterArrayInput `pulumi:"filters"`
	// A list of Backup Job IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: `ASCEND`, `DESCEND`.
	SortDirection pulumi.StringPtrInput `pulumi:"sortDirection"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getBackupJobs.

func (GetBackupJobsOutputArgs) ElementType

func (GetBackupJobsOutputArgs) ElementType() reflect.Type

type GetBackupJobsResult

type GetBackupJobsResult struct {
	Filters []GetBackupJobsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id            string             `pulumi:"id"`
	Ids           []string           `pulumi:"ids"`
	Jobs          []GetBackupJobsJob `pulumi:"jobs"`
	OutputFile    *string            `pulumi:"outputFile"`
	SortDirection *string            `pulumi:"sortDirection"`
	SourceType    string             `pulumi:"sourceType"`
	Status        *string            `pulumi:"status"`
}

A collection of values returned by getBackupJobs.

func GetBackupJobs

func GetBackupJobs(ctx *pulumi.Context, args *GetBackupJobsArgs, opts ...pulumi.InvokeOption) (*GetBackupJobsResult, error)

This data source provides the Hbr Backup Jobs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.138.0+.

type GetBackupJobsResultOutput

type GetBackupJobsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBackupJobs.

func (GetBackupJobsResultOutput) ElementType

func (GetBackupJobsResultOutput) ElementType() reflect.Type

func (GetBackupJobsResultOutput) Filters

func (GetBackupJobsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBackupJobsResultOutput) Ids

func (GetBackupJobsResultOutput) Jobs

func (GetBackupJobsResultOutput) OutputFile

func (GetBackupJobsResultOutput) SortDirection

func (GetBackupJobsResultOutput) SourceType

func (GetBackupJobsResultOutput) Status

func (GetBackupJobsResultOutput) ToGetBackupJobsResultOutput

func (o GetBackupJobsResultOutput) ToGetBackupJobsResultOutput() GetBackupJobsResultOutput

func (GetBackupJobsResultOutput) ToGetBackupJobsResultOutputWithContext

func (o GetBackupJobsResultOutput) ToGetBackupJobsResultOutputWithContext(ctx context.Context) GetBackupJobsResultOutput

type GetEcsBackupClientsArgs

type GetEcsBackupClientsArgs struct {
	// A list of Ecs Backup Client IDs.
	Ids []string `pulumi:"ids"`
	// A list of ECS Instance IDs.
	InstanceIds []string `pulumi:"instanceIds"`
	OutputFile  *string  `pulumi:"outputFile"`
	// The status of the resource.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getEcsBackupClients.

type GetEcsBackupClientsClient

type GetEcsBackupClientsClient struct {
	// The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.
	ArchType string `pulumi:"archType"`
	// Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.
	BackupStatus string `pulumi:"backupStatus"`
	// The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).
	ClientType string `pulumi:"clientType"`
	// The version of client.
	ClientVersion string `pulumi:"clientVersion"`
	// The creation time of client. Unix time in seconds.
	CreateTime string `pulumi:"createTime"`
	// The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.
	DataNetworkType string `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.
	DataProxySetting string `pulumi:"dataProxySetting"`
	// The first ID of the resource.
	EcsBackupClientId string `pulumi:"ecsBackupClientId"`
	// The hostname of ECS instance.
	Hostname string `pulumi:"hostname"`
	// The ID of the Ecs Backup Client.
	Id string `pulumi:"id"`
	// The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.
	InstanceId string `pulumi:"instanceId"`
	// The name of ECS instance.
	InstanceName string `pulumi:"instanceName"`
	// The last heartbeat time of client. Unix Time Seconds.
	LastHeartBeatTime string `pulumi:"lastHeartBeatTime"`
	// The latest version of client.
	MaxClientVersion string `pulumi:"maxClientVersion"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore string `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker string `pulumi:"maxWorker"`
	// The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.
	OsType string `pulumi:"osType"`
	// Intranet IP address of the instance, only available for ECS file backup client.
	PrivateIpv4 string `pulumi:"privateIpv4"`
	// Custom data plane proxy server host address.
	ProxyHost string `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword string `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort string `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser string `pulumi:"proxyUser"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The update time of client. Unix Time Seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps bool `pulumi:"useHttps"`
	// The ID of Zone.
	ZoneId string `pulumi:"zoneId"`
}

type GetEcsBackupClientsClientArgs

type GetEcsBackupClientsClientArgs struct {
	// The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.
	ArchType pulumi.StringInput `pulumi:"archType"`
	// Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.
	BackupStatus pulumi.StringInput `pulumi:"backupStatus"`
	// The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).
	ClientType pulumi.StringInput `pulumi:"clientType"`
	// The version of client.
	ClientVersion pulumi.StringInput `pulumi:"clientVersion"`
	// The creation time of client. Unix time in seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.
	DataNetworkType pulumi.StringInput `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.
	DataProxySetting pulumi.StringInput `pulumi:"dataProxySetting"`
	// The first ID of the resource.
	EcsBackupClientId pulumi.StringInput `pulumi:"ecsBackupClientId"`
	// The hostname of ECS instance.
	Hostname pulumi.StringInput `pulumi:"hostname"`
	// The ID of the Ecs Backup Client.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The name of ECS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The last heartbeat time of client. Unix Time Seconds.
	LastHeartBeatTime pulumi.StringInput `pulumi:"lastHeartBeatTime"`
	// The latest version of client.
	MaxClientVersion pulumi.StringInput `pulumi:"maxClientVersion"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringInput `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringInput `pulumi:"maxWorker"`
	// The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.
	OsType pulumi.StringInput `pulumi:"osType"`
	// Intranet IP address of the instance, only available for ECS file backup client.
	PrivateIpv4 pulumi.StringInput `pulumi:"privateIpv4"`
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringInput `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringInput `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringInput `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringInput `pulumi:"proxyUser"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of client. Unix Time Seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolInput `pulumi:"useHttps"`
	// The ID of Zone.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetEcsBackupClientsClientArgs) ElementType

func (GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutput

func (i GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutputWithContext

func (i GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutputWithContext(ctx context.Context) GetEcsBackupClientsClientOutput

type GetEcsBackupClientsClientArray

type GetEcsBackupClientsClientArray []GetEcsBackupClientsClientInput

func (GetEcsBackupClientsClientArray) ElementType

func (GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutput

func (i GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput

func (GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutputWithContext

func (i GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutputWithContext(ctx context.Context) GetEcsBackupClientsClientArrayOutput

type GetEcsBackupClientsClientArrayInput

type GetEcsBackupClientsClientArrayInput interface {
	pulumi.Input

	ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput
	ToGetEcsBackupClientsClientArrayOutputWithContext(context.Context) GetEcsBackupClientsClientArrayOutput
}

GetEcsBackupClientsClientArrayInput is an input type that accepts GetEcsBackupClientsClientArray and GetEcsBackupClientsClientArrayOutput values. You can construct a concrete instance of `GetEcsBackupClientsClientArrayInput` via:

GetEcsBackupClientsClientArray{ GetEcsBackupClientsClientArgs{...} }

type GetEcsBackupClientsClientArrayOutput

type GetEcsBackupClientsClientArrayOutput struct{ *pulumi.OutputState }

func (GetEcsBackupClientsClientArrayOutput) ElementType

func (GetEcsBackupClientsClientArrayOutput) Index

func (GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutput

func (o GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput

func (GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutputWithContext

func (o GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutputWithContext(ctx context.Context) GetEcsBackupClientsClientArrayOutput

type GetEcsBackupClientsClientInput

type GetEcsBackupClientsClientInput interface {
	pulumi.Input

	ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput
	ToGetEcsBackupClientsClientOutputWithContext(context.Context) GetEcsBackupClientsClientOutput
}

GetEcsBackupClientsClientInput is an input type that accepts GetEcsBackupClientsClientArgs and GetEcsBackupClientsClientOutput values. You can construct a concrete instance of `GetEcsBackupClientsClientInput` via:

GetEcsBackupClientsClientArgs{...}

type GetEcsBackupClientsClientOutput

type GetEcsBackupClientsClientOutput struct{ *pulumi.OutputState }

func (GetEcsBackupClientsClientOutput) ArchType

The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.

func (GetEcsBackupClientsClientOutput) BackupStatus

Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.

func (GetEcsBackupClientsClientOutput) ClientType

The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).

func (GetEcsBackupClientsClientOutput) ClientVersion

The version of client.

func (GetEcsBackupClientsClientOutput) CreateTime

The creation time of client. Unix time in seconds.

func (GetEcsBackupClientsClientOutput) DataNetworkType

The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.

func (GetEcsBackupClientsClientOutput) DataProxySetting

The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.

func (GetEcsBackupClientsClientOutput) EcsBackupClientId

func (o GetEcsBackupClientsClientOutput) EcsBackupClientId() pulumi.StringOutput

The first ID of the resource.

func (GetEcsBackupClientsClientOutput) ElementType

func (GetEcsBackupClientsClientOutput) Hostname

The hostname of ECS instance.

func (GetEcsBackupClientsClientOutput) Id

The ID of the Ecs Backup Client.

func (GetEcsBackupClientsClientOutput) InstanceId

The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.

func (GetEcsBackupClientsClientOutput) InstanceName

The name of ECS instance.

func (GetEcsBackupClientsClientOutput) LastHeartBeatTime

func (o GetEcsBackupClientsClientOutput) LastHeartBeatTime() pulumi.StringOutput

The last heartbeat time of client. Unix Time Seconds.

func (GetEcsBackupClientsClientOutput) MaxClientVersion

The latest version of client.

func (GetEcsBackupClientsClientOutput) MaxCpuCore

The number of CPU cores used by a single backup task, 0 means no restrictions.

func (GetEcsBackupClientsClientOutput) MaxWorker

The number of concurrent jobs for a single backup task, 0 means no restrictions.

func (GetEcsBackupClientsClientOutput) OsType

The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.

func (GetEcsBackupClientsClientOutput) PrivateIpv4

Intranet IP address of the instance, only available for ECS file backup client.

func (GetEcsBackupClientsClientOutput) ProxyHost

Custom data plane proxy server host address.

func (GetEcsBackupClientsClientOutput) ProxyPassword

The password of custom data plane proxy server.

func (GetEcsBackupClientsClientOutput) ProxyPort

Custom data plane proxy server host port.

func (GetEcsBackupClientsClientOutput) ProxyUser

The username of custom data plane proxy server.

func (GetEcsBackupClientsClientOutput) Status

The status of the resource.

func (GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutput

func (o GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutputWithContext

func (o GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutputWithContext(ctx context.Context) GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientOutput) UpdatedTime

The update time of client. Unix Time Seconds.

func (GetEcsBackupClientsClientOutput) UseHttps

Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.

func (GetEcsBackupClientsClientOutput) ZoneId

The ID of Zone.

type GetEcsBackupClientsOutputArgs

type GetEcsBackupClientsOutputArgs struct {
	// A list of Ecs Backup Client IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A list of ECS Instance IDs.
	InstanceIds pulumi.StringArrayInput `pulumi:"instanceIds"`
	OutputFile  pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the resource.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getEcsBackupClients.

func (GetEcsBackupClientsOutputArgs) ElementType

type GetEcsBackupClientsResult

type GetEcsBackupClientsResult struct {
	Clients []GetEcsBackupClientsClient `pulumi:"clients"`
	// The provider-assigned unique ID for this managed resource.
	Id          string   `pulumi:"id"`
	Ids         []string `pulumi:"ids"`
	InstanceIds []string `pulumi:"instanceIds"`
	OutputFile  *string  `pulumi:"outputFile"`
	Status      *string  `pulumi:"status"`
}

A collection of values returned by getEcsBackupClients.

func GetEcsBackupClients

func GetEcsBackupClients(ctx *pulumi.Context, args *GetEcsBackupClientsArgs, opts ...pulumi.InvokeOption) (*GetEcsBackupClientsResult, error)

This data source provides the Hbr Ecs File Backup Clients of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

type GetEcsBackupClientsResultOutput

type GetEcsBackupClientsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEcsBackupClients.

func (GetEcsBackupClientsResultOutput) Clients

func (GetEcsBackupClientsResultOutput) ElementType

func (GetEcsBackupClientsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEcsBackupClientsResultOutput) Ids

func (GetEcsBackupClientsResultOutput) InstanceIds

func (GetEcsBackupClientsResultOutput) OutputFile

func (GetEcsBackupClientsResultOutput) Status

func (GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutput

func (o GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutput() GetEcsBackupClientsResultOutput

func (GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutputWithContext

func (o GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutputWithContext(ctx context.Context) GetEcsBackupClientsResultOutput

type GetEcsBackupPlansArgs

type GetEcsBackupPlansArgs struct {
	// A list of EcsBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId *string `pulumi:"instanceId"`
	// A regex string to filter results by EcsBackupPlan name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of Backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getEcsBackupPlans.

type GetEcsBackupPlansOutputArgs

type GetEcsBackupPlansOutputArgs struct {
	// A list of EcsBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// A regex string to filter results by EcsBackupPlan name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of Backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getEcsBackupPlans.

func (GetEcsBackupPlansOutputArgs) ElementType

type GetEcsBackupPlansPlan

type GetEcsBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	CreateTime string `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	Detail      string `pulumi:"detail"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of ecs backup plan.
	EcsBackupPlanId string `pulumi:"ecsBackupPlanId"`
	// The name of the backup plan.
	EcsBackupPlanName string `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude string `pulumi:"exclude"`
	// The ID of ecs backup plan.
	Id string `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include string `pulumi:"include"`
	// The ID of ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.
	Options string `pulumi:"options"`
	// Backup path. e.g. `["/home", "/var"]`
	Paths []string `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The type of backup source.
	SourceType string `pulumi:"sourceType"`
	// Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit string `pulumi:"speedLimit"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of Backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetEcsBackupPlansPlanArgs

type GetEcsBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	Detail      pulumi.StringInput `pulumi:"detail"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of ecs backup plan.
	EcsBackupPlanId pulumi.StringInput `pulumi:"ecsBackupPlanId"`
	// The name of the backup plan.
	EcsBackupPlanName pulumi.StringInput `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringInput `pulumi:"exclude"`
	// The ID of ecs backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringInput `pulumi:"include"`
	// The ID of ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.
	Options pulumi.StringInput `pulumi:"options"`
	// Backup path. e.g. `["/home", "/var"]`
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The type of backup source.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringInput `pulumi:"speedLimit"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of Backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetEcsBackupPlansPlanArgs) ElementType

func (GetEcsBackupPlansPlanArgs) ElementType() reflect.Type

func (GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutput

func (i GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutputWithContext

func (i GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanOutput

type GetEcsBackupPlansPlanArray

type GetEcsBackupPlansPlanArray []GetEcsBackupPlansPlanInput

func (GetEcsBackupPlansPlanArray) ElementType

func (GetEcsBackupPlansPlanArray) ElementType() reflect.Type

func (GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutput

func (i GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput

func (GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutputWithContext

func (i GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanArrayOutput

type GetEcsBackupPlansPlanArrayInput

type GetEcsBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput
	ToGetEcsBackupPlansPlanArrayOutputWithContext(context.Context) GetEcsBackupPlansPlanArrayOutput
}

GetEcsBackupPlansPlanArrayInput is an input type that accepts GetEcsBackupPlansPlanArray and GetEcsBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetEcsBackupPlansPlanArrayInput` via:

GetEcsBackupPlansPlanArray{ GetEcsBackupPlansPlanArgs{...} }

type GetEcsBackupPlansPlanArrayOutput

type GetEcsBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetEcsBackupPlansPlanArrayOutput) ElementType

func (GetEcsBackupPlansPlanArrayOutput) Index

func (GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutput

func (o GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput

func (GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutputWithContext

func (o GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanArrayOutput

type GetEcsBackupPlansPlanInput

type GetEcsBackupPlansPlanInput interface {
	pulumi.Input

	ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput
	ToGetEcsBackupPlansPlanOutputWithContext(context.Context) GetEcsBackupPlansPlanOutput
}

GetEcsBackupPlansPlanInput is an input type that accepts GetEcsBackupPlansPlanArgs and GetEcsBackupPlansPlanOutput values. You can construct a concrete instance of `GetEcsBackupPlansPlanInput` via:

GetEcsBackupPlansPlanArgs{...}

type GetEcsBackupPlansPlanOutput

type GetEcsBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetEcsBackupPlansPlanOutput) BackupType

Backup type. Valid values: `COMPLETE`.

func (GetEcsBackupPlansPlanOutput) CreateTime

func (GetEcsBackupPlansPlanOutput) CreatedTime

The creation time of the backup plan. UNIX time in seconds.

func (GetEcsBackupPlansPlanOutput) Detail

func (GetEcsBackupPlansPlanOutput) Disabled

Whether to be suspended. Valid values: `true`, `false`.

func (GetEcsBackupPlansPlanOutput) EcsBackupPlanId

func (o GetEcsBackupPlansPlanOutput) EcsBackupPlanId() pulumi.StringOutput

The ID of ecs backup plan.

func (GetEcsBackupPlansPlanOutput) EcsBackupPlanName

func (o GetEcsBackupPlansPlanOutput) EcsBackupPlanName() pulumi.StringOutput

The name of the backup plan.

func (GetEcsBackupPlansPlanOutput) ElementType

func (GetEcsBackupPlansPlanOutput) Exclude

Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`

func (GetEcsBackupPlansPlanOutput) Id

The ID of ecs backup plan.

func (GetEcsBackupPlansPlanOutput) Include

Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`

func (GetEcsBackupPlansPlanOutput) InstanceId

The ID of ECS instance.

func (GetEcsBackupPlansPlanOutput) Options

Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.

func (GetEcsBackupPlansPlanOutput) Paths

Backup path. e.g. `["/home", "/var"]`

func (GetEcsBackupPlansPlanOutput) Retention

Backup retention days, the minimum is 1.

func (GetEcsBackupPlansPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

func (GetEcsBackupPlansPlanOutput) SourceType

The type of backup source.

func (GetEcsBackupPlansPlanOutput) SpeedLimit

Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.

func (GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutput

func (o GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutputWithContext

func (o GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanOutput) UpdatedTime

The update time of the backup plan. UNIX time in seconds.

func (GetEcsBackupPlansPlanOutput) VaultId

The ID of Backup vault.

type GetEcsBackupPlansResult

type GetEcsBackupPlansResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	InstanceId *string                 `pulumi:"instanceId"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetEcsBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getEcsBackupPlans.

func GetEcsBackupPlans

func GetEcsBackupPlans(ctx *pulumi.Context, args *GetEcsBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetEcsBackupPlansResult, error)

This data source provides the Hbr EcsBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrEcsBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetEcsBackupPlansResultOutput

type GetEcsBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEcsBackupPlans.

func (GetEcsBackupPlansResultOutput) ElementType

func (GetEcsBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEcsBackupPlansResultOutput) Ids

func (GetEcsBackupPlansResultOutput) InstanceId

func (GetEcsBackupPlansResultOutput) NameRegex

func (GetEcsBackupPlansResultOutput) Names

func (GetEcsBackupPlansResultOutput) OutputFile

func (GetEcsBackupPlansResultOutput) Plans

func (GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutput

func (o GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutput() GetEcsBackupPlansResultOutput

func (GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutputWithContext

func (o GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutputWithContext(ctx context.Context) GetEcsBackupPlansResultOutput

func (GetEcsBackupPlansResultOutput) VaultId

type GetHanaBackupPlansArgs

type GetHanaBackupPlansArgs struct {
	// The ID of the SAP HANA instance.
	ClusterId string `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName *string `pulumi:"databaseName"`
	// A list of Hana Backup Plan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Hana Backup Plan name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The ID of the backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupPlans.

type GetHanaBackupPlansOutputArgs

type GetHanaBackupPlansOutputArgs struct {
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringPtrInput `pulumi:"databaseName"`
	// A list of Hana Backup Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Hana Backup Plan name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupPlans.

func (GetHanaBackupPlansOutputArgs) ElementType

type GetHanaBackupPlansPlan

type GetHanaBackupPlansPlan struct {
	// The backup prefix.
	BackupPrefix string `pulumi:"backupPrefix"`
	// The backup type.
	BackupType string `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId string `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName string `pulumi:"databaseName"`
	// The ID of the resource.
	Id        string `pulumi:"id"`
	PageTotal string `pulumi:"pageTotal"`
	// The ID of the backup plan.
	PlanId string `pulumi:"planId"`
	// The name of the backup plan.
	PlanName string `pulumi:"planName"`
	// The backup policy.
	Schedule string `pulumi:"schedule"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetHanaBackupPlansPlanArgs

type GetHanaBackupPlansPlanArgs struct {
	// The backup prefix.
	BackupPrefix pulumi.StringInput `pulumi:"backupPrefix"`
	// The backup type.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringInput `pulumi:"databaseName"`
	// The ID of the resource.
	Id        pulumi.StringInput `pulumi:"id"`
	PageTotal pulumi.StringInput `pulumi:"pageTotal"`
	// The ID of the backup plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The name of the backup plan.
	PlanName pulumi.StringInput `pulumi:"planName"`
	// The backup policy.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetHanaBackupPlansPlanArgs) ElementType

func (GetHanaBackupPlansPlanArgs) ElementType() reflect.Type

func (GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutput

func (i GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutputWithContext

func (i GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanOutput

type GetHanaBackupPlansPlanArray

type GetHanaBackupPlansPlanArray []GetHanaBackupPlansPlanInput

func (GetHanaBackupPlansPlanArray) ElementType

func (GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutput

func (i GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput

func (GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutputWithContext

func (i GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanArrayOutput

type GetHanaBackupPlansPlanArrayInput

type GetHanaBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput
	ToGetHanaBackupPlansPlanArrayOutputWithContext(context.Context) GetHanaBackupPlansPlanArrayOutput
}

GetHanaBackupPlansPlanArrayInput is an input type that accepts GetHanaBackupPlansPlanArray and GetHanaBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetHanaBackupPlansPlanArrayInput` via:

GetHanaBackupPlansPlanArray{ GetHanaBackupPlansPlanArgs{...} }

type GetHanaBackupPlansPlanArrayOutput

type GetHanaBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetHanaBackupPlansPlanArrayOutput) ElementType

func (GetHanaBackupPlansPlanArrayOutput) Index

func (GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutput

func (o GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput

func (GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutputWithContext

func (o GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanArrayOutput

type GetHanaBackupPlansPlanInput

type GetHanaBackupPlansPlanInput interface {
	pulumi.Input

	ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput
	ToGetHanaBackupPlansPlanOutputWithContext(context.Context) GetHanaBackupPlansPlanOutput
}

GetHanaBackupPlansPlanInput is an input type that accepts GetHanaBackupPlansPlanArgs and GetHanaBackupPlansPlanOutput values. You can construct a concrete instance of `GetHanaBackupPlansPlanInput` via:

GetHanaBackupPlansPlanArgs{...}

type GetHanaBackupPlansPlanOutput

type GetHanaBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetHanaBackupPlansPlanOutput) BackupPrefix

The backup prefix.

func (GetHanaBackupPlansPlanOutput) BackupType

The backup type.

func (GetHanaBackupPlansPlanOutput) ClusterId

The ID of the SAP HANA instance.

func (GetHanaBackupPlansPlanOutput) DatabaseName

The name of the database.

func (GetHanaBackupPlansPlanOutput) ElementType

func (GetHanaBackupPlansPlanOutput) Id

The ID of the resource.

func (GetHanaBackupPlansPlanOutput) PageTotal

func (GetHanaBackupPlansPlanOutput) PlanId

The ID of the backup plan.

func (GetHanaBackupPlansPlanOutput) PlanName

The name of the backup plan.

func (GetHanaBackupPlansPlanOutput) Schedule

The backup policy.

func (GetHanaBackupPlansPlanOutput) Status

The status of the resource.

func (GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutput

func (o GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutputWithContext

func (o GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanOutput) VaultId

The ID of the backup vault.

type GetHanaBackupPlansResult

type GetHanaBackupPlansResult struct {
	ClusterId    string  `pulumi:"clusterId"`
	DatabaseName *string `pulumi:"databaseName"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                   `pulumi:"id"`
	Ids        []string                 `pulumi:"ids"`
	NameRegex  *string                  `pulumi:"nameRegex"`
	Names      []string                 `pulumi:"names"`
	OutputFile *string                  `pulumi:"outputFile"`
	PageNumber *int                     `pulumi:"pageNumber"`
	PageSize   *int                     `pulumi:"pageSize"`
	Plans      []GetHanaBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                  `pulumi:"vaultId"`
}

A collection of values returned by getHanaBackupPlans.

func GetHanaBackupPlans

func GetHanaBackupPlans(ctx *pulumi.Context, args *GetHanaBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetHanaBackupPlansResult, error)

This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.179.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetHanaBackupPlans(ctx, &hbr.GetHanaBackupPlansArgs{
			ClusterId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrHanaBackupPlanId1", ids.Plans[0].Id)
		return nil
	})
}

```

type GetHanaBackupPlansResultOutput

type GetHanaBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHanaBackupPlans.

func (GetHanaBackupPlansResultOutput) ClusterId

func (GetHanaBackupPlansResultOutput) DatabaseName

func (GetHanaBackupPlansResultOutput) ElementType

func (GetHanaBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetHanaBackupPlansResultOutput) Ids

func (GetHanaBackupPlansResultOutput) NameRegex

func (GetHanaBackupPlansResultOutput) Names

func (GetHanaBackupPlansResultOutput) OutputFile

func (GetHanaBackupPlansResultOutput) PageNumber

func (GetHanaBackupPlansResultOutput) PageSize

func (GetHanaBackupPlansResultOutput) Plans

func (GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutput

func (o GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutput() GetHanaBackupPlansResultOutput

func (GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutputWithContext

func (o GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutputWithContext(ctx context.Context) GetHanaBackupPlansResultOutput

func (GetHanaBackupPlansResultOutput) VaultId

type GetHanaInstancesArgs

type GetHanaInstancesArgs struct {
	// A list of Hana Instance IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Hana Instance name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The status of the SAP HANA instance.
	Status *string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaInstances.

type GetHanaInstancesInstance

type GetHanaInstancesInstance struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting string `pulumi:"alertSetting"`
	// The ID of the SAP HANA instance.
	HanaInstanceId string `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName string `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host string `pulumi:"host"`
	// The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.
	Id string `pulumi:"id"`
	// The instance number of the SAP HANA system.
	InstanceNumber int `pulumi:"instanceNumber"`
	// The ID of the resource group.
	ResourceGroupId string `pulumi:"resourceGroupId"`
	// The status of the SAP HANA instance.
	Status string `pulumi:"status"`
	// The status information.
	StatusMessage string `pulumi:"statusMessage"`
	// Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
	UseSsl bool `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName string `pulumi:"userName"`
	// Indicates whether the SSL certificate of the SAP HANA instance is verified.
	ValidateCertificate bool `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetHanaInstancesInstanceArgs

type GetHanaInstancesInstanceArgs struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringInput `pulumi:"alertSetting"`
	// The ID of the SAP HANA instance.
	HanaInstanceId pulumi.StringInput `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName pulumi.StringInput `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringInput `pulumi:"host"`
	// The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntInput `pulumi:"instanceNumber"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
	// The status of the SAP HANA instance.
	Status pulumi.StringInput `pulumi:"status"`
	// The status information.
	StatusMessage pulumi.StringInput `pulumi:"statusMessage"`
	// Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolInput `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName pulumi.StringInput `pulumi:"userName"`
	// Indicates whether the SSL certificate of the SAP HANA instance is verified.
	ValidateCertificate pulumi.BoolInput `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetHanaInstancesInstanceArgs) ElementType

func (GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutput

func (i GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutputWithContext

func (i GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutputWithContext(ctx context.Context) GetHanaInstancesInstanceOutput

type GetHanaInstancesInstanceArray

type GetHanaInstancesInstanceArray []GetHanaInstancesInstanceInput

func (GetHanaInstancesInstanceArray) ElementType

func (GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutput

func (i GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput

func (GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutputWithContext

func (i GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutputWithContext(ctx context.Context) GetHanaInstancesInstanceArrayOutput

type GetHanaInstancesInstanceArrayInput

type GetHanaInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput
	ToGetHanaInstancesInstanceArrayOutputWithContext(context.Context) GetHanaInstancesInstanceArrayOutput
}

GetHanaInstancesInstanceArrayInput is an input type that accepts GetHanaInstancesInstanceArray and GetHanaInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetHanaInstancesInstanceArrayInput` via:

GetHanaInstancesInstanceArray{ GetHanaInstancesInstanceArgs{...} }

type GetHanaInstancesInstanceArrayOutput

type GetHanaInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetHanaInstancesInstanceArrayOutput) ElementType

func (GetHanaInstancesInstanceArrayOutput) Index

func (GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutput

func (o GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput

func (GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutputWithContext

func (o GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutputWithContext(ctx context.Context) GetHanaInstancesInstanceArrayOutput

type GetHanaInstancesInstanceInput

type GetHanaInstancesInstanceInput interface {
	pulumi.Input

	ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput
	ToGetHanaInstancesInstanceOutputWithContext(context.Context) GetHanaInstancesInstanceOutput
}

GetHanaInstancesInstanceInput is an input type that accepts GetHanaInstancesInstanceArgs and GetHanaInstancesInstanceOutput values. You can construct a concrete instance of `GetHanaInstancesInstanceInput` via:

GetHanaInstancesInstanceArgs{...}

type GetHanaInstancesInstanceOutput

type GetHanaInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetHanaInstancesInstanceOutput) AlertSetting

The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.

func (GetHanaInstancesInstanceOutput) ElementType

func (GetHanaInstancesInstanceOutput) HanaInstanceId

The ID of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) HanaName

The name of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) Host

The private or internal IP address of the host where the primary node of the SAP HANA instance resides.

func (GetHanaInstancesInstanceOutput) Id

The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.

func (GetHanaInstancesInstanceOutput) InstanceNumber

func (o GetHanaInstancesInstanceOutput) InstanceNumber() pulumi.IntOutput

The instance number of the SAP HANA system.

func (GetHanaInstancesInstanceOutput) ResourceGroupId

The ID of the resource group.

func (GetHanaInstancesInstanceOutput) Status

The status of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) StatusMessage

The status information.

func (GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutput

func (o GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutputWithContext

func (o GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutputWithContext(ctx context.Context) GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceOutput) UseSsl

Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).

func (GetHanaInstancesInstanceOutput) UserName

The username of the SYSTEMDB database.

func (GetHanaInstancesInstanceOutput) ValidateCertificate

func (o GetHanaInstancesInstanceOutput) ValidateCertificate() pulumi.BoolOutput

Indicates whether the SSL certificate of the SAP HANA instance is verified.

func (GetHanaInstancesInstanceOutput) VaultId

The ID of the backup vault.

type GetHanaInstancesOutputArgs

type GetHanaInstancesOutputArgs struct {
	// A list of Hana Instance IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Hana Instance name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The status of the SAP HANA instance.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaInstances.

func (GetHanaInstancesOutputArgs) ElementType

func (GetHanaInstancesOutputArgs) ElementType() reflect.Type

type GetHanaInstancesResult

type GetHanaInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	Instances  []GetHanaInstancesInstance `pulumi:"instances"`
	NameRegex  *string                    `pulumi:"nameRegex"`
	Names      []string                   `pulumi:"names"`
	OutputFile *string                    `pulumi:"outputFile"`
	PageNumber *int                       `pulumi:"pageNumber"`
	PageSize   *int                       `pulumi:"pageSize"`
	Status     *string                    `pulumi:"status"`
	VaultId    *string                    `pulumi:"vaultId"`
}

A collection of values returned by getHanaInstances.

func GetHanaInstances

func GetHanaInstances(ctx *pulumi.Context, args *GetHanaInstancesArgs, opts ...pulumi.InvokeOption) (*GetHanaInstancesResult, error)

This data source provides the Hbr Hana Instances of the current Alibaba Cloud user.

> **NOTE:** Available in v1.178.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetHanaInstances(ctx, &hbr.GetHanaInstancesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrHanaInstanceId1", ids.Instances[0].Id)
		return nil
	})
}

```

type GetHanaInstancesResultOutput

type GetHanaInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHanaInstances.

func (GetHanaInstancesResultOutput) ElementType

func (GetHanaInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetHanaInstancesResultOutput) Ids

func (GetHanaInstancesResultOutput) Instances

func (GetHanaInstancesResultOutput) NameRegex

func (GetHanaInstancesResultOutput) Names

func (GetHanaInstancesResultOutput) OutputFile

func (GetHanaInstancesResultOutput) PageNumber

func (GetHanaInstancesResultOutput) PageSize

func (GetHanaInstancesResultOutput) Status

func (GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutput

func (o GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutput() GetHanaInstancesResultOutput

func (GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutputWithContext

func (o GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutputWithContext(ctx context.Context) GetHanaInstancesResultOutput

func (GetHanaInstancesResultOutput) VaultId

type GetNasBackupPlansArgs

type GetNasBackupPlansArgs struct {
	// The File System ID of Nas.
	FileSystemId *string `pulumi:"fileSystemId"`
	// A list of NasBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by NasBackupPlan name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getNasBackupPlans.

type GetNasBackupPlansOutputArgs

type GetNasBackupPlansOutputArgs struct {
	// The File System ID of Nas.
	FileSystemId pulumi.StringPtrInput `pulumi:"fileSystemId"`
	// A list of NasBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by NasBackupPlan name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getNasBackupPlans.

func (GetNasBackupPlansOutputArgs) ElementType

type GetNasBackupPlansPlan

type GetNasBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.
	CreateTime string `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of Nas backup plan.
	Id string `pulumi:"id"`
	// The ID of Nas backup plan.
	NasBackupPlanId string `pulumi:"nasBackupPlanId"`
	// The name of the resource.
	NasBackupPlanName string `pulumi:"nasBackupPlanName"`
	// Options field of Nas backup plan.
	Options string `pulumi:"options"`
	// List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`
	Paths []string `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetNasBackupPlansPlanArgs

type GetNasBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of Nas backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of Nas backup plan.
	NasBackupPlanId pulumi.StringInput `pulumi:"nasBackupPlanId"`
	// The name of the resource.
	NasBackupPlanName pulumi.StringInput `pulumi:"nasBackupPlanName"`
	// Options field of Nas backup plan.
	Options pulumi.StringInput `pulumi:"options"`
	// List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetNasBackupPlansPlanArgs) ElementType

func (GetNasBackupPlansPlanArgs) ElementType() reflect.Type

func (GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutput

func (i GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutputWithContext

func (i GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutputWithContext(ctx context.Context) GetNasBackupPlansPlanOutput

type GetNasBackupPlansPlanArray

type GetNasBackupPlansPlanArray []GetNasBackupPlansPlanInput

func (GetNasBackupPlansPlanArray) ElementType

func (GetNasBackupPlansPlanArray) ElementType() reflect.Type

func (GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutput

func (i GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput

func (GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutputWithContext

func (i GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetNasBackupPlansPlanArrayOutput

type GetNasBackupPlansPlanArrayInput

type GetNasBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput
	ToGetNasBackupPlansPlanArrayOutputWithContext(context.Context) GetNasBackupPlansPlanArrayOutput
}

GetNasBackupPlansPlanArrayInput is an input type that accepts GetNasBackupPlansPlanArray and GetNasBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetNasBackupPlansPlanArrayInput` via:

GetNasBackupPlansPlanArray{ GetNasBackupPlansPlanArgs{...} }

type GetNasBackupPlansPlanArrayOutput

type GetNasBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetNasBackupPlansPlanArrayOutput) ElementType

func (GetNasBackupPlansPlanArrayOutput) Index

func (GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutput

func (o GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput

func (GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutputWithContext

func (o GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetNasBackupPlansPlanArrayOutput

type GetNasBackupPlansPlanInput

type GetNasBackupPlansPlanInput interface {
	pulumi.Input

	ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput
	ToGetNasBackupPlansPlanOutputWithContext(context.Context) GetNasBackupPlansPlanOutput
}

GetNasBackupPlansPlanInput is an input type that accepts GetNasBackupPlansPlanArgs and GetNasBackupPlansPlanOutput values. You can construct a concrete instance of `GetNasBackupPlansPlanInput` via:

GetNasBackupPlansPlanArgs{...}

type GetNasBackupPlansPlanOutput

type GetNasBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetNasBackupPlansPlanOutput) BackupType

Backup type. Valid values: `COMPLETE`.

func (GetNasBackupPlansPlanOutput) CreateTime

File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.

func (GetNasBackupPlansPlanOutput) CreatedTime

The creation time of the backup plan. UNIX time in seconds.

func (GetNasBackupPlansPlanOutput) Disabled

Whether to be suspended. Valid values: `true`, `false`.

func (GetNasBackupPlansPlanOutput) ElementType

func (GetNasBackupPlansPlanOutput) FileSystemId

The File System ID of Nas.

func (GetNasBackupPlansPlanOutput) Id

The ID of Nas backup plan.

func (GetNasBackupPlansPlanOutput) NasBackupPlanId

func (o GetNasBackupPlansPlanOutput) NasBackupPlanId() pulumi.StringOutput

The ID of Nas backup plan.

func (GetNasBackupPlansPlanOutput) NasBackupPlanName

func (o GetNasBackupPlansPlanOutput) NasBackupPlanName() pulumi.StringOutput

The name of the resource.

func (GetNasBackupPlansPlanOutput) Options

Options field of Nas backup plan.

func (GetNasBackupPlansPlanOutput) Paths

List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`

func (GetNasBackupPlansPlanOutput) Retention

Backup retention days, the minimum is 1.

func (GetNasBackupPlansPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

func (GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutput

func (o GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutputWithContext

func (o GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutputWithContext(ctx context.Context) GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanOutput) UpdatedTime

The update time of the backup plan. UNIX time in seconds.

func (GetNasBackupPlansPlanOutput) VaultId

The ID of backup vault.

type GetNasBackupPlansResult

type GetNasBackupPlansResult struct {
	FileSystemId *string `pulumi:"fileSystemId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetNasBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getNasBackupPlans.

func GetNasBackupPlans

func GetNasBackupPlans(ctx *pulumi.Context, args *GetNasBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetNasBackupPlansResult, error)

This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-NasBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrNasBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetNasBackupPlansResultOutput

type GetNasBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNasBackupPlans.

func (GetNasBackupPlansResultOutput) ElementType

func (GetNasBackupPlansResultOutput) FileSystemId

func (GetNasBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetNasBackupPlansResultOutput) Ids

func (GetNasBackupPlansResultOutput) NameRegex

func (GetNasBackupPlansResultOutput) Names

func (GetNasBackupPlansResultOutput) OutputFile

func (GetNasBackupPlansResultOutput) Plans

func (GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutput

func (o GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutput() GetNasBackupPlansResultOutput

func (GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutputWithContext

func (o GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutputWithContext(ctx context.Context) GetNasBackupPlansResultOutput

func (GetNasBackupPlansResultOutput) VaultId

type GetOssBackupPlansArgs

type GetOssBackupPlansArgs struct {
	// The name of OSS bucket.
	Bucket *string `pulumi:"bucket"`
	// A list of OssBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by OssBackupPlan name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getOssBackupPlans.

type GetOssBackupPlansOutputArgs

type GetOssBackupPlansOutputArgs struct {
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// A list of OssBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by OssBackupPlan name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getOssBackupPlans.

func (GetOssBackupPlansOutputArgs) ElementType

type GetOssBackupPlansPlan

type GetOssBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of Oss backup plan.
	Id string `pulumi:"id"`
	// The ID of Oss backup plan.
	OssBackupPlanId string `pulumi:"ossBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OssBackupPlanName string `pulumi:"ossBackupPlanName"`
	// Backup prefix.
	Prefix string `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetOssBackupPlansPlanArgs

type GetOssBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of Oss backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of Oss backup plan.
	OssBackupPlanId pulumi.StringInput `pulumi:"ossBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OssBackupPlanName pulumi.StringInput `pulumi:"ossBackupPlanName"`
	// Backup prefix.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOssBackupPlansPlanArgs) ElementType

func (GetOssBackupPlansPlanArgs) ElementType() reflect.Type

func (GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutput

func (i GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutputWithContext

func (i GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutputWithContext(ctx context.Context) GetOssBackupPlansPlanOutput

type GetOssBackupPlansPlanArray

type GetOssBackupPlansPlanArray []GetOssBackupPlansPlanInput

func (GetOssBackupPlansPlanArray) ElementType

func (GetOssBackupPlansPlanArray) ElementType() reflect.Type

func (GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutput

func (i GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput

func (GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutputWithContext

func (i GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOssBackupPlansPlanArrayOutput

type GetOssBackupPlansPlanArrayInput

type GetOssBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput
	ToGetOssBackupPlansPlanArrayOutputWithContext(context.Context) GetOssBackupPlansPlanArrayOutput
}

GetOssBackupPlansPlanArrayInput is an input type that accepts GetOssBackupPlansPlanArray and GetOssBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetOssBackupPlansPlanArrayInput` via:

GetOssBackupPlansPlanArray{ GetOssBackupPlansPlanArgs{...} }

type GetOssBackupPlansPlanArrayOutput

type GetOssBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetOssBackupPlansPlanArrayOutput) ElementType

func (GetOssBackupPlansPlanArrayOutput) Index

func (GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutput

func (o GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput

func (GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutputWithContext

func (o GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOssBackupPlansPlanArrayOutput

type GetOssBackupPlansPlanInput

type GetOssBackupPlansPlanInput interface {
	pulumi.Input

	ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput
	ToGetOssBackupPlansPlanOutputWithContext(context.Context) GetOssBackupPlansPlanOutput
}

GetOssBackupPlansPlanInput is an input type that accepts GetOssBackupPlansPlanArgs and GetOssBackupPlansPlanOutput values. You can construct a concrete instance of `GetOssBackupPlansPlanInput` via:

GetOssBackupPlansPlanArgs{...}

type GetOssBackupPlansPlanOutput

type GetOssBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetOssBackupPlansPlanOutput) BackupType

Backup type. Valid values: `COMPLETE`.

func (GetOssBackupPlansPlanOutput) Bucket

The name of OSS bucket.

func (GetOssBackupPlansPlanOutput) CreatedTime

The creation time of the backup plan. UNIX time in seconds.

func (GetOssBackupPlansPlanOutput) Disabled

Whether to be suspended. Valid values: `true`, `false`.

func (GetOssBackupPlansPlanOutput) ElementType

func (GetOssBackupPlansPlanOutput) Id

The ID of Oss backup plan.

func (GetOssBackupPlansPlanOutput) OssBackupPlanId

func (o GetOssBackupPlansPlanOutput) OssBackupPlanId() pulumi.StringOutput

The ID of Oss backup plan.

func (GetOssBackupPlansPlanOutput) OssBackupPlanName

func (o GetOssBackupPlansPlanOutput) OssBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (GetOssBackupPlansPlanOutput) Prefix

Backup prefix.

func (GetOssBackupPlansPlanOutput) Retention

Backup retention days, the minimum is 1.

func (GetOssBackupPlansPlanOutput) Schedule

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.

func (GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutput

func (o GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutputWithContext

func (o GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutputWithContext(ctx context.Context) GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanOutput) UpdatedTime

The update time of the backup plan. UNIX time in seconds.

func (GetOssBackupPlansPlanOutput) VaultId

The ID of backup vault.

type GetOssBackupPlansResult

type GetOssBackupPlansResult struct {
	Bucket *string `pulumi:"bucket"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetOssBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getOssBackupPlans.

func GetOssBackupPlans

func GetOssBackupPlans(ctx *pulumi.Context, args *GetOssBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetOssBackupPlansResult, error)

This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.131.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-OssBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrOssBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetOssBackupPlansResultOutput

type GetOssBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOssBackupPlans.

func (GetOssBackupPlansResultOutput) Bucket

func (GetOssBackupPlansResultOutput) ElementType

func (GetOssBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetOssBackupPlansResultOutput) Ids

func (GetOssBackupPlansResultOutput) NameRegex

func (GetOssBackupPlansResultOutput) Names

func (GetOssBackupPlansResultOutput) OutputFile

func (GetOssBackupPlansResultOutput) Plans

func (GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutput

func (o GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutput() GetOssBackupPlansResultOutput

func (GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutputWithContext

func (o GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutputWithContext(ctx context.Context) GetOssBackupPlansResultOutput

func (GetOssBackupPlansResultOutput) VaultId

type GetOtsBackupPlansArgs

type GetOtsBackupPlansArgs struct {
	// A list of OtsBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by OtsBackupPlan name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the backup plan.
	PlanId *string `pulumi:"planId"`
	// The ID of the backup plan.
	PlanName *string `pulumi:"planName"`
	// The ID of backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getOtsBackupPlans.

type GetOtsBackupPlansOutputArgs

type GetOtsBackupPlansOutputArgs struct {
	// A list of OtsBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by OtsBackupPlan name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the backup plan.
	PlanId pulumi.StringPtrInput `pulumi:"planId"`
	// The ID of the backup plan.
	PlanName pulumi.StringPtrInput `pulumi:"planName"`
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getOtsBackupPlans.

func (GetOtsBackupPlansOutputArgs) ElementType

type GetOtsBackupPlansPlan

type GetOtsBackupPlansPlan struct {
	// The Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of ots backup plan.
	Id string `pulumi:"id"`
	// The ID of ots backup plan.
	OtsBackupPlanId string `pulumi:"otsBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OtsBackupPlanName string                           `pulumi:"otsBackupPlanName"`
	OtsDetails        []GetOtsBackupPlansPlanOtsDetail `pulumi:"otsDetails"`
	// The Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// The Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The type of the data source.
	SourceType string `pulumi:"sourceType"`
	// The update time of the backup plan. UNIX time in seconds.
	// *ots_detail - The details about the Tablestore instance.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetOtsBackupPlansPlanArgs

type GetOtsBackupPlansPlanArgs struct {
	// The Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of ots backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ots backup plan.
	OtsBackupPlanId pulumi.StringInput `pulumi:"otsBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OtsBackupPlanName pulumi.StringInput                       `pulumi:"otsBackupPlanName"`
	OtsDetails        GetOtsBackupPlansPlanOtsDetailArrayInput `pulumi:"otsDetails"`
	// The Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The type of the data source.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The update time of the backup plan. UNIX time in seconds.
	// *ots_detail - The details about the Tablestore instance.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOtsBackupPlansPlanArgs) ElementType

func (GetOtsBackupPlansPlanArgs) ElementType() reflect.Type

func (GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutput

func (i GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutputWithContext

func (i GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOutput

type GetOtsBackupPlansPlanArray

type GetOtsBackupPlansPlanArray []GetOtsBackupPlansPlanInput

func (GetOtsBackupPlansPlanArray) ElementType

func (GetOtsBackupPlansPlanArray) ElementType() reflect.Type

func (GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutput

func (i GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput

func (GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutputWithContext

func (i GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanArrayOutput

type GetOtsBackupPlansPlanArrayInput

type GetOtsBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput
	ToGetOtsBackupPlansPlanArrayOutputWithContext(context.Context) GetOtsBackupPlansPlanArrayOutput
}

GetOtsBackupPlansPlanArrayInput is an input type that accepts GetOtsBackupPlansPlanArray and GetOtsBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanArrayInput` via:

GetOtsBackupPlansPlanArray{ GetOtsBackupPlansPlanArgs{...} }

type GetOtsBackupPlansPlanArrayOutput

type GetOtsBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanArrayOutput) ElementType

func (GetOtsBackupPlansPlanArrayOutput) Index

func (GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutput

func (o GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput

func (GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutputWithContext

func (o GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanArrayOutput

type GetOtsBackupPlansPlanInput

type GetOtsBackupPlansPlanInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput
	ToGetOtsBackupPlansPlanOutputWithContext(context.Context) GetOtsBackupPlansPlanOutput
}

GetOtsBackupPlansPlanInput is an input type that accepts GetOtsBackupPlansPlanArgs and GetOtsBackupPlansPlanOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanInput` via:

GetOtsBackupPlansPlanArgs{...}

type GetOtsBackupPlansPlanOtsDetail

type GetOtsBackupPlansPlanOtsDetail struct {
	TableNames []string `pulumi:"tableNames"`
}

type GetOtsBackupPlansPlanOtsDetailArgs

type GetOtsBackupPlansPlanOtsDetailArgs struct {
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (GetOtsBackupPlansPlanOtsDetailArgs) ElementType

func (GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutput

func (i GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput

func (GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext

func (i GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailOutput

type GetOtsBackupPlansPlanOtsDetailArray

type GetOtsBackupPlansPlanOtsDetailArray []GetOtsBackupPlansPlanOtsDetailInput

func (GetOtsBackupPlansPlanOtsDetailArray) ElementType

func (GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutput

func (i GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput

func (GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext

func (i GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput

type GetOtsBackupPlansPlanOtsDetailArrayInput

type GetOtsBackupPlansPlanOtsDetailArrayInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput
	ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput
}

GetOtsBackupPlansPlanOtsDetailArrayInput is an input type that accepts GetOtsBackupPlansPlanOtsDetailArray and GetOtsBackupPlansPlanOtsDetailArrayOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanOtsDetailArrayInput` via:

GetOtsBackupPlansPlanOtsDetailArray{ GetOtsBackupPlansPlanOtsDetailArgs{...} }

type GetOtsBackupPlansPlanOtsDetailArrayOutput

type GetOtsBackupPlansPlanOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ElementType

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) Index

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutput

func (o GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext

func (o GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput

type GetOtsBackupPlansPlanOtsDetailInput

type GetOtsBackupPlansPlanOtsDetailInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput
	ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(context.Context) GetOtsBackupPlansPlanOtsDetailOutput
}

GetOtsBackupPlansPlanOtsDetailInput is an input type that accepts GetOtsBackupPlansPlanOtsDetailArgs and GetOtsBackupPlansPlanOtsDetailOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanOtsDetailInput` via:

GetOtsBackupPlansPlanOtsDetailArgs{...}

type GetOtsBackupPlansPlanOtsDetailOutput

type GetOtsBackupPlansPlanOtsDetailOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOtsDetailOutput) ElementType

func (GetOtsBackupPlansPlanOtsDetailOutput) TableNames

func (GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutput

func (o GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput

func (GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext

func (o GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailOutput

type GetOtsBackupPlansPlanOutput

type GetOtsBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOutput) BackupType

The Backup type. Valid values: `COMPLETE`.

func (GetOtsBackupPlansPlanOutput) CreatedTime

The creation time of the backup plan. UNIX time in seconds.

func (GetOtsBackupPlansPlanOutput) Disabled

Whether to be suspended. Valid values: `true`, `false`.

func (GetOtsBackupPlansPlanOutput) ElementType

func (GetOtsBackupPlansPlanOutput) Id

The ID of ots backup plan.

func (GetOtsBackupPlansPlanOutput) OtsBackupPlanId

func (o GetOtsBackupPlansPlanOutput) OtsBackupPlanId() pulumi.StringOutput

The ID of ots backup plan.

func (GetOtsBackupPlansPlanOutput) OtsBackupPlanName

func (o GetOtsBackupPlansPlanOutput) OtsBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (GetOtsBackupPlansPlanOutput) OtsDetails

func (GetOtsBackupPlansPlanOutput) Retention

The Backup retention days, the minimum is 1.

func (GetOtsBackupPlansPlanOutput) Schedule

The Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task is not completed yet, the next backup task will not be triggered.

func (GetOtsBackupPlansPlanOutput) SourceType

The type of the data source.

func (GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutput

func (o GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutputWithContext

func (o GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanOutput) UpdatedTime

The update time of the backup plan. UNIX time in seconds. *ots_detail - The details about the Tablestore instance.

func (GetOtsBackupPlansPlanOutput) VaultId

The ID of backup vault.

type GetOtsBackupPlansResult

type GetOtsBackupPlansResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	PlanId     *string                 `pulumi:"planId"`
	PlanName   *string                 `pulumi:"planName"`
	Plans      []GetOtsBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getOtsBackupPlans.

func GetOtsBackupPlans

func GetOtsBackupPlans(ctx *pulumi.Context, args *GetOtsBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetOtsBackupPlansResult, error)

This data source provides the Hbr OtsBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.163.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.GetOtsBackupPlans(ctx, &hbr.GetOtsBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-otsBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrOtsBackupPlanId", data.Alicloud_hbr_ots_backup_plans.Plans[0].Id)
		return nil
	})
}

```

type GetOtsBackupPlansResultOutput

type GetOtsBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOtsBackupPlans.

func (GetOtsBackupPlansResultOutput) ElementType

func (GetOtsBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetOtsBackupPlansResultOutput) Ids

func (GetOtsBackupPlansResultOutput) NameRegex

func (GetOtsBackupPlansResultOutput) Names

func (GetOtsBackupPlansResultOutput) OutputFile

func (GetOtsBackupPlansResultOutput) PlanId

func (GetOtsBackupPlansResultOutput) PlanName

func (GetOtsBackupPlansResultOutput) Plans

func (GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutput

func (o GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutput() GetOtsBackupPlansResultOutput

func (GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutputWithContext

func (o GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutputWithContext(ctx context.Context) GetOtsBackupPlansResultOutput

func (GetOtsBackupPlansResultOutput) VaultId

type GetOtsSnapshotsArgs

type GetOtsSnapshotsArgs struct {
	// The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
	EndTime    *string  `pulumi:"endTime"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime *string `pulumi:"startTime"`
}

A collection of arguments for invoking getOtsSnapshots.

type GetOtsSnapshotsOutputArgs

type GetOtsSnapshotsOutputArgs struct {
	// The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
	EndTime    pulumi.StringPtrInput   `pulumi:"endTime"`
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime pulumi.StringPtrInput `pulumi:"startTime"`
}

A collection of arguments for invoking getOtsSnapshots.

func (GetOtsSnapshotsOutputArgs) ElementType

func (GetOtsSnapshotsOutputArgs) ElementType() reflect.Type

type GetOtsSnapshotsResult

type GetOtsSnapshotsResult struct {
	EndTime *string `pulumi:"endTime"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                    `pulumi:"id"`
	Ids        []string                  `pulumi:"ids"`
	OutputFile *string                   `pulumi:"outputFile"`
	Snapshots  []GetOtsSnapshotsSnapshot `pulumi:"snapshots"`
	StartTime  *string                   `pulumi:"startTime"`
}

A collection of values returned by getOtsSnapshots.

func GetOtsSnapshots

func GetOtsSnapshots(ctx *pulumi.Context, args *GetOtsSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetOtsSnapshotsResult, error)

This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.164.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.GetOtsSnapshots(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOtsSnapshotsResultOutput

type GetOtsSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOtsSnapshots.

func (GetOtsSnapshotsResultOutput) ElementType

func (GetOtsSnapshotsResultOutput) EndTime

func (GetOtsSnapshotsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetOtsSnapshotsResultOutput) Ids

func (GetOtsSnapshotsResultOutput) OutputFile

func (GetOtsSnapshotsResultOutput) Snapshots

func (GetOtsSnapshotsResultOutput) StartTime

func (GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutput

func (o GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutput() GetOtsSnapshotsResultOutput

func (GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutputWithContext

func (o GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutputWithContext(ctx context.Context) GetOtsSnapshotsResultOutput

type GetOtsSnapshotsSnapshot

type GetOtsSnapshotsSnapshot struct {
	// The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
	ActualBytes string `pulumi:"actualBytes"`
	// The backup type. Valid value: `COMPLETE`, which indicates full backup.
	BackupType string `pulumi:"backupType"`
	// The total amount of data. Unit: bytes.
	BytesTotal string `pulumi:"bytesTotal"`
	// The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
	CompleteTime string `pulumi:"completeTime"`
	// The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
	CreateTime string `pulumi:"createTime"`
	// The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.
	CreatedTime string `pulumi:"createdTime"`
	// The ID of the backup snapshot.
	Id string `pulumi:"id"`
	// The name of the Table store instance.
	InstanceName string `pulumi:"instanceName"`
	// The ID of the backup job.
	JobId string `pulumi:"jobId"`
	// The hash value of the parent backup snapshot.
	ParentSnapshotHash string `pulumi:"parentSnapshotHash"`
	// The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
	RangeEnd string `pulumi:"rangeEnd"`
	// The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.
	RangeStart string `pulumi:"rangeStart"`
	// The retention period of the backup snapshot.
	Retention string `pulumi:"retention"`
	// The hash value of the backup snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of the backup snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`
	SourceType string `pulumi:"sourceType"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime string `pulumi:"startTime"`
	// The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.
	Status string `pulumi:"status"`
	// The name of the table in the Table store instance.
	TableName string `pulumi:"tableName"`
	// The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of the backup vault that stores the backup snapshot.
	VaultId string `pulumi:"vaultId"`
}

type GetOtsSnapshotsSnapshotArgs

type GetOtsSnapshotsSnapshotArgs struct {
	// The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The backup type. Valid value: `COMPLETE`, which indicates full backup.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The total amount of data. Unit: bytes.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// The ID of the backup snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the Table store instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The ID of the backup job.
	JobId pulumi.StringInput `pulumi:"jobId"`
	// The hash value of the parent backup snapshot.
	ParentSnapshotHash pulumi.StringInput `pulumi:"parentSnapshotHash"`
	// The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
	RangeEnd pulumi.StringInput `pulumi:"rangeEnd"`
	// The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.
	RangeStart pulumi.StringInput `pulumi:"rangeStart"`
	// The retention period of the backup snapshot.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The hash value of the backup snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of the backup snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The name of the table in the Table store instance.
	TableName pulumi.StringInput `pulumi:"tableName"`
	// The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of the backup vault that stores the backup snapshot.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOtsSnapshotsSnapshotArgs) ElementType

func (GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutput

func (i GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutputWithContext

func (i GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotOutput

type GetOtsSnapshotsSnapshotArray

type GetOtsSnapshotsSnapshotArray []GetOtsSnapshotsSnapshotInput

func (GetOtsSnapshotsSnapshotArray) ElementType

func (GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutput

func (i GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput

func (GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutputWithContext

func (i GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotArrayOutput

type GetOtsSnapshotsSnapshotArrayInput

type GetOtsSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput
	ToGetOtsSnapshotsSnapshotArrayOutputWithContext(context.Context) GetOtsSnapshotsSnapshotArrayOutput
}

GetOtsSnapshotsSnapshotArrayInput is an input type that accepts GetOtsSnapshotsSnapshotArray and GetOtsSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetOtsSnapshotsSnapshotArrayInput` via:

GetOtsSnapshotsSnapshotArray{ GetOtsSnapshotsSnapshotArgs{...} }

type GetOtsSnapshotsSnapshotArrayOutput

type GetOtsSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetOtsSnapshotsSnapshotArrayOutput) ElementType

func (GetOtsSnapshotsSnapshotArrayOutput) Index

func (GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutput

func (o GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput

func (GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutputWithContext

func (o GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotArrayOutput

type GetOtsSnapshotsSnapshotInput

type GetOtsSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput
	ToGetOtsSnapshotsSnapshotOutputWithContext(context.Context) GetOtsSnapshotsSnapshotOutput
}

GetOtsSnapshotsSnapshotInput is an input type that accepts GetOtsSnapshotsSnapshotArgs and GetOtsSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetOtsSnapshotsSnapshotInput` via:

GetOtsSnapshotsSnapshotArgs{...}

type GetOtsSnapshotsSnapshotOutput

type GetOtsSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetOtsSnapshotsSnapshotOutput) ActualBytes

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

func (GetOtsSnapshotsSnapshotOutput) BackupType

The backup type. Valid value: `COMPLETE`, which indicates full backup.

func (GetOtsSnapshotsSnapshotOutput) BytesTotal

The total amount of data. Unit: bytes.

func (GetOtsSnapshotsSnapshotOutput) CompleteTime

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) CreateTime

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) CreatedTime

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) ElementType

func (GetOtsSnapshotsSnapshotOutput) Id

The ID of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) InstanceName

The name of the Table store instance.

func (GetOtsSnapshotsSnapshotOutput) JobId

The ID of the backup job.

func (GetOtsSnapshotsSnapshotOutput) ParentSnapshotHash

func (o GetOtsSnapshotsSnapshotOutput) ParentSnapshotHash() pulumi.StringOutput

The hash value of the parent backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) RangeEnd

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

func (GetOtsSnapshotsSnapshotOutput) RangeStart

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

func (GetOtsSnapshotsSnapshotOutput) Retention

The retention period of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SnapshotHash

The hash value of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SnapshotId

The ID of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SourceType

The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`

func (GetOtsSnapshotsSnapshotOutput) StartTime

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) Status

The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.

func (GetOtsSnapshotsSnapshotOutput) TableName

The name of the table in the Table store instance.

func (GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutput

func (o GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutputWithContext

func (o GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotOutput) UpdatedTime

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) VaultId

The ID of the backup vault that stores the backup snapshot.

type GetReplicationVaultRegionsArgs

type GetReplicationVaultRegionsArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getReplicationVaultRegions.

type GetReplicationVaultRegionsOutputArgs

type GetReplicationVaultRegionsOutputArgs struct {
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getReplicationVaultRegions.

func (GetReplicationVaultRegionsOutputArgs) ElementType

type GetReplicationVaultRegionsRegion

type GetReplicationVaultRegionsRegion struct {
	// The ID of the replication region.
	ReplicationRegionId string `pulumi:"replicationRegionId"`
}

type GetReplicationVaultRegionsRegionArgs

type GetReplicationVaultRegionsRegionArgs struct {
	// The ID of the replication region.
	ReplicationRegionId pulumi.StringInput `pulumi:"replicationRegionId"`
}

func (GetReplicationVaultRegionsRegionArgs) ElementType

func (GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutput

func (i GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput

func (GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutputWithContext

func (i GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionOutput

type GetReplicationVaultRegionsRegionArray

type GetReplicationVaultRegionsRegionArray []GetReplicationVaultRegionsRegionInput

func (GetReplicationVaultRegionsRegionArray) ElementType

func (GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutput

func (i GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput

func (GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutputWithContext

func (i GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionArrayOutput

type GetReplicationVaultRegionsRegionArrayInput

type GetReplicationVaultRegionsRegionArrayInput interface {
	pulumi.Input

	ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput
	ToGetReplicationVaultRegionsRegionArrayOutputWithContext(context.Context) GetReplicationVaultRegionsRegionArrayOutput
}

GetReplicationVaultRegionsRegionArrayInput is an input type that accepts GetReplicationVaultRegionsRegionArray and GetReplicationVaultRegionsRegionArrayOutput values. You can construct a concrete instance of `GetReplicationVaultRegionsRegionArrayInput` via:

GetReplicationVaultRegionsRegionArray{ GetReplicationVaultRegionsRegionArgs{...} }

type GetReplicationVaultRegionsRegionArrayOutput

type GetReplicationVaultRegionsRegionArrayOutput struct{ *pulumi.OutputState }

func (GetReplicationVaultRegionsRegionArrayOutput) ElementType

func (GetReplicationVaultRegionsRegionArrayOutput) Index

func (GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutput

func (o GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput

func (GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutputWithContext

func (o GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionArrayOutput

type GetReplicationVaultRegionsRegionInput

type GetReplicationVaultRegionsRegionInput interface {
	pulumi.Input

	ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput
	ToGetReplicationVaultRegionsRegionOutputWithContext(context.Context) GetReplicationVaultRegionsRegionOutput
}

GetReplicationVaultRegionsRegionInput is an input type that accepts GetReplicationVaultRegionsRegionArgs and GetReplicationVaultRegionsRegionOutput values. You can construct a concrete instance of `GetReplicationVaultRegionsRegionInput` via:

GetReplicationVaultRegionsRegionArgs{...}

type GetReplicationVaultRegionsRegionOutput

type GetReplicationVaultRegionsRegionOutput struct{ *pulumi.OutputState }

func (GetReplicationVaultRegionsRegionOutput) ElementType

func (GetReplicationVaultRegionsRegionOutput) ReplicationRegionId

The ID of the replication region.

func (GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutput

func (o GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput

func (GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutputWithContext

func (o GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionOutput

type GetReplicationVaultRegionsResult

type GetReplicationVaultRegionsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                             `pulumi:"id"`
	OutputFile *string                            `pulumi:"outputFile"`
	Regions    []GetReplicationVaultRegionsRegion `pulumi:"regions"`
}

A collection of values returned by getReplicationVaultRegions.

func GetReplicationVaultRegions

func GetReplicationVaultRegions(ctx *pulumi.Context, args *GetReplicationVaultRegionsArgs, opts ...pulumi.InvokeOption) (*GetReplicationVaultRegionsResult, error)

This data source provides the HBR Replication Vault Regions of the current Alibaba Cloud user.

> **NOTE:** Available in v1.152.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := hbr.GetReplicationVaultRegions(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrReplicationVaultRegionRegionId1", _default.Regions[0].ReplicationRegionId)
		return nil
	})
}

```

type GetReplicationVaultRegionsResultOutput

type GetReplicationVaultRegionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getReplicationVaultRegions.

func (GetReplicationVaultRegionsResultOutput) ElementType

func (GetReplicationVaultRegionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetReplicationVaultRegionsResultOutput) OutputFile

func (GetReplicationVaultRegionsResultOutput) Regions

func (GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutput

func (o GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutput() GetReplicationVaultRegionsResultOutput

func (GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutputWithContext

func (o GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutputWithContext(ctx context.Context) GetReplicationVaultRegionsResultOutput

type GetRestoreJobsArgs

type GetRestoreJobsArgs struct {
	OutputFile *string `pulumi:"outputFile"`
	// The list of restore job IDs.
	RestoreIds []string `pulumi:"restoreIds"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType string `pulumi:"restoreType"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceTypes []string `pulumi:"sourceTypes"`
	// The status of restore job.
	Status *string `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBuckets []string `pulumi:"targetBuckets"`
	// The ID of destination file system.
	TargetFileSystemIds []string `pulumi:"targetFileSystemIds"`
	// The ID of target ECS instance.
	TargetInstanceIds []string `pulumi:"targetInstanceIds"`
	// The ID of backup vault.
	VaultIds []string `pulumi:"vaultIds"`
}

A collection of arguments for invoking getRestoreJobs.

type GetRestoreJobsJob

type GetRestoreJobsJob struct {
	// The actual size of Snapshot.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of files.
	ActualItems string `pulumi:"actualItems"`
	// The size of restore job recovered.
	BytesDone string `pulumi:"bytesDone"`
	// The total size of restore job recovered.
	BytesTotal string `pulumi:"bytesTotal"`
	// The completion time of restore Job.
	CompleteTime string `pulumi:"completeTime"`
	// The creation time of restore job.
	CreateTime string `pulumi:"createTime"`
	ErrorFile  string `pulumi:"errorFile"`
	// The error message of recovery task execution.
	ErrorMessage string `pulumi:"errorMessage"`
	// The expiration time of restore job. Unix Time in seconds.
	ExpireTime string `pulumi:"expireTime"`
	// The ID of the restore job.
	Id string `pulumi:"id"`
	// The number of items restore job recovered.
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal string `pulumi:"itemsTotal"`
	// Recovery Options.
	Options  string `pulumi:"options"`
	ParentId string `pulumi:"parentId"`
	// The recovery progress.
	Progress int `pulumi:"progress"`
	// The ID of restore job.
	RestoreJobId string `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType string `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceType string `pulumi:"sourceType"`
	// The start time of restore job. Unix Time in Seconds.
	StartTime string `pulumi:"startTime"`
	// The status of restore job.
	Status string `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBucket   string `pulumi:"targetBucket"`
	TargetClientId string `pulumi:"targetClientId"`
	// The creation time of destination file system.
	TargetCreateTime   string `pulumi:"targetCreateTime"`
	TargetDataSourceId string `pulumi:"targetDataSourceId"`
	// The ID of destination file system.
	TargetFileSystemId string `pulumi:"targetFileSystemId"`
	// The ID of target ECS instance.
	TargetInstanceId string `pulumi:"targetInstanceId"`
	// The target file path of ECS instance.
	TargetPath string `pulumi:"targetPath"`
	// The file prefix of target OSS object.
	TargetPrefix string `pulumi:"targetPrefix"`
	// The update Time of restore job. Unix Time in Seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetRestoreJobsJobArgs

type GetRestoreJobsJobArgs struct {
	// The actual size of Snapshot.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of files.
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// The size of restore job recovered.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total size of restore job recovered.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The completion time of restore Job.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The creation time of restore job.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	ErrorFile  pulumi.StringInput `pulumi:"errorFile"`
	// The error message of recovery task execution.
	ErrorMessage pulumi.StringInput `pulumi:"errorMessage"`
	// The expiration time of restore job. Unix Time in seconds.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The ID of the restore job.
	Id pulumi.StringInput `pulumi:"id"`
	// The number of items restore job recovered.
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// Recovery Options.
	Options  pulumi.StringInput `pulumi:"options"`
	ParentId pulumi.StringInput `pulumi:"parentId"`
	// The recovery progress.
	Progress pulumi.IntInput `pulumi:"progress"`
	// The ID of restore job.
	RestoreJobId pulumi.StringInput `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType pulumi.StringInput `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of restore job. Unix Time in Seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of restore job.
	Status pulumi.StringInput `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBucket   pulumi.StringInput `pulumi:"targetBucket"`
	TargetClientId pulumi.StringInput `pulumi:"targetClientId"`
	// The creation time of destination file system.
	TargetCreateTime   pulumi.StringInput `pulumi:"targetCreateTime"`
	TargetDataSourceId pulumi.StringInput `pulumi:"targetDataSourceId"`
	// The ID of destination file system.
	TargetFileSystemId pulumi.StringInput `pulumi:"targetFileSystemId"`
	// The ID of target ECS instance.
	TargetInstanceId pulumi.StringInput `pulumi:"targetInstanceId"`
	// The target file path of ECS instance.
	TargetPath pulumi.StringInput `pulumi:"targetPath"`
	// The file prefix of target OSS object.
	TargetPrefix pulumi.StringInput `pulumi:"targetPrefix"`
	// The update Time of restore job. Unix Time in Seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetRestoreJobsJobArgs) ElementType

func (GetRestoreJobsJobArgs) ElementType() reflect.Type

func (GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutput

func (i GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput

func (GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutputWithContext

func (i GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutputWithContext(ctx context.Context) GetRestoreJobsJobOutput

type GetRestoreJobsJobArray

type GetRestoreJobsJobArray []GetRestoreJobsJobInput

func (GetRestoreJobsJobArray) ElementType

func (GetRestoreJobsJobArray) ElementType() reflect.Type

func (GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutput

func (i GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput

func (GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutputWithContext

func (i GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutputWithContext(ctx context.Context) GetRestoreJobsJobArrayOutput

type GetRestoreJobsJobArrayInput

type GetRestoreJobsJobArrayInput interface {
	pulumi.Input

	ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput
	ToGetRestoreJobsJobArrayOutputWithContext(context.Context) GetRestoreJobsJobArrayOutput
}

GetRestoreJobsJobArrayInput is an input type that accepts GetRestoreJobsJobArray and GetRestoreJobsJobArrayOutput values. You can construct a concrete instance of `GetRestoreJobsJobArrayInput` via:

GetRestoreJobsJobArray{ GetRestoreJobsJobArgs{...} }

type GetRestoreJobsJobArrayOutput

type GetRestoreJobsJobArrayOutput struct{ *pulumi.OutputState }

func (GetRestoreJobsJobArrayOutput) ElementType

func (GetRestoreJobsJobArrayOutput) Index

func (GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutput

func (o GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput

func (GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutputWithContext

func (o GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutputWithContext(ctx context.Context) GetRestoreJobsJobArrayOutput

type GetRestoreJobsJobInput

type GetRestoreJobsJobInput interface {
	pulumi.Input

	ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput
	ToGetRestoreJobsJobOutputWithContext(context.Context) GetRestoreJobsJobOutput
}

GetRestoreJobsJobInput is an input type that accepts GetRestoreJobsJobArgs and GetRestoreJobsJobOutput values. You can construct a concrete instance of `GetRestoreJobsJobInput` via:

GetRestoreJobsJobArgs{...}

type GetRestoreJobsJobOutput

type GetRestoreJobsJobOutput struct{ *pulumi.OutputState }

func (GetRestoreJobsJobOutput) ActualBytes

The actual size of Snapshot.

func (GetRestoreJobsJobOutput) ActualItems

The actual number of files.

func (GetRestoreJobsJobOutput) BytesDone

The size of restore job recovered.

func (GetRestoreJobsJobOutput) BytesTotal

The total size of restore job recovered.

func (GetRestoreJobsJobOutput) CompleteTime

func (o GetRestoreJobsJobOutput) CompleteTime() pulumi.StringOutput

The completion time of restore Job.

func (GetRestoreJobsJobOutput) CreateTime

The creation time of restore job.

func (GetRestoreJobsJobOutput) ElementType

func (GetRestoreJobsJobOutput) ElementType() reflect.Type

func (GetRestoreJobsJobOutput) ErrorFile

func (GetRestoreJobsJobOutput) ErrorMessage

func (o GetRestoreJobsJobOutput) ErrorMessage() pulumi.StringOutput

The error message of recovery task execution.

func (GetRestoreJobsJobOutput) ExpireTime

The expiration time of restore job. Unix Time in seconds.

func (GetRestoreJobsJobOutput) Id

The ID of the restore job.

func (GetRestoreJobsJobOutput) ItemsDone

The number of items restore job recovered.

func (GetRestoreJobsJobOutput) ItemsTotal

The total number of items restore job recovered.

func (GetRestoreJobsJobOutput) Options

Recovery Options.

func (GetRestoreJobsJobOutput) ParentId

func (GetRestoreJobsJobOutput) Progress

The recovery progress.

func (GetRestoreJobsJobOutput) RestoreJobId

func (o GetRestoreJobsJobOutput) RestoreJobId() pulumi.StringOutput

The ID of restore job.

func (GetRestoreJobsJobOutput) RestoreType

The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.

func (GetRestoreJobsJobOutput) SnapshotHash

func (o GetRestoreJobsJobOutput) SnapshotHash() pulumi.StringOutput

The hashcode of Snapshot.

func (GetRestoreJobsJobOutput) SnapshotId

The ID of Snapshot.

func (GetRestoreJobsJobOutput) SourceType

The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.

func (GetRestoreJobsJobOutput) StartTime

The start time of restore job. Unix Time in Seconds.

func (GetRestoreJobsJobOutput) Status

The status of restore job.

func (GetRestoreJobsJobOutput) TargetBucket

func (o GetRestoreJobsJobOutput) TargetBucket() pulumi.StringOutput

The name of target ofo OSS bucket.

func (GetRestoreJobsJobOutput) TargetClientId

func (o GetRestoreJobsJobOutput) TargetClientId() pulumi.StringOutput

func (GetRestoreJobsJobOutput) TargetCreateTime

func (o GetRestoreJobsJobOutput) TargetCreateTime() pulumi.StringOutput

The creation time of destination file system.

func (GetRestoreJobsJobOutput) TargetDataSourceId

func (o GetRestoreJobsJobOutput) TargetDataSourceId() pulumi.StringOutput

func (GetRestoreJobsJobOutput) TargetFileSystemId

func (o GetRestoreJobsJobOutput) TargetFileSystemId() pulumi.StringOutput

The ID of destination file system.

func (GetRestoreJobsJobOutput) TargetInstanceId

func (o GetRestoreJobsJobOutput) TargetInstanceId() pulumi.StringOutput

The ID of target ECS instance.

func (GetRestoreJobsJobOutput) TargetPath

The target file path of ECS instance.

func (GetRestoreJobsJobOutput) TargetPrefix

func (o GetRestoreJobsJobOutput) TargetPrefix() pulumi.StringOutput

The file prefix of target OSS object.

func (GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutput

func (o GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput

func (GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutputWithContext

func (o GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutputWithContext(ctx context.Context) GetRestoreJobsJobOutput

func (GetRestoreJobsJobOutput) UpdatedTime

The update Time of restore job. Unix Time in Seconds.

func (GetRestoreJobsJobOutput) VaultId

The ID of backup vault.

type GetRestoreJobsOutputArgs

type GetRestoreJobsOutputArgs struct {
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The list of restore job IDs.
	RestoreIds pulumi.StringArrayInput `pulumi:"restoreIds"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType pulumi.StringInput `pulumi:"restoreType"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceTypes pulumi.StringArrayInput `pulumi:"sourceTypes"`
	// The status of restore job.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBuckets pulumi.StringArrayInput `pulumi:"targetBuckets"`
	// The ID of destination file system.
	TargetFileSystemIds pulumi.StringArrayInput `pulumi:"targetFileSystemIds"`
	// The ID of target ECS instance.
	TargetInstanceIds pulumi.StringArrayInput `pulumi:"targetInstanceIds"`
	// The ID of backup vault.
	VaultIds pulumi.StringArrayInput `pulumi:"vaultIds"`
}

A collection of arguments for invoking getRestoreJobs.

func (GetRestoreJobsOutputArgs) ElementType

func (GetRestoreJobsOutputArgs) ElementType() reflect.Type

type GetRestoreJobsResult

type GetRestoreJobsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id                  string              `pulumi:"id"`
	Ids                 []string            `pulumi:"ids"`
	Jobs                []GetRestoreJobsJob `pulumi:"jobs"`
	OutputFile          *string             `pulumi:"outputFile"`
	RestoreIds          []string            `pulumi:"restoreIds"`
	RestoreType         string              `pulumi:"restoreType"`
	SourceTypes         []string            `pulumi:"sourceTypes"`
	Status              *string             `pulumi:"status"`
	TargetBuckets       []string            `pulumi:"targetBuckets"`
	TargetFileSystemIds []string            `pulumi:"targetFileSystemIds"`
	TargetInstanceIds   []string            `pulumi:"targetInstanceIds"`
	VaultIds            []string            `pulumi:"vaultIds"`
}

A collection of values returned by getRestoreJobs.

func GetRestoreJobs

func GetRestoreJobs(ctx *pulumi.Context, args *GetRestoreJobsArgs, opts ...pulumi.InvokeOption) (*GetRestoreJobsResult, error)

This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.133.0+.

type GetRestoreJobsResultOutput

type GetRestoreJobsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRestoreJobs.

func (GetRestoreJobsResultOutput) ElementType

func (GetRestoreJobsResultOutput) ElementType() reflect.Type

func (GetRestoreJobsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRestoreJobsResultOutput) Ids

func (GetRestoreJobsResultOutput) Jobs

func (GetRestoreJobsResultOutput) OutputFile

func (GetRestoreJobsResultOutput) RestoreIds

func (GetRestoreJobsResultOutput) RestoreType

func (GetRestoreJobsResultOutput) SourceTypes

func (GetRestoreJobsResultOutput) Status

func (GetRestoreJobsResultOutput) TargetBuckets

func (GetRestoreJobsResultOutput) TargetFileSystemIds

func (o GetRestoreJobsResultOutput) TargetFileSystemIds() pulumi.StringArrayOutput

func (GetRestoreJobsResultOutput) TargetInstanceIds

func (o GetRestoreJobsResultOutput) TargetInstanceIds() pulumi.StringArrayOutput

func (GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutput

func (o GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutput() GetRestoreJobsResultOutput

func (GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutputWithContext

func (o GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutputWithContext(ctx context.Context) GetRestoreJobsResultOutput

func (GetRestoreJobsResultOutput) VaultIds

type GetServerBackupPlansArgs

type GetServerBackupPlansArgs struct {
	// The filters.
	Filters []GetServerBackupPlansFilter `pulumi:"filters"`
	// A list of Server Backup Plan IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerBackupPlans.

type GetServerBackupPlansFilter

type GetServerBackupPlansFilter struct {
	// The key of the field to filter. Valid values: `planId`, `instanceId`, `planName`.
	Key *string `pulumi:"key"`
	// Set of values that are accepted for the given field.
	Values []string `pulumi:"values"`
}

type GetServerBackupPlansFilterArgs

type GetServerBackupPlansFilterArgs struct {
	// The key of the field to filter. Valid values: `planId`, `instanceId`, `planName`.
	Key pulumi.StringPtrInput `pulumi:"key"`
	// Set of values that are accepted for the given field.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetServerBackupPlansFilterArgs) ElementType

func (GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutput

func (i GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutputWithContext

func (i GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutputWithContext(ctx context.Context) GetServerBackupPlansFilterOutput

type GetServerBackupPlansFilterArray

type GetServerBackupPlansFilterArray []GetServerBackupPlansFilterInput

func (GetServerBackupPlansFilterArray) ElementType

func (GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutput

func (i GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput

func (GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutputWithContext

func (i GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutputWithContext(ctx context.Context) GetServerBackupPlansFilterArrayOutput

type GetServerBackupPlansFilterArrayInput

type GetServerBackupPlansFilterArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput
	ToGetServerBackupPlansFilterArrayOutputWithContext(context.Context) GetServerBackupPlansFilterArrayOutput
}

GetServerBackupPlansFilterArrayInput is an input type that accepts GetServerBackupPlansFilterArray and GetServerBackupPlansFilterArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansFilterArrayInput` via:

GetServerBackupPlansFilterArray{ GetServerBackupPlansFilterArgs{...} }

type GetServerBackupPlansFilterArrayOutput

type GetServerBackupPlansFilterArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansFilterArrayOutput) ElementType

func (GetServerBackupPlansFilterArrayOutput) Index

func (GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutput

func (o GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput

func (GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutputWithContext

func (o GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutputWithContext(ctx context.Context) GetServerBackupPlansFilterArrayOutput

type GetServerBackupPlansFilterInput

type GetServerBackupPlansFilterInput interface {
	pulumi.Input

	ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput
	ToGetServerBackupPlansFilterOutputWithContext(context.Context) GetServerBackupPlansFilterOutput
}

GetServerBackupPlansFilterInput is an input type that accepts GetServerBackupPlansFilterArgs and GetServerBackupPlansFilterOutput values. You can construct a concrete instance of `GetServerBackupPlansFilterInput` via:

GetServerBackupPlansFilterArgs{...}

type GetServerBackupPlansFilterOutput

type GetServerBackupPlansFilterOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansFilterOutput) ElementType

func (GetServerBackupPlansFilterOutput) Key

The key of the field to filter. Valid values: `planId`, `instanceId`, `planName`.

func (GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutput

func (o GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutputWithContext

func (o GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutputWithContext(ctx context.Context) GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterOutput) Values

Set of values that are accepted for the given field.

type GetServerBackupPlansOutputArgs

type GetServerBackupPlansOutputArgs struct {
	// The filters.
	Filters GetServerBackupPlansFilterArrayInput `pulumi:"filters"`
	// A list of Server Backup Plan IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerBackupPlans.

func (GetServerBackupPlansOutputArgs) ElementType

type GetServerBackupPlansPlan

type GetServerBackupPlansPlan struct {
	// The creation time of backup plan.
	CreateTime string `pulumi:"createTime"`
	// ECS server backup plan details.
	Details []GetServerBackupPlansPlanDetail `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of the server backup plan.
	EcsServerBackupPlanId string `pulumi:"ecsServerBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsServerBackupPlanName string `pulumi:"ecsServerBackupPlanName"`
	// The ID of the server backup plan.
	Id string `pulumi:"id"`
	// The ID of ECS Instance.
	InstanceId string `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// Backup strategy.
	Schedule string `pulumi:"schedule"`
}

type GetServerBackupPlansPlanArgs

type GetServerBackupPlansPlanArgs struct {
	// The creation time of backup plan.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ECS server backup plan details.
	Details GetServerBackupPlansPlanDetailArrayInput `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of the server backup plan.
	EcsServerBackupPlanId pulumi.StringInput `pulumi:"ecsServerBackupPlanId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsServerBackupPlanName pulumi.StringInput `pulumi:"ecsServerBackupPlanName"`
	// The ID of the server backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS Instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Backup strategy.
	Schedule pulumi.StringInput `pulumi:"schedule"`
}

func (GetServerBackupPlansPlanArgs) ElementType

func (GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutput

func (i GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput

func (GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutputWithContext

func (i GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutputWithContext(ctx context.Context) GetServerBackupPlansPlanOutput

type GetServerBackupPlansPlanArray

type GetServerBackupPlansPlanArray []GetServerBackupPlansPlanInput

func (GetServerBackupPlansPlanArray) ElementType

func (GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutput

func (i GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput

func (GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutputWithContext

func (i GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanArrayOutput

type GetServerBackupPlansPlanArrayInput

type GetServerBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput
	ToGetServerBackupPlansPlanArrayOutputWithContext(context.Context) GetServerBackupPlansPlanArrayOutput
}

GetServerBackupPlansPlanArrayInput is an input type that accepts GetServerBackupPlansPlanArray and GetServerBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanArrayInput` via:

GetServerBackupPlansPlanArray{ GetServerBackupPlansPlanArgs{...} }

type GetServerBackupPlansPlanArrayOutput

type GetServerBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanArrayOutput) ElementType

func (GetServerBackupPlansPlanArrayOutput) Index

func (GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutput

func (o GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput

func (GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutputWithContext

func (o GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanArrayOutput

type GetServerBackupPlansPlanDetail

type GetServerBackupPlansPlanDetail struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent bool `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId string `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention int `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists []string `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy bool `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze bool `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath string `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath string `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup bool `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds int `pulumi:"timeoutInSeconds"`
}

type GetServerBackupPlansPlanDetailArgs

type GetServerBackupPlansPlanDetailArgs struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent pulumi.BoolInput `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId pulumi.StringInput `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention pulumi.IntInput `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists pulumi.StringArrayInput `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy pulumi.BoolInput `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze pulumi.BoolInput `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath pulumi.StringInput `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath pulumi.StringInput `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup pulumi.BoolInput `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds pulumi.IntInput `pulumi:"timeoutInSeconds"`
}

func (GetServerBackupPlansPlanDetailArgs) ElementType

func (GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutput

func (i GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput

func (GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutputWithContext

func (i GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailOutput

type GetServerBackupPlansPlanDetailArray

type GetServerBackupPlansPlanDetailArray []GetServerBackupPlansPlanDetailInput

func (GetServerBackupPlansPlanDetailArray) ElementType

func (GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutput

func (i GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput

func (GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutputWithContext

func (i GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailArrayOutput

type GetServerBackupPlansPlanDetailArrayInput

type GetServerBackupPlansPlanDetailArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput
	ToGetServerBackupPlansPlanDetailArrayOutputWithContext(context.Context) GetServerBackupPlansPlanDetailArrayOutput
}

GetServerBackupPlansPlanDetailArrayInput is an input type that accepts GetServerBackupPlansPlanDetailArray and GetServerBackupPlansPlanDetailArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanDetailArrayInput` via:

GetServerBackupPlansPlanDetailArray{ GetServerBackupPlansPlanDetailArgs{...} }

type GetServerBackupPlansPlanDetailArrayOutput

type GetServerBackupPlansPlanDetailArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanDetailArrayOutput) ElementType

func (GetServerBackupPlansPlanDetailArrayOutput) Index

func (GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutput

func (o GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput

func (GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutputWithContext

func (o GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailArrayOutput

type GetServerBackupPlansPlanDetailInput

type GetServerBackupPlansPlanDetailInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput
	ToGetServerBackupPlansPlanDetailOutputWithContext(context.Context) GetServerBackupPlansPlanDetailOutput
}

GetServerBackupPlansPlanDetailInput is an input type that accepts GetServerBackupPlansPlanDetailArgs and GetServerBackupPlansPlanDetailOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanDetailInput` via:

GetServerBackupPlansPlanDetailArgs{...}

type GetServerBackupPlansPlanDetailOutput

type GetServerBackupPlansPlanDetailOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanDetailOutput) AppConsistent

Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.

func (GetServerBackupPlansPlanDetailOutput) DestinationRegionId

Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (GetServerBackupPlansPlanDetailOutput) DestinationRetention

func (o GetServerBackupPlansPlanDetailOutput) DestinationRetention() pulumi.IntOutput

Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (GetServerBackupPlansPlanDetailOutput) DiskIdLists

The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.

func (GetServerBackupPlansPlanDetailOutput) DoCopy

Whether replicate to another region. Valid values: `true`, `false`.

func (GetServerBackupPlansPlanDetailOutput) ElementType

func (GetServerBackupPlansPlanDetailOutput) EnableFsFreeze

Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.

func (GetServerBackupPlansPlanDetailOutput) PostScriptPath

Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (GetServerBackupPlansPlanDetailOutput) PreScriptPath

Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (GetServerBackupPlansPlanDetailOutput) SnapshotGroup

Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.

func (GetServerBackupPlansPlanDetailOutput) TimeoutInSeconds

Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.

func (GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutput

func (o GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput

func (GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutputWithContext

func (o GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailOutput

type GetServerBackupPlansPlanInput

type GetServerBackupPlansPlanInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput
	ToGetServerBackupPlansPlanOutputWithContext(context.Context) GetServerBackupPlansPlanOutput
}

GetServerBackupPlansPlanInput is an input type that accepts GetServerBackupPlansPlanArgs and GetServerBackupPlansPlanOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanInput` via:

GetServerBackupPlansPlanArgs{...}

type GetServerBackupPlansPlanOutput

type GetServerBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanOutput) CreateTime

The creation time of backup plan.

func (GetServerBackupPlansPlanOutput) Details

ECS server backup plan details.

func (GetServerBackupPlansPlanOutput) Disabled

Whether to disable the backup task. Valid values: `true`, `false`.

func (GetServerBackupPlansPlanOutput) EcsServerBackupPlanId

func (o GetServerBackupPlansPlanOutput) EcsServerBackupPlanId() pulumi.StringOutput

The ID of the server backup plan.

func (GetServerBackupPlansPlanOutput) EcsServerBackupPlanName

func (o GetServerBackupPlansPlanOutput) EcsServerBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (GetServerBackupPlansPlanOutput) ElementType

func (GetServerBackupPlansPlanOutput) Id

The ID of the server backup plan.

func (GetServerBackupPlansPlanOutput) InstanceId

The ID of ECS Instance.

func (GetServerBackupPlansPlanOutput) Retention

Backup retention days, the minimum is 1.

func (GetServerBackupPlansPlanOutput) Schedule

Backup strategy.

func (GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutput

func (o GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput

func (GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutputWithContext

func (o GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutputWithContext(ctx context.Context) GetServerBackupPlansPlanOutput

type GetServerBackupPlansResult

type GetServerBackupPlansResult struct {
	Filters []GetServerBackupPlansFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	OutputFile *string                    `pulumi:"outputFile"`
	Plans      []GetServerBackupPlansPlan `pulumi:"plans"`
}

A collection of values returned by getServerBackupPlans.

func GetServerBackupPlans

func GetServerBackupPlans(ctx *pulumi.Context, args *GetServerBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetServerBackupPlansResult, error)

This data source provides the Hbr Server Backup Plans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.142.0+.

type GetServerBackupPlansResultOutput

type GetServerBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerBackupPlans.

func (GetServerBackupPlansResultOutput) ElementType

func (GetServerBackupPlansResultOutput) Filters

func (GetServerBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerBackupPlansResultOutput) Ids

func (GetServerBackupPlansResultOutput) OutputFile

func (GetServerBackupPlansResultOutput) Plans

func (GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutput

func (o GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutput() GetServerBackupPlansResultOutput

func (GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutputWithContext

func (o GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutputWithContext(ctx context.Context) GetServerBackupPlansResultOutput

type GetSnapshotsArgs

type GetSnapshotsArgs struct {
	// The name of OSS bucket.
	Bucket *string `pulumi:"bucket"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime *string `pulumi:"completeTime"`
	// Complete time filter operator. Optional values: `MATCH_TERM`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`.
	CompleteTimeChecker *string `pulumi:"completeTimeChecker"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime *string `pulumi:"createTime"`
	// The ID of NAS File system.
	FileSystemId *string `pulumi:"fileSystemId"`
	// A list of Snapshot IDs.
	Ids []string `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId *string `pulumi:"instanceId"`
	Limit      *int    `pulumi:"limit"`
	OutputFile *string `pulumi:"outputFile"`
	Query      *string `pulumi:"query"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType string `pulumi:"sourceType"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status *string `pulumi:"status"`
	// The ID of Vault.
	VaultId string `pulumi:"vaultId"`
}

A collection of arguments for invoking getSnapshots.

type GetSnapshotsOutputArgs

type GetSnapshotsOutputArgs struct {
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime pulumi.StringPtrInput `pulumi:"completeTime"`
	// Complete time filter operator. Optional values: `MATCH_TERM`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`.
	CompleteTimeChecker pulumi.StringPtrInput `pulumi:"completeTimeChecker"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// The ID of NAS File system.
	FileSystemId pulumi.StringPtrInput `pulumi:"fileSystemId"`
	// A list of Snapshot IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	Limit      pulumi.IntPtrInput    `pulumi:"limit"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	Query      pulumi.StringPtrInput `pulumi:"query"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of Vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getSnapshots.

func (GetSnapshotsOutputArgs) ElementType

func (GetSnapshotsOutputArgs) ElementType() reflect.Type

type GetSnapshotsResult

type GetSnapshotsResult struct {
	Bucket              *string `pulumi:"bucket"`
	CompleteTime        *string `pulumi:"completeTime"`
	CompleteTimeChecker *string `pulumi:"completeTimeChecker"`
	CreateTime          *string `pulumi:"createTime"`
	FileSystemId        *string `pulumi:"fileSystemId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	InstanceId *string                `pulumi:"instanceId"`
	Limit      *int                   `pulumi:"limit"`
	OutputFile *string                `pulumi:"outputFile"`
	Query      *string                `pulumi:"query"`
	Snapshots  []GetSnapshotsSnapshot `pulumi:"snapshots"`
	SourceType string                 `pulumi:"sourceType"`
	Status     *string                `pulumi:"status"`
	VaultId    string                 `pulumi:"vaultId"`
}

A collection of values returned by getSnapshots.

func GetSnapshots

func GetSnapshots(ctx *pulumi.Context, args *GetSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetSnapshotsResult, error)

This data source provides the Hbr Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultEcsBackupPlans, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "ECS_FILE",
			VaultId:    defaultEcsBackupPlans.Plans[0].VaultId,
			InstanceId: pulumi.StringRef(defaultEcsBackupPlans.Plans[0].InstanceId),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:          "OSS",
			VaultId:             defaultOssBackupPlans.Plans[0].VaultId,
			Bucket:              pulumi.StringRef(defaultOssBackupPlans.Plans[0].Bucket),
			CompleteTime:        pulumi.StringRef("2021-07-20T14:17:15CST,2021-07-24T14:17:15CST"),
			CompleteTimeChecker: pulumi.StringRef("BETWEEN"),
		}, nil)
		if err != nil {
			return err
		}
		nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:          "NAS",
			VaultId:             defaultNasBackupPlans.Plans[0].VaultId,
			FileSystemId:        pulumi.StringRef(defaultNasBackupPlans.Plans[0].FileSystemId),
			CreateTime:          pulumi.StringRef(defaultNasBackupPlans.Plans[0].CreateTime),
			CompleteTime:        pulumi.StringRef("2021-08-23T14:17:15CST"),
			CompleteTimeChecker: pulumi.StringRef("GREATER_THAN_OR_EQUAL"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrSnapshotId1", nasSnapshots.Snapshots[0].Id)
		return nil
	})
}

```

type GetSnapshotsResultOutput

type GetSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSnapshots.

func (GetSnapshotsResultOutput) Bucket

func (GetSnapshotsResultOutput) CompleteTime

func (GetSnapshotsResultOutput) CompleteTimeChecker

func (o GetSnapshotsResultOutput) CompleteTimeChecker() pulumi.StringPtrOutput

func (GetSnapshotsResultOutput) CreateTime

func (GetSnapshotsResultOutput) ElementType

func (GetSnapshotsResultOutput) ElementType() reflect.Type

func (GetSnapshotsResultOutput) FileSystemId

func (GetSnapshotsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSnapshotsResultOutput) Ids

func (GetSnapshotsResultOutput) InstanceId

func (GetSnapshotsResultOutput) Limit

func (GetSnapshotsResultOutput) OutputFile

func (GetSnapshotsResultOutput) Query

func (GetSnapshotsResultOutput) Snapshots

func (GetSnapshotsResultOutput) SourceType

func (GetSnapshotsResultOutput) Status

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutput

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) VaultId

type GetSnapshotsSnapshot

type GetSnapshotsSnapshot struct {
	// The actual data volume of the snapshot. Unit byte.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of items in the snapshot. (Currently only file backup is available).
	ActualItems string `pulumi:"actualItems"`
	// Backup type. Possible values: `COMPLETE` (full backup).
	BackupType string `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The incremental amount of backup data. Unit byte.
	BytesDone string `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal string `pulumi:"bytesTotal"`
	// The ID of ECS backup client.
	ClientId string `pulumi:"clientId"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime string `pulumi:"completeTime"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime string `pulumi:"createTime"`
	// Snapshot creation time. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	ErrorFile   string `pulumi:"errorFile"`
	// The ID of NAS File system.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of the Snapshot.
	Id string `pulumi:"id"`
	// The ID of ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// The number of backup items. (Currently only file backup is available).
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of data source items. (Currently only file backup is available).
	ItemsTotal string `pulumi:"itemsTotal"`
	// The job ID of backup task.
	JobId string `pulumi:"jobId"`
	// The hashcode of parent backup snapshot.
	ParentSnapshotHash string `pulumi:"parentSnapshotHash"`
	// Backup Path.
	Path string `pulumi:"path"`
	// Backup file prefix.
	Prefix string `pulumi:"prefix"`
	// The number of days to keep.
	Retention string `pulumi:"retention"`
	// The hashcode of Snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of the Snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType string `pulumi:"sourceType"`
	// The start time of the snapshot. UNIX time in seconds.
	StartTime string `pulumi:"startTime"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status string `pulumi:"status"`
	// The update time of snapshot. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
}

type GetSnapshotsSnapshotArgs

type GetSnapshotsSnapshotArgs struct {
	// The actual data volume of the snapshot. Unit byte.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of items in the snapshot. (Currently only file backup is available).
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// Backup type. Possible values: `COMPLETE` (full backup).
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The incremental amount of backup data. Unit byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The ID of ECS backup client.
	ClientId pulumi.StringInput `pulumi:"clientId"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Snapshot creation time. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	ErrorFile   pulumi.StringInput `pulumi:"errorFile"`
	// The ID of NAS File system.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of the Snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The number of backup items. (Currently only file backup is available).
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of data source items. (Currently only file backup is available).
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// The job ID of backup task.
	JobId pulumi.StringInput `pulumi:"jobId"`
	// The hashcode of parent backup snapshot.
	ParentSnapshotHash pulumi.StringInput `pulumi:"parentSnapshotHash"`
	// Backup Path.
	Path pulumi.StringInput `pulumi:"path"`
	// Backup file prefix.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// The number of days to keep.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of the Snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of the snapshot. UNIX time in seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of snapshot. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
}

func (GetSnapshotsSnapshotArgs) ElementType

func (GetSnapshotsSnapshotArgs) ElementType() reflect.Type

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

type GetSnapshotsSnapshotArray

type GetSnapshotsSnapshotArray []GetSnapshotsSnapshotInput

func (GetSnapshotsSnapshotArray) ElementType

func (GetSnapshotsSnapshotArray) ElementType() reflect.Type

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotArrayInput

type GetSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput
	ToGetSnapshotsSnapshotArrayOutputWithContext(context.Context) GetSnapshotsSnapshotArrayOutput
}

GetSnapshotsSnapshotArrayInput is an input type that accepts GetSnapshotsSnapshotArray and GetSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotArrayInput` via:

GetSnapshotsSnapshotArray{ GetSnapshotsSnapshotArgs{...} }

type GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotArrayOutput) ElementType

func (GetSnapshotsSnapshotArrayOutput) Index

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotInput

type GetSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput
	ToGetSnapshotsSnapshotOutputWithContext(context.Context) GetSnapshotsSnapshotOutput
}

GetSnapshotsSnapshotInput is an input type that accepts GetSnapshotsSnapshotArgs and GetSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotInput` via:

GetSnapshotsSnapshotArgs{...}

type GetSnapshotsSnapshotOutput

type GetSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotOutput) ActualBytes

The actual data volume of the snapshot. Unit byte.

func (GetSnapshotsSnapshotOutput) ActualItems

The actual number of items in the snapshot. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) BackupType

Backup type. Possible values: `COMPLETE` (full backup).

func (GetSnapshotsSnapshotOutput) Bucket

The name of OSS bucket.

func (GetSnapshotsSnapshotOutput) BytesDone

The incremental amount of backup data. Unit byte.

func (GetSnapshotsSnapshotOutput) BytesTotal

The total amount of data sources. Unit byte.

func (GetSnapshotsSnapshotOutput) ClientId

The ID of ECS backup client.

func (GetSnapshotsSnapshotOutput) CompleteTime

The time when the snapshot completed. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) CreateTime

File System Creation Time of Nas. Unix Time Seconds.

func (GetSnapshotsSnapshotOutput) CreatedTime

Snapshot creation time. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) ElementType

func (GetSnapshotsSnapshotOutput) ElementType() reflect.Type

func (GetSnapshotsSnapshotOutput) ErrorFile

func (GetSnapshotsSnapshotOutput) FileSystemId

The ID of NAS File system.

func (GetSnapshotsSnapshotOutput) Id

The ID of the Snapshot.

func (GetSnapshotsSnapshotOutput) InstanceId

The ID of ECS instance.

func (GetSnapshotsSnapshotOutput) ItemsDone

The number of backup items. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) ItemsTotal

The total number of data source items. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) JobId

The job ID of backup task.

func (GetSnapshotsSnapshotOutput) ParentSnapshotHash

func (o GetSnapshotsSnapshotOutput) ParentSnapshotHash() pulumi.StringOutput

The hashcode of parent backup snapshot.

func (GetSnapshotsSnapshotOutput) Path

Backup Path.

func (GetSnapshotsSnapshotOutput) Prefix

Backup file prefix.

func (GetSnapshotsSnapshotOutput) Retention

The number of days to keep.

func (GetSnapshotsSnapshotOutput) SnapshotHash

The hashcode of Snapshot.

func (GetSnapshotsSnapshotOutput) SnapshotId

The ID of the Snapshot.

func (GetSnapshotsSnapshotOutput) SourceType

Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.

func (GetSnapshotsSnapshotOutput) StartTime

The start time of the snapshot. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) Status

The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotOutput) UpdatedTime

The update time of snapshot. UNIX time in seconds.

type GetVaultsArgs

type GetVaultsArgs struct {
	// A list of Vault IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Vault name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status *string `pulumi:"status"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType *string `pulumi:"vaultType"`
}

A collection of arguments for invoking getVaults.

type GetVaultsOutputArgs

type GetVaultsOutputArgs struct {
	// A list of Vault IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Vault name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringPtrInput `pulumi:"vaultType"`
}

A collection of arguments for invoking getVaults.

func (GetVaultsOutputArgs) ElementType

func (GetVaultsOutputArgs) ElementType() reflect.Type

type GetVaultsResult

type GetVaultsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	Ids        []string         `pulumi:"ids"`
	NameRegex  *string          `pulumi:"nameRegex"`
	Names      []string         `pulumi:"names"`
	OutputFile *string          `pulumi:"outputFile"`
	Status     *string          `pulumi:"status"`
	VaultType  *string          `pulumi:"vaultType"`
	Vaults     []GetVaultsVault `pulumi:"vaults"`
}

A collection of values returned by getVaults.

func GetVaults

func GetVaults(ctx *pulumi.Context, args *GetVaultsArgs, opts ...pulumi.InvokeOption) (*GetVaultsResult, error)

This data source provides the Hbr Vaults of the current Alibaba Cloud user.

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetVaults(ctx, &hbr.GetVaultsArgs{
			NameRegex: pulumi.StringRef("^my-Vault"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrVaultId1", ids.Vaults[0].Id)
		return nil
	})
}

```

type GetVaultsResultOutput

type GetVaultsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVaults.

func (GetVaultsResultOutput) ElementType

func (GetVaultsResultOutput) ElementType() reflect.Type

func (GetVaultsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVaultsResultOutput) Ids

func (GetVaultsResultOutput) NameRegex

func (GetVaultsResultOutput) Names

func (GetVaultsResultOutput) OutputFile

func (GetVaultsResultOutput) Status

func (GetVaultsResultOutput) ToGetVaultsResultOutput

func (o GetVaultsResultOutput) ToGetVaultsResultOutput() GetVaultsResultOutput

func (GetVaultsResultOutput) ToGetVaultsResultOutputWithContext

func (o GetVaultsResultOutput) ToGetVaultsResultOutputWithContext(ctx context.Context) GetVaultsResultOutput

func (GetVaultsResultOutput) VaultType

func (GetVaultsResultOutput) Vaults

type GetVaultsVault

type GetVaultsVault struct {
	// The name of the OSS bucket of the Vault.
	BucketName string `pulumi:"bucketName"`
	// The amount of backup data. The unit is Byte.
	BytesDone string `pulumi:"bytesDone"`
	// The creation time of the Vault. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to enable the deduplication function for the database backup Vault.
	Dedup bool `pulumi:"dedup"`
	// The description of the vault.
	Description string `pulumi:"description"`
	// The ID of vault.
	Id string `pulumi:"id"`
	// Index available.
	IndexAvailable bool `pulumi:"indexAvailable"`
	// Index level.
	IndexLevel string `pulumi:"indexLevel"`
	// Index update time.
	IndexUpdateTime string `pulumi:"indexUpdateTime"`
	// The time of the last remote backup synchronization.
	LatestReplicationTime string `pulumi:"latestReplicationTime"`
	// Billing model, possible values:
	PaymentType string `pulumi:"paymentType"`
	// Whether it is a remote backup warehouse. It's a boolean value.
	Replication bool `pulumi:"replication"`
	// The region ID to which the remote backup Vault belongs.
	ReplicationSourceRegionId string `pulumi:"replicationSourceRegionId"`
	// The source vault ID of the remote backup Vault.
	ReplicationSourceVaultId string `pulumi:"replicationSourceVaultId"`
	// Warehouse-level data retention days, only valid for archive libraries.
	Retention string `pulumi:"retention"`
	// Whether to enable the backup search function.
	SearchEnabled bool     `pulumi:"searchEnabled"`
	SourceTypes   []string `pulumi:"sourceTypes"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status string `pulumi:"status"`
	// Backup vault storage usage. The unit is Byte.
	StorageSize string `pulumi:"storageSize"`
	// The update time of the Vault. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of vault, same as `id`.
	VaultId string `pulumi:"vaultId"`
	// The name of vault.
	VaultName string `pulumi:"vaultName"`
	// Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
	VaultStatusMessage string `pulumi:"vaultStatusMessage"`
	// The storage class of vault. Valid values: `STANDARD`.
	VaultStorageClass string `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType string `pulumi:"vaultType"`
}

type GetVaultsVaultArgs

type GetVaultsVaultArgs struct {
	// The name of the OSS bucket of the Vault.
	BucketName pulumi.StringInput `pulumi:"bucketName"`
	// The amount of backup data. The unit is Byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The creation time of the Vault. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to enable the deduplication function for the database backup Vault.
	Dedup pulumi.BoolInput `pulumi:"dedup"`
	// The description of the vault.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of vault.
	Id pulumi.StringInput `pulumi:"id"`
	// Index available.
	IndexAvailable pulumi.BoolInput `pulumi:"indexAvailable"`
	// Index level.
	IndexLevel pulumi.StringInput `pulumi:"indexLevel"`
	// Index update time.
	IndexUpdateTime pulumi.StringInput `pulumi:"indexUpdateTime"`
	// The time of the last remote backup synchronization.
	LatestReplicationTime pulumi.StringInput `pulumi:"latestReplicationTime"`
	// Billing model, possible values:
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Whether it is a remote backup warehouse. It's a boolean value.
	Replication pulumi.BoolInput `pulumi:"replication"`
	// The region ID to which the remote backup Vault belongs.
	ReplicationSourceRegionId pulumi.StringInput `pulumi:"replicationSourceRegionId"`
	// The source vault ID of the remote backup Vault.
	ReplicationSourceVaultId pulumi.StringInput `pulumi:"replicationSourceVaultId"`
	// Warehouse-level data retention days, only valid for archive libraries.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Whether to enable the backup search function.
	SearchEnabled pulumi.BoolInput        `pulumi:"searchEnabled"`
	SourceTypes   pulumi.StringArrayInput `pulumi:"sourceTypes"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringInput `pulumi:"status"`
	// Backup vault storage usage. The unit is Byte.
	StorageSize pulumi.StringInput `pulumi:"storageSize"`
	// The update time of the Vault. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of vault, same as `id`.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
	// The name of vault.
	VaultName pulumi.StringInput `pulumi:"vaultName"`
	// Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
	VaultStatusMessage pulumi.StringInput `pulumi:"vaultStatusMessage"`
	// The storage class of vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringInput `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringInput `pulumi:"vaultType"`
}

func (GetVaultsVaultArgs) ElementType

func (GetVaultsVaultArgs) ElementType() reflect.Type

func (GetVaultsVaultArgs) ToGetVaultsVaultOutput

func (i GetVaultsVaultArgs) ToGetVaultsVaultOutput() GetVaultsVaultOutput

func (GetVaultsVaultArgs) ToGetVaultsVaultOutputWithContext

func (i GetVaultsVaultArgs) ToGetVaultsVaultOutputWithContext(ctx context.Context) GetVaultsVaultOutput

type GetVaultsVaultArray

type GetVaultsVaultArray []GetVaultsVaultInput

func (GetVaultsVaultArray) ElementType

func (GetVaultsVaultArray) ElementType() reflect.Type

func (GetVaultsVaultArray) ToGetVaultsVaultArrayOutput

func (i GetVaultsVaultArray) ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput

func (GetVaultsVaultArray) ToGetVaultsVaultArrayOutputWithContext

func (i GetVaultsVaultArray) ToGetVaultsVaultArrayOutputWithContext(ctx context.Context) GetVaultsVaultArrayOutput

type GetVaultsVaultArrayInput

type GetVaultsVaultArrayInput interface {
	pulumi.Input

	ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput
	ToGetVaultsVaultArrayOutputWithContext(context.Context) GetVaultsVaultArrayOutput
}

GetVaultsVaultArrayInput is an input type that accepts GetVaultsVaultArray and GetVaultsVaultArrayOutput values. You can construct a concrete instance of `GetVaultsVaultArrayInput` via:

GetVaultsVaultArray{ GetVaultsVaultArgs{...} }

type GetVaultsVaultArrayOutput

type GetVaultsVaultArrayOutput struct{ *pulumi.OutputState }

func (GetVaultsVaultArrayOutput) ElementType

func (GetVaultsVaultArrayOutput) ElementType() reflect.Type

func (GetVaultsVaultArrayOutput) Index

func (GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutput

func (o GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput

func (GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutputWithContext

func (o GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutputWithContext(ctx context.Context) GetVaultsVaultArrayOutput

type GetVaultsVaultInput

type GetVaultsVaultInput interface {
	pulumi.Input

	ToGetVaultsVaultOutput() GetVaultsVaultOutput
	ToGetVaultsVaultOutputWithContext(context.Context) GetVaultsVaultOutput
}

GetVaultsVaultInput is an input type that accepts GetVaultsVaultArgs and GetVaultsVaultOutput values. You can construct a concrete instance of `GetVaultsVaultInput` via:

GetVaultsVaultArgs{...}

type GetVaultsVaultOutput

type GetVaultsVaultOutput struct{ *pulumi.OutputState }

func (GetVaultsVaultOutput) BucketName

func (o GetVaultsVaultOutput) BucketName() pulumi.StringOutput

The name of the OSS bucket of the Vault.

func (GetVaultsVaultOutput) BytesDone

The amount of backup data. The unit is Byte.

func (GetVaultsVaultOutput) CreatedTime

func (o GetVaultsVaultOutput) CreatedTime() pulumi.StringOutput

The creation time of the Vault. UNIX time in seconds.

func (GetVaultsVaultOutput) Dedup

Whether to enable the deduplication function for the database backup Vault.

func (GetVaultsVaultOutput) Description

func (o GetVaultsVaultOutput) Description() pulumi.StringOutput

The description of the vault.

func (GetVaultsVaultOutput) ElementType

func (GetVaultsVaultOutput) ElementType() reflect.Type

func (GetVaultsVaultOutput) Id

The ID of vault.

func (GetVaultsVaultOutput) IndexAvailable

func (o GetVaultsVaultOutput) IndexAvailable() pulumi.BoolOutput

Index available.

func (GetVaultsVaultOutput) IndexLevel

func (o GetVaultsVaultOutput) IndexLevel() pulumi.StringOutput

Index level.

func (GetVaultsVaultOutput) IndexUpdateTime

func (o GetVaultsVaultOutput) IndexUpdateTime() pulumi.StringOutput

Index update time.

func (GetVaultsVaultOutput) LatestReplicationTime

func (o GetVaultsVaultOutput) LatestReplicationTime() pulumi.StringOutput

The time of the last remote backup synchronization.

func (GetVaultsVaultOutput) PaymentType

func (o GetVaultsVaultOutput) PaymentType() pulumi.StringOutput

Billing model, possible values:

func (GetVaultsVaultOutput) Replication

func (o GetVaultsVaultOutput) Replication() pulumi.BoolOutput

Whether it is a remote backup warehouse. It's a boolean value.

func (GetVaultsVaultOutput) ReplicationSourceRegionId

func (o GetVaultsVaultOutput) ReplicationSourceRegionId() pulumi.StringOutput

The region ID to which the remote backup Vault belongs.

func (GetVaultsVaultOutput) ReplicationSourceVaultId

func (o GetVaultsVaultOutput) ReplicationSourceVaultId() pulumi.StringOutput

The source vault ID of the remote backup Vault.

func (GetVaultsVaultOutput) Retention

Warehouse-level data retention days, only valid for archive libraries.

func (GetVaultsVaultOutput) SearchEnabled

func (o GetVaultsVaultOutput) SearchEnabled() pulumi.BoolOutput

Whether to enable the backup search function.

func (GetVaultsVaultOutput) SourceTypes

func (GetVaultsVaultOutput) Status

The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.

func (GetVaultsVaultOutput) StorageSize

func (o GetVaultsVaultOutput) StorageSize() pulumi.StringOutput

Backup vault storage usage. The unit is Byte.

func (GetVaultsVaultOutput) ToGetVaultsVaultOutput

func (o GetVaultsVaultOutput) ToGetVaultsVaultOutput() GetVaultsVaultOutput

func (GetVaultsVaultOutput) ToGetVaultsVaultOutputWithContext

func (o GetVaultsVaultOutput) ToGetVaultsVaultOutputWithContext(ctx context.Context) GetVaultsVaultOutput

func (GetVaultsVaultOutput) UpdatedTime

func (o GetVaultsVaultOutput) UpdatedTime() pulumi.StringOutput

The update time of the Vault. UNIX time in seconds.

func (GetVaultsVaultOutput) VaultId

The ID of vault, same as `id`.

func (GetVaultsVaultOutput) VaultName

The name of vault.

func (GetVaultsVaultOutput) VaultStatusMessage

func (o GetVaultsVaultOutput) VaultStatusMessage() pulumi.StringOutput

Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.

func (GetVaultsVaultOutput) VaultStorageClass

func (o GetVaultsVaultOutput) VaultStorageClass() pulumi.StringOutput

The storage class of vault. Valid values: `STANDARD`.

func (GetVaultsVaultOutput) VaultType

The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.

type HanaBackupPlan

type HanaBackupPlan struct {
	pulumi.CustomResourceState

	// The backup prefix.
	BackupPrefix pulumi.StringPtrOutput `pulumi:"backupPrefix"`
	// The backup type. Valid values:
	// - `COMPLETE`: full backup.
	// - `INCREMENTAL`: incremental backup.
	// - `DIFFERENTIAL`: differential backup.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// The id of the plan.
	PlanId pulumi.StringOutput `pulumi:"planId"`
	// The name of the backup plan.
	PlanName pulumi.StringOutput `pulumi:"planName"`
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Hana Backup Plan resource.

For information about Hybrid Backup Recovery (HBR) Hana Backup Plan and how to use it, see [What is Hana Backup Plan](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-doc-hbr-2017-09-08-api-doc-createhanabackupplan).

> **NOTE:** Available in v1.179.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/resourcemanager"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.Any(_var.Name),
		})
		if err != nil {
			return err
		}
		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		defaultHanaInstance, err := hbr.NewHanaInstance(ctx, "defaultHanaInstance", &hbr.HanaInstanceArgs{
			AlertSetting:        pulumi.String("INHERITED"),
			HanaName:            pulumi.Any(_var.Name),
			Host:                pulumi.String("1.1.1.1"),
			InstanceNumber:      pulumi.Int(1),
			Password:            pulumi.String("YouPassword123"),
			ResourceGroupId:     pulumi.String(defaultResourceGroups.Groups[0].Id),
			Sid:                 pulumi.String("HXE"),
			UseSsl:              pulumi.Bool(false),
			UserName:            pulumi.String("admin"),
			ValidateCertificate: pulumi.Bool(false),
			VaultId:             defaultVault.ID(),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewHanaBackupPlan(ctx, "defaultHanaBackupPlan", &hbr.HanaBackupPlanArgs{
			BackupPrefix:    pulumi.String("DIFF_DATA_BACKUP"),
			BackupType:      pulumi.String("COMPLETE"),
			ClusterId:       defaultHanaInstance.HanaInstanceId,
			DatabaseName:    pulumi.String("SYSTEMDB"),
			PlanName:        pulumi.Any(_var.Name),
			ResourceGroupId: pulumi.String(defaultResourceGroups.Groups[0].Id),
			Schedule:        pulumi.String("I|1602673264|P1D"),
			VaultId:         defaultHanaInstance.VaultId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Hana Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/hanaBackupPlan:HanaBackupPlan example <plan_id>:<vault_id>:<cluster_id>

```

func GetHanaBackupPlan

func GetHanaBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HanaBackupPlanState, opts ...pulumi.ResourceOption) (*HanaBackupPlan, error)

GetHanaBackupPlan gets an existing HanaBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHanaBackupPlan

func NewHanaBackupPlan(ctx *pulumi.Context,
	name string, args *HanaBackupPlanArgs, opts ...pulumi.ResourceOption) (*HanaBackupPlan, error)

NewHanaBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*HanaBackupPlan) ElementType

func (*HanaBackupPlan) ElementType() reflect.Type

func (*HanaBackupPlan) ToHanaBackupPlanOutput

func (i *HanaBackupPlan) ToHanaBackupPlanOutput() HanaBackupPlanOutput

func (*HanaBackupPlan) ToHanaBackupPlanOutputWithContext

func (i *HanaBackupPlan) ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput

type HanaBackupPlanArgs

type HanaBackupPlanArgs struct {
	// The backup prefix.
	BackupPrefix pulumi.StringPtrInput
	// The backup type. Valid values:
	// - `COMPLETE`: full backup.
	// - `INCREMENTAL`: incremental backup.
	// - `DIFFERENTIAL`: differential backup.
	BackupType pulumi.StringInput
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput
	// The name of the database.
	DatabaseName pulumi.StringInput
	// The name of the backup plan.
	PlanName pulumi.StringInput
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrInput
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringInput
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a HanaBackupPlan resource.

func (HanaBackupPlanArgs) ElementType

func (HanaBackupPlanArgs) ElementType() reflect.Type

type HanaBackupPlanArray

type HanaBackupPlanArray []HanaBackupPlanInput

func (HanaBackupPlanArray) ElementType

func (HanaBackupPlanArray) ElementType() reflect.Type

func (HanaBackupPlanArray) ToHanaBackupPlanArrayOutput

func (i HanaBackupPlanArray) ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput

func (HanaBackupPlanArray) ToHanaBackupPlanArrayOutputWithContext

func (i HanaBackupPlanArray) ToHanaBackupPlanArrayOutputWithContext(ctx context.Context) HanaBackupPlanArrayOutput

type HanaBackupPlanArrayInput

type HanaBackupPlanArrayInput interface {
	pulumi.Input

	ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput
	ToHanaBackupPlanArrayOutputWithContext(context.Context) HanaBackupPlanArrayOutput
}

HanaBackupPlanArrayInput is an input type that accepts HanaBackupPlanArray and HanaBackupPlanArrayOutput values. You can construct a concrete instance of `HanaBackupPlanArrayInput` via:

HanaBackupPlanArray{ HanaBackupPlanArgs{...} }

type HanaBackupPlanArrayOutput

type HanaBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanArrayOutput) ElementType

func (HanaBackupPlanArrayOutput) ElementType() reflect.Type

func (HanaBackupPlanArrayOutput) Index

func (HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutput

func (o HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput

func (HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutputWithContext

func (o HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutputWithContext(ctx context.Context) HanaBackupPlanArrayOutput

type HanaBackupPlanInput

type HanaBackupPlanInput interface {
	pulumi.Input

	ToHanaBackupPlanOutput() HanaBackupPlanOutput
	ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput
}

type HanaBackupPlanMap

type HanaBackupPlanMap map[string]HanaBackupPlanInput

func (HanaBackupPlanMap) ElementType

func (HanaBackupPlanMap) ElementType() reflect.Type

func (HanaBackupPlanMap) ToHanaBackupPlanMapOutput

func (i HanaBackupPlanMap) ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput

func (HanaBackupPlanMap) ToHanaBackupPlanMapOutputWithContext

func (i HanaBackupPlanMap) ToHanaBackupPlanMapOutputWithContext(ctx context.Context) HanaBackupPlanMapOutput

type HanaBackupPlanMapInput

type HanaBackupPlanMapInput interface {
	pulumi.Input

	ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput
	ToHanaBackupPlanMapOutputWithContext(context.Context) HanaBackupPlanMapOutput
}

HanaBackupPlanMapInput is an input type that accepts HanaBackupPlanMap and HanaBackupPlanMapOutput values. You can construct a concrete instance of `HanaBackupPlanMapInput` via:

HanaBackupPlanMap{ "key": HanaBackupPlanArgs{...} }

type HanaBackupPlanMapOutput

type HanaBackupPlanMapOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanMapOutput) ElementType

func (HanaBackupPlanMapOutput) ElementType() reflect.Type

func (HanaBackupPlanMapOutput) MapIndex

func (HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutput

func (o HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput

func (HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutputWithContext

func (o HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutputWithContext(ctx context.Context) HanaBackupPlanMapOutput

type HanaBackupPlanOutput

type HanaBackupPlanOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanOutput) BackupPrefix

func (o HanaBackupPlanOutput) BackupPrefix() pulumi.StringPtrOutput

The backup prefix.

func (HanaBackupPlanOutput) BackupType

func (o HanaBackupPlanOutput) BackupType() pulumi.StringOutput

The backup type. Valid values: - `COMPLETE`: full backup. - `INCREMENTAL`: incremental backup. - `DIFFERENTIAL`: differential backup.

func (HanaBackupPlanOutput) ClusterId

The ID of the SAP HANA instance.

func (HanaBackupPlanOutput) DatabaseName

func (o HanaBackupPlanOutput) DatabaseName() pulumi.StringOutput

The name of the database.

func (HanaBackupPlanOutput) ElementType

func (HanaBackupPlanOutput) ElementType() reflect.Type

func (HanaBackupPlanOutput) PlanId

The id of the plan.

func (HanaBackupPlanOutput) PlanName

The name of the backup plan.

func (HanaBackupPlanOutput) ResourceGroupId

func (o HanaBackupPlanOutput) ResourceGroupId() pulumi.StringPtrOutput

The resource attribute field that represents the resource group ID.

func (HanaBackupPlanOutput) Schedule

The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.

func (HanaBackupPlanOutput) Status

The status of the resource. Valid values: `Enabled`, `Disabled`.

func (HanaBackupPlanOutput) ToHanaBackupPlanOutput

func (o HanaBackupPlanOutput) ToHanaBackupPlanOutput() HanaBackupPlanOutput

func (HanaBackupPlanOutput) ToHanaBackupPlanOutputWithContext

func (o HanaBackupPlanOutput) ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput

func (HanaBackupPlanOutput) VaultId

The ID of the backup vault.

type HanaBackupPlanState

type HanaBackupPlanState struct {
	// The backup prefix.
	BackupPrefix pulumi.StringPtrInput
	// The backup type. Valid values:
	// - `COMPLETE`: full backup.
	// - `INCREMENTAL`: incremental backup.
	// - `DIFFERENTIAL`: differential backup.
	BackupType pulumi.StringPtrInput
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringPtrInput
	// The name of the database.
	DatabaseName pulumi.StringPtrInput
	// The id of the plan.
	PlanId pulumi.StringPtrInput
	// The name of the backup plan.
	PlanName pulumi.StringPtrInput
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrInput
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringPtrInput
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput
}

func (HanaBackupPlanState) ElementType

func (HanaBackupPlanState) ElementType() reflect.Type

type HanaInstance

type HanaInstance struct {
	pulumi.CustomResourceState

	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringOutput `pulumi:"alertSetting"`
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayOutput `pulumi:"ecsInstanceIds"`
	// The id of the Hana Instance.
	HanaInstanceId pulumi.StringOutput `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrOutput `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrOutput `pulumi:"host"`
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrOutput `pulumi:"instanceNumber"`
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrOutput `pulumi:"sid"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrOutput `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrOutput `pulumi:"userName"`
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrOutput `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Hana Instance resource.

For information about Hybrid Backup Recovery (HBR) Hana Instance and how to use it, see [What is Hana Instance](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-doc-hbr-2017-09-08-api-doc-createhanainstance).

> **NOTE:** Available in v1.178.0+.

> **NOTE:** The `sid` attribute is required when destroying resources.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/resourcemanager"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleVault, err := hbr.NewVault(ctx, "exampleVault", &hbr.VaultArgs{
			VaultName: pulumi.Any(_var.Name),
		})
		if err != nil {
			return err
		}
		exampleResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewHanaInstance(ctx, "exampleHanaInstance", &hbr.HanaInstanceArgs{
			AlertSetting:        pulumi.String("INHERITED"),
			HanaName:            pulumi.Any(_var.Name),
			Host:                pulumi.String("1.1.1.1"),
			InstanceNumber:      pulumi.Int(1),
			Password:            pulumi.String("YouPassword123"),
			ResourceGroupId:     pulumi.String(exampleResourceGroups.Groups[0].Id),
			Sid:                 pulumi.String("HXE"),
			UseSsl:              pulumi.Bool(false),
			UserName:            pulumi.String("admin"),
			ValidateCertificate: pulumi.Bool(false),
			VaultId:             exampleVault.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Hana Instance can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/hanaInstance:HanaInstance example <vault_id>:<hana_instance_id>

```

func GetHanaInstance

func GetHanaInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HanaInstanceState, opts ...pulumi.ResourceOption) (*HanaInstance, error)

GetHanaInstance gets an existing HanaInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHanaInstance

func NewHanaInstance(ctx *pulumi.Context,
	name string, args *HanaInstanceArgs, opts ...pulumi.ResourceOption) (*HanaInstance, error)

NewHanaInstance registers a new resource with the given unique name, arguments, and options.

func (*HanaInstance) ElementType

func (*HanaInstance) ElementType() reflect.Type

func (*HanaInstance) ToHanaInstanceOutput

func (i *HanaInstance) ToHanaInstanceOutput() HanaInstanceOutput

func (*HanaInstance) ToHanaInstanceOutputWithContext

func (i *HanaInstance) ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput

type HanaInstanceArgs

type HanaInstanceArgs struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringPtrInput
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayInput
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrInput
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrInput
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrInput
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrInput
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrInput
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrInput
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a HanaInstance resource.

func (HanaInstanceArgs) ElementType

func (HanaInstanceArgs) ElementType() reflect.Type

type HanaInstanceArray

type HanaInstanceArray []HanaInstanceInput

func (HanaInstanceArray) ElementType

func (HanaInstanceArray) ElementType() reflect.Type

func (HanaInstanceArray) ToHanaInstanceArrayOutput

func (i HanaInstanceArray) ToHanaInstanceArrayOutput() HanaInstanceArrayOutput

func (HanaInstanceArray) ToHanaInstanceArrayOutputWithContext

func (i HanaInstanceArray) ToHanaInstanceArrayOutputWithContext(ctx context.Context) HanaInstanceArrayOutput

type HanaInstanceArrayInput

type HanaInstanceArrayInput interface {
	pulumi.Input

	ToHanaInstanceArrayOutput() HanaInstanceArrayOutput
	ToHanaInstanceArrayOutputWithContext(context.Context) HanaInstanceArrayOutput
}

HanaInstanceArrayInput is an input type that accepts HanaInstanceArray and HanaInstanceArrayOutput values. You can construct a concrete instance of `HanaInstanceArrayInput` via:

HanaInstanceArray{ HanaInstanceArgs{...} }

type HanaInstanceArrayOutput

type HanaInstanceArrayOutput struct{ *pulumi.OutputState }

func (HanaInstanceArrayOutput) ElementType

func (HanaInstanceArrayOutput) ElementType() reflect.Type

func (HanaInstanceArrayOutput) Index

func (HanaInstanceArrayOutput) ToHanaInstanceArrayOutput

func (o HanaInstanceArrayOutput) ToHanaInstanceArrayOutput() HanaInstanceArrayOutput

func (HanaInstanceArrayOutput) ToHanaInstanceArrayOutputWithContext

func (o HanaInstanceArrayOutput) ToHanaInstanceArrayOutputWithContext(ctx context.Context) HanaInstanceArrayOutput

type HanaInstanceInput

type HanaInstanceInput interface {
	pulumi.Input

	ToHanaInstanceOutput() HanaInstanceOutput
	ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput
}

type HanaInstanceMap

type HanaInstanceMap map[string]HanaInstanceInput

func (HanaInstanceMap) ElementType

func (HanaInstanceMap) ElementType() reflect.Type

func (HanaInstanceMap) ToHanaInstanceMapOutput

func (i HanaInstanceMap) ToHanaInstanceMapOutput() HanaInstanceMapOutput

func (HanaInstanceMap) ToHanaInstanceMapOutputWithContext

func (i HanaInstanceMap) ToHanaInstanceMapOutputWithContext(ctx context.Context) HanaInstanceMapOutput

type HanaInstanceMapInput

type HanaInstanceMapInput interface {
	pulumi.Input

	ToHanaInstanceMapOutput() HanaInstanceMapOutput
	ToHanaInstanceMapOutputWithContext(context.Context) HanaInstanceMapOutput
}

HanaInstanceMapInput is an input type that accepts HanaInstanceMap and HanaInstanceMapOutput values. You can construct a concrete instance of `HanaInstanceMapInput` via:

HanaInstanceMap{ "key": HanaInstanceArgs{...} }

type HanaInstanceMapOutput

type HanaInstanceMapOutput struct{ *pulumi.OutputState }

func (HanaInstanceMapOutput) ElementType

func (HanaInstanceMapOutput) ElementType() reflect.Type

func (HanaInstanceMapOutput) MapIndex

func (HanaInstanceMapOutput) ToHanaInstanceMapOutput

func (o HanaInstanceMapOutput) ToHanaInstanceMapOutput() HanaInstanceMapOutput

func (HanaInstanceMapOutput) ToHanaInstanceMapOutputWithContext

func (o HanaInstanceMapOutput) ToHanaInstanceMapOutputWithContext(ctx context.Context) HanaInstanceMapOutput

type HanaInstanceOutput

type HanaInstanceOutput struct{ *pulumi.OutputState }

func (HanaInstanceOutput) AlertSetting

func (o HanaInstanceOutput) AlertSetting() pulumi.StringOutput

The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.

func (HanaInstanceOutput) EcsInstanceIds

func (o HanaInstanceOutput) EcsInstanceIds() pulumi.StringArrayOutput

The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.

func (HanaInstanceOutput) ElementType

func (HanaInstanceOutput) ElementType() reflect.Type

func (HanaInstanceOutput) HanaInstanceId

func (o HanaInstanceOutput) HanaInstanceId() pulumi.StringOutput

The id of the Hana Instance.

func (HanaInstanceOutput) HanaName

The name of the SAP HANA instance.

func (HanaInstanceOutput) Host

The private or internal IP address of the host where the primary node of the SAP HANA instance resides.

func (HanaInstanceOutput) InstanceNumber

func (o HanaInstanceOutput) InstanceNumber() pulumi.IntPtrOutput

The instance number of the SAP HANA system.

func (HanaInstanceOutput) Password

The password that is used to connect with the SAP HANA database.

func (HanaInstanceOutput) ResourceGroupId

func (o HanaInstanceOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (HanaInstanceOutput) Sid

The security identifier (SID) of the SAP HANA database.

func (HanaInstanceOutput) Status

The status of the resource.

func (HanaInstanceOutput) ToHanaInstanceOutput

func (o HanaInstanceOutput) ToHanaInstanceOutput() HanaInstanceOutput

func (HanaInstanceOutput) ToHanaInstanceOutputWithContext

func (o HanaInstanceOutput) ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput

func (HanaInstanceOutput) UseSsl

Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).

func (HanaInstanceOutput) UserName

The username of the SYSTEMDB database.

func (HanaInstanceOutput) ValidateCertificate

func (o HanaInstanceOutput) ValidateCertificate() pulumi.BoolPtrOutput

Specifies whether to verify the SSL certificate of the SAP HANA database.

func (HanaInstanceOutput) VaultId

The ID of the backup vault.

type HanaInstanceState

type HanaInstanceState struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringPtrInput
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayInput
	// The id of the Hana Instance.
	HanaInstanceId pulumi.StringPtrInput
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrInput
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrInput
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrInput
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrInput
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrInput
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput
}

func (HanaInstanceState) ElementType

func (HanaInstanceState) ElementType() reflect.Type

type NasBackupPlan

type NasBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId pulumi.StringOutput `pulumi:"fileSystemId"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	NasBackupPlanName pulumi.StringOutput `pulumi:"nasBackupPlanName"`
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayOutput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The ID of Backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a HBR Nas Backup Plan resource.

For information about HBR Nas Backup Plan and how to use it, see [What is Nas Backup Plan](https://www.alibabacloud.com/help/doc-detail/132248.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/nas"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccHBRNas"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultFileSystem, err := nas.NewFileSystem(ctx, "defaultFileSystem", &nas.FileSystemArgs{
			ProtocolType: pulumi.String("NFS"),
			StorageType:  pulumi.String("Performance"),
			Description:  pulumi.String(name),
			EncryptType:  pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewNasBackupPlan(ctx, "defaultNasBackupPlan", &hbr.NasBackupPlanArgs{
			NasBackupPlanName: pulumi.String(name),
			FileSystemId:      defaultFileSystem.ID(),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			VaultId:           defaultVault.ID(),
			CreateTime: defaultFileSystems.ApplyT(func(defaultFileSystems nas.GetFileSystemsResult) (string, error) {
				return defaultFileSystems.Systems[0].CreateTime, nil
			}).(pulumi.StringOutput),
			Retention: pulumi.String("2"),
			Paths: pulumi.StringArray{
				pulumi.String("/"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("alicloud_nas_file_system.default"),
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Nas Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/nasBackupPlan:NasBackupPlan example <id>

```

func GetNasBackupPlan

func GetNasBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NasBackupPlanState, opts ...pulumi.ResourceOption) (*NasBackupPlan, error)

GetNasBackupPlan gets an existing NasBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNasBackupPlan

func NewNasBackupPlan(ctx *pulumi.Context,
	name string, args *NasBackupPlanArgs, opts ...pulumi.ResourceOption) (*NasBackupPlan, error)

NewNasBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*NasBackupPlan) ElementType

func (*NasBackupPlan) ElementType() reflect.Type

func (*NasBackupPlan) ToNasBackupPlanOutput

func (i *NasBackupPlan) ToNasBackupPlanOutput() NasBackupPlanOutput

func (*NasBackupPlan) ToNasBackupPlanOutputWithContext

func (i *NasBackupPlan) ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput

type NasBackupPlanArgs

type NasBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The File System ID of Nas.
	FileSystemId pulumi.StringInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	NasBackupPlanName pulumi.StringInput
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrInput
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput
	// The ID of Backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a NasBackupPlan resource.

func (NasBackupPlanArgs) ElementType

func (NasBackupPlanArgs) ElementType() reflect.Type

type NasBackupPlanArray

type NasBackupPlanArray []NasBackupPlanInput

func (NasBackupPlanArray) ElementType

func (NasBackupPlanArray) ElementType() reflect.Type

func (NasBackupPlanArray) ToNasBackupPlanArrayOutput

func (i NasBackupPlanArray) ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput

func (NasBackupPlanArray) ToNasBackupPlanArrayOutputWithContext

func (i NasBackupPlanArray) ToNasBackupPlanArrayOutputWithContext(ctx context.Context) NasBackupPlanArrayOutput

type NasBackupPlanArrayInput

type NasBackupPlanArrayInput interface {
	pulumi.Input

	ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput
	ToNasBackupPlanArrayOutputWithContext(context.Context) NasBackupPlanArrayOutput
}

NasBackupPlanArrayInput is an input type that accepts NasBackupPlanArray and NasBackupPlanArrayOutput values. You can construct a concrete instance of `NasBackupPlanArrayInput` via:

NasBackupPlanArray{ NasBackupPlanArgs{...} }

type NasBackupPlanArrayOutput

type NasBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (NasBackupPlanArrayOutput) ElementType

func (NasBackupPlanArrayOutput) ElementType() reflect.Type

func (NasBackupPlanArrayOutput) Index

func (NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutput

func (o NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput

func (NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutputWithContext

func (o NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutputWithContext(ctx context.Context) NasBackupPlanArrayOutput

type NasBackupPlanInput

type NasBackupPlanInput interface {
	pulumi.Input

	ToNasBackupPlanOutput() NasBackupPlanOutput
	ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput
}

type NasBackupPlanMap

type NasBackupPlanMap map[string]NasBackupPlanInput

func (NasBackupPlanMap) ElementType

func (NasBackupPlanMap) ElementType() reflect.Type

func (NasBackupPlanMap) ToNasBackupPlanMapOutput

func (i NasBackupPlanMap) ToNasBackupPlanMapOutput() NasBackupPlanMapOutput

func (NasBackupPlanMap) ToNasBackupPlanMapOutputWithContext

func (i NasBackupPlanMap) ToNasBackupPlanMapOutputWithContext(ctx context.Context) NasBackupPlanMapOutput

type NasBackupPlanMapInput

type NasBackupPlanMapInput interface {
	pulumi.Input

	ToNasBackupPlanMapOutput() NasBackupPlanMapOutput
	ToNasBackupPlanMapOutputWithContext(context.Context) NasBackupPlanMapOutput
}

NasBackupPlanMapInput is an input type that accepts NasBackupPlanMap and NasBackupPlanMapOutput values. You can construct a concrete instance of `NasBackupPlanMapInput` via:

NasBackupPlanMap{ "key": NasBackupPlanArgs{...} }

type NasBackupPlanMapOutput

type NasBackupPlanMapOutput struct{ *pulumi.OutputState }

func (NasBackupPlanMapOutput) ElementType

func (NasBackupPlanMapOutput) ElementType() reflect.Type

func (NasBackupPlanMapOutput) MapIndex

func (NasBackupPlanMapOutput) ToNasBackupPlanMapOutput

func (o NasBackupPlanMapOutput) ToNasBackupPlanMapOutput() NasBackupPlanMapOutput

func (NasBackupPlanMapOutput) ToNasBackupPlanMapOutputWithContext

func (o NasBackupPlanMapOutput) ToNasBackupPlanMapOutputWithContext(ctx context.Context) NasBackupPlanMapOutput

type NasBackupPlanOutput

type NasBackupPlanOutput struct{ *pulumi.OutputState }

func (NasBackupPlanOutput) BackupType

func (o NasBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (NasBackupPlanOutput) CreateTime deprecated

func (o NasBackupPlanOutput) CreateTime() pulumi.StringOutput

This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.

Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.

func (NasBackupPlanOutput) CrossAccountRoleName

func (o NasBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (NasBackupPlanOutput) CrossAccountType

func (o NasBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (NasBackupPlanOutput) CrossAccountUserId

func (o NasBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (NasBackupPlanOutput) Disabled

func (o NasBackupPlanOutput) Disabled() pulumi.BoolOutput

Whether to disable the backup task. Valid values: `true`, `false`.

func (NasBackupPlanOutput) ElementType

func (NasBackupPlanOutput) ElementType() reflect.Type

func (NasBackupPlanOutput) FileSystemId

func (o NasBackupPlanOutput) FileSystemId() pulumi.StringOutput

The File System ID of Nas.

func (NasBackupPlanOutput) NasBackupPlanName

func (o NasBackupPlanOutput) NasBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (NasBackupPlanOutput) Options

This parameter specifies whether to use Windows VSS to define a backup path.

func (NasBackupPlanOutput) Paths

List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.

func (NasBackupPlanOutput) Retention

func (o NasBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (NasBackupPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

func (NasBackupPlanOutput) ToNasBackupPlanOutput

func (o NasBackupPlanOutput) ToNasBackupPlanOutput() NasBackupPlanOutput

func (NasBackupPlanOutput) ToNasBackupPlanOutputWithContext

func (o NasBackupPlanOutput) ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput

func (NasBackupPlanOutput) VaultId

The ID of Backup vault.

type NasBackupPlanState

type NasBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The File System ID of Nas.
	FileSystemId pulumi.StringPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	NasBackupPlanName pulumi.StringPtrInput
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrInput
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringPtrInput
}

func (NasBackupPlanState) ElementType

func (NasBackupPlanState) ElementType() reflect.Type

type OssBackupPlan

type OssBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OssBackupPlanName pulumi.StringOutput `pulumi:"ossBackupPlanName"`
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrOutput `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The ID of backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a HBR Oss Backup Plan resource.

For information about HBR Oss Backup Plan and how to use it, see [What is Oss Backup Plan](https://www.alibabacloud.com/help/doc-detail/130040.htm).

> **NOTE:** Available in v1.131.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/oss"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-test112358"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
			Bucket: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewOssBackupPlan(ctx, "defaultOssBackupPlan", &hbr.OssBackupPlanArgs{
			OssBackupPlanName: pulumi.String(name),
			Prefix:            pulumi.String("/"),
			Bucket:            defaultBucket.Bucket,
			VaultId:           defaultVault.ID(),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			Retention:         pulumi.String("2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Oss Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/ossBackupPlan:OssBackupPlan example <id>

```

func GetOssBackupPlan

func GetOssBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OssBackupPlanState, opts ...pulumi.ResourceOption) (*OssBackupPlan, error)

GetOssBackupPlan gets an existing OssBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOssBackupPlan

func NewOssBackupPlan(ctx *pulumi.Context,
	name string, args *OssBackupPlanArgs, opts ...pulumi.ResourceOption) (*OssBackupPlan, error)

NewOssBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*OssBackupPlan) ElementType

func (*OssBackupPlan) ElementType() reflect.Type

func (*OssBackupPlan) ToOssBackupPlanOutput

func (i *OssBackupPlan) ToOssBackupPlanOutput() OssBackupPlanOutput

func (*OssBackupPlan) ToOssBackupPlanOutputWithContext

func (i *OssBackupPlan) ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput

type OssBackupPlanArgs

type OssBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// The name of OSS bucket.
	Bucket pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OssBackupPlanName pulumi.StringInput
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput
	// The ID of backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a OssBackupPlan resource.

func (OssBackupPlanArgs) ElementType

func (OssBackupPlanArgs) ElementType() reflect.Type

type OssBackupPlanArray

type OssBackupPlanArray []OssBackupPlanInput

func (OssBackupPlanArray) ElementType

func (OssBackupPlanArray) ElementType() reflect.Type

func (OssBackupPlanArray) ToOssBackupPlanArrayOutput

func (i OssBackupPlanArray) ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput

func (OssBackupPlanArray) ToOssBackupPlanArrayOutputWithContext

func (i OssBackupPlanArray) ToOssBackupPlanArrayOutputWithContext(ctx context.Context) OssBackupPlanArrayOutput

type OssBackupPlanArrayInput

type OssBackupPlanArrayInput interface {
	pulumi.Input

	ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput
	ToOssBackupPlanArrayOutputWithContext(context.Context) OssBackupPlanArrayOutput
}

OssBackupPlanArrayInput is an input type that accepts OssBackupPlanArray and OssBackupPlanArrayOutput values. You can construct a concrete instance of `OssBackupPlanArrayInput` via:

OssBackupPlanArray{ OssBackupPlanArgs{...} }

type OssBackupPlanArrayOutput

type OssBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (OssBackupPlanArrayOutput) ElementType

func (OssBackupPlanArrayOutput) ElementType() reflect.Type

func (OssBackupPlanArrayOutput) Index

func (OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutput

func (o OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput

func (OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutputWithContext

func (o OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutputWithContext(ctx context.Context) OssBackupPlanArrayOutput

type OssBackupPlanInput

type OssBackupPlanInput interface {
	pulumi.Input

	ToOssBackupPlanOutput() OssBackupPlanOutput
	ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput
}

type OssBackupPlanMap

type OssBackupPlanMap map[string]OssBackupPlanInput

func (OssBackupPlanMap) ElementType

func (OssBackupPlanMap) ElementType() reflect.Type

func (OssBackupPlanMap) ToOssBackupPlanMapOutput

func (i OssBackupPlanMap) ToOssBackupPlanMapOutput() OssBackupPlanMapOutput

func (OssBackupPlanMap) ToOssBackupPlanMapOutputWithContext

func (i OssBackupPlanMap) ToOssBackupPlanMapOutputWithContext(ctx context.Context) OssBackupPlanMapOutput

type OssBackupPlanMapInput

type OssBackupPlanMapInput interface {
	pulumi.Input

	ToOssBackupPlanMapOutput() OssBackupPlanMapOutput
	ToOssBackupPlanMapOutputWithContext(context.Context) OssBackupPlanMapOutput
}

OssBackupPlanMapInput is an input type that accepts OssBackupPlanMap and OssBackupPlanMapOutput values. You can construct a concrete instance of `OssBackupPlanMapInput` via:

OssBackupPlanMap{ "key": OssBackupPlanArgs{...} }

type OssBackupPlanMapOutput

type OssBackupPlanMapOutput struct{ *pulumi.OutputState }

func (OssBackupPlanMapOutput) ElementType

func (OssBackupPlanMapOutput) ElementType() reflect.Type

func (OssBackupPlanMapOutput) MapIndex

func (OssBackupPlanMapOutput) ToOssBackupPlanMapOutput

func (o OssBackupPlanMapOutput) ToOssBackupPlanMapOutput() OssBackupPlanMapOutput

func (OssBackupPlanMapOutput) ToOssBackupPlanMapOutputWithContext

func (o OssBackupPlanMapOutput) ToOssBackupPlanMapOutputWithContext(ctx context.Context) OssBackupPlanMapOutput

type OssBackupPlanOutput

type OssBackupPlanOutput struct{ *pulumi.OutputState }

func (OssBackupPlanOutput) BackupType

func (o OssBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (OssBackupPlanOutput) Bucket

The name of OSS bucket.

func (OssBackupPlanOutput) CrossAccountRoleName

func (o OssBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (OssBackupPlanOutput) CrossAccountType

func (o OssBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (OssBackupPlanOutput) CrossAccountUserId

func (o OssBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (OssBackupPlanOutput) Disabled

func (o OssBackupPlanOutput) Disabled() pulumi.BoolOutput

Whether to disable the backup task. Valid values: `true`, `false`.

func (OssBackupPlanOutput) ElementType

func (OssBackupPlanOutput) ElementType() reflect.Type

func (OssBackupPlanOutput) OssBackupPlanName

func (o OssBackupPlanOutput) OssBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (OssBackupPlanOutput) Prefix

Backup prefix. Once specified, only objects with matching prefixes will be backed up.

func (OssBackupPlanOutput) Retention

func (o OssBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (OssBackupPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.

func (OssBackupPlanOutput) ToOssBackupPlanOutput

func (o OssBackupPlanOutput) ToOssBackupPlanOutput() OssBackupPlanOutput

func (OssBackupPlanOutput) ToOssBackupPlanOutputWithContext

func (o OssBackupPlanOutput) ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput

func (OssBackupPlanOutput) VaultId

The ID of backup vault.

type OssBackupPlanState

type OssBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OssBackupPlanName pulumi.StringPtrInput
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (OssBackupPlanState) ElementType

func (OssBackupPlanState) ElementType() reflect.Type

type OtsBackupPlan

type OtsBackupPlan struct {
	pulumi.CustomResourceState

	// The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: true, false.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OtsBackupPlanName pulumi.StringOutput `pulumi:"otsBackupPlanName"`
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayOutput `pulumi:"otsDetails"`
	// Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayOutput `pulumi:"rules"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// The ID of backup vault.
	VaultId pulumi.StringPtrOutput `pulumi:"vaultId"`
}

Provides a HBR Ots Backup Plan resource.

For information about HBR Ots Backup Plan and how to use it, see [What is Ots Backup Plan](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/overview).

> **NOTE:** Available in v1.163.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "testAcc"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
			VaultType: pulumi.String("OTS_BACKUP"),
		})
		if err != nil {
			return err
		}
		foo, err := ots.NewInstance(ctx, "foo", &ots.InstanceArgs{
			Description: pulumi.String(name),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		basic, err := ots.NewTable(ctx, "basic", &ots.TableArgs{
			InstanceName: foo.Name,
			TableName:    pulumi.String(name),
			PrimaryKeys: ots.TablePrimaryKeyArray{
				&ots.TablePrimaryKeyArgs{
					Name: pulumi.String("pk1"),
					Type: pulumi.String("Integer"),
				},
			},
			TimeToLive:                -1,
			MaxVersion:                pulumi.Int(1),
			DeviationCellVersionInSec: pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewOtsBackupPlan(ctx, "example", &hbr.OtsBackupPlanArgs{
			OtsBackupPlanName: pulumi.String(name),
			VaultId:           _default.ID(),
			BackupType:        pulumi.String("COMPLETE"),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			Retention:         pulumi.String("2"),
			InstanceName:      foo.Name,
			OtsDetails: hbr.OtsBackupPlanOtsDetailArray{
				&hbr.OtsBackupPlanOtsDetailArgs{
					TableNames: pulumi.StringArray{
						basic.TableName,
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Ots Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/otsBackupPlan:OtsBackupPlan example <id>

```

func GetOtsBackupPlan

func GetOtsBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OtsBackupPlanState, opts ...pulumi.ResourceOption) (*OtsBackupPlan, error)

GetOtsBackupPlan gets an existing OtsBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOtsBackupPlan

func NewOtsBackupPlan(ctx *pulumi.Context,
	name string, args *OtsBackupPlanArgs, opts ...pulumi.ResourceOption) (*OtsBackupPlan, error)

NewOtsBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*OtsBackupPlan) ElementType

func (*OtsBackupPlan) ElementType() reflect.Type

func (*OtsBackupPlan) ToOtsBackupPlanOutput

func (i *OtsBackupPlan) ToOtsBackupPlanOutput() OtsBackupPlanOutput

func (*OtsBackupPlan) ToOtsBackupPlanOutputWithContext

func (i *OtsBackupPlan) ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput

type OtsBackupPlanArgs

type OtsBackupPlanArgs struct {
	// The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.
	BackupType pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: true, false.
	Disabled pulumi.BoolPtrInput
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OtsBackupPlanName pulumi.StringInput
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayInput
	// Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.
	Retention pulumi.StringInput
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

The set of arguments for constructing a OtsBackupPlan resource.

func (OtsBackupPlanArgs) ElementType

func (OtsBackupPlanArgs) ElementType() reflect.Type

type OtsBackupPlanArray

type OtsBackupPlanArray []OtsBackupPlanInput

func (OtsBackupPlanArray) ElementType

func (OtsBackupPlanArray) ElementType() reflect.Type

func (OtsBackupPlanArray) ToOtsBackupPlanArrayOutput

func (i OtsBackupPlanArray) ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput

func (OtsBackupPlanArray) ToOtsBackupPlanArrayOutputWithContext

func (i OtsBackupPlanArray) ToOtsBackupPlanArrayOutputWithContext(ctx context.Context) OtsBackupPlanArrayOutput

type OtsBackupPlanArrayInput

type OtsBackupPlanArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput
	ToOtsBackupPlanArrayOutputWithContext(context.Context) OtsBackupPlanArrayOutput
}

OtsBackupPlanArrayInput is an input type that accepts OtsBackupPlanArray and OtsBackupPlanArrayOutput values. You can construct a concrete instance of `OtsBackupPlanArrayInput` via:

OtsBackupPlanArray{ OtsBackupPlanArgs{...} }

type OtsBackupPlanArrayOutput

type OtsBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanArrayOutput) ElementType

func (OtsBackupPlanArrayOutput) ElementType() reflect.Type

func (OtsBackupPlanArrayOutput) Index

func (OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutput

func (o OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput

func (OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutputWithContext

func (o OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutputWithContext(ctx context.Context) OtsBackupPlanArrayOutput

type OtsBackupPlanInput

type OtsBackupPlanInput interface {
	pulumi.Input

	ToOtsBackupPlanOutput() OtsBackupPlanOutput
	ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput
}

type OtsBackupPlanMap

type OtsBackupPlanMap map[string]OtsBackupPlanInput

func (OtsBackupPlanMap) ElementType

func (OtsBackupPlanMap) ElementType() reflect.Type

func (OtsBackupPlanMap) ToOtsBackupPlanMapOutput

func (i OtsBackupPlanMap) ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput

func (OtsBackupPlanMap) ToOtsBackupPlanMapOutputWithContext

func (i OtsBackupPlanMap) ToOtsBackupPlanMapOutputWithContext(ctx context.Context) OtsBackupPlanMapOutput

type OtsBackupPlanMapInput

type OtsBackupPlanMapInput interface {
	pulumi.Input

	ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput
	ToOtsBackupPlanMapOutputWithContext(context.Context) OtsBackupPlanMapOutput
}

OtsBackupPlanMapInput is an input type that accepts OtsBackupPlanMap and OtsBackupPlanMapOutput values. You can construct a concrete instance of `OtsBackupPlanMapInput` via:

OtsBackupPlanMap{ "key": OtsBackupPlanArgs{...} }

type OtsBackupPlanMapOutput

type OtsBackupPlanMapOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanMapOutput) ElementType

func (OtsBackupPlanMapOutput) ElementType() reflect.Type

func (OtsBackupPlanMapOutput) MapIndex

func (OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutput

func (o OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput

func (OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutputWithContext

func (o OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutputWithContext(ctx context.Context) OtsBackupPlanMapOutput

type OtsBackupPlanOtsDetail

type OtsBackupPlanOtsDetail struct {
	// The names of the destination tables in the Tablestore instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	TableNames []string `pulumi:"tableNames"`
}

type OtsBackupPlanOtsDetailArgs

type OtsBackupPlanOtsDetailArgs struct {
	// The names of the destination tables in the Tablestore instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (OtsBackupPlanOtsDetailArgs) ElementType

func (OtsBackupPlanOtsDetailArgs) ElementType() reflect.Type

func (OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutput

func (i OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput

func (OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutputWithContext

func (i OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailOutput

type OtsBackupPlanOtsDetailArray

type OtsBackupPlanOtsDetailArray []OtsBackupPlanOtsDetailInput

func (OtsBackupPlanOtsDetailArray) ElementType

func (OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutput

func (i OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput

func (OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutputWithContext

func (i OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailArrayOutput

type OtsBackupPlanOtsDetailArrayInput

type OtsBackupPlanOtsDetailArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput
	ToOtsBackupPlanOtsDetailArrayOutputWithContext(context.Context) OtsBackupPlanOtsDetailArrayOutput
}

OtsBackupPlanOtsDetailArrayInput is an input type that accepts OtsBackupPlanOtsDetailArray and OtsBackupPlanOtsDetailArrayOutput values. You can construct a concrete instance of `OtsBackupPlanOtsDetailArrayInput` via:

OtsBackupPlanOtsDetailArray{ OtsBackupPlanOtsDetailArgs{...} }

type OtsBackupPlanOtsDetailArrayOutput

type OtsBackupPlanOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOtsDetailArrayOutput) ElementType

func (OtsBackupPlanOtsDetailArrayOutput) Index

func (OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutput

func (o OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput

func (OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutputWithContext

func (o OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailArrayOutput

type OtsBackupPlanOtsDetailInput

type OtsBackupPlanOtsDetailInput interface {
	pulumi.Input

	ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput
	ToOtsBackupPlanOtsDetailOutputWithContext(context.Context) OtsBackupPlanOtsDetailOutput
}

OtsBackupPlanOtsDetailInput is an input type that accepts OtsBackupPlanOtsDetailArgs and OtsBackupPlanOtsDetailOutput values. You can construct a concrete instance of `OtsBackupPlanOtsDetailInput` via:

OtsBackupPlanOtsDetailArgs{...}

type OtsBackupPlanOtsDetailOutput

type OtsBackupPlanOtsDetailOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOtsDetailOutput) ElementType

func (OtsBackupPlanOtsDetailOutput) TableNames

The names of the destination tables in the Tablestore instance. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutput

func (o OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput

func (OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutputWithContext

func (o OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailOutput

type OtsBackupPlanOutput

type OtsBackupPlanOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOutput) BackupType

func (o OtsBackupPlanOutput) BackupType() pulumi.StringOutput

The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) CrossAccountRoleName

func (o OtsBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (OtsBackupPlanOutput) CrossAccountType

func (o OtsBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (OtsBackupPlanOutput) CrossAccountUserId

func (o OtsBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (OtsBackupPlanOutput) Disabled

func (o OtsBackupPlanOutput) Disabled() pulumi.BoolOutput

Whether to disable the backup task. Valid values: true, false.

func (OtsBackupPlanOutput) ElementType

func (OtsBackupPlanOutput) ElementType() reflect.Type

func (OtsBackupPlanOutput) InstanceName

func (o OtsBackupPlanOutput) InstanceName() pulumi.StringPtrOutput

The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) OtsBackupPlanName

func (o OtsBackupPlanOutput) OtsBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (OtsBackupPlanOutput) OtsDetails

The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) Retention

func (o OtsBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) Rules

The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) Schedule deprecated

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.

Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

func (OtsBackupPlanOutput) ToOtsBackupPlanOutput

func (o OtsBackupPlanOutput) ToOtsBackupPlanOutput() OtsBackupPlanOutput

func (OtsBackupPlanOutput) ToOtsBackupPlanOutputWithContext

func (o OtsBackupPlanOutput) ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput

func (OtsBackupPlanOutput) VaultId

The ID of backup vault.

type OtsBackupPlanRule

type OtsBackupPlanRule struct {
	// The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.
	BackupType *string `pulumi:"backupType"`
	// Whether to disable the backup task. Valid values: true, false.
	Disabled *bool `pulumi:"disabled"`
	// Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.
	Retention *string `pulumi:"retention"`
	// The name of the backup rule.**Note:** Required while sourceType equals `OTS_TABLE`. `ruleName` should be unique for the specific user.
	RuleName *string `pulumi:"ruleName"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.
	Schedule *string `pulumi:"schedule"`
}

type OtsBackupPlanRuleArgs

type OtsBackupPlanRuleArgs struct {
	// The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.
	BackupType pulumi.StringPtrInput `pulumi:"backupType"`
	// Whether to disable the backup task. Valid values: true, false.
	Disabled pulumi.BoolPtrInput `pulumi:"disabled"`
	// Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.
	Retention pulumi.StringPtrInput `pulumi:"retention"`
	// The name of the backup rule.**Note:** Required while sourceType equals `OTS_TABLE`. `ruleName` should be unique for the specific user.
	RuleName pulumi.StringPtrInput `pulumi:"ruleName"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.
	Schedule pulumi.StringPtrInput `pulumi:"schedule"`
}

func (OtsBackupPlanRuleArgs) ElementType

func (OtsBackupPlanRuleArgs) ElementType() reflect.Type

func (OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutput

func (i OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput

func (OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutputWithContext

func (i OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutputWithContext(ctx context.Context) OtsBackupPlanRuleOutput

type OtsBackupPlanRuleArray

type OtsBackupPlanRuleArray []OtsBackupPlanRuleInput

func (OtsBackupPlanRuleArray) ElementType

func (OtsBackupPlanRuleArray) ElementType() reflect.Type

func (OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutput

func (i OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput

func (OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutputWithContext

func (i OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutputWithContext(ctx context.Context) OtsBackupPlanRuleArrayOutput

type OtsBackupPlanRuleArrayInput

type OtsBackupPlanRuleArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput
	ToOtsBackupPlanRuleArrayOutputWithContext(context.Context) OtsBackupPlanRuleArrayOutput
}

OtsBackupPlanRuleArrayInput is an input type that accepts OtsBackupPlanRuleArray and OtsBackupPlanRuleArrayOutput values. You can construct a concrete instance of `OtsBackupPlanRuleArrayInput` via:

OtsBackupPlanRuleArray{ OtsBackupPlanRuleArgs{...} }

type OtsBackupPlanRuleArrayOutput

type OtsBackupPlanRuleArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanRuleArrayOutput) ElementType

func (OtsBackupPlanRuleArrayOutput) Index

func (OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutput

func (o OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput

func (OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutputWithContext

func (o OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutputWithContext(ctx context.Context) OtsBackupPlanRuleArrayOutput

type OtsBackupPlanRuleInput

type OtsBackupPlanRuleInput interface {
	pulumi.Input

	ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput
	ToOtsBackupPlanRuleOutputWithContext(context.Context) OtsBackupPlanRuleOutput
}

OtsBackupPlanRuleInput is an input type that accepts OtsBackupPlanRuleArgs and OtsBackupPlanRuleOutput values. You can construct a concrete instance of `OtsBackupPlanRuleInput` via:

OtsBackupPlanRuleArgs{...}

type OtsBackupPlanRuleOutput

type OtsBackupPlanRuleOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanRuleOutput) BackupType

The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanRuleOutput) Disabled

Whether to disable the backup task. Valid values: true, false.

func (OtsBackupPlanRuleOutput) ElementType

func (OtsBackupPlanRuleOutput) ElementType() reflect.Type

func (OtsBackupPlanRuleOutput) Retention

Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanRuleOutput) RuleName

The name of the backup rule.**Note:** Required while sourceType equals `OTS_TABLE`. `ruleName` should be unique for the specific user.

func (OtsBackupPlanRuleOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutput

func (o OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput

func (OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutputWithContext

func (o OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutputWithContext(ctx context.Context) OtsBackupPlanRuleOutput

type OtsBackupPlanState

type OtsBackupPlanState struct {
	// The name of the tableStore instance. Valid values: `COMPLETE`, `INCREMENTAL`. **Note:** Required while sourceType equals `OTS_TABLE`.
	BackupType pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: true, false.
	Disabled pulumi.BoolPtrInput
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	OtsBackupPlanName pulumi.StringPtrInput
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayInput
	// Backup retention days, the minimum is 1. **Note:** Required while sourceType equals `OTS_TABLE`.
	Retention pulumi.StringPtrInput
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`. It means to execute a backup task every `{interval}` starting from `{startTime}`. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. **Note:** Required while sourceType equals `OTS_TABLE`.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (OtsBackupPlanState) ElementType

func (OtsBackupPlanState) ElementType() reflect.Type

type ReplicationVault

type ReplicationVault struct {
	pulumi.CustomResourceState

	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringOutput `pulumi:"replicationSourceRegionId"`
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringOutput `pulumi:"replicationSourceVaultId"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringOutput `pulumi:"vaultName"`
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringOutput `pulumi:"vaultStorageClass"`
}

Provides a Hybrid Backup Recovery (HBR) Replication Vault resource.

For information about Hybrid Backup Recovery (HBR) Replication Vault and how to use it, see [What is Replication Vault](https://www.alibabacloud.com/help/en/doc-detail/345603.html).

> **NOTE:** Available in v1.152.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccReplicationVault"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		regionSource := "you Replication value source region"
		if param := cfg.Get("regionSource"); param != "" {
			regionSource = param
		}
		_, err := alicloud.NewProvider(ctx, "source", &alicloud.ProviderArgs{
			Region: pulumi.String(regionSource),
		})
		if err != nil {
			return err
		}
		defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
		}, pulumi.Provider(alicloud.Source))
		if err != nil {
			return err
		}
		defaultReplicationVaultRegions, err := hbr.GetReplicationVaultRegions(ctx, nil, nil)
		if err != nil {
			return err
		}
		regionReplication := defaultReplicationVaultRegions.Regions[0].ReplicationRegionId
		_, err = alicloud.NewProvider(ctx, "replication", &alicloud.ProviderArgs{
			Region: pulumi.String(regionReplication),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewReplicationVault(ctx, "defaultReplicationVault", &hbr.ReplicationVaultArgs{
			ReplicationSourceRegionId: pulumi.String(regionReplication),
			ReplicationSourceVaultId:  defaultVault.ID(),
			VaultName:                 pulumi.String(name),
			VaultStorageClass:         pulumi.String("STANDARD"),
			Description:               pulumi.String(name),
		}, pulumi.Provider(alicloud.Replication))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Replication Vault can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/replicationVault:ReplicationVault example <id>

```

func GetReplicationVault

func GetReplicationVault(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ReplicationVaultState, opts ...pulumi.ResourceOption) (*ReplicationVault, error)

GetReplicationVault gets an existing ReplicationVault resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewReplicationVault

func NewReplicationVault(ctx *pulumi.Context,
	name string, args *ReplicationVaultArgs, opts ...pulumi.ResourceOption) (*ReplicationVault, error)

NewReplicationVault registers a new resource with the given unique name, arguments, and options.

func (*ReplicationVault) ElementType

func (*ReplicationVault) ElementType() reflect.Type

func (*ReplicationVault) ToReplicationVaultOutput

func (i *ReplicationVault) ToReplicationVaultOutput() ReplicationVaultOutput

func (*ReplicationVault) ToReplicationVaultOutputWithContext

func (i *ReplicationVault) ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput

type ReplicationVaultArgs

type ReplicationVaultArgs struct {
	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrInput
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringInput
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringInput
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringInput
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
}

The set of arguments for constructing a ReplicationVault resource.

func (ReplicationVaultArgs) ElementType

func (ReplicationVaultArgs) ElementType() reflect.Type

type ReplicationVaultArray

type ReplicationVaultArray []ReplicationVaultInput

func (ReplicationVaultArray) ElementType

func (ReplicationVaultArray) ElementType() reflect.Type

func (ReplicationVaultArray) ToReplicationVaultArrayOutput

func (i ReplicationVaultArray) ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput

func (ReplicationVaultArray) ToReplicationVaultArrayOutputWithContext

func (i ReplicationVaultArray) ToReplicationVaultArrayOutputWithContext(ctx context.Context) ReplicationVaultArrayOutput

type ReplicationVaultArrayInput

type ReplicationVaultArrayInput interface {
	pulumi.Input

	ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput
	ToReplicationVaultArrayOutputWithContext(context.Context) ReplicationVaultArrayOutput
}

ReplicationVaultArrayInput is an input type that accepts ReplicationVaultArray and ReplicationVaultArrayOutput values. You can construct a concrete instance of `ReplicationVaultArrayInput` via:

ReplicationVaultArray{ ReplicationVaultArgs{...} }

type ReplicationVaultArrayOutput

type ReplicationVaultArrayOutput struct{ *pulumi.OutputState }

func (ReplicationVaultArrayOutput) ElementType

func (ReplicationVaultArrayOutput) Index

func (ReplicationVaultArrayOutput) ToReplicationVaultArrayOutput

func (o ReplicationVaultArrayOutput) ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput

func (ReplicationVaultArrayOutput) ToReplicationVaultArrayOutputWithContext

func (o ReplicationVaultArrayOutput) ToReplicationVaultArrayOutputWithContext(ctx context.Context) ReplicationVaultArrayOutput

type ReplicationVaultInput

type ReplicationVaultInput interface {
	pulumi.Input

	ToReplicationVaultOutput() ReplicationVaultOutput
	ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput
}

type ReplicationVaultMap

type ReplicationVaultMap map[string]ReplicationVaultInput

func (ReplicationVaultMap) ElementType

func (ReplicationVaultMap) ElementType() reflect.Type

func (ReplicationVaultMap) ToReplicationVaultMapOutput

func (i ReplicationVaultMap) ToReplicationVaultMapOutput() ReplicationVaultMapOutput

func (ReplicationVaultMap) ToReplicationVaultMapOutputWithContext

func (i ReplicationVaultMap) ToReplicationVaultMapOutputWithContext(ctx context.Context) ReplicationVaultMapOutput

type ReplicationVaultMapInput

type ReplicationVaultMapInput interface {
	pulumi.Input

	ToReplicationVaultMapOutput() ReplicationVaultMapOutput
	ToReplicationVaultMapOutputWithContext(context.Context) ReplicationVaultMapOutput
}

ReplicationVaultMapInput is an input type that accepts ReplicationVaultMap and ReplicationVaultMapOutput values. You can construct a concrete instance of `ReplicationVaultMapInput` via:

ReplicationVaultMap{ "key": ReplicationVaultArgs{...} }

type ReplicationVaultMapOutput

type ReplicationVaultMapOutput struct{ *pulumi.OutputState }

func (ReplicationVaultMapOutput) ElementType

func (ReplicationVaultMapOutput) ElementType() reflect.Type

func (ReplicationVaultMapOutput) MapIndex

func (ReplicationVaultMapOutput) ToReplicationVaultMapOutput

func (o ReplicationVaultMapOutput) ToReplicationVaultMapOutput() ReplicationVaultMapOutput

func (ReplicationVaultMapOutput) ToReplicationVaultMapOutputWithContext

func (o ReplicationVaultMapOutput) ToReplicationVaultMapOutputWithContext(ctx context.Context) ReplicationVaultMapOutput

type ReplicationVaultOutput

type ReplicationVaultOutput struct{ *pulumi.OutputState }

func (ReplicationVaultOutput) Description

The description of the backup vault. The description must be 0 to 255 characters in length.

func (ReplicationVaultOutput) ElementType

func (ReplicationVaultOutput) ElementType() reflect.Type

func (ReplicationVaultOutput) ReplicationSourceRegionId

func (o ReplicationVaultOutput) ReplicationSourceRegionId() pulumi.StringOutput

The ID of the region where the source vault resides.

func (ReplicationVaultOutput) ReplicationSourceVaultId

func (o ReplicationVaultOutput) ReplicationSourceVaultId() pulumi.StringOutput

The ID of the source vault.

func (ReplicationVaultOutput) Status

The status of the resource.

func (ReplicationVaultOutput) ToReplicationVaultOutput

func (o ReplicationVaultOutput) ToReplicationVaultOutput() ReplicationVaultOutput

func (ReplicationVaultOutput) ToReplicationVaultOutputWithContext

func (o ReplicationVaultOutput) ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput

func (ReplicationVaultOutput) VaultName

The name of the backup vault. The name must be 1 to 64 characters in length.

func (ReplicationVaultOutput) VaultStorageClass

func (o ReplicationVaultOutput) VaultStorageClass() pulumi.StringOutput

The storage type of the backup vault. Valid values: `STANDARD`.

type ReplicationVaultState

type ReplicationVaultState struct {
	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrInput
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringPtrInput
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringPtrInput
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
}

func (ReplicationVaultState) ElementType

func (ReplicationVaultState) ElementType() reflect.Type

type RestoreJob

type RestoreJob struct {
	pulumi.CustomResourceState

	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrOutput `pulumi:"include"`
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailOutput `pulumi:"otsDetail"`
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringOutput `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringOutput `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringOutput `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringOutput `pulumi:"sourceType"`
	// The Restore Job Status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrOutput `pulumi:"targetBucket"`
	// The target client ID.
	TargetClientId pulumi.StringPtrOutput `pulumi:"targetClientId"`
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrOutput `pulumi:"targetCreateTime"`
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrOutput `pulumi:"targetDataSourceId"`
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrOutput `pulumi:"targetFileSystemId"`
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrOutput `pulumi:"targetInstanceId"`
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrOutput `pulumi:"targetInstanceName"`
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrOutput `pulumi:"targetPath"`
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrOutput `pulumi:"targetPrefix"`
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrOutput `pulumi:"targetTableName"`
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrOutput `pulumi:"targetTime"`
	// The full machine backup details.
	UdmDetail pulumi.StringPtrOutput `pulumi:"udmDetail"`
	// The ID of backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Restore Job resource.

For information about Hybrid Backup Recovery (HBR) Restore Job and how to use it, see [What is Restore Job](https://www.alibabacloud.com/help/doc-detail/186575.htm).

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultEcsBackupPlans, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		ecsSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "ECS_FILE",
			VaultId:    defaultEcsBackupPlans.Plans[0].VaultId,
			InstanceId: pulumi.StringRef(defaultEcsBackupPlans.Plans[0].InstanceId),
		}, nil)
		if err != nil {
			return err
		}
		ossSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "OSS",
			VaultId:    defaultOssBackupPlans.Plans[0].VaultId,
			Bucket:     pulumi.StringRef(defaultOssBackupPlans.Plans[0].Bucket),
		}, nil)
		if err != nil {
			return err
		}
		nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:   "NAS",
			VaultId:      defaultNasBackupPlans.Plans[0].VaultId,
			FileSystemId: pulumi.StringRef(defaultNasBackupPlans.Plans[0].FileSystemId),
			CreateTime:   pulumi.StringRef(defaultNasBackupPlans.Plans[0].CreateTime),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "nasJob", &hbr.RestoreJobArgs{
			SnapshotHash:       pulumi.String(nasSnapshots.Snapshots[0].SnapshotHash),
			VaultId:            pulumi.String(defaultNasBackupPlans.Plans[0].VaultId),
			SourceType:         pulumi.String("NAS"),
			RestoreType:        pulumi.String("NAS"),
			SnapshotId:         pulumi.String(nasSnapshots.Snapshots[0].SnapshotId),
			TargetFileSystemId: pulumi.String(defaultNasBackupPlans.Plans[0].FileSystemId),
			TargetCreateTime:   pulumi.String(defaultNasBackupPlans.Plans[0].CreateTime),
			TargetPath:         pulumi.String("/"),
			Options:            pulumi.String("    {\"includes\":[], \"excludes\":[]}\n"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "ossJob", &hbr.RestoreJobArgs{
			SnapshotHash: pulumi.String(ossSnapshots.Snapshots[0].SnapshotHash),
			VaultId:      pulumi.String(defaultOssBackupPlans.Plans[0].VaultId),
			SourceType:   pulumi.String("OSS"),
			RestoreType:  pulumi.String("OSS"),
			SnapshotId:   pulumi.String(ossSnapshots.Snapshots[0].SnapshotId),
			TargetBucket: pulumi.String(defaultOssBackupPlans.Plans[0].Bucket),
			TargetPrefix: pulumi.String(""),
			Options:      pulumi.String("    {\"includes\":[], \"excludes\":[]}\n"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "ecsJob", &hbr.RestoreJobArgs{
			SnapshotHash:     pulumi.String(ecsSnapshots.Snapshots[0].SnapshotHash),
			VaultId:          pulumi.String(defaultEcsBackupPlans.Plans[0].VaultId),
			SourceType:       pulumi.String("ECS_FILE"),
			RestoreType:      pulumi.String("ECS_FILE"),
			SnapshotId:       pulumi.String(ecsSnapshots.Snapshots[0].SnapshotId),
			TargetInstanceId: pulumi.String(defaultEcsBackupPlans.Plans[0].InstanceId),
			TargetPath:       pulumi.String("/"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

> **NOTE:** This resource can only be created, cannot be modified or deleted. Therefore, any modification of the resource attribute will not affect exist resource.

## Import

Hybrid Backup Recovery (HBR) Restore Job can be imported using the id. Format to `<restore_job_id>:<restore_type>`, e.g.

```sh

$ pulumi import alicloud:hbr/restoreJob:RestoreJob example your_restore_job_id:your_restore_type

```

func GetRestoreJob

func GetRestoreJob(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RestoreJobState, opts ...pulumi.ResourceOption) (*RestoreJob, error)

GetRestoreJob gets an existing RestoreJob resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRestoreJob

func NewRestoreJob(ctx *pulumi.Context,
	name string, args *RestoreJobArgs, opts ...pulumi.ResourceOption) (*RestoreJob, error)

NewRestoreJob registers a new resource with the given unique name, arguments, and options.

func (*RestoreJob) ElementType

func (*RestoreJob) ElementType() reflect.Type

func (*RestoreJob) ToRestoreJobOutput

func (i *RestoreJob) ToRestoreJobOutput() RestoreJobOutput

func (*RestoreJob) ToRestoreJobOutputWithContext

func (i *RestoreJob) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput

type RestoreJobArgs

type RestoreJobArgs struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrInput
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrInput
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrInput
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailPtrInput
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringPtrInput
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringInput
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput
	// The ID of Snapshot.
	SnapshotId pulumi.StringInput
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringInput
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrInput
	// The target client ID.
	TargetClientId pulumi.StringPtrInput
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrInput
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrInput
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrInput
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrInput
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrInput
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrInput
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrInput
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrInput
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrInput
	// The full machine backup details.
	UdmDetail pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a RestoreJob resource.

func (RestoreJobArgs) ElementType

func (RestoreJobArgs) ElementType() reflect.Type

type RestoreJobArray

type RestoreJobArray []RestoreJobInput

func (RestoreJobArray) ElementType

func (RestoreJobArray) ElementType() reflect.Type

func (RestoreJobArray) ToRestoreJobArrayOutput

func (i RestoreJobArray) ToRestoreJobArrayOutput() RestoreJobArrayOutput

func (RestoreJobArray) ToRestoreJobArrayOutputWithContext

func (i RestoreJobArray) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput

type RestoreJobArrayInput

type RestoreJobArrayInput interface {
	pulumi.Input

	ToRestoreJobArrayOutput() RestoreJobArrayOutput
	ToRestoreJobArrayOutputWithContext(context.Context) RestoreJobArrayOutput
}

RestoreJobArrayInput is an input type that accepts RestoreJobArray and RestoreJobArrayOutput values. You can construct a concrete instance of `RestoreJobArrayInput` via:

RestoreJobArray{ RestoreJobArgs{...} }

type RestoreJobArrayOutput

type RestoreJobArrayOutput struct{ *pulumi.OutputState }

func (RestoreJobArrayOutput) ElementType

func (RestoreJobArrayOutput) ElementType() reflect.Type

func (RestoreJobArrayOutput) Index

func (RestoreJobArrayOutput) ToRestoreJobArrayOutput

func (o RestoreJobArrayOutput) ToRestoreJobArrayOutput() RestoreJobArrayOutput

func (RestoreJobArrayOutput) ToRestoreJobArrayOutputWithContext

func (o RestoreJobArrayOutput) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput

type RestoreJobInput

type RestoreJobInput interface {
	pulumi.Input

	ToRestoreJobOutput() RestoreJobOutput
	ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput
}

type RestoreJobMap

type RestoreJobMap map[string]RestoreJobInput

func (RestoreJobMap) ElementType

func (RestoreJobMap) ElementType() reflect.Type

func (RestoreJobMap) ToRestoreJobMapOutput

func (i RestoreJobMap) ToRestoreJobMapOutput() RestoreJobMapOutput

func (RestoreJobMap) ToRestoreJobMapOutputWithContext

func (i RestoreJobMap) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput

type RestoreJobMapInput

type RestoreJobMapInput interface {
	pulumi.Input

	ToRestoreJobMapOutput() RestoreJobMapOutput
	ToRestoreJobMapOutputWithContext(context.Context) RestoreJobMapOutput
}

RestoreJobMapInput is an input type that accepts RestoreJobMap and RestoreJobMapOutput values. You can construct a concrete instance of `RestoreJobMapInput` via:

RestoreJobMap{ "key": RestoreJobArgs{...} }

type RestoreJobMapOutput

type RestoreJobMapOutput struct{ *pulumi.OutputState }

func (RestoreJobMapOutput) ElementType

func (RestoreJobMapOutput) ElementType() reflect.Type

func (RestoreJobMapOutput) MapIndex

func (RestoreJobMapOutput) ToRestoreJobMapOutput

func (o RestoreJobMapOutput) ToRestoreJobMapOutput() RestoreJobMapOutput

func (RestoreJobMapOutput) ToRestoreJobMapOutputWithContext

func (o RestoreJobMapOutput) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput

type RestoreJobOtsDetail

type RestoreJobOtsDetail struct {
	// Whether to overwrite the existing table storage recovery task. Valid values: `true`, `false`.
	OverwriteExisting *bool `pulumi:"overwriteExisting"`
}

type RestoreJobOtsDetailArgs

type RestoreJobOtsDetailArgs struct {
	// Whether to overwrite the existing table storage recovery task. Valid values: `true`, `false`.
	OverwriteExisting pulumi.BoolPtrInput `pulumi:"overwriteExisting"`
}

func (RestoreJobOtsDetailArgs) ElementType

func (RestoreJobOtsDetailArgs) ElementType() reflect.Type

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutput

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutputWithContext

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutputWithContext(ctx context.Context) RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutput

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutputWithContext

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOtsDetailInput

type RestoreJobOtsDetailInput interface {
	pulumi.Input

	ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput
	ToRestoreJobOtsDetailOutputWithContext(context.Context) RestoreJobOtsDetailOutput
}

RestoreJobOtsDetailInput is an input type that accepts RestoreJobOtsDetailArgs and RestoreJobOtsDetailOutput values. You can construct a concrete instance of `RestoreJobOtsDetailInput` via:

RestoreJobOtsDetailArgs{...}

type RestoreJobOtsDetailOutput

type RestoreJobOtsDetailOutput struct{ *pulumi.OutputState }

func (RestoreJobOtsDetailOutput) ElementType

func (RestoreJobOtsDetailOutput) ElementType() reflect.Type

func (RestoreJobOtsDetailOutput) OverwriteExisting

func (o RestoreJobOtsDetailOutput) OverwriteExisting() pulumi.BoolPtrOutput

Whether to overwrite the existing table storage recovery task. Valid values: `true`, `false`.

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutput

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutputWithContext

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutputWithContext(ctx context.Context) RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutput

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutputWithContext

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOtsDetailPtrInput

type RestoreJobOtsDetailPtrInput interface {
	pulumi.Input

	ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput
	ToRestoreJobOtsDetailPtrOutputWithContext(context.Context) RestoreJobOtsDetailPtrOutput
}

RestoreJobOtsDetailPtrInput is an input type that accepts RestoreJobOtsDetailArgs, RestoreJobOtsDetailPtr and RestoreJobOtsDetailPtrOutput values. You can construct a concrete instance of `RestoreJobOtsDetailPtrInput` via:

        RestoreJobOtsDetailArgs{...}

or:

        nil

type RestoreJobOtsDetailPtrOutput

type RestoreJobOtsDetailPtrOutput struct{ *pulumi.OutputState }

func (RestoreJobOtsDetailPtrOutput) Elem

func (RestoreJobOtsDetailPtrOutput) ElementType

func (RestoreJobOtsDetailPtrOutput) OverwriteExisting

func (o RestoreJobOtsDetailPtrOutput) OverwriteExisting() pulumi.BoolPtrOutput

Whether to overwrite the existing table storage recovery task. Valid values: `true`, `false`.

func (RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutput

func (o RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutputWithContext

func (o RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOutput

type RestoreJobOutput struct{ *pulumi.OutputState }

func (RestoreJobOutput) CrossAccountRoleName

func (o RestoreJobOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (RestoreJobOutput) CrossAccountType

func (o RestoreJobOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (RestoreJobOutput) CrossAccountUserId

func (o RestoreJobOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (RestoreJobOutput) ElementType

func (RestoreJobOutput) ElementType() reflect.Type

func (RestoreJobOutput) Exclude

The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) Include

The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) Options

Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.

func (RestoreJobOutput) OtsDetail

The details about the Tablestore instance. See the following `Block otsDetail`.

func (RestoreJobOutput) RestoreJobId

func (o RestoreJobOutput) RestoreJobId() pulumi.StringOutput

Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.

func (RestoreJobOutput) RestoreType

func (o RestoreJobOutput) RestoreType() pulumi.StringOutput

The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.

func (RestoreJobOutput) SnapshotHash

func (o RestoreJobOutput) SnapshotHash() pulumi.StringOutput

The hashcode of Snapshot.

func (RestoreJobOutput) SnapshotId

func (o RestoreJobOutput) SnapshotId() pulumi.StringOutput

The ID of Snapshot.

func (RestoreJobOutput) SourceType

func (o RestoreJobOutput) SourceType() pulumi.StringOutput

The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.

func (RestoreJobOutput) Status

The Restore Job Status.

func (RestoreJobOutput) TargetBucket

func (o RestoreJobOutput) TargetBucket() pulumi.StringPtrOutput

The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,

func (RestoreJobOutput) TargetClientId

func (o RestoreJobOutput) TargetClientId() pulumi.StringPtrOutput

The target client ID.

func (RestoreJobOutput) TargetCreateTime

func (o RestoreJobOutput) TargetCreateTime() pulumi.StringPtrOutput

The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.

func (RestoreJobOutput) TargetDataSourceId

func (o RestoreJobOutput) TargetDataSourceId() pulumi.StringPtrOutput

The target data source ID.

func (RestoreJobOutput) TargetFileSystemId

func (o RestoreJobOutput) TargetFileSystemId() pulumi.StringPtrOutput

The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`

func (RestoreJobOutput) TargetInstanceId

func (o RestoreJobOutput) TargetInstanceId() pulumi.StringPtrOutput

The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`

func (RestoreJobOutput) TargetInstanceName

func (o RestoreJobOutput) TargetInstanceName() pulumi.StringPtrOutput

The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.

func (RestoreJobOutput) TargetPath

func (o RestoreJobOutput) TargetPath() pulumi.StringPtrOutput

The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) TargetPrefix

func (o RestoreJobOutput) TargetPrefix() pulumi.StringPtrOutput

The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) TargetTableName

func (o RestoreJobOutput) TargetTableName() pulumi.StringPtrOutput

The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.

func (RestoreJobOutput) TargetTime

func (o RestoreJobOutput) TargetTime() pulumi.StringPtrOutput

The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.

func (RestoreJobOutput) ToRestoreJobOutput

func (o RestoreJobOutput) ToRestoreJobOutput() RestoreJobOutput

func (RestoreJobOutput) ToRestoreJobOutputWithContext

func (o RestoreJobOutput) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput

func (RestoreJobOutput) UdmDetail

func (o RestoreJobOutput) UdmDetail() pulumi.StringPtrOutput

The full machine backup details.

func (RestoreJobOutput) VaultId

func (o RestoreJobOutput) VaultId() pulumi.StringOutput

The ID of backup vault.

type RestoreJobState

type RestoreJobState struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrInput
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrInput
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrInput
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailPtrInput
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringPtrInput
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringPtrInput
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringPtrInput
	// The ID of Snapshot.
	SnapshotId pulumi.StringPtrInput
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringPtrInput
	// The Restore Job Status.
	Status pulumi.StringPtrInput
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrInput
	// The target client ID.
	TargetClientId pulumi.StringPtrInput
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrInput
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrInput
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrInput
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrInput
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrInput
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrInput
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrInput
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrInput
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrInput
	// The full machine backup details.
	UdmDetail pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (RestoreJobState) ElementType

func (RestoreJobState) ElementType() reflect.Type

type ServerBackupPlan

type ServerBackupPlan struct {
	pulumi.CustomResourceState

	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayOutput `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsServerBackupPlanName pulumi.StringOutput `pulumi:"ecsServerBackupPlanName"`
	// The ID of ECS instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntOutput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringOutput `pulumi:"schedule"`
}

Provides a Hybrid Backup Recovery (HBR) Server Backup Plan resource.

For information about Hybrid Backup Recovery (HBR) Server Backup Plan and how to use it, see [What is Server Backup Plan](https://www.alibabacloud.com/help/doc-detail/211140.htm).

> **NOTE:** Available in v1.142.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{
			NameRegex: pulumi.StringRef("no-deleteing-hbr-ecs-server-backup-plan"),
			Status:    pulumi.StringRef("Running"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewServerBackupPlan(ctx, "example", &hbr.ServerBackupPlanArgs{
			EcsServerBackupPlanName: pulumi.String("server_backup_plan"),
			InstanceId:              pulumi.String(_default.Instances[0].Id),
			Schedule:                pulumi.String("I|1602673264|PT2H"),
			Retention:               pulumi.Int(1),
			Details: hbr.ServerBackupPlanDetailArray{
				&hbr.ServerBackupPlanDetailArgs{
					AppConsistent: pulumi.Bool(true),
					SnapshotGroup: pulumi.Bool(true),
				},
			},
			Disabled: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Server Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/serverBackupPlan:ServerBackupPlan example <id>

```

func GetServerBackupPlan

func GetServerBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServerBackupPlanState, opts ...pulumi.ResourceOption) (*ServerBackupPlan, error)

GetServerBackupPlan gets an existing ServerBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServerBackupPlan

func NewServerBackupPlan(ctx *pulumi.Context,
	name string, args *ServerBackupPlanArgs, opts ...pulumi.ResourceOption) (*ServerBackupPlan, error)

NewServerBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*ServerBackupPlan) ElementType

func (*ServerBackupPlan) ElementType() reflect.Type

func (*ServerBackupPlan) ToServerBackupPlanOutput

func (i *ServerBackupPlan) ToServerBackupPlanOutput() ServerBackupPlanOutput

func (*ServerBackupPlan) ToServerBackupPlanOutputWithContext

func (i *ServerBackupPlan) ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput

type ServerBackupPlanArgs

type ServerBackupPlanArgs struct {
	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsServerBackupPlanName pulumi.StringInput
	// The ID of ECS instance.
	InstanceId pulumi.StringInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringInput
}

The set of arguments for constructing a ServerBackupPlan resource.

func (ServerBackupPlanArgs) ElementType

func (ServerBackupPlanArgs) ElementType() reflect.Type

type ServerBackupPlanArray

type ServerBackupPlanArray []ServerBackupPlanInput

func (ServerBackupPlanArray) ElementType

func (ServerBackupPlanArray) ElementType() reflect.Type

func (ServerBackupPlanArray) ToServerBackupPlanArrayOutput

func (i ServerBackupPlanArray) ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput

func (ServerBackupPlanArray) ToServerBackupPlanArrayOutputWithContext

func (i ServerBackupPlanArray) ToServerBackupPlanArrayOutputWithContext(ctx context.Context) ServerBackupPlanArrayOutput

type ServerBackupPlanArrayInput

type ServerBackupPlanArrayInput interface {
	pulumi.Input

	ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput
	ToServerBackupPlanArrayOutputWithContext(context.Context) ServerBackupPlanArrayOutput
}

ServerBackupPlanArrayInput is an input type that accepts ServerBackupPlanArray and ServerBackupPlanArrayOutput values. You can construct a concrete instance of `ServerBackupPlanArrayInput` via:

ServerBackupPlanArray{ ServerBackupPlanArgs{...} }

type ServerBackupPlanArrayOutput

type ServerBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanArrayOutput) ElementType

func (ServerBackupPlanArrayOutput) Index

func (ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutput

func (o ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput

func (ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutputWithContext

func (o ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutputWithContext(ctx context.Context) ServerBackupPlanArrayOutput

type ServerBackupPlanDetail

type ServerBackupPlanDetail struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent bool `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId *string `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention *int `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists []string `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy *bool `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze *bool `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath *string `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath *string `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup bool `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds *int `pulumi:"timeoutInSeconds"`
}

type ServerBackupPlanDetailArgs

type ServerBackupPlanDetailArgs struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent pulumi.BoolInput `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId pulumi.StringPtrInput `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention pulumi.IntPtrInput `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists pulumi.StringArrayInput `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy pulumi.BoolPtrInput `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze pulumi.BoolPtrInput `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath pulumi.StringPtrInput `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath pulumi.StringPtrInput `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup pulumi.BoolInput `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds pulumi.IntPtrInput `pulumi:"timeoutInSeconds"`
}

func (ServerBackupPlanDetailArgs) ElementType

func (ServerBackupPlanDetailArgs) ElementType() reflect.Type

func (ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutput

func (i ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput

func (ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutputWithContext

func (i ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutputWithContext(ctx context.Context) ServerBackupPlanDetailOutput

type ServerBackupPlanDetailArray

type ServerBackupPlanDetailArray []ServerBackupPlanDetailInput

func (ServerBackupPlanDetailArray) ElementType

func (ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutput

func (i ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput

func (ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutputWithContext

func (i ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutputWithContext(ctx context.Context) ServerBackupPlanDetailArrayOutput

type ServerBackupPlanDetailArrayInput

type ServerBackupPlanDetailArrayInput interface {
	pulumi.Input

	ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput
	ToServerBackupPlanDetailArrayOutputWithContext(context.Context) ServerBackupPlanDetailArrayOutput
}

ServerBackupPlanDetailArrayInput is an input type that accepts ServerBackupPlanDetailArray and ServerBackupPlanDetailArrayOutput values. You can construct a concrete instance of `ServerBackupPlanDetailArrayInput` via:

ServerBackupPlanDetailArray{ ServerBackupPlanDetailArgs{...} }

type ServerBackupPlanDetailArrayOutput

type ServerBackupPlanDetailArrayOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanDetailArrayOutput) ElementType

func (ServerBackupPlanDetailArrayOutput) Index

func (ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutput

func (o ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput

func (ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutputWithContext

func (o ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutputWithContext(ctx context.Context) ServerBackupPlanDetailArrayOutput

type ServerBackupPlanDetailInput

type ServerBackupPlanDetailInput interface {
	pulumi.Input

	ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput
	ToServerBackupPlanDetailOutputWithContext(context.Context) ServerBackupPlanDetailOutput
}

ServerBackupPlanDetailInput is an input type that accepts ServerBackupPlanDetailArgs and ServerBackupPlanDetailOutput values. You can construct a concrete instance of `ServerBackupPlanDetailInput` via:

ServerBackupPlanDetailArgs{...}

type ServerBackupPlanDetailOutput

type ServerBackupPlanDetailOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanDetailOutput) AppConsistent

Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) DestinationRegionId

func (o ServerBackupPlanDetailOutput) DestinationRegionId() pulumi.StringPtrOutput

Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (ServerBackupPlanDetailOutput) DestinationRetention

func (o ServerBackupPlanDetailOutput) DestinationRetention() pulumi.IntPtrOutput

Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (ServerBackupPlanDetailOutput) DiskIdLists

The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.

func (ServerBackupPlanDetailOutput) DoCopy

Whether replicate to another region. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) ElementType

func (ServerBackupPlanDetailOutput) EnableFsFreeze

Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) PostScriptPath

Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (ServerBackupPlanDetailOutput) PreScriptPath

Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (ServerBackupPlanDetailOutput) SnapshotGroup

Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) TimeoutInSeconds

func (o ServerBackupPlanDetailOutput) TimeoutInSeconds() pulumi.IntPtrOutput

Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.

func (ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutput

func (o ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput

func (ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutputWithContext

func (o ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutputWithContext(ctx context.Context) ServerBackupPlanDetailOutput

type ServerBackupPlanInput

type ServerBackupPlanInput interface {
	pulumi.Input

	ToServerBackupPlanOutput() ServerBackupPlanOutput
	ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput
}

type ServerBackupPlanMap

type ServerBackupPlanMap map[string]ServerBackupPlanInput

func (ServerBackupPlanMap) ElementType

func (ServerBackupPlanMap) ElementType() reflect.Type

func (ServerBackupPlanMap) ToServerBackupPlanMapOutput

func (i ServerBackupPlanMap) ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput

func (ServerBackupPlanMap) ToServerBackupPlanMapOutputWithContext

func (i ServerBackupPlanMap) ToServerBackupPlanMapOutputWithContext(ctx context.Context) ServerBackupPlanMapOutput

type ServerBackupPlanMapInput

type ServerBackupPlanMapInput interface {
	pulumi.Input

	ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput
	ToServerBackupPlanMapOutputWithContext(context.Context) ServerBackupPlanMapOutput
}

ServerBackupPlanMapInput is an input type that accepts ServerBackupPlanMap and ServerBackupPlanMapOutput values. You can construct a concrete instance of `ServerBackupPlanMapInput` via:

ServerBackupPlanMap{ "key": ServerBackupPlanArgs{...} }

type ServerBackupPlanMapOutput

type ServerBackupPlanMapOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanMapOutput) ElementType

func (ServerBackupPlanMapOutput) ElementType() reflect.Type

func (ServerBackupPlanMapOutput) MapIndex

func (ServerBackupPlanMapOutput) ToServerBackupPlanMapOutput

func (o ServerBackupPlanMapOutput) ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput

func (ServerBackupPlanMapOutput) ToServerBackupPlanMapOutputWithContext

func (o ServerBackupPlanMapOutput) ToServerBackupPlanMapOutputWithContext(ctx context.Context) ServerBackupPlanMapOutput

type ServerBackupPlanOutput

type ServerBackupPlanOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanOutput) Details

ECS server backup plan details.

func (ServerBackupPlanOutput) Disabled

Whether to disable the backup task. Valid values: `true`, `false`.

func (ServerBackupPlanOutput) EcsServerBackupPlanName

func (o ServerBackupPlanOutput) EcsServerBackupPlanName() pulumi.StringOutput

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

func (ServerBackupPlanOutput) ElementType

func (ServerBackupPlanOutput) ElementType() reflect.Type

func (ServerBackupPlanOutput) InstanceId

The ID of ECS instance.

func (ServerBackupPlanOutput) Retention

func (o ServerBackupPlanOutput) Retention() pulumi.IntOutput

Backup retention days, the minimum is 1.

func (ServerBackupPlanOutput) Schedule

Backup strategy. Optional format: `I|{startTime}|{interval}`

func (ServerBackupPlanOutput) ToServerBackupPlanOutput

func (o ServerBackupPlanOutput) ToServerBackupPlanOutput() ServerBackupPlanOutput

func (ServerBackupPlanOutput) ToServerBackupPlanOutputWithContext

func (o ServerBackupPlanOutput) ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput

type ServerBackupPlanState

type ServerBackupPlanState struct {
	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.
	EcsServerBackupPlanName pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntPtrInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringPtrInput
}

func (ServerBackupPlanState) ElementType

func (ServerBackupPlanState) ElementType() reflect.Type

type Vault

type Vault struct {
	pulumi.CustomResourceState

	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Valid values: `HBR_PRIVATE`,`KMS`. Defaults to `HBR_PRIVATE`.
	// - `HBR_PRIVATE`: HBR is fully hosted, uses the backup service's own encryption method.
	// - `KMS`: Use Alibaba Cloud Kms to encryption.
	EncryptType pulumi.StringOutput `pulumi:"encryptType"`
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
	// The redundancy type of the vault. Valid values: `LRS`, and `ZRS`. Defaults to `LRS`.
	// - `LRS`: means locally redundant storage, data will be stored on different storage devices in the same zone.
	// - `ZRS`: means zone-redundant storage, the data will be replicated across three storage clusters in a single region. Each storage cluster is physically separated but within the same region.
	RedundancyType pulumi.StringOutput `pulumi:"redundancyType"`
	// The status of Vault. Valid values: `INITIALIZING`, `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The name of Vault.
	VaultName pulumi.StringOutput `pulumi:"vaultName"`
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringOutput `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringOutput `pulumi:"vaultType"`
}

Provides a HBR Backup vault resource.

For information about HBR Backup vault and how to use it, see [What is Backup vault](https://www.alibabacloud.com/help/doc-detail/62362.htm).

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/hbr"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Vault can be imported using the id, e.g.

```sh

$ pulumi import alicloud:hbr/vault:Vault example <id>

```

func GetVault

func GetVault(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VaultState, opts ...pulumi.ResourceOption) (*Vault, error)

GetVault gets an existing Vault resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVault

func NewVault(ctx *pulumi.Context,
	name string, args *VaultArgs, opts ...pulumi.ResourceOption) (*Vault, error)

NewVault registers a new resource with the given unique name, arguments, and options.

func (*Vault) ElementType

func (*Vault) ElementType() reflect.Type

func (*Vault) ToVaultOutput

func (i *Vault) ToVaultOutput() VaultOutput

func (*Vault) ToVaultOutputWithContext

func (i *Vault) ToVaultOutputWithContext(ctx context.Context) VaultOutput

type VaultArgs

type VaultArgs struct {
	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrInput
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Valid values: `HBR_PRIVATE`,`KMS`. Defaults to `HBR_PRIVATE`.
	// - `HBR_PRIVATE`: HBR is fully hosted, uses the backup service's own encryption method.
	// - `KMS`: Use Alibaba Cloud Kms to encryption.
	EncryptType pulumi.StringPtrInput
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrInput
	// The redundancy type of the vault. Valid values: `LRS`, and `ZRS`. Defaults to `LRS`.
	// - `LRS`: means locally redundant storage, data will be stored on different storage devices in the same zone.
	// - `ZRS`: means zone-redundant storage, the data will be replicated across three storage clusters in a single region. Each storage cluster is physically separated but within the same region.
	RedundancyType pulumi.StringPtrInput
	// The name of Vault.
	VaultName pulumi.StringInput
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringPtrInput
}

The set of arguments for constructing a Vault resource.

func (VaultArgs) ElementType

func (VaultArgs) ElementType() reflect.Type

type VaultArray

type VaultArray []VaultInput

func (VaultArray) ElementType

func (VaultArray) ElementType() reflect.Type

func (VaultArray) ToVaultArrayOutput

func (i VaultArray) ToVaultArrayOutput() VaultArrayOutput

func (VaultArray) ToVaultArrayOutputWithContext

func (i VaultArray) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultArrayInput

type VaultArrayInput interface {
	pulumi.Input

	ToVaultArrayOutput() VaultArrayOutput
	ToVaultArrayOutputWithContext(context.Context) VaultArrayOutput
}

VaultArrayInput is an input type that accepts VaultArray and VaultArrayOutput values. You can construct a concrete instance of `VaultArrayInput` via:

VaultArray{ VaultArgs{...} }

type VaultArrayOutput

type VaultArrayOutput struct{ *pulumi.OutputState }

func (VaultArrayOutput) ElementType

func (VaultArrayOutput) ElementType() reflect.Type

func (VaultArrayOutput) Index

func (VaultArrayOutput) ToVaultArrayOutput

func (o VaultArrayOutput) ToVaultArrayOutput() VaultArrayOutput

func (VaultArrayOutput) ToVaultArrayOutputWithContext

func (o VaultArrayOutput) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultInput

type VaultInput interface {
	pulumi.Input

	ToVaultOutput() VaultOutput
	ToVaultOutputWithContext(ctx context.Context) VaultOutput
}

type VaultMap

type VaultMap map[string]VaultInput

func (VaultMap) ElementType

func (VaultMap) ElementType() reflect.Type

func (VaultMap) ToVaultMapOutput

func (i VaultMap) ToVaultMapOutput() VaultMapOutput

func (VaultMap) ToVaultMapOutputWithContext

func (i VaultMap) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultMapInput

type VaultMapInput interface {
	pulumi.Input

	ToVaultMapOutput() VaultMapOutput
	ToVaultMapOutputWithContext(context.Context) VaultMapOutput
}

VaultMapInput is an input type that accepts VaultMap and VaultMapOutput values. You can construct a concrete instance of `VaultMapInput` via:

VaultMap{ "key": VaultArgs{...} }

type VaultMapOutput

type VaultMapOutput struct{ *pulumi.OutputState }

func (VaultMapOutput) ElementType

func (VaultMapOutput) ElementType() reflect.Type

func (VaultMapOutput) MapIndex

func (VaultMapOutput) ToVaultMapOutput

func (o VaultMapOutput) ToVaultMapOutput() VaultMapOutput

func (VaultMapOutput) ToVaultMapOutputWithContext

func (o VaultMapOutput) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultOutput

type VaultOutput struct{ *pulumi.OutputState }

func (VaultOutput) Description

func (o VaultOutput) Description() pulumi.StringPtrOutput

The description of Vault. Defaults to an empty string.

func (VaultOutput) ElementType

func (VaultOutput) ElementType() reflect.Type

func (VaultOutput) EncryptType

func (o VaultOutput) EncryptType() pulumi.StringOutput

Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Valid values: `HBR_PRIVATE`,`KMS`. Defaults to `HBR_PRIVATE`. - `HBR_PRIVATE`: HBR is fully hosted, uses the backup service's own encryption method. - `KMS`: Use Alibaba Cloud Kms to encryption.

func (VaultOutput) KmsKeyId

func (o VaultOutput) KmsKeyId() pulumi.StringPtrOutput

The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.

func (VaultOutput) RedundancyType

func (o VaultOutput) RedundancyType() pulumi.StringOutput

The redundancy type of the vault. Valid values: `LRS`, and `ZRS`. Defaults to `LRS`. - `LRS`: means locally redundant storage, data will be stored on different storage devices in the same zone. - `ZRS`: means zone-redundant storage, the data will be replicated across three storage clusters in a single region. Each storage cluster is physically separated but within the same region.

func (VaultOutput) Status

func (o VaultOutput) Status() pulumi.StringOutput

The status of Vault. Valid values: `INITIALIZING`, `CREATED`, `ERROR`, `UNKNOWN`.

func (VaultOutput) ToVaultOutput

func (o VaultOutput) ToVaultOutput() VaultOutput

func (VaultOutput) ToVaultOutputWithContext

func (o VaultOutput) ToVaultOutputWithContext(ctx context.Context) VaultOutput

func (VaultOutput) VaultName

func (o VaultOutput) VaultName() pulumi.StringOutput

The name of Vault.

func (VaultOutput) VaultStorageClass

func (o VaultOutput) VaultStorageClass() pulumi.StringOutput

The storage class of Vault. Valid values: `STANDARD`.

func (VaultOutput) VaultType

func (o VaultOutput) VaultType() pulumi.StringOutput

The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.

type VaultState

type VaultState struct {
	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrInput
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Valid values: `HBR_PRIVATE`,`KMS`. Defaults to `HBR_PRIVATE`.
	// - `HBR_PRIVATE`: HBR is fully hosted, uses the backup service's own encryption method.
	// - `KMS`: Use Alibaba Cloud Kms to encryption.
	EncryptType pulumi.StringPtrInput
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrInput
	// The redundancy type of the vault. Valid values: `LRS`, and `ZRS`. Defaults to `LRS`.
	// - `LRS`: means locally redundant storage, data will be stored on different storage devices in the same zone.
	// - `ZRS`: means zone-redundant storage, the data will be replicated across three storage clusters in a single region. Each storage cluster is physically separated but within the same region.
	RedundancyType pulumi.StringPtrInput
	// The status of Vault. Valid values: `INITIALIZING`, `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringPtrInput
	// The name of Vault.
	VaultName pulumi.StringPtrInput
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringPtrInput
}

func (VaultState) ElementType

func (VaultState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL