UsersApi
All URIs are relative to https://api.ionos.com/databases/mongodb
Method | HTTP request | Description |
---|---|---|
DELETE /clusters/{clusterId}/users/{username} | Delete a MongoDB User by ID | |
GET /clusters/{clusterId}/users/{username} | Get a MongoDB User by ID | |
GET /clusters/{clusterId}/users | Get all Cluster Users | |
PATCH /clusters/{clusterId}/users/{username} | Patch a MongoDB User by ID | |
POST /clusters/{clusterId}/users | Create MongoDB User |
clustersUsersDelete
clustersUsersDelete(clusterId, username)
Delete a MongoDB User by ID
Deletes a MongoDB user specified by its ID.
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | string | The unique ID of the cluster. | [default to undefined] |
username | string | The authentication username. | [default to undefined] |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
clustersUsersFindById
clustersUsersFindById(clusterId, username)
Get a MongoDB User by ID
Retrieves the MongoDB user identified by the username.
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | string | The unique ID of the cluster. | [default to undefined] |
username | string | The authentication username. | [default to undefined] |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
clustersUsersGet
clustersUsersGet(clusterId, opts)
Get all Cluster Users
Retrieves a list of MongoDB users.
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | string | The unique ID of the cluster. | [default to undefined] |
limit | number | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
offset | number | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
clustersUsersPatch
clustersUsersPatch(clusterId, username, patchUserRequest)
Patch a MongoDB User by ID
Patches a MongoDB user specified by its ID.
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | string | The unique ID of the cluster. | [default to undefined] |
username | string | The authentication username. | [default to undefined] |
patchUserRequest | Part of the MongoDB user which should be modified. |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
clustersUsersPost
clustersUsersPost(clusterId, user)
Create MongoDB User
Creates a MongoDB user.
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
clusterId | string | The unique ID of the cluster. | [default to undefined] |
user | The user to be created. |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated