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

constellix.getVanityNameserver

Explore with Pulumi AI

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

    Data source for Vanitynameserver record

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const datavanitynameserver = constellix.getVanityNameserver({
        name: "vanitynameserverdatasource",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    datavanitynameserver = constellix.get_vanity_nameserver(name="vanitynameserverdatasource")
    
    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.LookupVanityNameserver(ctx, &constellix.LookupVanityNameserverArgs{
    			Name: "vanitynameserverdatasource",
    		}, 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 datavanitynameserver = Constellix.GetVanityNameserver.Invoke(new()
        {
            Name = "vanitynameserverdatasource",
        });
    
    });
    
    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.GetVanityNameserverArgs;
    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 datavanitynameserver = ConstellixFunctions.getVanityNameserver(GetVanityNameserverArgs.builder()
                .name("vanitynameserverdatasource")
                .build());
    
        }
    }
    
    variables:
      datavanitynameserver:
        fn::invoke:
          function: constellix:getVanityNameserver
          arguments:
            name: vanitynameserverdatasource
    

    Argument Reference

    • name - (Required) Name of record. Name should be unique.

    Attribute Reference

    • name - (Required) Vanity nameserver name should be unique.
    • nameserver_group - (Optional) Name server group id. 1 .. Available nameserver groups
    • nameserver_list_string - (Optional) Comma separated name servers list
    • is_default - (Optional) Default flag. Default is false.
    • is_public - (Optional) isPublic flag. Default is false
    • nameserver_group_name - (Optional) Name server group name

    Using getVanityNameserver

    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 getVanityNameserver(args: GetVanityNameserverArgs, opts?: InvokeOptions): Promise<GetVanityNameserverResult>
    function getVanityNameserverOutput(args: GetVanityNameserverOutputArgs, opts?: InvokeOptions): Output<GetVanityNameserverResult>
    def get_vanity_nameserver(id: Optional[str] = None,
                              is_default: Optional[bool] = None,
                              is_public: Optional[bool] = None,
                              name: Optional[str] = None,
                              nameserver_group: Optional[float] = None,
                              nameserver_group_name: Optional[str] = None,
                              nameserver_list_string: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetVanityNameserverResult
    def get_vanity_nameserver_output(id: Optional[pulumi.Input[str]] = None,
                              is_default: Optional[pulumi.Input[bool]] = None,
                              is_public: Optional[pulumi.Input[bool]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              nameserver_group: Optional[pulumi.Input[float]] = None,
                              nameserver_group_name: Optional[pulumi.Input[str]] = None,
                              nameserver_list_string: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetVanityNameserverResult]
    func LookupVanityNameserver(ctx *Context, args *LookupVanityNameserverArgs, opts ...InvokeOption) (*LookupVanityNameserverResult, error)
    func LookupVanityNameserverOutput(ctx *Context, args *LookupVanityNameserverOutputArgs, opts ...InvokeOption) LookupVanityNameserverResultOutput

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

    public static class GetVanityNameserver 
    {
        public static Task<GetVanityNameserverResult> InvokeAsync(GetVanityNameserverArgs args, InvokeOptions? opts = null)
        public static Output<GetVanityNameserverResult> Invoke(GetVanityNameserverInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVanityNameserverResult> getVanityNameserver(GetVanityNameserverArgs args, InvokeOptions options)
    public static Output<GetVanityNameserverResult> getVanityNameserver(GetVanityNameserverArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getVanityNameserver:getVanityNameserver
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getVanityNameserver Result

    The following output properties are available:

    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