\ConnectionApi

All URIs are relative to http://localhost/api/v1

MethodHTTP requestDescription
DeleteConnectionDelete /connections/{connection_id}Delete a connection entry
GetConnectionGet /connections/{connection_id}Get a connection entry
GetConnectionsGet /connectionsGet all connection entries
PatchConnectionPatch /connections/{connection_id}Update a connection entry
PostConnectionPost /connectionsCreate connection entry

DeleteConnection

DeleteConnection(ctx, connectionId)

Delete a connection entry

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
connectionIdstringThe Connection ID.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetConnection

Connection GetConnection(ctx, connectionId)

Get a connection entry

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
connectionIdstringThe Connection ID.

Return type

Connection

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetConnections

ConnectionCollection GetConnections(ctx, optional)

Get all connection entries

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
optional*GetConnectionsOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetConnectionsOpts struct

NameTypeDescriptionNotes
limitoptional.Int32The numbers of items to return.[default to 100]
offsetoptional.Int32The number of items to skip before starting to collect the result set.

Return type

ConnectionCollection

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchConnection

Connection PatchConnection(ctx, connectionId, connection, optional)

Update a connection entry

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
connectionIdstringThe Connection ID.
connectionConnection
optional*PatchConnectionOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PatchConnectionOpts struct

NameTypeDescriptionNotes

updateMask | optional.Interface of []string| The fields to update on the connection (connection, pool etc). If absent or empty, all modifiable fields are updated. A comma-separated list of fully qualified names of fields. |

Return type

Connection

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostConnection

Connection PostConnection(ctx, connection)

Create connection entry

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
connectionConnection

Return type

Connection

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]