请求状态码
状态码 | 描述 |
---|---|
200 | 服务器返回成功,该操作是幂等的 |
400 | 用户请求错误,该操作是幂等的 |
401 | 用户无权限(用户名或者密码错误等) |
403 | 访问受限,被禁止 |
404 | 用户请求路径不存在 |
429 | Too many Request |
500 | 服务端异常 |
502 | 网关错误 |
503 | 服务不可用 |
通用结果码
未细分类结果码
msgCode | errorCode | 说明 | 订单状态相关性说明 | http status code | description | message |
---|---|---|---|---|---|---|
openapi.common.500 | openapi.implementation.error | 服务端实现错误 | 无 | 500 | 实现错误 | implmentation error |
openapi.common.501 | openapi.requestParse.jsonExpected | 内部错误,内部系统交互问题 | 无 | 500 | 请求来源非法 | injected request not expected |
openapi.common.502 | openapi.requestParse.accessKeyInvalid | 内部错误,内部系统交互问题。 EOP系统转发问题,需求方无需处理。 |
无 | 500 | 非OpenAPI准入的系统access_key | access key invalid |
openapi.common.401 | openapi.requestParse.eopInvalidRejection | 请求格式非法 | 无 | 400 | 请求格式非法 | request should be http POSTed json |
openapi.common.402 | openapi.requestParse.emptyRequest | 请求为空 | 无 | 400 | 请求为空 | request should not be empty |
openapi.common.403 | openapi.parameter.xxxx | 无 | 400 | 请求参数错误: xxx | request param error: xxx | |
openapi.admin.703 | openapi.admin.accessFailed | OpenAPI访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
openapi.permisson_db.704 | openapi.userPermission.accessFailed | 无 | 200 | 系统错误 | access internal service failed | |
openapi.yacos.704 | openapi.yacos.accessFailed | OpenAPI访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
openapi.workorder.705 | openapi.workorder.accessFailed | OpenAPI访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
openapi.ctyun_plat.706 | openapi.ctyunPlatform.accessFailed | OpenAPI访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
openapi.charge_sys.707 | openapi.charge.fused | 访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
openapi.inner.708 | openapi.innerSys.accessFailed | OpenAPI访问内部系统失败 | 无 | 200 | 系统错误 | access internal service failed |
订单类结果码
msgCode | errorCode | 说明 | 订单状态相关性说明 | http status code | description | message |
---|---|---|---|---|---|---|
ebs.order.100 | ebs.order.accessFailed | 订单系统访问失败,可使用clientToken重试订单 | 订单状态未知,需要使用clientToken重试订单 | 200 | 访问订单系统失败:订单状态未知,使用clientToken重试订单确认状态 | access bss failed: order status unknown, retry this order using clientToken |
ebs.order.101 | ebs.order.inProgress | 订单处理中,可使用订单ID查询确认或使用原clientToken重试下单 | 需要使用clientToken重试订单。也可以使用返回的订单ID,查询订单状态 | 200 | 订单处理中,可使用订单ID查询或使用原clientToken重试下单 | order in progress |
ebs.order.102 | ebs.order.procFailed | 订单处理失败。无需重试。通过errorDetail确认具体失败原因 | 无 | 200 | 订单处理失败 | order proc failed |
ebs.order.103 | ebs.order.orderChanged | 订单状态变更,比如发生了撤单,取消等。 | 无 | 200 | 订单已取消或撤单 | order changed |
ebs.order.104 | ebs.order.accepted | 订单已成功,资源创建中。 可以使用clientToken或者返回的masterOrderID重试订单,以确认订单状态。 此时不返回masterResourceID及resources |
需要使用clientToken重试订单。也可以使用返回的订单ID,查询订单状态 | 200 | 资源处理中。请稍后使用masterOrderID或者clientToken重试订单以确认状态 | order accepted,resource processing |
ebs.order.105 | ebs.order.userFrozen | 用户受限,可能是被冻结的账户,或者余额不足 | 无 | 200 | 用户受限,可能是被冻结的账户,或者余额不足 | account forbidden; maybe freezen or credit not enough |
ebs.order.106 | ebs.order.userQuotaLimited | 用户配额不足,是BSS侧下单时返回的配额问题(实时配额) | 无 | 200 | 用户配额不足 | user's quotas not enough |
ebs.order.107 | ebs.order.regionServiceAccessFailed | 访问资源池失败 | 无 | 200 | 资源池资源服务访问失败 | access region service failed |
ebs.order.108 | ebs.order.unexpectedResponse | 订单返回响应不符合预期 | 无 | 200 | 订单数据异常 | order info damaged |
ebs.order.109 | ebs.order.resourceDeployFailed | 资源施工失败 | 无 | 200 | 资源施工失败 | resource process failed |
ebs.order.002 | ebs.orderCheck.invalidName | 名称非法 | 无 | 200 | 云硬盘名称错误,仅允许英文字母数字及_或者-,且长度为2-63字符 | name invalid |
ebs.order.003 | ebs.orderCheck.userForbiddenOnDemand | 用户不允许创建按需订购资源 | 无 | 200 | 用户不允许订购按需类订单 | user not allowed place ondemand order |
ebs.order.004 | ebs.orderCheck.multiAttachNotSupported | 资源可用区不支持多主机共享挂载云硬盘 | 无 | 200 | 资源池不支持共享云硬盘 | ebs multiattach not supported by region |
ebs.order.005 | ebs.orderCheck.encrytNotSupported | 资源可用区不支持云硬盘加密 | 无 | 200 | 资源池不支持加密云盘 | region ebs encryption not supported |
ebs.order.006 | ebs.orderCheck.invalidEncryptKey | 密钥UUID不存在 | 无 | 200 | 密钥UUID不存在 | kmsUUID not exists |
ebs.order.007 | ebs.orderCheck.invalidProjectID | 订单关联的projectID不存在 | 无 | 200 | 企业项目ID不存在 | projectID invalid |
ebs.order.008 | ebs.orderCheck.diskModeNotSupported | 不支持的磁盘模式;各资源池支持规格不同 | 无 | 200 | 不支持的磁盘模式 | diskMode not supported |
ebs.order.009 | ebs.orderCheck.diskTypeNotSupported | 不支持的磁盘类型;各资源池支持规格不同 | 无 | 200 | 不支持的磁盘类型 | diskType not supported |
ebs.order.010 | ebs.orderCheck.invalidSize | 云盘大小超过限制;各资源池的规格不同。 | 无 | 200 | 单块云硬盘的大小为5-2000GB | disk size should be in range [5G ,2T] |
ebs.order.011 | ebs.orderCheck.diskCountQuotaLimited | 云盘配额数目不足 | 无 | 200 | 磁盘数目配额不足 | disk count quota not enough |
ebs.order.012 | ebs.orderCheck.diskSizeQuotaLimited | 云盘配额大小不足 | 无 | 200 | 磁盘大小配额不足 | disk size quota not enough |
ebs.order.013 | ebs.orderCheck.tooManyInOneOrder | 单次创建磁盘个数上限为5 (当前不支持多盘批量下单,不会出现此错误) |
无 | 200 | 单次创建磁盘个数上限为5 | orderCount bigger than 5 |
ebs.order.014 | ebs.orderCheck.forbiddenOnSysVolume | 禁止对系统盘做此项操作。(退订,改名、绑定、解绑) | 无 | 200 | 禁止对系统盘做此项操作 | forbidden operation for system volume |
ebs.order.015 | ebs.orderCheck.shrinkNotSupported | 云硬盘不支持缩容 | 无 | 200 | 云硬盘不支持缩容 | shrinking not supported |
ebs.order.016 | ebs.orderCheck.notAllowedForOnDemand | 针对按需资源做续期 | 无 | 200 | 按需继续资源不允许该操作 | operation not allowed for on-demand billed resource |
内部系统间访问结果码
msgCode | errorCode | http status code | description | message |
---|---|---|---|---|
ebs.region_info.701 | ebs.regionInfo.accessFailed | 200 | 查询资源池失败 | querying region failed |
ebs.region_info.401 | ebs.regionInfo.empty | 200 | 资源池信息为空 | region info empty |
ebs.region_info.501 | ebs.regionInfo.dataDamaged | 200 | 资源池信息不符预期 | region info data damaged |
ebs.user_permission.701 | ebs.userPermission.accessFailed | 200 | 查询用户权限失败 | querying user permission failed |
ebs.user_permission.401 | ebs.userPermission.empty | 200 | 用户权限信息为空 | user permission empty |
ebs.user_permission.501 | ebs.userPermission.dataDamaged | 200 | 用户权限信息不符预期 | user permission data damaged |
ebs.user_detail.701 | ebs.userDetail.accessFailed | 200 | 查询用户详情失败 | querying user detail failed |
ebs.user_detail.401 | ebs.userDetail.empty | 200 | 用户详情信息为空 | user detail info empty |
ebs.user_detail.501 | ebs.userDetail.dataDamaged | 200 | 用户详情信息不符预期 | user detail info damaged |
ebs.user_kms.701 | ebs.userKms.accessFailed | 200 | 查询用户加密密钥信息失败 | querying user secret keys info failed |
ebs.user_kms.501 | ebs.userKms.dataDamaged | 200 | 用户加密密钥数据不符预期 | user secret keys damaged |
ebs.user_quota.701 | ebs.userQuota.accessFailed | 200 | 查询用户配额失败 | querying user quota info failed |
ebs.user_quota.401 | ebs.userQuota.empty | 200 | 用户配额信息为空 | user quota info empty |
ebs.user_quota.501 | ebs.userQuota.dataDamaged | 200 | 用户配额信息不符预期 | user qutoa info damaged |
ebs.resource_info.701 | ebs.resourceInfo.accessFailed | 200 | 查询资源失败 | querying resource info failed |
ebs.resource_info.401 | ebs.resourceInfo.notExists | 200 | 资源信息不存在 | resource info not exists |
ebs.resource_info.501 | ebs.resourceInfo.dataDamaged | 200 | 资源信息不符预期 | resource info damaged |
ebs.resource_order_info.701 | ebs.resourceOrderInfo.accessFailed | 200 | 查询资源订单信息失败 | querying resource order info failed |
ebs.resource_order_info.401 | ebs.resourceOrderInfo.notExists | 200 | 资源订单信息不存在 | resource order info not exists |
ebs.resource_order_info.501 | ebs.resourceOrderInfo.dataDamaged | 200 | 资源订单信息不符预期 | resource order info damaged |
ebs.user_consume.701 | ebs.userConsumption.accessFailed | 200 | 查询用户已用资源量失败 | querying user consumption failed |
ebs.user_consume.401 | ebs.userConsumption.empty | 200 | 用户已用资源信息为空 | user consumption info empty |
ebs.user_consume.501 | ebs.userConsumption.dataDamaged | 200 | 用户已用资源信息不符预期 | user consumption info damaged |
ebs.user_resources.701 | ebs.userResources.accessFailed | 200 | 查询用户资源信息失败 | querying user resources failed |
ebs.user_resources.501 | ebs.userResources.dataDamaged | 200 | 用户资源信息不符预期 | user resources info damaged |
ebs.user_regions.701 | ebs.userVisibleRegions.accessFailed | 200 | 查询用户可见资源池失败 | querying user visible regions failed |
ebs.user_regions.501 | ebs.userVisibleRegions.dataDamaged | 200 | 用户可见资源池信息不符预期 | user visible regions info damaged |
ebs.ebs_info.016 | ebs.ebsInfo.notExists | 200 | 磁盘不存在 | volume not exists |
ebs.ebs_info.701 | ebs.ebsInfo.accessFailed | 200 | 查询云硬盘信息失败 | querying volume info failed |
ebs.ebs_info.501 | ebs.ebsInfo.dataDamaged | 200 | 云硬盘信息数据不符预期 | volume info damanged |
ebs.sys_volume_info.701 | ebs.sysVolumeInfo.accessFailed | 200 | 查询云硬盘信息失败 | querying volume info failed |
ebs.sys_volume_info.501 | ebs.sysVolumeInfo.dataDamaged | 200 | 系统盘信息数据不符预期 | volume info damanged |
ebs.volume_operate.701 | ebs.volumeOperate.accessFailed | 200 | 操作网络通讯失败 | operation netword error |
ebs.volume_operate.501 | ebs.volumeOperate.dataDamaged | 200 | 操作结果数据不符预期 | operation result damaged |