Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ServiceMeshId | string | Yes | The ID of the ASM instance for which you want to revoke its kubeconfig file. | cf08a11940e8c46c48bc791fcdb3**** |
PrivateIpAddress | boolean | No | Specifies whether to return the kubeconfig file for private access.
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "7CF71C8B-79DD-150F-929E-267C51C5E311",
"Kubeconfig": "apiVersion: v1 clusters: - cluster: server: https://121.**.**.**:6443 certificate-authority-data: ***** name: kubernetes contexts: - context: cluster: kubernetes user: \"*****\" name: ***** current-context: ***** kind: Config preferences: {} users: - name: \"*****\" user: client-certificate-data: ***** client-key-data: *****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2021-12-30 | Add Operation | see changesets |