Skip to content

Latest commit

 

History

History
926 lines (571 loc) · 26.3 KB

SaaSUsersApi.md

File metadata and controls

926 lines (571 loc) · 26.3 KB

\SaaSUsersApi

All URIs are relative to http://localhost

Method HTTP request Description
ApiV3SaasIdentRolesGet Get /api/v3/saas/{ident}/roles
ApiV3SaasIdentRolesPost Post /api/v3/saas/{ident}/roles
ApiV3SaasIdentRolesSaasRoleIdDelete Delete /api/v3/saas/{ident}/roles/{saas_role_id}
ApiV3SaasIdentRolesSaasRoleIdPatch Patch /api/v3/saas/{ident}/roles/{saas_role_id}
ApiV3SaasIdentRolesUsersDelete Delete /api/v3/saas/{ident}/roles/users
ApiV3SaasIdentRolesUsersPatch Patch /api/v3/saas/{ident}/roles/users
ApiV3SaasIdentRolesUsersPost Post /api/v3/saas/{ident}/roles/users
ApiV3SaasIdentUsersGet Get /api/v3/saas/{ident}/users
ApiV3SaasIdentUsersPost Post /api/v3/saas/{ident}/users
ApiV3SaasIdentUsersUserIdPost Post /api/v3/saas/{ident}/users/{user_id}
ApiV3SaasUsersActivatePatch Patch /api/v3/saas_users/activate
ApiV3SaasUsersDeactivatePatch Patch /api/v3/saas_users/deactivate
ApiV3SaasUsersGet Get /api/v3/saas_users

ApiV3SaasIdentRolesGet

ApiV3SaasIdentRolesGet(ctx, ident).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesGet(context.Background(), ident).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesGet``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesPost

ApiV3SaasIdentRolesPost(ctx, ident).SaaSCreateRoleObject(saaSCreateRoleObject).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    saaSCreateRoleObject := *openapiclient.NewSaaSCreateRoleObject() // SaaSCreateRoleObject |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesPost(context.Background(), ident).SaaSCreateRoleObject(saaSCreateRoleObject).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesPost``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

saaSCreateRoleObject | SaaSCreateRoleObject | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesSaasRoleIdDelete

ApiV3SaasIdentRolesSaasRoleIdDelete(ctx, ident, saasRoleId).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    saasRoleId := "saasRoleId_example" // string | ID of SaaS Role

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesSaasRoleIdDelete(context.Background(), ident, saasRoleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesSaasRoleIdDelete``: %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.
ident string ID of system object (assets, locations, ...)
saasRoleId string ID of SaaS Role

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesSaasRoleIdPatch

ApiV3SaasIdentRolesSaasRoleIdPatch(ctx, ident, saasRoleId).SaaSEditRoleObject(saaSEditRoleObject).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    saasRoleId := "saasRoleId_example" // string | ID of SaaS Role
    saaSEditRoleObject := *openapiclient.NewSaaSEditRoleObject() // SaaSEditRoleObject |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesSaasRoleIdPatch(context.Background(), ident, saasRoleId).SaaSEditRoleObject(saaSEditRoleObject).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesSaasRoleIdPatch``: %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.
ident string ID of system object (assets, locations, ...)
saasRoleId string ID of SaaS Role

Other Parameters

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

Name Type Description Notes

saaSEditRoleObject | SaaSEditRoleObject | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesUsersDelete

ApiV3SaasIdentRolesUsersDelete(ctx, ident).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesUsersDelete(context.Background(), ident).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesUsersDelete``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesUsersPatch

ApiV3SaasIdentRolesUsersPatch(ctx, ident).UsersSaaSRoleUpdateListObject(usersSaaSRoleUpdateListObject).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    usersSaaSRoleUpdateListObject := *openapiclient.NewUsersSaaSRoleUpdateListObject("Users_example", []openapiclient.UsersSaaSRoleUpdateListObjectRolesInner{*openapiclient.NewUsersSaaSRoleUpdateListObjectRolesInner("RoleExternalId_example")}) // UsersSaaSRoleUpdateListObject |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesUsersPatch(context.Background(), ident).UsersSaaSRoleUpdateListObject(usersSaaSRoleUpdateListObject).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesUsersPatch``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

usersSaaSRoleUpdateListObject | UsersSaaSRoleUpdateListObject | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentRolesUsersPost

ApiV3SaasIdentRolesUsersPost(ctx, ident).UsersSaaSRolesListObject(usersSaaSRolesListObject).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    usersSaaSRolesListObject := *openapiclient.NewUsersSaaSRolesListObject([]string{"Users_example"}, []string{"Roles_example"}) // UsersSaaSRolesListObject |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentRolesUsersPost(context.Background(), ident).UsersSaaSRolesListObject(usersSaaSRolesListObject).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentRolesUsersPost``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

usersSaaSRolesListObject | UsersSaaSRolesListObject | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentUsersGet

ApiV3SaasIdentUsersGet(ctx, ident).LastVisit(lastVisit).Roles(roles).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    lastVisit := "lastVisit_example" // string | Filter by last_visit date (optional)
    roles := "roles_example" // string | Filter by roles. Exclude users where there are no common roles in the list of required roles and list of user roles (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentUsersGet(context.Background(), ident).LastVisit(lastVisit).Roles(roles).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentUsersGet``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

lastVisit | string | Filter by last_visit date | roles | string | Filter by roles. Exclude users where there are no common roles in the list of required roles and list of user roles |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentUsersPost

ApiV3SaasIdentUsersPost(ctx, ident).SaaSUserObjectInner(saaSUserObjectInner).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    saaSUserObjectInner := []openapiclient.SaaSUserObjectInner{*openapiclient.NewSaaSUserObjectInner("UserId_example", false)} // []SaaSUserObjectInner |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentUsersPost(context.Background(), ident).SaaSUserObjectInner(saaSUserObjectInner).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentUsersPost``: %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.
ident string ID of system object (assets, locations, ...)

Other Parameters

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

Name Type Description Notes

saaSUserObjectInner | []SaaSUserObjectInner | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasIdentUsersUserIdPost

ApiV3SaasIdentUsersUserIdPost(ctx, ident, userId).SaaSUserManageObject(saaSUserManageObject).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    ident := "ident_example" // string | ID of system object (assets, locations, ...)
    userId := "userId_example" // string | ID of User
    saaSUserManageObject := *openapiclient.NewSaaSUserManageObject("UserExternalId_example") // SaaSUserManageObject |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasIdentUsersUserIdPost(context.Background(), ident, userId).SaaSUserManageObject(saaSUserManageObject).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasIdentUsersUserIdPost``: %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.
ident string ID of system object (assets, locations, ...)
userId string ID of User

Other Parameters

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

Name Type Description Notes

saaSUserManageObject | SaaSUserManageObject | |

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasUsersActivatePatch

[]InlineResponse200 ApiV3SaasUsersActivatePatch(ctx).InlineRequest(inlineRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    inlineRequest := *openapiclient.NewInlineRequest() // InlineRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasUsersActivatePatch(context.Background()).InlineRequest(inlineRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasUsersActivatePatch``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApiV3SaasUsersActivatePatch`: []InlineResponse200
    fmt.Fprintf(os.Stdout, "Response from `SaaSUsersApi.ApiV3SaasUsersActivatePatch`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
inlineRequest InlineRequest

Return type

[]InlineResponse200

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasUsersDeactivatePatch

[]InlineResponse200 ApiV3SaasUsersDeactivatePatch(ctx).InlineRequest(inlineRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    inlineRequest := *openapiclient.NewInlineRequest() // InlineRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasUsersDeactivatePatch(context.Background()).InlineRequest(inlineRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasUsersDeactivatePatch``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApiV3SaasUsersDeactivatePatch`: []InlineResponse200
    fmt.Fprintf(os.Stdout, "Response from `SaaSUsersApi.ApiV3SaasUsersDeactivatePatch`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
inlineRequest InlineRequest

Return type

[]InlineResponse200

Authorization

api_key, basic_auth

HTTP request headers

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

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

ApiV3SaasUsersGet

ApiV3SaasUsersGet(ctx).Filter(filter).Text(text).Roles(roles).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    filter := "filter_example" // string | Regular API v3 filter expression (optional)
    text := "text_example" // string | Regular API v3 full text search expression (optional)
    roles := "roles_example" // string | Filter by roles. Exclude users where there are no common roles in the list of required roles and list of user roles (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.SaaSUsersApi.ApiV3SaasUsersGet(context.Background()).Filter(filter).Text(text).Roles(roles).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `SaaSUsersApi.ApiV3SaasUsersGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Other Parameters

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

Name Type Description Notes
filter string Regular API v3 filter expression
text string Regular API v3 full text search expression
roles string Filter by roles. Exclude users where there are no common roles in the list of required roles and list of user roles

Return type

(empty response body)

Authorization

api_key, basic_auth

HTTP request headers

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

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