All Products
Search
Document Center

E-MapReduce:ListReleaseVersions

Last Updated:Mar 10, 2025

Queries the list of published versions of E-MapReduce (EMR) Serverless Spark.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
emr-serverless-spark:ListReleaseVersionslist
*All Resources
*
    none
none

Request syntax

GET /api/v1/releaseVersions HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
releaseVersionstringNo

The version of EMR Serverless Spark.

esr-2.1 (Spark 3.3.1, Scala 2.12, Java Runtime)
releaseVersionStatusstringNo

The status of the version.

Valid values:

  • ONLINE
  • OFFLINE
ONLINE
releaseTypestringNo

The type of the version.

Valid values:

  • stable
  • Beta
Enumeration Value:
  • stable: stable.
  • beta: beta.
stable
workspaceIdstringNo

The workspace ID.

w-d2d82aa09155****
regionIdstringNo

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

releaseVersionsarray<object>

The versions.

ListReleaseVersionsDTOobject

The version.

releaseVersionstring

The version number.

esr-2.1 (Spark 3.3.1, Scala 2.12, Java Runtime)
statestring

The status of the version.

ONLINE
typestring

The type of the version.

stable
iaasTypestring

The type of the Infrastructure as a Service (IaaS) layer.

ASI
gmtCreatelong

The creation time.

1716215854101
scalaVersionstring

The version of Scala.

2.12
communityVersionstring

The version number of open source Spark.

Spark 3.3.1
cpuArchitecturesarray

The CPU architectures.

CpuArchitecturestring

The CPU architecture.

x86
displayReleaseVersionstring

The version number.

esr-2.1 (Spark 3.3.1, Scala 2.12)
fusionboolean

Indicates whether the Fusion engine is used for acceleration.

true
requestIdstring

The request ID.

DD6B1B2A-5837-5237-ABE4-FF0C8944****
nextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

1
maxResultsinteger

The maximum number of entries returned.

20
totalCountinteger

The total number of entries returned.

200

Examples

Sample success responses

JSONformat

{
  "releaseVersions": [
    {
      "releaseVersion": "esr-2.1 (Spark 3.3.1, Scala 2.12, Java Runtime)",
      "state": "ONLINE",
      "type": "stable",
      "iaasType": "ASI",
      "gmtCreate": 1716215854101,
      "scalaVersion": "2.12",
      "communityVersion": "Spark 3.3.1",
      "cpuArchitectures": [
        "x86"
      ],
      "displayReleaseVersion": "esr-2.1 (Spark 3.3.1, Scala 2.12)",
      "fusion": true
    }
  ],
  "requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
  "nextToken": "1",
  "maxResults": 20,
  "totalCount": 200
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-10The request parameters of the API has changedView Change Details
2024-08-20The response structure of the API has changedView Change Details