nsxt.PolicyDhcpRelay
Explore with Pulumi AI
Create PolicyDhcpRelay Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyDhcpRelay(name: string, args: PolicyDhcpRelayArgs, opts?: CustomResourceOptions);
@overload
def PolicyDhcpRelay(resource_name: str,
args: PolicyDhcpRelayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyDhcpRelay(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
server_addresses: Optional[Sequence[str]] = None,
context: Optional[PolicyDhcpRelayContextArgs] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_dhcp_relay_id: Optional[str] = None,
tags: Optional[Sequence[PolicyDhcpRelayTagArgs]] = None)
func NewPolicyDhcpRelay(ctx *Context, name string, args PolicyDhcpRelayArgs, opts ...ResourceOption) (*PolicyDhcpRelay, error)
public PolicyDhcpRelay(string name, PolicyDhcpRelayArgs args, CustomResourceOptions? opts = null)
public PolicyDhcpRelay(String name, PolicyDhcpRelayArgs args)
public PolicyDhcpRelay(String name, PolicyDhcpRelayArgs args, CustomResourceOptions options)
type: nsxt:PolicyDhcpRelay
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 PolicyDhcpRelayArgs
- 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 PolicyDhcpRelayArgs
- 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 PolicyDhcpRelayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyDhcpRelayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyDhcpRelayArgs
- 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 policyDhcpRelayResource = new Nsxt.PolicyDhcpRelay("policyDhcpRelayResource", new()
{
DisplayName = "string",
ServerAddresses = new[]
{
"string",
},
Context = new Nsxt.Inputs.PolicyDhcpRelayContextArgs
{
ProjectId = "string",
},
Description = "string",
NsxId = "string",
PolicyDhcpRelayId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyDhcpRelayTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyDhcpRelay(ctx, "policyDhcpRelayResource", &nsxt.PolicyDhcpRelayArgs{
DisplayName: pulumi.String("string"),
ServerAddresses: pulumi.StringArray{
pulumi.String("string"),
},
Context: &nsxt.PolicyDhcpRelayContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyDhcpRelayId: pulumi.String("string"),
Tags: nsxt.PolicyDhcpRelayTagArray{
&nsxt.PolicyDhcpRelayTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyDhcpRelayResource = new PolicyDhcpRelay("policyDhcpRelayResource", PolicyDhcpRelayArgs.builder()
.displayName("string")
.serverAddresses("string")
.context(PolicyDhcpRelayContextArgs.builder()
.projectId("string")
.build())
.description("string")
.nsxId("string")
.policyDhcpRelayId("string")
.tags(PolicyDhcpRelayTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_dhcp_relay_resource = nsxt.PolicyDhcpRelay("policyDhcpRelayResource",
display_name="string",
server_addresses=["string"],
context={
"project_id": "string",
},
description="string",
nsx_id="string",
policy_dhcp_relay_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyDhcpRelayResource = new nsxt.PolicyDhcpRelay("policyDhcpRelayResource", {
displayName: "string",
serverAddresses: ["string"],
context: {
projectId: "string",
},
description: "string",
nsxId: "string",
policyDhcpRelayId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyDhcpRelay
properties:
context:
projectId: string
description: string
displayName: string
nsxId: string
policyDhcpRelayId: string
serverAddresses:
- string
tags:
- scope: string
tag: string
PolicyDhcpRelay 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 PolicyDhcpRelay resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Server
Addresses List<string> - List of DHCP server addresses.
- Context
Policy
Dhcp Relay Context - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Dhcp stringRelay Id - ID of the resource.
- List<Policy
Dhcp Relay Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Server
Addresses []string - List of DHCP server addresses.
- Context
Policy
Dhcp Relay Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Dhcp stringRelay Id - ID of the resource.
- []Policy
Dhcp Relay Tag Args - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- server
Addresses List<String> - List of DHCP server addresses.
- context
Policy
Dhcp Relay Context - The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp StringRelay Id - ID of the resource.
- List<Policy
Dhcp Relay Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- server
Addresses string[] - List of DHCP server addresses.
- context
Policy
Dhcp Relay Context - The context which the object belongs to
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp stringRelay Id - ID of the resource.
- Policy
Dhcp Relay Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- server_
addresses Sequence[str] - List of DHCP server addresses.
- context
Policy
Dhcp Relay Context Args - The context which the object belongs to
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
dhcp_ strrelay_ id - ID of the resource.
- Sequence[Policy
Dhcp Relay Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- server
Addresses List<String> - List of DHCP server addresses.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp StringRelay 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 PolicyDhcpRelay resource produces the following output properties:
Look up Existing PolicyDhcpRelay Resource
Get an existing PolicyDhcpRelay 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?: PolicyDhcpRelayState, opts?: CustomResourceOptions): PolicyDhcpRelay
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[PolicyDhcpRelayContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_dhcp_relay_id: Optional[str] = None,
revision: Optional[float] = None,
server_addresses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyDhcpRelayTagArgs]] = None) -> PolicyDhcpRelay
func GetPolicyDhcpRelay(ctx *Context, name string, id IDInput, state *PolicyDhcpRelayState, opts ...ResourceOption) (*PolicyDhcpRelay, error)
public static PolicyDhcpRelay Get(string name, Input<string> id, PolicyDhcpRelayState? state, CustomResourceOptions? opts = null)
public static PolicyDhcpRelay get(String name, Output<String> id, PolicyDhcpRelayState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyDhcpRelay 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.
- Context
Policy
Dhcp Relay Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Dhcp stringRelay 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.
- Server
Addresses List<string> - List of DHCP server addresses.
- List<Policy
Dhcp Relay Tag> - A list of scope + tag pairs to associate with this resource.
- Context
Policy
Dhcp Relay Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Dhcp stringRelay 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.
- Server
Addresses []string - List of DHCP server addresses.
- []Policy
Dhcp Relay Tag Args - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Relay Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Dhcp StringRelay 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.
- server
Addresses List<String> - List of DHCP server addresses.
- List<Policy
Dhcp Relay Tag> - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Relay Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy
Dhcp stringRelay 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.
- server
Addresses string[] - List of DHCP server addresses.
- Policy
Dhcp Relay Tag[] - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Relay Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- policy_
dhcp_ strrelay_ 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.
- server_
addresses Sequence[str] - List of DHCP server addresses.
- Sequence[Policy
Dhcp Relay Tag Args] - A list of scope + tag pairs to associate with this resource.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Dhcp StringRelay 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.
- server
Addresses List<String> - List of DHCP server addresses.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyDhcpRelayContext, PolicyDhcpRelayContextArgs
- 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
PolicyDhcpRelayTag, PolicyDhcpRelayTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.