ListChangeOrders

Updated at:

Queries the list of change orders.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sae:ListChangeOrders

get

*All Resource

*

None None

Request syntax

GET /pop/v1/sam/changeorder/ListChangeOrders HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The application ID.

145341c-9708-4967-b3ec-24933767****

CurrentPage

integer

No

The current page number.

1

PageSize

integer

No

The number of entries per page.

20

Key

string

No

The keyword used for fuzzy match of the change order description. Change orders whose descriptions contain the keyword are returned.

test

CoType

string

No

The type of the change order. Valid values:

  • CoBindSlb: bind an SLB instance

  • CoUnbindSlb: unbind an SLB instance

  • CoCreateApp: create an application

  • CoDeleteApp: delete an application

  • CoDeploy: deploy an application

  • CoRestartApplication: restart an application

  • CoRollback: roll back an application

  • CoScaleIn: scale in an application

  • CoScaleOut: scale out an application

  • CoStartApplication: start an application

  • CoStopApplication: stop an application

  • CoRescaleApplicationVertically: change instance specifications

  • CoDeployHistroy: roll back to a historical version

  • CoBindNas: bind a NAS file system

  • CoUnbindNas: unbind a NAS file system

  • CoBatchStartApplication: start applications in batches

  • CoBatchStopApplication: stop applications in batches

  • CoRestartInstances: restart instances

  • CoDeleteInstances: delete instances

  • CoScaleInAppWithInstances: scale in specified instances

CoCreateApp

CoStatus

string

No

The status of the change order. Valid values:

  • 0: preparing

  • 1: executing

  • 2: executed successfully

  • 3: execution failed

  • 6: terminated

  • 8: waiting for manual batch confirmation

  • 9: waiting for automatic batch confirmation

  • 10: execution failed due to a system exception

  • 11: waiting for approval

  • 12: approved and waiting for execution

2

OrderBy

string

No

The sorting condition.

create_time

Reverse

boolean

No

Specifies whether to sort the results in ascending order based on the field specified by the OrderBy parameter. Valid values:

  • true: sort in ascending order

  • false: sort in descending order

Response elements

Element

Type

Description

Example

object

The response data.

RequestId

string

The request ID.

65E1F-43BA-4D0C-8E61-E4D1337F****

Message

string

The additional information about the call result.

success

TraceId

string

The trace ID, which is used to accurately query the call information.

0bb6f815638568884597879d****

Data

object

The information about the change order list.

CurrentPage

integer

The current page number.

1

TotalSize

integer

The total number of change orders.

1

ChangeOrderList

array<object>

The list of change orders.

object

The information about the change order list.

Status

integer

The status of the change order. Valid values:

  • 0: preparing

  • 1: executing

  • 2: executed successfully

  • 3: execution failed

  • 6: terminated

  • 8: waiting for manual batch confirmation

  • 9: waiting for automatic batch confirmation

  • 10: execution failed due to a system exception

  • 11: waiting for approval

  • 12: approved and waiting for execution

2

FinishTime

string

The end time.

2019-07-11 20:12:58

CreateTime

string

The creation time.

2019-07-11 15:54:49

UserId

string

The user ID.

sae-beta-test

Source

string

The source of the change order operation.

console

BatchCount

integer

The number of batches.

1

CreateUserId

string

The ID of the user who created the change order.

sae-beta-test

CoTypeCode

string

The code of the change type. Valid values:

  • CoBindSlb: bind an SLB instance

  • CoUnbindSlb: unbind an SLB instance

  • CoCreateApp: create an application

  • CoDeleteApp: delete an application

  • CoDeploy: deploy an application

  • CoRestartApplication: restart an application

  • CoRollback: roll back an application

  • CoScaleIn: scale in an application

  • CoScaleOut: scale out an application

  • CoStartApplication: start an application

  • CoStopApplication: stop an application

  • CoRescaleApplicationVertically: change instance specifications

  • CoDeployHistroy: roll back to a historical version

  • CoBindNas: bind a NAS file system

  • CoUnbindNas: unbind a NAS file system

  • CoBatchStartApplication: start applications in batches

  • CoBatchStopApplication: stop applications in batches

  • CoRestartInstances: restart instances

  • CoDeleteInstances: delete instances

  • CoScaleInAppWithInstances: scale in specified instances

CoCreateApp

ChangeOrderId

string

The change order ID.

7fa5c0-9ebb-4bb4-b383-1f885447****

BatchType

string

The batch type. Valid values:

  • auto: automatic

  • manual: manual

auto

GroupId

string

The group ID.

c9ecd2-cf6c-46c3-9f20-525de202****

Description

string

The description.

Version: 1.0 | Image name: nginx

CoType

string

The change type, which is the description of the CoTypeCode.

Create Application

AppId

string

The application ID.

164341c-9708-4967-b3ec-24933767****

PageSize

integer

The number of entries per page.

20

ErrorCode

string

The error code. Take note of the following items:

  • If the request is successful, the ErrorCode parameter is not returned.

  • If the request fails, the ErrorCode parameter is returned. For more information, see the error codes in this topic.

InvalidParameter.NotEmpty

Code

string

The HTTP status code or POP error code. Valid values:

  • 2xx: success

  • 3xx: redirection

  • 4xx: client error

  • 5xx: server error

200

Success

boolean

Indicates whether the change order list was successfully queried. Valid values:

  • true: the query was successful

  • false: the query failed

true

Examples

Success response

JSON format

{
  "RequestId": "65E1F-43BA-4D0C-8E61-E4D1337F****",
  "Message": "success",
  "TraceId": "0bb6f815638568884597879d****",
  "Data": {
    "CurrentPage": 1,
    "TotalSize": 1,
    "ChangeOrderList": [
      {
        "Status": 2,
        "FinishTime": "2019-07-11 20:12:58",
        "CreateTime": "2019-07-11 15:54:49",
        "UserId": "sae-beta-test",
        "Source": "console",
        "BatchCount": 1,
        "CreateUserId": "sae-beta-test",
        "CoTypeCode": "CoCreateApp",
        "ChangeOrderId": "7fa5c0-9ebb-4bb4-b383-1f885447****",
        "BatchType": "auto",
        "GroupId": "c9ecd2-cf6c-46c3-9f20-525de202****",
        "Description": "Version: 1.0 | image name: nginx",
        "CoType": "Create application",
        "AppId": "164341c-9708-4967-b3ec-24933767****"
      }
    ],
    "PageSize": 20
  },
  "ErrorCode": "InvalidParameter.NotEmpty",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.NotEmpty You must specify the parameter %s. Invalid parameter: %s cannot be empty.
400 Resouce.no.permission You are not authorized to operate on the specified resources. You are not authorized to operate on the specified resources.
404 InvalidAppId.NotFound The specified AppId does not exist. The specified AppId does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.