All Products
Search
Document Center

Cloud Phone:CheckResourceStock

Last Updated:Dec 12, 2025

Checks the inventory of Cloud Phone resources. Before you create an instance, call this operation to check whether resources are available in the target region. Create the instance only after you confirm that resources are available.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

BizRegionId

string

Yes

The ID of the region.

cn-hangzhou

ZoneId

string

No

The zone where the resource resides.

cn-hangzhou-i

AcpSpecId

string

No

The ID of the instance type.

Valid values:

  • acp.perf.large :

    Enhanced

  • acp.basic.small :

    Lightweight

  • acp.std.small :

    General

  • acp.std.large :

    Standard

  • acp.perf.small :

    Enhanced

acp.basic.small

GpuAcceleration

boolean

No

Specifies whether to enable GPU acceleration.

Valid values:

  • true :

    Enables GPU acceleration.

  • false :

    Disables GPU acceleration. This is the default value.

false

Amount

integer

No

The number of Cloud Phone instances.

2

Response elements

Element

Type

Description

Example

object

The response elements.

RequestId

string

The ID of the request.

805D8FB6-512A-531C-9E4D-2A807D3C****

ResourceStockModels

array<object>

The resource inventory details.

object

RegionId

string

The ID of the region.

cn-shanghai

ZoneId

string

The ID of the zone.

cn-shanghai-b

StockStatus

string

The inventory status of the instance group.

Valid values:

  • SoldOut :

    The resources are sold out.

  • Available :

    The inventory is sufficient.

Available

Examples

Success response

JSON format

{
  "RequestId": "805D8FB6-512A-531C-9E4D-2A807D3C****",
  "ResourceStockModels": [
    {
      "RegionId": "cn-shanghai",
      "ZoneId": "cn-shanghai-b",
      "StockStatus": "Available"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.