Zone

class Zone : KotlinCustomResource

Describes a DNS zone. API Version: 2018-05-01.

Example Usage

Create zone

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var zone = new AzureNative.Network.Zone("zone", new()
{
Location = "Global",
ResourceGroupName = "rg1",
Tags =
{
{ "key1", "value1" },
},
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewZone(ctx, "zone", &network.ZoneArgs{
Location: pulumi.String("Global"),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.Zone;
import com.pulumi.azurenative.network.ZoneArgs;
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 zone = new Zone("zone", ZoneArgs.builder()
.location("Global")
.resourceGroupName("rg1")
.tags(Map.of("key1", "value1"))
.zoneName("zone1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:Zone zone1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1

Properties

Link copied to clipboard
val etag: Output<String>?

The etag of the zone.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

Resource location.

Link copied to clipboard

The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Link copied to clipboard

The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val nameServers: Output<List<String>>

The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Link copied to clipboard

The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.

Link copied to clipboard

A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneType: Output<String>?

The type of this DNS zone (Public or Private).