All URIs are relative to https://YOUR_INSTANCE.wavefront.com
Method | HTTP request | Description |
---|---|---|
add_roles_to_user_group | POST /api/v2/usergroup/{id}/addRoles | Add multiple roles to a specific user group |
add_users_to_user_group | POST /api/v2/usergroup/{id}/addUsers | Add multiple users to a specific user group |
create_user_group | POST /api/v2/usergroup | Create a specific user group |
delete_user_group | DELETE /api/v2/usergroup/{id} | Delete a specific user group |
get_all_user_groups | GET /api/v2/usergroup | Get all user groups for a customer |
get_user_group | GET /api/v2/usergroup/{id} | Get a specific user group |
remove_roles_from_user_group | POST /api/v2/usergroup/{id}/removeRoles | Remove multiple roles from a specific user group |
remove_users_from_user_group | POST /api/v2/usergroup/{id}/removeUsers | Remove multiple users from a specific user group |
update_user_group | PUT /api/v2/usergroup/{id} | Update a specific user group |
ResponseContainerUserGroupModel add_roles_to_user_group(id, body=body)
Add multiple roles to a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = [wavefront_api_client.list[str]()] # list[str] | List of roles that should be added to user group (optional)
try:
# Add multiple roles to a specific user group
api_response = api_instance.add_roles_to_user_group(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->add_roles_to_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | list[str] | List of roles that should be added to user group | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel add_users_to_user_group(id, body=body)
Add multiple users to a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = [wavefront_api_client.list[str]()] # list[str] | List of users that should be added to user group (optional)
try:
# Add multiple users to a specific user group
api_response = api_instance.add_users_to_user_group(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->add_users_to_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | list[str] | List of users that should be added to user group | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel create_user_group(body=body)
Create a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.UserGroupWrite() # UserGroupWrite | Example Body: <pre>{ \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }</pre> (optional)
try:
# Create a specific user group
api_response = api_instance.create_user_group(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->create_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserGroupWrite | Example Body: <pre>{ "name": "UserGroup name", "roleIDs": [ "role1", "role2", "role3" ], "description": "UserGroup description" }</pre> | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel delete_user_group(id)
Delete a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Delete a specific user group
api_response = api_instance.delete_user_group(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->delete_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerUserGroupModel
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerPagedUserGroupModel get_all_user_groups(offset=offset, limit=limit)
Get all user groups for a customer
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get all user groups for a customer
api_response = api_instance.get_all_user_groups(offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->get_all_user_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] |
ResponseContainerPagedUserGroupModel
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel get_user_group(id)
Get a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Get a specific user group
api_response = api_instance.get_user_group(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->get_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerUserGroupModel
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel remove_roles_from_user_group(id, body=body)
Remove multiple roles from a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = [wavefront_api_client.list[str]()] # list[str] | List of roles that should be removed from user group (optional)
try:
# Remove multiple roles from a specific user group
api_response = api_instance.remove_roles_from_user_group(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->remove_roles_from_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | list[str] | List of roles that should be removed from user group | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel remove_users_from_user_group(id, body=body)
Remove multiple users from a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = [wavefront_api_client.list[str]()] # list[str] | List of users that should be removed from user group (optional)
try:
# Remove multiple users from a specific user group
api_response = api_instance.remove_users_from_user_group(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->remove_users_from_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | list[str] | List of users that should be removed from user group | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerUserGroupModel update_user_group(id, body=body)
Update a specific user group
Note: Applies only to original Tanzu Observability instances that are not onboarded to VMware Cloud services.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.UserGroupApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = wavefront_api_client.UserGroupWrite() # UserGroupWrite | Example Body: <pre>{ \"id\": \"UserGroup identifier\", \"name\": \"UserGroup name\", \"roleIDs\": [ \"role1\", \"role2\", \"role3\" ], \"description\": \"UserGroup description\" }</pre> (optional)
try:
# Update a specific user group
api_response = api_instance.update_user_group(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserGroupApi->update_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | UserGroupWrite | Example Body: <pre>{ "id": "UserGroup identifier", "name": "UserGroup name", "roleIDs": [ "role1", "role2", "role3" ], "description": "UserGroup description" }</pre> | [optional] |
ResponseContainerUserGroupModel
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]