@Singleton public class ElasticInstanceResource extends Object
Constructor and Description |
---|
ElasticInstanceResource(BambooPermissionManager bambooPermissionManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
RestElasticInstanceService restElasticInstanceService) |
Modifier and Type | Method and Description |
---|---|
RestElasticInstanceLog |
getInstanceLog(String instanceId)
Obtain logs from an EC2 instance.
|
public ElasticInstanceResource(BambooPermissionManager bambooPermissionManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestElasticInstanceService restElasticInstanceService)
public RestElasticInstanceLog getInstanceLog(String instanceId) throws WebValidationException, NotFoundException
instanceId
- id of the EC2 instanceWebValidationException
- if the input data or server state fails validation, for example when AWS account
is not configured or Elastic Bamboo is not enabled.NotFoundException
- if an instance with the given id can't be found (the instance has to exist and
must be managed by this Bamboo server)Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.