Postgres Gateway Users

A postgres gateway user (also a typical postgres user) owns the foreign tables (built in or custom).

The created postgres user only has access to use foreign tables and cannot directly create tables users. To create foreign tables use the Postgres Gateway Tables APIs

List users

Required capabilities: postgresGateway:READ

List all users in a given project. If more than limit users exist, a cursor for pagination will be returned with the response.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
query Parameters
limit
integer [ 1 .. 100 ]
Default: 100

Limits the number of results to be returned. The maximum results returned by the server is 100 even if you specify a higher limit.

cursor
string

Cursor for paging through results. In general, if a response contains a nextCursor property, it means that there may be more results, and you should pass that value as the cursor parameter in the next request.

Note that the cursor may or may not be encrypted, but either way, it is not intended to be decoded. Its internal structure is not a part of the public API, and may change without notice. You should treat it as an opaque string and not attempt to craft your own cursors.

Example: cursor=4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo
Responses
200

List of users paginated

400

The response for a bad request.

422

Validation Error

get/postgresgateway
Response samples
application/json
{
  • "items": [
    ],
  • "nextCursor": "string"
}

Create users

Required capabilities: postgresGateway:WRITE

Create postgres users.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

List of postgres users to create

required
Array of objects (Items) = 1 items
Responses
200

List of created users

400

Response of a failed request

422

Validation Error

post/postgresgateway
Request samples
application/json
{
  • "items": [
    ]
}
Response samples
application/json
{
  • "items": [
    ]
}

Filter users

List all postgres users for a given project. If more than limit users exist, a cursor for pagination will be returned with the response.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required
limit
integer <int32> [ 1 .. 10 ]
cursor
string (Cursor)

Cursor for pagination

Responses
200

List of users paginated

400

The response for a bad request.

422

Validation Error

post/postgresgateway/list
Request samples
application/json
{
  • "limit": 1,
  • "cursor": "string"
}
Response samples
application/json
{
  • "items": [
    ],
  • "nextCursor": "string"
}

Retrieve users

Required capabilities: postgresGateway:READ

Retrieve a list of postgres users by their usernames, optionally ignoring unknown usernames

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required
required
Array of objects (UsernameWrapper) [ 1 .. 10 ] items
ignoreUnknownIds
boolean

Ignore usernames that are not found

Responses
200

List of users retrieved by their usernames

400

Response of a failed request

422

Validation Error

post/postgresgateway/byids
Request samples
application/json
{
  • "items": [
    ],
  • "ignoreUnknownIds": true
}
Response samples
application/json
{
  • "items": [
    ]
}

Update users

Required capabilities: [object Object]

Update postgres users

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

Users to update

required
Array of objects (Items) = 1 items
Responses
200

Returns users with updates

400

The response for a bad request.

422

Validation Error

post/postgresgateway/update
Request samples
application/json
{
  • "items": [
    ]
}
Response samples
application/json
{
  • "items": [
    ],
  • "nextCursor": "string"
}

Delete users

Required capabilities: [object Object]

Delete postgres users

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

Postgres users to delete

required
Array of objects (UsernameWrapper) = 1 items
ignoreUnknownIds
boolean

Ignore usernames that are not found

Responses
200

Empty response.

400

The response for a bad request.

422

Validation Error

post/postgresgateway/delete
Request samples
application/json
{
  • "items": [
    ],
  • "ignoreUnknownIds": true
}
Response samples
application/json
{ }