selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel
selectel.getDomainsZoneV2
Explore with Pulumi AI
Provides information about a zone in Selectel DNS Hosting (actual). For more information about zones, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const zone1 = selectel.getDomainsZoneV2({
name: "example.com.",
projectId: selectel_vpc_project_v2.project_1.id,
});
import pulumi
import pulumi_selectel as selectel
zone1 = selectel.get_domains_zone_v2(name="example.com.",
project_id=selectel_vpc_project_v2["project_1"]["id"])
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.LookupDomainsZoneV2(ctx, &selectel.LookupDomainsZoneV2Args{
Name: "example.com.",
ProjectId: selectel_vpc_project_v2.Project_1.Id,
}, 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 zone1 = Selectel.GetDomainsZoneV2.Invoke(new()
{
Name = "example.com.",
ProjectId = selectel_vpc_project_v2.Project_1.Id,
});
});
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.GetDomainsZoneV2Args;
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 zone1 = SelectelFunctions.getDomainsZoneV2(GetDomainsZoneV2Args.builder()
.name("example.com.")
.projectId(selectel_vpc_project_v2.project_1().id())
.build());
}
}
variables:
zone1:
fn::invoke:
function: selectel:getDomainsZoneV2
arguments:
name: example.com.
projectId: ${selectel_vpc_project_v2.project_1.id}
Using getDomainsZoneV2
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 getDomainsZoneV2(args: GetDomainsZoneV2Args, opts?: InvokeOptions): Promise<GetDomainsZoneV2Result>
function getDomainsZoneV2Output(args: GetDomainsZoneV2OutputArgs, opts?: InvokeOptions): Output<GetDomainsZoneV2Result>
def get_domains_zone_v2(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsZoneV2Result
def get_domains_zone_v2_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsZoneV2Result]
func LookupDomainsZoneV2(ctx *Context, args *LookupDomainsZoneV2Args, opts ...InvokeOption) (*LookupDomainsZoneV2Result, error)
func LookupDomainsZoneV2Output(ctx *Context, args *LookupDomainsZoneV2OutputArgs, opts ...InvokeOption) LookupDomainsZoneV2ResultOutput
> Note: This function is named LookupDomainsZoneV2
in the Go SDK.
public static class GetDomainsZoneV2
{
public static Task<GetDomainsZoneV2Result> InvokeAsync(GetDomainsZoneV2Args args, InvokeOptions? opts = null)
public static Output<GetDomainsZoneV2Result> Invoke(GetDomainsZoneV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainsZoneV2Result> getDomainsZoneV2(GetDomainsZoneV2Args args, InvokeOptions options)
public static Output<GetDomainsZoneV2Result> getDomainsZoneV2(GetDomainsZoneV2Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDomainsZoneV2:getDomainsZoneV2
arguments:
# arguments dictionary
The following arguments are supported:
- name str
- Zone name.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- id str
getDomainsZoneV2 Result
The following output properties are available:
- Comment string
- Comment for the zone.
- Created
At string - Time when the zone was created in the RFC 3339 timestamp format.
- Delegation
Checked stringAt - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- Disabled bool
- Shows if the zone is enabled or disabled.
- Id string
- Last
Check boolStatus - Zone status retrieved during the last delegation check.
- Last
Delegated stringAt - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - Name string
- Project
Id string - Updated
At string - Time when the zone was updated in the RFC 3339 timestamp format.
- Comment string
- Comment for the zone.
- Created
At string - Time when the zone was created in the RFC 3339 timestamp format.
- Delegation
Checked stringAt - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- Disabled bool
- Shows if the zone is enabled or disabled.
- Id string
- Last
Check boolStatus - Zone status retrieved during the last delegation check.
- Last
Delegated stringAt - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - Name string
- Project
Id string - Updated
At string - Time when the zone was updated in the RFC 3339 timestamp format.
- comment String
- Comment for the zone.
- created
At String - Time when the zone was created in the RFC 3339 timestamp format.
- delegation
Checked StringAt - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- disabled Boolean
- Shows if the zone is enabled or disabled.
- id String
- last
Check BooleanStatus - Zone status retrieved during the last delegation check.
- last
Delegated StringAt - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - name String
- project
Id String - updated
At String - Time when the zone was updated in the RFC 3339 timestamp format.
- comment string
- Comment for the zone.
- created
At string - Time when the zone was created in the RFC 3339 timestamp format.
- delegation
Checked stringAt - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- disabled boolean
- Shows if the zone is enabled or disabled.
- id string
- last
Check booleanStatus - Zone status retrieved during the last delegation check.
- last
Delegated stringAt - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - name string
- project
Id string - updated
At string - Time when the zone was updated in the RFC 3339 timestamp format.
- comment str
- Comment for the zone.
- created_
at str - Time when the zone was created in the RFC 3339 timestamp format.
- delegation_
checked_ strat - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- disabled bool
- Shows if the zone is enabled or disabled.
- id str
- last_
check_ boolstatus - Zone status retrieved during the last delegation check.
- last_
delegated_ strat - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - name str
- project_
id str - updated_
at str - Time when the zone was updated in the RFC 3339 timestamp format.
- comment String
- Comment for the zone.
- created
At String - Time when the zone was created in the RFC 3339 timestamp format.
- delegation
Checked StringAt - Time when DNS Hosting checked if the zone was delegated to Selectel NS servers in the RFC 3339 timestamp format.
- disabled Boolean
- Shows if the zone is enabled or disabled.
- id String
- last
Check BooleanStatus - Zone status retrieved during the last delegation check.
- last
Delegated StringAt - Equals to the
delegation_check_at
argument value when thelast_check_status
istrue
. - name String
- project
Id String - updated
At String - Time when the zone was updated in the RFC 3339 timestamp format.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.