Uploading a Source Map File for Web Monitoring
Function
This API is used to upload a source map file for web monitoring.
URI
POST /v1/apm2/openapi/rum/v1/sourcemap-upLoad/{app_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
app_id |
Yes |
String |
Website ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
|
x-business-id |
Yes |
String |
Application ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
file |
No |
File |
Source map file to be uploaded. It cannot exceed 20 MB. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
result |
String |
File upload result. |
|
status |
String |
File upload status. |
Example Requests
Upload a source map file for web monitoring.
/v1/apm2/openapi/rum/v1/sourcemap-upLoad/{app_id}
{
"file" : "app.35f924a1.js.map"
}
Example Responses
Status code: 200
OK: The request is successful.
{
"result" : "app.35f924a1.js.map",
"status" : "success"
}
Status code: 400
Bad Request: Semantic or parameter error.
{
"error_code" : "apm2.00000001",
"error_msg" : "internal error",
"hint" : null
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK: The request is successful. |
|
400 |
Bad Request: Semantic or parameter error. |
|
401 |
Unauthorized: No permissions. |
|
403 |
Forbidden: Access forbidden. |
|
404 |
Not Found: The requested resource is not found. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot