Mengkueri detail rencana instans Database Analitik for PostgreSQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDBInstancePlans |
get |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. Catatan
Anda dapat memanggil operasi DescribeDBInstances untuk mengkueri detail semua instans Database Analitik for PostgreSQL di wilayah tertentu, termasuk ID instans. |
gp-bp12ga6v69h86**** |
| PlanDesc |
string |
No |
Deskripsi rencana. |
this is a test plan |
| PlanType |
string |
No |
Tipe rencana. Nilai valid:
|
PauseResume |
| PlanScheduleType |
string |
No |
Mode eksekusi rencana. Nilai valid:
|
Regular |
| PlanId |
string |
No |
ID rencana. Catatan
Anda dapat memanggil operasi DescribeDBInstancePlans untuk mengkueri detail rencana, termasuk ID rencana. |
1234 |
| PlanCreateDate |
string |
No |
Memfilter rencana yang dibuat sebelum tanggal ini. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu harus dalam UTC. Jika Anda tidak menentukan parameter ini, semua rencana akan dikembalikan. |
2022-04-17T23:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
Status eksekusi API. Jika eksekusi berhasil, success dikembalikan. Jika eksekusi gagal, parameter ini tidak dikembalikan. |
success |
| ErrorMessage |
string |
Paket error. Parameter ini hanya dikembalikan ketika pemanggilan API gagal. |
**** |
| RequestId |
string |
ID permintaan. |
34b32a0a-08ef-4a87-b6be-cdd988888888 |
| TotalRecordCount |
integer |
Jumlah total entri yang dikembalikan. |
1 |
| PageRecordCount |
integer |
Jumlah entri yang dikembalikan pada halaman saat ini. |
1 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| Items |
object |
||
| PlanList |
array<object> |
Daftar rencana. |
|
|
object |
|||
| PlanName |
string |
The name of the plan. |
test-plan |
| PlanDesc |
string |
The description of the plan. |
this is a test plan |
| PlanId |
string |
The plan ID. |
1234 |
| PlanStatus |
string |
The status of the plan. Valid values:
|
active |
| PlanType |
string |
The type of the plan. Valid values:
|
PauseResume |
| PlanScheduleType |
string |
The execution mode of the plan. Valid values:
|
Regular |
| PlanStartDate |
string |
The start time of the plan. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. Catatan
|
2022-04-17T23:00Z |
| PlanEndDate |
string |
The end time of the plan. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. Catatan
|
2023-04-17T23:00Z |
| PlanConfig |
string |
The execution information of the plan. |
{"pause":{"planCronTime":"0 22 * * 5"},"resume":{"planCronTime":"0 23 * * 5"}} |
| DBInstanceId |
string |
The instance ID. |
gp-bp12ga6v69h86**** |
Contoh
Respons sukses
JSONformat
{
"Status": "success",
"ErrorMessage": "****",
"RequestId": "34b32a0a-08ef-4a87-b6be-cdd988888888",
"TotalRecordCount": 1,
"PageRecordCount": 1,
"PageNumber": 1,
"Items": {
"PlanList": [
{
"PlanName": "test-plan",
"PlanDesc": "this is a test plan",
"PlanId": "1234",
"PlanStatus": "active",
"PlanType": "PauseResume",
"PlanScheduleType": "Regular",
"PlanStartDate": "2022-04-17T23:00Z",
"PlanEndDate": "2023-04-17T23:00Z",
"PlanConfig": "{\"pause\":{\"planCronTime\":\"0 22 * * 5\"},\"resume\":{\"planCronTime\":\"0 23 * * 5\"}}",
"DBInstanceId": "gp-bp12ga6v69h86****"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.