Oracle Cloud Infrastructure
getHttpRedirects
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testHttpRedirects = Output.Create(Oci.Waas.GetHttpRedirects.InvokeAsync(new Oci.Waas.GetHttpRedirectsArgs
{
CompartmentId = @var.Compartment_id,
DisplayNames = @var.Http_redirect_display_names,
Ids = @var.Http_redirect_ids,
States = @var.Http_redirect_states,
TimeCreatedGreaterThanOrEqualTo = @var.Http_redirect_time_created_greater_than_or_equal_to,
TimeCreatedLessThan = @var.Http_redirect_time_created_less_than,
}));
}
}
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.GetHttpRedirects(ctx, &waas.GetHttpRedirectsArgs{
CompartmentId: _var.Compartment_id,
DisplayNames: _var.Http_redirect_display_names,
Ids: _var.Http_redirect_ids,
States: _var.Http_redirect_states,
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(_var.Http_redirect_time_created_greater_than_or_equal_to),
TimeCreatedLessThan: pulumi.StringRef(_var.Http_redirect_time_created_less_than),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_http_redirects = oci.Waas.get_http_redirects(compartment_id=var["compartment_id"],
display_names=var["http_redirect_display_names"],
ids=var["http_redirect_ids"],
states=var["http_redirect_states"],
time_created_greater_than_or_equal_to=var["http_redirect_time_created_greater_than_or_equal_to"],
time_created_less_than=var["http_redirect_time_created_less_than"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHttpRedirects = oci.Waas.getHttpRedirects({
compartmentId: _var.compartment_id,
displayNames: _var.http_redirect_display_names,
ids: _var.http_redirect_ids,
states: _var.http_redirect_states,
timeCreatedGreaterThanOrEqualTo: _var.http_redirect_time_created_greater_than_or_equal_to,
timeCreatedLessThan: _var.http_redirect_time_created_less_than,
});
Coming soon!
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>
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]
func GetHttpRedirects(ctx *Context, args *GetHttpRedirectsArgs, opts ...InvokeOption) (*GetHttpRedirectsResult, error)
func GetHttpRedirectsOutput(ctx *Context, args *GetHttpRedirectsOutputArgs, opts ...InvokeOption) GetHttpRedirectsResultOutput
> 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)
}
public static CompletableFuture<GetHttpRedirectsResult> getHttpRedirects(GetHttpRedirectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Waas/getHttpRedirects:getHttpRedirects
Arguments:
# Arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment. This number is generated when the compartment is created.
- Display
Names List<string> Filter redirects using a display name.
- Filters
List<Get
Http Redirects Filter> - Ids List<string>
Filter redirects using a list of redirect OCIDs.
- States List<string>
Filter redirects using a list of lifecycle states.
- Time
Created stringGreater Than Or Equal To A filter that matches redirects created on or after the specified date and time.
- Time
Created stringLess Than A filter that matches redirects created before the specified date-time. Default to 1 day before now.
- Compartment
Id string The OCID of the compartment. This number is generated when the compartment is created.
- Display
Names []string Filter redirects using a display name.
- Filters
[]Get
Http Redirects Filter - Ids []string
Filter redirects using a list of redirect OCIDs.
- States []string
Filter redirects using a list of lifecycle states.
- Time
Created stringGreater Than Or Equal To A filter that matches redirects created on or after the specified date and time.
- Time
Created stringLess Than A filter that matches redirects created before the specified date-time. Default to 1 day before now.
- compartment
Id String The OCID of the compartment. This number is generated when the compartment is created.
- display
Names List<String> Filter redirects using a display name.
- filters
List<Get
Http Redirects Filter> - ids List<String>
Filter redirects using a list of redirect OCIDs.
- states List<String>
Filter redirects using a list of lifecycle states.
- time
Created StringGreater Than Or Equal To A filter that matches redirects created on or after the specified date and time.
- time
Created StringLess Than A filter that matches redirects created before the specified date-time. Default to 1 day before now.
- compartment
Id string The OCID of the compartment. This number is generated when the compartment is created.
- display
Names string[] Filter redirects using a display name.
- filters
Get
Http Redirects Filter[] - ids string[]
Filter redirects using a list of redirect OCIDs.
- states string[]
Filter redirects using a list of lifecycle states.
- time
Created stringGreater Than Or Equal To A filter that matches redirects created on or after the specified date and time.
- time
Created stringLess Than A filter that matches redirects created before the specified date-time. Default to 1 day before now.
- compartment_
id 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
Get
Http Redirects Filter] - ids Sequence[str]
Filter redirects using a list of redirect OCIDs.
- states Sequence[str]
Filter redirects using a list of lifecycle states.
- time_
created_ strgreater_ than_ or_ equal_ to A filter that matches redirects created on or after the specified date and time.
- time_
created_ strless_ than A filter that matches redirects created before the specified date-time. Default to 1 day before now.
- compartment
Id String The OCID of the compartment. This number is generated when the compartment is created.
- display
Names List<String> Filter redirects using a display name.
- filters 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.
- time
Created StringGreater Than Or Equal To A filter that matches redirects created on or after the specified date and time.
- time
Created StringLess Than 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:
- Compartment
Id string The OCID of the HTTP Redirect's compartment.
- Http
Redirects List<GetHttp Redirects Http Redirect> The list of http_redirects.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Names List<string> - Filters
List<Get
Http Redirects Filter> - Ids List<string>
- States List<string>
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- Compartment
Id string The OCID of the HTTP Redirect's compartment.
- Http
Redirects []GetHttp Redirects Http Redirect The list of http_redirects.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Names []string - Filters
[]Get
Http Redirects Filter - Ids []string
- States []string
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than
- compartment
Id String The OCID of the HTTP Redirect's compartment.
- http
Redirects List<GetHttp Redirects Http Redirect> The list of http_redirects.
- id String
The provider-assigned unique ID for this managed resource.
- display
Names List<String> - filters
List<Get
Http Redirects Filter> - ids List<String>
- states List<String>
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
- compartment
Id string The OCID of the HTTP Redirect's compartment.
- http
Redirects GetHttp Redirects Http Redirect[] The list of http_redirects.
- id string
The provider-assigned unique ID for this managed resource.
- display
Names string[] - filters
Get
Http Redirects Filter[] - ids string[]
- states string[]
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than
- compartment_
id str The OCID of the HTTP Redirect's compartment.
- http_
redirects GetHttp Redirects Http Redirect] The list of http_redirects.
- id str
The provider-assigned unique ID for this managed resource.
- display_
names Sequence[str] - filters
Get
Http Redirects Filter] - ids Sequence[str]
- states Sequence[str]
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than
- compartment
Id String The OCID of the HTTP Redirect's compartment.
- http
Redirects List<Property Map> The list of http_redirects.
- id String
The provider-assigned unique ID for this managed resource.
- display
Names List<String> - filters List<Property Map>
- ids List<String>
- states List<String>
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than
Supporting Types
GetHttpRedirectsFilter
GetHttpRedirectsHttpRedirect
- Compartment
Id string The OCID of the compartment. This number is generated when the compartment is created.
- Dictionary<string, object>
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 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>
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 string
The OCID of the HTTP Redirect.
- Response
Code int 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.
- Targets
List<Get
Http Redirects Http Redirect Target> 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 The OCID of the compartment. This number is generated when the compartment is created.
- map[string]interface{}
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 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{}
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 string
The OCID of the HTTP Redirect.
- Response
Code int 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.
- Targets
[]Get
Http Redirects Http Redirect Target 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 The OCID of the compartment. This number is generated when the compartment is created.
- Map<String,Object>
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 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>
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 String
The OCID of the HTTP Redirect.
- response
Code Integer 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.
- targets
List<Get
Http Redirects Http Redirect Target> 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 The OCID of the compartment. This number is generated when the compartment is created.
- {[key: string]: any}
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 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}
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 string
The OCID of the HTTP Redirect.
- response
Code number 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.
- targets
Get
Http Redirects Http Redirect Target[] 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 The OCID of the compartment. This number is generated when the compartment is created.
- Mapping[str, Any]
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 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]
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 str
The OCID of the HTTP Redirect.
- response_
code int 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.
- targets
Get
Http Redirects Http Redirect Target] 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 The OCID of the compartment. This number is generated when the compartment is created.
- Map<Any>
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 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>
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 String
The OCID of the HTTP Redirect.
- response
Code Number 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.
- targets List<Property Map>
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.
GetHttpRedirectsHttpRedirectTarget
- Host string
The host portion of the redirect.
- Path 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 int
Port number of the target destination of the redirect, default to match protocol
- Protocol string
The protocol used for the target, http or https.
- Query 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 string
The host portion of the redirect.
- Path 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 int
Port number of the target destination of the redirect, default to match protocol
- Protocol string
The protocol used for the target, http or https.
- Query 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 String
The host portion of the redirect.
- path 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 Integer
Port number of the target destination of the redirect, default to match protocol
- protocol String
The protocol used for the target, http or https.
- query 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 string
The host portion of the redirect.
- path 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 number
Port number of the target destination of the redirect, default to match protocol
- protocol string
The protocol used for the target, http or https.
- query 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 str
The host portion of the redirect.
- path 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 int
Port number of the target destination of the redirect, default to match protocol
- protocol str
The protocol used for the target, http or https.
- query 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 String
The host portion of the redirect.
- path 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 Number
Port number of the target destination of the redirect, default to match protocol
- protocol String
The protocol used for the target, http or https.
- query 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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.