oci_waas_http_redirect

This resource provides the Http Redirect resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

Creates a new HTTP Redirect on the WAF edge.

Example Usage

resource "oci_waas_http_redirect" "test_http_redirect" {
    #Required
    compartment_id = var.compartment_id
    domain = var.http_redirect_domain
    target {
        #Required
        host = var.http_redirect_target_host
        path = var.http_redirect_target_path
        protocol = var.http_redirect_target_protocol
        query = var.http_redirect_target_query

        #Optional
        port = var.http_redirect_target_port
    }

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    display_name = var.http_redirect_display_name
    freeform_tags = {"Department"= "Finance"}
    response_code = var.http_redirect_response_code
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Http Redirect * update - (Defaults to 20 minutes), when updating the Http Redirect * delete - (Defaults to 20 minutes), when destroying the Http Redirect

Import

HttpRedirects can be imported using the id, e.g.

$ terraform import oci_waas_http_redirect.test_http_redirect "id"