Package com.dtsx.astra.sdk
Class AstraDevopsApiClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.AstraDevopsApiClient
Main Class to interact with Astra Devops API.
This class uses
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionAstraDevopsApiClient
(String token) Initialize the Devops API with a tokenAstraDevopsApiClient
(String token, ApiLocator.AstraEnvironment env) Initialize the Devops API with a token -
Method Summary
Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
AstraDevopsApiClient
Initialize the Devops API with a token- Parameters:
token
- bearerAuthToken token
-
AstraDevopsApiClient
Initialize the Devops API with a token- Parameters:
env
- environment Astratoken
- bearerAuthToken token
-
-
Method Details
-
getOrganizationId
Retrieve Organization id.- Returns:
- organization id.
-
getOrganization
Retrieve the organization wth current token.- Returns:
- current organization
-
db
Works with db.- Returns:
- databases client
-
streaming
Works with Streaming.- Returns:
- streaming client
-
users
List Users.- Returns:
- user client
-
roles
List Roles.- Returns:
- role client
-
keys
List keys.- Returns:
- keys client
-
tokens
List tokens.- Returns:
- token client
-