Assign a Rubrik object to a specified SLA Domain
resource "rubrik_assign_sla" "assign-sla" {
object_name = "tf-example-vm"
object_type = "vmware"
sla_name = "Gold"
}
The following arguments are supported:
object_name
- (Required) The name of the Rubrik object you wish to assign to an SLA Domain.object_type
- (Required) The Rubrik object type you want to assign to the SLA Domain. Currently,vmware
andahv
are the only supported values.sla_name
- (Required) The name of the SLA Domain you wish to assign an object to. To exclude the object from all SLA assignments usedo not protect
as thesla_name
. To assign the selected object to the SLA of the next higher level object useclear
as thesla_name
.timeout
- (Optional) The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error. Default is15
.
Valid object_type
choices:
- vmware
- ahv
The following attributes are exported:
id
- An ID unique to Terraform for this port group. The convention is a prefix, the host system ID, and the port group name. An example would bevmware-exampleVMName-assigned-sla-Gold
.sla_domain
- The name of the SLA Domain assigned to theobject_name
.object_type
- The type of the Rubrik object you assigned an SLA Domain to.object_name
- The name of the Rubrik object you assigned an SLA Domain to.
On terraform destroy
, this resource will set the sla_domain
to clear
which will assign the select object_name
to the SLA of the next higher level object.