public class Pulse extends TaskclusterRequestHandler
The taskcluster-pulse service, typically available at pulse.taskcluster.net manages pulse credentials for taskcluster users.
A service to manage Pulse credentials for anything using Taskcluster credentials. This allows for self-service pulse access and greater control within the Taskcluster project.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
defaultBaseURL |
| Constructor and Description |
|---|
Pulse() |
Pulse(Credentials credentials) |
Pulse(Credentials credentials,
String baseURL) |
Pulse(String baseURL) |
Pulse(String clientId,
String accessToken) |
Pulse(String clientId,
String accessToken,
String certificate) |
| Modifier and Type | Method and Description |
|---|---|
CallSummary<NamespaceCreationRequest,NamespaceCreationResponse> |
claimNamespace(String namespace,
NamespaceCreationRequest payload)
Claim a namespace, returning a username and password with access to that namespace good for a short time.
|
CallSummary<EmptyPayload,ListNamespacesResponse> |
listNamespaces()
List the namespaces managed by this service.
|
CallSummary<EmptyPayload,Namespace> |
namespace(String namespace)
Get public information about a single namespace.
|
CallSummary<EmptyPayload,RabbitOverviewResponse> |
overview()
Get an overview of the Rabbit cluster.
|
CallSummary<EmptyPayload,EmptyPayload> |
ping()
Respond without doing anything.
|
apiCall, setBaseURL, uriEncodeprotected static final String defaultBaseURL
public Pulse(Credentials credentials)
public Pulse(Credentials credentials, String baseURL)
public Pulse(String baseURL)
public Pulse()
public CallSummary<EmptyPayload,RabbitOverviewResponse> overview() throws APICallFailure
Get an overview of the Rabbit cluster.
APICallFailurepublic CallSummary<EmptyPayload,ListNamespacesResponse> listNamespaces() throws APICallFailure
List the namespaces managed by this service.
This will list up to 1000 namespaces. If more namespaces are present a continuationToken will be returned, which can be given in the next request. For the initial request, do not provide continuation.
APICallFailurepublic CallSummary<EmptyPayload,Namespace> namespace(String namespace) throws APICallFailure
Get public information about a single namespace. This is the same information as returned by listNamespaces.
APICallFailurepublic CallSummary<NamespaceCreationRequest,NamespaceCreationResponse> claimNamespace(String namespace, NamespaceCreationRequest payload) throws APICallFailure
Claim a namespace, returning a username and password with access to that namespace good for a short time. Clients should call this endpoint again at the re-claim time given in the response, as the password will be rotated soon after that time. The namespace will expire, and any associated queues and exchanges will be deleted, at the given expiration time.
The expires and contact properties can be updated at any time in a reclaim operation.
Required scopes: pulse:namespace:
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> ping() throws APICallFailure
Respond without doing anything. This endpoint is used to check that the service is up.
APICallFailureCopyright © 2014–2018 Mozilla. All rights reserved.