nsxt.DhcpRelayProfile
Explore with Pulumi AI
Create DhcpRelayProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DhcpRelayProfile(name: string, args: DhcpRelayProfileArgs, opts?: CustomResourceOptions);
@overload
def DhcpRelayProfile(resource_name: str,
args: DhcpRelayProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DhcpRelayProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
server_addresses: Optional[Sequence[str]] = None,
description: Optional[str] = None,
dhcp_relay_profile_id: Optional[str] = None,
display_name: Optional[str] = None,
tags: Optional[Sequence[DhcpRelayProfileTagArgs]] = None)
func NewDhcpRelayProfile(ctx *Context, name string, args DhcpRelayProfileArgs, opts ...ResourceOption) (*DhcpRelayProfile, error)
public DhcpRelayProfile(string name, DhcpRelayProfileArgs args, CustomResourceOptions? opts = null)
public DhcpRelayProfile(String name, DhcpRelayProfileArgs args)
public DhcpRelayProfile(String name, DhcpRelayProfileArgs args, CustomResourceOptions options)
type: nsxt:DhcpRelayProfile
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 DhcpRelayProfileArgs
- 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 DhcpRelayProfileArgs
- 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 DhcpRelayProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DhcpRelayProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DhcpRelayProfileArgs
- 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 dhcpRelayProfileResource = new Nsxt.DhcpRelayProfile("dhcpRelayProfileResource", new()
{
ServerAddresses = new[]
{
"string",
},
Description = "string",
DhcpRelayProfileId = "string",
DisplayName = "string",
Tags = new[]
{
new Nsxt.Inputs.DhcpRelayProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewDhcpRelayProfile(ctx, "dhcpRelayProfileResource", &nsxt.DhcpRelayProfileArgs{
ServerAddresses: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
DhcpRelayProfileId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Tags: nsxt.DhcpRelayProfileTagArray{
&nsxt.DhcpRelayProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var dhcpRelayProfileResource = new DhcpRelayProfile("dhcpRelayProfileResource", DhcpRelayProfileArgs.builder()
.serverAddresses("string")
.description("string")
.dhcpRelayProfileId("string")
.displayName("string")
.tags(DhcpRelayProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
dhcp_relay_profile_resource = nsxt.DhcpRelayProfile("dhcpRelayProfileResource",
server_addresses=["string"],
description="string",
dhcp_relay_profile_id="string",
display_name="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const dhcpRelayProfileResource = new nsxt.DhcpRelayProfile("dhcpRelayProfileResource", {
serverAddresses: ["string"],
description: "string",
dhcpRelayProfileId: "string",
displayName: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:DhcpRelayProfile
properties:
description: string
dhcpRelayProfileId: string
displayName: string
serverAddresses:
- string
tags:
- scope: string
tag: string
DhcpRelayProfile 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 DhcpRelayProfile resource accepts the following input properties:
- Server
Addresses List<string> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- Description string
- Description of this resource.
- Dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- List<Dhcp
Relay Profile Tag> - A list of scope + tag pairs to associate with this DHCP relay profile.
- Server
Addresses []string - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- Description string
- Description of this resource.
- Dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- []Dhcp
Relay Profile Tag Args - A list of scope + tag pairs to associate with this DHCP relay profile.
- server
Addresses List<String> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - ID of the DHCP relay profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- List<Dhcp
Relay Profile Tag> - A list of scope + tag pairs to associate with this DHCP relay profile.
- server
Addresses string[] - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- description string
- Description of this resource.
- dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- Dhcp
Relay Profile Tag[] - A list of scope + tag pairs to associate with this DHCP relay profile.
- server_
addresses Sequence[str] - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- description str
- Description of this resource.
- dhcp_
relay_ strprofile_ id - ID of the DHCP relay profile.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- Sequence[Dhcp
Relay Profile Tag Args] - A list of scope + tag pairs to associate with this DHCP relay profile.
- server
Addresses List<String> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - ID of the DHCP relay profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- List<Property Map>
- A list of scope + tag pairs to associate with this DHCP relay profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the DhcpRelayProfile resource produces the following output properties:
Look up Existing DhcpRelayProfile Resource
Get an existing DhcpRelayProfile 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?: DhcpRelayProfileState, opts?: CustomResourceOptions): DhcpRelayProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dhcp_relay_profile_id: Optional[str] = None,
display_name: Optional[str] = None,
revision: Optional[float] = None,
server_addresses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[DhcpRelayProfileTagArgs]] = None) -> DhcpRelayProfile
func GetDhcpRelayProfile(ctx *Context, name string, id IDInput, state *DhcpRelayProfileState, opts ...ResourceOption) (*DhcpRelayProfile, error)
public static DhcpRelayProfile Get(string name, Input<string> id, DhcpRelayProfileState? state, CustomResourceOptions? opts = null)
public static DhcpRelayProfile get(String name, Output<String> id, DhcpRelayProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:DhcpRelayProfile 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.
- Description string
- Description of this resource.
- Dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- 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> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- List<Dhcp
Relay Profile Tag> - A list of scope + tag pairs to associate with this DHCP relay profile.
- Description string
- Description of this resource.
- Dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- 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 - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- []Dhcp
Relay Profile Tag Args - A list of scope + tag pairs to associate with this DHCP relay profile.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - ID of the DHCP relay profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- 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> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- List<Dhcp
Relay Profile Tag> - A list of scope + tag pairs to associate with this DHCP relay profile.
- description string
- Description of this resource.
- dhcp
Relay stringProfile Id - ID of the DHCP relay profile.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- 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[] - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- Dhcp
Relay Profile Tag[] - A list of scope + tag pairs to associate with this DHCP relay profile.
- description str
- Description of this resource.
- dhcp_
relay_ strprofile_ id - ID of the DHCP relay profile.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- 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] - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- Sequence[Dhcp
Relay Profile Tag Args] - A list of scope + tag pairs to associate with this DHCP relay profile.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - ID of the DHCP relay profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- 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> - IP addresses of the DHCP relay servers. Maximum allowed amount is 2.
- List<Property Map>
- A list of scope + tag pairs to associate with this DHCP relay profile.
Supporting Types
DhcpRelayProfileTag, DhcpRelayProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.