GetDomain
Provides information about a Linode domain.
Attributes
The Linode Domain resource exports the following attributes:
id- The unique ID of this Domain.domain- The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domaintype- If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave)group- The group this Domain belongs to.status- Used to control whether this Domain is currently being rendered.description- A description for this Domain.master_ips- The IP addresses representing the master DNS for this Domain.axfr_ips- The list of IPs that may perform a zone transfer for this Domain.ttl_sec- ‘Time to Live’-the amount of time in seconds that this Domain’s records may be cached by resolvers or other domain servers.retry_sec- The interval, in seconds, at which a failed refresh should be retried.expire_sec- The amount of time in seconds that may pass before this Domain is no longer authoritative.refresh_sec- The amount of time in seconds before this Domain should be refreshed.soa_email- Start of Authority email address.tags- An array of tags applied to this object.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Linode.GetDomain.InvokeAsync(new Linode.GetDomainArgs
{
Id = "1234567",
}));
var bar = Output.Create(Linode.GetDomain.InvokeAsync(new Linode.GetDomainArgs
{
Domain = "bar.example.com",
}));
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
foo = linode.get_domain(id="1234567")
bar = linode.get_domain(domain="bar.example.com")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const foo = pulumi.output(linode.getDomain({
id: "1234567",
}, { async: true }));
const bar = pulumi.output(linode.getDomain({
domain: "bar.example.com",
}, { async: true }));Using GetDomain
function getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>function get_domain(domain=None, id=None, opts=None)func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)Note: This function is named
LookupDomainin the Go SDK.
public static class GetDomain {
public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetDomain Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.