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
Delete a MongoDB User by ID
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterId | string | The unique ID of the cluster. | |
username | string | The authentication username. |
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersDeleteRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersUsersFindById
Get a MongoDB User by ID
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterId | string | The unique ID of the cluster. | |
username | string | The authentication username. |
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersFindByIdRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersUsersGet
Get all Cluster Users
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterId | string | The unique ID of the cluster. |
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | int32 | The maximum number of elements to return. Use together with 'offset' for pagination. | [default to 100] |
offset | int32 | The first element to return. Use together with 'limit' for pagination. | [default to 0] |
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
ClustersUsersPatch
Patch a MongoDB User by ID
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterId | string | The unique ID of the cluster. | |
username | string | The authentication username. |
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersPatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
patchUserRequest | Part of the MongoDB user which should be modified. |
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
ClustersUsersPost
Create MongoDB User
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
clusterId | string | The unique ID of the cluster. |
Other Parameters
Other parameters are passed through a pointer to an apiClustersUsersPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
user | The user to be created. |
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated