DescribeCustomEventAttribute - 查询自定义事件的详情

更新时间:
复制为 MD 格式

调用DescribeCustomEventAttribute接口查询自定义事件的详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

cms:DescribeCustomEventAttribute

get

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

Name

string

事件名称。

test123

EventId

string

事件 ID。

123****

GroupId

string

应用分组 ID。

123****

SearchKeywords

string

搜索事件内容包含的关键字。

  • 如果您待搜索事件的内容中包括 A 和 B,则可以搜索 A 和 B。

  • 如果您待搜索事件的内容中包括 A 或 B,则可以搜索 A 或 B。

cms

StartTime

string

开始时间。

格式为 Unix 时间戳,即从 1970 年 1 月 1 日开始所经过的毫秒数。

1552224365971

EndTime

string

结束时间。

格式为 Unix 时间戳,即从 1970 年 1 月 1 日开始所经过的毫秒数。

1552227965971

PageNumber

integer

页码。

1

PageSize

integer

每页记录条数。

50

返回参数

名称

类型

描述

示例值

object

Code

string

状态码。

说明

200 表示成功。

200

Message

string

返回信息。

userId:173651113438**** and name:"BABEL_CHECK"

RequestId

string

请求 ID。

60912C8D-B340-4253-ADE7-61ACDFD25CFC

Success

string

操作是否成功。取值:

  • true:成功。

  • false:失败。

true

CustomEvents

object

CustomEvent

array<object>

事件详情。

object

Time

string

事件发生的时间。

格式为 Unix 时间戳,即从 1970 年 1 月 1 日开始所经过的毫秒数。

1552199984000

Name

string

事件名称。

BABEL_CHECK

GroupId

string

应用分组 ID。

12345

Content

string

上报事件详情。

requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{"autoPay":false,"autoUseCoupon":false,"bid":"26842","buyerId":118935342242****,"commodities":[{"aliyunProduceCode":"cms","chargeType":"PREPAY","commodityCode":"cms_call_num","components":[{"componentCode":"phone_count","instanceProperty":[{"code":"phone_count","value":"500"}],"moduleAttrStatus":1}],"duration":6,"free":false,"orderParams":{"aliyunProduceCode":"cms"},"orderType":"BUY","prePayPostCharge":false,"pricingCycle":"Month","quantity":1,"refundSpecCode":"","renewChange":false,"specCode":"cms_call_num","specUpdate":false,"syncToSubscription":false,"upgradeInquireFinancialValue":true}],"fromApp":"commonbuy","orderParams":{"priceCheck":"true"},"payerId":118935342242****,"requestId":"ade3ad32-f58b-45d7-add4-ac542be3d8ec","skipChannel":false,"userId":118935342242****}

Id

string

事件 ID。

123

示例

正常返回示例

JSON格式

{
  "Code": "200",
  "Message": "userId:173651113438**** and name:\"BABEL_CHECK\"",
  "RequestId": "60912C8D-B340-4253-ADE7-61ACDFD25CFC",
  "Success": "true",
  "CustomEvents": {
    "CustomEvent": [
      {
        "Time": "1552199984000",
        "Name": "BABEL_CHECK",
        "GroupId": "12345",
        "Content": "requestId:4975A6F3-19AC-4C01-BAD2-034DA07FEBB5, info:{\"autoPay\":false,\"autoUseCoupon\":false,\"bid\":\"26842\",\"buyerId\":118935342242****,\"commodities\":[{\"aliyunProduceCode\":\"cms\",\"chargeType\":\"PREPAY\",\"commodityCode\":\"cms_call_num\",\"components\":[{\"componentCode\":\"phone_count\",\"instanceProperty\":[{\"code\":\"phone_count\",\"value\":\"500\"}],\"moduleAttrStatus\":1}],\"duration\":6,\"free\":false,\"orderParams\":{\"aliyunProduceCode\":\"cms\"},\"orderType\":\"BUY\",\"prePayPostCharge\":false,\"pricingCycle\":\"Month\",\"quantity\":1,\"refundSpecCode\":\"\",\"renewChange\":false,\"specCode\":\"cms_call_num\",\"specUpdate\":false,\"syncToSubscription\":false,\"upgradeInquireFinancialValue\":true}],\"fromApp\":\"commonbuy\",\"orderParams\":{\"priceCheck\":\"true\"},\"payerId\":118935342242****,\"requestId\":\"ade3ad32-f58b-45d7-add4-ac542be3d8ec\",\"skipChannel\":false,\"userId\":118935342242****}",
        "Id": "123"
      }
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 ParameterInvalid Illegal parameters.
500 InternalError The request processing has failed due to some unknown error.
403 AccessForbidden User not authorized to operate on the specified resource.
404 ResourceNotFound The specified resource is not found. 未找到指定资源。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情