Terraform Provider for Rubrik
  • README
  • Getting Started
    • Quick Start
  • Data Sources
    • cluster_version
  • Resources
    • assign_sla
    • aws_export_ec2
    • aws_native_account
    • aws_s3_cloudon
    • aws_s3_cloudout
    • azure_cloudon
    • azure_cloudout
    • bootstrap
    • bootstrap_cces_aws
    • bootstrap_cces_azure
    • configure_timezone
Powered by GitBook
On this page
  • rubrik_assign_sla
  • Example Usage
  • Argument Reference
  • Attribute Reference
  • Destroy Behavior

Was this helpful?

  1. Resources

assign_sla

rubrik_assign_sla

Assign a Rubrik object to a specified SLA Domain

Example Usage

resource "rubrik_assign_sla" "assign-sla" {
  object_name = "tf-example-vm"
  object_type = "vmware"
  sla_name    = "Gold"
}

Argument Reference

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 and ahv 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 use do not protect as the sla_name. To assign the selected object to the SLA of the next higher level object use clear as the sla_name.

  • timeout - (Optional) The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error. Default is 15.

Valid object_type choices:

  • vmware

  • ahv

Attribute Reference

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 be vmware-exampleVMName-assigned-sla-Gold.

  • sla_domain - The name of the SLA Domain assigned to the object_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.

Destroy Behavior

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.

Previouscluster_versionNextaws_export_ec2

Last updated 5 years ago

Was this helpful?