1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getHttpRedirect
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Waas.getHttpRedirect

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Http Redirect resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

    Gets the details of a HTTP Redirect.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testHttpRedirect = oci.Waas.getHttpRedirect({
        httpRedirectId: oci_waas_http_redirect.test_http_redirect.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_http_redirect = oci.Waas.get_http_redirect(http_redirect_id=oci_waas_http_redirect["test_http_redirect"]["id"])
    
    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.GetHttpRedirect(ctx, &waas.GetHttpRedirectArgs{
    			HttpRedirectId: oci_waas_http_redirect.Test_http_redirect.Id,
    		}, nil)
    		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 = Oci.Waas.GetHttpRedirect.Invoke(new()
        {
            HttpRedirectId = oci_waas_http_redirect.Test_http_redirect.Id,
        });
    
    });
    
    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.GetHttpRedirectArgs;
    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 testHttpRedirect = WaasFunctions.getHttpRedirect(GetHttpRedirectArgs.builder()
                .httpRedirectId(oci_waas_http_redirect.test_http_redirect().id())
                .build());
    
        }
    }
    
    variables:
      testHttpRedirect:
        fn::invoke:
          Function: oci:Waas:getHttpRedirect
          Arguments:
            httpRedirectId: ${oci_waas_http_redirect.test_http_redirect.id}
    

    Using getHttpRedirect

    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 getHttpRedirect(args: GetHttpRedirectArgs, opts?: InvokeOptions): Promise<GetHttpRedirectResult>
    function getHttpRedirectOutput(args: GetHttpRedirectOutputArgs, opts?: InvokeOptions): Output<GetHttpRedirectResult>
    def get_http_redirect(http_redirect_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetHttpRedirectResult
    def get_http_redirect_output(http_redirect_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetHttpRedirectResult]
    func GetHttpRedirect(ctx *Context, args *GetHttpRedirectArgs, opts ...InvokeOption) (*GetHttpRedirectResult, error)
    func GetHttpRedirectOutput(ctx *Context, args *GetHttpRedirectOutputArgs, opts ...InvokeOption) GetHttpRedirectResultOutput

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

    public static class GetHttpRedirect 
    {
        public static Task<GetHttpRedirectResult> InvokeAsync(GetHttpRedirectArgs args, InvokeOptions? opts = null)
        public static Output<GetHttpRedirectResult> Invoke(GetHttpRedirectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHttpRedirectResult> getHttpRedirect(GetHttpRedirectArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waas/getHttpRedirect:getHttpRedirect
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HttpRedirectId string
    The OCID of the HTTP Redirect.
    HttpRedirectId string
    The OCID of the HTTP Redirect.
    httpRedirectId String
    The OCID of the HTTP Redirect.
    httpRedirectId string
    The OCID of the HTTP Redirect.
    http_redirect_id str
    The OCID of the HTTP Redirect.
    httpRedirectId String
    The OCID of the HTTP Redirect.

    getHttpRedirect Result

    The following output properties are available:

    CompartmentId string
    The OCID of the HTTP Redirect's compartment.
    DefinedTags 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"}
    DisplayName 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.
    FreeformTags 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"}
    HttpRedirectId string
    Id string
    The OCID of the HTTP Redirect.
    ResponseCode 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<GetHttpRedirectTarget>
    The redirect target object including all the redirect data.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    CompartmentId string
    The OCID of the HTTP Redirect's compartment.
    DefinedTags 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"}
    DisplayName 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.
    FreeformTags 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"}
    HttpRedirectId string
    Id string
    The OCID of the HTTP Redirect.
    ResponseCode 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 []GetHttpRedirectTarget
    The redirect target object including all the redirect data.
    TimeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId String
    The OCID of the HTTP Redirect's compartment.
    definedTags 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"}
    displayName 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.
    freeformTags 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"}
    httpRedirectId String
    id String
    The OCID of the HTTP Redirect.
    responseCode 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<GetHttpRedirectTarget>
    The redirect target object including all the redirect data.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId string
    The OCID of the HTTP Redirect's compartment.
    definedTags {[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"}
    displayName 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.
    freeformTags {[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"}
    httpRedirectId string
    id string
    The OCID of the HTTP Redirect.
    responseCode 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 GetHttpRedirectTarget[]
    The redirect target object including all the redirect data.
    timeCreated string
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartment_id str
    The OCID of the HTTP Redirect's compartment.
    defined_tags 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.
    freeform_tags 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"}
    http_redirect_id str
    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 Sequence[waas.GetHttpRedirectTarget]
    The redirect target object including all the redirect data.
    time_created str
    The date and time the policy was created, expressed in RFC 3339 timestamp format.
    compartmentId String
    The OCID of the HTTP Redirect's compartment.
    definedTags 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"}
    displayName 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.
    freeformTags 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"}
    httpRedirectId String
    id String
    The OCID of the HTTP Redirect.
    responseCode 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.
    timeCreated String
    The date and time the policy was created, expressed in RFC 3339 timestamp format.

    Supporting Types

    GetHttpRedirectTarget

    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi