跳转至

获取团队及团队成员授权信息详情

基于接口鉴权信息通过示例请求获取团队所有有效授权的详情信息,增加infoType,info,endTime等参数则可以获取该团队中具体某个成员绑定授权的详情信息。


示例

请求URl(GET)

curl --location --request GET 'https://caweb.aiops.com/api/alert/rest/api/v1/ca/getLicenseList' \
--user 'email@example.com:<access_token>' \
--header 'Accept: application/json'

请求地址参数说明

参数 是否必须 说明
infoType 非必须 查询个人授权时,表明info传的是什么信息(1:用户名,2:邮箱,3:手机号)
info 非必须 查询个人授权时,用于查询的个人信息(当infoType为2时,info=xxx@aiops.com
endTime 非必须 当infoType为3时,用于传递手机号的国家和地区区号(默认是86)

access_token如何获取请参考文档 api令牌

提示

• 示例邮箱应替换为用户注册所用邮箱

• access_token应替换为您手动获取的access_token

• 如需对请求进行加密处理:请将

--user 'email@example.com:access_token' \

--header 'Accept: application/json'

替换为:

--header 'Authorization: Basic Z2FveWluaW5nOTk5NUAxNjMuY29tOmt1WWl6bmljZ3oxN0JBVjk=' \

--header 'Content-Type: application/json'

• 替换步骤请参考加密步骤

响应报文

{
    "success": true,
    "data": [
        {
            "sys_id": "07c89bcf-7cd6-45ea-98f4-2ef9dd408b99",
            "license_type": "lite",
            "user": 100004605132,
            "telephone": "15726649462",
            "is_used": 1,
            "sys_created_on": "2025-11-06",
            "expired_time": "2027-01-06",
            "contact_name": "manman01",
            "auto_renew": 0,
            "telNum": "0",
            "telTotal": "100",
            "msgNum": "0",
            "msgTotal": "300",
            "weChatNum": "0",
            "weChatTotal": "300",
            "emailNum": "0",
            "emailTotal": "300",
            "intTelNum": "0",
            "intTelTotal": "0",
            "intMsgNum": "0",
            "intMsgTotal": "0",
            "license": "基础版",
            "isExpired": 0,
            "nextDate": "2026-04-11"
        }
    ]
}

响应参数

参数 类型 说明
success string 返回结果:ture 成功 ;false 失败
data 返回数据集

data结果集

参数 类型 说明
sys_id string 授权id
license_type string 授权版本code
user int 绑定授权的用户id
telephone string 团队成员
is_used int 授权是否被绑定
sys_created_on string 授权创建时间
expired_time string 授权过期时间
contact_name string 绑定授权的用户名称
auto_renew int 收否设置了自动续费,1为自动续费
telNum string 电话使用量
telTotal string 电话总量
msgNum string 短信使用量
msgTotal string 短信总量
weChatNum string 微信使用量
weChatTotal string 微信总量
emailNum string 邮件使用量
emailTotal string 邮件总量
intTelNum string 国际电话使用量
intTelTotal string 国际电话总量
intMsgNum string 国际短息使用量
intMsgTotal string 国际短信总量
license string 授权版本
isExpired int 是否已过期
nextDate string 下次流量重置时间