Revokes the Kubeconfig for an ASM instance and generates a new Kubeconfig.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicemesh:RevokeKubeconfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceMeshId |
string |
Yes |
The ID of the Service Mesh instance. |
cf08a11940e8c46c48bc791fcdb3**** |
| PrivateIpAddress |
boolean |
No |
Specifies whether to return a Kubeconfig for internal access. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7CF71C8B-79DD-150F-929E-267C51C5E311 |
| Kubeconfig |
string |
The new Kubeconfig that is generated after the revocation. |
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: ***** |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.