我正在发送针对Enteries列表API的关注请求,这是指向API的链接 https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/list
{
"filter": "(jsonPayload.event_type=\"GCE_OPERATION_DONE\" OR protoPayload.serviceName=\"storage.googleapis.com\" OR protoPayload.serviceName=\"clientauthconfig.googleapis.com\" OR protoPayload.serviceName=\"iam.googleapis.com\" OR protoPayload.serviceName=\"compute.googleapis.com\") AND (jsonPayload.event_subtype=\"compute.instances.insert\" OR jsonPayload.event_subtype=\"compute.instances.delete\" OR protoPayload.methodName=\"storage.buckets.create\" OR protoPayload.methodName=\"storage.buckets.delete\" AND protoPayload.resourceOriginalState.direction=\"EGRESS\" AND protoPayload.request.disabled=true)) AND timestamp>=\"2020-05-16T12:52:00.820Z\" AND timestamp < \"2020-05-16T13:52:00.820Z\"",
"resourceNames": [
"projects/project1"
],
"orderBy": "timestamp desc",
"pageSize": 1000,
"pageToken":xxxx"
}
我得到以下回应
{
"error": {
"code": 400,
"message": "page_token doesn't match arguments from the request",
"status": "INVALID_ARGUMENT"
}
}
任何人都可以通过示例来建议消息暗示什么
答案 0 :(得分:0)
在
时会遇到此错误正在使用其他项目的页面令牌代替project1
答案 1 :(得分:0)
尝试使用以下格式针对请求的正文测试API,也请尝试不使用任何参数。
{ “ projectIds”:[ 串 ], “ resourceNames”:[ 串 ], “过滤器”:字符串, “ orderBy”:字符串, “ pageSize”:整数, “ pageToken”:字符串 }