1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSsmSecrets
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSsmSecrets

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of SSM secret

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleSsmSecret = new tencentcloud.SsmSecret("exampleSsmSecret", {
        secretName: "tf_example",
        description: "desc.",
        tags: {
            createdBy: "terraform",
        },
    });
    const exampleSsmSecrets = tencentcloud.getSsmSecretsOutput({
        secretName: exampleSsmSecret.secretName,
        state: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_ssm_secret = tencentcloud.SsmSecret("exampleSsmSecret",
        secret_name="tf_example",
        description="desc.",
        tags={
            "createdBy": "terraform",
        })
    example_ssm_secrets = tencentcloud.get_ssm_secrets_output(secret_name=example_ssm_secret.secret_name,
        state=1)
    
    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 {
    		exampleSsmSecret, err := tencentcloud.NewSsmSecret(ctx, "exampleSsmSecret", &tencentcloud.SsmSecretArgs{
    			SecretName:  pulumi.String("tf_example"),
    			Description: pulumi.String("desc."),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetSsmSecretsOutput(ctx, tencentcloud.GetSsmSecretsOutputArgs{
    			SecretName: exampleSsmSecret.SecretName,
    			State:      pulumi.Float64(1),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSsmSecret = new Tencentcloud.SsmSecret("exampleSsmSecret", new()
        {
            SecretName = "tf_example",
            Description = "desc.",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var exampleSsmSecrets = Tencentcloud.GetSsmSecrets.Invoke(new()
        {
            SecretName = exampleSsmSecret.SecretName,
            State = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SsmSecret;
    import com.pulumi.tencentcloud.SsmSecretArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSsmSecretsArgs;
    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 exampleSsmSecret = new SsmSecret("exampleSsmSecret", SsmSecretArgs.builder()
                .secretName("tf_example")
                .description("desc.")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            final var exampleSsmSecrets = TencentcloudFunctions.getSsmSecrets(GetSsmSecretsArgs.builder()
                .secretName(exampleSsmSecret.secretName())
                .state(1)
                .build());
    
        }
    }
    
    resources:
      exampleSsmSecret:
        type: tencentcloud:SsmSecret
        properties:
          secretName: tf_example
          description: desc.
          tags:
            createdBy: terraform
    variables:
      exampleSsmSecrets:
        fn::invoke:
          function: tencentcloud:getSsmSecrets
          arguments:
            secretName: ${exampleSsmSecret.secretName}
            state: 1
    

    OR you can filter by tags

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getSsmSecrets({
        secretName: tencentcloud_ssm_secret.example.secret_name,
        state: 1,
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_ssm_secrets(secret_name=tencentcloud_ssm_secret["example"]["secret_name"],
        state=1,
        tags={
            "createdBy": "terraform",
        })
    
    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.GetSsmSecrets(ctx, &tencentcloud.GetSsmSecretsArgs{
    			SecretName: pulumi.StringRef(tencentcloud_ssm_secret.Example.Secret_name),
    			State:      pulumi.Float64Ref(1),
    			Tags: map[string]interface{}{
    				"createdBy": "terraform",
    			},
    		}, nil)
    		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 = Tencentcloud.GetSsmSecrets.Invoke(new()
        {
            SecretName = tencentcloud_ssm_secret.Example.Secret_name,
            State = 1,
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSsmSecretsArgs;
    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) {
            final var example = TencentcloudFunctions.getSsmSecrets(GetSsmSecretsArgs.builder()
                .secretName(tencentcloud_ssm_secret.example().secret_name())
                .state(1)
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getSsmSecrets
          arguments:
            secretName: ${tencentcloud_ssm_secret.example.secret_name}
            state: 1
            tags:
              createdBy: terraform
    

    Using getSsmSecrets

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSsmSecrets(args: GetSsmSecretsArgs, opts?: InvokeOptions): Promise<GetSsmSecretsResult>
    function getSsmSecretsOutput(args: GetSsmSecretsOutputArgs, opts?: InvokeOptions): Output<GetSsmSecretsResult>
    def get_ssm_secrets(id: Optional[str] = None,
                        order_type: Optional[float] = None,
                        product_name: Optional[str] = None,
                        result_output_file: Optional[str] = None,
                        secret_name: Optional[str] = None,
                        secret_type: Optional[float] = None,
                        state: Optional[float] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSsmSecretsResult
    def get_ssm_secrets_output(id: Optional[pulumi.Input[str]] = None,
                        order_type: Optional[pulumi.Input[float]] = None,
                        product_name: Optional[pulumi.Input[str]] = None,
                        result_output_file: Optional[pulumi.Input[str]] = None,
                        secret_name: Optional[pulumi.Input[str]] = None,
                        secret_type: Optional[pulumi.Input[float]] = None,
                        state: Optional[pulumi.Input[float]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSsmSecretsResult]
    func GetSsmSecrets(ctx *Context, args *GetSsmSecretsArgs, opts ...InvokeOption) (*GetSsmSecretsResult, error)
    func GetSsmSecretsOutput(ctx *Context, args *GetSsmSecretsOutputArgs, opts ...InvokeOption) GetSsmSecretsResultOutput

    > Note: This function is named GetSsmSecrets in the Go SDK.

    public static class GetSsmSecrets 
    {
        public static Task<GetSsmSecretsResult> InvokeAsync(GetSsmSecretsArgs args, InvokeOptions? opts = null)
        public static Output<GetSsmSecretsResult> Invoke(GetSsmSecretsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSsmSecretsResult> getSsmSecrets(GetSsmSecretsArgs args, InvokeOptions options)
    public static Output<GetSsmSecretsResult> getSsmSecrets(GetSsmSecretsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSsmSecrets:getSsmSecrets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    OrderType double
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    ProductName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    ResultOutputFile string
    Used to save results.
    SecretName string
    Secret name used to filter result.
    SecretType double
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    State double
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    Tags Dictionary<string, string>
    Tags to filter secret.
    Id string
    OrderType float64
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    ProductName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    ResultOutputFile string
    Used to save results.
    SecretName string
    Secret name used to filter result.
    SecretType float64
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    State float64
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    Tags map[string]string
    Tags to filter secret.
    id String
    orderType Double
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    productName String
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    resultOutputFile String
    Used to save results.
    secretName String
    Secret name used to filter result.
    secretType Double
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    state Double
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    tags Map<String,String>
    Tags to filter secret.
    id string
    orderType number
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    productName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    resultOutputFile string
    Used to save results.
    secretName string
    Secret name used to filter result.
    secretType number
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    state number
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    tags {[key: string]: string}
    Tags to filter secret.
    id str
    order_type float
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    product_name str
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    result_output_file str
    Used to save results.
    secret_name str
    Secret name used to filter result.
    secret_type float
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    state float
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    tags Mapping[str, str]
    Tags to filter secret.
    id String
    orderType Number
    The order to sort the create time of secret. 0 - desc, 1 - asc. Default value is 0.
    productName String
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    resultOutputFile String
    Used to save results.
    secretName String
    Secret name used to filter result.
    secretType Number
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    state Number
    Filter by state of secret. 0 - all secrets are queried, 1 - only Enabled secrets are queried, 2 - only Disabled secrets are queried, 3 - only PendingDelete secrets are queried.
    tags Map<String>
    Tags to filter secret.

    getSsmSecrets Result

    The following output properties are available:

    Id string
    SecretLists List<GetSsmSecretsSecretList>
    A list of SSM secrets.
    OrderType double
    ProductName string
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    ResultOutputFile string
    SecretName string
    Name of secret.
    SecretType double
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    State double
    Tags Dictionary<string, string>
    Id string
    SecretLists []GetSsmSecretsSecretList
    A list of SSM secrets.
    OrderType float64
    ProductName string
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    ResultOutputFile string
    SecretName string
    Name of secret.
    SecretType float64
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    State float64
    Tags map[string]string
    id String
    secretLists List<GetSsmSecretsSecretList>
    A list of SSM secrets.
    orderType Double
    productName String
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    resultOutputFile String
    secretName String
    Name of secret.
    secretType Double
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    state Double
    tags Map<String,String>
    id string
    secretLists GetSsmSecretsSecretList[]
    A list of SSM secrets.
    orderType number
    productName string
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    resultOutputFile string
    secretName string
    Name of secret.
    secretType number
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    state number
    tags {[key: string]: string}
    id str
    secret_lists Sequence[GetSsmSecretsSecretList]
    A list of SSM secrets.
    order_type float
    product_name str
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    result_output_file str
    secret_name str
    Name of secret.
    secret_type float
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    state float
    tags Mapping[str, str]
    id String
    secretLists List<Property Map>
    A list of SSM secrets.
    orderType Number
    productName String
    Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
    resultOutputFile String
    secretName String
    Name of secret.
    secretType Number
    0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
    state Number
    tags Map<String>

    Supporting Types

    GetSsmSecretsSecretList

    AssociatedInstanceIds List<string>
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    CreateTime double
    Create time of secret.
    CreateUin double
    Uin of Creator.
    DeleteTime double
    Delete time of CMK.
    Description string
    Description of secret.
    KmsKeyId string
    KMS keyId used to encrypt secret.
    KmsKeyType string
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    NextRotationTime double
    Next rotation start time, uinx timestamp.
    ProductName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    ProjectId double
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    ResourceId string
    The cloud product instance ID number corresponding to the cloud product credentials.
    ResourceName string
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    RotationBeginTime string
    The user specified rotation start time.
    RotationFrequency double
    The frequency of rotation, in days, takes effect when rotation is on.
    RotationStatus double
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    SecretName string
    Secret name used to filter result.
    SecretType double
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    Status string
    Status of secret.
    TargetUin double
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
    AssociatedInstanceIds []string
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    CreateTime float64
    Create time of secret.
    CreateUin float64
    Uin of Creator.
    DeleteTime float64
    Delete time of CMK.
    Description string
    Description of secret.
    KmsKeyId string
    KMS keyId used to encrypt secret.
    KmsKeyType string
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    NextRotationTime float64
    Next rotation start time, uinx timestamp.
    ProductName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    ProjectId float64
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    ResourceId string
    The cloud product instance ID number corresponding to the cloud product credentials.
    ResourceName string
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    RotationBeginTime string
    The user specified rotation start time.
    RotationFrequency float64
    The frequency of rotation, in days, takes effect when rotation is on.
    RotationStatus float64
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    SecretName string
    Secret name used to filter result.
    SecretType float64
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    Status string
    Status of secret.
    TargetUin float64
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
    associatedInstanceIds List<String>
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    createTime Double
    Create time of secret.
    createUin Double
    Uin of Creator.
    deleteTime Double
    Delete time of CMK.
    description String
    Description of secret.
    kmsKeyId String
    KMS keyId used to encrypt secret.
    kmsKeyType String
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    nextRotationTime Double
    Next rotation start time, uinx timestamp.
    productName String
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    projectId Double
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    resourceId String
    The cloud product instance ID number corresponding to the cloud product credentials.
    resourceName String
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    rotationBeginTime String
    The user specified rotation start time.
    rotationFrequency Double
    The frequency of rotation, in days, takes effect when rotation is on.
    rotationStatus Double
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    secretName String
    Secret name used to filter result.
    secretType Double
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    status String
    Status of secret.
    targetUin Double
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
    associatedInstanceIds string[]
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    createTime number
    Create time of secret.
    createUin number
    Uin of Creator.
    deleteTime number
    Delete time of CMK.
    description string
    Description of secret.
    kmsKeyId string
    KMS keyId used to encrypt secret.
    kmsKeyType string
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    nextRotationTime number
    Next rotation start time, uinx timestamp.
    productName string
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    projectId number
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    resourceId string
    The cloud product instance ID number corresponding to the cloud product credentials.
    resourceName string
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    rotationBeginTime string
    The user specified rotation start time.
    rotationFrequency number
    The frequency of rotation, in days, takes effect when rotation is on.
    rotationStatus number
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    secretName string
    Secret name used to filter result.
    secretType number
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    status string
    Status of secret.
    targetUin number
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
    associated_instance_ids Sequence[str]
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    create_time float
    Create time of secret.
    create_uin float
    Uin of Creator.
    delete_time float
    Delete time of CMK.
    description str
    Description of secret.
    kms_key_id str
    KMS keyId used to encrypt secret.
    kms_key_type str
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    next_rotation_time float
    Next rotation start time, uinx timestamp.
    product_name str
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    project_id float
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    resource_id str
    The cloud product instance ID number corresponding to the cloud product credentials.
    resource_name str
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    rotation_begin_time str
    The user specified rotation start time.
    rotation_frequency float
    The frequency of rotation, in days, takes effect when rotation is on.
    rotation_status float
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    secret_name str
    Secret name used to filter result.
    secret_type float
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    status str
    Status of secret.
    target_uin float
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
    associatedInstanceIds List<String>
    When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
    createTime Number
    Create time of secret.
    createUin Number
    Uin of Creator.
    deleteTime Number
    Delete time of CMK.
    description String
    Description of secret.
    kmsKeyId String
    KMS keyId used to encrypt secret.
    kmsKeyType String
    KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
    nextRotationTime Number
    Next rotation start time, uinx timestamp.
    productName String
    This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
    projectId Number
    When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
    resourceId String
    The cloud product instance ID number corresponding to the cloud product credentials.
    resourceName String
    When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
    rotationBeginTime String
    The user specified rotation start time.
    rotationFrequency Number
    The frequency of rotation, in days, takes effect when rotation is on.
    rotationStatus Number
    1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
    secretName String
    Secret name used to filter result.
    secretType Number
    0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
    status String
    Status of secret.
    targetUin Number
    When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.

    Package Details

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