You can call this operation to view the versions of EMR.

Request parameters

Parameter Type Required Example Description
RegionId String Yes cn-hangzhou The region ID.
AccessKeyId String Yes LTAI8ljWyu7y**** The AccessKey ID.
EmrVersion String No EMR-3.15.0 The version of EMR.
PageNumber Integer No 1 The page number. The minimum value is 1.
PageSize Integer No 10 The number of records that are displayed on each page.
StackName String No EMR The name of the software stack.
StackVersion String No 3.15.1.1.0 The version of the software stack.

Response parameters

Parameter Type Example Description
RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22 The ID of the request.
TotalCount Integer 12 The total number of records.
PageNumber Integer 1 The page number.
PageSize Integer 10 The number of records that are displayed on each page.
EmrMainVersionList The list of EMR versions.
RegionId String cn-hangzhou The region ID.
EmrVersion String EMR-3.16.0 The version of EMR.
EcmVersion Boolean True
ImageId String m-bp1hdwryap03nxpl1rcd The ID of the image.
Display Boolean true Indicates whether the version is open to the public.
StackName String "" A reserved parameter.
StackVersion String "" A reserved parameter.
ClusterTypeInfoList The list of cluster types.
ClusterType String HADOOP The type pf the cluster.
ServiceInfoList The list of services.
ServiceName String HIVE The name of the services.
ServiceDisplayName String HIVE The display name of the service.
ServiceVersion String 2.3.3.0.1 The internal version of the service.
ServiceDisplayVersion Integer 2.3.3 The display version of the service.
Mandatory Boolean true
Display Boolean true Indicates whether the version is displayed.
WhiteUserList String "" A reserved parameter.

Examples

  • Sample requests
    /? RegionId=cn-hangzhou
    &AccessKeyId=LTAI8ljWyu7y****
    &EmrVersion=EMR-3.15.0 
    &PageNumber=1 
    &PageSize=10 
    &StackName=EMR 
    &StackVersion=3.15.1.1.0
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
        "emrMainVersionList":[
            {
                "clusterTypeInfoList":[],
                "display":false,
                "ecmVersion":true,
                "emrVersion":"EMR-3.16.0",
                "imageId":"m-bp1amnkvohr8eb6wud0f",
                "regionId":"cn-hangzhou",
                "stackName":"EMR",
                "stackVersion":"3.16.0.1.2",
                "whiteUserList":[]
            },
            {
                "clusterTypeInfoList":[],
                "display":false,
                "ecmVersion":true,
                "emrVersion":"EMR-3.16.1",
                "imageId":"m-bp1amnkvohr8eb6wud0f",
                "regionId":"cn-hangzhou",
                "stackName":"EMR",
                "stackVersion":"3.16.0.1.3",
                "whiteUserList":[]
            },
            {
                "clusterTypeInfoList":[],
                "display":false,
                "ecmVersion":true,
                "emrVersion":"EMR-3.15.1",
                "imageId":"m-bp1ddn41swc2fqjgj3ik",
                "regionId":"cn-hangzhou",
                "stackName":"EMR",
                "stackVersion":"3.15.1.1.0",
                "whiteUserList":[]
            },
            {
                "clusterTypeInfoList":[],
                "display":false,
                "ecmVersion":true,
                "emrVersion":"EMR-3.15.2",
                "imageId":"m-bp1hdwryap03nxpl1rcd",
                "regionId":"cn-hangzhou",
                "stackName":"EMR",
                "stackVersion":"3.15.1.1.0",
                "whiteUserList":[]
            },
            {
                "clusterTypeInfoList":[],
                "display":false,
                "ecmVersion":true,
                "emrVersion":"EMR-3.15.3",
                "imageId":"m-bp1hdwryap03nxpl1rcd",
                "regionId":"cn-hangzhou",
                "stackName":"EMR",
                "stackVersion":"3.15.1.1.0",
                "whiteUserList":[]
            }
        ],
        "pageNumber":1,
        "pageSize":5,
        "requestId":"D835118F-3198-461E-B06E-7A73C4353F59",
        "totalCount":140
    }
  • Error response examples
    JSON format
    {
        "code":"RAM.Permission.NotAllow",
        "message":"It is not allow to execute this operation,please use RAM to authorize!",
        "requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
        "successResponse":false
    }

Error codes

View error codes.