alicloud_hbr_hana_instance
更新時間:
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.
-> NOTE: Available in v1.178.0+.
-> NOTE: The sid
attribute is required when destroying resources.
Example Usage
Basic Usage
data "alicloud_resource_manager_resource_groups" "example" {
status = "OK"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_hbr_vault" "example" {
vault_name = "terraform-example-${random_integer.default.result}"
}
resource "alicloud_hbr_hana_instance" "example" {
alert_setting = "INHERITED"
hana_name = "terraform-example-${random_integer.default.result}"
host = "1.1.1.1"
instance_number = 1
password = "YouPassword123"
resource_group_id = data.alicloud_resource_manager_resource_groups.example.groups.0.id
sid = "HXE"
use_ssl = false
user_name = "admin"
validate_certificate = false
vault_id = alicloud_hbr_vault.example.id
}
Argument Reference
The following arguments are supported:
vault_id
- (Required, ForceNew) The ID of the backup vault.alert_setting
- (Optional) The alert settings. Valid value:INHERITED
, which indicates that the backup client sends alert notifications in the same way as the backup vault.ecs_instance_ids
- (Optional) The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.hana_name
- (Optional) The name of the SAP HANA instance.host
- (Optional) The private or internal IP address of the host where the primary node of the SAP HANA instance resides.instance_number
- (Optional) The instance number of the SAP HANA system.password
- (Optional, ForceNew) The password that is used to connect with the SAP HANA database.resource_group_id
- (Optional) The ID of the resource group.sid
- (Optional, ForceNew) The security identifier (SID) of the SAP HANA database.use_ssl
- (Optional) Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).user_name
- (Optional) The username of the SYSTEMDB database.validate_certificate
- (Optional) Specifies whether to verify the SSL certificate of the SAP HANA database.
Attributes Reference
The following attributes are exported:
id
- The resource ID of Hana Instance. The value formats as<vault_id>:<hana_instance_id>
.hana_instance_id
- The id of the Hana Instance.status
- The status of the resource.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when create the Hana Instance.delete
- (Defaults to 1 mins) Used when delete the Hana Instance.update
- (Defaults to 1 mins) Used when update the Hana Instance.
Import
Hybrid Backup Recovery (HBR) Hana Instance can be imported using the id, e.g.
$ terraform import alicloud_hbr_hana_instance.example <vault_id>:<hana_instance_id>
文檔內容是否對您有幫助?