All Products
Search
Document Center

Application Real-Time Monitoring Service:Upload

Last Updated:Nov 05, 2024

Uploads a SourceMap file to ARMS Browser Monitoring.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
arms:UpdateSourceMapupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region to which the SourceMap file is uploaded.

cn-hangzhou
PidstringYes

The application ID.

Log on to the ARMS console. In the left-side navigation pane, choose Browser Monitoring > Browser Monitoring. On the Browser Monitoring page, click the name of an application. The URL in the address bar contains the process ID (PID) of the application. The PID is indicated in the pid=xxx format. The PID is usually percent encoded as xxx%40xxx. You must modify this value to remove the percent encoding. For example, if the PID in the URL is eb4zdose6v%409781be0f44d****, you must replace %40 with @ to obtain eb4zdose6v@9781be0f44d****.

b590lhguqs@8cc3f6354******
FileNamestringYes

The name of the SourceMap file.

test.js.map
VersionstringNo

We recommend that you do not specify this parameter.

null
FilestringNo

The string of the SourceMap file.

test file content
EditionstringNo

The version of the SourceMap file.

0.0.0

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

A5EC8221-08F2-4C95-9AF1-49FD998C****
UploadResultobject

The returned data.

Fidstring

The ID of the SourceMap file.

123
FileNamestring

The name of the SourceMap file.

test.js.map
UploadTimestring

The time when the file was uploaded.

1650272251

Examples

Sample success responses

JSONformat

{
  "RequestId": "A5EC8221-08F2-4C95-9AF1-49FD998C****",
  "UploadResult": {
    "Fid": "123",
    "FileName": "test.js.map",
    "UploadTime": "1650272251"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400ParameterRegionIdMissingYou must specify regionId.You must specify regionId.
400InternalErrorInternal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries.Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries.
403APINotAuthorizeThe current user is not authorized to access the interface.The current user is not authorized to access the interface.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-11The Error code has changedView Change Details
2024-06-19The Error code has changedView Change Details
2024-03-21The Error code has changedView Change Details
2024-02-01The Error code has changedView Change Details
2023-09-04The Error code has changedView Change Details
2022-06-29The request parameters of the API has changed. The response structure of the API has changedView Change Details
2022-06-07The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-03-24Add OperationView Change Details