1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. DnsZone
edgecenter 0.7.35 published on Friday, Apr 25, 2025 by edge-center

edgecenter.DnsZone

Explore with Pulumi AI

Represent DNS zone resource. https://dns.edgecenter.ru/zones

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";

const exampleZone = new edgecenter.DnsZone("exampleZone", {});
Copy
import pulumi
import pulumi_edgecenter as edgecenter

example_zone = edgecenter.DnsZone("exampleZone")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := edgecenter.NewDnsZone(ctx, "exampleZone", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;

return await Deployment.RunAsync(() => 
{
    var exampleZone = new Edgecenter.DnsZone("exampleZone");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.DnsZone;
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) {
        var exampleZone = new DnsZone("exampleZone");

    }
}
Copy
resources:
  exampleZone:
    type: edgecenter:DnsZone
Copy

Create DnsZone Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DnsZone(name: string, args?: DnsZoneArgs, opts?: CustomResourceOptions);
@overload
def DnsZone(resource_name: str,
            args: Optional[DnsZoneArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def DnsZone(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            dns_zone_id: Optional[str] = None,
            name: Optional[str] = None)
func NewDnsZone(ctx *Context, name string, args *DnsZoneArgs, opts ...ResourceOption) (*DnsZone, error)
public DnsZone(string name, DnsZoneArgs? args = null, CustomResourceOptions? opts = null)
public DnsZone(String name, DnsZoneArgs args)
public DnsZone(String name, DnsZoneArgs args, CustomResourceOptions options)
type: edgecenter:DnsZone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args DnsZoneArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args DnsZoneArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args DnsZoneArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args DnsZoneArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DnsZoneArgs
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 dnsZoneResource = new Edgecenter.DnsZone("dnsZoneResource", new()
{
    DnsZoneId = "string",
    Name = "string",
});
Copy
example, err := edgecenter.NewDnsZone(ctx, "dnsZoneResource", &edgecenter.DnsZoneArgs{
	DnsZoneId: pulumi.String("string"),
	Name:      pulumi.String("string"),
})
Copy
var dnsZoneResource = new DnsZone("dnsZoneResource", DnsZoneArgs.builder()
    .dnsZoneId("string")
    .name("string")
    .build());
Copy
dns_zone_resource = edgecenter.DnsZone("dnsZoneResource",
    dns_zone_id="string",
    name="string")
Copy
const dnsZoneResource = new edgecenter.DnsZone("dnsZoneResource", {
    dnsZoneId: "string",
    name: "string",
});
Copy
type: edgecenter:DnsZone
properties:
    dnsZoneId: string
    name: string
Copy

DnsZone Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DnsZone resource accepts the following input properties:

DnsZoneId string
The ID of this resource.
Name string
A name of DNS Zone resource.
DnsZoneId string
The ID of this resource.
Name string
A name of DNS Zone resource.
dnsZoneId String
The ID of this resource.
name String
A name of DNS Zone resource.
dnsZoneId string
The ID of this resource.
name string
A name of DNS Zone resource.
dns_zone_id str
The ID of this resource.
name str
A name of DNS Zone resource.
dnsZoneId String
The ID of this resource.
name String
A name of DNS Zone resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the DnsZone 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 DnsZone Resource

Get an existing DnsZone 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?: DnsZoneState, opts?: CustomResourceOptions): DnsZone
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dns_zone_id: Optional[str] = None,
        name: Optional[str] = None) -> DnsZone
func GetDnsZone(ctx *Context, name string, id IDInput, state *DnsZoneState, opts ...ResourceOption) (*DnsZone, error)
public static DnsZone Get(string name, Input<string> id, DnsZoneState? state, CustomResourceOptions? opts = null)
public static DnsZone get(String name, Output<String> id, DnsZoneState state, CustomResourceOptions options)
resources:  _:    type: edgecenter:DnsZone    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
DnsZoneId string
The ID of this resource.
Name string
A name of DNS Zone resource.
DnsZoneId string
The ID of this resource.
Name string
A name of DNS Zone resource.
dnsZoneId String
The ID of this resource.
name String
A name of DNS Zone resource.
dnsZoneId string
The ID of this resource.
name string
A name of DNS Zone resource.
dns_zone_id str
The ID of this resource.
name str
A name of DNS Zone resource.
dnsZoneId String
The ID of this resource.
name String
A name of DNS Zone resource.

Import

import using zone name format

$ pulumi import edgecenter:index/dnsZone:DnsZone example_zone example_zone.com
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
edgecenter edge-center/terraform-provider-edgecenter
License
Notes
This Pulumi package is based on the edgecenter Terraform Provider.