All Products
Search
Document Center

Elastic Compute Service:DescribeInstancesFullStatus

Last Updated:Jun 12, 2026

Memanggil DescribeInstancesFullStatus untuk mengkueri informasi status lengkap dari satu atau beberapa instans ECS. Informasi status lengkap mencakup status instans dan status peristiwa sistem instans. Status instans adalah status siklus hidup instans, dan peristiwa sistem instans adalah status kesehatan dari peristiwa pemeliharaan.

Deskripsi operasi

Deskripsi

Respons mencakup status instans dan peristiwa sistem instans yang berada dalam status Scheduled.

Jika Anda menentukan rentang waktu, peristiwa difilter berdasarkan rentang waktu tersebut.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

ecs:DescribeInstancesFullStatus

list

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID region tempat instans berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar region Alibaba Cloud terbaru.

cn-hangzhou

RegionId

string

Yes

ID region tempat instans berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar region Alibaba Cloud terbaru.

cn-hangzhou

Status

string

No

Status siklus hidup instans. Nilai yang valid:

  • Starting: Instans sedang dimulai.

  • Running: Instans sedang berjalan.

  • Stopped: Instans dihentikan.

Running

HealthStatus

string

No

Status kesehatan instans. Nilai yang valid:

  • Impaired: Layanan rusak.

  • Warning: Peringatan. Performa instans mungkin menurun karena pemeliharaan.

  • Maintaining: Instans sedang dalam pemeliharaan.

  • Initializing: Instans sedang diinisialisasi.

  • InsufficientData: Data tidak mencukupi.

  • NotApplicable: Tidak berlaku.

Nilai parameter di atas bersifat case-sensitive.

Initializing

EventType

string

No

Jenis peristiwa. Parameter EventType hanya berlaku ketika parameter InstanceEventType.N tidak ditentukan. Nilai yang valid:

  • SystemMaintenance.Reboot: Instans dimulai ulang karena pemeliharaan sistem.

  • SystemFailure.Reboot: Instans dimulai ulang karena kesalahan sistem.

  • InstanceFailure.Reboot: Instans dimulai ulang karena kesalahan instans.

  • InstanceExpiration.Stop: Instans berlangganan dihentikan karena langganan kedaluwarsa.

  • InstanceExpiration.Delete: Instans berlangganan dilepaskan karena langganan kedaluwarsa.

  • AccountUnbalanced.Stop: Instans pay-as-you-go dihentikan karena akun memiliki pembayaran yang melewati jatuh tempo.

  • AccountUnbalanced.Delete: Instans pay-as-you-go dilepaskan karena akun memiliki pembayaran yang melewati jatuh tempo.

InstanceExpiration.Stop

NotBefore.Start

string

No

Awal rentang waktu di mana peristiwa dijadwalkan untuk dieksekusi. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC.

2017-12-07T00:00:00Z

NotBefore.End

string

No

Akhir rentang waktu di mana peristiwa dijadwalkan untuk dieksekusi. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC.

2017-11-30T00:00:00Z

EventPublishTime.Start

string

No

Awal rentang waktu di mana peristiwa diterbitkan. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC.

2017-11-30T00:00:00Z

EventPublishTime.End

string

No

Akhir rentang waktu di mana peristiwa diterbitkan. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC.

2017-12-07T00:00:00Z

PageNumber

integer

No

Nomor halaman yang akan dikembalikan. Nilai yang valid: bilangan bulat positif.

Nilai default: 1.

1

PageSize

integer

No

Jumlah entri yang dikembalikan per halaman. Nilai yang valid: 1 hingga 100.

Nilai default: 10.

10

InstanceId

array

No

Daftar ID instans. Anda dapat menentukan hingga 100 ID instans.

i-bp67acfmxazb4p****

string

No

ID instans.

i-bp67acfmxazb4p****

EventId

array

No

Daftar ID peristiwa. Anda dapat menentukan hingga 100 ID peristiwa.

e-bp1hygp5b04o56l0****

string

No

ID peristiwa.

e-bp1hygp5b04o56l0****

InstanceEventType

array

No

Daftar jenis peristiwa instans. Anda dapat menentukan hingga 30 jenis peristiwa instans.

InstanceExpiration.Stop

string

No

Jenis peristiwa sistem instans. Nilai yang valid:

  • SystemMaintenance.Reboot: Instans dimulai ulang karena pemeliharaan sistem.

  • SystemMaintenance.Redeploy: Instans di-deploy ulang karena pemeliharaan sistem.

  • SystemFailure.Reboot: Instans dimulai ulang karena kesalahan sistem.

  • SystemFailure.Redeploy: Instans di-deploy ulang karena kesalahan sistem.

  • SystemFailure.Delete: Instans dilepaskan karena kegagalan dalam pembuatan instans.

  • InstanceFailure.Reboot: Instans dimulai ulang karena kesalahan instans.

  • InstanceExpiration.Stop: Instans berlangganan dihentikan karena langganan kedaluwarsa.

  • InstanceExpiration.Delete: Instans berlangganan dilepaskan karena langganan kedaluwarsa.

  • AccountUnbalanced.Stop: Instans pay-as-you-go dihentikan karena akun memiliki pembayaran yang melewati jatuh tempo.

  • AccountUnbalanced.Delete: Instans pay-as-you-go dilepaskan karena akun memiliki pembayaran yang melewati jatuh tempo.

Catatan

Untuk informasi lebih lanjut tentang jenis peristiwa, lihat Ikhtisar peristiwa sistem. Nilai parameter ini hanya bisa berupa peristiwa sistem instans, bukan peristiwa sistem disk.

SystemMaintenance.Reboot

Elemen respons

Element

Type

Description

Example

object

PageSize

integer

Jumlah entri per halaman.

1

RequestId

string

ID permintaan.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

PageNumber

integer

Nomor halaman.

1

TotalCount

integer

Jumlah total entri.

2

InstanceFullStatusSet

object

InstanceFullStatusType

array<object>

Larik entri status lengkap instans.

Catatan

Jika instans tidak ada, parameter ini kosong.

array<object>

InstanceId

string

The instance ID.

i-bp67acfmxazb4p****

ScheduledSystemEventSet

object

ScheduledSystemEventType

array<object>

The system events that are in the Scheduled or Inquiring state.

array<object>

EventPublishTime

string

The time when the system event was published. The time is displayed in UTC.

2017-11-30T06:32:31Z

EventId

string

The system event ID.

e-bp1hygp5b04o56l0****

NotBefore

string

The scheduled time at which to execute the O&M task related to the system event. The time is displayed in UTC.

2017-12-07T00:00:00Z

ImpactLevel

string

The impact level of the system event.

Catatan

If the user is not in a whitelist, this parameter is empty.

100

Reason

string

The reason why the system event was scheduled.

Catatan

If the exception cause is not detected, this parameter is empty.

A simulated event.

EventCycleStatus

object

The state of the system event.

Name

string

The name of the system event state.

Scheduled

Code

integer

The code of the system event state.

24

EventType

object

The type of the system event.

Name

string

The name of the system event type.

SystemMaintenance.Reboot

Code

integer

The code of the system event type.

1

ExtendedAttribute

object

The extended attributes of system events generated for instances that have local disks attached.

The return values vary based on the system event type.

If the system event type is not one of the following types, this parameter is empty:

  • SystemMaintenance.StopAndRepair

  • SystemMaintenance.CleanInactiveDisks

  • SecurityPunish.Locked

  • SecurityPunish.WebsiteBanned

  • SystemUpgrade.Migrate

  • SystemMaintenance.RebootAndIsolateErrorDisk

  • SystemMaintenance.RebootAndReInitErrorDisk

  • SystemMaintenance.ReInitErrorDisk

  • SystemMaintenance.IsolateErrorDisk

Device

string

The device name of the local disk.

/dev/vdb

DiskId

string

The ID of the local disk.

d-bp67acfmxazb4p****

InactiveDisks

object

InactiveDisk

array<object>

The inactive disks that have been released and must be cleared.

object

CreationTime

string

The time when the disk was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2018-07-27T13:53:25Z

DeviceSize

string

The size of the disk. Unit: GiB.

80

DeviceCategory

string

The category of the disk. Valid values:

  • cloud: basic disk

  • cloud_efficiency: ultra disk

  • cloud_ssd: standard SSD

  • cloud_essd: Enterprise SSD (ESSD)

  • local_ssd_pro: I/O-intensive local disk

  • local_hdd_pro: throughput-intensive local disk

  • ephemeral: retired local disk

  • ephemeral_ssd: retired local SSD

cloud_ssd

DeviceType

string

The type of the disk. Valid values:

  • system

  • data

system

ReleaseTime

string

The time when the disk was released. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-07-27T13:53:25Z

Status

object

The lifecycle state of the instance.

Name

string

The name of the instance lifecycle state.

Running

Code

integer

The code of the instance lifecycle state.

1

HealthStatus

object

The health state of the instance.

Name

string

The name of the health state.

Warning

Code

integer

The code of the health state.

64

Contoh

Respons sukses

JSONformat

{
  "PageSize": 1,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "PageNumber": 1,
  "TotalCount": 2,
  "InstanceFullStatusSet": {
    "InstanceFullStatusType": [
      {
        "InstanceId": "i-bp67acfmxazb4p****",
        "ScheduledSystemEventSet": {
          "ScheduledSystemEventType": [
            {
              "EventPublishTime": "2017-11-30T06:32:31Z",
              "EventId": "e-bp1hygp5b04o56l0****",
              "NotBefore": "2017-12-07T00:00:00Z",
              "ImpactLevel": "100",
              "Reason": "A simulated event.",
              "EventCycleStatus": {
                "Name": "Scheduled",
                "Code": 24
              },
              "EventType": {
                "Name": "SystemMaintenance.Reboot",
                "Code": 1
              },
              "ExtendedAttribute": {
                "Device": "/dev/vdb",
                "DiskId": "d-bp67acfmxazb4p****",
                "InactiveDisks": {
                  "InactiveDisk": [
                    {
                      "CreationTime": "2018-07-27T13:53:25Z",
                      "DeviceSize": "80",
                      "DeviceCategory": "cloud_ssd",
                      "DeviceType": "system",
                      "ReleaseTime": "2019-07-27T13:53:25Z"
                    }
                  ]
                }
              }
            }
          ]
        },
        "Status": {
          "Name": "Running",
          "Code": 1
        },
        "HealthStatus": {
          "Name": "Warning",
          "Code": 64
        }
      }
    ]
  }
}

Respons error

JSONformat

{
  "InstanceFullStatusSet": {
    "InstanceFullStatusType": [
      {
        "InstanceId": "i-instance1",
        "Status": {
          "Code": 1,
          "Name": "Running"
        },
        "HealthStatus": {
          "Code": 0,
          "Name": "Maintaining"
        },
        "ScheduledSystemEventSet": {
          "ScheduledSystemEventType": [
            {
              "EventId": "e-event1",
              "EventCycleStatus": {
                "Code": 24,
                "Name": "Scheduled"
              },
              "EventType": {
                "Code": 1,
                "Name": "SystemMaintenance.Reboot"
              },
              "EventPublishTime": "2017-11-30T06:32:31Z",
              "NotBefore": "2017-12-01T06:32:31Z"
            },
            {
              "EventId": "e-event2",
              "EventCycleStatus": {
                "Code": 24,
                "Name": "Scheduled"
              },
              "EventType": {
                "Code": 34,
                "Name": "InstanceExpiration.Stop"
              },
              "EventPublishTime": "2017-11-30T00:00:00Z",
              "NotBefore": "2017-12-07T00:00:00Z"
            }
          ]
        }
      },
      {
        "InstanceId": "i-instance2",
        "Status": {
          "Code": 1,
          "Name": "Running"
        },
        "HealthStatus": {
          "Code": 64,
          "Name": "Warning"
        },
        "ScheduledSystemEventSet": {
          "ScheduledSystemEventType": [
            {
              "EventId": "e-event3",
              "EventCycleStatus": {
                "Code": 24,
                "Name": "Scheduled"
              },
              "EventType": {
                "Code": 65,
                "Name": "SystemFailure.Reboot"
              },
              "EventPublishTime": "2017-11-30T06:32:31Z",
              "NotBefore": "2017-12-01T06:32:31Z"
            }
          ]
        }
      }
    ]
  },
  "PageSize": 10,
  "PageNumber": 1,
  "TotalCount": 2,
  "RequestId": "AAC49D3E-ED6F-4F00-XXXX-377C551B1DD4"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

403 InvalidParameter %s
403 InvalidParameter.TimeEndBeforeStart %s
403 OperationDenied.NotInWhiteList %s
403 InstanceIdLimitExceeded %s
403 EventIdLimitExceeded %s
404 MissingParameter %s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.