All Products
Search
Document Center

Batch Compute:getAppDetail

Last Updated:May 11, 2018

Method description

Queries information about a specific version of a private App resource, including parameters and command lines.

Call method

  1. GetAppDetailResponse getAppDetail(String appName, String qualifier) throws ClientException;
  2. GetAppDetailResponse getAppDetail(GetAppDetailRequest req) throws ClientException;

Parameter description

Parameter Type Required Description
appName String Yes Name of the App.
Qualifier String Yes Alias or version number of the App resource. If this parameter is not specified, the information about the latest version is queried.

Response description

  • If the call succeeds, a GetAppDetailResponse instance is returned. You can use getAppDetail() to obtain AppDescription.

  • For more information about attributes of AppDescription, see Create an App.

  • If the call fails, a ClientException is thrown.

Sample code

  1. try{
  2. GetAppDetailResponse getAppDetailResponse = client.getAppDetail("myApp","0");
  3. AppDescription appDescription = getAppDetailResponse.getAppDetail();
  4. //The method is successfully called.
  5. }catch(ClientException e){
  6. e.printStackTrace();
  7. //The method fails to be called.
  8. }