nsxt.PolicyLbGenericPersistenceProfile
Explore with Pulumi AI
Create PolicyLbGenericPersistenceProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyLbGenericPersistenceProfile(name: string, args: PolicyLbGenericPersistenceProfileArgs, opts?: CustomResourceOptions);
@overload
def PolicyLbGenericPersistenceProfile(resource_name: str,
args: PolicyLbGenericPersistenceProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyLbGenericPersistenceProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
ha_persistence_mirroring_enabled: Optional[bool] = None,
nsx_id: Optional[str] = None,
persistence_shared: Optional[bool] = None,
policy_lb_generic_persistence_profile_id: Optional[str] = None,
tags: Optional[Sequence[PolicyLbGenericPersistenceProfileTagArgs]] = None,
timeout: Optional[float] = None)
func NewPolicyLbGenericPersistenceProfile(ctx *Context, name string, args PolicyLbGenericPersistenceProfileArgs, opts ...ResourceOption) (*PolicyLbGenericPersistenceProfile, error)
public PolicyLbGenericPersistenceProfile(string name, PolicyLbGenericPersistenceProfileArgs args, CustomResourceOptions? opts = null)
public PolicyLbGenericPersistenceProfile(String name, PolicyLbGenericPersistenceProfileArgs args)
public PolicyLbGenericPersistenceProfile(String name, PolicyLbGenericPersistenceProfileArgs args, CustomResourceOptions options)
type: nsxt:PolicyLbGenericPersistenceProfile
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 PolicyLbGenericPersistenceProfileArgs
- 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 PolicyLbGenericPersistenceProfileArgs
- 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 PolicyLbGenericPersistenceProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyLbGenericPersistenceProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyLbGenericPersistenceProfileArgs
- 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 policyLbGenericPersistenceProfileResource = new Nsxt.PolicyLbGenericPersistenceProfile("policyLbGenericPersistenceProfileResource", new()
{
DisplayName = "string",
Description = "string",
HaPersistenceMirroringEnabled = false,
NsxId = "string",
PersistenceShared = false,
PolicyLbGenericPersistenceProfileId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyLbGenericPersistenceProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
Timeout = 0,
});
example, err := nsxt.NewPolicyLbGenericPersistenceProfile(ctx, "policyLbGenericPersistenceProfileResource", &nsxt.PolicyLbGenericPersistenceProfileArgs{
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
HaPersistenceMirroringEnabled: pulumi.Bool(false),
NsxId: pulumi.String("string"),
PersistenceShared: pulumi.Bool(false),
PolicyLbGenericPersistenceProfileId: pulumi.String("string"),
Tags: nsxt.PolicyLbGenericPersistenceProfileTagArray{
&nsxt.PolicyLbGenericPersistenceProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
Timeout: pulumi.Float64(0),
})
var policyLbGenericPersistenceProfileResource = new PolicyLbGenericPersistenceProfile("policyLbGenericPersistenceProfileResource", PolicyLbGenericPersistenceProfileArgs.builder()
.displayName("string")
.description("string")
.haPersistenceMirroringEnabled(false)
.nsxId("string")
.persistenceShared(false)
.policyLbGenericPersistenceProfileId("string")
.tags(PolicyLbGenericPersistenceProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.timeout(0)
.build());
policy_lb_generic_persistence_profile_resource = nsxt.PolicyLbGenericPersistenceProfile("policyLbGenericPersistenceProfileResource",
display_name="string",
description="string",
ha_persistence_mirroring_enabled=False,
nsx_id="string",
persistence_shared=False,
policy_lb_generic_persistence_profile_id="string",
tags=[{
"scope": "string",
"tag": "string",
}],
timeout=0)
const policyLbGenericPersistenceProfileResource = new nsxt.PolicyLbGenericPersistenceProfile("policyLbGenericPersistenceProfileResource", {
displayName: "string",
description: "string",
haPersistenceMirroringEnabled: false,
nsxId: "string",
persistenceShared: false,
policyLbGenericPersistenceProfileId: "string",
tags: [{
scope: "string",
tag: "string",
}],
timeout: 0,
});
type: nsxt:PolicyLbGenericPersistenceProfile
properties:
description: string
displayName: string
haPersistenceMirroringEnabled: false
nsxId: string
persistenceShared: false
policyLbGenericPersistenceProfileId: string
tags:
- scope: string
tag: string
timeout: 0
PolicyLbGenericPersistenceProfile 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 PolicyLbGenericPersistenceProfile resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Ha
Persistence boolMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- Policy
Lb stringGeneric Persistence Profile Id - ID of the resource.
- List<Policy
Lb Generic Persistence Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Timeout double
- Expiration time once all connections are complete. Default is 300.
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Ha
Persistence boolMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- Policy
Lb stringGeneric Persistence Profile Id - ID of the resource.
- []Policy
Lb Generic Persistence Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- Timeout float64
- Expiration time once all connections are complete. Default is 300.
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- ha
Persistence BooleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb StringGeneric Persistence Profile Id - ID of the resource.
- List<Policy
Lb Generic Persistence Profile Tag> - A list of scope + tag pairs to associate with this resource.
- timeout Double
- Expiration time once all connections are complete. Default is 300.
- display
Name string - Display name of the resource.
- description string
- Description of the resource.
- ha
Persistence booleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb stringGeneric Persistence Profile Id - ID of the resource.
- Policy
Lb Generic Persistence Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- timeout number
- Expiration time once all connections are complete. Default is 300.
- display_
name str - Display name of the resource.
- description str
- Description of the resource.
- ha_
persistence_ boolmirroring_ enabled - If enabled, persistence entries are syncronized to HA peer.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy_
lb_ strgeneric_ persistence_ profile_ id - ID of the resource.
- Sequence[Policy
Lb Generic Persistence Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- timeout float
- Expiration time once all connections are complete. Default is 300.
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- ha
Persistence BooleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb StringGeneric Persistence Profile Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- timeout Number
- Expiration time once all connections are complete. Default is 300.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyLbGenericPersistenceProfile resource produces the following output properties:
Look up Existing PolicyLbGenericPersistenceProfile Resource
Get an existing PolicyLbGenericPersistenceProfile 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?: PolicyLbGenericPersistenceProfileState, opts?: CustomResourceOptions): PolicyLbGenericPersistenceProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ha_persistence_mirroring_enabled: Optional[bool] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
persistence_shared: Optional[bool] = None,
policy_lb_generic_persistence_profile_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyLbGenericPersistenceProfileTagArgs]] = None,
timeout: Optional[float] = None) -> PolicyLbGenericPersistenceProfile
func GetPolicyLbGenericPersistenceProfile(ctx *Context, name string, id IDInput, state *PolicyLbGenericPersistenceProfileState, opts ...ResourceOption) (*PolicyLbGenericPersistenceProfile, error)
public static PolicyLbGenericPersistenceProfile Get(string name, Input<string> id, PolicyLbGenericPersistenceProfileState? state, CustomResourceOptions? opts = null)
public static PolicyLbGenericPersistenceProfile get(String name, Output<String> id, PolicyLbGenericPersistenceProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyLbGenericPersistenceProfile 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 the resource.
- Display
Name string - Display name of the resource.
- Ha
Persistence boolMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- Policy
Lb stringGeneric Persistence Profile 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.
- List<Policy
Lb Generic Persistence Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Timeout double
- Expiration time once all connections are complete. Default is 300.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Ha
Persistence boolMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- Policy
Lb stringGeneric Persistence Profile 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.
- []Policy
Lb Generic Persistence Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- Timeout float64
- Expiration time once all connections are complete. Default is 300.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- ha
Persistence BooleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- Boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb StringGeneric Persistence Profile 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.
- List<Policy
Lb Generic Persistence Profile Tag> - A list of scope + tag pairs to associate with this resource.
- timeout Double
- Expiration time once all connections are complete. Default is 300.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- ha
Persistence booleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb stringGeneric Persistence Profile 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.
- Policy
Lb Generic Persistence Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- timeout number
- Expiration time once all connections are complete. Default is 300.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- ha_
persistence_ boolmirroring_ enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- bool
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy_
lb_ strgeneric_ persistence_ profile_ 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.
- Sequence[Policy
Lb Generic Persistence Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- timeout float
- Expiration time once all connections are complete. Default is 300.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- ha
Persistence BooleanMirroring Enabled - If enabled, persistence entries are syncronized to HA peer.
- 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.
- Boolean
- If enabled, all virtual servers with this profile will share the same persistence mechanism.
- policy
Lb StringGeneric Persistence Profile 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.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- timeout Number
- Expiration time once all connections are complete. Default is 300.
Supporting Types
PolicyLbGenericPersistenceProfileTag, PolicyLbGenericPersistenceProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.