oci.Waas.HttpRedirect
Explore with Pulumi AI
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=oci.waas.HttpRedirectTargetArgs(
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/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.Map{
"Operations.CostCenter": pulumi.Any("42"),
},
DisplayName: pulumi.Any(httpRedirectDisplayName),
FreeformTags: pulumi.Map{
"Department": pulumi.Any("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, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = 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", "any" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "any" },
},
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.Map{
"string": pulumi.Any("any"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
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", "any"))
.displayName("string")
.freeformTags(Map.of("string", "any"))
.responseCode(0)
.build());
http_redirect_resource = oci.waas.HttpRedirect("httpRedirectResource",
compartment_id="string",
domain="string",
target=oci.waas.HttpRedirectTargetArgs(
host="string",
path="string",
protocol="string",
query="string",
port=0,
),
defined_tags={
"string": "any",
},
display_name="string",
freeform_tags={
"string": "any",
},
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: "any",
},
displayName: "string",
freeformTags: {
string: "any",
},
responseCode: 0,
});
type: oci:Waas:HttpRedirect
properties:
compartmentId: string
definedTags:
string: any
displayName: string
domain: string
freeformTags:
string: any
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
The HttpRedirect resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- Domain string
- The domain from which traffic will be redirected.
- Target
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- 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"}
- Display
Name string - (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- 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"}
- Response
Code int - (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
- Compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- Domain string
- The domain from which traffic will be redirected.
- Target
Http
Redirect Target Args - (Updatable) The redirect target object including all the redirect data.
- 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"}
- Display
Name string - (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- 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"}
- Response
Code int - (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
- compartment
Id String - (Updatable) The OCID of the HTTP Redirects compartment.
- domain String
- The domain from which traffic will be redirected.
- target
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- 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"}
- display
Name String - (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- 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"}
- response
Code Integer - (Updatable) The response code returned for the redirect to the client. For more information, see RFC 7231.
- compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- domain string
- The domain from which traffic will be redirected.
- target
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- {[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"}
- display
Name string - (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- {[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"}
- response
Code 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.
Http Redirect Target Args - (Updatable) The redirect target object including all the redirect data.
- 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.
- 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.
- compartment
Id 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.
- 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"}
- display
Name String - (Updatable) The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- 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"}
- response
Code 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.
- Time
Created 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.
- Time
Created 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.
- time
Created 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.
- time
Created 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.
- time
Created 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.
- Compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- 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"}
- Display
Name 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.
- 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"}
- Response
Code 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
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- Time
Created string - The date and time the policy was created, expressed in RFC 3339 timestamp format.
- Compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- 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"}
- Display
Name 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.
- 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"}
- Response
Code 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
Http
Redirect Target Args - (Updatable) The redirect target object including all the redirect data.
- Time
Created string - The date and time the policy was created, expressed in RFC 3339 timestamp format.
- compartment
Id String - (Updatable) The OCID of the HTTP Redirects compartment.
- 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"}
- display
Name 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.
- 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"}
- response
Code 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
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- time
Created String - The date and time the policy was created, expressed in RFC 3339 timestamp format.
- compartment
Id string - (Updatable) The OCID of the HTTP Redirects compartment.
- {[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"}
- display
Name 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.
- {[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"}
- response
Code 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
Http
Redirect Target - (Updatable) The redirect target object including all the redirect data.
- time
Created 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.
- 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.
- 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
waas.
Http Redirect Target Args - (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.
- compartment
Id String - (Updatable) The OCID of the HTTP Redirects compartment.
- 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"}
- display
Name 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.
- 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"}
- response
Code 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.
- time
Created 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.