Updating Lifecycle of a System
While creating a system you have option to create it in either ‘Planned’ , 'Fully Operational', 'Partially Operational', or ‘Not Operational’ state. You create a system in Planned state when you do not have the physical instance of system.
You update the lifecycle of the system from Planned to other states when you receive the physical instance of the system.
-
Planned → Fully Operational or Partially Operational
-
Fully Operational → Partially Operational or Not Operational
-
Partially Operational → Fully Operational or Not Operational
-
Not Operational → Fully Operational, Partially Operational, Dispose, Retire, or Sold
-
Dispose → Fully Operational or Partially Operational or Retire
-
Retire → Sold
Request
-
HTTP Method: PUT
-
URL: Application_URL/services/api/v1/systems({systemId})/lifecycle?lifecycle=<LIFECYCLE>
-
Query Parameter: lifecycle
lifecycle: specifies the value of the lifecycle that you want to change to. Possible value is 2.
-
Example URL: application URI/ain/services/api/v1/systems(E0B15BE85E2B41FBA06069B8D61CEB09)/lifecycle?lifecycle=2
-
Authorization: You must have the roles SYSTEM_EDIT or SYSTEM_DELETE assigned to your user ID in the SAP Cloud Platform account.
-
Request Schema: To know about fields that you can use in a request payload, refer to the request schema in the https://help.sap.com/doc/85c7e55a3d214e05843cb996a3ba1700/1902/en-US/systems.html#systems__systemId___lifecycle_put file.
Response
-
If the system updates the lifecycle of the system successfully, system returns the details of the updated system in the response payload.
For more information, see https://help.sap.com/doc/85c7e55a3d214e05843cb996a3ba1700/1902/en-US/systems.html#systems__systemId___lifecycle_put .
-
If the system cannot update the system successfully, system returns appropriate error code in the response payload.
For more information, see https://help.sap.com/doc/85c7e55a3d214e05843cb996a3ba1700/1902/en-US/systems.html#systems__systemId___lifecycle_put.