1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TcssClusterAccess
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack

    Provides a resource to create a TCSS cluster access

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TcssClusterAccess("example", {
        clusterId: "cls-fdy7hm1q",
        switchOn: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TcssClusterAccess("example",
        cluster_id="cls-fdy7hm1q",
        switch_on=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTcssClusterAccess(ctx, "example", &tencentcloud.TcssClusterAccessArgs{
    			ClusterId: pulumi.String("cls-fdy7hm1q"),
    			SwitchOn:  pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.TcssClusterAccess("example", new()
        {
            ClusterId = "cls-fdy7hm1q",
            SwitchOn = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TcssClusterAccess;
    import com.pulumi.tencentcloud.TcssClusterAccessArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new TcssClusterAccess("example", TcssClusterAccessArgs.builder()
                .clusterId("cls-fdy7hm1q")
                .switchOn(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TcssClusterAccess
        properties:
          clusterId: cls-fdy7hm1q
          switchOn: true
    

    Create TcssClusterAccess Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TcssClusterAccess(name: string, args: TcssClusterAccessArgs, opts?: CustomResourceOptions);
    @overload
    def TcssClusterAccess(resource_name: str,
                          args: TcssClusterAccessArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TcssClusterAccess(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cluster_id: Optional[str] = None,
                          switch_on: Optional[bool] = None,
                          tcss_cluster_access_id: Optional[str] = None,
                          timeouts: Optional[TcssClusterAccessTimeoutsArgs] = None)
    func NewTcssClusterAccess(ctx *Context, name string, args TcssClusterAccessArgs, opts ...ResourceOption) (*TcssClusterAccess, error)
    public TcssClusterAccess(string name, TcssClusterAccessArgs args, CustomResourceOptions? opts = null)
    public TcssClusterAccess(String name, TcssClusterAccessArgs args)
    public TcssClusterAccess(String name, TcssClusterAccessArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TcssClusterAccess
    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 TcssClusterAccessArgs
    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 TcssClusterAccessArgs
    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 TcssClusterAccessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TcssClusterAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TcssClusterAccessArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TcssClusterAccess 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 TcssClusterAccess resource accepts the following input properties:

    ClusterId string
    Cluster Id.
    SwitchOn bool
    Whether to enable cluster defend status.
    TcssClusterAccessId string
    ID of the resource.
    Timeouts TcssClusterAccessTimeouts
    ClusterId string
    Cluster Id.
    SwitchOn bool
    Whether to enable cluster defend status.
    TcssClusterAccessId string
    ID of the resource.
    Timeouts TcssClusterAccessTimeoutsArgs
    clusterId String
    Cluster Id.
    switchOn Boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId String
    ID of the resource.
    timeouts TcssClusterAccessTimeouts
    clusterId string
    Cluster Id.
    switchOn boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId string
    ID of the resource.
    timeouts TcssClusterAccessTimeouts
    cluster_id str
    Cluster Id.
    switch_on bool
    Whether to enable cluster defend status.
    tcss_cluster_access_id str
    ID of the resource.
    timeouts TcssClusterAccessTimeoutsArgs
    clusterId String
    Cluster Id.
    switchOn Boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId String
    ID of the resource.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TcssClusterAccess resource produces the following output properties:

    AccessedStatus string
    Cluster access status.
    DefenderStatus string
    Cluster defender status.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessedStatus string
    Cluster access status.
    DefenderStatus string
    Cluster defender status.
    Id string
    The provider-assigned unique ID for this managed resource.
    accessedStatus String
    Cluster access status.
    defenderStatus String
    Cluster defender status.
    id String
    The provider-assigned unique ID for this managed resource.
    accessedStatus string
    Cluster access status.
    defenderStatus string
    Cluster defender status.
    id string
    The provider-assigned unique ID for this managed resource.
    accessed_status str
    Cluster access status.
    defender_status str
    Cluster defender status.
    id str
    The provider-assigned unique ID for this managed resource.
    accessedStatus String
    Cluster access status.
    defenderStatus String
    Cluster defender status.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TcssClusterAccess Resource

    Get an existing TcssClusterAccess 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?: TcssClusterAccessState, opts?: CustomResourceOptions): TcssClusterAccess
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accessed_status: Optional[str] = None,
            cluster_id: Optional[str] = None,
            defender_status: Optional[str] = None,
            switch_on: Optional[bool] = None,
            tcss_cluster_access_id: Optional[str] = None,
            timeouts: Optional[TcssClusterAccessTimeoutsArgs] = None) -> TcssClusterAccess
    func GetTcssClusterAccess(ctx *Context, name string, id IDInput, state *TcssClusterAccessState, opts ...ResourceOption) (*TcssClusterAccess, error)
    public static TcssClusterAccess Get(string name, Input<string> id, TcssClusterAccessState? state, CustomResourceOptions? opts = null)
    public static TcssClusterAccess get(String name, Output<String> id, TcssClusterAccessState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TcssClusterAccess    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:
    AccessedStatus string
    Cluster access status.
    ClusterId string
    Cluster Id.
    DefenderStatus string
    Cluster defender status.
    SwitchOn bool
    Whether to enable cluster defend status.
    TcssClusterAccessId string
    ID of the resource.
    Timeouts TcssClusterAccessTimeouts
    AccessedStatus string
    Cluster access status.
    ClusterId string
    Cluster Id.
    DefenderStatus string
    Cluster defender status.
    SwitchOn bool
    Whether to enable cluster defend status.
    TcssClusterAccessId string
    ID of the resource.
    Timeouts TcssClusterAccessTimeoutsArgs
    accessedStatus String
    Cluster access status.
    clusterId String
    Cluster Id.
    defenderStatus String
    Cluster defender status.
    switchOn Boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId String
    ID of the resource.
    timeouts TcssClusterAccessTimeouts
    accessedStatus string
    Cluster access status.
    clusterId string
    Cluster Id.
    defenderStatus string
    Cluster defender status.
    switchOn boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId string
    ID of the resource.
    timeouts TcssClusterAccessTimeouts
    accessed_status str
    Cluster access status.
    cluster_id str
    Cluster Id.
    defender_status str
    Cluster defender status.
    switch_on bool
    Whether to enable cluster defend status.
    tcss_cluster_access_id str
    ID of the resource.
    timeouts TcssClusterAccessTimeoutsArgs
    accessedStatus String
    Cluster access status.
    clusterId String
    Cluster Id.
    defenderStatus String
    Cluster defender status.
    switchOn Boolean
    Whether to enable cluster defend status.
    tcssClusterAccessId String
    ID of the resource.
    timeouts Property Map

    Supporting Types

    TcssClusterAccessTimeouts, TcssClusterAccessTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    TCSS cluster access can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tcssClusterAccess:TcssClusterAccess example cls-fdy7hm1q
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.36 published on Thursday, Nov 13, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate