The get-components operation is used in the following situations:
- to retrieve list of available for installation components
- to check status of already installed components
Note: This operation is supported only in Plesk for Unix.
A request XML packet retrieving status of Plesk Updater includes the get-components operation node:
The graphical representation of the get-components node is as follows:
- The update-id node is required. It specifies the update ID. For info on how to retrieve the update ID, refer to the Retrieving Plesk Updates section. Data type: string.
Response Packet Structure
The get-components node of the output XML packet is presented by type UpdaterGetComponentsOutputType (
updater.xsd) and structured as follows:
- The result node is required. It wraps the response retrieved from the server. Data type: resultType (
- The status node is required. It specifies the execution status of the operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. Is returns the error code if the get-components operation fails. Data type: integer.
- The errtext node is optional. It returns the error message if the get-components operation fails. Data type: string.
- The component node is optional. It holds info on new and existing components. Data type: ComponentType (
If the component node is present in the response packet, the following nodes are required:
- The id node specifies the component ID. Data type: string.
- The action node specifies what to do with the component. It can be installed or upgraded. The unknown value is reserved for actions that are not supported in the current version of the protocol. The up2day value tells that component is up to date. Data type: string. Allowed values: install | upgrade | up2date | unknown.
- The description node holds a brief description of the component. Data type: string.
- The server-build-time node specifies time of last build of the version containing the component. Here we consider version of Plesk on the update server. Data type: timestamp.
- The local-build-time node specifies time of last build of the version containing the component. Here we consider version of Plesk on your server.
- The server-version node specifies Plesk version on the update server. Data type: string.
- The local-version node specifies your current Plesk version. Data type: string.
This request packet retrieves components of the update with ID 8.