1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. HttpRedirect
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Waas.HttpRedirect

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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("test_http_redirect", {
        compartmentId: compartmentId,
        domain: httpRedirectDomain,
        target: {
            host: httpRedirectTargetHost,
            path: httpRedirectTargetPath,
            protocol: httpRedirectTargetProtocol,
            query: httpRedirectTargetQuery,
            port: httpRedirectTargetPort,
        },
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: httpRedirectDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        responseCode: httpRedirectResponseCode,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_http_redirect = oci.waas.HttpRedirect("test_http_redirect",
        compartment_id=compartment_id,
        domain=http_redirect_domain,
        target={
            "host": http_redirect_target_host,
            "path": http_redirect_target_path,
            "protocol": http_redirect_target_protocol,
            "query": http_redirect_target_query,
            "port": http_redirect_target_port,
        },
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=http_redirect_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        response_code=http_redirect_response_code)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Waas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waas.NewHttpRedirect(ctx, "test_http_redirect", &Waas.HttpRedirectArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Domain:        pulumi.Any(httpRedirectDomain),
    			Target: &waas.HttpRedirectTargetArgs{
    				Host:     pulumi.Any(httpRedirectTargetHost),
    				Path:     pulumi.Any(httpRedirectTargetPath),
    				Protocol: pulumi.Any(httpRedirectTargetProtocol),
    				Query:    pulumi.Any(httpRedirectTargetQuery),
    				Port:     pulumi.Any(httpRedirectTargetPort),
    			},
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(httpRedirectDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			ResponseCode: pulumi.Any(httpRedirectResponseCode),
    		})
    		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("test_http_redirect", new()
        {
            CompartmentId = compartmentId,
            Domain = httpRedirectDomain,
            Target = new Oci.Waas.Inputs.HttpRedirectTargetArgs
            {
                Host = httpRedirectTargetHost,
                Path = httpRedirectTargetPath,
                Protocol = httpRedirectTargetProtocol,
                Query = httpRedirectTargetQuery,
                Port = httpRedirectTargetPort,
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = httpRedirectDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ResponseCode = httpRedirectResponseCode,
        });
    
    });
    
    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(compartmentId)
                .domain(httpRedirectDomain)
                .target(HttpRedirectTargetArgs.builder()
                    .host(httpRedirectTargetHost)
                    .path(httpRedirectTargetPath)
                    .protocol(httpRedirectTargetProtocol)
                    .query(httpRedirectTargetQuery)
                    .port(httpRedirectTargetPort)
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(httpRedirectDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .responseCode(httpRedirectResponseCode)
                .build());
    
        }
    }
    
    resources:
      testHttpRedirect:
        type: oci:Waas:HttpRedirect
        name: test_http_redirect
        properties:
          compartmentId: ${compartmentId}
          domain: ${httpRedirectDomain}
          target:
            host: ${httpRedirectTargetHost}
            path: ${httpRedirectTargetPath}
            protocol: ${httpRedirectTargetProtocol}
            query: ${httpRedirectTargetQuery}
            port: ${httpRedirectTargetPort}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${httpRedirectDisplayName}
          freeformTags:
            Department: Finance
          responseCode: ${httpRedirectResponseCode}
    

    Create HttpRedirect Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HttpRedirect(name: string, args: HttpRedirectArgs, opts?: CustomResourceOptions);
    @overload
    def HttpRedirect(resource_name: str,
                     args: HttpRedirectArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def HttpRedirect(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     compartment_id: Optional[str] = None,
                     domain: Optional[str] = None,
                     target: Optional[_waas.HttpRedirectTargetArgs] = None,
                     defined_tags: Optional[Mapping[str, str]] = None,
                     display_name: Optional[str] = None,
                     freeform_tags: Optional[Mapping[str, str]] = None,
                     response_code: Optional[int] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var httpRedirectResource = new Oci.Waas.HttpRedirect("httpRedirectResource", new()
    {
        CompartmentId = "string",
        Domain = "string",
        Target = new Oci.Waas.Inputs.HttpRedirectTargetArgs
        {
            Host = "string",
            Path = "string",
            Protocol = "string",
            Query = "string",
            Port = 0,
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        ResponseCode = 0,
    });
    
    example, err := Waas.NewHttpRedirect(ctx, "httpRedirectResource", &Waas.HttpRedirectArgs{
    	CompartmentId: pulumi.String("string"),
    	Domain:        pulumi.String("string"),
    	Target: &waas.HttpRedirectTargetArgs{
    		Host:     pulumi.String("string"),
    		Path:     pulumi.String("string"),
    		Protocol: pulumi.String("string"),
    		Query:    pulumi.String("string"),
    		Port:     pulumi.Int(0),
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ResponseCode: pulumi.Int(0),
    })
    
    var httpRedirectResource = new HttpRedirect("httpRedirectResource", HttpRedirectArgs.builder()
        .compartmentId("string")
        .domain("string")
        .target(HttpRedirectTargetArgs.builder()
            .host("string")
            .path("string")
            .protocol("string")
            .query("string")
            .port(0)
            .build())
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .responseCode(0)
        .build());
    
    http_redirect_resource = oci.waas.HttpRedirect("httpRedirectResource",
        compartment_id="string",
        domain="string",
        target={
            "host": "string",
            "path": "string",
            "protocol": "string",
            "query": "string",
            "port": 0,
        },
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        response_code=0)
    
    const httpRedirectResource = new oci.waas.HttpRedirect("httpRedirectResource", {
        compartmentId: "string",
        domain: "string",
        target: {
            host: "string",
            path: "string",
            protocol: "string",
            query: "string",
            port: 0,
        },
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        responseCode: 0,
    });
    
    type: oci:Waas:HttpRedirect
    properties:
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        domain: string
        freeformTags:
            string: string
        responseCode: 0
        target:
            host: string
            path: string
            port: 0
            protocol: string
            query: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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, string>
    (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, string>
    (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]string
    (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]string
    (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,String>
    (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,String>
    (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]: string}
    (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]: string}
    (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 waas.HttpRedirectTargetArgs
    (Updatable) The redirect target object including all the redirect data.
    defined_tags Mapping[str, str]
    (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, str]
    (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<String>
    (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>
    (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, str]] = None,
            display_name: Optional[str] = None,
            domain: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = 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, string>
    (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, string>
    (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]string
    (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]string
    (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,String>
    (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,String>
    (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]: string}
    (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]: string}
    (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, str]
    (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, str]
    (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 waas.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<String>
    (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>
    (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"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi