tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getSsmSecrets
Explore with Pulumi AI
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
- Order
Type double - The order to sort the create time of secret.
0
- desc,1
- asc. Default value is0
. - Product
Name 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.
- Result
Output stringFile - Used to save results.
- Secret
Name string - Secret name used to filter result.
- Secret
Type 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. - Dictionary<string, string>
- Tags to filter secret.
- Id string
- Order
Type float64 - The order to sort the create time of secret.
0
- desc,1
- asc. Default value is0
. - Product
Name 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.
- Result
Output stringFile - Used to save results.
- Secret
Name string - Secret name used to filter result.
- Secret
Type 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. - map[string]string
- Tags to filter secret.
- id String
- order
Type Double - The order to sort the create time of secret.
0
- desc,1
- asc. Default value is0
. - product
Name 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.
- result
Output StringFile - Used to save results.
- secret
Name String - Secret name used to filter result.
- secret
Type 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. - Map<String,String>
- Tags to filter secret.
- id string
- order
Type number - The order to sort the create time of secret.
0
- desc,1
- asc. Default value is0
. - product
Name 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.
- result
Output stringFile - Used to save results.
- secret
Name string - Secret name used to filter result.
- secret
Type 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. - {[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 is0
. - 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_ strfile - 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. - Mapping[str, str]
- Tags to filter secret.
- id String
- order
Type Number - The order to sort the create time of secret.
0
- desc,1
- asc. Default value is0
. - product
Name 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.
- result
Output StringFile - Used to save results.
- secret
Name String - Secret name used to filter result.
- secret
Type 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. - Map<String>
- Tags to filter secret.
getSsmSecrets Result
The following output properties are available:
- Id string
- Secret
Lists List<GetSsm Secrets Secret List> - A list of SSM secrets.
- Order
Type double - Product
Name string - Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
- Result
Output stringFile - Secret
Name string - Name of secret.
- Secret
Type double - 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
- State double
- Dictionary<string, string>
- Id string
- Secret
Lists []GetSsm Secrets Secret List - A list of SSM secrets.
- Order
Type float64 - Product
Name string - Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
- Result
Output stringFile - Secret
Name string - Name of secret.
- Secret
Type float64 - 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
- State float64
- map[string]string
- id String
- secret
Lists List<GetSsm Secrets Secret List> - A list of SSM secrets.
- order
Type Double - product
Name String - Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
- result
Output StringFile - secret
Name String - Name of secret.
- secret
Type Double - 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
- state Double
- Map<String,String>
- id string
- secret
Lists GetSsm Secrets Secret List[] - A list of SSM secrets.
- order
Type number - product
Name string - Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
- result
Output stringFile - secret
Name string - Name of secret.
- secret
Type number - 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
- state number
- {[key: string]: string}
- id str
- secret_
lists Sequence[GetSsm Secrets Secret List] - 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_ strfile - 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
- Mapping[str, str]
- id String
- secret
Lists List<Property Map> - A list of SSM secrets.
- order
Type Number - product
Name String - Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
- result
Output StringFile - secret
Name String - Name of secret.
- secret
Type Number - 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
- state Number
- Map<String>
Supporting Types
GetSsmSecretsSecretList
- Associated
Instance List<string>Ids - 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 double - Create time of secret.
- Create
Uin double - Uin of Creator.
- Delete
Time double - Delete time of CMK.
- Description string
- Description of secret.
- Kms
Key stringId - KMS keyId used to encrypt secret.
- Kms
Key stringType - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- Next
Rotation doubleTime - Next rotation start time, uinx timestamp.
- Product
Name 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.
- Project
Id 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.
- Resource
Id string - The cloud product instance ID number corresponding to the cloud product credentials.
- Resource
Name 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.
- Rotation
Begin stringTime - The user specified rotation start time.
- Rotation
Frequency double - The frequency of rotation, in days, takes effect when rotation is on.
- Rotation
Status double - 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
- Secret
Name string - Secret name used to filter result.
- Secret
Type 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.
- Target
Uin 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.
- Associated
Instance []stringIds - 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 float64 - Create time of secret.
- Create
Uin float64 - Uin of Creator.
- Delete
Time float64 - Delete time of CMK.
- Description string
- Description of secret.
- Kms
Key stringId - KMS keyId used to encrypt secret.
- Kms
Key stringType - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- Next
Rotation float64Time - Next rotation start time, uinx timestamp.
- Product
Name 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.
- Project
Id 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.
- Resource
Id string - The cloud product instance ID number corresponding to the cloud product credentials.
- Resource
Name 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.
- Rotation
Begin stringTime - The user specified rotation start time.
- Rotation
Frequency float64 - The frequency of rotation, in days, takes effect when rotation is on.
- Rotation
Status float64 - 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
- Secret
Name string - Secret name used to filter result.
- Secret
Type 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.
- Target
Uin 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.
- associated
Instance List<String>Ids - 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 Double - Create time of secret.
- create
Uin Double - Uin of Creator.
- delete
Time Double - Delete time of CMK.
- description String
- Description of secret.
- kms
Key StringId - KMS keyId used to encrypt secret.
- kms
Key StringType - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- next
Rotation DoubleTime - Next rotation start time, uinx timestamp.
- product
Name 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.
- project
Id 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.
- resource
Id String - The cloud product instance ID number corresponding to the cloud product credentials.
- resource
Name 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.
- rotation
Begin StringTime - The user specified rotation start time.
- rotation
Frequency Double - The frequency of rotation, in days, takes effect when rotation is on.
- rotation
Status Double - 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
- secret
Name String - Secret name used to filter result.
- secret
Type 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.
- target
Uin 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.
- associated
Instance string[]Ids - 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 number - Create time of secret.
- create
Uin number - Uin of Creator.
- delete
Time number - Delete time of CMK.
- description string
- Description of secret.
- kms
Key stringId - KMS keyId used to encrypt secret.
- kms
Key stringType - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- next
Rotation numberTime - Next rotation start time, uinx timestamp.
- product
Name 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.
- project
Id 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.
- resource
Id string - The cloud product instance ID number corresponding to the cloud product credentials.
- resource
Name 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.
- rotation
Begin stringTime - The user specified rotation start time.
- rotation
Frequency number - The frequency of rotation, in days, takes effect when rotation is on.
- rotation
Status number - 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
- secret
Name string - Secret name used to filter result.
- secret
Type 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.
- target
Uin 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_ Sequence[str]ids - 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_ strid - KMS keyId used to encrypt secret.
- kms_
key_ strtype - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- next_
rotation_ floattime - 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_ strtime - 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.
- associated
Instance List<String>Ids - 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 Number - Create time of secret.
- create
Uin Number - Uin of Creator.
- delete
Time Number - Delete time of CMK.
- description String
- Description of secret.
- kms
Key StringId - KMS keyId used to encrypt secret.
- kms
Key StringType - KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
- next
Rotation NumberTime - Next rotation start time, uinx timestamp.
- product
Name 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.
- project
Id 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.
- resource
Id String - The cloud product instance ID number corresponding to the cloud product credentials.
- resource
Name 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.
- rotation
Begin StringTime - The user specified rotation start time.
- rotation
Frequency Number - The frequency of rotation, in days, takes effect when rotation is on.
- rotation
Status Number - 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
- secret
Name String - Secret name used to filter result.
- secret
Type 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.
- target
Uin 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack