All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::KMS::Instances

Last Updated:Dec 08, 2023

DATASOURCE::KMS::Instances is used to query Key Management Service (KMS) instances that are created within the current Alibaba Cloud account in the current region.

Return values

Fn::GetAtt

  • Instances: the list of KMS instances.

  • InstanceIds: the IDs of KMS instances.

Property

Type

Description

Constraint

InstanceIds

List

The IDs of KMS instances.

None.

Instances

List

The list of KMS instances.

None.

PaymentType

String

The billing method of the KMS instance.

None.

InstanceId

String

The ID of the KMS instance.

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ExtensionDataSource:
        Properties: {}
        Type: DATASOURCE::KMS::Instances
    Outputs:
      InstanceIds:
        Description: The list of instance IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - InstanceIds
      Instances:
        Description: The list of instances.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - Instances
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::KMS::Instances",
          "Properties": {}
        }
      },
      "Outputs": {
        "Instances": {
          "Description": "The list of instances.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Instances"
            ]
          }
        },
        "InstanceIds": {
          "Description": "The list of instance IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceIds"
            ]
          }
        }
      }
    }