nsxt.DhcpServerProfile
Explore with Pulumi AI
Create DhcpServerProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DhcpServerProfile(name: string, args: DhcpServerProfileArgs, opts?: CustomResourceOptions);
@overload
def DhcpServerProfile(resource_name: str,
args: DhcpServerProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DhcpServerProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
edge_cluster_id: Optional[str] = None,
description: Optional[str] = None,
dhcp_server_profile_id: Optional[str] = None,
display_name: Optional[str] = None,
edge_cluster_member_indexes: Optional[Sequence[float]] = None,
tags: Optional[Sequence[DhcpServerProfileTagArgs]] = None)
func NewDhcpServerProfile(ctx *Context, name string, args DhcpServerProfileArgs, opts ...ResourceOption) (*DhcpServerProfile, error)
public DhcpServerProfile(string name, DhcpServerProfileArgs args, CustomResourceOptions? opts = null)
public DhcpServerProfile(String name, DhcpServerProfileArgs args)
public DhcpServerProfile(String name, DhcpServerProfileArgs args, CustomResourceOptions options)
type: nsxt:DhcpServerProfile
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 DhcpServerProfileArgs
- 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 DhcpServerProfileArgs
- 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 DhcpServerProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DhcpServerProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DhcpServerProfileArgs
- 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 dhcpServerProfileResource = new Nsxt.DhcpServerProfile("dhcpServerProfileResource", new()
{
EdgeClusterId = "string",
Description = "string",
DhcpServerProfileId = "string",
DisplayName = "string",
EdgeClusterMemberIndexes = new[]
{
0,
},
Tags = new[]
{
new Nsxt.Inputs.DhcpServerProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewDhcpServerProfile(ctx, "dhcpServerProfileResource", &nsxt.DhcpServerProfileArgs{
EdgeClusterId: pulumi.String("string"),
Description: pulumi.String("string"),
DhcpServerProfileId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EdgeClusterMemberIndexes: pulumi.Float64Array{
pulumi.Float64(0),
},
Tags: nsxt.DhcpServerProfileTagArray{
&nsxt.DhcpServerProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var dhcpServerProfileResource = new DhcpServerProfile("dhcpServerProfileResource", DhcpServerProfileArgs.builder()
.edgeClusterId("string")
.description("string")
.dhcpServerProfileId("string")
.displayName("string")
.edgeClusterMemberIndexes(0)
.tags(DhcpServerProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
dhcp_server_profile_resource = nsxt.DhcpServerProfile("dhcpServerProfileResource",
edge_cluster_id="string",
description="string",
dhcp_server_profile_id="string",
display_name="string",
edge_cluster_member_indexes=[0],
tags=[{
"scope": "string",
"tag": "string",
}])
const dhcpServerProfileResource = new nsxt.DhcpServerProfile("dhcpServerProfileResource", {
edgeClusterId: "string",
description: "string",
dhcpServerProfileId: "string",
displayName: "string",
edgeClusterMemberIndexes: [0],
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:DhcpServerProfile
properties:
description: string
dhcpServerProfileId: string
displayName: string
edgeClusterId: string
edgeClusterMemberIndexes:
- 0
tags:
- scope: string
tag: string
DhcpServerProfile 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 DhcpServerProfile resource accepts the following input properties:
- Edge
Cluster stringId - Edge cluster uuid.
- Description string
- Description of this resource.
- Dhcp
Server stringProfile Id - ID of the DHCP server profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Edge
Cluster List<double>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- List<Dhcp
Server Profile Tag> - A list of scope + tag pairs to associate with this DHCP profile.
- Edge
Cluster stringId - Edge cluster uuid.
- Description string
- Description of this resource.
- Dhcp
Server stringProfile Id - ID of the DHCP server profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Edge
Cluster []float64Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- []Dhcp
Server Profile Tag Args - A list of scope + tag pairs to associate with this DHCP profile.
- edge
Cluster StringId - Edge cluster uuid.
- description String
- Description of this resource.
- dhcp
Server StringProfile Id - ID of the DHCP server profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- edge
Cluster List<Double>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- List<Dhcp
Server Profile Tag> - A list of scope + tag pairs to associate with this DHCP profile.
- edge
Cluster stringId - Edge cluster uuid.
- description string
- Description of this resource.
- dhcp
Server stringProfile Id - ID of the DHCP server profile.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- edge
Cluster number[]Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- Dhcp
Server Profile Tag[] - A list of scope + tag pairs to associate with this DHCP profile.
- edge_
cluster_ strid - Edge cluster uuid.
- description str
- Description of this resource.
- dhcp_
server_ strprofile_ id - ID of the DHCP server profile.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- edge_
cluster_ Sequence[float]member_ indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- Sequence[Dhcp
Server Profile Tag Args] - A list of scope + tag pairs to associate with this DHCP profile.
- edge
Cluster StringId - Edge cluster uuid.
- description String
- Description of this resource.
- dhcp
Server StringProfile Id - ID of the DHCP server profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- edge
Cluster List<Number>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- List<Property Map>
- A list of scope + tag pairs to associate with this DHCP profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the DhcpServerProfile resource produces the following output properties:
Look up Existing DhcpServerProfile Resource
Get an existing DhcpServerProfile 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?: DhcpServerProfileState, opts?: CustomResourceOptions): DhcpServerProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dhcp_server_profile_id: Optional[str] = None,
display_name: Optional[str] = None,
edge_cluster_id: Optional[str] = None,
edge_cluster_member_indexes: Optional[Sequence[float]] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[DhcpServerProfileTagArgs]] = None) -> DhcpServerProfile
func GetDhcpServerProfile(ctx *Context, name string, id IDInput, state *DhcpServerProfileState, opts ...ResourceOption) (*DhcpServerProfile, error)
public static DhcpServerProfile Get(string name, Input<string> id, DhcpServerProfileState? state, CustomResourceOptions? opts = null)
public static DhcpServerProfile get(String name, Output<String> id, DhcpServerProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:DhcpServerProfile 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
Server stringProfile Id - ID of the DHCP server profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Edge
Cluster stringId - Edge cluster uuid.
- Edge
Cluster List<double>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Dhcp
Server Profile Tag> - A list of scope + tag pairs to associate with this DHCP profile.
- Description string
- Description of this resource.
- Dhcp
Server stringProfile Id - ID of the DHCP server profile.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Edge
Cluster stringId - Edge cluster uuid.
- Edge
Cluster []float64Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Dhcp
Server Profile Tag Args - A list of scope + tag pairs to associate with this DHCP profile.
- description String
- Description of this resource.
- dhcp
Server StringProfile Id - ID of the DHCP server profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- edge
Cluster StringId - Edge cluster uuid.
- edge
Cluster List<Double>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Dhcp
Server Profile Tag> - A list of scope + tag pairs to associate with this DHCP profile.
- description string
- Description of this resource.
- dhcp
Server stringProfile Id - ID of the DHCP server profile.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- edge
Cluster stringId - Edge cluster uuid.
- edge
Cluster number[]Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Dhcp
Server Profile Tag[] - A list of scope + tag pairs to associate with this DHCP profile.
- description str
- Description of this resource.
- dhcp_
server_ strprofile_ id - ID of the DHCP server profile.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- edge_
cluster_ strid - Edge cluster uuid.
- edge_
cluster_ Sequence[float]member_ indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Dhcp
Server Profile Tag Args] - A list of scope + tag pairs to associate with this DHCP profile.
- description String
- Description of this resource.
- dhcp
Server StringProfile Id - ID of the DHCP server profile.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- edge
Cluster StringId - Edge cluster uuid.
- edge
Cluster List<Number>Member Indexes - Up to 2 edge nodes from the given cluster. If none is provided, the NSX will auto-select two edge-nodes from the given edge cluster. If user provides only one edge node, there will be no HA support.
- 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 DHCP profile.
Supporting Types
DhcpServerProfileTag, DhcpServerProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.