ListRegionId
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
Test
RAM authorization
|
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:
|
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.