查询实例操作日志
url参数
Action | Version | Method | 描述 |
DescribeRedisEvents | 2018-03-22 | GET | 查询redis实例操作日志 |
请求参数
参数名称 | 说明 | 参数类型 | 是否必填 | 备注 |
SourceId | 实例名称 | String | 是 | |
Limit | 一页显示条目 | Long | 是 | |
Offset | 偏移量 | Long | 是 | |
EndTime | UTC+8时间 单位:毫秒,检索该时间点以前的时间,默认当前时间 | Long | 否 | |
StartTime | UTC+8时间 单位:毫秒,检索该时间点以后的时间,默认最早时间 | Long | 否 | |
Action | DescribeRedisEvents | String | 是 | |
Version | 2018-03-22 | String | 是 | |
返回参数
参数名称 | 参数类型 | 描述 |
RequestId | String | 请求id |
Code | String | 公共错误码, “Success”表示成功,其他值表示失败 |
TotalCount | Long | 日志个数 |
Events | Array | 日志对象数组 |
状态码
错误码(Code) | 错误提示(Message) | http status code | 说明 |
InvalidParameterValue | 参数“{参数名}”不合法 | 400 | 请求参数不合法 |
MissingParameter | Required int parameter {parameter name} is not present | 400 | 参数缺失 |
TypeMismatch | paramIllegalTypeInt type is java.lang.String but require int please check!!! | 400 | 类型不匹配 |
请求示例
GET https://open.cn-east-1.163yun.com/ncr?Action=DescribeRedisEvents&Version=2018-03-22&SourceId=smoke-autotest-ha-p903a&Limit=100&Offset=0
返回示例
{
"RequestId": "4a2792e2-5f0a-4fc0-acd0-af08318d26ef",
"Code": "Success",
"TotalCount": 18,
"Events": [
{
"EventId": 128072,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "修改密码完成",
"Date": 1535896080987
},
{
"EventId": 128071,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始修改密码...",
"Date": 1535896078140
},
{
"EventId": 128070,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "恢复实例完成",
"Date": 1535896060069
},
{
"EventId": 128069,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始恢复实例,请稍候...",
"Date": 1535896057570
},
{
"EventId": 128068,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "备份实例完成",
"Date": 1535896036913
},
{
"EventId": 128067,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始备份实例,请稍候...",
"Date": 1535896035540
},
{
"EventId": 128066,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "修改配置完成",
"Date": 1535896015665
},
{
"EventId": 128065,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始修改配置...",
"Date": 1535896014753
},
{
"EventId": 128063,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "清除数据完成",
"Date": 1535895975223
},
{
"EventId": 128061,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始清除数据...",
"Date": 1535895973938
},
{
"EventId": 128058,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "扩容实例完成",
"Date": 1535895946133
},
{
"EventId": 128056,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始扩容实例...",
"Date": 1535895832149
},
{
"EventId": 128055,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "扩容实例完成",
"Date": 1535895803890
},
{
"EventId": 128054,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始扩容实例...",
"Date": 1535895690080
},
{
"EventId": 128053,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "创建实例成功",
"Date": 1535895656715
},
{
"EventId": 128052,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "创建节点成功",
"Date": 1535895656367
},
{
"EventId": 128051,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "创建主机成功",
"Date": 1535895655759
},
{
"EventId": 128050,
"SourceId": "smoke-autotest-ha-p903a",
"Message": "开始创建实例,请稍候......",
"Date": 1535895587777
}
]
}