All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
ListOrganizationMembers | Get /v1/organization_members | List organization members |
RemoveOrganizationMember | Delete /v1/organization_members/{id} | Remove an organization member |
ListOrganizationMembersReply ListOrganizationMembers(ctx).Limit(limit).Offset(offset).OrganizationId(organizationId).UserId(userId).Execute()
List organization members
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
limit := "limit_example" // string | (Optional) The number of items to return (optional)
offset := "offset_example" // string | (Optional) The offset in the list of item to return (optional)
organizationId := "organizationId_example" // string | (Optional) Filter for an organization (optional)
userId := "userId_example" // string | (Optional) Filter for an user (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationMembersApi.ListOrganizationMembers(context.Background()).Limit(limit).Offset(offset).OrganizationId(organizationId).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationMembersApi.ListOrganizationMembers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOrganizationMembers`: ListOrganizationMembersReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationMembersApi.ListOrganizationMembers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListOrganizationMembersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
limit | string | (Optional) The number of items to return | |
offset | string | (Optional) The offset in the list of item to return | |
organizationId | string | (Optional) Filter for an organization | |
userId | string | (Optional) Filter for an user |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoveOrganizationMemberReply RemoveOrganizationMember(ctx, id).Execute()
Remove an organization member
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationMembersApi.RemoveOrganizationMember(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationMembersApi.RemoveOrganizationMember``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RemoveOrganizationMember`: RemoveOrganizationMemberReply
fmt.Fprintf(os.Stdout, "Response from `OrganizationMembersApi.RemoveOrganizationMember`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiRemoveOrganizationMemberRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]