All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| ChangePassword | Put /api/v1/customers/{cUUID}/users/{uUUID}/change_password | Change password - deprecated |
| CreateUser | Post /api/v1/customers/{cUUID}/users | Create a user |
| DeleteUser | Delete /api/v1/customers/{cUUID}/users/{uUUID} | Delete a user |
| GetUserDetails | Get /api/v1/customers/{cUUID}/users/{uUUID} | Get a user's details |
| ListUsers | Get /api/v1/customers/{cUUID}/users | List all users |
| ResetUserPassword | Put /api/v1/customers/{cUUID}/reset_password | Reset the user's password |
| RetrieveOIDCAuthToken | Get /api/v1/customers/{cUUID}/users/{uUUID}/oidc_auth_token | Retrieve OIDC auth token |
| UpdateUserProfile | Put /api/v1/customers/{cUUID}/users/{uUUID}/update_profile | Update a user's profile |
| UpdateUserRole | Put /api/v1/customers/{cUUID}/users/{uUUID} | Change a user's role |
ChangePassword(ctx, cUUID, uUUID).Users(users).Request(request).Execute()
Change password - deprecated
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
users := *openapiclient.NewUserRegistrationData("test@example.com") // UserRegistrationData | User data containing the new password
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UserManagementAPI.ChangePassword(context.Background(), cUUID, uUUID).Users(users).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.ChangePassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiChangePasswordRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
users | UserRegistrationData | User data containing the new password | request | interface{} | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserWithFeatures CreateUser(ctx, cUUID).User(user).Request(request).Execute()
Create a user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
user := *openapiclient.NewUserRegistrationData("test@example.com") // UserRegistrationData | Details of the new user
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.CreateUser(context.Background(), cUUID).User(user).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.CreateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateUser`: UserWithFeatures
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.CreateUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiCreateUserRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
user | UserRegistrationData | Details of the new user | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess DeleteUser(ctx, cUUID, uUUID).Request(request).Execute()
Delete a user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.DeleteUser(context.Background(), cUUID, uUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteUser`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.DeleteUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiDeleteUserRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserWithFeatures GetUserDetails(ctx, cUUID, uUUID).Execute()
Get a user's details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.GetUserDetails(context.Background(), cUUID, uUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.GetUserDetails``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserDetails`: UserWithFeatures
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.GetUserDetails`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiGetUserDetailsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserWithFeatures ListUsers(ctx, cUUID).Email(email).Execute()
List all users
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
email := "email_example" // string | Optional email to filter user list (optional) (default to "null")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.ListUsers(context.Background(), cUUID).Email(email).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.ListUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListUsers`: []UserWithFeatures
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.ListUsers`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiListUsersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
email | string | Optional email to filter user list | [default to "null"]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess ResetUserPassword(ctx, cUUID).Users(users).Request(request).Execute()
Reset the user's password
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
users := *openapiclient.NewUserPasswordChangeFormData() // UserPasswordChangeFormData | User data containing the current, new password
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.ResetUserPassword(context.Background(), cUUID).Users(users).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.ResetUserPassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResetUserPassword`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.ResetUserPassword`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string |
Other parameters are passed through a pointer to a apiResetUserPasswordRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
users | UserPasswordChangeFormData | User data containing the current, new password | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserOIDCAuthToken RetrieveOIDCAuthToken(ctx, cUUID, uUUID).Request(request).Execute()
Retrieve OIDC auth token
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.RetrieveOIDCAuthToken(context.Background(), cUUID, uUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.RetrieveOIDCAuthToken``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RetrieveOIDCAuthToken`: UserOIDCAuthToken
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.RetrieveOIDCAuthToken`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiRetrieveOIDCAuthTokenRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Users UpdateUserProfile(ctx, cUUID, uUUID).Users(users).Request(request).Execute()
Update a user's profile
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
users := *openapiclient.NewUserProfileData("Admin") // UserProfileData | User data in profile to be updated
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.UpdateUserProfile(context.Background(), cUUID, uUUID).Users(users).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.UpdateUserProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateUserProfile`: Users
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.UpdateUserProfile`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiUpdateUserProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
users | UserProfileData | User data in profile to be updated | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess UpdateUserRole(ctx, cUUID, uUUID).Role(role).Request(request).Execute()
Change a user's role
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
cUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
uUUID := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
role := "role_example" // string | (optional)
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserManagementAPI.UpdateUserRole(context.Background(), cUUID, uUUID).Role(role).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserManagementAPI.UpdateUserRole``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateUserRole`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `UserManagementAPI.UpdateUserRole`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cUUID | string | ||
| uUUID | string |
Other parameters are passed through a pointer to a apiUpdateUserRoleRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
role | string | | request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]