All Products
Document Center


Last Updated: May 11, 2018

Method description

Queries all version numbers of a private App resource.

Call method

  1. GetAppRevisionsResponse getAppRevisions(String appName) throws ClientException;
  2. GetAppRevisionsResponse getAppRevisions(GetAppRevisionsRequest req) throws ClientException;

Parameter description

Parameter Type Required or not Description
appName String Yes Name of the App

Response description

  • If the call succeeds, a GetAppRevisionsResponse instance is returned. You can use getAppRevisions to obtain the list of App versions (AppRevisions).

Attributes of AppRevision

Attribute Type Description
revision number Version number of the App
updateTime string Version update time of the App
  • If the call fails, a ClientException is thrown.

Sample code

  1. try{
  2. GetAppRevisionsResponse getAppRevisionsResponse = client.getAppRevisions("myApp");
  3. List<AppRevision> appRevisions = getAppRevisionsResponse.getAppRevisions();
  4. //The method is successfully called.
  5. }catch(ClientException e){
  6. e.printStackTrace();
  7. //The method fails to be called.
  8. }