You can call this operation to create an instance 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 headers

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

Request syntax

POST /pop/v5/deploy_group HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 3616cdca-4f92-4413-***********

The ID of the application for which you want to create an instance group.

GroupName String Yes test

The name of the instance group that you want to create. The name can be up to 64 characters in length.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String 3RD9-D3FRE****************
DeployGroupEntity Struct

The information about the instance group created.

Id String 577f4c50-16ee-43d8-a02b-667*********

The ID of the instance group that was created.

GroupName String test

The name of the instance group that was created.

GroupType Integer 1

The type of the instance group that was created. Valid values:

0: default group.

1: Phased release is disabled for traffic management.

2: Phased release is enabled for traffic management.

AppId String 3616cdca-4f92-4413-***********

The ID of the application for which the instance group was created.

ClusterId String 0d247b93-8d62-4e34***************

The ID of the cluster where the application is located.

PackageVersionId String ""

The version of the deployment package for the instance group that was created.

AppVersionId String ""

The version of the deployment package for the application.

CreateTime Long 1573627695779

The time when the instance group was created.

UpdateTime Long 1573627695779

The time when the instance group was updated.

Examples

Sample requests

POST /pop/v5/deploy_group HTTP/1.1
Common request headers
{
  "AppId": ""
  "GroupName": ""
}

Sample success responses

JSON format

{
    "Message": "success",
    "DeployGroupEntity": {
        "GroupType": 1,
        "GroupName": "test",
        "ClusterId": "0d247b93-8d62-4e34***************",
        "PackageVersionId": "",
        "CreateTime": 1573627695779,
        "AppId": "3616cdca-4f92-4413-***********",
        "UpdateTime": 1573627695779,
        "Id": "577f4c50-16ee-43d8-a02b-667*********",
        "AppVersionId": ""
    },
    "Code": 200
}

XML format

<Message>success</Message>
<DeployGroupEntity>
    <GroupType>1</GroupType>
    <GroupName>test</GroupName>
    <ClusterId>0d247b93-8d62-4e34***************</ClusterId>
    <PackageVersionId/>
    <CreateTime>1573627695779</CreateTime>
    <AppId>3616cdca-4f92-4413-***********</AppId>
    <UpdateTime>1573627695779</UpdateTime>
    <Id>577f4c50-16ee-43d8-a02b-667*********</Id>
    <AppVersionId/>
</DeployGroupEntity>
<Code>200</Code>

Error codes

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