Call ChangeDeployGroup to change the group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/changeorder/co_change_group HTTPS|HTTP

Request parameters

Element Type Required Example Description
AppId String No 3616cdca-4f92-***********

The ID of the application.

EccInfo String No 0 cf49a6 c-95a8-4aa8****

The ECC ID of the ECS instance whose application group you want to switch to. (only one ECS instance can be switched to another application group at a time.) for example, b86330d2-62a9-4fb6-aa5f-6fc89faaad81 (the ECC ID can be obtained by using other methods.)

GroupName String No test

Group name, for example, group_a and group_b (the default group name is_DEFAULT_GROUP).

ForceStatus Boolean No true

Indicates whether to forcibly replace the ECC packet when the ECC packet version and the packet version are inconsistent.

Response parameters

Element Type Sample response Description
ChangeOrderId String 435f-regfr4****

The ID of the change.

Code Integer 200

Code

Message String message

The returned message.

RequestId String F9E4-FDS4-****

The ID of the request.

Examples

Sample requests

POST /pop/v5/changeorder/co_change_group HTTP/1.1
Common request header
{
  "AppId": ""
  "EccInfo": ""
  "GroupName": ""
}

Sample success responses

XML format

<Message>success</Message>
<ChangeOrderId/>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "ChangeOrderId": {},
    "Code": 200
}

Error codes.

For a list of error codes, visit the API Error Center.