Queries the components that are related to applications in Elastic Compute Service (ECS) clusters.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common parameters for API calls.

Request syntax

GET /pop/v5/resource/components HTTP/1.1

Request parameters

No request parameters.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

ComponentList Array of Component

The components.

Component
ComponentId String 1

The ID of the component.

ComponentKey String JDK 7

The key of the component.

Desc String JDK 7

The description of the component.

Expired Boolean false

Indicates whether the component has expired. Valid values:

  • false: The component has not expired.
  • true: The component has expired.
Type String JDK

The type of the component. Valid values:

  • JDK
  • TOMCAT
  • TENGINE
Version String oraclejdk7

The version of the component.

Message String success

The returned message that indicates whether the request is successful.

Examples

Sample requests

GET /pop/v5/resource/components HTTP/1.1
Common request header

Sample success responses

XML format

<Message>success</Message>
<ComponentList>
    <Component>
        <Desc>JDK 7</Desc>
        <Type>JDK</Type>
        <Version>oraclejdk7</Version>
        <ComponentKey>JDK 7</ComponentKey>
        <Expired>false</Expired>
        <ComponentId>1</ComponentId>
    </Component>
</ComponentList>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "ComponentList": {
        "Component": {
            "Desc": "JDK 7",
            "Type": "JDK",
            "Version": "oraclejdk7",
            "ComponentKey": "JDK 7",
            "Expired": false,
            "ComponentId": 1
        }
    },
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.