1. Packages
  2. Glesys Provider
  3. API Docs
  4. getDnsdomain
glesys 0.14.2 published on Tuesday, Apr 15, 2025 by glesys

glesys.getDnsdomain

Explore with Pulumi AI

glesys logo
glesys 0.14.2 published on Tuesday, Apr 15, 2025 by glesys

    Get information about a DNS Domain associated with your GleSYS Project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as glesys from "@pulumi/glesys";
    
    const example = glesys.getDnsdomain({
        name: "example.com",
    });
    export const domainTtl = example.then(example => example.ttl);
    
    import pulumi
    import pulumi_glesys as glesys
    
    example = glesys.get_dnsdomain(name="example.com")
    pulumi.export("domainTtl", example.ttl)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := glesys.LookupDnsdomain(ctx, &glesys.LookupDnsdomainArgs{
    			Name: "example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("domainTtl", example.Ttl)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Glesys = Pulumi.Glesys;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Glesys.GetDnsdomain.Invoke(new()
        {
            Name = "example.com",
        });
    
        return new Dictionary<string, object?>
        {
            ["domainTtl"] = example.Apply(getDnsdomainResult => getDnsdomainResult.Ttl),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.glesys.GlesysFunctions;
    import com.pulumi.glesys.inputs.GetDnsdomainArgs;
    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 example = GlesysFunctions.getDnsdomain(GetDnsdomainArgs.builder()
                .name("example.com")
                .build());
    
            ctx.export("domainTtl", example.applyValue(getDnsdomainResult -> getDnsdomainResult.ttl()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: glesys:getDnsdomain
          arguments:
            name: example.com
    outputs:
      domainTtl: ${example.ttl}
    

    Using getDnsdomain

    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 getDnsdomain(args: GetDnsdomainArgs, opts?: InvokeOptions): Promise<GetDnsdomainResult>
    function getDnsdomainOutput(args: GetDnsdomainOutputArgs, opts?: InvokeOptions): Output<GetDnsdomainResult>
    def get_dnsdomain(id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDnsdomainResult
    def get_dnsdomain_output(id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDnsdomainResult]
    func LookupDnsdomain(ctx *Context, args *LookupDnsdomainArgs, opts ...InvokeOption) (*LookupDnsdomainResult, error)
    func LookupDnsdomainOutput(ctx *Context, args *LookupDnsdomainOutputArgs, opts ...InvokeOption) LookupDnsdomainResultOutput

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

    public static class GetDnsdomain 
    {
        public static Task<GetDnsdomainResult> InvokeAsync(GetDnsdomainArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsdomainResult> Invoke(GetDnsdomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsdomainResult> getDnsdomain(GetDnsdomainArgs args, InvokeOptions options)
    public static Output<GetDnsdomainResult> getDnsdomain(GetDnsdomainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: glesys:index/getDnsdomain:getDnsdomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    name of the domain
    Id string
    The ID of this resource.
    Name string
    name of the domain
    Id string
    The ID of this resource.
    name String
    name of the domain
    id String
    The ID of this resource.
    name string
    name of the domain
    id string
    The ID of this resource.
    name str
    name of the domain
    id str
    The ID of this resource.
    name String
    name of the domain
    id String
    The ID of this resource.

    getDnsdomain Result

    The following output properties are available:

    Expire double
    expire ttl of the domain.
    Id string
    The ID of this resource.
    Minimum double
    minimum ttl of the domain.
    Name string
    name of the domain
    Refresh double
    refresh ttl of the domain.
    Retry double
    retry ttl of the domain.
    Ttl double
    ttl of the domain.
    Expire float64
    expire ttl of the domain.
    Id string
    The ID of this resource.
    Minimum float64
    minimum ttl of the domain.
    Name string
    name of the domain
    Refresh float64
    refresh ttl of the domain.
    Retry float64
    retry ttl of the domain.
    Ttl float64
    ttl of the domain.
    expire Double
    expire ttl of the domain.
    id String
    The ID of this resource.
    minimum Double
    minimum ttl of the domain.
    name String
    name of the domain
    refresh Double
    refresh ttl of the domain.
    retry Double
    retry ttl of the domain.
    ttl Double
    ttl of the domain.
    expire number
    expire ttl of the domain.
    id string
    The ID of this resource.
    minimum number
    minimum ttl of the domain.
    name string
    name of the domain
    refresh number
    refresh ttl of the domain.
    retry number
    retry ttl of the domain.
    ttl number
    ttl of the domain.
    expire float
    expire ttl of the domain.
    id str
    The ID of this resource.
    minimum float
    minimum ttl of the domain.
    name str
    name of the domain
    refresh float
    refresh ttl of the domain.
    retry float
    retry ttl of the domain.
    ttl float
    ttl of the domain.
    expire Number
    expire ttl of the domain.
    id String
    The ID of this resource.
    minimum Number
    minimum ttl of the domain.
    name String
    name of the domain
    refresh Number
    refresh ttl of the domain.
    retry Number
    retry ttl of the domain.
    ttl Number
    ttl of the domain.

    Package Details

    Repository
    glesys glesys/terraform-provider-glesys
    License
    Notes
    This Pulumi package is based on the glesys Terraform Provider.
    glesys logo
    glesys 0.14.2 published on Tuesday, Apr 15, 2025 by glesys