Class BambooCredentialsExportResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.configuration.external.BambooCredentialsExportResource
@Path("/export/sharedCredentials")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class BambooCredentialsExportResource
extends Object
-
Constructor Summary
ConstructorDescriptionBambooCredentialsExportResource
(CredentialsExportService credentialsExportService, EncryptedCredentialsAccessor encryptedCredentialsAccessor, 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
Export configuration of all shared credentials to YAML format.javax.ws.rs.core.Response
exportCredentials
(long credentialId) Export configuration of a shared credential to YAML formatjavax.ws.rs.core.Response
exportCredentials
(String oidString) Export configuration of a shared credential to YAML formatjavax.ws.rs.core.Response
Export configuration of a shared credential to YAML format
-
Constructor Details
-
BambooCredentialsExportResource
@Inject public BambooCredentialsExportResource(CredentialsExportService credentialsExportService, EncryptedCredentialsAccessor encryptedCredentialsAccessor, BambooPermissionManager bambooPermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, FeatureManager featureManager)
-
-
Method Details
-
exportAllCredentials
@POST @Path("all") public javax.ws.rs.core.Response exportAllCredentials()Export configuration of all shared credentials to YAML format.- Returns:
- json array of paths to all updated files
-
exportCredentials
@POST @Path("id/{credentialId}") public javax.ws.rs.core.Response exportCredentials(@PathParam("credentialId") long credentialId) Export configuration of a shared credential to YAML format- Parameters:
credentialId
- shared credential id- Returns:
- json array of paths to all updated files
-
exportCredentials
@POST @Path("oid/{oid}") public javax.ws.rs.core.Response exportCredentials(@PathParam("oid") String oidString) Export configuration of a shared credential to YAML format- Parameters:
oidString
- shared credential oid- Returns:
- json array of paths to all updated files
-
exportCredentialsByName
@POST @Path("name/{name}") public javax.ws.rs.core.Response exportCredentialsByName(@PathParam("name") String name) Export configuration of a shared credential to YAML format- Parameters:
name
- shared credential name- Returns:
- json array of paths to all updated files
-