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

tencentcloud.getSsmSecrets

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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
Copy

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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" },
        },
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: tencentcloud:getSsmSecrets
      arguments:
        secretName: ${tencentcloud_ssm_secret.example.secret_name}
        state: 1
        tags:
          createdBy: terraform
Copy

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>
Copy
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]
Copy
func GetSsmSecrets(ctx *Context, args *GetSsmSecretsArgs, opts ...InvokeOption) (*GetSsmSecretsResult, error)
func GetSsmSecretsOutput(ctx *Context, args *GetSsmSecretsOutputArgs, opts ...InvokeOption) GetSsmSecretsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSsmSecretsResult> getSsmSecrets(GetSsmSecretsArgs args, InvokeOptions options)
public static Output<GetSsmSecretsResult> getSsmSecrets(GetSsmSecretsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getSsmSecrets:getSsmSecrets
  arguments:
    # arguments dictionary
Copy

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 This property is required. 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 This property is required. double
Create time of secret.
CreateUin This property is required. double
Uin of Creator.
DeleteTime This property is required. double
Delete time of CMK.
Description This property is required. string
Description of secret.
KmsKeyId This property is required. string
KMS keyId used to encrypt secret.
KmsKeyType This property is required. string
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
NextRotationTime This property is required. double
Next rotation start time, uinx timestamp.
ProductName This property is required. 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 This property is required. 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 This property is required. string
The cloud product instance ID number corresponding to the cloud product credentials.
ResourceName This property is required. 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 This property is required. string
The user specified rotation start time.
RotationFrequency This property is required. double
The frequency of rotation, in days, takes effect when rotation is on.
RotationStatus This property is required. double
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
SecretName This property is required. string
Secret name used to filter result.
SecretType This property is required. 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 This property is required. string
Status of secret.
TargetUin This property is required. 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 This property is required. []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 This property is required. float64
Create time of secret.
CreateUin This property is required. float64
Uin of Creator.
DeleteTime This property is required. float64
Delete time of CMK.
Description This property is required. string
Description of secret.
KmsKeyId This property is required. string
KMS keyId used to encrypt secret.
KmsKeyType This property is required. string
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
NextRotationTime This property is required. float64
Next rotation start time, uinx timestamp.
ProductName This property is required. 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 This property is required. 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 This property is required. string
The cloud product instance ID number corresponding to the cloud product credentials.
ResourceName This property is required. 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 This property is required. string
The user specified rotation start time.
RotationFrequency This property is required. float64
The frequency of rotation, in days, takes effect when rotation is on.
RotationStatus This property is required. float64
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
SecretName This property is required. string
Secret name used to filter result.
SecretType This property is required. 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 This property is required. string
Status of secret.
TargetUin This property is required. 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 This property is required. 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 This property is required. Double
Create time of secret.
createUin This property is required. Double
Uin of Creator.
deleteTime This property is required. Double
Delete time of CMK.
description This property is required. String
Description of secret.
kmsKeyId This property is required. String
KMS keyId used to encrypt secret.
kmsKeyType This property is required. String
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
nextRotationTime This property is required. Double
Next rotation start time, uinx timestamp.
productName This property is required. 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 This property is required. 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 This property is required. String
The cloud product instance ID number corresponding to the cloud product credentials.
resourceName This property is required. 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 This property is required. String
The user specified rotation start time.
rotationFrequency This property is required. Double
The frequency of rotation, in days, takes effect when rotation is on.
rotationStatus This property is required. Double
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
secretName This property is required. String
Secret name used to filter result.
secretType This property is required. 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 This property is required. String
Status of secret.
targetUin This property is required. 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 This property is required. 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 This property is required. number
Create time of secret.
createUin This property is required. number
Uin of Creator.
deleteTime This property is required. number
Delete time of CMK.
description This property is required. string
Description of secret.
kmsKeyId This property is required. string
KMS keyId used to encrypt secret.
kmsKeyType This property is required. string
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
nextRotationTime This property is required. number
Next rotation start time, uinx timestamp.
productName This property is required. 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 This property is required. 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 This property is required. string
The cloud product instance ID number corresponding to the cloud product credentials.
resourceName This property is required. 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 This property is required. string
The user specified rotation start time.
rotationFrequency This property is required. number
The frequency of rotation, in days, takes effect when rotation is on.
rotationStatus This property is required. number
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
secretName This property is required. string
Secret name used to filter result.
secretType This property is required. 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 This property is required. string
Status of secret.
targetUin This property is required. 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 This property is required. 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 This property is required. float
Create time of secret.
create_uin This property is required. float
Uin of Creator.
delete_time This property is required. float
Delete time of CMK.
description This property is required. str
Description of secret.
kms_key_id This property is required. str
KMS keyId used to encrypt secret.
kms_key_type This property is required. 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 This property is required. float
Next rotation start time, uinx timestamp.
product_name This property is required. 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 This property is required. 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 This property is required. str
The cloud product instance ID number corresponding to the cloud product credentials.
resource_name This property is required. 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 This property is required. str
The user specified rotation start time.
rotation_frequency This property is required. float
The frequency of rotation, in days, takes effect when rotation is on.
rotation_status This property is required. 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 This property is required. str
Secret name used to filter result.
secret_type This property is required. 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 This property is required. str
Status of secret.
target_uin This property is required. 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 This property is required. 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 This property is required. Number
Create time of secret.
createUin This property is required. Number
Uin of Creator.
deleteTime This property is required. Number
Delete time of CMK.
description This property is required. String
Description of secret.
kmsKeyId This property is required. String
KMS keyId used to encrypt secret.
kmsKeyType This property is required. String
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
nextRotationTime This property is required. Number
Next rotation start time, uinx timestamp.
productName This property is required. 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 This property is required. 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 This property is required. String
The cloud product instance ID number corresponding to the cloud product credentials.
resourceName This property is required. 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 This property is required. String
The user specified rotation start time.
rotationFrequency This property is required. Number
The frequency of rotation, in days, takes effect when rotation is on.
rotationStatus This property is required. Number
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
secretName This property is required. String
Secret name used to filter result.
secretType This property is required. 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 This property is required. String
Status of secret.
targetUin This property is required. 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.