VMUtils - Global
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- API reference
The VMUtils script include provides methods for discovery and provisioning of virtual machines.
This script include is available in server-side scripts to convert between UUID and Correlation ID formats.
VMUtils - turnCorrelationIdToUuid(String correlationId)
Converts a correlation ID into a UUID for a virtual machine in the ServiceNow system.
Name | Type | Description |
---|---|---|
correlationId | String | The correlation ID to convert |
Type | Description |
---|---|
String | The UUID, or an empty string if invalid. |
Example
Output:
VMUtils - turnUuidToCorrelationId(String uuid)
Converts a WMware universal unique identifier (UUID) to a format that matches the original format in the ServiceNow system.
vCenter works with UUIDs where the ESXi Linux console worked with this format.
Name | Type | Description |
---|---|---|
uuid | String | The UUID to convert. |
Type | Description |
---|---|
String | The identifier converted to the ServiceNow format. |
Example
Output: