azure-native.avs.WorkloadNetworkDnsZone
Explore with Pulumi AI
NSX DNS Zone API Version: 2020-07-17-preview.
Example Usage
WorkloadNetworks_CreateDnsZone
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workloadNetworkDnsZone = new AzureNative.AVS.WorkloadNetworkDnsZone("workloadNetworkDnsZone", new()
{
DisplayName = "dnsZone1",
DnsServerIps = new[]
{
"1.1.1.1",
},
DnsZoneId = "dnsZone1",
Domain = new[] {},
PrivateCloudName = "cloud1",
ResourceGroupName = "group1",
Revision = 1,
SourceIp = "8.8.8.8",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewWorkloadNetworkDnsZone(ctx, "workloadNetworkDnsZone", &avs.WorkloadNetworkDnsZoneArgs{
DisplayName: pulumi.String("dnsZone1"),
DnsServerIps: pulumi.StringArray{
pulumi.String("1.1.1.1"),
},
DnsZoneId: pulumi.String("dnsZone1"),
Domain: pulumi.StringArray{},
PrivateCloudName: pulumi.String("cloud1"),
ResourceGroupName: pulumi.String("group1"),
Revision: pulumi.Float64(1),
SourceIp: pulumi.String("8.8.8.8"),
})
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.WorkloadNetworkDnsZone;
import com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs;
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 workloadNetworkDnsZone = new WorkloadNetworkDnsZone("workloadNetworkDnsZone", WorkloadNetworkDnsZoneArgs.builder()
.displayName("dnsZone1")
.dnsServerIps("1.1.1.1")
.dnsZoneId("dnsZone1")
.domain()
.privateCloudName("cloud1")
.resourceGroupName("group1")
.revision(1)
.sourceIp("8.8.8.8")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workload_network_dns_zone = azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZone",
display_name="dnsZone1",
dns_server_ips=["1.1.1.1"],
dns_zone_id="dnsZone1",
domain=[],
private_cloud_name="cloud1",
resource_group_name="group1",
revision=1,
source_ip="8.8.8.8")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workloadNetworkDnsZone = new azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZone", {
displayName: "dnsZone1",
dnsServerIps: ["1.1.1.1"],
dnsZoneId: "dnsZone1",
domain: [],
privateCloudName: "cloud1",
resourceGroupName: "group1",
revision: 1,
sourceIp: "8.8.8.8",
});
resources:
workloadNetworkDnsZone:
type: azure-native:avs:WorkloadNetworkDnsZone
properties:
displayName: dnsZone1
dnsServerIps:
- 1.1.1.1
dnsZoneId: dnsZone1
domain: []
privateCloudName: cloud1
resourceGroupName: group1
revision: 1
sourceIp: 8.8.8.8
Create WorkloadNetworkDnsZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkloadNetworkDnsZone(name: string, args: WorkloadNetworkDnsZoneArgs, opts?: CustomResourceOptions);
@overload
def WorkloadNetworkDnsZone(resource_name: str,
args: WorkloadNetworkDnsZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkloadNetworkDnsZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
private_cloud_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
display_name: Optional[str] = None,
dns_server_ips: Optional[Sequence[str]] = None,
dns_services: Optional[float] = None,
dns_zone_id: Optional[str] = None,
domain: Optional[Sequence[str]] = None,
revision: Optional[float] = None,
source_ip: Optional[str] = None)
func NewWorkloadNetworkDnsZone(ctx *Context, name string, args WorkloadNetworkDnsZoneArgs, opts ...ResourceOption) (*WorkloadNetworkDnsZone, error)
public WorkloadNetworkDnsZone(string name, WorkloadNetworkDnsZoneArgs args, CustomResourceOptions? opts = null)
public WorkloadNetworkDnsZone(String name, WorkloadNetworkDnsZoneArgs args)
public WorkloadNetworkDnsZone(String name, WorkloadNetworkDnsZoneArgs args, CustomResourceOptions options)
type: azure-native:avs:WorkloadNetworkDnsZone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkloadNetworkDnsZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkloadNetworkDnsZoneArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkloadNetworkDnsZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkloadNetworkDnsZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkloadNetworkDnsZoneArgs
- 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 workloadNetworkDnsZoneResource = new AzureNative.Avs.WorkloadNetworkDnsZone("workloadNetworkDnsZoneResource", new()
{
PrivateCloudName = "string",
ResourceGroupName = "string",
DisplayName = "string",
DnsServerIps = new[]
{
"string",
},
DnsServices = 0,
DnsZoneId = "string",
Domain = new[]
{
"string",
},
Revision = 0,
SourceIp = "string",
});
example, err := avs.NewWorkloadNetworkDnsZone(ctx, "workloadNetworkDnsZoneResource", &avs.WorkloadNetworkDnsZoneArgs{
PrivateCloudName: "string",
ResourceGroupName: "string",
DisplayName: "string",
DnsServerIps: []string{
"string",
},
DnsServices: 0,
DnsZoneId: "string",
Domain: []string{
"string",
},
Revision: 0,
SourceIp: "string",
})
var workloadNetworkDnsZoneResource = new WorkloadNetworkDnsZone("workloadNetworkDnsZoneResource", WorkloadNetworkDnsZoneArgs.builder()
.privateCloudName("string")
.resourceGroupName("string")
.displayName("string")
.dnsServerIps("string")
.dnsServices(0)
.dnsZoneId("string")
.domain("string")
.revision(0)
.sourceIp("string")
.build());
workload_network_dns_zone_resource = azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZoneResource",
private_cloud_name=string,
resource_group_name=string,
display_name=string,
dns_server_ips=[string],
dns_services=0,
dns_zone_id=string,
domain=[string],
revision=0,
source_ip=string)
const workloadNetworkDnsZoneResource = new azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZoneResource", {
privateCloudName: "string",
resourceGroupName: "string",
displayName: "string",
dnsServerIps: ["string"],
dnsServices: 0,
dnsZoneId: "string",
domain: ["string"],
revision: 0,
sourceIp: "string",
});
type: azure-native:avs:WorkloadNetworkDnsZone
properties:
displayName: string
dnsServerIps:
- string
dnsServices: 0
dnsZoneId: string
domain:
- string
privateCloudName: string
resourceGroupName: string
revision: 0
sourceIp: string
WorkloadNetworkDnsZone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkloadNetworkDnsZone resource accepts the following input properties:
- Private
Cloud stringName - Name of the private cloud
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Display
Name string - Display name of the DNS Zone.
- Dns
Server List<string>Ips - DNS Server IP array of the DNS Zone.
- Dns
Services double - Number of DNS Services using the DNS zone.
- Dns
Zone stringId - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- Domain List<string>
- Domain names of the DNS Zone.
- Revision double
- NSX revision number.
- Source
Ip string - Source IP of the DNS Zone.
- Private
Cloud stringName - Name of the private cloud
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Display
Name string - Display name of the DNS Zone.
- Dns
Server []stringIps - DNS Server IP array of the DNS Zone.
- Dns
Services float64 - Number of DNS Services using the DNS zone.
- Dns
Zone stringId - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- Domain []string
- Domain names of the DNS Zone.
- Revision float64
- NSX revision number.
- Source
Ip string - Source IP of the DNS Zone.
- private
Cloud StringName - Name of the private cloud
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- display
Name String - Display name of the DNS Zone.
- dns
Server List<String>Ips - DNS Server IP array of the DNS Zone.
- dns
Services Double - Number of DNS Services using the DNS zone.
- dns
Zone StringId - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- domain List<String>
- Domain names of the DNS Zone.
- revision Double
- NSX revision number.
- source
Ip String - Source IP of the DNS Zone.
- private
Cloud stringName - Name of the private cloud
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- display
Name string - Display name of the DNS Zone.
- dns
Server string[]Ips - DNS Server IP array of the DNS Zone.
- dns
Services number - Number of DNS Services using the DNS zone.
- dns
Zone stringId - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- domain string[]
- Domain names of the DNS Zone.
- revision number
- NSX revision number.
- source
Ip string - Source IP of the DNS Zone.
- private_
cloud_ strname - Name of the private cloud
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- display_
name str - Display name of the DNS Zone.
- dns_
server_ Sequence[str]ips - DNS Server IP array of the DNS Zone.
- dns_
services float - Number of DNS Services using the DNS zone.
- dns_
zone_ strid - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- domain Sequence[str]
- Domain names of the DNS Zone.
- revision float
- NSX revision number.
- source_
ip str - Source IP of the DNS Zone.
- private
Cloud StringName - Name of the private cloud
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- display
Name String - Display name of the DNS Zone.
- dns
Server List<String>Ips - DNS Server IP array of the DNS Zone.
- dns
Services Number - Number of DNS Services using the DNS zone.
- dns
Zone StringId - NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
- domain List<String>
- Domain names of the DNS Zone.
- revision Number
- NSX revision number.
- source
Ip String - Source IP of the DNS Zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkloadNetworkDnsZone resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state
- Type string
- Resource type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state
- Type string
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state
- type String
- Resource type.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - The provisioning state
- type string
- Resource type.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - The provisioning state
- type str
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state
- type String
- Resource type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:avs:WorkloadNetworkDnsZone dnsZone1 /subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0