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

glesys.Dnsdomain

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as glesys from "@pulumi/glesys";

const mydomain = new glesys.Dnsdomain("mydomain", {});
const www = new glesys.DnsdomainRecord("www", {
    domain: mydomain.dnsdomainId,
    data: "127.0.0.1",
    host: "www",
    type: "A",
});
Copy
import pulumi
import pulumi_glesys as glesys

mydomain = glesys.Dnsdomain("mydomain")
www = glesys.DnsdomainRecord("www",
    domain=mydomain.dnsdomain_id,
    data="127.0.0.1",
    host="www",
    type="A")
Copy
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 {
		mydomain, err := glesys.NewDnsdomain(ctx, "mydomain", nil)
		if err != nil {
			return err
		}
		_, err = glesys.NewDnsdomainRecord(ctx, "www", &glesys.DnsdomainRecordArgs{
			Domain: mydomain.DnsdomainId,
			Data:   pulumi.String("127.0.0.1"),
			Host:   pulumi.String("www"),
			Type:   pulumi.String("A"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Glesys = Pulumi.Glesys;

return await Deployment.RunAsync(() => 
{
    var mydomain = new Glesys.Dnsdomain("mydomain");

    var www = new Glesys.DnsdomainRecord("www", new()
    {
        Domain = mydomain.DnsdomainId,
        Data = "127.0.0.1",
        Host = "www",
        Type = "A",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.glesys.Dnsdomain;
import com.pulumi.glesys.DnsdomainRecord;
import com.pulumi.glesys.DnsdomainRecordArgs;
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) {
        var mydomain = new Dnsdomain("mydomain");

        var www = new DnsdomainRecord("www", DnsdomainRecordArgs.builder()
            .domain(mydomain.dnsdomainId())
            .data("127.0.0.1")
            .host("www")
            .type("A")
            .build());

    }
}
Copy
resources:
  mydomain:
    type: glesys:Dnsdomain
  www:
    type: glesys:DnsdomainRecord
    properties:
      domain: ${mydomain.dnsdomainId}
      data: 127.0.0.1
      host: www
      type: A
Copy

Create Dnsdomain Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Dnsdomain(name: string, args?: DnsdomainArgs, opts?: CustomResourceOptions);
@overload
def Dnsdomain(resource_name: str,
              args: Optional[DnsdomainArgs] = None,
              opts: Optional[ResourceOptions] = None)

@overload
def Dnsdomain(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              createrecords: Optional[str] = None,
              dnsdomain_id: Optional[str] = None,
              expire: Optional[float] = None,
              minimum: Optional[float] = None,
              name: Optional[str] = None,
              primarynameserver: Optional[str] = None,
              refresh: Optional[float] = None,
              responsibleperson: Optional[str] = None,
              retry: Optional[float] = None,
              ttl: Optional[float] = None)
func NewDnsdomain(ctx *Context, name string, args *DnsdomainArgs, opts ...ResourceOption) (*Dnsdomain, error)
public Dnsdomain(string name, DnsdomainArgs? args = null, CustomResourceOptions? opts = null)
public Dnsdomain(String name, DnsdomainArgs args)
public Dnsdomain(String name, DnsdomainArgs args, CustomResourceOptions options)
type: glesys:Dnsdomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args DnsdomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args DnsdomainArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args DnsdomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args DnsdomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DnsdomainArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var dnsdomainResource = new Glesys.Dnsdomain("dnsdomainResource", new()
{
    Createrecords = "string",
    DnsdomainId = "string",
    Expire = 0,
    Minimum = 0,
    Name = "string",
    Primarynameserver = "string",
    Refresh = 0,
    Responsibleperson = "string",
    Retry = 0,
    Ttl = 0,
});
Copy
example, err := glesys.NewDnsdomain(ctx, "dnsdomainResource", &glesys.DnsdomainArgs{
	Createrecords:     pulumi.String("string"),
	DnsdomainId:       pulumi.String("string"),
	Expire:            pulumi.Float64(0),
	Minimum:           pulumi.Float64(0),
	Name:              pulumi.String("string"),
	Primarynameserver: pulumi.String("string"),
	Refresh:           pulumi.Float64(0),
	Responsibleperson: pulumi.String("string"),
	Retry:             pulumi.Float64(0),
	Ttl:               pulumi.Float64(0),
})
Copy
var dnsdomainResource = new Dnsdomain("dnsdomainResource", DnsdomainArgs.builder()
    .createrecords("string")
    .dnsdomainId("string")
    .expire(0)
    .minimum(0)
    .name("string")
    .primarynameserver("string")
    .refresh(0)
    .responsibleperson("string")
    .retry(0)
    .ttl(0)
    .build());
Copy
dnsdomain_resource = glesys.Dnsdomain("dnsdomainResource",
    createrecords="string",
    dnsdomain_id="string",
    expire=0,
    minimum=0,
    name="string",
    primarynameserver="string",
    refresh=0,
    responsibleperson="string",
    retry=0,
    ttl=0)
Copy
const dnsdomainResource = new glesys.Dnsdomain("dnsdomainResource", {
    createrecords: "string",
    dnsdomainId: "string",
    expire: 0,
    minimum: 0,
    name: "string",
    primarynameserver: "string",
    refresh: 0,
    responsibleperson: "string",
    retry: 0,
    ttl: 0,
});
Copy
type: glesys:Dnsdomain
properties:
    createrecords: string
    dnsdomainId: string
    expire: 0
    minimum: 0
    name: string
    primarynameserver: string
    refresh: 0
    responsibleperson: string
    retry: 0
    ttl: 0
Copy

Dnsdomain Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Dnsdomain resource accepts the following input properties:

Createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
DnsdomainId string
The ID of this resource.
Expire double
Domain expire TTL
Minimum double
Domain minimum TTL
Name string
Domain name
Primarynameserver string
Domain primary nameserver
Refresh double
Domain refresh TTL
Responsibleperson string
Retry double
Domain retry TTL
Ttl double
Domain default TTL
Createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
DnsdomainId string
The ID of this resource.
Expire float64
Domain expire TTL
Minimum float64
Domain minimum TTL
Name string
Domain name
Primarynameserver string
Domain primary nameserver
Refresh float64
Domain refresh TTL
Responsibleperson string
Retry float64
Domain retry TTL
Ttl float64
Domain default TTL
createrecords String
Create default set of records when creating the domain. 0/1, yes/no, true/false
dnsdomainId String
The ID of this resource.
expire Double
Domain expire TTL
minimum Double
Domain minimum TTL
name String
Domain name
primarynameserver String
Domain primary nameserver
refresh Double
Domain refresh TTL
responsibleperson String
retry Double
Domain retry TTL
ttl Double
Domain default TTL
createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
dnsdomainId string
The ID of this resource.
expire number
Domain expire TTL
minimum number
Domain minimum TTL
name string
Domain name
primarynameserver string
Domain primary nameserver
refresh number
Domain refresh TTL
responsibleperson string
retry number
Domain retry TTL
ttl number
Domain default TTL
createrecords str
Create default set of records when creating the domain. 0/1, yes/no, true/false
dnsdomain_id str
The ID of this resource.
expire float
Domain expire TTL
minimum float
Domain minimum TTL
name str
Domain name
primarynameserver str
Domain primary nameserver
refresh float
Domain refresh TTL
responsibleperson str
retry float
Domain retry TTL
ttl float
Domain default TTL
createrecords String
Create default set of records when creating the domain. 0/1, yes/no, true/false
dnsdomainId String
The ID of this resource.
expire Number
Domain expire TTL
minimum Number
Domain minimum TTL
name String
Domain name
primarynameserver String
Domain primary nameserver
refresh Number
Domain refresh TTL
responsibleperson String
retry Number
Domain retry TTL
ttl Number
Domain default TTL

Outputs

All input properties are implicitly available as output properties. Additionally, the Dnsdomain resource produces the following output properties:

Createtime string
Domain create time
Displayname string
Id string
The provider-assigned unique ID for this managed resource.
Recordcount double
Number of records for the domain
RegistrarinfoAutorenew string
RegistrarinfoExpire string
RegistrarinfoInvoicenumber string
RegistrarinfoState string
RegistrarinfoStatedescr string
RegistrarinfoTld string
Usingglesysnameserver string
Createtime string
Domain create time
Displayname string
Id string
The provider-assigned unique ID for this managed resource.
Recordcount float64
Number of records for the domain
RegistrarinfoAutorenew string
RegistrarinfoExpire string
RegistrarinfoInvoicenumber string
RegistrarinfoState string
RegistrarinfoStatedescr string
RegistrarinfoTld string
Usingglesysnameserver string
createtime String
Domain create time
displayname String
id String
The provider-assigned unique ID for this managed resource.
recordcount Double
Number of records for the domain
registrarinfoAutorenew String
registrarinfoExpire String
registrarinfoInvoicenumber String
registrarinfoState String
registrarinfoStatedescr String
registrarinfoTld String
usingglesysnameserver String
createtime string
Domain create time
displayname string
id string
The provider-assigned unique ID for this managed resource.
recordcount number
Number of records for the domain
registrarinfoAutorenew string
registrarinfoExpire string
registrarinfoInvoicenumber string
registrarinfoState string
registrarinfoStatedescr string
registrarinfoTld string
usingglesysnameserver string
createtime str
Domain create time
displayname str
id str
The provider-assigned unique ID for this managed resource.
recordcount float
Number of records for the domain
registrarinfo_autorenew str
registrarinfo_expire str
registrarinfo_invoicenumber str
registrarinfo_state str
registrarinfo_statedescr str
registrarinfo_tld str
usingglesysnameserver str
createtime String
Domain create time
displayname String
id String
The provider-assigned unique ID for this managed resource.
recordcount Number
Number of records for the domain
registrarinfoAutorenew String
registrarinfoExpire String
registrarinfoInvoicenumber String
registrarinfoState String
registrarinfoStatedescr String
registrarinfoTld String
usingglesysnameserver String

Look up Existing Dnsdomain Resource

Get an existing Dnsdomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DnsdomainState, opts?: CustomResourceOptions): Dnsdomain
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        createrecords: Optional[str] = None,
        createtime: Optional[str] = None,
        displayname: Optional[str] = None,
        dnsdomain_id: Optional[str] = None,
        expire: Optional[float] = None,
        minimum: Optional[float] = None,
        name: Optional[str] = None,
        primarynameserver: Optional[str] = None,
        recordcount: Optional[float] = None,
        refresh: Optional[float] = None,
        registrarinfo_autorenew: Optional[str] = None,
        registrarinfo_expire: Optional[str] = None,
        registrarinfo_invoicenumber: Optional[str] = None,
        registrarinfo_state: Optional[str] = None,
        registrarinfo_statedescr: Optional[str] = None,
        registrarinfo_tld: Optional[str] = None,
        responsibleperson: Optional[str] = None,
        retry: Optional[float] = None,
        ttl: Optional[float] = None,
        usingglesysnameserver: Optional[str] = None) -> Dnsdomain
func GetDnsdomain(ctx *Context, name string, id IDInput, state *DnsdomainState, opts ...ResourceOption) (*Dnsdomain, error)
public static Dnsdomain Get(string name, Input<string> id, DnsdomainState? state, CustomResourceOptions? opts = null)
public static Dnsdomain get(String name, Output<String> id, DnsdomainState state, CustomResourceOptions options)
resources:  _:    type: glesys:Dnsdomain    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
Createtime string
Domain create time
Displayname string
DnsdomainId string
The ID of this resource.
Expire double
Domain expire TTL
Minimum double
Domain minimum TTL
Name string
Domain name
Primarynameserver string
Domain primary nameserver
Recordcount double
Number of records for the domain
Refresh double
Domain refresh TTL
RegistrarinfoAutorenew string
RegistrarinfoExpire string
RegistrarinfoInvoicenumber string
RegistrarinfoState string
RegistrarinfoStatedescr string
RegistrarinfoTld string
Responsibleperson string
Retry double
Domain retry TTL
Ttl double
Domain default TTL
Usingglesysnameserver string
Createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
Createtime string
Domain create time
Displayname string
DnsdomainId string
The ID of this resource.
Expire float64
Domain expire TTL
Minimum float64
Domain minimum TTL
Name string
Domain name
Primarynameserver string
Domain primary nameserver
Recordcount float64
Number of records for the domain
Refresh float64
Domain refresh TTL
RegistrarinfoAutorenew string
RegistrarinfoExpire string
RegistrarinfoInvoicenumber string
RegistrarinfoState string
RegistrarinfoStatedescr string
RegistrarinfoTld string
Responsibleperson string
Retry float64
Domain retry TTL
Ttl float64
Domain default TTL
Usingglesysnameserver string
createrecords String
Create default set of records when creating the domain. 0/1, yes/no, true/false
createtime String
Domain create time
displayname String
dnsdomainId String
The ID of this resource.
expire Double
Domain expire TTL
minimum Double
Domain minimum TTL
name String
Domain name
primarynameserver String
Domain primary nameserver
recordcount Double
Number of records for the domain
refresh Double
Domain refresh TTL
registrarinfoAutorenew String
registrarinfoExpire String
registrarinfoInvoicenumber String
registrarinfoState String
registrarinfoStatedescr String
registrarinfoTld String
responsibleperson String
retry Double
Domain retry TTL
ttl Double
Domain default TTL
usingglesysnameserver String
createrecords string
Create default set of records when creating the domain. 0/1, yes/no, true/false
createtime string
Domain create time
displayname string
dnsdomainId string
The ID of this resource.
expire number
Domain expire TTL
minimum number
Domain minimum TTL
name string
Domain name
primarynameserver string
Domain primary nameserver
recordcount number
Number of records for the domain
refresh number
Domain refresh TTL
registrarinfoAutorenew string
registrarinfoExpire string
registrarinfoInvoicenumber string
registrarinfoState string
registrarinfoStatedescr string
registrarinfoTld string
responsibleperson string
retry number
Domain retry TTL
ttl number
Domain default TTL
usingglesysnameserver string
createrecords str
Create default set of records when creating the domain. 0/1, yes/no, true/false
createtime str
Domain create time
displayname str
dnsdomain_id str
The ID of this resource.
expire float
Domain expire TTL
minimum float
Domain minimum TTL
name str
Domain name
primarynameserver str
Domain primary nameserver
recordcount float
Number of records for the domain
refresh float
Domain refresh TTL
registrarinfo_autorenew str
registrarinfo_expire str
registrarinfo_invoicenumber str
registrarinfo_state str
registrarinfo_statedescr str
registrarinfo_tld str
responsibleperson str
retry float
Domain retry TTL
ttl float
Domain default TTL
usingglesysnameserver str
createrecords String
Create default set of records when creating the domain. 0/1, yes/no, true/false
createtime String
Domain create time
displayname String
dnsdomainId String
The ID of this resource.
expire Number
Domain expire TTL
minimum Number
Domain minimum TTL
name String
Domain name
primarynameserver String
Domain primary nameserver
recordcount Number
Number of records for the domain
refresh Number
Domain refresh TTL
registrarinfoAutorenew String
registrarinfoExpire String
registrarinfoInvoicenumber String
registrarinfoState String
registrarinfoStatedescr String
registrarinfoTld String
responsibleperson String
retry Number
Domain retry TTL
ttl Number
Domain default TTL
usingglesysnameserver String

Import

Domain import.

$ pulumi import glesys:index/dnsdomain:Dnsdomain example example.com
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
glesys glesys/terraform-provider-glesys
License
Notes
This Pulumi package is based on the glesys Terraform Provider.