• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. Common Parameters
  5. Batch Task Request
  6. Responses (Batch Operation)

Responses (Batch Operation)

The following responses are only for resetting the passwords for logging in to ECSs in batches and for modifying ECS specifications in batches. For details about the responses of other batch operations, see section Responses (Task).

  • Normal responses

    Parameter

    Type

    Description

    response

    List data structure

    Specifies the response returned after a request is successfully submitted. For details, see Table 1.

    Table 1 response field description

    Parameter

    Type

    Description

    id

    String

    Specifies the ID of the ECS on which the operation has been successfully performed.

  • Abnormal responses

    Parameter

    Type

    Description

    error

    Dictionary data structure

    Specifies the error in a batch request. For details, see Table 2.

    internalError

    List data structure

    Specifies the error in each request among the requests submitted in a batch. For details, see Table 3.

    Table 2 error field structure

    Parameter

    Type

    Description

    message

    String

    Describes a batch operation error.

    code

    String

    Specifies the code for a batch operation error.

    Table 3 internalError field description

    Parameter

    Type

    Description

    id

    String

    Specifies the ID of the ECS on which a request failed.

    error_message

    String

    Describes a single request failure.

    error_code

    String

    Specifies the code for a single request error.

  • Example response

    Normal response

    { 
        "response": [
                      {
                        "id": "616fb98f-46ca-475e-917e-2563e5a8cd19"   
                      },
                      {
                        "id": "516fb98f-46ca-475e-917e-2563e5a8cd12"   
                      }
                   ]
    } 

    Abnormal response

    {
         "error": {
                     "code": "Ecs.xxxx",
                     "message": "xxxxxxxxxxxxxxx" 
                   },
         "internalError": [
                     {
                        "id": "616fb98f-46ca-475e-917e-2563e5a8cd19",
                        "error_code": "ECS.XXXX",
                        "error_message": "xxxxxxxxxxxxxxx" 
                      },
                     {
                         "id": "516fb98f-46ca-475e-917e-2563e5a8cd12",
                         "error_code": "ECS.XXXX",
                         "error_message": "xxxxxxxxxxxxxxx" 
                     }
                  ]
    }