ApsaraDB RDS

Updated at:

ActionTrail records events related to ApsaraDB RDS, including the event time, region, and the RDS instance involved. Sample event logs and their key fields are described below.

Restart an RDS instance using an Alibaba Cloud account in the console

The following example shows the event log generated when an Alibaba Cloud account restarted RDS instance rm-bp18vn5itslhw**** in the China (Hangzhou) region at 15:34:58 on August 4, 2021 (UTC+8).

{
  "eventId": "4EC856C0-A735-52D0-A7E6-E5CD09A5BCD4",
  "eventVersion": 1,
  "responseElements": {
    "RequestId": "4EC856C0-A735-52D0-A7E6-E5CD09A5BCD4"
  },
  "eventSource": "rds-inc-share.aliyuncs.com",
  "requestParameters": {
    "charset": "UTF-8",
    "AcsHost": "rds-inc-share.aliyuncs.com",
    "AcsProduct": "Rds",
    "RequestId": "4EC856C0-A735-52D0-A7E6-E5CD09A5BCD4",
    "DBInstanceId": "rm-bp18vn5itslhw****",
    "AcceptLanguage": "zh-CN",
    "HostId": "rds-inc-share.aliyuncs.com"
  },
  "sourceIpAddress": "192.168.XX.XX",
  "userAgent": "rdsnext.console.aliyun.com",
  "eventType": "ApiCall",
  "referencedResources": {
    "ACS::RDS::DBInstance": [
      "rm-bp18vn5itslhw****"
    ]
  },
  "userIdentity": {
    "sessionContext": {
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "2021-08-04T07:34:58Z"
      }
    },
    "accountId": "147395807376****",
    "principalId": "147395807376****",
    "type": "root-account",
    "userName": "root"
  },
  "serviceName": "Rds",
  "additionalEventData": {
    "Scheme": "http",
    "CallerBid": "26842"
  },
  "apiVersion": "2014-08-15",
  "requestId": "4EC856C0-A735-52D0-A7E6-E5CD09A5BCD4",
  "eventTime": "2021-08-04T07:34:58Z",
  "isGlobal": false,
  "acsRegion": "cn-hangzhou",
  "eventName": "RestartDBInstance"
}

Key fields in this example:

  • userIdentity.type: the identity type of the requester. root-account indicates an Alibaba Cloud account.

  • serviceName: the Alibaba Cloud service that generated the event. Rds indicates ApsaraDB RDS.

  • eventName: the event name. RestartDBInstance indicates an RDS instance restart.

  • referencedResources: the resources related to the event. {"ACS::RDS::DBInstance": ["rm-bp18vn5itslhw****"} identifies the RDS instance with ID rm-bp18vn5itslhw****.

  • acsRegion: the region where the event occurred. cn-hangzhou indicates the China (Hangzhou) region.

  • eventTime: the event time in UTC. 2021-08-04T07:34:58Z corresponds to 15:34:58 on August 4, 2021 (UTC+8).

Restart an RDS instance as a RAM user in the console

The following example shows the event log generated when RAM user Alice restarted RDS instance rm-bp15hkr5tb57v**** in the China (Hangzhou) region at 10:54:38 on August 4, 2021 (UTC+8).

{
  "apiVersion": "2014-08-15",
  "requestId": "532F2CED-F931-57FC-B08E-5AF8FF443DD5",
  "eventType": "ApiCall",
  "userIdentity": {
    "sessionContext": {
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "2021-08-04T02:54:38Z"
      }
    },
    "accountId": "183080612160****",
    "principalId": "20816241517167****",
    "type": "ram-user",
    "userName": "Alice"
  },
  "acsRegion": "cn-hangzhou",
  "eventName": "RestartDBInstance",
  "requestParameters": {
    "charset": "UTF-8",
    "AcsHost": "rds-inc-share.aliyuncs.com",
    "AcsProduct": "Rds",
    "RequestId": "532F2CED-F931-57FC-B08E-5AF8FF443DD5",
    "DBInstanceId": "rm-bp15hkr5tb57v****",
    "AcceptLanguage": "zh-CN",
    "HostId": "rds-inc-share.aliyuncs.com"
  },
  "eventSource": "rds-inc-share.aliyuncs.com",
  "serviceName": "Rds",
  "eventTime": "2021-08-04T02:54:38Z",
  "referencedResources": {
    "DBInstance": [
      "rm-bp15hkr5tb57v****"
    ],
    "ACS::RDS::DBInstance": [
      "rm-bp15hkr5tb57v****"
    ]
  },
  "userAgent": "rdsnext.console.aliyun.com",
  "eventId": "532F2CED-F931-57FC-B08E-5AF8FF443DD5",
  "additionalEventData": {
    "Scheme": "http"
  },
  "responseElements": {
    "RequestId": "532F2CED-F931-57FC-B08E-5AF8FF443DD5"
  },
  "errorCode": "",
  "errorMessage": "",
  "eventVersion": "1",
  "sourceIpAddress": "192.168.XX.XX"
}

Key fields in this example:

  • userIdentity.type: the identity type of the requester. ram-user indicates a RAM user.

  • userIdentity.userName: the username of the RAM user.

  • serviceName: the Alibaba Cloud service that generated the event. Rds indicates ApsaraDB RDS.

  • eventName: the event name. RestartDBInstance indicates an RDS instance restart.

  • referencedResources: the resources related to the event. {"DBInstance": ["rm-bp15hkr5tb57v****"],"ACS::RDS::DBInstance": ["rm-bp15hkr5tb57v****"]} identifies the RDS instance with ID rm-bp15hkr5tb57v****.

  • acsRegion: the region where the event occurred. cn-hangzhou indicates the China (Hangzhou) region.

  • eventTime: the event time in UTC. 2021-08-04T02:54:38Z corresponds to 10:54:38 on August 4, 2021 (UTC+8).

Restart an RDS instance by calling the RestartDBInstance operation using an AccessKey pair

The following example shows the event log generated when an Alibaba Cloud account restarted RDS instance rm-1udt95gm98274**** in the China (Shanghai) region at 10:29:37 on August 4, 2021 (UTC+8) by calling the RestartDBInstance operation. The AccessKey pair used has AccessKey ID LTAI.

{
  "eventId": "55149DB3-9B17-5F96-99D7-10BCEC5A669D",
  "eventVersion": 1,
  "responseElements": {
    "RequestId": "55149DB3-9B17-5F96-99D7-10BCEC5A669D"
  },
  "eventSource": "rds.aliyuncs.com",
  "requestParameters": {
    "AcsHost": "rds.aliyuncs.com",
    "AcsProduct": "Rds",
    "RequestId": "55149DB3-9B17-5F96-99D7-10BCEC5A669D",
    "DBInstanceId": "rm-1udt95gm98274****",
    "HostId": "rds.aliyuncs.com",
    "ClientToken": "4d31085d-8403-4f43-a600-41294335****"
  },
  "sourceIpAddress": "192.168.XX.XX",
  "userAgent": "Apache-HttpClient/4.5.2 (Java/1.8.0_191)",
  "eventType": "ApiCall",
  "referencedResources": {
    "ACS::RDS::DBInstance": [
      "rm-1udt95gm98274****"
    ]
  },
  "userIdentity": {
    "accessKeyId": "LTAI****************",
    "sessionContext": {
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "2021-08-04T02:29:37Z"
      }
    },
    "accountId": "514024858446****",
    "principalId": "514024858446****",
    "type": "root-account",
    "userName": "root"
  },
  "serviceName": "Rds",
  "additionalEventData": {
    "Scheme": "https",
    "CallerBid": "26888"
  },
  "apiVersion": "2014-08-15",
  "requestId": "55149DB3-9B17-5F96-99D7-10BCEC5A669D",
  "eventTime": "2021-08-04T02:29:37Z",
  "isGlobal": false,
  "acsRegion": "cn-shanghai",
  "eventName": "RestartDBInstance"
}

Key fields in this example:

  • userIdentity.accessKeyId: the AccessKey ID used to call the API. The value is LTAI.

  • userIdentity.principalId: the ID of the account that owns the AccessKey pair. The value is 514024858446****.

  • userIdentity.type: the identity type of the requester. root-account indicates an Alibaba Cloud account.

  • serviceName: the Alibaba Cloud service that generated the event. Rds indicates ApsaraDB RDS.

  • eventName: the event name. RestartDBInstance indicates an RDS instance restart.

  • referencedResources: the resources related to the event. {"ACS::RDS::DBInstance": ["rm-1udt95gm98274****"]} identifies the RDS instance with ID rm-1udt95gm98274****.

  • acsRegion: the region where the event occurred. cn-shanghai indicates the China (Shanghai) region.

  • eventTime: the event time in UTC. 2021-08-04T02:29:37Z corresponds to 10:29:37 on August 4, 2021 (UTC+8).

Restart an RDS instance by assuming a RAM role as a RAM user

The following example shows the event log generated when a RAM user of the Alibaba Cloud account 165367888785**** restarted RDS instance rm-bp1cw83fsi6j3**** in the China (Hangzhou) region at 14:15:46 on August 2, 2021 (UTC+8). The RAM user performed this operation by assuming the aliyunid-ag-ram-role-admin RAM role, which belongs to the Alibaba Cloud account 109052579984****.

{
  "eventId": "191D3EE5-82C7-48BC-B128-37A0BE30FF38",
  "eventVersion": 1,
  "responseElements": {
    "RequestId": "191D3EE5-82C7-48BC-B128-37A0BE30FF38"
  },
  "eventSource": "rds-inc-share.aliyuncs.com",
  "requestParameters": {
    "stsTokenPrincipalName": "aliyunid-ag-ram-role-admin/default",
    "charset": "UTF-8",
    "AcsHost": "rds-inc-share.aliyuncs.com",
    "AcsProduct": "Rds",
    "RequestId": "191D3EE5-82C7-48BC-B128-37A0BE30FF38",
    "DBInstanceId": "rm-bp1cw83fsi6j3****",
    "AcceptLanguage": "zh-CN",
    "HostId": "rds-inc-share.aliyuncs.com",
    "stsTokenPlayerUid": 165367888785****
  },
  "sourceIpAddress": "Internal",
  "userAgent": "rdsnext.console.aliyun.com",
  "eventType": "ApiCall",
  "referencedResources": {
    "ACS::RDS::DBInstance": [
      "rm-bp1cw83fsi6j3****"
    ]
  },
  "userIdentity": {
    "accessKeyId": "STS.****************",
    "sessionContext": {
      "attributes": {
        "mfaAuthenticated": "false",
        "creationDate": "2021-08-02T06:15:46Z"
      }
    },
    "accountId": "109052579984****",
    "principalId": "36661865364550****:default",
    "type": "assumed-role",
    "userName": "aliyunid-ag-ram-role-admin:default"
  },
  "serviceName": "Rds",
  "additionalEventData": {
    "Scheme": "http",
    "CallerBid": "26842"
  },
  "apiVersion": "2014-08-15",
  "requestId": "191D3EE5-82C7-48BC-B128-37A0BE30FF38",
  "eventTime": "2021-08-02T06:15:46Z",
  "isGlobal": false,
  "acsRegion": "cn-hangzhou",
  "eventName": "RestartDBInstance"
}

Key fields in this example:

  • userIdentity.type: the identity type of the requester. assumed-role indicates a RAM role.

  • userIdentity.userName: the username of the requester, in the format {roleName}:{sessionName}. roleName is the name of the assumed RAM role, and sessionName is the name specified when the RAM user assumed the role. The value in this example is aliyunid-ag-ram-role-admin:default, where aliyunid-ag-ram-role-admin is the role name and default is the session name.

  • requestParameters.stsTokenPlayerUid: the ID of the Alibaba Cloud account that owns the RAM user. The value is 165367888785****.

  • referencedResources: the resources related to the event. {"ACS::RDS::DBInstance": ["rm-bp1cw83fsi6j3****"]} identifies the RDS instance with ID rm-bp1cw83fsi6j3****.

  • serviceName: the Alibaba Cloud service that generated the event. Rds indicates ApsaraDB RDS.

  • eventName: the event name. RestartDBInstance indicates an RDS instance restart.

  • acsRegion: the region where the event occurred. cn-hangzhou indicates the China (Hangzhou) region.

  • eventTime: the event time in UTC. 2021-08-02T06:15:46Z corresponds to 14:15:46 on August 2, 2021 (UTC+8).