WorkloadNetworkDnsServiceArgs

data class WorkloadNetworkDnsServiceArgs(val defaultDnsZone: Output<String>? = null, val displayName: Output<String>? = null, val dnsServiceId: Output<String>? = null, val dnsServiceIp: Output<String>? = null, val fqdnZones: Output<List<String>>? = null, val logLevel: Output<Either<String, DnsServiceLogLevelEnum>>? = null, val privateCloudName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val revision: Output<Double>? = null) : ConvertibleToJava<WorkloadNetworkDnsServiceArgs>

NSX DNS Service Uses Azure REST API version 2022-05-01. In version 1.x of the Azure Native provider, it used API version 2020-07-17-preview. Other available API versions: 2023-03-01, 2023-09-01.

Example Usage

WorkloadNetworks_CreateDnsService

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workloadNetworkDnsService = new AzureNative.AVS.WorkloadNetworkDnsService("workloadNetworkDnsService", new()
{
DefaultDnsZone = "defaultDnsZone1",
DisplayName = "dnsService1",
DnsServiceId = "dnsService1",
DnsServiceIp = "5.5.5.5",
FqdnZones = new[]
{
"fqdnZone1",
},
LogLevel = AzureNative.AVS.DnsServiceLogLevelEnum.INFO,
PrivateCloudName = "cloud1",
ResourceGroupName = "group1",
Revision = 1,
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewWorkloadNetworkDnsService(ctx, "workloadNetworkDnsService", &avs.WorkloadNetworkDnsServiceArgs{
DefaultDnsZone: pulumi.String("defaultDnsZone1"),
DisplayName: pulumi.String("dnsService1"),
DnsServiceId: pulumi.String("dnsService1"),
DnsServiceIp: pulumi.String("5.5.5.5"),
FqdnZones: pulumi.StringArray{
pulumi.String("fqdnZone1"),
},
LogLevel: pulumi.String(avs.DnsServiceLogLevelEnumINFO),
PrivateCloudName: pulumi.String("cloud1"),
ResourceGroupName: pulumi.String("group1"),
Revision: pulumi.Float64(1),
})
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.avs.WorkloadNetworkDnsService;
import com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs;
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 workloadNetworkDnsService = new WorkloadNetworkDnsService("workloadNetworkDnsService", WorkloadNetworkDnsServiceArgs.builder()
.defaultDnsZone("defaultDnsZone1")
.displayName("dnsService1")
.dnsServiceId("dnsService1")
.dnsServiceIp("5.5.5.5")
.fqdnZones("fqdnZone1")
.logLevel("INFO")
.privateCloudName("cloud1")
.resourceGroupName("group1")
.revision(1)
.build());
}
}

Import

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

$ pulumi import azure-native:avs:WorkloadNetworkDnsService dnsService1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}

Constructors

Link copied to clipboard
constructor(defaultDnsZone: Output<String>? = null, displayName: Output<String>? = null, dnsServiceId: Output<String>? = null, dnsServiceIp: Output<String>? = null, fqdnZones: Output<List<String>>? = null, logLevel: Output<Either<String, DnsServiceLogLevelEnum>>? = null, privateCloudName: Output<String>? = null, resourceGroupName: Output<String>? = null, revision: Output<Double>? = null)

Properties

Link copied to clipboard
val defaultDnsZone: Output<String>? = null

Default DNS zone of the DNS Service.

Link copied to clipboard
val displayName: Output<String>? = null

Display name of the DNS Service.

Link copied to clipboard
val dnsServiceId: Output<String>? = null

NSX DNS Service identifier. Generally the same as the DNS Service's display name

Link copied to clipboard
val dnsServiceIp: Output<String>? = null

DNS service IP of the DNS Service.

Link copied to clipboard
val fqdnZones: Output<List<String>>? = null

FQDN zones of the DNS Service.

Link copied to clipboard
val logLevel: Output<Either<String, DnsServiceLogLevelEnum>>? = null

DNS Service log level.

Link copied to clipboard
val privateCloudName: Output<String>? = null

Name of the private cloud

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val revision: Output<Double>? = null

NSX revision number.

Functions

Link copied to clipboard
open override fun toJava(): WorkloadNetworkDnsServiceArgs