1. Packages
  2. Constellix Provider
  3. API Docs
  4. getHttpRedirectionRecord
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.getHttpRedirectionRecord

Explore with Pulumi AI

constellix logo
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

    Data source for HTTP Redirection record

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const datahttpredirection = constellix.getHttpRedirectionRecord({
        domainId: data.constellix_domain.first.id,
        name: "httpredirectiondatasource",
        sourceType: "domains",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    datahttpredirection = constellix.get_http_redirection_record(domain_id=data["constellix_domain"]["first"]["id"],
        name="httpredirectiondatasource",
        source_type="domains")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := constellix.LookupHttpRedirectionRecord(ctx, &constellix.LookupHttpRedirectionRecordArgs{
    			DomainId:   data.Constellix_domain.First.Id,
    			Name:       "httpredirectiondatasource",
    			SourceType: "domains",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Constellix = Pulumi.Constellix;
    
    return await Deployment.RunAsync(() => 
    {
        var datahttpredirection = Constellix.GetHttpRedirectionRecord.Invoke(new()
        {
            DomainId = data.Constellix_domain.First.Id,
            Name = "httpredirectiondatasource",
            SourceType = "domains",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.constellix.ConstellixFunctions;
    import com.pulumi.constellix.inputs.GetHttpRedirectionRecordArgs;
    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 datahttpredirection = ConstellixFunctions.getHttpRedirectionRecord(GetHttpRedirectionRecordArgs.builder()
                .domainId(data.constellix_domain().first().id())
                .name("httpredirectiondatasource")
                .sourceType("domains")
                .build());
    
        }
    }
    
    variables:
      datahttpredirection:
        fn::invoke:
          function: constellix:getHttpRedirectionRecord
          arguments:
            domainId: ${data.constellix_domain.first.id}
            name: httpredirectiondatasource
            sourceType: domains
    

    Argument Reference

    • name - (Required) Name of record. Name should be unique.
    • source_type - (Required) “domains” for Domain records and “template” for Template records
    • domain_id - (Required) Record id of HTTP Redirection record

    Attribute Reference

    • ttl - (Required) TTL must be in between 0 and 2147483647
    • url - (Required) URL link to redirect
    • redirect_type_id - (Required) 1 for Hidden Frame Masked, 2 for Standard - 301, 3 for Standard - 302
    • source_type - (Required) “domains” for Domain records and “template” for Template records
    • name - (Optional) Name of record. Name should be unique.
    • noanswer - (Optional) Shows if record is enabled or disabled. Default is false (Active)
    • note - (Optional) Record note
    • hardlink_flag - (Optional) Hardlink flag. Default is false
    • description - (Optional) Description
    • title - (Optional) Title of redirection
    • gtd_region - (Optional) Shows id of GTD region in which record is to be created.
    • type - (Optional) Record type HTTP Redirection

    Using getHttpRedirectionRecord

    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 getHttpRedirectionRecord(args: GetHttpRedirectionRecordArgs, opts?: InvokeOptions): Promise<GetHttpRedirectionRecordResult>
    function getHttpRedirectionRecordOutput(args: GetHttpRedirectionRecordOutputArgs, opts?: InvokeOptions): Output<GetHttpRedirectionRecordResult>
    def get_http_redirection_record(description: Optional[str] = None,
                                    domain_id: Optional[str] = None,
                                    gtd_region: Optional[float] = None,
                                    hardlink_flag: Optional[bool] = None,
                                    id: Optional[str] = None,
                                    keywords: Optional[str] = None,
                                    name: Optional[str] = None,
                                    noanswer: Optional[bool] = None,
                                    note: Optional[str] = None,
                                    parent: Optional[str] = None,
                                    parentid: Optional[float] = None,
                                    redirect_type_id: Optional[float] = None,
                                    source: Optional[str] = None,
                                    source_type: Optional[str] = None,
                                    title: Optional[str] = None,
                                    ttl: Optional[float] = None,
                                    type: Optional[str] = None,
                                    url: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetHttpRedirectionRecordResult
    def get_http_redirection_record_output(description: Optional[pulumi.Input[str]] = None,
                                    domain_id: Optional[pulumi.Input[str]] = None,
                                    gtd_region: Optional[pulumi.Input[float]] = None,
                                    hardlink_flag: Optional[pulumi.Input[bool]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    keywords: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    noanswer: Optional[pulumi.Input[bool]] = None,
                                    note: Optional[pulumi.Input[str]] = None,
                                    parent: Optional[pulumi.Input[str]] = None,
                                    parentid: Optional[pulumi.Input[float]] = None,
                                    redirect_type_id: Optional[pulumi.Input[float]] = None,
                                    source: Optional[pulumi.Input[str]] = None,
                                    source_type: Optional[pulumi.Input[str]] = None,
                                    title: Optional[pulumi.Input[str]] = None,
                                    ttl: Optional[pulumi.Input[float]] = None,
                                    type: Optional[pulumi.Input[str]] = None,
                                    url: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetHttpRedirectionRecordResult]
    func LookupHttpRedirectionRecord(ctx *Context, args *LookupHttpRedirectionRecordArgs, opts ...InvokeOption) (*LookupHttpRedirectionRecordResult, error)
    func LookupHttpRedirectionRecordOutput(ctx *Context, args *LookupHttpRedirectionRecordOutputArgs, opts ...InvokeOption) LookupHttpRedirectionRecordResultOutput

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

    public static class GetHttpRedirectionRecord 
    {
        public static Task<GetHttpRedirectionRecordResult> InvokeAsync(GetHttpRedirectionRecordArgs args, InvokeOptions? opts = null)
        public static Output<GetHttpRedirectionRecordResult> Invoke(GetHttpRedirectionRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHttpRedirectionRecordResult> getHttpRedirectionRecord(GetHttpRedirectionRecordArgs args, InvokeOptions options)
    public static Output<GetHttpRedirectionRecordResult> getHttpRedirectionRecord(GetHttpRedirectionRecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getHttpRedirectionRecord:getHttpRedirectionRecord
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DomainId string
    Name string
    SourceType string
    Description string
    GtdRegion double
    HardlinkFlag bool
    Id string
    Keywords string
    Noanswer bool
    Note string
    Parent string
    Parentid double
    RedirectTypeId double
    Source string
    Title string
    Ttl double
    Type string
    Url string
    DomainId string
    Name string
    SourceType string
    Description string
    GtdRegion float64
    HardlinkFlag bool
    Id string
    Keywords string
    Noanswer bool
    Note string
    Parent string
    Parentid float64
    RedirectTypeId float64
    Source string
    Title string
    Ttl float64
    Type string
    Url string
    domainId String
    name String
    sourceType String
    description String
    gtdRegion Double
    hardlinkFlag Boolean
    id String
    keywords String
    noanswer Boolean
    note String
    parent String
    parentid Double
    redirectTypeId Double
    source String
    title String
    ttl Double
    type String
    url String
    domainId string
    name string
    sourceType string
    description string
    gtdRegion number
    hardlinkFlag boolean
    id string
    keywords string
    noanswer boolean
    note string
    parent string
    parentid number
    redirectTypeId number
    source string
    title string
    ttl number
    type string
    url string
    domainId String
    name String
    sourceType String
    description String
    gtdRegion Number
    hardlinkFlag Boolean
    id String
    keywords String
    noanswer Boolean
    note String
    parent String
    parentid Number
    redirectTypeId Number
    source String
    title String
    ttl Number
    type String
    url String

    getHttpRedirectionRecord Result

    The following output properties are available:

    Description string
    DomainId string
    GtdRegion double
    HardlinkFlag bool
    Id string
    Keywords string
    Name string
    Noanswer bool
    Note string
    Parent string
    Parentid double
    RedirectTypeId double
    Source string
    SourceType string
    Title string
    Ttl double
    Type string
    Url string
    Description string
    DomainId string
    GtdRegion float64
    HardlinkFlag bool
    Id string
    Keywords string
    Name string
    Noanswer bool
    Note string
    Parent string
    Parentid float64
    RedirectTypeId float64
    Source string
    SourceType string
    Title string
    Ttl float64
    Type string
    Url string
    description String
    domainId String
    gtdRegion Double
    hardlinkFlag Boolean
    id String
    keywords String
    name String
    noanswer Boolean
    note String
    parent String
    parentid Double
    redirectTypeId Double
    source String
    sourceType String
    title String
    ttl Double
    type String
    url String
    description string
    domainId string
    gtdRegion number
    hardlinkFlag boolean
    id string
    keywords string
    name string
    noanswer boolean
    note string
    parent string
    parentid number
    redirectTypeId number
    source string
    sourceType string
    title string
    ttl number
    type string
    url string
    description String
    domainId String
    gtdRegion Number
    hardlinkFlag Boolean
    id String
    keywords String
    name String
    noanswer Boolean
    note String
    parent String
    parentid Number
    redirectTypeId Number
    source String
    sourceType String
    title String
    ttl Number
    type String
    url String

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    constellix logo
    constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix