Skip to main content

ListVersions

Retrieve version information for your purchased services.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the run succeeds, OpenAPI Explorer can automatically generate SDK code examples. Debug

RAM authorization

The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: refers to the specific permission point.
  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: refers to the resource types that support authorization in the operation. Details are as follows:
    • For required resource types, an asterisk (*) is prefixed.
    • For operations that do not support resource-level authorization, 全部资源 is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.
  • Dependent action: refers to the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:ListVersionslist
*All resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
AgentKeystringYes

Unique identifier of the workspace: AgentKey

33a2658aaabf4c24b45d50e575125311_p_beebot_public

Response elements

ElementTypeDescriptionExample
object

PlainResult

Codestring

Status code

DataNotExists
Dataarray<object>

Business data

Dataobject

List item

ConcurrentCountinteger

Concurrency

43
EndTimestring

Service expiration time

2023-04-23 02:00:34
InstanceCountinteger

Number of instances

55
InstanceIdstring

Instance ID

ga-bp12pismsw4v3tzhf62p1
OrderIdlong

Order ID

7
ProductTypestring

Version type (TRIAL: trial edition, STANDARD: professional edition, CUSTOMIZE: custom edition)

CUSTOMIZE
Quotainteger

Trial edition quota

13
StartTimestring

Service start time

2023-05-27 04:11:00
UseQuotainteger

Trial edition usage count

65
VersionDetailstring

Version details

Standard Edition - Public concurrency: 1 concurrency
VersionNamestring

Version

Trial edition
VersionStatusinteger

Validity status: 0 indicates active, 1 indicates version expired (go to the renewal page), 2 indicates version unavailable (go to the purchase page)

87
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

Data does not exist
RequestIdstring

Request ID

3f7045e099474ba28ceca1b4eb6d6e21
Successboolean

Indicates success: true for success, false for failure

true

Examples

Success response JSON format
{
  "Code": "DataNotExists",
  "Data": [
    {
      "ConcurrentCount": 43,
      "EndTime": "2023-04-23 02:00:34",
      "InstanceCount": 55,
      "InstanceId": "ga-bp12pismsw4v3tzhf62p1",
      "OrderId": 7,
      "ProductType": "CUSTOMIZE",
      "Quota": 13,
      "StartTime": "2023-05-27 04:11:00",
      "UseQuota": 65,
      "VersionDetail": "标准版-公共并发:1并发",
      "VersionName": "试用版",
      "VersionStatus": 87
    }
  ],
  "HttpStatusCode": 200,
  "Message": "数据不存在",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.