Queries the content of the kubeconfig file of an Alibaba Cloud Service Mesh (ASM) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
ServiceMeshId String Yes c08ba3fd1e6484b0f8cc1ad8fe10d****

The ID of the ASM instance.

PrivateIpAddress Boolean No false

Specifies whether to query the kubeconfig file that is used for Internet access or internal network access.

Response parameters

Parameter Type Example Description
Kubeconfig String ...

The content of the kubeconfig file of the cluster.

RequestId String 31d3a0f0-07ed-4f6e-9004-1804498c****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeServiceMeshKubeconfig
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&<Common request parameters>

Sample success responses

XML format

<RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
<Kubeconfig>... </Kubeconfig>

JSON format

{
    "RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
    "Kubeconfig": "..."
}

Error codes

For a list of error codes, visit the API Error Center.