published on Monday, May 18, 2026 by vmware
published on Monday, May 18, 2026 by vmware
Create PolicyClusterSecurityConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyClusterSecurityConfig(name: string, args: PolicyClusterSecurityConfigArgs, opts?: CustomResourceOptions);@overload
def PolicyClusterSecurityConfig(resource_name: str,
args: PolicyClusterSecurityConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyClusterSecurityConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
dfw_enabled: Optional[bool] = None,
policy_cluster_security_config_id: Optional[str] = None)func NewPolicyClusterSecurityConfig(ctx *Context, name string, args PolicyClusterSecurityConfigArgs, opts ...ResourceOption) (*PolicyClusterSecurityConfig, error)public PolicyClusterSecurityConfig(string name, PolicyClusterSecurityConfigArgs args, CustomResourceOptions? opts = null)
public PolicyClusterSecurityConfig(String name, PolicyClusterSecurityConfigArgs args)
public PolicyClusterSecurityConfig(String name, PolicyClusterSecurityConfigArgs args, CustomResourceOptions options)
type: nsxt:PolicyClusterSecurityConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nsxt_policyclustersecurityconfig" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyClusterSecurityConfigArgs
- 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 PolicyClusterSecurityConfigArgs
- 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 PolicyClusterSecurityConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyClusterSecurityConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyClusterSecurityConfigArgs
- 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 policyClusterSecurityConfigResource = new Nsxt.PolicyClusterSecurityConfig("policyClusterSecurityConfigResource", new()
{
ClusterId = "string",
DfwEnabled = false,
PolicyClusterSecurityConfigId = "string",
});
example, err := nsxt.NewPolicyClusterSecurityConfig(ctx, "policyClusterSecurityConfigResource", &nsxt.PolicyClusterSecurityConfigArgs{
ClusterId: pulumi.String("string"),
DfwEnabled: pulumi.Bool(false),
PolicyClusterSecurityConfigId: pulumi.String("string"),
})
resource "nsxt_policyclustersecurityconfig" "policyClusterSecurityConfigResource" {
cluster_id = "string"
dfw_enabled = false
policy_cluster_security_config_id = "string"
}
var policyClusterSecurityConfigResource = new PolicyClusterSecurityConfig("policyClusterSecurityConfigResource", PolicyClusterSecurityConfigArgs.builder()
.clusterId("string")
.dfwEnabled(false)
.policyClusterSecurityConfigId("string")
.build());
policy_cluster_security_config_resource = nsxt.PolicyClusterSecurityConfig("policyClusterSecurityConfigResource",
cluster_id="string",
dfw_enabled=False,
policy_cluster_security_config_id="string")
const policyClusterSecurityConfigResource = new nsxt.PolicyClusterSecurityConfig("policyClusterSecurityConfigResource", {
clusterId: "string",
dfwEnabled: false,
policyClusterSecurityConfigId: "string",
});
type: nsxt:PolicyClusterSecurityConfig
properties:
clusterId: string
dfwEnabled: false
policyClusterSecurityConfigId: string
PolicyClusterSecurityConfig 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 PolicyClusterSecurityConfig resource accepts the following input properties:
- Cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - Dfw
Enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- Policy
Cluster stringSecurity Config Id - The cluster ID.
- Cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - Dfw
Enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- Policy
Cluster stringSecurity Config Id - The cluster ID.
- cluster_
id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - dfw_
enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- policy_
cluster_ stringsecurity_ config_ id - The cluster ID.
- cluster
Id String - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - dfw
Enabled Boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- policy
Cluster StringSecurity Config Id - The cluster ID.
- cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - dfw
Enabled boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- policy
Cluster stringSecurity Config Id - The cluster ID.
- cluster_
id str - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - dfw_
enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- policy_
cluster_ strsecurity_ config_ id - The cluster ID.
- cluster
Id String - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - dfw
Enabled Boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- policy
Cluster StringSecurity Config Id - The cluster ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyClusterSecurityConfig resource produces the following output properties:
- Description string
- The description of the cluster security configuration.
- Display
Name string - The display name of the cluster security configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the cluster security configuration.
- Revision double
- The revision number of the cluster security configuration.
- Description string
- The description of the cluster security configuration.
- Display
Name string - The display name of the cluster security configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- The NSX path of the cluster security configuration.
- Revision float64
- The revision number of the cluster security configuration.
- description string
- The description of the cluster security configuration.
- display_
name string - The display name of the cluster security configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- The NSX path of the cluster security configuration.
- revision number
- The revision number of the cluster security configuration.
- description String
- The description of the cluster security configuration.
- display
Name String - The display name of the cluster security configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the cluster security configuration.
- revision Double
- The revision number of the cluster security configuration.
- description string
- The description of the cluster security configuration.
- display
Name string - The display name of the cluster security configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- The NSX path of the cluster security configuration.
- revision number
- The revision number of the cluster security configuration.
- description str
- The description of the cluster security configuration.
- display_
name str - The display name of the cluster security configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- path str
- The NSX path of the cluster security configuration.
- revision float
- The revision number of the cluster security configuration.
- description String
- The description of the cluster security configuration.
- display
Name String - The display name of the cluster security configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- The NSX path of the cluster security configuration.
- revision Number
- The revision number of the cluster security configuration.
Look up Existing PolicyClusterSecurityConfig Resource
Get an existing PolicyClusterSecurityConfig 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?: PolicyClusterSecurityConfigState, opts?: CustomResourceOptions): PolicyClusterSecurityConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
dfw_enabled: Optional[bool] = None,
display_name: Optional[str] = None,
path: Optional[str] = None,
policy_cluster_security_config_id: Optional[str] = None,
revision: Optional[float] = None) -> PolicyClusterSecurityConfigfunc GetPolicyClusterSecurityConfig(ctx *Context, name string, id IDInput, state *PolicyClusterSecurityConfigState, opts ...ResourceOption) (*PolicyClusterSecurityConfig, error)public static PolicyClusterSecurityConfig Get(string name, Input<string> id, PolicyClusterSecurityConfigState? state, CustomResourceOptions? opts = null)public static PolicyClusterSecurityConfig get(String name, Output<String> id, PolicyClusterSecurityConfigState state, CustomResourceOptions options)resources: _: type: nsxt:PolicyClusterSecurityConfig get: id: ${id}import {
to = nsxt_policyclustersecurityconfig.example
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.
- Cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - Description string
- The description of the cluster security configuration.
- Dfw
Enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- Display
Name string - The display name of the cluster security configuration.
- Path string
- The NSX path of the cluster security configuration.
- Policy
Cluster stringSecurity Config Id - The cluster ID.
- Revision double
- The revision number of the cluster security configuration.
- Cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - Description string
- The description of the cluster security configuration.
- Dfw
Enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- Display
Name string - The display name of the cluster security configuration.
- Path string
- The NSX path of the cluster security configuration.
- Policy
Cluster stringSecurity Config Id - The cluster ID.
- Revision float64
- The revision number of the cluster security configuration.
- cluster_
id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - description string
- The description of the cluster security configuration.
- dfw_
enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- display_
name string - The display name of the cluster security configuration.
- path string
- The NSX path of the cluster security configuration.
- policy_
cluster_ stringsecurity_ config_ id - The cluster ID.
- revision number
- The revision number of the cluster security configuration.
- cluster
Id String - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - description String
- The description of the cluster security configuration.
- dfw
Enabled Boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- display
Name String - The display name of the cluster security configuration.
- path String
- The NSX path of the cluster security configuration.
- policy
Cluster StringSecurity Config Id - The cluster ID.
- revision Double
- The revision number of the cluster security configuration.
- cluster
Id string - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - description string
- The description of the cluster security configuration.
- dfw
Enabled boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- display
Name string - The display name of the cluster security configuration.
- path string
- The NSX path of the cluster security configuration.
- policy
Cluster stringSecurity Config Id - The cluster ID.
- revision number
- The revision number of the cluster security configuration.
- cluster_
id str - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - description str
- The description of the cluster security configuration.
- dfw_
enabled bool - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- display_
name str - The display name of the cluster security configuration.
- path str
- The NSX path of the cluster security configuration.
- policy_
cluster_ strsecurity_ config_ id - The cluster ID.
- revision float
- The revision number of the cluster security configuration.
- cluster
Id String - The cluster external ID (e.g., "uuid:domain-c20"). This is typically obtained from the
nsxt.getComputeCollectiondata source'sidattribute. Changing this forces a new resource to be created. - description String
- The description of the cluster security configuration.
- dfw
Enabled Boolean - Enable or disable Distributed Firewall (DFW) on the cluster. DFW must be enabled before IDPS can be configured. Defaults to the current state if not specified.
- display
Name String - The display name of the cluster security configuration.
- path String
- The NSX path of the cluster security configuration.
- policy
Cluster StringSecurity Config Id - The cluster ID.
- revision Number
- The revision number of the cluster security configuration.
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxtTerraform Provider.
published on Monday, May 18, 2026 by vmware