System Error Code Operations


GetElaborations

API Request

URLs
GET zstack/v1/errorcode/elaborations
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/errorcode/elaborations?category=BS&regex=certificate has expired or is not yet valid
Request Parameters
Name Type Location Description Optional Value Starting Version
category String query Optional. The error code category, which is consistent with resource or service category, such as HOST. 3.3.0
regex String query Optional. The error code keyword. 3.3.0
code String query Optional. The error code, which is used with the error code category. 3.6.0
systemTags List query Optional. The system tags. 3.3.0
userTags List query Optional. The user tags. 3.3.0

API Response

Sample Response
{   "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": "distance",       "distance": 0.0     }   ] }
Name Type Description Starting Version
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 3.3.0
contents List See contents. 3.3.0
#error
Name Type Description Starting Version
code String The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. 0.6
description String The brief description of the error. 0.6
details String The details about the error. 0.6
elaboration String The reserved field. Default value: null. 0.6
opaque LinkedHashMap The reserved field. Default value: null. 0.6
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 0.6
#contents
Name Type Description Starting Version
category String The error code category. 3.3.0
code String The error code. 3.3.0
regex String The error code 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 source of the error. 3.3.0
method String The matching method, including distance (string comparison) and regex (regular expression). 3.6.0
distance Double If you use distance to do the match, this parameter will be the precision. Note: '1' is the best precision. 3.6.0

SDK Sample

Java SDK
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();
Python SDK
GetElaborationsAction action = GetElaborationsAction() action.category = "BS" action.regex = "certificate has expired or is not yet valid" action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" GetElaborationsAction.Result res = action.call()

GetElaborationCategories

API Request

URLs
GET zstack/v1/errorcode/elaborations/categories
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/errorcode/elaborations/categories
Request Parameters
Name Type Location Description Valid Value Starting Version
systemTags List query Optional. The system tags. 4.5.0
userTags List query Optional. The user tags. 4.5.0

API Response

Sample Response
{   "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 fails, or vice versa. For more information, see error 4.5.0
categories List For more information, see categories 4.5.0
#error
Name Type Description Starting Version
code String The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. 4.5.0
description String The brief description of the error. 4.5.0
details String The details about the error. 4.5.0
elaboration String The reserved field. Default value: null. 4.5.0
opaque LinkedHashMap The reserved field. Default value: null. 4.5.0
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 4.5.0
#categories
Name Type Description Starting Version
category String The category name. 4.5.0
num Integer The count of the error codes under the category. 4.5.0

SDK示例

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()

Archives

Download Document Archives

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.