All URIs are relative to https://anypoint.mulesoft.com/accounts/api
Method | HTTP request | Description |
---|---|---|
OrganizationsOrgIdUsersUserIdRolegroupsGet | Get /organizations/{orgId}/users/{userId}/rolegroups | |
OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete | Delete /organizations/{orgId}/users/{userId}/rolegroups/{rolegroupId} | |
OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost | Post /organizations/{orgId}/users/{userId}/rolegroups/{rolegroupId} |
OrganizationsOrgIdUsersUserIdRolegroupsGet200Response OrganizationsOrgIdUsersUserIdRolegroupsGet(ctx, orgId, userId).Limit(limit).Offset(offset).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/user_rolegroups"
)
func main() {
orgId := "orgId_example" // string | The ID of the organization in GUID format
userId := "userId_example" // string | The ID of the user in GUID format
limit := int32(56) // int32 | Maximum number of rolegroups to retrieve per request. (optional)
offset := int32(56) // int32 | The number of records to omit from the response. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsGet(context.Background(), orgId, userId).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationsOrgIdUsersUserIdRolegroupsGet`: OrganizationsOrgIdUsersUserIdRolegroupsGet200Response
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgId | string | The ID of the organization in GUID format | |
userId | string | The ID of the user in GUID format |
Other parameters are passed through a pointer to a apiOrganizationsOrgIdUsersUserIdRolegroupsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
limit | int32 | Maximum number of rolegroups to retrieve per request. | offset | int32 | The number of records to omit from the response. |
OrganizationsOrgIdUsersUserIdRolegroupsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete(ctx, orgId, userId, rolegroupId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/user_rolegroups"
)
func main() {
orgId := "orgId_example" // string | The ID of the organization in GUID format
userId := "userId_example" // string | The ID of the user
rolegroupId := "rolegroupId_example" // string | The ID of the user's rolegroup
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete(context.Background(), orgId, userId, rolegroupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete``: %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. | |
orgId | string | The ID of the organization in GUID format | |
userId | string | The ID of the user | |
rolegroupId | string | The ID of the user's rolegroup |
Other parameters are passed through a pointer to a apiOrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost(ctx, orgId, userId, rolegroupId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/mulesoft-anypoint/anypoint-client-go/user_rolegroups"
)
func main() {
orgId := "orgId_example" // string | The ID of the organization in GUID format
userId := "userId_example" // string | The ID of the user
rolegroupId := "rolegroupId_example" // string | The ID of the user's rolegroup
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost(context.Background(), orgId, userId, rolegroupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost``: %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. | |
orgId | string | The ID of the organization in GUID format | |
userId | string | The ID of the user | |
rolegroupId | string | The ID of the user's rolegroup |
Other parameters are passed through a pointer to a apiOrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]