F5 BIG-IP

v3.9.0 published on Friday, Aug 26, 2022 by Pulumi

Dns

f5bigip.sys.Dns Configures DNS server on F5 BIG-IP

Example Usage

using System.Collections.Generic;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;

return await Deployment.RunAsync(() => 
{
    var dns1 = new F5BigIP.Sys.Dns("dns1", new()
    {
        Description = "/Common/DNS1",
        NameServers = new[]
        {
            "1.1.1.1",
        },
        NumberOfDots = 2,
        Searches = new[]
        {
            "f5.com",
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/sys"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sys.NewDns(ctx, "dns1", &sys.DnsArgs{
			Description: pulumi.String("/Common/DNS1"),
			NameServers: pulumi.StringArray{
				pulumi.String("1.1.1.1"),
			},
			NumberOfDots: pulumi.Int(2),
			Searches: pulumi.StringArray{
				pulumi.String("f5.com"),
			},
		})
		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.f5bigip.sys.Dns;
import com.pulumi.f5bigip.sys.DnsArgs;
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 dns1 = new Dns("dns1", DnsArgs.builder()        
            .description("/Common/DNS1")
            .nameServers("1.1.1.1")
            .numberOfDots(2)
            .searches("f5.com")
            .build());

    }
}
import pulumi
import pulumi_f5bigip as f5bigip

dns1 = f5bigip.sys.Dns("dns1",
    description="/Common/DNS1",
    name_servers=["1.1.1.1"],
    number_of_dots=2,
    searches=["f5.com"])
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";

const dns1 = new f5bigip.sys.Dns("dns1", {
    description: "/Common/DNS1",
    nameServers: ["1.1.1.1"],
    numberOfDots: 2,
    searches: ["f5.com"],
});
resources:
  dns1:
    type: f5bigip:sys:Dns
    properties:
      description: /Common/DNS1
      nameServers:
        - 1.1.1.1
      numberOfDots: 2
      searches:
        - f5.com

Create Dns Resource

new Dns(name: string, args: DnsArgs, opts?: CustomResourceOptions);
@overload
def Dns(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name_servers: Optional[Sequence[str]] = None,
        number_of_dots: Optional[int] = None,
        searches: Optional[Sequence[str]] = None)
@overload
def Dns(resource_name: str,
        args: DnsArgs,
        opts: Optional[ResourceOptions] = None)
func NewDns(ctx *Context, name string, args DnsArgs, opts ...ResourceOption) (*Dns, error)
public Dns(string name, DnsArgs args, CustomResourceOptions? opts = null)
public Dns(String name, DnsArgs args)
public Dns(String name, DnsArgs args, CustomResourceOptions options)
type: f5bigip:sys:Dns
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DnsArgs
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 DnsArgs
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 DnsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DnsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DnsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Dns 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 Dns resource accepts the following input properties:

Description string

Provide description for your DNS server

NameServers List<string>

Name or IP address of the DNS server

NumberOfDots int

Configures the number of dots needed in a name before an initial absolute query will be made.

Searches List<string>

Specify what domains you want to search

Description string

Provide description for your DNS server

NameServers []string

Name or IP address of the DNS server

NumberOfDots int

Configures the number of dots needed in a name before an initial absolute query will be made.

Searches []string

Specify what domains you want to search

description String

Provide description for your DNS server

nameServers List<String>

Name or IP address of the DNS server

numberOfDots Integer

Configures the number of dots needed in a name before an initial absolute query will be made.

searches List<String>

Specify what domains you want to search

description string

Provide description for your DNS server

nameServers string[]

Name or IP address of the DNS server

numberOfDots number

Configures the number of dots needed in a name before an initial absolute query will be made.

searches string[]

Specify what domains you want to search

description str

Provide description for your DNS server

name_servers Sequence[str]

Name or IP address of the DNS server

number_of_dots int

Configures the number of dots needed in a name before an initial absolute query will be made.

searches Sequence[str]

Specify what domains you want to search

description String

Provide description for your DNS server

nameServers List<String>

Name or IP address of the DNS server

numberOfDots Number

Configures the number of dots needed in a name before an initial absolute query will be made.

searches List<String>

Specify what domains you want to search

Outputs

All input properties are implicitly available as output properties. Additionally, the Dns resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Dns Resource

Get an existing Dns resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DnsState, opts?: CustomResourceOptions): Dns
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name_servers: Optional[Sequence[str]] = None,
        number_of_dots: Optional[int] = None,
        searches: Optional[Sequence[str]] = None) -> Dns
func GetDns(ctx *Context, name string, id IDInput, state *DnsState, opts ...ResourceOption) (*Dns, error)
public static Dns Get(string name, Input<string> id, DnsState? state, CustomResourceOptions? opts = null)
public static Dns get(String name, Output<String> id, DnsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string

Provide description for your DNS server

NameServers List<string>

Name or IP address of the DNS server

NumberOfDots int

Configures the number of dots needed in a name before an initial absolute query will be made.

Searches List<string>

Specify what domains you want to search

Description string

Provide description for your DNS server

NameServers []string

Name or IP address of the DNS server

NumberOfDots int

Configures the number of dots needed in a name before an initial absolute query will be made.

Searches []string

Specify what domains you want to search

description String

Provide description for your DNS server

nameServers List<String>

Name or IP address of the DNS server

numberOfDots Integer

Configures the number of dots needed in a name before an initial absolute query will be made.

searches List<String>

Specify what domains you want to search

description string

Provide description for your DNS server

nameServers string[]

Name or IP address of the DNS server

numberOfDots number

Configures the number of dots needed in a name before an initial absolute query will be made.

searches string[]

Specify what domains you want to search

description str

Provide description for your DNS server

name_servers Sequence[str]

Name or IP address of the DNS server

number_of_dots int

Configures the number of dots needed in a name before an initial absolute query will be made.

searches Sequence[str]

Specify what domains you want to search

description String

Provide description for your DNS server

nameServers List<String>

Name or IP address of the DNS server

numberOfDots Number

Configures the number of dots needed in a name before an initial absolute query will be made.

searches List<String>

Specify what domains you want to search

Package Details

Repository
https://github.com/pulumi/pulumi-f5bigip
License
Apache-2.0
Notes

This Pulumi package is based on the bigip Terraform Provider.