ZStack Cloud Platform
Single Server, Free Trial for One Year
GET zstack/v1/errorcode/elaborationsAuthorization: OAuth the-session-uuidcurl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/errorcode/elaborations?category=BS®ex=certificate has expired or is not yet valid| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| category (Optional) | String | query | The category of the error code, pointing to a resource or service category, such as HOST | 3.3.0 | |
| regex (Optional) | String | query | Error code keyword | 3.3.0 | |
| code (Optional) | String | query | Error code, used together with category | 3.6.0 | |
| systemTags (Optional) | List | query | System tags | 3.3.0 | |
| userTags (Optional) | List | query | User tags | 3.3.0 |
{ "contents": [ { "category": "HOST", "code": "1003", "regex": "host[uuid:%s, name:%s] is in status[%s], cannot perform required operation", "message_cn": "主机正处于[停止]状态,不能进行该操作", "message_en": "Host is in status[Stopped], cannot perform required operation", "source": "zstack", "method": "regex", "distance": 0.0 } ] }| Name | Type | Description | Starting Version |
|---|---|---|---|
| error | ErrorCode | The error code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error | 3.3.0 |
| contents | List | For details, see contents | 3.3.0 |
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code number. A globally unique identifier for the error, such as SYS.1000, HOST.1001. | 0.6 |
| description | String | A brief description of the error | 0.6 |
| details | String | The detailed error information | 0.6 |
| elaboration | String | A reserved field. Default is null. | 0.6 |
| opaque | LinkedHashMap | A reserved field. Default is null. | 0.6 |
| cause | ErrorCode | The root error. The source error that caused the current error. This field is null if there is no root error. | 0.6 |
| Name | Type | Description | Starting Version |
|---|---|---|---|
| category | String | The category to which the error code belongs | 3.3.0 |
| code | String | The error code identifier | 3.3.0 |
| regex | String | The error code matching keyword | 3.3.0 |
| message_cn | String | The error code message in Chinese | 3.3.0 |
| message_en | String | The error code message in English | 3.3.0 |
| source | String | The error source | 3.3.0 |
| method | String | The matching method: distance (string comparison) or regex (regular expression) | 3.6.0 |
| distance | Double | If the distance matching method is used, this is the accuracy (1 is the most accurate) | 3.6.0 |
GetElaborationsAction action = new GetElaborationsAction(); action.category = "BS"; action.regex = "certificate has expired or is not yet valid"; action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetElaborationsAction.Result res = action.call();GetElaborationsAction action = GetElaborationsAction() action.category = "BS" action.regex = "certificate has expired or is not yet valid" action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" GetElaborationsAction.Result res = action.call()GET zstack/v1/errorcode/elaborations/categoriesAuthorization: OAuth the-session-uuidcurl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/errorcode/elaborations/categories| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| systemTags (Optional) | List | query | System tags | 4.5.0 | |
| userTags (Optional) | List | query | User tags | 4.5.0 |
{ "categories": [ { "category": "ACCOUNT", "num": 5.0 }, { "category": "BS", "num": 3.0 }, { "category": "VM", "num": 20.0 } ] }| Name | Type | Description | Starting Version |
|---|---|---|---|
| error | ErrorCode | The error code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error | 4.5.0 |
| categories | List | For details, see categories | 4.5.0 |
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code number. A globally unique identifier for the error, such as SYS.1000, HOST.1001. | 4.5.0 |
| description | String | A brief description of the error | 4.5.0 |
| details | String | The detailed error information | 4.5.0 |
| elaboration | String | A reserved field. Default is null. | 4.5.0 |
| opaque | LinkedHashMap | A reserved field. Default is null. | 4.5.0 |
| cause | ErrorCode | The root error. The source error that caused the current error. This field is null if there is no root error. | 4.5.0 |
| Name | Type | Description | Starting Version |
|---|---|---|---|
| category | String | Category name | 4.5.0 |
| num | Integer | The number of error codes in this category | 4.5.0 |
GetElaborationCategoriesAction action = new GetElaborationCategoriesAction(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetElaborationCategoriesAction.Result res = action.call();GetElaborationCategoriesAction action = GetElaborationCategoriesAction() action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" GetElaborationCategoriesAction.Result res = action.call()