Get Elaboration Categories

GET/zstack/v1/errorcode/elaborations/categories

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/errorcode/elaborations/categories

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListquerySystem tags 4.5.0
userTags (Optional)ListqueryUser tags 4.5.0

API Response

Response example

{
  "categories": [
    {
      "category": "ACCOUNT",
      "num": 5.0
    },
    {
      "category": "BS",
      "num": 3.0
    },
    {
      "category": "VM",
      "num": 20.0
    }
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeThe error code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error4.5.0
categoriesListFor details, see categories4.5.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, such as SYS.1000, HOST.1001.4.5.0
descriptionStringA brief description of the error4.5.0
detailsStringThe detailed error information4.5.0
elaborationStringA reserved field. Default is null.4.5.0
opaqueLinkedHashMapA reserved field. Default is null.4.5.0
causeErrorCodeThe root error. The source error that caused the current error. This field is null if there is no root error.4.5.0

categories

NameTypeDescriptionStarting Version
categoryStringCategory name4.5.0
numIntegerThe number of error codes in this category4.5.0

SDK Examples

Java SDK

GetElaborationCategoriesAction action = new GetElaborationCategoriesAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetElaborationCategoriesAction.Result res = action.call();

Python SDK

GetElaborationCategoriesAction action = GetElaborationCategoriesAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetElaborationCategoriesAction.Result res = action.call()