Skip to content

Latest commit

 

History

History
196 lines (112 loc) · 5.41 KB

ConnectionApi.md

File metadata and controls

196 lines (112 loc) · 5.41 KB

\ConnectionApi

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

Method HTTP request Description
DeleteConnection Delete /connections/{connection_id} Delete a connection entry
GetConnection Get /connections/{connection_id} Get a connection entry
GetConnections Get /connections Get all connection entries
PatchConnection Patch /connections/{connection_id} Update a connection entry
PostConnection Post /connections Create connection entry

DeleteConnection

DeleteConnection(ctx, connectionId)

Delete a connection entry

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
connectionId string The 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

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
connectionId string The 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

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *GetConnectionsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetConnectionsOpts struct

Name Type Description Notes
limit optional.Int32 The numbers of items to return. [default to 100]
offset optional.Int32 The 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

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
connectionId string The Connection ID.
connection Connection
optional *PatchConnectionOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PatchConnectionOpts struct

Name Type Description Notes

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

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
connection Connection

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]