获取kubeconfig
查询弹性容器集群的kubeconfig。
GET
https://api.alayanew.com/api/vks/v1/{id}/kubeconfig
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Path Parameters
id:StringRequired
弹性容器集群ID。
Response
状态码:application/json
200
code:Int
code是一种常见的返回值形式,表示查询操作的执行结果。
0
-1
0是成功标识,表示操作成功完成。
data:String
kubeconfig文件详情,(base64加密,需使用base64后解密使用)。
msg:String
code返回值为-1时,返回异常信息。
cURL
Python
JavaScript
Go
Java
curl -X GET 'https://api.alayanew.com/api/vks/v1/vcldkbd8xsiz/kubeconfig'
-H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
404
429
503
504
{
"code": 0,
"data": "eyJhcGlWZXJzaW9uIjoidjEiLCJjbHVzdGVycyI6W3siY2x1c3RlciI6eyJpbnNlY3VyZS1za2lwLXRscy12ZXJpZnkiOnRydWUsInNlcnZlciI6Imh0dHBzOi8vdmNsdXN0ZXIuZGV2MDEtMS56ZXR5dW4uY24vaW5DbHVzdGVyL3ZjM2plZGQ3Y3JuZCJ9LCJuYW1lIjoiemR0ZXN0dmNsdXN0ZXIwMTA5MDIifV0sImNvbnRleHRzIjpbeyJjb250ZXh0Ijp7ImNsdXN0ZXIiOiJ6ZHRlc3R2Y2x1c3RlcjAxMDkwMiIsInVzZXIiOiJ6ZHRlc3R2Y2x1c3RlcjAxMDkwMiJ9LCJuYW1lIjoiemR0ZXN0dmNsdXN0ZXIwMTA5MDIifV0sImN1cnJlbnQtY29udGV4dCI6InpkdGVzdHZjbHVzdGVyMDEwOTAyIiwia2luZCI6IkNvbmZpZyIsInByZWZlcmVuY2VzIjp7fSwidXNlcnMiOlt7Im5hbWUiOiJ6ZHRlc3R2Y2x1c3RlcjAxMDkwMiIsInVzZXIiOnsidG9rZW4iOiJleUpoYkdjaU9pSlNVekkxTmlJc0ltdHBaQ0k2SW5wc1NtMU9Ra05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