All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
get_user_groups_layout | GET /api/v1/layout/userGroups | Get all user groups |
get_users_user_groups_layout | GET /api/v1/layout/usersAndUserGroups | Get all users and user groups |
put_user_groups_layout | PUT /api/v1/layout/userGroups | Put all user groups |
put_users_user_groups_layout | PUT /api/v1/layout/usersAndUserGroups | Put all users and user groups |
DeclarativeUserGroups get_user_groups_layout()
Get all user groups
Retrieve all user-groups eventually with parent group.
import time
import gooddata_api_client
from gooddata_api_client.api import user_groups_declarative_apis_api
from gooddata_api_client.model.declarative_user_groups import DeclarativeUserGroups
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = user_groups_declarative_apis_api.UserGroupsDeclarativeAPIsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
# Get all user groups
api_response = api_instance.get_user_groups_layout()
pprint(api_response)
except gooddata_api_client.ApiException as e:
print("Exception when calling UserGroupsDeclarativeAPIsApi->get_user_groups_layout: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Retrieved all user groups. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeclarativeUsersUserGroups get_users_user_groups_layout()
Get all users and user groups
Retrieve all users and user groups with theirs properties.
import time
import gooddata_api_client
from gooddata_api_client.api import user_groups_declarative_apis_api
from gooddata_api_client.model.declarative_users_user_groups import DeclarativeUsersUserGroups
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = user_groups_declarative_apis_api.UserGroupsDeclarativeAPIsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
# Get all users and user groups
api_response = api_instance.get_users_user_groups_layout()
pprint(api_response)
except gooddata_api_client.ApiException as e:
print("Exception when calling UserGroupsDeclarativeAPIsApi->get_users_user_groups_layout: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Retrieved all users and user groups. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_user_groups_layout(declarative_user_groups)
Put all user groups
Define all user groups with their parents eventually.
import time
import gooddata_api_client
from gooddata_api_client.api import user_groups_declarative_apis_api
from gooddata_api_client.model.declarative_user_groups import DeclarativeUserGroups
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = user_groups_declarative_apis_api.UserGroupsDeclarativeAPIsApi(api_client)
declarative_user_groups = DeclarativeUserGroups(
user_groups=[
DeclarativeUserGroup(
id="employees.all",
name="admins",
parents=[
DeclarativeUserGroupIdentifier(
id="group.admins",
type="userGroup",
),
],
permissions=[
DeclarativeUserGroupPermission(
assignee=AssigneeIdentifier(
id="id_example",
type="user",
),
name="SEE",
),
],
),
],
) # DeclarativeUserGroups |
# example passing only required values which don't have defaults set
try:
# Put all user groups
api_instance.put_user_groups_layout(declarative_user_groups)
except gooddata_api_client.ApiException as e:
print("Exception when calling UserGroupsDeclarativeAPIsApi->put_user_groups_layout: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
declarative_user_groups | DeclarativeUserGroups |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | Defined all user groups. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_users_user_groups_layout(declarative_users_user_groups)
Put all users and user groups
Define all users and user groups with theirs properties.
import time
import gooddata_api_client
from gooddata_api_client.api import user_groups_declarative_apis_api
from gooddata_api_client.model.declarative_users_user_groups import DeclarativeUsersUserGroups
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gooddata_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = user_groups_declarative_apis_api.UserGroupsDeclarativeAPIsApi(api_client)
declarative_users_user_groups = DeclarativeUsersUserGroups(
user_groups=[
DeclarativeUserGroup(
id="employees.all",
name="admins",
parents=[
DeclarativeUserGroupIdentifier(
id="group.admins",
type="userGroup",
),
],
permissions=[
DeclarativeUserGroupPermission(
assignee=AssigneeIdentifier(
id="id_example",
type="user",
),
name="SEE",
),
],
),
],
users=[
DeclarativeUser(
auth_id="auth_id_example",
email="[email protected]",
firstname="John",
id="employee123",
lastname="Wick",
permissions=[
DeclarativeUserPermission(
assignee=AssigneeIdentifier(
id="id_example",
type="user",
),
name="SEE",
),
],
settings=[
DeclarativeSetting(
content=JsonNode(),
id="/6bUUGjjNSwg0_bs",
type="TIMEZONE",
),
],
user_groups=[
DeclarativeUserGroupIdentifier(
id="group.admins",
type="userGroup",
),
],
),
],
) # DeclarativeUsersUserGroups |
# example passing only required values which don't have defaults set
try:
# Put all users and user groups
api_instance.put_users_user_groups_layout(declarative_users_user_groups)
except gooddata_api_client.ApiException as e:
print("Exception when calling UserGroupsDeclarativeAPIsApi->put_users_user_groups_layout: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
declarative_users_user_groups | DeclarativeUsersUserGroups |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | Defined all users and user groups. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]