1. Packages
  2. Azure Native v1
  3. API Docs
  4. avs
  5. WorkloadNetworkDnsZone
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.avs.WorkloadNetworkDnsZone

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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

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

    The WorkloadNetworkDnsZone resource accepts the following input properties:

    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DisplayName string
    Display name of the DNS Zone.
    DnsServerIps List<string>
    DNS Server IP array of the DNS Zone.
    DnsServices double
    Number of DNS Services using the DNS zone.
    DnsZoneId string
    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.
    SourceIp string
    Source IP of the DNS Zone.
    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DisplayName string
    Display name of the DNS Zone.
    DnsServerIps []string
    DNS Server IP array of the DNS Zone.
    DnsServices float64
    Number of DNS Services using the DNS zone.
    DnsZoneId string
    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.
    SourceIp string
    Source IP of the DNS Zone.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    displayName String
    Display name of the DNS Zone.
    dnsServerIps List<String>
    DNS Server IP array of the DNS Zone.
    dnsServices Double
    Number of DNS Services using the DNS zone.
    dnsZoneId String
    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.
    sourceIp String
    Source IP of the DNS Zone.
    privateCloudName string
    Name of the private cloud
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    displayName string
    Display name of the DNS Zone.
    dnsServerIps string[]
    DNS Server IP array of the DNS Zone.
    dnsServices number
    Number of DNS Services using the DNS zone.
    dnsZoneId string
    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.
    sourceIp string
    Source IP of the DNS Zone.
    private_cloud_name str
    Name of the private cloud
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    display_name str
    Display name of the DNS Zone.
    dns_server_ips Sequence[str]
    DNS Server IP array of the DNS Zone.
    dns_services float
    Number of DNS Services using the DNS zone.
    dns_zone_id str
    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.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    displayName String
    Display name of the DNS Zone.
    dnsServerIps List<String>
    DNS Server IP array of the DNS Zone.
    dnsServices Number
    Number of DNS Services using the DNS zone.
    dnsZoneId String
    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.
    sourceIp 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.
    ProvisioningState string
    The provisioning state
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    The provisioning state
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    provisioningState 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.
    provisioningState 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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi