Domain name for API request: tke.tencentcloudapi.com.
This API is used to modify cluster authentication configuration.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ModifyClusterAuthenticationOptions. |
Version | Yes | String | Common Params. The value used for this API: 2018-05-25. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ClusterId | Yes | String | Cluster ID |
ServiceAccounts | No | ServiceAccountAuthenticationOptions | ServiceAccount authentication configuration |
OIDCConfig | No | OIDCConfigAuthenticationOptions | OIDC authentication configurations |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to modify cluster authentication configuration.
POST / HTTP/1.1
Host: tke.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyClusterAuthenticationOptions
<Common request parameters>
{
"ServiceAccounts": {
"JWKSURI": "https://cls-7ph3twqe.ccs.tencent-cloud.com/openid/v1/jwks",
"Issuer": "https://cls-7ph3twqe.ccs.tencent-cloud.com",
"AutoCreateDiscoveryAnonymousAuth": true
},
"OIDCConfig": {
"AutoCreateOIDCConfig": true,
"AutoCreateClientId": [
"sts"
],
"AutoInstallPodIdentityWebhookAddon": true
},
"ClusterId": "cls-7ph3twqe"
}
{
"Response": {
"RequestId": "f12a6e20-f950-4af9-8f8b-b6329a4961c2"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.KubeCommon | Kubernetes API error. |
InternalError | Internal error. |
InvalidParameter | Parameter error. |
InvalidParameter.Param | Invalid parameter. |
OperationDenied | Operation denied. |
ResourceUnavailable.ClusterState | The cluster’s status does support this operation. |
本页内容是否解决了您的问题?