You can call the ListComponents operation to query the component list. This operation is applicable to applications in an ECS cluster.
Debugging
Request header
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
GET /pop/v5/resource/components HTTPS|HTTP
Request parameters
Response parameters
Element | Type | Sample response | Description |
---|---|---|---|
Code | Integer | 200 |
The Code. |
ComponentList | Array |
The components installed on the host. |
|
Component | |||
ComponentId | String | 1 |
The ID of the component. |
Expired | Boolean | false |
Specifies whether the DRDS instance has expired. |
Type | String | JDK |
The passport type. |
Version | String | oraclejdk7 |
Version. |
Message | String | Success |
The returned message. |
Examples
Sample requests
GET /pop/v5/resource/components HTTP/1.1
Common request headers
Sample success responses
JSON
format
{
"RequestId": "CEAC5952-8DA2-4F2D-9476-5237DA3E****",
"Component": [{
"ComponentId": 1,
"Expired": false,
"Type": "JDK",
"Version": "oraclejdk7"
}],
"Message": "success"
}
Error codes.
For a list of error codes, visit the API Error Center.