selectel.getDomainsDomainV1
Explore with Pulumi AI
WARNING: This data source is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more information about DNS Hosting (actual), see the official Selectel documentation.
Provides an ID of a domain in DNS Hosting (legacy).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const domain1 = selectel.getDomainsDomainV1({
name: "example.com",
});
import pulumi
import pulumi_selectel as selectel
domain1 = selectel.get_domains_domain_v1(name="example.com")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.LookupDomainsDomainV1(ctx, &selectel.LookupDomainsDomainV1Args{
Name: "example.com",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var domain1 = Selectel.GetDomainsDomainV1.Invoke(new()
{
Name = "example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetDomainsDomainV1Args;
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 domain1 = SelectelFunctions.getDomainsDomainV1(GetDomainsDomainV1Args.builder()
.name("example.com")
.build());
}
}
variables:
domain1:
fn::invoke:
function: selectel:getDomainsDomainV1
arguments:
name: example.com
Using getDomainsDomainV1
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 getDomainsDomainV1(args: GetDomainsDomainV1Args, opts?: InvokeOptions): Promise<GetDomainsDomainV1Result>
function getDomainsDomainV1Output(args: GetDomainsDomainV1OutputArgs, opts?: InvokeOptions): Output<GetDomainsDomainV1Result>
def get_domains_domain_v1(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsDomainV1Result
def get_domains_domain_v1_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsDomainV1Result]
func LookupDomainsDomainV1(ctx *Context, args *LookupDomainsDomainV1Args, opts ...InvokeOption) (*LookupDomainsDomainV1Result, error)
func LookupDomainsDomainV1Output(ctx *Context, args *LookupDomainsDomainV1OutputArgs, opts ...InvokeOption) LookupDomainsDomainV1ResultOutput
> Note: This function is named LookupDomainsDomainV1
in the Go SDK.
public static class GetDomainsDomainV1
{
public static Task<GetDomainsDomainV1Result> InvokeAsync(GetDomainsDomainV1Args args, InvokeOptions? opts = null)
public static Output<GetDomainsDomainV1Result> Invoke(GetDomainsDomainV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainsDomainV1Result> getDomainsDomainV1(GetDomainsDomainV1Args args, InvokeOptions options)
public static Output<GetDomainsDomainV1Result> getDomainsDomainV1(GetDomainsDomainV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDomainsDomainV1:getDomainsDomainV1
arguments:
# arguments dictionary
The following arguments are supported:
getDomainsDomainV1 Result
The following output properties are available:
- Id string
- Unique identifier of the domain.
- Name string
- Domain name.
- User
Id double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- Id string
- Unique identifier of the domain.
- Name string
- Domain name.
- User
Id float64 - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id String
- Unique identifier of the domain.
- name String
- Domain name.
- user
Id Double - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id string
- Unique identifier of the domain.
- name string
- Domain name.
- user
Id number - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id str
- Unique identifier of the domain.
- name str
- Domain name.
- user_
id float - Selectel account ID. The account ID is in the top right corner of the Control panel.
- id String
- Unique identifier of the domain.
- name String
- Domain name.
- user
Id Number - Selectel account ID. The account ID is in the top right corner of the Control panel.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.