1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getHttpRedirects
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Waas.getHttpRedirects

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides the list of Http Redirects in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

Gets a list of HTTP Redirects.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testHttpRedirects = oci.Waas.getHttpRedirects({
    compartmentId: compartmentId,
    displayNames: httpRedirectDisplayNames,
    ids: httpRedirectIds,
    states: httpRedirectStates,
    timeCreatedGreaterThanOrEqualTo: httpRedirectTimeCreatedGreaterThanOrEqualTo,
    timeCreatedLessThan: httpRedirectTimeCreatedLessThan,
});
Copy
import pulumi
import pulumi_oci as oci

test_http_redirects = oci.Waas.get_http_redirects(compartment_id=compartment_id,
    display_names=http_redirect_display_names,
    ids=http_redirect_ids,
    states=http_redirect_states,
    time_created_greater_than_or_equal_to=http_redirect_time_created_greater_than_or_equal_to,
    time_created_less_than=http_redirect_time_created_less_than)
Copy
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.GetHttpRedirects(ctx, &waas.GetHttpRedirectsArgs{
			CompartmentId:                   compartmentId,
			DisplayNames:                    httpRedirectDisplayNames,
			Ids:                             httpRedirectIds,
			States:                          httpRedirectStates,
			TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(httpRedirectTimeCreatedGreaterThanOrEqualTo),
			TimeCreatedLessThan:             pulumi.StringRef(httpRedirectTimeCreatedLessThan),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testHttpRedirects = Oci.Waas.GetHttpRedirects.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayNames = httpRedirectDisplayNames,
        Ids = httpRedirectIds,
        States = httpRedirectStates,
        TimeCreatedGreaterThanOrEqualTo = httpRedirectTimeCreatedGreaterThanOrEqualTo,
        TimeCreatedLessThan = httpRedirectTimeCreatedLessThan,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waas.WaasFunctions;
import com.pulumi.oci.Waas.inputs.GetHttpRedirectsArgs;
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) {
        final var testHttpRedirects = WaasFunctions.getHttpRedirects(GetHttpRedirectsArgs.builder()
            .compartmentId(compartmentId)
            .displayNames(httpRedirectDisplayNames)
            .ids(httpRedirectIds)
            .states(httpRedirectStates)
            .timeCreatedGreaterThanOrEqualTo(httpRedirectTimeCreatedGreaterThanOrEqualTo)
            .timeCreatedLessThan(httpRedirectTimeCreatedLessThan)
            .build());

    }
}
Copy
variables:
  testHttpRedirects:
    fn::invoke:
      function: oci:Waas:getHttpRedirects
      arguments:
        compartmentId: ${compartmentId}
        displayNames: ${httpRedirectDisplayNames}
        ids: ${httpRedirectIds}
        states: ${httpRedirectStates}
        timeCreatedGreaterThanOrEqualTo: ${httpRedirectTimeCreatedGreaterThanOrEqualTo}
        timeCreatedLessThan: ${httpRedirectTimeCreatedLessThan}
Copy

Using getHttpRedirects

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getHttpRedirects(args: GetHttpRedirectsArgs, opts?: InvokeOptions): Promise<GetHttpRedirectsResult>
function getHttpRedirectsOutput(args: GetHttpRedirectsOutputArgs, opts?: InvokeOptions): Output<GetHttpRedirectsResult>
Copy
def get_http_redirects(compartment_id: Optional[str] = None,
                       display_names: Optional[Sequence[str]] = None,
                       filters: Optional[Sequence[_waas.GetHttpRedirectsFilter]] = None,
                       ids: Optional[Sequence[str]] = None,
                       states: Optional[Sequence[str]] = None,
                       time_created_greater_than_or_equal_to: Optional[str] = None,
                       time_created_less_than: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetHttpRedirectsResult
def get_http_redirects_output(compartment_id: Optional[pulumi.Input[str]] = None,
                       display_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_waas.GetHttpRedirectsFilterArgs]]]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                       time_created_less_than: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetHttpRedirectsResult]
Copy
func GetHttpRedirects(ctx *Context, args *GetHttpRedirectsArgs, opts ...InvokeOption) (*GetHttpRedirectsResult, error)
func GetHttpRedirectsOutput(ctx *Context, args *GetHttpRedirectsOutputArgs, opts ...InvokeOption) GetHttpRedirectsResultOutput
Copy

> Note: This function is named GetHttpRedirects in the Go SDK.

public static class GetHttpRedirects 
{
    public static Task<GetHttpRedirectsResult> InvokeAsync(GetHttpRedirectsArgs args, InvokeOptions? opts = null)
    public static Output<GetHttpRedirectsResult> Invoke(GetHttpRedirectsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHttpRedirectsResult> getHttpRedirects(GetHttpRedirectsArgs args, InvokeOptions options)
public static Output<GetHttpRedirectsResult> getHttpRedirects(GetHttpRedirectsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Waas/getHttpRedirects:getHttpRedirects
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
DisplayNames List<string>
Filter redirects using a display name.
Filters Changes to this property will trigger replacement. List<GetHttpRedirectsFilter>
Ids List<string>
Filter redirects using a list of redirect OCIDs.
States List<string>
Filter redirects using a list of lifecycle states.
TimeCreatedGreaterThanOrEqualTo string
A filter that matches redirects created on or after the specified date and time.
TimeCreatedLessThan string
A filter that matches redirects created before the specified date-time. Default to 1 day before now.
CompartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
DisplayNames []string
Filter redirects using a display name.
Filters Changes to this property will trigger replacement. []GetHttpRedirectsFilter
Ids []string
Filter redirects using a list of redirect OCIDs.
States []string
Filter redirects using a list of lifecycle states.
TimeCreatedGreaterThanOrEqualTo string
A filter that matches redirects created on or after the specified date and time.
TimeCreatedLessThan string
A filter that matches redirects created before the specified date-time. Default to 1 day before now.
compartmentId This property is required. String
The OCID of the compartment. This number is generated when the compartment is created.
displayNames List<String>
Filter redirects using a display name.
filters Changes to this property will trigger replacement. List<GetHttpRedirectsFilter>
ids List<String>
Filter redirects using a list of redirect OCIDs.
states List<String>
Filter redirects using a list of lifecycle states.
timeCreatedGreaterThanOrEqualTo String
A filter that matches redirects created on or after the specified date and time.
timeCreatedLessThan String
A filter that matches redirects created before the specified date-time. Default to 1 day before now.
compartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
displayNames string[]
Filter redirects using a display name.
filters Changes to this property will trigger replacement. GetHttpRedirectsFilter[]
ids string[]
Filter redirects using a list of redirect OCIDs.
states string[]
Filter redirects using a list of lifecycle states.
timeCreatedGreaterThanOrEqualTo string
A filter that matches redirects created on or after the specified date and time.
timeCreatedLessThan string
A filter that matches redirects created before the specified date-time. Default to 1 day before now.
compartment_id This property is required. str
The OCID of the compartment. This number is generated when the compartment is created.
display_names Sequence[str]
Filter redirects using a display name.
filters Changes to this property will trigger replacement. Sequence[waas.GetHttpRedirectsFilter]
ids Sequence[str]
Filter redirects using a list of redirect OCIDs.
states Sequence[str]
Filter redirects using a list of lifecycle states.
time_created_greater_than_or_equal_to str
A filter that matches redirects created on or after the specified date and time.
time_created_less_than str
A filter that matches redirects created before the specified date-time. Default to 1 day before now.
compartmentId This property is required. String
The OCID of the compartment. This number is generated when the compartment is created.
displayNames List<String>
Filter redirects using a display name.
filters Changes to this property will trigger replacement. List<Property Map>
ids List<String>
Filter redirects using a list of redirect OCIDs.
states List<String>
Filter redirects using a list of lifecycle states.
timeCreatedGreaterThanOrEqualTo String
A filter that matches redirects created on or after the specified date and time.
timeCreatedLessThan String
A filter that matches redirects created before the specified date-time. Default to 1 day before now.

getHttpRedirects Result

The following output properties are available:

CompartmentId string
The OCID of the HTTP Redirect's compartment.
HttpRedirects List<GetHttpRedirectsHttpRedirect>
The list of http_redirects.
Id string
The provider-assigned unique ID for this managed resource.
DisplayNames List<string>
Filters List<GetHttpRedirectsFilter>
Ids List<string>
States List<string>
TimeCreatedGreaterThanOrEqualTo string
TimeCreatedLessThan string
CompartmentId string
The OCID of the HTTP Redirect's compartment.
HttpRedirects []GetHttpRedirectsHttpRedirect
The list of http_redirects.
Id string
The provider-assigned unique ID for this managed resource.
DisplayNames []string
Filters []GetHttpRedirectsFilter
Ids []string
States []string
TimeCreatedGreaterThanOrEqualTo string
TimeCreatedLessThan string
compartmentId String
The OCID of the HTTP Redirect's compartment.
httpRedirects List<GetHttpRedirectsHttpRedirect>
The list of http_redirects.
id String
The provider-assigned unique ID for this managed resource.
displayNames List<String>
filters List<GetHttpRedirectsFilter>
ids List<String>
states List<String>
timeCreatedGreaterThanOrEqualTo String
timeCreatedLessThan String
compartmentId string
The OCID of the HTTP Redirect's compartment.
httpRedirects GetHttpRedirectsHttpRedirect[]
The list of http_redirects.
id string
The provider-assigned unique ID for this managed resource.
displayNames string[]
filters GetHttpRedirectsFilter[]
ids string[]
states string[]
timeCreatedGreaterThanOrEqualTo string
timeCreatedLessThan string
compartment_id str
The OCID of the HTTP Redirect's compartment.
http_redirects Sequence[waas.GetHttpRedirectsHttpRedirect]
The list of http_redirects.
id str
The provider-assigned unique ID for this managed resource.
display_names Sequence[str]
filters Sequence[waas.GetHttpRedirectsFilter]
ids Sequence[str]
states Sequence[str]
time_created_greater_than_or_equal_to str
time_created_less_than str
compartmentId String
The OCID of the HTTP Redirect's compartment.
httpRedirects List<Property Map>
The list of http_redirects.
id String
The provider-assigned unique ID for this managed resource.
displayNames List<String>
filters List<Property Map>
ids List<String>
states List<String>
timeCreatedGreaterThanOrEqualTo String
timeCreatedLessThan String

Supporting Types

GetHttpRedirectsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetHttpRedirectsHttpRedirect

CompartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
DefinedTags This property is required. Dictionary<string, string>
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 This property is required. string
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
Domain This property is required. string
The domain from which traffic will be redirected.
FreeformTags This property is required. Dictionary<string, string>
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"}
Id This property is required. string
The OCID of the HTTP Redirect.
ResponseCode This property is required. int
The response code returned for the redirect to the client. For more information, see RFC 7231.
State This property is required. string
The current lifecycle state of the HTTP Redirect.
Targets This property is required. List<GetHttpRedirectsHttpRedirectTarget>
The redirect target object including all the redirect data.
TimeCreated This property is required. string
The date and time the policy was created, expressed in RFC 3339 timestamp format.
CompartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
DefinedTags This property is required. map[string]string
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 This property is required. string
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
Domain This property is required. string
The domain from which traffic will be redirected.
FreeformTags This property is required. map[string]string
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"}
Id This property is required. string
The OCID of the HTTP Redirect.
ResponseCode This property is required. int
The response code returned for the redirect to the client. For more information, see RFC 7231.
State This property is required. string
The current lifecycle state of the HTTP Redirect.
Targets This property is required. []GetHttpRedirectsHttpRedirectTarget
The redirect target object including all the redirect data.
TimeCreated This property is required. string
The date and time the policy was created, expressed in RFC 3339 timestamp format.
compartmentId This property is required. String
The OCID of the compartment. This number is generated when the compartment is created.
definedTags This property is required. Map<String,String>
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 This property is required. String
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
domain This property is required. String
The domain from which traffic will be redirected.
freeformTags This property is required. Map<String,String>
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"}
id This property is required. String
The OCID of the HTTP Redirect.
responseCode This property is required. Integer
The response code returned for the redirect to the client. For more information, see RFC 7231.
state This property is required. String
The current lifecycle state of the HTTP Redirect.
targets This property is required. List<GetHttpRedirectsHttpRedirectTarget>
The redirect target object including all the redirect data.
timeCreated This property is required. String
The date and time the policy was created, expressed in RFC 3339 timestamp format.
compartmentId This property is required. string
The OCID of the compartment. This number is generated when the compartment is created.
definedTags This property is required. {[key: string]: string}
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 This property is required. string
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
domain This property is required. string
The domain from which traffic will be redirected.
freeformTags This property is required. {[key: string]: string}
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"}
id This property is required. string
The OCID of the HTTP Redirect.
responseCode This property is required. number
The response code returned for the redirect to the client. For more information, see RFC 7231.
state This property is required. string
The current lifecycle state of the HTTP Redirect.
targets This property is required. GetHttpRedirectsHttpRedirectTarget[]
The redirect target object including all the redirect data.
timeCreated This property is required. string
The date and time the policy was created, expressed in RFC 3339 timestamp format.
compartment_id This property is required. str
The OCID of the compartment. This number is generated when the compartment is created.
defined_tags This property is required. Mapping[str, str]
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 This property is required. str
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
domain This property is required. str
The domain from which traffic will be redirected.
freeform_tags This property is required. Mapping[str, str]
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"}
id This property is required. str
The OCID of the HTTP Redirect.
response_code This property is required. int
The response code returned for the redirect to the client. For more information, see RFC 7231.
state This property is required. str
The current lifecycle state of the HTTP Redirect.
targets This property is required. Sequence[waas.GetHttpRedirectsHttpRedirectTarget]
The redirect target object including all the redirect data.
time_created This property is required. str
The date and time the policy was created, expressed in RFC 3339 timestamp format.
compartmentId This property is required. String
The OCID of the compartment. This number is generated when the compartment is created.
definedTags This property is required. Map<String>
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 This property is required. String
The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
domain This property is required. String
The domain from which traffic will be redirected.
freeformTags This property is required. Map<String>
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"}
id This property is required. String
The OCID of the HTTP Redirect.
responseCode This property is required. Number
The response code returned for the redirect to the client. For more information, see RFC 7231.
state This property is required. String
The current lifecycle state of the HTTP Redirect.
targets This property is required. List<Property Map>
The redirect target object including all the redirect data.
timeCreated This property is required. String
The date and time the policy was created, expressed in RFC 3339 timestamp format.

GetHttpRedirectsHttpRedirectTarget

Host This property is required. string
The host portion of the redirect.
Path This property is required. string
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.
Port This property is required. int
Port number of the target destination of the redirect, default to match protocol
Protocol This property is required. string
The protocol used for the target, http or https.
Query This property is required. string
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).
Host This property is required. string
The host portion of the redirect.
Path This property is required. string
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.
Port This property is required. int
Port number of the target destination of the redirect, default to match protocol
Protocol This property is required. string
The protocol used for the target, http or https.
Query This property is required. string
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).
host This property is required. String
The host portion of the redirect.
path This property is required. String
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.
port This property is required. Integer
Port number of the target destination of the redirect, default to match protocol
protocol This property is required. String
The protocol used for the target, http or https.
query This property is required. String
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).
host This property is required. string
The host portion of the redirect.
path This property is required. string
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.
port This property is required. number
Port number of the target destination of the redirect, default to match protocol
protocol This property is required. string
The protocol used for the target, http or https.
query This property is required. string
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).
host This property is required. str
The host portion of the redirect.
path This property is required. str
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.
port This property is required. int
Port number of the target destination of the redirect, default to match protocol
protocol This property is required. str
The protocol used for the target, http or https.
query This property is required. str
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).
host This property is required. String
The host portion of the redirect.
path This property is required. String
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.
port This property is required. Number
Port number of the target destination of the redirect, default to match protocol
protocol This property is required. String
The protocol used for the target, http or https.
query This property is required. String
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).

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi