- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Instances
DescribeScheduledInstanceStock - Queries the reservation status of Elastic Scheduled Instances
Instances
DescribeScheduledInstanceStock - Queries the reservation status of Elastic Scheduled Instances
DescribeScheduledInstanceStock - Queries the reservation status of Elastic Scheduled Instances
Call the DescribeScheduledInstanceStock operation to query the available reservation time slots for Elastic Scheduled Instances (ESIs).
Request description
Currently, this operation only returns reservation status based on the resource delivery time period. The following table describes the return value.
tip
The Elastic Scheduled Instances-Segmented type is currently in Beta. If you need a trial, contact the account manager to apply.
Debugging
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
The table below lists only the request parameters specific to this operation and some common parameters. For more information, refer to Common parameters. Action string required Sample value: DescribeScheduledInstanceStock
The operation that you want to perform. Valid value: DescribeScheduledInstanceStock.
Version string required Sample value: 2020-04-01
The version of the API. Valid value: 2020-04-01.
DeliveryType string Optional Sample value: Reserve
The delivery type of Elastic Scheduled Instances-Segmented. Valid values:
- Reserve (default): Scheduled delivery
- Immediate: Immediate delivery
tip
- When ElasticScheduledInstanceType is set to Segmented, this parameter takes effect.
- This feature is currently in Beta. If you need a trial, contact the account manager to apply.
ElasticScheduledInstanceType string Optional Sample value: Esi
The ESI type. Value:
- Esi (default): Elastic Scheduled Instances (ESI)
- Segmented: Elastic Scheduled Instances-Segmented
tip
This feature is currently in Beta. If you need a trial, contact the account manager to apply.
InstanceTypeId string Optional Sample value: ecs.g3i.xlarge
Instance type.
When ElasticScheduledInstanceType is set to Segmented, this parameter is required. This parameter specifies that the reservation and stock status of Elastic Scheduled Instances-Segmented with the current instance type are queried.
tip
This feature is currently in Beta. If you need a trial, contact the account manager to apply.
VolumeType string Optional Sample value: ESSD_PL0
Specify the volume type to query. Valid values:
- ESSD_FlexPL: ESSD FlexPL
ZoneId string Optional Sample value: cn-beijing-a
The ID of the availability zone where the instance is located.
You can call the DescribeZones operation to query the availability zones in the same region. tip
When ElasticScheduledInstanceType is set to Segmented, this parameter is required.
Response parameters
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure. ScheduledInstanceStock object[] Sample value: --
The information about the reservation that meets the conditions.
ReleaseStatus string Sample value: AVAILABLE
The release reservation status for the current time period. Valid values:
- AVAILABLE: Not fully booked. Reservation is allowed.
- NOT_AVAILABLE: Fully booked. Select another time period for reservation.
tip
If the value of ElasticScheduledInstanceType is Esi, the return value of this parameter is empty.
EndDeliveryAt string Sample value: 2024-01-04T18:30:00+08:00
The end time for instance delivery.
StartDeliveryAt string Sample value: 2024-01-04T18:20:00+08:00
The start time for instance delivery.
The reservation status of stock for the current time period. Valid values:
- AVAILABLE: Not fully booked. Reservation is allowed.
- If the value of ElasticScheduledInstanceType is Esi, you also need to call DescribeAvailableResource to query whether the instance stock is sufficient.
- If the value of ElasticScheduledInstanceType is Segmented, whether a reservation can be made successfully when an order is placed also depends on the actual automatic release time selected.
- NOT_AVAILABLE: Fully booked. Select another time period for reservation.
Sample request
Sample response
Error codes
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.
Last updated: 2026.06.18 17:48:26