1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. HttpRedirect
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Waas.HttpRedirect

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testHttpRedirect = new oci.waas.HttpRedirect("testHttpRedirect", {
        compartmentId: _var.compartment_id,
        domain: _var.http_redirect_domain,
        target: {
            host: _var.http_redirect_target_host,
            path: _var.http_redirect_target_path,
            protocol: _var.http_redirect_target_protocol,
            query: _var.http_redirect_target_query,
            port: _var.http_redirect_target_port,
        },
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.http_redirect_display_name,
        freeformTags: {
            Department: "Finance",
        },
        responseCode: _var.http_redirect_response_code,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_http_redirect = oci.waas.HttpRedirect("testHttpRedirect",
        compartment_id=var["compartment_id"],
        domain=var["http_redirect_domain"],
        target=oci.waas.HttpRedirectTargetArgs(
            host=var["http_redirect_target_host"],
            path=var["http_redirect_target_path"],
            protocol=var["http_redirect_target_protocol"],
            query=var["http_redirect_target_query"],
            port=var["http_redirect_target_port"],
        ),
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["http_redirect_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        response_code=var["http_redirect_response_code"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waas.NewHttpRedirect(ctx, "testHttpRedirect", &Waas.HttpRedirectArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			Domain:        pulumi.Any(_var.Http_redirect_domain),
    			Target: &waas.HttpRedirectTargetArgs{
    				Host:     pulumi.Any(_var.Http_redirect_target_host),
    				Path:     pulumi.Any(_var.Http_redirect_target_path),
    				Protocol: pulumi.Any(_var.Http_redirect_target_protocol),
    				Query:    pulumi.Any(_var.Http_redirect_target_query),
    				Port:     pulumi.Any(_var.Http_redirect_target_port),
    			},
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Http_redirect_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			ResponseCode: pulumi.Any(_var.Http_redirect_response_code),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testHttpRedirect = new Oci.Waas.HttpRedirect("testHttpRedirect", new()
        {
            CompartmentId = @var.Compartment_id,
            Domain = @var.Http_redirect_domain,
            Target = new Oci.Waas.Inputs.HttpRedirectTargetArgs
            {
                Host = @var.Http_redirect_target_host,
                Path = @var.Http_redirect_target_path,
                Protocol = @var.Http_redirect_target_protocol,
                Query = @var.Http_redirect_target_query,
                Port = @var.Http_redirect_target_port,
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Http_redirect_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ResponseCode = @var.Http_redirect_response_code,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waas.HttpRedirect;
    import com.pulumi.oci.Waas.HttpRedirectArgs;
    import com.pulumi.oci.Waas.inputs.HttpRedirectTargetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testHttpRedirect = new HttpRedirect("testHttpRedirect", HttpRedirectArgs.builder()        
                .compartmentId(var_.compartment_id())
                .domain(var_.http_redirect_domain())
                .target(HttpRedirectTargetArgs.builder()
                    .host(var_.http_redirect_target_host())
                    .path(var_.http_redirect_target_path())
                    .protocol(var_.http_redirect_target_protocol())
                    .query(var_.http_redirect_target_query())
                    .port(var_.http_redirect_target_port())
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.http_redirect_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .responseCode(var_.http_redirect_response_code())
                .build());
    
        }
    }
    
    resources:
      testHttpRedirect:
        type: oci:Waas:HttpRedirect
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          domain: ${var.http_redirect_domain}
          target:
            host: ${var.http_redirect_target_host}
            path: ${var.http_redirect_target_path}
            protocol: ${var.http_redirect_target_protocol}
            query: ${var.http_redirect_target_query}
            port: ${var.http_redirect_target_port}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.http_redirect_display_name}
          freeformTags:
            Department: Finance
          responseCode: ${var.http_redirect_response_code}
    

    Create HttpRedirect Resource

    new HttpRedirect(name: string, args: HttpRedirectArgs, opts?: CustomResourceOptions);
    @overload
    def HttpRedirect(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     compartment_id: Optional[str] = None,
                     defined_tags: Optional[Mapping[str, Any]] = None,
                     display_name: Optional[str] = None,
                     domain: Optional[str] = None,
                     freeform_tags: Optional[Mapping[str, Any]] = None,
                     response_code: Optional[int] = None,
                     target: Optional[_waas.HttpRedirectTargetArgs] = None)
    @overload
    def HttpRedirect(resource_name: str,
                     args: HttpRedirectArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewHttpRedirect(ctx *Context, name string, args HttpRedirectArgs, opts ...ResourceOption) (*HttpRedirect, error)
    public HttpRedirect(string name, HttpRedirectArgs args, CustomResourceOptions? opts = null)
    public HttpRedirect(String name, HttpRedirectArgs args)
    public HttpRedirect(String name, HttpRedirectArgs args, CustomResourceOptions options)
    
    type: oci:Waas:HttpRedirect
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args HttpRedirectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HttpRedirectArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HttpRedirectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HttpRedirectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HttpRedirectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    HttpRedirect Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The HttpRedirect resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    Domain string
    The domain from which traffic will be redirected.
    Target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResponseCode int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    CompartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    Domain string
    The domain from which traffic will be redirected.
    Target HttpRedirectTargetArgs
    (Updatable) The redirect target object including all the redirect data.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResponseCode int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    compartmentId String
    (Updatable) The OCID of the HTTP Redirects compartment.
    domain String
    The domain from which traffic will be redirected.
    target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode Integer
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    compartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    domain string
    The domain from which traffic will be redirected.
    target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode number
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    compartment_id str
    (Updatable) The OCID of the HTTP Redirects compartment.
    domain str
    The domain from which traffic will be redirected.
    target HttpRedirectTargetArgs
    (Updatable) The redirect target object including all the redirect data.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    response_code int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    compartmentId String
    (Updatable) The OCID of the HTTP Redirects compartment.
    domain String
    The domain from which traffic will be redirected.
    target Property Map
    (Updatable) The redirect target object including all the redirect data.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode Number
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HttpRedirect resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the HTTP Redirect.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the HTTP Redirect.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the HTTP Redirect.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current lifecycle state of the HTTP Redirect.
    timeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current lifecycle state of the HTTP Redirect.
    time_created str
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the HTTP Redirect.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.

    Look up Existing HttpRedirect Resource

    Get an existing HttpRedirect resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HttpRedirectState, opts?: CustomResourceOptions): HttpRedirect
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            domain: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            response_code: Optional[int] = None,
            state: Optional[str] = None,
            target: Optional[_waas.HttpRedirectTargetArgs] = None,
            time_created: Optional[str] = None) -> HttpRedirect
    func GetHttpRedirect(ctx *Context, name string, id IDInput, state *HttpRedirectState, opts ...ResourceOption) (*HttpRedirect, error)
    public static HttpRedirect Get(string name, Input<string> id, HttpRedirectState? state, CustomResourceOptions? opts = null)
    public static HttpRedirect get(String name, Output<String> id, HttpRedirectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    Domain string
    The domain from which traffic will be redirected.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResponseCode int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    State string
    The current lifecycle state of the HTTP Redirect.
    Target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    CompartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    Domain string
    The domain from which traffic will be redirected.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ResponseCode int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    State string
    The current lifecycle state of the HTTP Redirect.
    Target HttpRedirectTargetArgs
    (Updatable) The redirect target object including all the redirect data.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId String
    (Updatable) The OCID of the HTTP Redirects compartment.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    domain String
    The domain from which traffic will be redirected.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode Integer
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    state String
    The current lifecycle state of the HTTP Redirect.
    target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId string
    (Updatable) The OCID of the HTTP Redirects compartment.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    domain string
    The domain from which traffic will be redirected.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode number
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    state string
    The current lifecycle state of the HTTP Redirect.
    target HttpRedirectTarget
    (Updatable) The redirect target object including all the redirect data.
    timeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartment_id str
    (Updatable) The OCID of the HTTP Redirects compartment.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    domain str
    The domain from which traffic will be redirected.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    response_code int
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    state str
    The current lifecycle state of the HTTP Redirect.
    target HttpRedirectTargetArgs
    (Updatable) The redirect target object including all the redirect data.
    time_created str
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId String
    (Updatable) The OCID of the HTTP Redirects compartment.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
    domain String
    The domain from which traffic will be redirected.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    responseCode Number
    (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
    state String
    The current lifecycle state of the HTTP Redirect.
    target Property Map
    (Updatable) The redirect target object including all the redirect data.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.

    Supporting Types

    HttpRedirectTarget, HttpRedirectTargetArgs

    Host string
    (Updatable) The host portion of the redirect.
    Path string
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    Protocol string
    (Updatable) The protocol used for the target, http or https.
    Query string

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    Port int
    (Updatable) Port number of the target destination of the redirect, default to match protocol
    Host string
    (Updatable) The host portion of the redirect.
    Path string
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    Protocol string
    (Updatable) The protocol used for the target, http or https.
    Query string

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    Port int
    (Updatable) Port number of the target destination of the redirect, default to match protocol
    host String
    (Updatable) The host portion of the redirect.
    path String
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    protocol String
    (Updatable) The protocol used for the target, http or https.
    query String

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    port Integer
    (Updatable) Port number of the target destination of the redirect, default to match protocol
    host string
    (Updatable) The host portion of the redirect.
    path string
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    protocol string
    (Updatable) The protocol used for the target, http or https.
    query string

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    port number
    (Updatable) Port number of the target destination of the redirect, default to match protocol
    host str
    (Updatable) The host portion of the redirect.
    path str
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    protocol str
    (Updatable) The protocol used for the target, http or https.
    query str

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    port int
    (Updatable) Port number of the target destination of the redirect, default to match protocol
    host String
    (Updatable) The host portion of the redirect.
    path String
    (Updatable) The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following , {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed.
    protocol String
    (Updatable) The protocol used for the target, http or https.
    query String

    (Updatable) The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following , {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component).

    ** 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

    port Number
    (Updatable) Port number of the target destination of the redirect, default to match protocol

    Import

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

    $ pulumi import oci:Waas/httpRedirect:HttpRedirect test_http_redirect "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi