All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::KMS::Secrets

Last Updated:May 05, 2023

DATASOURCE::KMS::Secrets is used to query all secrets that are created within the current Alibaba Cloud account in the current region.

Return values

Fn::GetAtt

  • Secrets: details of the secrets.

  • SecretNames: the names of the secrets.

Property

Type

Description

Constraint

SecretNames

List

The names of the secrets.

None.

Secrets

List

Details of the secrets.

None.

UpdateTime

String

The time when the secret was updated.

None.

Tags

List

The tags of the secret.

Example:

[ {
      "TagValue" : "val1",
      "TagKey" : "key1"
    } ]

SecretType

String

The type of the secret.

Valid values:

  • Rds: managed ApsaraDB RDS secret

  • Generic: generic secret

SecretName

String

The name of the secret.

None.

PlannedDeleteTime

String

The time when the secret is scheduled to be deleted.

None.

CreateTime

String

The time when the secret was created.

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ExtensionDataSource:
        Properties: {}
        Type: DATASOURCE::KMS::Secrets
    Outputs:
      SecretNames:
        Description: The list of secret names.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - SecretNames
      Secrets:
        Description: The list of secrets.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - Secrets
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::KMS::Secrets",
          "Properties": {}
        }
      },
      "Outputs": {
        "Secrets": {
          "Description": "The list of secrets.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Secrets"
            ]
          }
        },
        "SecretNames": {
          "Description": "The list of secret names.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "SecretNames"
            ]
          }
        }
      }
    }