Error translation

New-EdgeDiagnosticsErrorTranslation

Synopsis

Translate error string.

Syntax

New-EdgeDiagnosticsErrorTranslation [-ErrorCode] <String> [-TraceForwardLogs] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Launches an asynchronous request to fetch a summary and logs for an error with a specific reference code. The error logs are from the last 6 or 24 hours depending on the server and traffic conditions.

You can also translate any Global Request Number (GRN) generated by the Property Manager's Global Request Number behavior.

For operations in progress, the returned object contains retryAfter, requestId, and link. In this case, wait for the duration of the retryAfter interval, then either use the requestId to run the Get-EdgeDiagnosticsErrorTranslation operation or simply GET the link.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑ErrorCode
Required

An alphanumeric part of the error reference code you want to get the data for.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑TraceForwardLogs

If present, the function gets logs from all edge servers involved in serving the request. If absent, gets logs only from the edge server where the error occurred. Tracing forward logs may prolong the time of fetching data.

Related Links