Get the versions of a component

Request

GET https://{hostname}:{port}
    /cli/component/versions?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
component string true Name or ID of the component
inactive boolean false Specify true to include archived versions; the default is false
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.
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Example

curl -k -u jsmith:passwd 
   
  "https://deployserver.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.