ListRegionId

Updated at:

Queries the list of region IDs available for image services under a specified product for the current account.

Operation description

The returned results are affected by the available region configurations of the account and the product type. If ProductType is omitted, the query is performed based on CloudApp.

This operation returns the regions available for image services. You cannot use this information to determine whether a specific image has been distributed to these regions. Before you create or distribute an image based on a parent image, you must also check the region information of the destination image.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

appstreaming:ListRegionId

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProductType

string

No

The product type for querying available image regions. If this parameter is omitted, the query is performed based on CloudApp. Valid values:

  • CloudGame: cloud gaming

  • CloudApp: WUYING cloud application

  • CloudBrowser: secure browser

  • CloudDesktop: WUYING cloud desktop

  • ImageBuilder: image creation resource

  • ImageValidate: image validation resource

  • AndroidCloud: Android cloud

  • GpuRender: GPU rendering

  • AndroidGpuRender: Android cloud GPU rendering

  • WuyingServer: enterprise workstation

  • GpuProxy: GPU remote rendering proxy

  • GpuCache: GPU remote rendering cache

  • AIAgent: AI agent service

  • HostedDesktop: hosted computer

  • WuyingWorkstation: personal container workstation

  • WuyingWorkstationBusiness: business container workstation

  • WuyingWorkstationTeam: LingGou container workstation team edition

CloudApp

Response elements

Element

Type

Description

Example

object

The response to this API call.

Data

array

The list of region IDs available for image services under the selected product for the current account.

string

A region ID available for image services of the current product.

cn-hangzhou

Count

integer

The total number of records returned in this list.

1

Success

boolean

Indicates whether the request was processed successfully. A value of true indicates that the request was processed successfully. To determine whether an asynchronous task is completed, you must query the task status separately.

Code

string

The error code. This parameter is returned when the request fails. A successful response may not contain this field.

InternalError

Message

string

The error or result message. This parameter is used to describe the cause when the request fails. A successful response may not contain this field.

Internal error.

RequestId

string

The unique identifier of the request. You can provide this value when you troubleshoot issues.

01A1A962-5503-107B-AC8F-EBA85DF905AC

Examples

Success response

JSON format

{
  "Data": [
    "cn-hangzhou"
  ],
  "Count": 1,
  "Success": false,
  "Code": "InternalError",
  "Message": "Internal error.",
  "RequestId": "01A1A962-5503-107B-AC8F-EBA85DF905AC"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.