Class SharedCredentialResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.sharedcredentials.SharedCredentialResource

@Path("config/sharedCredentials") @Produces("application/json") @Consumes("application/json") public class SharedCredentialResource extends Object
REST endpoint that manage bamboo shared credentials. Different types of shared credentials can be provided via bamboo plugins and their configuration varies. This REST endpoint only supports ssh shared credentials for now.
Since:
5.10
  • Field Details

  • Constructor Details

  • Method Details

    • getSshSharedCredentials

      @NotNull @GET @Path("ssh") public @NotNull RestListModel<RestSharedCredential> getSshSharedCredentials(@Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, @BeanParam @NotNull @NotNull ExpansionParam expansion)
    • getSshSharedCredential

      @NotNull @GET @Path("ssh/{sharedCredentialId}") public @NotNull RestSharedCredential getSshSharedCredential(@PathParam("sharedCredentialId") @NotNull @NotNull Long sharedCredentialId, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
    • createSshSharedCredential

      @NotNull @POST @Path("ssh") public @NotNull RestSharedCredential createSshSharedCredential(@NotNull @NotNull RestSharedCredential restSharedCredential, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Throws:
      WebValidationException
    • updateSshSharedCredential

      @PUT @Path("ssh/{sharedCredentialId}") public RestSharedCredential updateSshSharedCredential(@PathParam("sharedCredentialId") long sharedCredentialId, @NotNull @NotNull RestSharedCredential restSharedCredential, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Throws:
      WebValidationException
    • deleteSshSharedCredential

      @DELETE @Path("ssh/{sharedCredentialId}") public javax.ws.rs.core.Response deleteSshSharedCredential(@PathParam("sharedCredentialId") long sharedCredentialId)
    • getPasswordSharedCredentials

      @NotNull @GET @Path("password") public @NotNull RestListModel<RestSharedCredential> getPasswordSharedCredentials(@Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, @BeanParam @NotNull @NotNull ExpansionParam expansion)
    • getPasswordSharedCredential

      @NotNull @GET @Path("password/{sharedCredentialId}") public @NotNull RestSharedCredential getPasswordSharedCredential(@PathParam("sharedCredentialId") @NotNull @NotNull Long sharedCredentialId, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
    • createPasswordSharedCredential

      @NotNull @POST @Path("password") public @NotNull RestSharedCredential createPasswordSharedCredential(@NotNull @NotNull RestSharedCredential restSharedCredential, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Throws:
      WebValidationException
    • updatePasswordSharedCredential

      @PUT @Path("password/{sharedCredentialId}") public RestSharedCredential updatePasswordSharedCredential(@PathParam("sharedCredentialId") long sharedCredentialId, @NotNull @NotNull RestSharedCredential restSharedCredential, @Context @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Throws:
      WebValidationException
    • deletePasswordSharedCredential

      @DELETE @Path("password/{sharedCredentialId}") public javax.ws.rs.core.Response deletePasswordSharedCredential(@PathParam("sharedCredentialId") long sharedCredentialId)
    • validate

      @NotNull protected @NotNull ErrorCollection validate(@NotNull @NotNull RestSharedCredential restSharedCredential, @Nullable @Nullable Long sharedCredentialId)