全部产品
云市场
云游戏

DescribeRule

更新时间:2020-07-27 11:56:50

查询一个规则的详细信息。

方法

GET

URI


openapi/instances/{instanceId}/rules/{ruleId}

请求参数

参数 类型 是否必需 描述
instanceId String 通过实例ID查询
ruleId String 通过规则Id查询
ruleType String selection 选品规则
operation 运营规则
sceneId String 场景id

返回参数

参数 类型 描述
RequestId String 当前请求的RequestID
Result Rule 规则列表

示例

请求示例

  1. GET /openapi/instances/{airec-xxxx}/rules/{ruleId}?ruleType=xxx&sceneId=123

返回示例

JSON 格式

  1. // 选品规则
  2. {
  3. "Result":
  4. {
  5. "Status":"DRAFT",
  6. "GmtCreate":"2020-04-27T06:38:28.000Z",
  7. "GmtModified":"2020-04-27T06:38:28.000Z",
  8. "RuleId":"98493A14-D619-4E88-9F8D-108939817F9F",
  9. "RuleMeta":{
  10. "RuleMetaType":"SELECTION",
  11. "SceneId":"123",
  12. "PubState":"PUBLISHING",
  13. "SelectionParams":[
  14. {
  15. "SelectType":"QUERY_ITEM_TYPE",
  16. "SelectionOperation":"OPERATOR_EQUAL",
  17. "SelectValue":"atrical,image"
  18. }
  19. ]
  20. }
  21. }
  22. ,
  23. "RequestId":"76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF"
  24. }
  25. // 运营规则
  26. {
  27. "Result":{
  28. "Status":"DRAFT",
  29. "GmtCreate":"2020-04-27T03:17:21.000Z",
  30. "GmtModified":"2020-04-27T03:17:21.000Z",
  31. "RuleId":"123456789001122",
  32. "RuleMeta":{
  33. "RuleMetaType":"OPERATION",
  34. "SceneId":"123",
  35. "PubState":"PUBLISHING",
  36. "OperationParams":[
  37. {
  38. "OperationType":"MIX",
  39. "Settings":[
  40. {
  41. "Name":"image",
  42. "Value":10
  43. }
  44. ]
  45. },
  46. {
  47. "OperationType":"DIVERSIFY",
  48. "CategoryIndex":1,
  49. "Window":2,
  50. "Status":true,
  51. "DiversifyType":"TYPE_SHOP"
  52. },
  53. {
  54. "OperationType":"EXPOSURE",
  55. "ExposureSettings":[
  56. {
  57. "DurationSeconds":1234000,
  58. "Status":true,
  59. "ExposureType":"TYPE_EXPOSE",
  60. "ScenarioBased":true
  61. },
  62. {
  63. "DurationSeconds":123400,
  64. "Status":true,
  65. "ExposureType":"TYPE_CLICK",
  66. "ScenarioBased":true
  67. }
  68. ]
  69. }
  70. ]
  71. }
  72. },
  73. "RequestId":"76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF"
  74. }


JSON 格式

  1. {
  2. "Code": "InstanceNotFound",
  3. "Message": "The specified instance does not exist. Check the instanceId please.",
  4. "RequestId": "829F38F6-E2D6-4109-90A6-888160BD16C2"
  5. }