1. Packages
  2. Gandi
  3. API Docs
  4. domains
  5. Nameservers
Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse

gandi.domains.Nameservers

Explore with Pulumi AI

Create Nameservers Resource

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

Constructor syntax

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

@overload
def Nameservers(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                domain: Optional[str] = None,
                nameservers: Optional[Sequence[str]] = None)
func NewNameservers(ctx *Context, name string, args NameserversArgs, opts ...ResourceOption) (*Nameservers, error)
public Nameservers(string name, NameserversArgs args, CustomResourceOptions? opts = null)
public Nameservers(String name, NameserversArgs args)
public Nameservers(String name, NameserversArgs args, CustomResourceOptions options)
type: gandi:domains:Nameservers
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 This property is required. NameserversArgs
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 This property is required. NameserversArgs
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 This property is required. NameserversArgs
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 This property is required. NameserversArgs
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. NameserversArgs
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 nameserversResource = new Gandi.Domains.Nameservers("nameserversResource", new()
{
    Domain = "string",
    Servers = new[]
    {
        "string",
    },
});
Copy
example, err := domains.NewNameservers(ctx, "nameserversResource", &domains.NameserversArgs{
	Domain: pulumi.String("string"),
	Nameservers: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var nameserversResource = new Nameservers("nameserversResource", NameserversArgs.builder()
    .domain("string")
    .nameservers("string")
    .build());
Copy
nameservers_resource = gandi.domains.Nameservers("nameserversResource",
    domain="string",
    nameservers=["string"])
Copy
const nameserversResource = new gandi.domains.Nameservers("nameserversResource", {
    domain: "string",
    nameservers: ["string"],
});
Copy
type: gandi:domains:Nameservers
properties:
    domain: string
    nameservers:
        - string
Copy

Nameservers 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 Nameservers resource accepts the following input properties:

Domain This property is required. string
The FQDN of the domain
Servers List<string>
A list of nameservers for the domain
Domain This property is required. string
The FQDN of the domain
Nameservers []string
A list of nameservers for the domain
domain This property is required. String
The FQDN of the domain
nameservers List<String>
A list of nameservers for the domain
domain This property is required. string
The FQDN of the domain
nameservers string[]
A list of nameservers for the domain
domain This property is required. str
The FQDN of the domain
nameservers Sequence[str]
A list of nameservers for the domain
domain This property is required. String
The FQDN of the domain
nameservers List<String>
A list of nameservers for the domain

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Nameservers Resource

Get an existing Nameservers 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?: NameserversState, opts?: CustomResourceOptions): Nameservers
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain: Optional[str] = None,
        nameservers: Optional[Sequence[str]] = None) -> Nameservers
func GetNameservers(ctx *Context, name string, id IDInput, state *NameserversState, opts ...ResourceOption) (*Nameservers, error)
public static Nameservers Get(string name, Input<string> id, NameserversState? state, CustomResourceOptions? opts = null)
public static Nameservers get(String name, Output<String> id, NameserversState state, CustomResourceOptions options)
resources:  _:    type: gandi:domains:Nameservers    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:
Domain string
The FQDN of the domain
Servers List<string>
A list of nameservers for the domain
Domain string
The FQDN of the domain
Nameservers []string
A list of nameservers for the domain
domain String
The FQDN of the domain
nameservers List<String>
A list of nameservers for the domain
domain string
The FQDN of the domain
nameservers string[]
A list of nameservers for the domain
domain str
The FQDN of the domain
nameservers Sequence[str]
A list of nameservers for the domain
domain String
The FQDN of the domain
nameservers List<String>
A list of nameservers for the domain

Package Details

Repository
gandi pulumiverse/pulumi-gandi
License
Apache-2.0
Notes
This Pulumi package is based on the gandi Terraform Provider.