OtsFunctions

Functions

Link copied to clipboard

This data source provides the ots instance attachments of the current Alibaba Cloud user.

suspend fun getInstanceAttachments(instanceName: String, nameRegex: String? = null, outputFile: String? = null): GetInstanceAttachmentsResult
Link copied to clipboard

This data source provides the ots instances of the current Alibaba Cloud user.

suspend fun getInstances(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, tags: Map<String, String>? = null): GetInstancesResult
Link copied to clipboard

This data source provides the ots search index of the current Alibaba Cloud user. For information about OTS search index and how to use it, see Search index overview.

suspend fun getSearchIndexes(ids: List<String>? = null, instanceName: String, nameRegex: String? = null, outputFile: String? = null, tableName: String): GetSearchIndexesResult
Link copied to clipboard

This data source provides the ots secondary index of the current Alibaba Cloud user. For information about OTS secondary index and how to use it, see Secondary index overview.

suspend fun getSecondaryIndexes(ids: List<String>? = null, instanceName: String, nameRegex: String? = null, outputFile: String? = null, tableName: String): GetSecondaryIndexesResult
Link copied to clipboard

Using this data source can enable Table Staore service automatically. If the service has been enabled, it will return Opened. For information about Table Staore and how to use it, see What is Table Staore.

suspend fun getService(enable: String? = null): GetServiceResult
suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult
Link copied to clipboard

This data source provides the ots tables of the current Alibaba Cloud user.

suspend fun getTables(argument: suspend GetTablesPlainArgsBuilder.() -> Unit): GetTablesResult
suspend fun getTables(ids: List<String>? = null, instanceName: String, nameRegex: String? = null, outputFile: String? = null): GetTablesResult
Link copied to clipboard

This data source provides the ots tunnels of the current Alibaba Cloud user. For information about OTS tunnel and how to use it, see Tunnel overview.

suspend fun getTunnels(argument: suspend GetTunnelsPlainArgsBuilder.() -> Unit): GetTunnelsResult
suspend fun getTunnels(ids: List<String>? = null, instanceName: String, nameRegex: String? = null, outputFile: String? = null, tableName: String): GetTunnelsResult