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 string
- The unique name of the resource.
- args NameserversArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args NameserversArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NameserversArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
example, err := domains.NewNameservers(ctx, "nameserversResource", &domains.NameserversArgs{
Domain: pulumi.String("string"),
Nameservers: pulumi.StringArray{
pulumi.String("string"),
},
})
var nameserversResource = new Nameservers("nameserversResource", NameserversArgs.builder()
.domain("string")
.nameservers("string")
.build());
nameservers_resource = gandi.domains.Nameservers("nameserversResource",
domain="string",
nameservers=["string"])
const nameserversResource = new gandi.domains.Nameservers("nameserversResource", {
domain: "string",
nameservers: ["string"],
});
type: gandi:domains:Nameservers
properties:
domain: string
nameservers:
- string
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
The Nameservers resource accepts the following input properties:
- 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
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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- 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.