Package com.dtsx.astra.sdk.db
Class DbPrivateLinksClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbPrivateLinksClient
Delegate private link operations.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionDbPrivateLinksClient
(String token, ApiLocator.AstraEnvironment env, String databaseId) As immutable object use builder to initiate the object.DbPrivateLinksClient
(String token, String databaseId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
TODO Accept a private endpoint connection.void
createPrincipal
(String region) TODO Add an allowed principal to the service.void
TODO Delete private endpoint connection.void
findAll()
TODO Get info about all private endpoint connections for a specific databasevoid
TODO Get info about private endpoints in a region.TODO Get a specific endpoint.void
TODO Update private endpoint description.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
DbPrivateLinksClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated token
-
DbPrivateLinksClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated token
-
-
Method Details
-
findAll
public void findAll()TODO Get info about all private endpoint connections for a specific databasehttps://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/ListPrivateLinksForOrg
-
findAll
TODO Get info about private endpoints in a region.- Parameters:
region
- current region where add the private linkhttps://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/GetPrivateLinksForDatacenter
-
createPrincipal
TODO Add an allowed principal to the service.- Parameters:
region
- region where add the principal Configure a private endpoint connection by providing the allowed principal to connect with
-
create
TODO Accept a private endpoint connection.- Parameters:
region
- region where add the private endpointhttps://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/AcceptEndpointToService
-
findById
TODO Get a specific endpoint.https://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/GetPrivateLinkEndpoint
- Parameters:
region
- current regionendpointId
- endpoint id fo the region- Returns:
- the private endpoint of exist
-
update
TODO Update private endpoint description.- Parameters:
region
- current regionendpointId
- endpoint id fo the regionendpoint
- new value for the endpointhttps://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/UpdateEndpoint
-
delete
TODO Delete private endpoint connection.- Parameters:
region
- current regionendpointId
- endpoint id fo the regionhttps://docs.datastax.com/en/astra/docs/_attachments/devopsv2.html#operation/DeleteEndpoint
-