Uploads a SourceMap file to ARMS Browser Monitoring.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
arms:UpdateSourceMap | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region to which the SourceMap file is uploaded. | cn-hangzhou |
Pid | string | Yes | 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****** |
FileName | string | Yes | The name of the SourceMap file. | test.js.map |
Version | string | No | We recommend that you do not specify this parameter. | null |
File | string | No | The string of the SourceMap file. | test file content |
Edition | string | No | The version of the SourceMap file. | 0.0.0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A5EC8221-08F2-4C95-9AF1-49FD998C****",
"UploadResult": {
"Fid": "123",
"FileName": "test.js.map",
"UploadTime": "1650272251"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterRegionIdMissing | You must specify regionId. | You must specify regionId. |
400 | InternalError | Internal 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. |
403 | APINotAuthorize | The 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 time | Summary of changes | Operation |
---|---|---|
2024-07-11 | The Error code has changed | View Change Details |
2024-06-19 | The Error code has changed | View Change Details |
2024-03-21 | The Error code has changed | View Change Details |
2024-02-01 | The Error code has changed | View Change Details |
2023-09-04 | The Error code has changed | View Change Details |
2022-06-29 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2022-06-07 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-03-24 | Add Operation | View Change Details |