Refresh Captcha

GET/zstack/v1/captcha/refresh

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" -X GET http://localhost:8080/zstack/v1/captcha/refresh

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringqueryThe resource UUID, uniquely identifying this resource 2.6.0
systemTags (optional)Listquery  2.6.0
userTags (optional)Listquery  2.6.0

API Response

On success, this API returns an empty JSON structure {}. On error, the returned JSON structure contains an error field, for example:

{
  "error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
  }
}

SDK Examples

Java SDK

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

Python SDK

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