Class BambooCredentialsImportResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooCredentialsImportResource
@Path("/import/sharedCredentials")
@Consumes("application/x-yaml")
@Produces("application/json")
@Singleton
public class BambooCredentialsImportResource
extends Object
-
Constructor Summary
ConstructorDescriptionBambooCredentialsImportResource
(CredentialsExportService credentialsExportService, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
importCredential
(@NotNull String yamlString, javax.ws.rs.core.HttpHeaders headers) Import configuration of a shared credential in YAML format.
-
Constructor Details
-
BambooCredentialsImportResource
@Inject public BambooCredentialsImportResource(CredentialsExportService credentialsExportService, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
-
Method Details
-
importCredential
@POST public javax.ws.rs.core.Response importCredential(@NotNull @NotNull String yamlString, @Context javax.ws.rs.core.HttpHeaders headers) throws WebValidationException Import configuration of a shared credential in YAML format. Request payload contains YAML with import data.- Throws:
WebValidationException
-