Skip to content

Latest commit

 

History

History
236 lines (146 loc) · 7.53 KB

DefaultApi.md

File metadata and controls

236 lines (146 loc) · 7.53 KB

\DefaultApi

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}

OrganizationsOrgIdUsersUserIdRolegroupsGet

OrganizationsOrgIdUsersUserIdRolegroupsGet200Response OrganizationsOrgIdUsersUserIdRolegroupsGet(ctx, orgId, userId).Limit(limit).Offset(offset).Execute()

Example

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)
}

Path Parameters

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

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. |

Return type

OrganizationsOrgIdUsersUserIdRolegroupsGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete

OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDelete(ctx, orgId, userId, rolegroupId).Execute()

Example

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)
    }
}

Path Parameters

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

Other parameters are passed through a pointer to a apiOrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost

OrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPost(ctx, orgId, userId, rolegroupId).Execute()

Example

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)
    }
}

Path Parameters

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

Other parameters are passed through a pointer to a apiOrganizationsOrgIdUsersUserIdRolegroupsRolegroupIdPostRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]