McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 545

↗ View in doc context
page
545
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::529

finesse.utilities.Utilities.extractHostname(a) Parameters Required Description Type Name Yes The URL from which the hostname of the server is extracted. String url Returns {String} The hostname of the server. For example, if the given URL is https://finesse25.autobot.cvp:8445/desktop/container/?locale=en_US, then the returned hostname will be “finesse25.autobot.cvp”. extractTime(timeStr) Extracts the time in milliseconds from the ISO date string. Example finesse.utilities.Utilities.extractTime('2020-05-25T13:49:42.80Z') Parameters Required Description Type Name Yes The time in ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ) or empty. String timeStr Returns {Long} The number of milliseconds since 1 January 1970 (Unix Epoch). If the timeStr is empty, then the time returned is 0. generateUUID() Generates an RFC1422v4-compliant UUID using pseudorandom numbers. Example finesse.utilities.Utilities.generateUUID() Returns {String} An RFC1422v4-compliant UUID using pseudorandom numbers. For example, 456efbab-d794-4c7a-a731-762e476eb4d3. getAuthHeaderString(configObj) Retrieves the authorization header that is based on SSO or non-SSO deployment. The headers are Bearer or Basic. Example finesse.utilities.Utilities.getAuthHeaderString(finesse.container.Config) Parameters Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 529 Cisco Finesse JavaScript APIs Utilities