nsxt.PolicyGatewayDnsForwarder
Explore with Pulumi AI
Create PolicyGatewayDnsForwarder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyGatewayDnsForwarder(name: string, args: PolicyGatewayDnsForwarderArgs, opts?: CustomResourceOptions);
@overload
def PolicyGatewayDnsForwarder(resource_name: str,
args: PolicyGatewayDnsForwarderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyGatewayDnsForwarder(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_forwarder_zone_path: Optional[str] = None,
display_name: Optional[str] = None,
gateway_path: Optional[str] = None,
listener_ip: Optional[str] = None,
cache_size: Optional[float] = None,
conditional_forwarder_zone_paths: Optional[Sequence[str]] = None,
context: Optional[PolicyGatewayDnsForwarderContextArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
log_level: Optional[str] = None,
policy_gateway_dns_forwarder_id: Optional[str] = None,
tags: Optional[Sequence[PolicyGatewayDnsForwarderTagArgs]] = None)
func NewPolicyGatewayDnsForwarder(ctx *Context, name string, args PolicyGatewayDnsForwarderArgs, opts ...ResourceOption) (*PolicyGatewayDnsForwarder, error)
public PolicyGatewayDnsForwarder(string name, PolicyGatewayDnsForwarderArgs args, CustomResourceOptions? opts = null)
public PolicyGatewayDnsForwarder(String name, PolicyGatewayDnsForwarderArgs args)
public PolicyGatewayDnsForwarder(String name, PolicyGatewayDnsForwarderArgs args, CustomResourceOptions options)
type: nsxt:PolicyGatewayDnsForwarder
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 PolicyGatewayDnsForwarderArgs
- 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 PolicyGatewayDnsForwarderArgs
- 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 PolicyGatewayDnsForwarderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyGatewayDnsForwarderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyGatewayDnsForwarderArgs
- 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 policyGatewayDnsForwarderResource = new Nsxt.PolicyGatewayDnsForwarder("policyGatewayDnsForwarderResource", new()
{
DefaultForwarderZonePath = "string",
DisplayName = "string",
GatewayPath = "string",
ListenerIp = "string",
CacheSize = 0,
ConditionalForwarderZonePaths = new[]
{
"string",
},
Context = new Nsxt.Inputs.PolicyGatewayDnsForwarderContextArgs
{
ProjectId = "string",
},
Description = "string",
Enabled = false,
LogLevel = "string",
PolicyGatewayDnsForwarderId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyGatewayDnsForwarderTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyGatewayDnsForwarder(ctx, "policyGatewayDnsForwarderResource", &nsxt.PolicyGatewayDnsForwarderArgs{
DefaultForwarderZonePath: pulumi.String("string"),
DisplayName: pulumi.String("string"),
GatewayPath: pulumi.String("string"),
ListenerIp: pulumi.String("string"),
CacheSize: pulumi.Float64(0),
ConditionalForwarderZonePaths: pulumi.StringArray{
pulumi.String("string"),
},
Context: &nsxt.PolicyGatewayDnsForwarderContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
PolicyGatewayDnsForwarderId: pulumi.String("string"),
Tags: nsxt.PolicyGatewayDnsForwarderTagArray{
&nsxt.PolicyGatewayDnsForwarderTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyGatewayDnsForwarderResource = new PolicyGatewayDnsForwarder("policyGatewayDnsForwarderResource", PolicyGatewayDnsForwarderArgs.builder()
.defaultForwarderZonePath("string")
.displayName("string")
.gatewayPath("string")
.listenerIp("string")
.cacheSize(0)
.conditionalForwarderZonePaths("string")
.context(PolicyGatewayDnsForwarderContextArgs.builder()
.projectId("string")
.build())
.description("string")
.enabled(false)
.logLevel("string")
.policyGatewayDnsForwarderId("string")
.tags(PolicyGatewayDnsForwarderTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_gateway_dns_forwarder_resource = nsxt.PolicyGatewayDnsForwarder("policyGatewayDnsForwarderResource",
default_forwarder_zone_path="string",
display_name="string",
gateway_path="string",
listener_ip="string",
cache_size=0,
conditional_forwarder_zone_paths=["string"],
context={
"project_id": "string",
},
description="string",
enabled=False,
log_level="string",
policy_gateway_dns_forwarder_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyGatewayDnsForwarderResource = new nsxt.PolicyGatewayDnsForwarder("policyGatewayDnsForwarderResource", {
defaultForwarderZonePath: "string",
displayName: "string",
gatewayPath: "string",
listenerIp: "string",
cacheSize: 0,
conditionalForwarderZonePaths: ["string"],
context: {
projectId: "string",
},
description: "string",
enabled: false,
logLevel: "string",
policyGatewayDnsForwarderId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyGatewayDnsForwarder
properties:
cacheSize: 0
conditionalForwarderZonePaths:
- string
context:
projectId: string
defaultForwarderZonePath: string
description: string
displayName: string
enabled: false
gatewayPath: string
listenerIp: string
logLevel: string
policyGatewayDnsForwarderId: string
tags:
- scope: string
tag: string
PolicyGatewayDnsForwarder 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 PolicyGatewayDnsForwarder resource accepts the following input properties:
- Default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- Display
Name string - Display name of the resource.
- Gateway
Path string - Path of Tier0 or Tier1 Gateway.
- Listener
Ip string - IP address on which the DNS Forwarder listens.
- Cache
Size double - Cache size in KB.
- Conditional
Forwarder List<string>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- Context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- Description string
- Description of the resource.
- Enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - Log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - Policy
Gateway stringDns Forwarder Id - ID of the resource.
- List<Policy
Gateway Dns Forwarder Tag> - A list of scope + tag pairs to associate with this resource.
- Default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- Display
Name string - Display name of the resource.
- Gateway
Path string - Path of Tier0 or Tier1 Gateway.
- Listener
Ip string - IP address on which the DNS Forwarder listens.
- Cache
Size float64 - Cache size in KB.
- Conditional
Forwarder []stringZone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- Context
Policy
Gateway Dns Forwarder Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - Log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - Policy
Gateway stringDns Forwarder Id - ID of the resource.
- []Policy
Gateway Dns Forwarder Tag Args - A list of scope + tag pairs to associate with this resource.
- default
Forwarder StringZone Path - Path of Default Forwarder Zone.
- display
Name String - Display name of the resource.
- gateway
Path String - Path of Tier0 or Tier1 Gateway.
- listener
Ip String - IP address on which the DNS Forwarder listens.
- cache
Size Double - Cache size in KB.
- conditional
Forwarder List<String>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- description String
- Description of the resource.
- enabled Boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - log
Level String - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - policy
Gateway StringDns Forwarder Id - ID of the resource.
- List<Policy
Gateway Dns Forwarder Tag> - A list of scope + tag pairs to associate with this resource.
- default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- display
Name string - Display name of the resource.
- gateway
Path string - Path of Tier0 or Tier1 Gateway.
- listener
Ip string - IP address on which the DNS Forwarder listens.
- cache
Size number - Cache size in KB.
- conditional
Forwarder string[]Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- description string
- Description of the resource.
- enabled boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - policy
Gateway stringDns Forwarder Id - ID of the resource.
- Policy
Gateway Dns Forwarder Tag[] - A list of scope + tag pairs to associate with this resource.
- default_
forwarder_ strzone_ path - Path of Default Forwarder Zone.
- display_
name str - Display name of the resource.
- gateway_
path str - Path of Tier0 or Tier1 Gateway.
- listener_
ip str - IP address on which the DNS Forwarder listens.
- cache_
size float - Cache size in KB.
- conditional_
forwarder_ Sequence[str]zone_ paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context Args - The context which the object belongs to
- description str
- Description of the resource.
- enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - log_
level str - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - policy_
gateway_ strdns_ forwarder_ id - ID of the resource.
- Sequence[Policy
Gateway Dns Forwarder Tag Args] - A list of scope + tag pairs to associate with this resource.
- default
Forwarder StringZone Path - Path of Default Forwarder Zone.
- display
Name String - Display name of the resource.
- gateway
Path String - Path of Tier0 or Tier1 Gateway.
- listener
Ip String - IP address on which the DNS Forwarder listens.
- cache
Size Number - Cache size in KB.
- conditional
Forwarder List<String>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- enabled Boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - log
Level String - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - policy
Gateway StringDns Forwarder Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyGatewayDnsForwarder resource produces the following output properties:
Look up Existing PolicyGatewayDnsForwarder Resource
Get an existing PolicyGatewayDnsForwarder 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?: PolicyGatewayDnsForwarderState, opts?: CustomResourceOptions): PolicyGatewayDnsForwarder
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cache_size: Optional[float] = None,
conditional_forwarder_zone_paths: Optional[Sequence[str]] = None,
context: Optional[PolicyGatewayDnsForwarderContextArgs] = None,
default_forwarder_zone_path: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
gateway_path: Optional[str] = None,
listener_ip: Optional[str] = None,
log_level: Optional[str] = None,
path: Optional[str] = None,
policy_gateway_dns_forwarder_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyGatewayDnsForwarderTagArgs]] = None) -> PolicyGatewayDnsForwarder
func GetPolicyGatewayDnsForwarder(ctx *Context, name string, id IDInput, state *PolicyGatewayDnsForwarderState, opts ...ResourceOption) (*PolicyGatewayDnsForwarder, error)
public static PolicyGatewayDnsForwarder Get(string name, Input<string> id, PolicyGatewayDnsForwarderState? state, CustomResourceOptions? opts = null)
public static PolicyGatewayDnsForwarder get(String name, Output<String> id, PolicyGatewayDnsForwarderState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyGatewayDnsForwarder get: id: ${id}
- 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.
- Cache
Size double - Cache size in KB.
- Conditional
Forwarder List<string>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- Context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- Default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - Gateway
Path string - Path of Tier0 or Tier1 Gateway.
- Listener
Ip string - IP address on which the DNS Forwarder listens.
- Log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - Path string
- The NSX path of the policy resource.
- Policy
Gateway stringDns Forwarder Id - ID of the resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Gateway Dns Forwarder Tag> - A list of scope + tag pairs to associate with this resource.
- Cache
Size float64 - Cache size in KB.
- Conditional
Forwarder []stringZone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- Context
Policy
Gateway Dns Forwarder Context Args - The context which the object belongs to
- Default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - Gateway
Path string - Path of Tier0 or Tier1 Gateway.
- Listener
Ip string - IP address on which the DNS Forwarder listens.
- Log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - Path string
- The NSX path of the policy resource.
- Policy
Gateway stringDns Forwarder Id - ID of the resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Gateway Dns Forwarder Tag Args - A list of scope + tag pairs to associate with this resource.
- cache
Size Double - Cache size in KB.
- conditional
Forwarder List<String>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- default
Forwarder StringZone Path - Path of Default Forwarder Zone.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- enabled Boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - gateway
Path String - Path of Tier0 or Tier1 Gateway.
- listener
Ip String - IP address on which the DNS Forwarder listens.
- log
Level String - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - path String
- The NSX path of the policy resource.
- policy
Gateway StringDns Forwarder Id - ID of the resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Gateway Dns Forwarder Tag> - A list of scope + tag pairs to associate with this resource.
- cache
Size number - Cache size in KB.
- conditional
Forwarder string[]Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context - The context which the object belongs to
- default
Forwarder stringZone Path - Path of Default Forwarder Zone.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- enabled boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - gateway
Path string - Path of Tier0 or Tier1 Gateway.
- listener
Ip string - IP address on which the DNS Forwarder listens.
- log
Level string - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - path string
- The NSX path of the policy resource.
- policy
Gateway stringDns Forwarder Id - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Gateway Dns Forwarder Tag[] - A list of scope + tag pairs to associate with this resource.
- cache_
size float - Cache size in KB.
- conditional_
forwarder_ Sequence[str]zone_ paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context
Policy
Gateway Dns Forwarder Context Args - The context which the object belongs to
- default_
forwarder_ strzone_ path - Path of Default Forwarder Zone.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- enabled bool
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - gateway_
path str - Path of Tier0 or Tier1 Gateway.
- listener_
ip str - IP address on which the DNS Forwarder listens.
- log_
level str - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - path str
- The NSX path of the policy resource.
- policy_
gateway_ strdns_ forwarder_ id - ID of the resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Policy
Gateway Dns Forwarder Tag Args] - A list of scope + tag pairs to associate with this resource.
- cache
Size Number - Cache size in KB.
- conditional
Forwarder List<String>Zone Paths - List of conditional (FQDN) Zone Paths (Maximum 5 zones).
- context Property Map
- The context which the object belongs to
- default
Forwarder StringZone Path - Path of Default Forwarder Zone.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- enabled Boolean
- Flag to indicate whether this DNS Forwarder is enabled. Defaults to
true
. - gateway
Path String - Path of Tier0 or Tier1 Gateway.
- listener
Ip String - IP address on which the DNS Forwarder listens.
- log
Level String - Log Level for related messages, one of
DEBUG
,INFO
,WARNING
,ERROR
,FATAL
. Defaults toINFO
. - path String
- The NSX path of the policy resource.
- policy
Gateway StringDns Forwarder Id - ID of the resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyGatewayDnsForwarderContext, PolicyGatewayDnsForwarderContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyGatewayDnsForwarderTag, PolicyGatewayDnsForwarderTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.