Get the versions of a component#

Request#

GET https://{hostname}:{port}
    /cli/component/versions?{parameters}
Accept: application/json

Parameter Type Required Description
component string true Name or ID of the component
numResults int false Specify a number greater than 0 to limit the number of results. If numResults is not specified, or is given to be < 1, no limit is applied.
Parameter Type Required Description
Accept application/json true  

Example#

curl -k -u jsmith:passwd 

  "https://myserver.example.com:8443/cli/component/versions?
  component=MyComponent"

Example response#

[
  {
    "id": "1a53a4a6-bfcd-4014-a0ab-83f97077a4d4",
    "name": "1",
    "description": "",
    "type": "FULL",
    "created": 1441381421819,
    "active": true,
    "archived": false,
    "sizeOnDisk": 4096
  },
  {
    "id": "ed2361a4-948c-4646-bda4-7465df0e38b5",
    "name": "2",
    "description": "",
    "type": "FULL",
    "created": 1441381420863,
    "active": true,
    "archived": false,
    "sizeOnDisk": 4096
  }
]

Related CLI command: getComponentVersions.

Parent topic: component resource