1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicyComputeSubCluster
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.PolicyComputeSubCluster

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    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:

    ComputeCollectionId string
    ID of compute collection under which sub-cluster is created
    DisplayName string
    Display name of the resource.
    Description string
    Description of the resource.
    DiscoveredNodeIds List<string>
    Discovered node IDs under this subcluster
    EnforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    NsxId string
    NSX ID for this resource
    PolicyComputeSubClusterId string
    ID of the resource.
    SitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    Tags List<PolicyComputeSubClusterTag>
    A list of scope + tag pairs to associate with this resource.
    ComputeCollectionId string
    ID of compute collection under which sub-cluster is created
    DisplayName string
    Display name of the resource.
    Description string
    Description of the resource.
    DiscoveredNodeIds []string
    Discovered node IDs under this subcluster
    EnforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    NsxId string
    NSX ID for this resource
    PolicyComputeSubClusterId string
    ID of the resource.
    SitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    Tags []PolicyComputeSubClusterTagArgs
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId String
    ID of compute collection under which sub-cluster is created
    displayName String
    Display name of the resource.
    description String
    Description of the resource.
    discoveredNodeIds List<String>
    Discovered node IDs under this subcluster
    enforcementPoint String
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId String
    NSX ID for this resource
    policyComputeSubClusterId String
    ID of the resource.
    sitePath String
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags List<PolicyComputeSubClusterTag>
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId string
    ID of compute collection under which sub-cluster is created
    displayName string
    Display name of the resource.
    description string
    Description of the resource.
    discoveredNodeIds string[]
    Discovered node IDs under this subcluster
    enforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId string
    NSX ID for this resource
    policyComputeSubClusterId string
    ID of the resource.
    sitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags PolicyComputeSubClusterTag[]
    A list of scope + tag pairs to associate with this resource.
    compute_collection_id str
    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_ids Sequence[str]
    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_sub_cluster_id str
    ID of the resource.
    site_path str
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags Sequence[PolicyComputeSubClusterTagArgs]
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId String
    ID of compute collection under which sub-cluster is created
    displayName String
    Display name of the resource.
    description String
    Description of the resource.
    discoveredNodeIds List<String>
    Discovered node IDs under this subcluster
    enforcementPoint String
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId String
    NSX ID for this resource
    policyComputeSubClusterId String
    ID of the resource.
    sitePath String
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Path string
    Policy path for this resource
    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
    Policy path for this resource
    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
    Policy path for this resource
    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
    Policy path for this resource
    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
    Policy path for this resource
    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
    Policy path for this resource
    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 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.
    The following state arguments are supported:
    ComputeCollectionId string
    ID of compute collection under which sub-cluster is created
    Description string
    Description of the resource.
    DiscoveredNodeIds List<string>
    Discovered node IDs under this subcluster
    DisplayName string
    Display name of the resource.
    EnforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    NsxId string
    NSX ID for this resource
    Path string
    Policy path for this resource
    PolicyComputeSubClusterId string
    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.
    SitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    Tags List<PolicyComputeSubClusterTag>
    A list of scope + tag pairs to associate with this resource.
    ComputeCollectionId string
    ID of compute collection under which sub-cluster is created
    Description string
    Description of the resource.
    DiscoveredNodeIds []string
    Discovered node IDs under this subcluster
    DisplayName string
    Display name of the resource.
    EnforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    NsxId string
    NSX ID for this resource
    Path string
    Policy path for this resource
    PolicyComputeSubClusterId string
    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.
    SitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    Tags []PolicyComputeSubClusterTagArgs
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId String
    ID of compute collection under which sub-cluster is created
    description String
    Description of the resource.
    discoveredNodeIds List<String>
    Discovered node IDs under this subcluster
    displayName String
    Display name of the resource.
    enforcementPoint String
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId String
    NSX ID for this resource
    path String
    Policy path for this resource
    policyComputeSubClusterId String
    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.
    sitePath String
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags List<PolicyComputeSubClusterTag>
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId string
    ID of compute collection under which sub-cluster is created
    description string
    Description of the resource.
    discoveredNodeIds string[]
    Discovered node IDs under this subcluster
    displayName string
    Display name of the resource.
    enforcementPoint string
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId string
    NSX ID for this resource
    path string
    Policy path for this resource
    policyComputeSubClusterId string
    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.
    sitePath string
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags PolicyComputeSubClusterTag[]
    A list of scope + tag pairs to associate with this resource.
    compute_collection_id str
    ID of compute collection under which sub-cluster is created
    description str
    Description of the resource.
    discovered_node_ids Sequence[str]
    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_sub_cluster_id str
    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 existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags Sequence[PolicyComputeSubClusterTagArgs]
    A list of scope + tag pairs to associate with this resource.
    computeCollectionId String
    ID of compute collection under which sub-cluster is created
    description String
    Description of the resource.
    discoveredNodeIds List<String>
    Discovered node IDs under this subcluster
    displayName String
    Display name of the resource.
    enforcementPoint String
    The ID of enforcement point under given site_path to manage the Host Transport Node. Defaults to default enforcement point.
    nsxId String
    NSX ID for this resource
    path String
    Policy path for this resource
    policyComputeSubClusterId String
    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.
    sitePath String
    The path of the site which this Sub Cluster belongs to. path field of the existing nsxt.PolicySite can be used here. Defaults to default site path.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this resource.

    Supporting Types

    PolicyComputeSubClusterTag, PolicyComputeSubClusterTagArgs

    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.
    scope string
    tag string
    A list of scope + tag pairs to associate with this resource.
    scope str
    tag str
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware