Class AstraDevopsApiClient

java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.AstraDevopsApiClient

public class AstraDevopsApiClient extends AbstractApiClient
Main Class to interact with Astra Devops API.

This class uses

  • Constructor Details

    • AstraDevopsApiClient

      public AstraDevopsApiClient(String token)
      Initialize the Devops API with a token
      Parameters:
      token - bearerAuthToken token
    • AstraDevopsApiClient

      public AstraDevopsApiClient(String token, ApiLocator.AstraEnvironment env)
      Initialize the Devops API with a token
      Parameters:
      env - environment Astra
      token - bearerAuthToken token
  • Method Details

    • getOrganizationId

      public String getOrganizationId()
      Retrieve Organization id.
      Returns:
      organization id.
    • getOrganization

      public Organization getOrganization()
      Retrieve the organization wth current token.
      Returns:
      current organization
    • db

      public AstraDbClient db()
      Works with db.
      Returns:
      databases client
    • streaming

      public AstraStreamingClient streaming()
      Works with Streaming.
      Returns:
      streaming client
    • users

      public UsersClient users()
      List Users.
      Returns:
      user client
    • roles

      public RolesClient roles()
      List Roles.
      Returns:
      role client
    • keys

      public KeysClient keys()
      List keys.
      Returns:
      keys client
    • tokens

      public TokensClient tokens()
      List tokens.
      Returns:
      token client