VKSList
Query the list of elastic container clusters for the current enterprise.
GET
https://api.alayanew.com/api/vks/v1/list
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Query Parameters
aidcId:String
AIDC ID (returns all if not provided).
name:String
Elastic container cluster name.
Response
状态码:application/json
200
code:Int
code is a common return value format, representing the execution result of the query operation
0
-1
0 is a success identifier, indicating the operation completed successfully.
data:Array
Enumerates the detailed information of elastic container clusters.
data.id:String
Elastic container cluster ID, e.g., vcgnci9viua1.
data.aidcId:Int
AIDC ID, e.g., 2.
data.name:String
Elastic container cluster name, e.g., vks003.
data.status:String
Elastic container cluster status, e.g., Running (Available), Paused (Stopped).
msg:String
Returns error information when code is -1.
cURL
Python
JavaScript
Go
Java
curl -X GET 'https://api.alayanew.com/api/vks/v1/list'
-H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
403
404
500
{
"code": 0,
"data": [
{
"name": "vks003",
"id": "vcldkbd8xsiz",
"aidcId": 4,
"status": "Running"
},
{
"name": "vxasd1",
"id": "vcka6re1htzs",
"aidcId": 4,
"status": "Paused"
},
{
"name": "vks0010111111",
"id": "vcgnci9viua1",
"aidcId": 2,
"status": "Running"
}
]
}