Querying the Middleware List
Function
This API is used to query the middleware list. The server list can be queried by middleware name.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/asset/midwares
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
No |
String |
Enterprise project ID of the tenant |
file_name |
No |
String |
JAR file name |
category |
No |
String |
Type. Its value can be:
|
limit |
No |
Integer |
Default value: 10 |
offset |
No |
Integer |
Default value: 0 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-auth-token |
Yes |
String |
User token It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_num |
Integer |
Total number of JAR packages |
data_list |
Array of JarPackageStatisticsResponseInfo objects |
JAR package statistics list |
Example Requests
The first 10 middleware records whose name is rt.jar and type is host are queried by default.
GET https://{endpoint}/v5/{project_id}/asset/midwares?file_name=rt.jar&category=host
Example Responses
Status code: 200
JarPackage statistics
{ "data_list" : [ { "file_name" : "rt.jar", "num" : 18 } ], "total_num" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
JarPackage statistics |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot