Query AIDC List
Query the list of Intelligent Computing Centers for the current enterprise.
GET
https://api.alayanew.com/api/aidc/v1/list
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Response
状态码:application/json
200
code:Int
Code is a common return value format indicating the execution result of the query operation.
0
-1
0 is the success identifier, indicating the operation completed successfully.
data:Array
Enumerates the detailed information of the Intelligent Computing Centers.
data.id:String
Intelligent Computing Center ID, e.g., 2.
data.code:String
Intelligent Computing Center Code, e.g., dev01-2.
data.name:String
Intelligent Computing Center Name.
data.nameEn:String
English name of the Intelligent Computing Center.
data.country:String
Country where the center is located.
data.address:String
Address of the Intelligent Computing Center.
data.endpoInt:String
Access endpoint for the Intelligent Computing Center.
msg:String
Returns error information when the code value is -1.
cURL
Python
JavaScript
Go
Java
curl -X GET 'https://api.alayanew.com/api/aidc/v1/list' -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
403
404
500
{
"code": 0,
"data": [
{
"id": 1,
"code": "cn-beijing-a",
"name": "Beijing Area 1 Computing Center",
"nameEn": "Bei Jing AI Data Center",
"country": "China",
"address": "Beijing",
"osmEndpoInt": "https://osm.hd-01.alayanew.com:20443",
"onlineDate": "2024-03-02 10:00:00",
"createdTime": null
},
{
"id": 2,
"code": "dev01-2",
"name": "Beijing Area 1",
"nameEn": "Bei Jing AI Data Center",
"country": "China",
"address": "Beijing",
"endpoInt": "https://osm.hd-01.alayanew.com:20443"
}
]
}