Domain name for API request: tke.tencentcloudapi.com.
This API is used to query cluster access addresses, including private network address, public network address, public network domain name, and security policy for public network access.
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: DescribeClusterEndpoints. |
Version | Yes | String | Common Params. The value used for this API: 2018-05-25. |
Region | No | String | Common Params. This parameter is not required for this API. |
ClusterId | Yes | String | Cluster ID |
Parameter Name | Type | Description |
---|---|---|
CertificationAuthority | String | CA certificate of cluster APIServer |
ClusterExternalEndpoint | String | Public network access address of cluster APIServer |
ClusterIntranetEndpoint | String | Private network access address of cluster APIServer |
ClusterDomain | String | Domain name of cluster APIServer Note: This field may return null , indicating that no valid values can be obtained. |
ClusterExternalACL | Array of String | Public network access ACL of cluster APIServer Note: This field may return null , indicating that no valid values can be obtained. |
ClusterExternalDomain | String | Public network domain name Note: This field may return null , indicating that no valid values can be obtained. |
ClusterIntranetDomain | String | Private network domain name Note: This field may return null , indicating that no valid values can be obtained. |
SecurityGroup | String | Public network security group Note: This field may return null , indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to query cluster access addresses.
POST / HTTP/1.1
Host: tke.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeClusterEndpoints
<Common request parameters>
{
"ClusterId": "cls-65r1c5nu"
}
{
"Response": {
"CertificationAuthority": "",
"ClusterIntranetDomain": "cls.domain",
"ClusterExternalDomain": "cls.domain",
"SecurityGroup": "sg-2quou3re",
"ClusterExternalEndpoint": "12.34.56.78",
"ClusterIntranetEndpoint": "10.0.0.1",
"ClusterDomain": "cls-65r1c5nu.ccs.tencent-cloud.com",
"ClusterExternalACL": [
"10.0.0.0/24"
],
"RequestId": "33483fde-efec-4d3c-8ff6-340d9dbc2d01"
}
}
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.ComponentClientHttp | Internal HTTP client error. |
FailedOperation.KubeCommon | Kubernetes API error. |
FailedOperation.KubernetesClientBuildError | Failed to create the Kubernetes client. |
InternalError | Internal error. |
InternalError.ComponentClientHttp | Internal HTTP client error |
InternalError.KubeClientConnection | Failed to connect to the user’s Kubernetes cluster. |
InternalError.UnexpectedInternal | Unknown internal error. |
InvalidParameter | Parameter error. |
InvalidParameter.Param | Invalid parameter. |
ResourceNotFound.ClusterNotFound | The cluster does not exist. |
ResourceNotFound.KubeResourceNotFound | The specified resource is not found in the Kubernetes cluster. |
ResourceUnavailable.ClusterInAbnormalStat | Abnormal cluster status. |
UnauthorizedOperation.CamNoAuth | The API has no CAM permissions. |
문제 해결에 도움이 되었나요?