Workload Network Dns Service Args
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 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2022-05-01. Other available API versions: 2022-05-01, 2023-03-01, 2024-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native avs [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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,
});
});
Content copied to clipboard
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v3"
"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
})
}
Content copied to clipboard
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.0)
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
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
Default DNS zone of the DNS Service.
Link copied to clipboard
Display name of the DNS Service.
Link copied to clipboard
ID of the DNS service.
Link copied to clipboard
DNS service IP of the DNS Service.
Link copied to clipboard
DNS Service log level.
Link copied to clipboard
Name of the private cloud
Link copied to clipboard
The name of the resource group. The name is case insensitive.