nsxt.PolicyComputeSubCluster
Explore with Pulumi AI
Create PolicyComputeSubCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyComputeSubCluster(name: string, args: PolicyComputeSubClusterArgs, opts?: CustomResourceOptions);
@overload
def PolicyComputeSubCluster(resource_name: str,
args: PolicyComputeSubClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyComputeSubCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
compute_collection_id: Optional[str] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
discovered_node_ids: Optional[Sequence[str]] = None,
enforcement_point: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_compute_sub_cluster_id: Optional[str] = None,
site_path: Optional[str] = None,
tags: Optional[Sequence[PolicyComputeSubClusterTagArgs]] = None)
func NewPolicyComputeSubCluster(ctx *Context, name string, args PolicyComputeSubClusterArgs, opts ...ResourceOption) (*PolicyComputeSubCluster, error)
public PolicyComputeSubCluster(string name, PolicyComputeSubClusterArgs args, CustomResourceOptions? opts = null)
public PolicyComputeSubCluster(String name, PolicyComputeSubClusterArgs args)
public PolicyComputeSubCluster(String name, PolicyComputeSubClusterArgs args, CustomResourceOptions options)
type: nsxt:PolicyComputeSubCluster
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 PolicyComputeSubClusterArgs
- 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 PolicyComputeSubClusterArgs
- 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 PolicyComputeSubClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyComputeSubClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyComputeSubClusterArgs
- 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 policyComputeSubClusterResource = new Nsxt.PolicyComputeSubCluster("policyComputeSubClusterResource", new()
{
ComputeCollectionId = "string",
DisplayName = "string",
Description = "string",
DiscoveredNodeIds = new[]
{
"string",
},
EnforcementPoint = "string",
NsxId = "string",
PolicyComputeSubClusterId = "string",
SitePath = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyComputeSubClusterTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyComputeSubCluster(ctx, "policyComputeSubClusterResource", &nsxt.PolicyComputeSubClusterArgs{
ComputeCollectionId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
DiscoveredNodeIds: pulumi.StringArray{
pulumi.String("string"),
},
EnforcementPoint: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyComputeSubClusterId: pulumi.String("string"),
SitePath: pulumi.String("string"),
Tags: nsxt.PolicyComputeSubClusterTagArray{
&nsxt.PolicyComputeSubClusterTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyComputeSubClusterResource = new PolicyComputeSubCluster("policyComputeSubClusterResource", PolicyComputeSubClusterArgs.builder()
.computeCollectionId("string")
.displayName("string")
.description("string")
.discoveredNodeIds("string")
.enforcementPoint("string")
.nsxId("string")
.policyComputeSubClusterId("string")
.sitePath("string")
.tags(PolicyComputeSubClusterTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_compute_sub_cluster_resource = nsxt.PolicyComputeSubCluster("policyComputeSubClusterResource",
compute_collection_id="string",
display_name="string",
description="string",
discovered_node_ids=["string"],
enforcement_point="string",
nsx_id="string",
policy_compute_sub_cluster_id="string",
site_path="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyComputeSubClusterResource = new nsxt.PolicyComputeSubCluster("policyComputeSubClusterResource", {
computeCollectionId: "string",
displayName: "string",
description: "string",
discoveredNodeIds: ["string"],
enforcementPoint: "string",
nsxId: "string",
policyComputeSubClusterId: "string",
sitePath: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyComputeSubCluster
properties:
computeCollectionId: string
description: string
discoveredNodeIds:
- string
displayName: string
enforcementPoint: string
nsxId: string
policyComputeSubClusterId: string
sitePath: string
tags:
- scope: string
tag: string
PolicyComputeSubCluster 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 PolicyComputeSubCluster resource accepts the following input properties:
- Compute
Collection stringId - ID of compute collection under which sub-cluster is created
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Discovered
Node List<string>Ids - Discovered node IDs under this subcluster
- Enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - Nsx
Id string - NSX ID for this resource
- Policy
Compute stringSub Cluster Id - ID of the resource.
- Site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - List<Policy
Compute Sub Cluster Tag> - A list of scope + tag pairs to associate with this resource.
- Compute
Collection stringId - ID of compute collection under which sub-cluster is created
- Display
Name string - Display name of the resource.
- Description string
- Description of the resource.
- Discovered
Node []stringIds - Discovered node IDs under this subcluster
- Enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - Nsx
Id string - NSX ID for this resource
- Policy
Compute stringSub Cluster Id - ID of the resource.
- Site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - []Policy
Compute Sub Cluster Tag Args - A list of scope + tag pairs to associate with this resource.
- compute
Collection StringId - ID of compute collection under which sub-cluster is created
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- discovered
Node List<String>Ids - Discovered node IDs under this subcluster
- enforcement
Point String - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id String - NSX ID for this resource
- policy
Compute StringSub Cluster Id - ID of the resource.
- site
Path String - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - List<Policy
Compute Sub Cluster Tag> - A list of scope + tag pairs to associate with this resource.
- compute
Collection stringId - ID of compute collection under which sub-cluster is created
- display
Name string - Display name of the resource.
- description string
- Description of the resource.
- discovered
Node string[]Ids - Discovered node IDs under this subcluster
- enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id string - NSX ID for this resource
- policy
Compute stringSub Cluster Id - ID of the resource.
- site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - Policy
Compute Sub Cluster Tag[] - A list of scope + tag pairs to associate with this resource.
- compute_
collection_ strid - ID of compute collection under which sub-cluster is created
- display_
name str - Display name of the resource.
- description str
- Description of the resource.
- discovered_
node_ Sequence[str]ids - Discovered node IDs under this subcluster
- enforcement_
point str - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx_
id str - NSX ID for this resource
- policy_
compute_ strsub_ cluster_ id - ID of the resource.
- site_
path str - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - Sequence[Policy
Compute Sub Cluster Tag Args] - A list of scope + tag pairs to associate with this resource.
- compute
Collection StringId - ID of compute collection under which sub-cluster is created
- display
Name String - Display name of the resource.
- description String
- Description of the resource.
- discovered
Node List<String>Ids - Discovered node IDs under this subcluster
- enforcement
Point String - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id String - NSX ID for this resource
- policy
Compute StringSub Cluster Id - ID of the resource.
- site
Path String - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - 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 PolicyComputeSubCluster resource produces the following output properties:
Look up Existing PolicyComputeSubCluster Resource
Get an existing PolicyComputeSubCluster 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?: PolicyComputeSubClusterState, opts?: CustomResourceOptions): PolicyComputeSubCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compute_collection_id: Optional[str] = None,
description: Optional[str] = None,
discovered_node_ids: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
enforcement_point: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_compute_sub_cluster_id: Optional[str] = None,
revision: Optional[float] = None,
site_path: Optional[str] = None,
tags: Optional[Sequence[PolicyComputeSubClusterTagArgs]] = None) -> PolicyComputeSubCluster
func GetPolicyComputeSubCluster(ctx *Context, name string, id IDInput, state *PolicyComputeSubClusterState, opts ...ResourceOption) (*PolicyComputeSubCluster, error)
public static PolicyComputeSubCluster Get(string name, Input<string> id, PolicyComputeSubClusterState? state, CustomResourceOptions? opts = null)
public static PolicyComputeSubCluster get(String name, Output<String> id, PolicyComputeSubClusterState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyComputeSubCluster 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.
- Compute
Collection stringId - ID of compute collection under which sub-cluster is created
- Description string
- Description of the resource.
- Discovered
Node List<string>Ids - Discovered node IDs under this subcluster
- Display
Name string - Display name of the resource.
- Enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - Nsx
Id string - NSX ID for this resource
- Path string
- Policy path for this resource
- Policy
Compute stringSub Cluster 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.
- Site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - List<Policy
Compute Sub Cluster Tag> - A list of scope + tag pairs to associate with this resource.
- Compute
Collection stringId - ID of compute collection under which sub-cluster is created
- Description string
- Description of the resource.
- Discovered
Node []stringIds - Discovered node IDs under this subcluster
- Display
Name string - Display name of the resource.
- Enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - Nsx
Id string - NSX ID for this resource
- Path string
- Policy path for this resource
- Policy
Compute stringSub Cluster 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.
- Site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - []Policy
Compute Sub Cluster Tag Args - A list of scope + tag pairs to associate with this resource.
- compute
Collection StringId - ID of compute collection under which sub-cluster is created
- description String
- Description of the resource.
- discovered
Node List<String>Ids - Discovered node IDs under this subcluster
- display
Name String - Display name of the resource.
- enforcement
Point String - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id String - NSX ID for this resource
- path String
- Policy path for this resource
- policy
Compute StringSub Cluster 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.
- site
Path String - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - List<Policy
Compute Sub Cluster Tag> - A list of scope + tag pairs to associate with this resource.
- compute
Collection stringId - ID of compute collection under which sub-cluster is created
- description string
- Description of the resource.
- discovered
Node string[]Ids - Discovered node IDs under this subcluster
- display
Name string - Display name of the resource.
- enforcement
Point string - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id string - NSX ID for this resource
- path string
- Policy path for this resource
- policy
Compute stringSub Cluster 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.
- site
Path string - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - Policy
Compute Sub Cluster Tag[] - A list of scope + tag pairs to associate with this resource.
- compute_
collection_ strid - ID of compute collection under which sub-cluster is created
- description str
- Description of the resource.
- discovered_
node_ Sequence[str]ids - Discovered node IDs under this subcluster
- display_
name str - Display name of the resource.
- enforcement_
point str - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx_
id str - NSX ID for this resource
- path str
- Policy path for this resource
- policy_
compute_ strsub_ cluster_ 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.
- site_
path str - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - Sequence[Policy
Compute Sub Cluster Tag Args] - A list of scope + tag pairs to associate with this resource.
- compute
Collection StringId - ID of compute collection under which sub-cluster is created
- description String
- Description of the resource.
- discovered
Node List<String>Ids - Discovered node IDs under this subcluster
- display
Name String - Display name of the resource.
- enforcement
Point String - The ID of enforcement point under given
site_path
to manage the Host Transport Node. Defaults to default enforcement point. - nsx
Id String - NSX ID for this resource
- path String
- Policy path for this resource
- policy
Compute StringSub Cluster 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.
- site
Path String - The path of the site which this Sub Cluster belongs to.
path
field of the existingnsxt.PolicySite
can be used here. Defaults to default site path. - List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyComputeSubClusterTag, PolicyComputeSubClusterTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.