Menampilkan daftar pesanan perubahan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListChangeOrders |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/changeorder/ListChangeOrders HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
145341c-9708-4967-b3ec-24933767**** |
| CurrentPage |
integer |
No |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. |
20 |
| Key |
string |
No |
Kata kunci untuk pencarian fuzzy deskripsi pesanan perubahan. Operasi hanya mengembalikan pesanan perubahan yang deskripsinya mengandung kata kunci. |
test |
| CoType |
string |
No |
Tipe pesanan perubahan. Nilai valid:
|
CoCreateApp |
| CoStatus |
string |
No |
Status pesanan perubahan. Nilai valid:
|
2 |
| OrderBy |
string |
No |
Bidang yang digunakan untuk mengurutkan hasil. |
|
| Reverse |
boolean |
No |
Urutan pengurutan untuk bidang yang ditentukan oleh parameter OrderBy. Nilai valid:
|
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
65E1F-43BA-4D0C-8E61-E4D1337F**** |
| Message |
string |
Additional information about the response. |
success |
| TraceId |
string |
The trace ID used to query request details. |
0bb6f815638568884597879d**** |
| Data |
object |
The information about the change orders. |
|
| 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 |
Details of a change order. |
||
| Status |
integer |
The status of the change order. Valid values:
|
2 |
| FinishTime |
string |
The time when the change order was finished. |
2019-07-11 20:12:58 |
| CreateTime |
string |
The time when the change order was created. |
2019-07-11 15:54:49 |
| UserId |
string |
The user ID. |
sae-beta-test |
| Source |
string |
The source of the change order. |
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:
|
CoCreateApp |
| ChangeOrderId |
string |
The change order ID. |
7fa5c0-9ebb-4bb4-b383-1f885447**** |
| BatchType |
string |
The batch type. Valid values:
|
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. This parameter is the description of CoTypeCode. |
Create Application |
| AppId |
string |
The application ID. |
164341c-9708-4967-b3ec-24933767**** |
| PageSize |
integer |
The page size. |
20 |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code or the POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the list of change orders was retrieved. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"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": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | Resouce.no.permission | You are not authorized to operate on the specified resources. | |
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.