Call the DescribeComponents API to retrieve the component versions required to create an application deployment.
Try it now
Test
RAM authorization
Request syntax
GET /pop/v1/sam/resource/components HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The application ID. |
d700e680-aa4d-4ec1-afc2-6566b5ff**** |
| Type |
string |
Yes |
The supported component type. Valid values:
|
TOMCAT |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information. |
success |
| TraceId |
string |
The trace ID used to query call details. |
0a98a02315955564772843261e**** |
| Data |
array<object> |
An array of supported application components. |
|
|
object |
Details of a single component. |
||
| Type |
string |
The component type. |
JDK |
| ComponentKey |
string |
The component ID. |
Open JDK 8 |
| ComponentDescription |
string |
The component description. |
Open JDK 8 |
| Expired |
boolean |
Indicates whether the component is expired. Valid values:
|
false |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code.
|
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": [
{
"Type": "JDK",
"ComponentKey": "Open JDK 8",
"ComponentDescription": "Open JDK 8",
"Expired": false
}
],
"ErrorCode": "",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidComponentType.NotFound | The specified Type does not exist. | The specified Type does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.