本文为您提供几个CDN操作事件的相关示例。

RAM用户通过控制台调用CDN

{
    "apiVersion": "2014-11-11",
    "eventId": "1f869a5d-7542-4f76-94e0-5c24b520****",
    "eventName": "AddCdnDomain",
    "eventSource": "cdn.aliyuncs.com",
    "eventTime": "2016-01-05T03:30:58Z",
    "eventType": "ApiCall",
    "eventVersion": "1",
    "recipientAccountId": "102440540619****",
    "requestId": "AF2FBB8D-64E1-4CC1-8849-E35C5BDB53A4",
    "requestParameters": {
        "CdnType": "web",
        "DomainName": "test2.jaso****.com",
        "SourceType": "oss",
        "Sources": "sampleshared.oss-cn-hangzhou.aliyuncs.com"
    },
    "serviceName": "Cdn",
    "sourceIpAddress": "42.120.XX.XX",
    "userAgent": "AliyunConsole",
    "userIdentity": {
        "type": "ram-user",
        "accountId": "102440540619****",
        "principalId": "24894915196108****",
        "userName": "lisi",
        "sessionContext": {
            "attributes": {
                "creationDate": "2016-01-05T03:30:58Z",
                "mfaAuthenticated": "false"
            }
        }
    }
}

RAM用户通过SDK调用CDN

{
    "apiVersion": "2014-11-11",
    "eventId": "1b6a3ec7-576b-435f-b249-9edca1e9****",
    "eventName": "AddCdnDomain",
    "eventSource": "cdn.aliyuncs.com",
    "eventTime": "2016-01-05T03:30:58Z",
    "eventType": "ApiCall",
    "eventVersion": "1",
    "recipientAccountId": "102440540619****",
    "requestId": "179CDCB1-CC2D-496A-BE38-723CBAEA241A",
    "requestParameters": {
        "CdnType": "web",
        "DomainName": "test2.jaso****.com",
        "SourceType": "oss",
        "Sources": "sampleshared.oss-cn-hangzhou.aliyuncs.com"
    },
    "serviceName": "Cdn",
    "sourceIpAddress": "42.120.XX.XX",
    "userAgent": "aliyuncli/2.0.6",
    "userIdentity": {
        "type": "ram-user",
        "accountId": "102440540619****",
        "principalId": "24894915196108****",
        "accessKeyId": "55nCtAwmPLkk****",
        "userName": "lisi"
    }
}