1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. AccountDnsSettingsInternalView
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

cloudflare.AccountDnsSettingsInternalView

Explore with Pulumi AI

Example Usage

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

const exampleAccountDnsSettingsInternalView = new cloudflare.AccountDnsSettingsInternalView("example_account_dns_settings_internal_view", {
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    name: "my view",
    zones: ["372e67954025e0ba6aaa6d586b9e0b59"],
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_account_dns_settings_internal_view = cloudflare.AccountDnsSettingsInternalView("example_account_dns_settings_internal_view",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    name="my view",
    zones=["372e67954025e0ba6aaa6d586b9e0b59"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewAccountDnsSettingsInternalView(ctx, "example_account_dns_settings_internal_view", &cloudflare.AccountDnsSettingsInternalViewArgs{
			AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
			Name:      pulumi.String("my view"),
			Zones: pulumi.StringArray{
				pulumi.String("372e67954025e0ba6aaa6d586b9e0b59"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleAccountDnsSettingsInternalView = new Cloudflare.AccountDnsSettingsInternalView("example_account_dns_settings_internal_view", new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        Name = "my view",
        Zones = new[]
        {
            "372e67954025e0ba6aaa6d586b9e0b59",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccountDnsSettingsInternalView;
import com.pulumi.cloudflare.AccountDnsSettingsInternalViewArgs;
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 exampleAccountDnsSettingsInternalView = new AccountDnsSettingsInternalView("exampleAccountDnsSettingsInternalView", AccountDnsSettingsInternalViewArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .name("my view")
            .zones("372e67954025e0ba6aaa6d586b9e0b59")
            .build());

    }
}
Copy
resources:
  exampleAccountDnsSettingsInternalView:
    type: cloudflare:AccountDnsSettingsInternalView
    name: example_account_dns_settings_internal_view
    properties:
      accountId: 023e105f4ecef8ad9ca31a8372d0c353
      name: my view
      zones:
        - 372e67954025e0ba6aaa6d586b9e0b59
Copy

Create AccountDnsSettingsInternalView Resource

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

Constructor syntax

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

@overload
def AccountDnsSettingsInternalView(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   account_id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   zones: Optional[Sequence[str]] = None)
func NewAccountDnsSettingsInternalView(ctx *Context, name string, args AccountDnsSettingsInternalViewArgs, opts ...ResourceOption) (*AccountDnsSettingsInternalView, error)
public AccountDnsSettingsInternalView(string name, AccountDnsSettingsInternalViewArgs args, CustomResourceOptions? opts = null)
public AccountDnsSettingsInternalView(String name, AccountDnsSettingsInternalViewArgs args)
public AccountDnsSettingsInternalView(String name, AccountDnsSettingsInternalViewArgs args, CustomResourceOptions options)
type: cloudflare:AccountDnsSettingsInternalView
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. AccountDnsSettingsInternalViewArgs
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. AccountDnsSettingsInternalViewArgs
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. AccountDnsSettingsInternalViewArgs
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. AccountDnsSettingsInternalViewArgs
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. AccountDnsSettingsInternalViewArgs
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 accountDnsSettingsInternalViewResource = new Cloudflare.AccountDnsSettingsInternalView("accountDnsSettingsInternalViewResource", new()
{
    AccountId = "string",
    Name = "string",
    Zones = new[]
    {
        "string",
    },
});
Copy
example, err := cloudflare.NewAccountDnsSettingsInternalView(ctx, "accountDnsSettingsInternalViewResource", &cloudflare.AccountDnsSettingsInternalViewArgs{
	AccountId: pulumi.String("string"),
	Name:      pulumi.String("string"),
	Zones: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var accountDnsSettingsInternalViewResource = new AccountDnsSettingsInternalView("accountDnsSettingsInternalViewResource", AccountDnsSettingsInternalViewArgs.builder()
    .accountId("string")
    .name("string")
    .zones("string")
    .build());
Copy
account_dns_settings_internal_view_resource = cloudflare.AccountDnsSettingsInternalView("accountDnsSettingsInternalViewResource",
    account_id="string",
    name="string",
    zones=["string"])
Copy
const accountDnsSettingsInternalViewResource = new cloudflare.AccountDnsSettingsInternalView("accountDnsSettingsInternalViewResource", {
    accountId: "string",
    name: "string",
    zones: ["string"],
});
Copy
type: cloudflare:AccountDnsSettingsInternalView
properties:
    accountId: string
    name: string
    zones:
        - string
Copy

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

AccountId This property is required. string
Identifier
Name This property is required. string
The name of the view.
Zones This property is required. List<string>
The list of zones linked to this view.
AccountId This property is required. string
Identifier
Name This property is required. string
The name of the view.
Zones This property is required. []string
The list of zones linked to this view.
accountId This property is required. String
Identifier
name This property is required. String
The name of the view.
zones This property is required. List<String>
The list of zones linked to this view.
accountId This property is required. string
Identifier
name This property is required. string
The name of the view.
zones This property is required. string[]
The list of zones linked to this view.
account_id This property is required. str
Identifier
name This property is required. str
The name of the view.
zones This property is required. Sequence[str]
The list of zones linked to this view.
accountId This property is required. String
Identifier
name This property is required. String
The name of the view.
zones This property is required. List<String>
The list of zones linked to this view.

Outputs

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

CreatedTime string
When the view was created.
Id string
The provider-assigned unique ID for this managed resource.
ModifiedTime string
When the view was last modified.
CreatedTime string
When the view was created.
Id string
The provider-assigned unique ID for this managed resource.
ModifiedTime string
When the view was last modified.
createdTime String
When the view was created.
id String
The provider-assigned unique ID for this managed resource.
modifiedTime String
When the view was last modified.
createdTime string
When the view was created.
id string
The provider-assigned unique ID for this managed resource.
modifiedTime string
When the view was last modified.
created_time str
When the view was created.
id str
The provider-assigned unique ID for this managed resource.
modified_time str
When the view was last modified.
createdTime String
When the view was created.
id String
The provider-assigned unique ID for this managed resource.
modifiedTime String
When the view was last modified.

Look up Existing AccountDnsSettingsInternalView Resource

Get an existing AccountDnsSettingsInternalView 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?: AccountDnsSettingsInternalViewState, opts?: CustomResourceOptions): AccountDnsSettingsInternalView
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        created_time: Optional[str] = None,
        modified_time: Optional[str] = None,
        name: Optional[str] = None,
        zones: Optional[Sequence[str]] = None) -> AccountDnsSettingsInternalView
func GetAccountDnsSettingsInternalView(ctx *Context, name string, id IDInput, state *AccountDnsSettingsInternalViewState, opts ...ResourceOption) (*AccountDnsSettingsInternalView, error)
public static AccountDnsSettingsInternalView Get(string name, Input<string> id, AccountDnsSettingsInternalViewState? state, CustomResourceOptions? opts = null)
public static AccountDnsSettingsInternalView get(String name, Output<String> id, AccountDnsSettingsInternalViewState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:AccountDnsSettingsInternalView    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:
AccountId string
Identifier
CreatedTime string
When the view was created.
ModifiedTime string
When the view was last modified.
Name string
The name of the view.
Zones List<string>
The list of zones linked to this view.
AccountId string
Identifier
CreatedTime string
When the view was created.
ModifiedTime string
When the view was last modified.
Name string
The name of the view.
Zones []string
The list of zones linked to this view.
accountId String
Identifier
createdTime String
When the view was created.
modifiedTime String
When the view was last modified.
name String
The name of the view.
zones List<String>
The list of zones linked to this view.
accountId string
Identifier
createdTime string
When the view was created.
modifiedTime string
When the view was last modified.
name string
The name of the view.
zones string[]
The list of zones linked to this view.
account_id str
Identifier
created_time str
When the view was created.
modified_time str
When the view was last modified.
name str
The name of the view.
zones Sequence[str]
The list of zones linked to this view.
accountId String
Identifier
createdTime String
When the view was created.
modifiedTime String
When the view was last modified.
name String
The name of the view.
zones List<String>
The list of zones linked to this view.

Import

$ pulumi import cloudflare:index/accountDnsSettingsInternalView:AccountDnsSettingsInternalView example '<account_id>/<view_id>'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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