OssFunctions

Functions

Link copied to clipboard

This data source provides the objects of an OSS bucket.

suspend fun getBucketObjects(bucketName: String, keyPrefix: String? = null, keyRegex: String? = null, outputFile: String? = null): GetBucketObjectsResult
Link copied to clipboard

This data source provides the OSS buckets of the current Alibaba Cloud user.

suspend fun getBuckets(argument: suspend GetBucketsPlainArgsBuilder.() -> Unit): GetBucketsResult
suspend fun getBuckets(nameRegex: String? = null, outputFile: String? = null): GetBucketsResult
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

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

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