Help Center/ CodeArts Pipeline/ API Reference/ API/ Change Management/ Querying the Change Operation History
Updated on 2025-03-25 GMT+08:00

Querying the Change Operation History

Function

This API is used to query the change operation history.

Calling Method

For details, see Calling APIs.

URI

GET /v2/{cloudProjectId}/change-request/{changeRequestId}/oplog/query

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

cloudProjectId

Yes

String

Project ID.

changeRequestId

Yes

String

Change ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Offset.

limit

No

Integer

Page size.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total

Integer

Total number of records.

data

Array of ChangeRequestOplogVO objects

Operation history.

Table 4 ChangeRequestOplogVO

Parameter

Type

Description

operator_id

String

Operator ID.

operator_name

String

Operator name.

operate

String

Operation.

message

String

Operation information.

operate_time

String

Operation time.

Example Requests

GET https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/change-request/21c4adfc64194746ae38d595df3edd73/oplog/query?offset=0&limit=10

Example Responses

Status code: 200

ok

{
  "total" : 4,
  "data" : [ {
    "operator_id" : "05d8ca972f114765a8984795a8aa4d41",
    "operator_name" : "north-5",
    "operate" : "Update status",
    "message" : "Change the status from [Releasing] to [Released]",
    "operate_time" : "1718702374"
  }, {
    "operator_id" : "05d8ca972f114765a8984795a8aa4d41",
    "operator_name" : "north-5",
    "operate" : "Update status",
    "message" : "Change the status from [To be released] to [Releasing]",
    "operate_time" : "1718701675"
  }, {
    "operator_id" : "05d8ca972f114765a8984795a8aa4d41",
    "operator_name" : "north-5",
    "operate" : "Update status",
    "message" : "Change the status from [Developing] to [To be released]",
    "operate_time" : "1718701669"
  }, {
    "operator_id" : "05d8ca972f114765a8984795a8aa4d41",
    "operator_name" : "north-5",
    "operate" : "Create a change",
    "message" : "Create a change",
    "operate_time" : "1718701665"
  } ]
}

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.