nsxt.PolicyVtepHaHostSwitchProfile
Explore with Pulumi AI
Create PolicyVtepHaHostSwitchProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyVtepHaHostSwitchProfile(name: string, args: PolicyVtepHaHostSwitchProfileArgs, opts?: CustomResourceOptions);
@overload
def PolicyVtepHaHostSwitchProfile(resource_name: str,
args: PolicyVtepHaHostSwitchProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyVtepHaHostSwitchProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
auto_recovery: Optional[bool] = None,
auto_recovery_initial_wait: Optional[float] = None,
auto_recovery_max_backoff: Optional[float] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
failover_timeout: Optional[float] = None,
nsx_id: Optional[str] = None,
policy_vtep_ha_host_switch_profile_id: Optional[str] = None,
tags: Optional[Sequence[PolicyVtepHaHostSwitchProfileTagArgs]] = None)
func NewPolicyVtepHaHostSwitchProfile(ctx *Context, name string, args PolicyVtepHaHostSwitchProfileArgs, opts ...ResourceOption) (*PolicyVtepHaHostSwitchProfile, error)
public PolicyVtepHaHostSwitchProfile(string name, PolicyVtepHaHostSwitchProfileArgs args, CustomResourceOptions? opts = null)
public PolicyVtepHaHostSwitchProfile(String name, PolicyVtepHaHostSwitchProfileArgs args)
public PolicyVtepHaHostSwitchProfile(String name, PolicyVtepHaHostSwitchProfileArgs args, CustomResourceOptions options)
type: nsxt:PolicyVtepHaHostSwitchProfile
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 PolicyVtepHaHostSwitchProfileArgs
- 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 PolicyVtepHaHostSwitchProfileArgs
- 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 PolicyVtepHaHostSwitchProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyVtepHaHostSwitchProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyVtepHaHostSwitchProfileArgs
- 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 policyVtepHaHostSwitchProfileResource = new Nsxt.PolicyVtepHaHostSwitchProfile("policyVtepHaHostSwitchProfileResource", new()
{
DisplayName = "string",
AutoRecovery = false,
AutoRecoveryInitialWait = 0,
AutoRecoveryMaxBackoff = 0,
Description = "string",
Enabled = false,
FailoverTimeout = 0,
NsxId = "string",
PolicyVtepHaHostSwitchProfileId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyVtepHaHostSwitchProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyVtepHaHostSwitchProfile(ctx, "policyVtepHaHostSwitchProfileResource", &nsxt.PolicyVtepHaHostSwitchProfileArgs{
DisplayName: pulumi.String("string"),
AutoRecovery: pulumi.Bool(false),
AutoRecoveryInitialWait: pulumi.Float64(0),
AutoRecoveryMaxBackoff: pulumi.Float64(0),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
FailoverTimeout: pulumi.Float64(0),
NsxId: pulumi.String("string"),
PolicyVtepHaHostSwitchProfileId: pulumi.String("string"),
Tags: nsxt.PolicyVtepHaHostSwitchProfileTagArray{
&nsxt.PolicyVtepHaHostSwitchProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyVtepHaHostSwitchProfileResource = new PolicyVtepHaHostSwitchProfile("policyVtepHaHostSwitchProfileResource", PolicyVtepHaHostSwitchProfileArgs.builder()
.displayName("string")
.autoRecovery(false)
.autoRecoveryInitialWait(0)
.autoRecoveryMaxBackoff(0)
.description("string")
.enabled(false)
.failoverTimeout(0)
.nsxId("string")
.policyVtepHaHostSwitchProfileId("string")
.tags(PolicyVtepHaHostSwitchProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_vtep_ha_host_switch_profile_resource = nsxt.PolicyVtepHaHostSwitchProfile("policyVtepHaHostSwitchProfileResource",
display_name="string",
auto_recovery=False,
auto_recovery_initial_wait=0,
auto_recovery_max_backoff=0,
description="string",
enabled=False,
failover_timeout=0,
nsx_id="string",
policy_vtep_ha_host_switch_profile_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyVtepHaHostSwitchProfileResource = new nsxt.PolicyVtepHaHostSwitchProfile("policyVtepHaHostSwitchProfileResource", {
displayName: "string",
autoRecovery: false,
autoRecoveryInitialWait: 0,
autoRecoveryMaxBackoff: 0,
description: "string",
enabled: false,
failoverTimeout: 0,
nsxId: "string",
policyVtepHaHostSwitchProfileId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyVtepHaHostSwitchProfile
properties:
autoRecovery: false
autoRecoveryInitialWait: 0
autoRecoveryMaxBackoff: 0
description: string
displayName: string
enabled: false
failoverTimeout: 0
nsxId: string
policyVtepHaHostSwitchProfileId: string
tags:
- scope: string
tag: string
PolicyVtepHaHostSwitchProfile 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 PolicyVtepHaHostSwitchProfile resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Auto
Recovery bool - Enabled status of autonomous recovery option. Default is true.
- Auto
Recovery doubleInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- Auto
Recovery doubleMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- Description string
- Description of the resource.
- Enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- Failover
Timeout double - VTEP High Availability failover timeout (in seconds). Default is 5.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Vtep stringHa Host Switch Profile Id - ID of the resource.
- List<Policy
Vtep Ha Host Switch Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Auto
Recovery bool - Enabled status of autonomous recovery option. Default is true.
- Auto
Recovery float64Initial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- Auto
Recovery float64Max Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- Description string
- Description of the resource.
- Enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- Failover
Timeout float64 - VTEP High Availability failover timeout (in seconds). Default is 5.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Vtep stringHa Host Switch Profile Id - ID of the resource.
- []Policy
Vtep Ha Host Switch Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- auto
Recovery Boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery DoubleInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery DoubleMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description String
- Description of the resource.
- enabled Boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout Double - VTEP High Availability failover timeout (in seconds). Default is 5.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Vtep StringHa Host Switch Profile Id - ID of the resource.
- List<Policy
Vtep Ha Host Switch Profile Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- auto
Recovery boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery numberInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery numberMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description string
- Description of the resource.
- enabled boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout number - VTEP High Availability failover timeout (in seconds). Default is 5.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Vtep stringHa Host Switch Profile Id - ID of the resource.
- Policy
Vtep Ha Host Switch Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- auto_
recovery bool - Enabled status of autonomous recovery option. Default is true.
- auto_
recovery_ floatinitial_ wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto_
recovery_ floatmax_ backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description str
- Description of the resource.
- enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- failover_
timeout float - VTEP High Availability failover timeout (in seconds). Default is 5.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
vtep_ strha_ host_ switch_ profile_ id - ID of the resource.
- Sequence[Policy
Vtep Ha Host Switch Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- auto
Recovery Boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery NumberInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery NumberMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description String
- Description of the resource.
- enabled Boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout Number - VTEP High Availability failover timeout (in seconds). Default is 5.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Vtep StringHa Host Switch Profile 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 PolicyVtepHaHostSwitchProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the policy resource.
- Realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the policy resource.
- Realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the policy resource.
- realized
Id String - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- The NSX path of the policy resource.
- realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- id str
- The provider-assigned unique ID for this managed resource.
- path str
- The NSX path of the policy resource.
- realized_
id str - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the policy resource.
- realized
Id String - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
Look up Existing PolicyVtepHaHostSwitchProfile Resource
Get an existing PolicyVtepHaHostSwitchProfile 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?: PolicyVtepHaHostSwitchProfileState, opts?: CustomResourceOptions): PolicyVtepHaHostSwitchProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_recovery: Optional[bool] = None,
auto_recovery_initial_wait: Optional[float] = None,
auto_recovery_max_backoff: Optional[float] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
failover_timeout: Optional[float] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_vtep_ha_host_switch_profile_id: Optional[str] = None,
realized_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyVtepHaHostSwitchProfileTagArgs]] = None) -> PolicyVtepHaHostSwitchProfile
func GetPolicyVtepHaHostSwitchProfile(ctx *Context, name string, id IDInput, state *PolicyVtepHaHostSwitchProfileState, opts ...ResourceOption) (*PolicyVtepHaHostSwitchProfile, error)
public static PolicyVtepHaHostSwitchProfile Get(string name, Input<string> id, PolicyVtepHaHostSwitchProfileState? state, CustomResourceOptions? opts = null)
public static PolicyVtepHaHostSwitchProfile get(String name, Output<String> id, PolicyVtepHaHostSwitchProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyVtepHaHostSwitchProfile 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.
- Auto
Recovery bool - Enabled status of autonomous recovery option. Default is true.
- Auto
Recovery doubleInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- Auto
Recovery doubleMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- Failover
Timeout double - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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
Vtep stringHa Host Switch Profile Id - ID of the resource.
- Realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - 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
Vtep Ha Host Switch Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Auto
Recovery bool - Enabled status of autonomous recovery option. Default is true.
- Auto
Recovery float64Initial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- Auto
Recovery float64Max Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- Failover
Timeout float64 - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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
Vtep stringHa Host Switch Profile Id - ID of the resource.
- Realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Vtep Ha Host Switch Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- auto
Recovery Boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery DoubleInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery DoubleMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- enabled Boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout Double - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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
Vtep StringHa Host Switch Profile Id - ID of the resource.
- realized
Id String - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - 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
Vtep Ha Host Switch Profile Tag> - A list of scope + tag pairs to associate with this resource.
- auto
Recovery boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery numberInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery numberMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- enabled boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout number - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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
Vtep stringHa Host Switch Profile Id - ID of the resource.
- realized
Id string - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Vtep Ha Host Switch Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- auto_
recovery bool - Enabled status of autonomous recovery option. Default is true.
- auto_
recovery_ floatinitial_ wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto_
recovery_ floatmax_ backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- enabled bool
- Enabled status of VTEP High Availability feature. Default is false.
- failover_
timeout float - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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_
vtep_ strha_ host_ switch_ profile_ id - ID of the resource.
- realized_
id str - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - 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
Vtep Ha Host Switch Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- auto
Recovery Boolean - Enabled status of autonomous recovery option. Default is true.
- auto
Recovery NumberInitial Wait - Start time of autonomous recovery (in seconds). Default is 300.
- auto
Recovery NumberMax Backoff - Maximum backoff time for autonomous recovery (in seconds). Default is 86400.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- enabled Boolean
- Enabled status of VTEP High Availability feature. Default is false.
- failover
Timeout Number - VTEP High Availability failover timeout (in seconds). Default is 5.
- 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
Vtep StringHa Host Switch Profile Id - ID of the resource.
- realized
Id String - Realized ID for the profile. For reference in fabric resources (such as
transport_node
),realized_id
should be used rather thanid
. - 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
PolicyVtepHaHostSwitchProfileTag, PolicyVtepHaHostSwitchProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.