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 Summary
Modifier and TypeFieldDescriptionstatic final RestSharedCredential
static final RestListModel<RestSharedCredential>
static final RestSharedCredential
static final RestListModel<RestSharedCredential>
-
Constructor Summary
ConstructorDescriptionSharedCredentialResource
(CredentialsManager credentialsManager, ProjectManager projectManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LinkService linkService, RestPermissionCheck restPermissionCheck, SharedCredentialConversionFunction sharedCredentialConversionFunction) -
Method Summary
Modifier and TypeMethodDescription@NotNull RestSharedCredential
createPasswordSharedCredential
(@NotNull RestSharedCredential restSharedCredential, @NotNull javax.ws.rs.core.UriInfo uriInfo) @NotNull RestSharedCredential
createSshSharedCredential
(@NotNull RestSharedCredential restSharedCredential, @NotNull javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
deletePasswordSharedCredential
(long sharedCredentialId) javax.ws.rs.core.Response
deleteSshSharedCredential
(long sharedCredentialId) @NotNull RestSharedCredential
getPasswordSharedCredential
(@NotNull Long sharedCredentialId, @NotNull javax.ws.rs.core.UriInfo uriInfo) @NotNull RestListModel<RestSharedCredential>
getPasswordSharedCredentials
(@NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull ExpansionParam expansion) @NotNull RestSharedCredential
getSshSharedCredential
(@NotNull Long sharedCredentialId, @NotNull javax.ws.rs.core.UriInfo uriInfo) @NotNull RestListModel<RestSharedCredential>
getSshSharedCredentials
(@NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull ExpansionParam expansion) updatePasswordSharedCredential
(long sharedCredentialId, @NotNull RestSharedCredential restSharedCredential, @NotNull javax.ws.rs.core.UriInfo uriInfo) updateSshSharedCredential
(long sharedCredentialId, @NotNull RestSharedCredential restSharedCredential, @NotNull javax.ws.rs.core.UriInfo uriInfo) protected @NotNull ErrorCollection
validate
(@NotNull RestSharedCredential restSharedCredential, @Nullable Long sharedCredentialId)
-
Field Details
-
SSH_SHARED_CREDENTIAL
-
PASSWORD_SHARED_CREDENTIAL
-
SSH_SHARED_CREDENTIALS
-
PASSWORD_SHARED_CREDENTIALS
-
-
Constructor Details
-
Method Details