All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::OTS::Tables

Last Updated:Jun 16, 2026

Queries the names of all tables created in a Tablestore instance.

Syntax

{
  "Type": "DATASOURCE::OTS::Tables",
  "Properties": {
    "InstanceName": String,
    "TableName": String,
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

InstanceName

String

Yes

Yes

The instance name.

None.

TableName

String

No

Yes

The table name.

None.

RefreshOptions

String

No

Yes

The refresh policy for data source resources during stack updates.

Valid values:

  • Never (default): does not refresh data source resources during stack updates.

  • Always: refreshes data source resources during stack updates.

Return values (Fn::GetAtt)

  • TableNames: the names of the tables.

  • Tables: details of the tables.

Property

Type

Description

Constraint

TableNames

List

The names of the tables.

None.

Tables

List

Details of the tables.

None.

TableName

String

The table name.

None.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceName": {
      "Type": "String",
      "Description": "The name of the instance to which the table belongs."
    }
  },
  "Resources": {
    "Tables": {
      "Type": "DATASOURCE::OTS::Tables",
      "Properties": {
        "InstanceName": {
          "Ref": "InstanceName"
        }
      }
    }
  },
  "Outputs": {
    "TableNames": {
      "Description": "The list of table names.",
      "Value": {
        "Fn::GetAtt": [
          "Tables",
          "TableNames"
        ]
      }
    },
    "Tables": {
      "Description": "The list of tables.",
      "Value": {
        "Fn::GetAtt": [
          "Tables",
          "Tables"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceName:
    Type: String
    Description: The name of the instance to which the table belongs.
Resources:
  Tables:
    Type: DATASOURCE::OTS::Tables
    Properties:
      InstanceName:
        Ref: InstanceName
Outputs:
  TableNames:
    Description: The list of table names.
    Value:
      Fn::GetAtt:
        - Tables
        - TableNames
  Tables:
    Description: The list of tables.
    Value:
      Fn::GetAtt:
        - Tables
        - Tables