...
get_current_image
- Description
- Returns the name of the current image that is loaded on the resource.
- The name corresponds to the imagerevision.imagename column in the database.
- Returning a name implies that the resource is accessible.
- Expected Beginning State
- Expected Ending State
- The resource state should be identical to before get_current_image was called.
- Called By
- Provisioning module's own get_current_image() subroutine.
- Used to determine if the OS and provisioning engine agree on the current image loaded on a resource.
- Can be used to determine if a resource is accessible. A valid string will be returned if the resource is accessible.
- Arguments & Calling Environment
- Must only be called as an object method of an OS object ($os->get_current_image())
- No arguments
- Return Values
- String
- String contains a VCL image name
- 0
- Computer is accessible but failed to determine the current loaded image
- Undefined
- Computer is not accessible
{"serverDuration": 170, "requestCorrelationId": "d4fe89c7bbb3c674"}