枚举字典接口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /dict/list HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Object | Body | 否 | A short description of struct |
||
clientToken | String | Body | 否 | 601FA6A2-AC5C-4B59-BE11-378F887A6A11 | 幂等id |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | Map | data |
|
Array of list | array |
||
code | String | SMS | 码值 |
description | String | 短信 | 注释 |
requestId | String | 10REQUES-AC5C-4B59-BE11-378F117A6A88 | id of the request |
示例
请求示例
POST /dict/list HTTP/1.1
Host:gemp.cn-shanghai.aliyuncs.com
Content-Type:application/json
{ }
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListDictionariesResponse>
<data>
<incidentLevel>
<code>P1</code>
<desc>P1</desc>
</incidentLevel>
<incidentLevel>
<code>P2</code>
<desc>P2</desc>
</incidentLevel>
<incidentLevel>
<code>P3</code>
<desc>P3</desc>
</incidentLevel>
<incidentLevel>
<code>P4</code>
<desc>P4</desc>
</incidentLevel>
<incidentEffection>
<code>LOW</code>
<desc>低</desc>
</incidentEffection>
<incidentEffection>
<code>HIGH</code>
<desc>高</desc>
</incidentEffection>
<channel>
<code>SMS</code>
<desc>短信</desc>
</channel>
<channel>
<code>EMAIL</code>
<desc>邮件</desc>
</channel>
<channel>
<code>PHONE</code>
<desc>电话</desc>
</channel>
<channel>
<code>WEIXIN_GROUP</code>
<desc>企微群</desc>
</channel>
<channel>
<code>DING_GROUP</code>
<desc>钉钉群</desc>
</channel>
<operation>
<code>CONTAIN</code>
<desc>包含</desc>
</operation>
<operation>
<code>NOT_CONTAIN</code>
<desc>不包含</desc>
</operation>
<operation>
<code>EQUALS</code>
<desc>等于</desc>
</operation>
<operation>
<code>NOT_EQUALS</code>
<desc>不等于</desc>
</operation>
<problemNotifyType>
<code>PROBLEM_NOTIFY</code>
<desc>故障通告</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_UPDATE</code>
<desc>故障更新</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_UPGRADE</code>
<desc>故障升级</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_DEGRADE</code>
<desc>故障降级</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_RECOVER</code>
<desc>故障恢复</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_REISSUE</code>
<desc>故障补发</desc>
</problemNotifyType>
<problemNotifyType>
<code>PROBLEM_CANCEL</code>
<desc>故障取消</desc>
</problemNotifyType>
<UserQueryFields>
<code>USERNAME</code>
<desc>人员姓名</desc>
</UserQueryFields>
<UserQueryFields>
<code>PHONE</code>
<desc>人员手机号</desc>
</UserQueryFields>
<UserQueryFields>
<code>RAM_ID</code>
<desc>RAM账号ID</desc>
</UserQueryFields>
<incidentStatus>
<code>ASSIGNED</code>
<desc>已分派</desc>
</incidentStatus>
<incidentStatus>
<code>RESPONDED</code>
<desc>已响应</desc>
</incidentStatus>
<incidentStatus>
<code>FINISHED</code>
<desc>已完结</desc>
</incidentStatus>
</data>
</ListDictionariesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"data" : {
"incidentLevel" : [ {
"code" : "P1",
"desc" : "P1"
}, {
"code" : "P2",
"desc" : "P2"
}, {
"code" : "P3",
"desc" : "P3"
}, {
"code" : "P4",
"desc" : "P4"
} ],
"incidentEffection" : [ {
"code" : "LOW",
"desc" : "低"
}, {
"code" : "HIGH",
"desc" : "高"
} ],
"channel" : [ {
"code" : "SMS",
"desc" : "短信"
}, {
"code" : "EMAIL",
"desc" : "邮件"
}, {
"code" : "PHONE",
"desc" : "电话"
}, {
"code" : "WEIXIN_GROUP",
"desc" : "企微群"
}, {
"code" : "DING_GROUP",
"desc" : "钉钉群"
} ],
"operation" : [ {
"code" : "CONTAIN",
"desc" : "包含"
}, {
"code" : "NOT_CONTAIN",
"desc" : "不包含"
}, {
"code" : "EQUALS",
"desc" : "等于"
}, {
"code" : "NOT_EQUALS",
"desc" : "不等于"
} ],
"problemNotifyType" : [ {
"code" : "PROBLEM_NOTIFY",
"desc" : "故障通告"
}, {
"code" : "PROBLEM_UPDATE",
"desc" : "故障更新"
}, {
"code" : "PROBLEM_UPGRADE",
"desc" : "故障升级"
}, {
"code" : "PROBLEM_DEGRADE",
"desc" : "故障降级"
}, {
"code" : "PROBLEM_RECOVER",
"desc" : "故障恢复"
}, {
"code" : "PROBLEM_REISSUE",
"desc" : "故障补发"
}, {
"code" : "PROBLEM_CANCEL",
"desc" : "故障取消"
} ],
"UserQueryFields" : [ {
"code" : "USERNAME",
"desc" : "人员姓名"
}, {
"code" : "PHONE",
"desc" : "人员手机号"
}, {
"code" : "RAM_ID",
"desc" : "RAM账号ID"
} ],
"incidentStatus" : [ {
"code" : "ASSIGNED",
"desc" : "已分派"
}, {
"code" : "RESPONDED",
"desc" : "已响应"
}, {
"code" : "FINISHED",
"desc" : "已完结"
} ]
}
}
错误码
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。