云服务器内容精选

  • 响应说明 响应状态码: 200 表2 响应体参数 序号 名称 参数类型 是否必选 说明 1 softwareCloudUrl string true 对接的软件云官网地址 2 clientId string true 对接的软件云官网的client id 3 privacyStatementId string true 云客服在软件云官网的隐私声明ID 4 privacyStatementUrl string true 云客服在软件云官网的隐私声明地址 响应状态码: 401 未授权,请确认是否授权相关服务 响应状态码: 404 请求的内容未找到:请检查请求的路径 响应状态码: 500 业务失败:请依次确认您请求中各参数的取值。
  • 报文样例 请求头 { "X-Auth-Token": "************" } 响应参数: { "expiryDate": 1684650886000, "mobilePhone": "132****7077", "portalUrl": "https://software.huawei.com/auth?client_id=xxxxx&redirect_uri=https://example.com/service-cloud/sm/login/portal.html", "company": "xxx", "tenantSpaceStatus": "5", "customerName": "xxx", "email": "wanf****@huawei.com", "createDate": 1681203525000 }
  • 响应说明 响应状态码: 200 表2 响应体参数 序号 名称 参数类型 是否必选 说明 1 createDate number true 创建时间 2 expiryDate number true 过期时间 3 company string true 客户公司名称,已做掩码处理 4 customerName string true 联系人名称,已做掩码处理 5 email string true 邮件地址,已做掩码处理 6 mobilePhone string true 客户手机号码,已做掩码处理 7 tenantSpaceStatus string true 租间状态 8 portalUrl string true 登录AICC的链接地址 响应状态码: 401 未授权,请确认是否授权相关服务 响应状态码: 404 请求的内容未找到:请检查请求的路径 响应状态码: 500 业务失败:请依次确认您请求中各参数的取值。
  • 消息样例 场景描述:软件云调用接口查询客户信息 URL:/rest/oma/softwareconsole/tenant/querytenantbasic 请求头: { "X-Auth_Token":"0000000000srLl4pnoBc*************9DvgIB87KzYpxMdE9+vvzLZqYIw=" } 响应头: { "connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json%3Bcharset=UTF-8" } 响应体: { "mobilePhone": "153****0991", "company":"华为XXXXXXXXX", "customerName":"zXXXXXX", "email":"sunk****@huawei.com", "vdn":"150", "createDate":1681203525000, "tenantSpaceStatus":"2", "portalUrl":"https://software.huawei.com/auth?client_id=xxxxx&redirect_uri=https://example.com/service-cloud/sm/login/portal.html" }
  • 消息样例 场景描述:软件云调用接口查询订购信息 URL:/rest/oma/softwareconsole/tenant/queryresource 请求头: { "X-Auth_Token":"0000000000srLl4pnoBc*************9DvgIB87KzYpxMdE9+vvzLZqYIw="} 请求体: {"limit":"10", "offset":"0","startDate":1679558854000,"endDate":1679558854001} 响应头: { "connection": "keep-alive", "Content-Length": "16", "Content-Type": "application/json%3Bcharset=UTF-8"} 响应体: {"result": [{"orderId": "251679538126441114","opType": "newInstance","remark": null,"skuName": "电销型座席","modifyTime": 1679558854000,"orderAmount": "36000","procutName": "包月","vdnId": "131","customerId": "20220727032236821699","company": "ttttttttttttt","id": "1638814724192780290","manualStatus": "0","cecTenantId": "202303232614","amount": "1","periodNumber": "2","productId": "0GbV000000wG80TFeSlU","autoStatus": "2","customerName": "zhangsan","cecExpireTime": 1684829253000,"cecTenantName": "Tenant07323220","createSource": "GTS","periodType": "month","expireTime": 1684722289000,"createTime": 1679558853000,"skuCode": "d52b28fa-e0a7-a8f7-8356-0f0aea54b862"}],"count": 1,"returnCode": "0","description": "success"}
  • 请求说明 表1 请求头参数 序号 名称 参数类型 是否必选 说明 1 X-Auth-Token string True 软件云侧用户access-token值 请求参数 序号 名称 参数类型 是否必选 说明 1 limit int True 每页查询数 小于100 2 offset int True 偏移量 从0开始 3 startDate long false 开始订购时间 时间戳 4 endDate long false 结束订购时间 时间戳