全部产品

STS

更新时间:2017-06-07 13:26:11   分享:   

RAM用户通过控制台调用STS切换角色

{
    "apiVersion": "2015-04-01",
    "eventId": "64e9b93e-13da-4ea4-8b72-081069ff4d8c",
    "eventName": "AssumeRole",
    "eventSource": "sts.aliyuncs.com",
    "eventTime": "2016-01-05T02:41:58Z",
    "eventType": "ApiCall",
    "eventVersion": "1",
    "recipientAccountId": "1024405406196576",
    "requestId": "F678C471-BEAA-4DE4-B09E-FD7F5A5248E8",
    "requestParameters": {
        "RoleArn": "acs:ram::43274:role/ram-admin",
        "RoleSessionName": "lisi"
    },
    "serviceName": "Sts",
    "sourceIpAddress": "42.120.74.96",
    "userAgent": "AliyunConsole",
    "userIdentity": {
        "type": "ram-user",
        "accountId": "1024405406196576",
        "principalId": "248949151961082597",
        "userName": "lisi",
        "sessionContext": {
            "attributes": {
                "creationDate": "2016-01-05T02:41:58Z",
                "mfaAuthenticated": "true"
            }
        }
    }
}

RAM用户通过SDK调用STS

{
    "apiVersion": "2015-04-01",
    "eventId": "23f2a6b5-c628-49bb-8dc9-8f9760503bc6",
    "eventName": "AssumeRole",
    "eventSource": "sts.aliyuncs.com",
    "eventTime": "2016-01-05T02:41:58Z",
    "eventType": "ApiCall",
    "eventVersion": "1",
    "recipientAccountId": "1024405406196576",
    "requestId": "8BE01A78-4026-4E7D-B4E1-95B0323E968E",
    "requestParameters": {
        "RoleArn": "acs:ram::43274:role/ram-admin",
        "RoleSessionName": "lisi"
    },
    "serviceName": "Sts",
    "sourceIpAddress": "42.120.74.96",
    "userAgent": "aliyuncli/2.0.6",
    "userIdentity": {
        "type": "ram-user",
        "accountId": "1024405406196576",
        "principalId": "248949151961082597",
        "accessKeyId": "55nCtAwmPLkkt5PB",
        "userName": "lisi"
    }
}
本文导读目录
本文导读目录
以上内容是否对您有帮助?