1. Packages
  2. Selectel Provider
  3. API Docs
  4. getDomainsZoneV2
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.getDomainsZoneV2

Explore with Pulumi AI

selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  zone1:
    fn::invoke:
      function: selectel:getDomainsZoneV2
      arguments:
        name: example.com.
        projectId: ${selectel_vpc_project_v2.project_1.id}
Copy

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>
Copy
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]
Copy
func LookupDomainsZoneV2(ctx *Context, args *LookupDomainsZoneV2Args, opts ...InvokeOption) (*LookupDomainsZoneV2Result, error)
func LookupDomainsZoneV2Output(ctx *Context, args *LookupDomainsZoneV2OutputArgs, opts ...InvokeOption) LookupDomainsZoneV2ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDomainsZoneV2Result> getDomainsZoneV2(GetDomainsZoneV2Args args, InvokeOptions options)
public static Output<GetDomainsZoneV2Result> getDomainsZoneV2(GetDomainsZoneV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: selectel:index/getDomainsZoneV2:getDomainsZoneV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Zone name.
ProjectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Id string
Name This property is required. string
Zone name.
ProjectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
Id string
name This property is required. String
Zone name.
projectId This property is required. String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
id String
name This property is required. string
Zone name.
projectId This property is required. string
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
id string
name This property is required. str
Zone name.
project_id This property is required. str
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
id str
name This property is required. String
Zone name.
projectId This property is required. String
Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
id String

getDomainsZoneV2 Result

The following output properties are available:

Comment string
Comment for the zone.
CreatedAt string
Time when the zone was created in the RFC 3339 timestamp format.
DelegationCheckedAt string
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
LastCheckStatus bool
Zone status retrieved during the last delegation check.
LastDelegatedAt string
Equals to the delegation_check_at argument value when the last_check_status is true.
Name string
ProjectId string
UpdatedAt string
Time when the zone was updated in the RFC 3339 timestamp format.
Comment string
Comment for the zone.
CreatedAt string
Time when the zone was created in the RFC 3339 timestamp format.
DelegationCheckedAt string
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
LastCheckStatus bool
Zone status retrieved during the last delegation check.
LastDelegatedAt string
Equals to the delegation_check_at argument value when the last_check_status is true.
Name string
ProjectId string
UpdatedAt string
Time when the zone was updated in the RFC 3339 timestamp format.
comment String
Comment for the zone.
createdAt String
Time when the zone was created in the RFC 3339 timestamp format.
delegationCheckedAt String
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
lastCheckStatus Boolean
Zone status retrieved during the last delegation check.
lastDelegatedAt String
Equals to the delegation_check_at argument value when the last_check_status is true.
name String
projectId String
updatedAt String
Time when the zone was updated in the RFC 3339 timestamp format.
comment string
Comment for the zone.
createdAt string
Time when the zone was created in the RFC 3339 timestamp format.
delegationCheckedAt string
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
lastCheckStatus boolean
Zone status retrieved during the last delegation check.
lastDelegatedAt string
Equals to the delegation_check_at argument value when the last_check_status is true.
name string
projectId string
updatedAt 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_at str
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_status bool
Zone status retrieved during the last delegation check.
last_delegated_at str
Equals to the delegation_check_at argument value when the last_check_status is true.
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.
createdAt String
Time when the zone was created in the RFC 3339 timestamp format.
delegationCheckedAt String
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
lastCheckStatus Boolean
Zone status retrieved during the last delegation check.
lastDelegatedAt String
Equals to the delegation_check_at argument value when the last_check_status is true.
name String
projectId String
updatedAt 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.
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel