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

constellix.getTemplate

Explore with Pulumi AI

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

    Data source for the DNS record templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const firsttemplate = constellix.getTemplate({
        name: "sample",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    firsttemplate = constellix.get_template(name="sample")
    
    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.LookupTemplate(ctx, &constellix.LookupTemplateArgs{
    			Name: "sample",
    		}, 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 firsttemplate = Constellix.GetTemplate.Invoke(new()
        {
            Name = "sample",
        });
    
    });
    
    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.GetTemplateArgs;
    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 firsttemplate = ConstellixFunctions.getTemplate(GetTemplateArgs.builder()
                .name("sample")
                .build());
    
        }
    }
    
    variables:
      firsttemplate:
        fn::invoke:
          function: constellix:getTemplate
          arguments:
            name: sample
    

    Attributes Reference

    • domain - (Optional) Id of domain to be applied.
    • has_gtd_region - (Optional) Enable/Disable GTD Region of the domain. The Default value is false.
    • has_geoip - (Optional) Enable/Disable GEO IP. The Default value is false.
    • version - (Optional) System generated template history version.

    Using getTemplate

    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 getTemplate(args: GetTemplateArgs, opts?: InvokeOptions): Promise<GetTemplateResult>
    function getTemplateOutput(args: GetTemplateOutputArgs, opts?: InvokeOptions): Output<GetTemplateResult>
    def get_template(domain: Optional[float] = None,
                     has_geoip: Optional[bool] = None,
                     has_gtd_regions: Optional[bool] = None,
                     id: Optional[str] = None,
                     name: Optional[str] = None,
                     version: Optional[float] = None,
                     opts: Optional[InvokeOptions] = None) -> GetTemplateResult
    def get_template_output(domain: Optional[pulumi.Input[float]] = None,
                     has_geoip: Optional[pulumi.Input[bool]] = None,
                     has_gtd_regions: Optional[pulumi.Input[bool]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     version: Optional[pulumi.Input[float]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetTemplateResult]
    func LookupTemplate(ctx *Context, args *LookupTemplateArgs, opts ...InvokeOption) (*LookupTemplateResult, error)
    func LookupTemplateOutput(ctx *Context, args *LookupTemplateOutputArgs, opts ...InvokeOption) LookupTemplateResultOutput

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

    public static class GetTemplate 
    {
        public static Task<GetTemplateResult> InvokeAsync(GetTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplateResult> Invoke(GetTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
    public static Output<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getTemplate:getTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Template names. e.g "sampletemplate".
    Domain double
    HasGeoip bool
    HasGtdRegions bool
    Id string
    Version double
    Name string
    Template names. e.g "sampletemplate".
    Domain float64
    HasGeoip bool
    HasGtdRegions bool
    Id string
    Version float64
    name String
    Template names. e.g "sampletemplate".
    domain Double
    hasGeoip Boolean
    hasGtdRegions Boolean
    id String
    version Double
    name string
    Template names. e.g "sampletemplate".
    domain number
    hasGeoip boolean
    hasGtdRegions boolean
    id string
    version number
    name str
    Template names. e.g "sampletemplate".
    domain float
    has_geoip bool
    has_gtd_regions bool
    id str
    version float
    name String
    Template names. e.g "sampletemplate".
    domain Number
    hasGeoip Boolean
    hasGtdRegions Boolean
    id String
    version Number

    getTemplate Result

    The following output properties are available:

    Domain double
    HasGeoip bool
    HasGtdRegions bool
    Id string
    Name string
    Version double
    Domain float64
    HasGeoip bool
    HasGtdRegions bool
    Id string
    Name string
    Version float64
    domain Double
    hasGeoip Boolean
    hasGtdRegions Boolean
    id String
    name String
    version Double
    domain number
    hasGeoip boolean
    hasGtdRegions boolean
    id string
    name string
    version number
    domain float
    has_geoip bool
    has_gtd_regions bool
    id str
    name str
    version float
    domain Number
    hasGeoip Boolean
    hasGtdRegions Boolean
    id String
    name String
    version Number

    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