nsxt.DhcpRelayService
Explore with Pulumi AI
Create DhcpRelayService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DhcpRelayService(name: string, args: DhcpRelayServiceArgs, opts?: CustomResourceOptions);
@overload
def DhcpRelayService(resource_name: str,
args: DhcpRelayServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DhcpRelayService(resource_name: str,
opts: Optional[ResourceOptions] = None,
dhcp_relay_profile_id: Optional[str] = None,
description: Optional[str] = None,
dhcp_relay_service_id: Optional[str] = None,
display_name: Optional[str] = None,
tags: Optional[Sequence[DhcpRelayServiceTagArgs]] = None)
func NewDhcpRelayService(ctx *Context, name string, args DhcpRelayServiceArgs, opts ...ResourceOption) (*DhcpRelayService, error)
public DhcpRelayService(string name, DhcpRelayServiceArgs args, CustomResourceOptions? opts = null)
public DhcpRelayService(String name, DhcpRelayServiceArgs args)
public DhcpRelayService(String name, DhcpRelayServiceArgs args, CustomResourceOptions options)
type: nsxt:DhcpRelayService
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 DhcpRelayServiceArgs
- 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 DhcpRelayServiceArgs
- 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 DhcpRelayServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DhcpRelayServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DhcpRelayServiceArgs
- 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 dhcpRelayServiceResource = new Nsxt.DhcpRelayService("dhcpRelayServiceResource", new()
{
DhcpRelayProfileId = "string",
Description = "string",
DhcpRelayServiceId = "string",
DisplayName = "string",
Tags = new[]
{
new Nsxt.Inputs.DhcpRelayServiceTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewDhcpRelayService(ctx, "dhcpRelayServiceResource", &nsxt.DhcpRelayServiceArgs{
DhcpRelayProfileId: pulumi.String("string"),
Description: pulumi.String("string"),
DhcpRelayServiceId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Tags: nsxt.DhcpRelayServiceTagArray{
&nsxt.DhcpRelayServiceTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var dhcpRelayServiceResource = new DhcpRelayService("dhcpRelayServiceResource", DhcpRelayServiceArgs.builder()
.dhcpRelayProfileId("string")
.description("string")
.dhcpRelayServiceId("string")
.displayName("string")
.tags(DhcpRelayServiceTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
dhcp_relay_service_resource = nsxt.DhcpRelayService("dhcpRelayServiceResource",
dhcp_relay_profile_id="string",
description="string",
dhcp_relay_service_id="string",
display_name="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const dhcpRelayServiceResource = new nsxt.DhcpRelayService("dhcpRelayServiceResource", {
dhcpRelayProfileId: "string",
description: "string",
dhcpRelayServiceId: "string",
displayName: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:DhcpRelayService
properties:
description: string
dhcpRelayProfileId: string
dhcpRelayServiceId: string
displayName: string
tags:
- scope: string
tag: string
DhcpRelayService 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 DhcpRelayService resource accepts the following input properties:
- Dhcp
Relay stringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- Description string
- Description of this resource.
- Dhcp
Relay stringService Id - ID of the DHCP relay service.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- List<Dhcp
Relay Service Tag> - A list of scope + tag pairs to associate with this dhcp_relay_service.
- Dhcp
Relay stringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- Description string
- Description of this resource.
- Dhcp
Relay stringService Id - ID of the DHCP relay service.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- []Dhcp
Relay Service Tag Args - A list of scope + tag pairs to associate with this dhcp_relay_service.
- dhcp
Relay StringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- description String
- Description of this resource.
- dhcp
Relay StringService Id - ID of the DHCP relay service.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- List<Dhcp
Relay Service Tag> - A list of scope + tag pairs to associate with this dhcp_relay_service.
- dhcp
Relay stringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- description string
- Description of this resource.
- dhcp
Relay stringService Id - ID of the DHCP relay service.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- Dhcp
Relay Service Tag[] - A list of scope + tag pairs to associate with this dhcp_relay_service.
- dhcp_
relay_ strprofile_ id - DHCP relay profile referenced by the DHCP relay service.
- description str
- Description of this resource.
- dhcp_
relay_ strservice_ id - ID of the DHCP relay service.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- Sequence[Dhcp
Relay Service Tag Args] - A list of scope + tag pairs to associate with this dhcp_relay_service.
- dhcp
Relay StringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- description String
- Description of this resource.
- dhcp
Relay StringService Id - ID of the DHCP relay service.
- 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_service.
Outputs
All input properties are implicitly available as output properties. Additionally, the DhcpRelayService resource produces the following output properties:
Look up Existing DhcpRelayService Resource
Get an existing DhcpRelayService 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?: DhcpRelayServiceState, opts?: CustomResourceOptions): DhcpRelayService
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dhcp_relay_profile_id: Optional[str] = None,
dhcp_relay_service_id: Optional[str] = None,
display_name: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[DhcpRelayServiceTagArgs]] = None) -> DhcpRelayService
func GetDhcpRelayService(ctx *Context, name string, id IDInput, state *DhcpRelayServiceState, opts ...ResourceOption) (*DhcpRelayService, error)
public static DhcpRelayService Get(string name, Input<string> id, DhcpRelayServiceState? state, CustomResourceOptions? opts = null)
public static DhcpRelayService get(String name, Output<String> id, DhcpRelayServiceState state, CustomResourceOptions options)
resources: _: type: nsxt:DhcpRelayService 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 - DHCP relay profile referenced by the DHCP relay service.
- Dhcp
Relay stringService Id - ID of the DHCP relay service.
- 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.
- List<Dhcp
Relay Service Tag> - A list of scope + tag pairs to associate with this dhcp_relay_service.
- Description string
- Description of this resource.
- Dhcp
Relay stringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- Dhcp
Relay stringService Id - ID of the DHCP relay service.
- 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.
- []Dhcp
Relay Service Tag Args - A list of scope + tag pairs to associate with this dhcp_relay_service.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- dhcp
Relay StringService Id - ID of the DHCP relay service.
- 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.
- List<Dhcp
Relay Service Tag> - A list of scope + tag pairs to associate with this dhcp_relay_service.
- description string
- Description of this resource.
- dhcp
Relay stringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- dhcp
Relay stringService Id - ID of the DHCP relay service.
- 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.
- Dhcp
Relay Service Tag[] - A list of scope + tag pairs to associate with this dhcp_relay_service.
- description str
- Description of this resource.
- dhcp_
relay_ strprofile_ id - DHCP relay profile referenced by the DHCP relay service.
- dhcp_
relay_ strservice_ id - ID of the DHCP relay service.
- 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.
- Sequence[Dhcp
Relay Service Tag Args] - A list of scope + tag pairs to associate with this dhcp_relay_service.
- description String
- Description of this resource.
- dhcp
Relay StringProfile Id - DHCP relay profile referenced by the DHCP relay service.
- dhcp
Relay StringService Id - ID of the DHCP relay service.
- 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.
- List<Property Map>
- A list of scope + tag pairs to associate with this dhcp_relay_service.
Supporting Types
DhcpRelayServiceTag, DhcpRelayServiceTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.