unifi logo
Unifi v0.0.3, Dec 5 22

unifi.DynamicDNS

unifi.DynamicDNS manages dynamic DNS settings for different providers.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Unifi = Pulumiverse.Unifi;

return await Deployment.RunAsync(() => 
{
    var test = new Unifi.DynamicDNS("test", new()
    {
        Service = "dyndns",
        HostName = "my-network.example.com",
        Server = "domains.google.com",
        Login = @var.Dns_login,
        Password = @var.Dns_password,
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := unifi.NewDynamicDNS(ctx, "test", &unifi.DynamicDNSArgs{
			Service:  pulumi.String("dyndns"),
			HostName: pulumi.String("my-network.example.com"),
			Server:   pulumi.String("domains.google.com"),
			Login:    pulumi.Any(_var.Dns_login),
			Password: pulumi.Any(_var.Dns_password),
		})
		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.unifi.DynamicDNS;
import com.pulumi.unifi.DynamicDNSArgs;
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 test = new DynamicDNS("test", DynamicDNSArgs.builder()        
            .service("dyndns")
            .hostName("my-network.example.com")
            .server("domains.google.com")
            .login(var_.dns_login())
            .password(var_.dns_password())
            .build());

    }
}
import pulumi
import pulumiverse_unifi as unifi

test = unifi.DynamicDNS("test",
    service="dyndns",
    host_name="my-network.example.com",
    server="domains.google.com",
    login=var["dns_login"],
    password=var["dns_password"])
import * as pulumi from "@pulumi/pulumi";
import * as unifi from "@pulumiverse/unifi";

const test = new unifi.DynamicDNS("test", {
    service: "dyndns",
    hostName: "my-network.example.com",
    server: "domains.google.com",
    login: _var.dns_login,
    password: _var.dns_password,
});
resources:
  test:
    type: unifi:DynamicDNS
    properties:
      service: dyndns
      hostName: my-network.example.com
      server: domains.google.com
      login: ${var.dns_login}
      password: ${var.dns_password}

Create DynamicDNS Resource

new DynamicDNS(name: string, args: DynamicDNSArgs, opts?: CustomResourceOptions);
@overload
def DynamicDNS(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               host_name: Optional[str] = None,
               interface: Optional[str] = None,
               login: Optional[str] = None,
               password: Optional[str] = None,
               server: Optional[str] = None,
               service: Optional[str] = None,
               site: Optional[str] = None)
@overload
def DynamicDNS(resource_name: str,
               args: DynamicDNSArgs,
               opts: Optional[ResourceOptions] = None)
func NewDynamicDNS(ctx *Context, name string, args DynamicDNSArgs, opts ...ResourceOption) (*DynamicDNS, error)
public DynamicDNS(string name, DynamicDNSArgs args, CustomResourceOptions? opts = null)
public DynamicDNS(String name, DynamicDNSArgs args)
public DynamicDNS(String name, DynamicDNSArgs args, CustomResourceOptions options)
type: unifi:DynamicDNS
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

HostName string

The host name to update in the dynamic DNS service.

Service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

Interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

Login string

The server for the dynamic DNS service.

Password string

The server for the dynamic DNS service.

Server string

The server for the dynamic DNS service.

Site string

The name of the site to associate the dynamic DNS with.

HostName string

The host name to update in the dynamic DNS service.

Service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

Interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

Login string

The server for the dynamic DNS service.

Password string

The server for the dynamic DNS service.

Server string

The server for the dynamic DNS service.

Site string

The name of the site to associate the dynamic DNS with.

hostName String

The host name to update in the dynamic DNS service.

service String

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

interface_ String

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login String

The server for the dynamic DNS service.

password String

The server for the dynamic DNS service.

server String

The server for the dynamic DNS service.

site String

The name of the site to associate the dynamic DNS with.

hostName string

The host name to update in the dynamic DNS service.

service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login string

The server for the dynamic DNS service.

password string

The server for the dynamic DNS service.

server string

The server for the dynamic DNS service.

site string

The name of the site to associate the dynamic DNS with.

host_name str

The host name to update in the dynamic DNS service.

service str

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

interface str

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login str

The server for the dynamic DNS service.

password str

The server for the dynamic DNS service.

server str

The server for the dynamic DNS service.

site str

The name of the site to associate the dynamic DNS with.

hostName String

The host name to update in the dynamic DNS service.

service String

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

interface String

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login String

The server for the dynamic DNS service.

password String

The server for the dynamic DNS service.

server String

The server for the dynamic DNS service.

site String

The name of the site to associate the dynamic DNS with.

Outputs

All input properties are implicitly available as output properties. Additionally, the DynamicDNS 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 DynamicDNS Resource

Get an existing DynamicDNS 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?: DynamicDNSState, opts?: CustomResourceOptions): DynamicDNS
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        host_name: Optional[str] = None,
        interface: Optional[str] = None,
        login: Optional[str] = None,
        password: Optional[str] = None,
        server: Optional[str] = None,
        service: Optional[str] = None,
        site: Optional[str] = None) -> DynamicDNS
func GetDynamicDNS(ctx *Context, name string, id IDInput, state *DynamicDNSState, opts ...ResourceOption) (*DynamicDNS, error)
public static DynamicDNS Get(string name, Input<string> id, DynamicDNSState? state, CustomResourceOptions? opts = null)
public static DynamicDNS get(String name, Output<String> id, DynamicDNSState 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:
HostName string

The host name to update in the dynamic DNS service.

Interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

Login string

The server for the dynamic DNS service.

Password string

The server for the dynamic DNS service.

Server string

The server for the dynamic DNS service.

Service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

Site string

The name of the site to associate the dynamic DNS with.

HostName string

The host name to update in the dynamic DNS service.

Interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

Login string

The server for the dynamic DNS service.

Password string

The server for the dynamic DNS service.

Server string

The server for the dynamic DNS service.

Service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

Site string

The name of the site to associate the dynamic DNS with.

hostName String

The host name to update in the dynamic DNS service.

interface_ String

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login String

The server for the dynamic DNS service.

password String

The server for the dynamic DNS service.

server String

The server for the dynamic DNS service.

service String

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

site String

The name of the site to associate the dynamic DNS with.

hostName string

The host name to update in the dynamic DNS service.

interface string

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login string

The server for the dynamic DNS service.

password string

The server for the dynamic DNS service.

server string

The server for the dynamic DNS service.

service string

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

site string

The name of the site to associate the dynamic DNS with.

host_name str

The host name to update in the dynamic DNS service.

interface str

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login str

The server for the dynamic DNS service.

password str

The server for the dynamic DNS service.

server str

The server for the dynamic DNS service.

service str

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

site str

The name of the site to associate the dynamic DNS with.

hostName String

The host name to update in the dynamic DNS service.

interface String

The interface for the dynamic DNS. Can be wan or wan2. Defaults to wan.

login String

The server for the dynamic DNS service.

password String

The server for the dynamic DNS service.

server String

The server for the dynamic DNS service.

service String

The Dynamic DNS service provider, various values are supported (for example dyndns, etc.).

site String

The name of the site to associate the dynamic DNS with.

Package Details

Repository
unifi pulumiverse/pulumi-unifi
License
Apache-2.0
Notes

This Pulumi package is based on the unifi Terraform Provider.