1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. getK8sAuthConfig
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    Gets K8S Auth config data source

    Using getK8sAuthConfig

    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 getK8sAuthConfig(args: GetK8sAuthConfigArgs, opts?: InvokeOptions): Promise<GetK8sAuthConfigResult>
    function getK8sAuthConfigOutput(args: GetK8sAuthConfigOutputArgs, opts?: InvokeOptions): Output<GetK8sAuthConfigResult>
    def get_k8s_auth_config(name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetK8sAuthConfigResult
    def get_k8s_auth_config_output(name: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetK8sAuthConfigResult]
    func LookupK8sAuthConfig(ctx *Context, args *LookupK8sAuthConfigArgs, opts ...InvokeOption) (*LookupK8sAuthConfigResult, error)
    func LookupK8sAuthConfigOutput(ctx *Context, args *LookupK8sAuthConfigOutputArgs, opts ...InvokeOption) LookupK8sAuthConfigResultOutput

    > Note: This function is named LookupK8sAuthConfig in the Go SDK.

    public static class GetK8sAuthConfig 
    {
        public static Task<GetK8sAuthConfigResult> InvokeAsync(GetK8sAuthConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetK8sAuthConfigResult> Invoke(GetK8sAuthConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetK8sAuthConfigResult> getK8sAuthConfig(GetK8sAuthConfigArgs args, InvokeOptions options)
    public static Output<GetK8sAuthConfigResult> getK8sAuthConfig(GetK8sAuthConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: akeyless:index/getK8sAuthConfig:getK8sAuthConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    K8S Auth config name
    Name string
    K8S Auth config name
    name String
    K8S Auth config name
    name string
    K8S Auth config name
    name str
    K8S Auth config name
    name String
    K8S Auth config name

    getK8sAuthConfig Result

    The following output properties are available:

    AmTokenExpiration double
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    AuthMethodAccessId string
    AuthMethodAccessId of the Kubernetes auth method
    AuthMethodPrvKeyPem string
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    ClusterApiType string
    Defines types of API access to cluster
    DisableIssValidation bool
    DisableISSValidation is optional parameter to disable ISS validation
    Id string
    K8S Auth config ID
    K8sAuthType string
    Kubernetes authentication type
    K8sCaCert string
    K8SCACert is the CA Cert to use to call into the kubernetes API
    K8sClientCertData string
    K8sClientCertData is the client certificate for k8s client certificate authentication
    K8sClientKeyData string
    K8sClientKeyData is the client key for k8s client certificate authentication
    K8sHost string
    K8SHost is the url string for the kubernetes API
    K8sIssuer string
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    K8sPubKeysPems List<string>
    K8SPublicKeysPEM is the list of public key in PEM format
    K8sTokenReviewerJwt string
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    Name string
    K8S Auth config name
    ProtectionKey string
    The name of the key that protects the K8S Auth config
    RancherApiKey string
    RancherApiKey the bear token for clusterApiTypeRancher
    RancherClusterId string
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    UseLocalCaJwt bool
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
    AmTokenExpiration float64
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    AuthMethodAccessId string
    AuthMethodAccessId of the Kubernetes auth method
    AuthMethodPrvKeyPem string
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    ClusterApiType string
    Defines types of API access to cluster
    DisableIssValidation bool
    DisableISSValidation is optional parameter to disable ISS validation
    Id string
    K8S Auth config ID
    K8sAuthType string
    Kubernetes authentication type
    K8sCaCert string
    K8SCACert is the CA Cert to use to call into the kubernetes API
    K8sClientCertData string
    K8sClientCertData is the client certificate for k8s client certificate authentication
    K8sClientKeyData string
    K8sClientKeyData is the client key for k8s client certificate authentication
    K8sHost string
    K8SHost is the url string for the kubernetes API
    K8sIssuer string
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    K8sPubKeysPems []string
    K8SPublicKeysPEM is the list of public key in PEM format
    K8sTokenReviewerJwt string
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    Name string
    K8S Auth config name
    ProtectionKey string
    The name of the key that protects the K8S Auth config
    RancherApiKey string
    RancherApiKey the bear token for clusterApiTypeRancher
    RancherClusterId string
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    UseLocalCaJwt bool
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
    amTokenExpiration Double
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    authMethodAccessId String
    AuthMethodAccessId of the Kubernetes auth method
    authMethodPrvKeyPem String
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    clusterApiType String
    Defines types of API access to cluster
    disableIssValidation Boolean
    DisableISSValidation is optional parameter to disable ISS validation
    id String
    K8S Auth config ID
    k8sAuthType String
    Kubernetes authentication type
    k8sCaCert String
    K8SCACert is the CA Cert to use to call into the kubernetes API
    k8sClientCertData String
    K8sClientCertData is the client certificate for k8s client certificate authentication
    k8sClientKeyData String
    K8sClientKeyData is the client key for k8s client certificate authentication
    k8sHost String
    K8SHost is the url string for the kubernetes API
    k8sIssuer String
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    k8sPubKeysPems List<String>
    K8SPublicKeysPEM is the list of public key in PEM format
    k8sTokenReviewerJwt String
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    name String
    K8S Auth config name
    protectionKey String
    The name of the key that protects the K8S Auth config
    rancherApiKey String
    RancherApiKey the bear token for clusterApiTypeRancher
    rancherClusterId String
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    useLocalCaJwt Boolean
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
    amTokenExpiration number
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    authMethodAccessId string
    AuthMethodAccessId of the Kubernetes auth method
    authMethodPrvKeyPem string
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    clusterApiType string
    Defines types of API access to cluster
    disableIssValidation boolean
    DisableISSValidation is optional parameter to disable ISS validation
    id string
    K8S Auth config ID
    k8sAuthType string
    Kubernetes authentication type
    k8sCaCert string
    K8SCACert is the CA Cert to use to call into the kubernetes API
    k8sClientCertData string
    K8sClientCertData is the client certificate for k8s client certificate authentication
    k8sClientKeyData string
    K8sClientKeyData is the client key for k8s client certificate authentication
    k8sHost string
    K8SHost is the url string for the kubernetes API
    k8sIssuer string
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    k8sPubKeysPems string[]
    K8SPublicKeysPEM is the list of public key in PEM format
    k8sTokenReviewerJwt string
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    name string
    K8S Auth config name
    protectionKey string
    The name of the key that protects the K8S Auth config
    rancherApiKey string
    RancherApiKey the bear token for clusterApiTypeRancher
    rancherClusterId string
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    useLocalCaJwt boolean
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
    am_token_expiration float
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    auth_method_access_id str
    AuthMethodAccessId of the Kubernetes auth method
    auth_method_prv_key_pem str
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    cluster_api_type str
    Defines types of API access to cluster
    disable_iss_validation bool
    DisableISSValidation is optional parameter to disable ISS validation
    id str
    K8S Auth config ID
    k8s_auth_type str
    Kubernetes authentication type
    k8s_ca_cert str
    K8SCACert is the CA Cert to use to call into the kubernetes API
    k8s_client_cert_data str
    K8sClientCertData is the client certificate for k8s client certificate authentication
    k8s_client_key_data str
    K8sClientKeyData is the client key for k8s client certificate authentication
    k8s_host str
    K8SHost is the url string for the kubernetes API
    k8s_issuer str
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    k8s_pub_keys_pems Sequence[str]
    K8SPublicKeysPEM is the list of public key in PEM format
    k8s_token_reviewer_jwt str
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    name str
    K8S Auth config name
    protection_key str
    The name of the key that protects the K8S Auth config
    rancher_api_key str
    RancherApiKey the bear token for clusterApiTypeRancher
    rancher_cluster_id str
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    use_local_ca_jwt bool
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
    amTokenExpiration Number
    AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
    authMethodAccessId String
    AuthMethodAccessId of the Kubernetes auth method
    authMethodPrvKeyPem String
    AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
    clusterApiType String
    Defines types of API access to cluster
    disableIssValidation Boolean
    DisableISSValidation is optional parameter to disable ISS validation
    id String
    K8S Auth config ID
    k8sAuthType String
    Kubernetes authentication type
    k8sCaCert String
    K8SCACert is the CA Cert to use to call into the kubernetes API
    k8sClientCertData String
    K8sClientCertData is the client certificate for k8s client certificate authentication
    k8sClientKeyData String
    K8sClientKeyData is the client key for k8s client certificate authentication
    k8sHost String
    K8SHost is the url string for the kubernetes API
    k8sIssuer String
    K8SIssuer is the claim that specifies who issued the Kubernetes token
    k8sPubKeysPems List<String>
    K8SPublicKeysPEM is the list of public key in PEM format
    k8sTokenReviewerJwt String
    K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
    name String
    K8S Auth config name
    protectionKey String
    The name of the key that protects the K8S Auth config
    rancherApiKey String
    RancherApiKey the bear token for clusterApiTypeRancher
    rancherClusterId String
    RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
    useLocalCaJwt Boolean
    UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.