1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. InternalDnsServer
Strata Cloud Manager v0.3.1 published on Thursday, Mar 13, 2025 by Pulumi

scm.InternalDnsServer

Explore with Pulumi AI

Retrieves a config item.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";

const example = new scm.InternalDnsServer("example", {});
Copy
import pulumi
import pulumi_scm as scm

example = scm.InternalDnsServer("example")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scm.NewInternalDnsServer(ctx, "example", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;

return await Deployment.RunAsync(() => 
{
    var example = new Scm.InternalDnsServer("example");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.InternalDnsServer;
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 example = new InternalDnsServer("example");

    }
}
Copy
resources:
  example:
    type: scm:InternalDnsServer
Copy

Create InternalDnsServer Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InternalDnsServer(name: string, args: InternalDnsServerArgs, opts?: CustomResourceOptions);
@overload
def InternalDnsServer(resource_name: str,
                      args: InternalDnsServerArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def InternalDnsServer(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      domain_names: Optional[Sequence[str]] = None,
                      primary: Optional[str] = None,
                      name: Optional[str] = None,
                      secondary: Optional[str] = None)
func NewInternalDnsServer(ctx *Context, name string, args InternalDnsServerArgs, opts ...ResourceOption) (*InternalDnsServer, error)
public InternalDnsServer(string name, InternalDnsServerArgs args, CustomResourceOptions? opts = null)
public InternalDnsServer(String name, InternalDnsServerArgs args)
public InternalDnsServer(String name, InternalDnsServerArgs args, CustomResourceOptions options)
type: scm:InternalDnsServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InternalDnsServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InternalDnsServerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InternalDnsServerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InternalDnsServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InternalDnsServerArgs
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 internalDnsServerResource = new Scm.InternalDnsServer("internalDnsServerResource", new()
{
    DomainNames = new[]
    {
        "string",
    },
    Primary = "string",
    Name = "string",
    Secondary = "string",
});
Copy
example, err := scm.NewInternalDnsServer(ctx, "internalDnsServerResource", &scm.InternalDnsServerArgs{
	DomainNames: pulumi.StringArray{
		pulumi.String("string"),
	},
	Primary:   pulumi.String("string"),
	Name:      pulumi.String("string"),
	Secondary: pulumi.String("string"),
})
Copy
var internalDnsServerResource = new InternalDnsServer("internalDnsServerResource", InternalDnsServerArgs.builder()
    .domainNames("string")
    .primary("string")
    .name("string")
    .secondary("string")
    .build());
Copy
internal_dns_server_resource = scm.InternalDnsServer("internalDnsServerResource",
    domain_names=["string"],
    primary="string",
    name="string",
    secondary="string")
Copy
const internalDnsServerResource = new scm.InternalDnsServer("internalDnsServerResource", {
    domainNames: ["string"],
    primary: "string",
    name: "string",
    secondary: "string",
});
Copy
type: scm:InternalDnsServer
properties:
    domainNames:
        - string
    name: string
    primary: string
    secondary: string
Copy

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

DomainNames This property is required. List<string>
The DomainNames param.
Primary This property is required. string
The Primary param.
Name string
The Name param.
Secondary string
The Secondary param.
DomainNames This property is required. []string
The DomainNames param.
Primary This property is required. string
The Primary param.
Name string
The Name param.
Secondary string
The Secondary param.
domainNames This property is required. List<String>
The DomainNames param.
primary This property is required. String
The Primary param.
name String
The Name param.
secondary String
The Secondary param.
domainNames This property is required. string[]
The DomainNames param.
primary This property is required. string
The Primary param.
name string
The Name param.
secondary string
The Secondary param.
domain_names This property is required. Sequence[str]
The DomainNames param.
primary This property is required. str
The Primary param.
name str
The Name param.
secondary str
The Secondary param.
domainNames This property is required. List<String>
The DomainNames param.
primary This property is required. String
The Primary param.
name String
The Name param.
secondary String
The Secondary param.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Tfid string
Id string
The provider-assigned unique ID for this managed resource.
Tfid string
id String
The provider-assigned unique ID for this managed resource.
tfid String
id string
The provider-assigned unique ID for this managed resource.
tfid string
id str
The provider-assigned unique ID for this managed resource.
tfid str
id String
The provider-assigned unique ID for this managed resource.
tfid String

Look up Existing InternalDnsServer Resource

Get an existing InternalDnsServer 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?: InternalDnsServerState, opts?: CustomResourceOptions): InternalDnsServer
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_names: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        primary: Optional[str] = None,
        secondary: Optional[str] = None,
        tfid: Optional[str] = None) -> InternalDnsServer
func GetInternalDnsServer(ctx *Context, name string, id IDInput, state *InternalDnsServerState, opts ...ResourceOption) (*InternalDnsServer, error)
public static InternalDnsServer Get(string name, Input<string> id, InternalDnsServerState? state, CustomResourceOptions? opts = null)
public static InternalDnsServer get(String name, Output<String> id, InternalDnsServerState state, CustomResourceOptions options)
resources:  _:    type: scm:InternalDnsServer    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DomainNames List<string>
The DomainNames param.
Name string
The Name param.
Primary string
The Primary param.
Secondary string
The Secondary param.
Tfid string
DomainNames []string
The DomainNames param.
Name string
The Name param.
Primary string
The Primary param.
Secondary string
The Secondary param.
Tfid string
domainNames List<String>
The DomainNames param.
name String
The Name param.
primary String
The Primary param.
secondary String
The Secondary param.
tfid String
domainNames string[]
The DomainNames param.
name string
The Name param.
primary string
The Primary param.
secondary string
The Secondary param.
tfid string
domain_names Sequence[str]
The DomainNames param.
name str
The Name param.
primary str
The Primary param.
secondary str
The Secondary param.
tfid str
domainNames List<String>
The DomainNames param.
name String
The Name param.
primary String
The Primary param.
secondary String
The Secondary param.
tfid String

Package Details

Repository
scm pulumi/pulumi-scm
License
Apache-2.0
Notes
This Pulumi package is based on the scm Terraform Provider.