ListNamespaceChangeOrders

Updated at:

Queries the change orders in a namespace.

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:ListNamespaceChangeOrders

get

*All Resource

*

None None

Request syntax

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

Request parameters

Parameter

Type

Required

Description

Example

NamespaceId

string

Yes

The namespace ID.

cn-shanghai:test

CoStatus

string

No

The status of the change order. Valid values:

  • 0: Ready.

  • 1: Executing.

  • 2: Executed successfully.

  • 3: Execution failed.

  • 6: Terminated.

  • 10: Failed due to a system exception.

2

CoType

string

No

The type of the change order. Valid values:

  • CoBatchStartApplication: Starts applications in batches.

  • CoBatchStopApplication: Stops applications in batches.

CoBatchStartApplication

Key

string

No

The keyword used to fuzzy match the change order description. All change orders whose descriptions contain this keyword are returned.

test

CurrentPage

integer

No

The current page number.

1

PageSize

integer

No

The number of entries per page.

20

Response elements

Element

Type

Description

Example

object

The response data.

RequestId

string

The request ID.

0bc3915638507554994370d****

ErrorCode

string

The error code. Valid values:

  • Successful request: The ErrorCode parameter is not returned.

  • Failed request: The ErrorCode parameter is returned. For more information, see the error codes section in this topic.

Resouce.no.permission

Success

boolean

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

  • true: The query was successful.

  • false: The query failed.

true

Code

string

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

  • 2xx: Success.

  • 3xx: Redirection.

  • 4xx: Request error.

  • 5xx: Server error.

200

Message

string

The additional information about the call result.

success

TraceId

string

The trace ID used to precisely query the call information.

0bc3915638507554994370d****

Data

object

The returned result.

CurrentPage

integer

The current page number.

1

PageSize

integer

The number of entries per page.

20

TotalSize

integer

The total number of change orders.

32

ChangeOrderList

array<object>

The list of change orders.

object

The data in the change order list.

Status

integer

The status of the change order. Valid values:

  • 0: Ready.

  • 1: Executing.

  • 2: Executed successfully.

  • 3: Execution failed.

  • 6: Terminated.

  • 10: Failed due to a system exception.

2

FinishTime

string

The end time.

2019-07-11 20:12:58

NamespaceId

string

The namespace ID.

cn-shanghai:test

CreateTime

string

The creation time.

2019-07-11 15:54:49

UserId

string

The user ID.

test_sae

Source

string

The source of the operation entry for the change order.

console

CreateUserId

string

The ID of the user who created the change order.

test@aliyun.com

BatchCount

integer

The number of batches.

1

CoTypeCode

string

The code of the change order type. Valid values:

  • CoBatchStartApplication: Starts applications in batches.

  • CoBatchStopApplication: Stops applications in batches.

CoBatchStartApplication

ChangeOrderId

string

The change order ID.

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

BatchType

string

The batch type.

Automatic

Description

string

The description of the change order.

Batch Start Applications

GroupId

string

The group ID.

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

CoType

string

The type of the change order. This is the description of CoTypeCode.

msg.docker.app.actions.CoBatchStartApplication

Pipelines

string

The change pipelines.

xxxx

Examples

Success response

JSON format

{
  "RequestId": "0bc3915638507554994370d****",
  "ErrorCode": "Resouce.no.permission",
  "Success": true,
  "Code": "200",
  "Message": "success",
  "TraceId": "0bc3915638507554994370d****",
  "Data": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalSize": 32,
    "ChangeOrderList": [
      {
        "Status": 2,
        "FinishTime": "2019-07-11 20:12:58",
        "NamespaceId": "cn-shanghai:test",
        "CreateTime": "2019-07-11 15:54:49",
        "UserId": "test_sae",
        "Source": "console",
        "CreateUserId": "test@aliyun.com",
        "BatchCount": 1,
        "CoTypeCode": "CoBatchStartApplication",
        "ChangeOrderId": "7fa5c0-9ebb-4bb4-b383-1f885447****",
        "BatchType": "Automatic",
        "Description": "Batch Start Applications",
        "GroupId": "c9ecd2-cf6c-46c3-9f20-525de202****",
        "CoType": "msg.docker.app.actions.CoBatchStartApplication",
        "Pipelines": "xxxx"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Resouce.no.permission You are not authorized to operate on the specified resources. You are not authorized to operate on the specified resources.
400 InvalidParameter.NotEmpty You must specify the parameter %s. Invalid parameter: %s cannot be empty.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.