alicloud.cs.getClusterCredential
Explore with Pulumi AI
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.
Using getClusterCredential
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClusterCredential(args: GetClusterCredentialArgs, opts?: InvokeOptions): Promise<GetClusterCredentialResult>
function getClusterCredentialOutput(args: GetClusterCredentialOutputArgs, opts?: InvokeOptions): Output<GetClusterCredentialResult>
def get_cluster_credential(cluster_id: Optional[str] = None,
output_file: Optional[str] = None,
temporary_duration_minutes: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterCredentialResult
def get_cluster_credential_output(cluster_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
temporary_duration_minutes: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterCredentialResult]
func GetClusterCredential(ctx *Context, args *GetClusterCredentialArgs, opts ...InvokeOption) (*GetClusterCredentialResult, error)
func GetClusterCredentialOutput(ctx *Context, args *GetClusterCredentialOutputArgs, opts ...InvokeOption) GetClusterCredentialResultOutput
> Note: This function is named GetClusterCredential
in the Go SDK.
public static class GetClusterCredential
{
public static Task<GetClusterCredentialResult> InvokeAsync(GetClusterCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetClusterCredentialResult> Invoke(GetClusterCredentialInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterCredentialResult> getClusterCredential(GetClusterCredentialArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cs/getClusterCredential:getClusterCredential
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The id of target cluster.
- Output
File string - File name where to save the returned KubeConfig (after running
pulumi preview
). - Temporary
Duration intMinutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
- Cluster
Id string - The id of target cluster.
- Output
File string - File name where to save the returned KubeConfig (after running
pulumi preview
). - Temporary
Duration intMinutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
- cluster
Id String - The id of target cluster.
- output
File String - File name where to save the returned KubeConfig (after running
pulumi preview
). - temporary
Duration IntegerMinutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
- cluster
Id string - The id of target cluster.
- output
File string - File name where to save the returned KubeConfig (after running
pulumi preview
). - temporary
Duration numberMinutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
- cluster_
id str - The id of target cluster.
- output_
file str - File name where to save the returned KubeConfig (after running
pulumi preview
). - temporary_
duration_ intminutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
- cluster
Id String - The id of target cluster.
- output
File String - File name where to save the returned KubeConfig (after running
pulumi preview
). - temporary
Duration NumberMinutes - Automatic expiration time of the returned credential. The valid value between
15
and4320
, 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 fieldexpiration
.
getClusterCredential Result
The following output properties are available:
- Pulumi.
Ali Cloud. CS. Outputs. Get Cluster Credential Certificate Authority - (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- Cluster
Id string - The id of target cluster.
- Cluster
Name string - The name of target cluster.
- Expiration string
- Expiration time of kube config. Format: UTC time in rfc3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Config string - (Sensitive) The kube config to use to authenticate with the cluster.
- Output
File string - Temporary
Duration intMinutes
- Get
Cluster Credential Certificate Authority - (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- Cluster
Id string - The id of target cluster.
- Cluster
Name string - The name of target cluster.
- Expiration string
- Expiration time of kube config. Format: UTC time in rfc3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Config string - (Sensitive) The kube config to use to authenticate with the cluster.
- Output
File string - Temporary
Duration intMinutes
- Get
Cluster Credential Certificate Authority - (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- cluster
Id String - The id of target cluster.
- cluster
Name String - The name of target cluster.
- expiration String
- Expiration time of kube config. Format: UTC time in rfc3339.
- id String
- The provider-assigned unique ID for this managed resource.
- kube
Config String - (Sensitive) The kube config to use to authenticate with the cluster.
- output
File String - temporary
Duration IntegerMinutes
- Get
Cluster Credential Certificate Authority - (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- cluster
Id string - The id of target cluster.
- cluster
Name string - The name of target cluster.
- expiration string
- Expiration time of kube config. Format: UTC time in rfc3339.
- id string
- The provider-assigned unique ID for this managed resource.
- kube
Config string - (Sensitive) The kube config to use to authenticate with the cluster.
- output
File string - temporary
Duration numberMinutes
- Get
Cluster Credential Certificate Authority - (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- cluster_
id str - The id of target cluster.
- cluster_
name str - The name of target cluster.
- expiration str
- Expiration time of kube config. Format: UTC time in rfc3339.
- id str
- The provider-assigned unique ID for this managed resource.
- kube_
config str - (Sensitive) The kube config to use to authenticate with the cluster.
- output_
file str - temporary_
duration_ intminutes
- Property Map
- (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
- cluster
Id String - The id of target cluster.
- cluster
Name String - The name of target cluster.
- expiration String
- Expiration time of kube config. Format: UTC time in rfc3339.
- id String
- The provider-assigned unique ID for this managed resource.
- kube
Config String - (Sensitive) The kube config to use to authenticate with the cluster.
- output
File String - temporary
Duration NumberMinutes
Supporting Types
GetClusterCredentialCertificateAuthority
- Client
Cert string - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- Client
Key string - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- Cluster
Cert string - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
- Client
Cert string - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- Client
Key string - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- Cluster
Cert string - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
- client
Cert String - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- client
Key String - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- cluster
Cert String - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
- client
Cert string - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- client
Key string - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- cluster
Cert string - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
- client_
cert str - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- client_
key str - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- cluster_
cert str - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
- client
Cert String - The base64 encoded client certificate data required to communicate with your cluster. Add this to the client-certificate-data section of the kube config file for your cluster.
- client
Key String - The base64 encoded client key data required to communicate with your cluster. Add this to the client-key-data section of the kube config file for your cluster.
- cluster
Cert String - The base64 encoded cluster certificate data required to communicate with your cluster. Add this to the certificate-authority-data section of the kube config file for your cluster.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.