ActionTrail records the operations that are performed on your Alibaba Cloud resources. You can query operation records in the ActionTrail console and store audit events to a Logstore in Log Service or a bucket in Object Storage Service (OSS). The operation records stored by ActionTrail can be used for security analysis, resource change tracking, and compliance audit. mPaaS is integrated with Alibaba Cloud ActionTrail.
mPaaS operation logs recorded in ActionTrail
Logs stored in ActionTrail are mainly API events. mPaaS allows you to configure audit for key API operations.
Details about key API operations
Component that the API operation belongs to | PopAPI name | Function |
---|---|---|
mPaaS Synchronization Service (MSS) | UpdateMssSignStatus | Update the status of the signature verification switch. |
mPaaS Synchronization Service (MSS) | UpdateMssConfigStatus | Update bizType status. |
mPaaS Synchronization Service (MSS) | UpdateMssConfig | Update bizType. |
mPaaS Synchronization Service (MSS) | CreateMssGloblaSyncData | Push a global sync message. |
mPaaS Synchronization Service (MSS) | CreateMssSingleSyncData | Create a single sync message. |
Message Push Service (MPS) | PushMpsBroadcast | Push a broadcast message. |
Message Push Service (MPS) | PushMpsMultiple | Send a message to a group of contacts. |
Message Push Service (MPS) | PushMpsTemplate | Send a template message. |
Message Push Service (MPS) | PushMpsSimple | Send a simple message. |
Message Push Service (MPS) | UpdateMpsKeys | Update information about a private key. |
Message Push Service (MPS) | UpdateMpsCert | Update a push certificate. |
Mobile Delivery Service (MDS) | AddMdsMiniConfig | Add the configuration information about a mini program. |
Mobile Delivery Service (MDS) | DeleteMdsMiniConfig | Delete the configuration information about a mini program. |
Mobile Delivery Service (MDS) | UpdateMdsMiniConfig | Update the configuration information about a mini program. |
Mobile Delivery Service (MDS) | DeleteMdsResourceConfig | Delete a rule about resource release. |
Mobile Delivery Service (MDS) | UpdateMdsResourceConfig | Update a rule about resource release. |
Mobile Delivery Service (MDS) | UpdateMdsWhitelist | Update a whitelist. |
Mobile Delivery Service (MDS) | DeleteMdsWhitelist | Delete a whitelist. |
Mobile Delivery Service (MDS) | ImportMdsClientSwitch | Import switch configurations. |
Mobile Delivery Service (MDS) | CreateMdsClientSwitch | Create a switch. |
Mobile Delivery Service (MDS) | UpdateMdsClientSwitch | Update a switch. |
Mobile Delivery Service (MDS) | CreateMdsMiniprogramTask | Create a task for releasing a mini program. |
Mobile Delivery Service (MDS) | DeleteMdsMiniprogram | Delete a mini program. |
Mobile Delivery Service (MDS) | CreateMdsNebualTask | Create a task for releasing an offline package. |
Mobile Delivery Service (MDS) | DeleteMdsNebula | Delete an offline package. |
Mobile Delivery Service (MDS) | DeleteMdsHotpatchResource | Delete a Hotpatch resource. |
Mobile Delivery Service (MDS) | CreateMdsHotpatchTask | Create a Hotpatch task. |
Mobile Delivery Service (MDS) | UpdateMdsHotpatchTaskStatus | Update the status of a Hotpatch task. |
Mobile Delivery Service (MDS) | CreateMdsHotpatchRollbackTask | Create a Hotpatch rollback task. |
Mobile Delivery Service (MDS) | CreateMdsUpgradeTask | Create a task for releasing an upgrade package. |
Mobile Delivery Service (MDS) | DeleteMdsUpgradePackage | Delete an upgrade package. |
Mobile Delivery Service (MDS) | UpdateMdsUpgradeTaskStatus | Update the status of a task for releasing an upgrade package. |
Mobile Delivery Service (MDS) | BatchDeleteMdsResourceConfig | Delete multiple release rules at the same time. |
Mobile Delivery Service (MDS) | UpdateMdsNebulaTask | Update a task for releasing an offline package. |
mAppCenter | CreateMpaasApp | Create an app. |
mAppCenter | DeleteMpaasApp | Delete an app. |
Mobile Gateway Service (MGS) | SaveMgsApirest | Modify the configurations of HTTP API. |
Mobile Gateway Service (MGS) | SaveMgsConfigencrypt | Modify encryption configurations. |
Mobile Gateway Service (MGS) | SaveMgsConfigcors | Modify cross-region configurations. |
Mobile Gateway Service (MGS) | DeleteMgsApi | Delete API configurations. |
Mobile Gateway Service (MGS) | SaveMgsSys | Modify the configurations of an API group. |
Mobile Gateway Service (MGS) | DeleteMgsSys | Delete the configurations of an API group. |
Mobile Gateway Service (MGS) | SaveMgsConfighandlerswitch | Modify general configurations. |
Sample log
The following code snippet shows a log stored in ActionTrail. The log records the detailed information about the creation of an mPaaS app by calling the CreateMpaasApp operation.
{
"eventId": "108DF5F5-291D-4B4A-85B0-2D887B83CEF7",
"eventVersion": 1,
"responseElements": {
"RequestId": "108DF5F5-291D-4B4A-85B0-2D887B83CEF7",
"ResultCode": "OK",
"ResultContent": {
"RequestId": "",
"Data": {
"AppId": "ONEXPRE18c5509171455",
"Message": "success",
"Data": "success",
"Code": "",
"Success": true
}
}
},
"eventSource": "mpaas.cn-hangzhou.aliyuncs.com",
"requestParameters": {
"AcsHost": "mpaas.cn-hangzhou.aliyuncs.com",
"RequestId": "108DF5F5-291D-4B4A-85B0-2D887B83CEF7",
"WorkspaceId": "default",
"HostId": "mpaas.cn-hangzhou.aliyuncs.com",
"AppName": "action",
"CommonParamsJsonStr": {
"TenantId": "RXPCAMDL",
"AppId": "13FF079171113",
"WorkspaceId": "default",
"OnexFlag": true
},
"TenantId": "RXPCAMDL",
"AppId": "13FF079171113",
"AcsProduct": "mPaaS",
"AcceptLanguage": "zh-CN",
"RegionId": "cn-hangzhou",
"MpaasMappcenterAppCreateJsonStr": {
"OnexFlag": true,
"AppName": "action"
},
" charset": "UTF-8",
"OnexFlag": true
},
"sourceIpAddress": "Internal",
"userAgent": "pre-mpaaspub.console.aliyun.com",
"eventType": "ApiCall",
"userIdentity": {
"sessionContext": {
"attributes": {
"mfaAuthenticated": false,
"creationDate": "2020-12-17T06:55:12Z"
}
},
"accountId": "1103496162005321",
"principalId": "1103496162005321",
"type": "root-account",
"userName": "root"
},
"serviceName": "MobilePaaS",
"additionalEventData": {
"Scheme": "https"
},
"apiVersion": "2020-10-28",
"requestId": "108DF5F5-291D-4B4A-85B0-2D887B83CEF7",
"eventTime": "2020-12-17T06:55:12Z",
"isGlobal": false,
"acsRegion": "cn-hangzhou",
"eventName": "CreateMpaasApp"
}