constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getHttpRedirectionRecord
Explore with Pulumi AI
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 recordsdomain_id
- (Required) Record id of HTTP Redirection record
Attribute Reference
ttl
- (Required) TTL must be in between 0 and 2147483647url
- (Required) URL link to redirectredirect_type_id
- (Required) 1 for Hidden Frame Masked, 2 for Standard - 301, 3 for Standard - 302source_type
- (Required) “domains” for Domain records and “template” for Template recordsname
- (Optional) Name of record. Name should be unique.noanswer
- (Optional) Shows if record is enabled or disabled. Default is false (Active)note
- (Optional) Record notehardlink_flag
- (Optional) Hardlink flag. Default is falsedescription
- (Optional) Descriptiontitle
- (Optional) Title of redirectiongtd_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:
- Domain
Id string - Name string
- Source
Type string - Description string
- Gtd
Region double - Hardlink
Flag bool - Id string
- Keywords string
- Noanswer bool
- Note string
- Parent string
- Parentid double
- Redirect
Type doubleId - Source string
- Title string
- Ttl double
- Type string
- Url string
- Domain
Id string - Name string
- Source
Type string - Description string
- Gtd
Region float64 - Hardlink
Flag bool - Id string
- Keywords string
- Noanswer bool
- Note string
- Parent string
- Parentid float64
- Redirect
Type float64Id - Source string
- Title string
- Ttl float64
- Type string
- Url string
- domain
Id String - name String
- source
Type String - description String
- gtd
Region Double - hardlink
Flag Boolean - id String
- keywords String
- noanswer Boolean
- note String
- parent String
- parentid Double
- redirect
Type DoubleId - source String
- title String
- ttl Double
- type String
- url String
- domain
Id string - name string
- source
Type string - description string
- gtd
Region number - hardlink
Flag boolean - id string
- keywords string
- noanswer boolean
- note string
- parent string
- parentid number
- redirect
Type numberId - source string
- title string
- ttl number
- type string
- url string
- domain_
id str - name str
- source_
type str - description str
- gtd_
region float - hardlink_
flag bool - id str
- keywords str
- noanswer bool
- note str
- parent str
- parentid float
- redirect_
type_ floatid - source str
- title str
- ttl float
- type str
- url str
- domain
Id String - name String
- source
Type String - description String
- gtd
Region Number - hardlink
Flag Boolean - id String
- keywords String
- noanswer Boolean
- note String
- parent String
- parentid Number
- redirect
Type NumberId - source String
- title String
- ttl Number
- type String
- url String
getHttpRedirectionRecord Result
The following output properties are available:
- Description string
- Domain
Id string - Gtd
Region double - Hardlink
Flag bool - Id string
- Keywords string
- Name string
- Noanswer bool
- Note string
- Parent string
- Parentid double
- Redirect
Type doubleId - Source string
- Source
Type string - Title string
- Ttl double
- Type string
- Url string
- Description string
- Domain
Id string - Gtd
Region float64 - Hardlink
Flag bool - Id string
- Keywords string
- Name string
- Noanswer bool
- Note string
- Parent string
- Parentid float64
- Redirect
Type float64Id - Source string
- Source
Type string - Title string
- Ttl float64
- Type string
- Url string
- description String
- domain
Id String - gtd
Region Double - hardlink
Flag Boolean - id String
- keywords String
- name String
- noanswer Boolean
- note String
- parent String
- parentid Double
- redirect
Type DoubleId - source String
- source
Type String - title String
- ttl Double
- type String
- url String
- description string
- domain
Id string - gtd
Region number - hardlink
Flag boolean - id string
- keywords string
- name string
- noanswer boolean
- note string
- parent string
- parentid number
- redirect
Type numberId - source string
- source
Type string - title string
- ttl number
- type string
- url string
- description str
- domain_
id str - gtd_
region float - hardlink_
flag bool - id str
- keywords str
- name str
- noanswer bool
- note str
- parent str
- parentid float
- redirect_
type_ floatid - source str
- source_
type str - title str
- ttl float
- type str
- url str
- description String
- domain
Id String - gtd
Region Number - hardlink
Flag Boolean - id String
- keywords String
- name String
- noanswer Boolean
- note String
- parent String
- parentid Number
- redirect
Type NumberId - source String
- source
Type 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 0.4.6 published on Friday, Mar 7, 2025 by constellix