Get Management Node CPU Architecture Type

PUT/zstack/v1/management-nodes/actions

Body

{
  "getManagementNodeArch": {},
  "systemTags": [],
  "userTags": []
}

In the above example, the systemTags and userTags fields can be omitted. They are listed to indicate that these two fields can be included in the body.

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-X PUT -d '{"getManagementNodeArch":{}}' http://localhost:8080/zstack/v1/management-nodes/actions

Parameter List

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

API Response

Response Example:

{
  "architecture": "x86_64"
}
NameTypeDescriptionStarting Version
nameStringThe resource name4.1.0
versionString 4.1.0
successboolean 4.1.0
errorErrorCodeThe error code. If not null, the operation has failed. This field is null when the operation succeeds. For details, see error4.1.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001.4.1.0
descriptionStringA brief description of the error.4.1.0
detailsStringThe detailed error information.4.1.0
elaborationStringA reserved field. Default is null.4.1.0
opaqueLinkedHashMapA reserved field. Default is null.4.1.0
causeErrorCodeThe root error. The source error that caused the current error. If there is no root error, this field is null.4.1.0

SDK Examples

Java SDK

GetManagementNodeArchAction action = new GetManagementNodeArchAction();
GetManagementNodeArchAction.Result res = action.call();

Python SDK

GetManagementNodeArchAction action = GetManagementNodeArchAction()
GetManagementNodeArchAction.Result res = action.call()