getClusterCredential

This data source provides Container Service cluster credential on Alibaba Cloud.

NOTE: Available since v1.187.0 NOTE: This datasource can be used on all kinds of ACK clusters, including managed clusters, imported kubernetes clusters, serverless clusters and edge clusters. Please make sure that the target cluster is not in the failed state before using this datasource, since the api server of clusters in the failed state cannot be accessed.

Return

A collection of values returned by getClusterCredential.

Parameters

argument

A collection of arguments for invoking getClusterCredential.


suspend fun getClusterCredential(clusterId: String, outputFile: String? = null, temporaryDurationMinutes: Int? = null): GetClusterCredentialResult

Return

A collection of values returned by getClusterCredential.

Parameters

clusterId

The id of target cluster.

outputFile

File name where to save the returned KubeConfig (after running pulumi preview).

temporaryDurationMinutes

Automatic expiration time of the returned credential. The valid value between 15 and 4320, in minutes. When this field is omitted, the expiration time will be determined by the system automatically and the result will be in the attributed field expiration.

See also


Return

A collection of values returned by getClusterCredential.

Parameters

argument

Builder for com.pulumi.alicloud.cs.kotlin.inputs.GetClusterCredentialPlainArgs.

See also