All Products
Search
Document Center

Alibaba Cloud Service Mesh:RevokeKubeconfig

Last Updated:Mar 05, 2024

Revokes the kubeconfig file of a Service Mesh (ASM) instance and generates a new kubeconfig file.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ID of the ASM instance for which you want to revoke its kubeconfig file.

cf08a11940e8c46c48bc791fcdb3****
PrivateIpAddressbooleanNo

Specifies whether to return the kubeconfig file for private access.

  • true: returns the kubeconfig file for private access.
  • false: returns the kubeconfig file for public access.
false

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

7CF71C8B-79DD-150F-929E-267C51C5E311
Kubeconfigstring

The new kubeconfig file generated.

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

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2021-12-30Add Operationsee changesets