All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
add_role_definition | POST /1.0/kb/security/roles | Add a new role definition) |
add_user_roles | POST /1.0/kb/security/users | Add a new user with roles (to make api requests) |
get_current_user_permissions | GET /1.0/kb/security/permissions | List user permissions |
get_current_user_subject | GET /1.0/kb/security/subject | Get user information |
get_role_definition | GET /1.0/kb/security/roles/{role} | Get role definition |
get_user_roles | GET /1.0/kb/security/users/{username}/roles | Get roles associated to a user |
invalidate_user | DELETE /1.0/kb/security/users/{username} | Invalidate an existing user |
update_role_definition | PUT /1.0/kb/security/roles | Update a new role definition) |
update_user_password | PUT /1.0/kb/security/users/{username}/password | Update a user password |
update_user_roles | PUT /1.0/kb/security/users/{username}/roles | Update roles associated to a user |
RoleDefinition add_role_definition(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add a new role definition)
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
body = killbill.RoleDefinition() # RoleDefinition |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Add a new role definition)
api_response = api_instance.add_role_definition(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->add_role_definition: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | RoleDefinition | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserRoles add_user_roles(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Add a new user with roles (to make api requests)
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
body = killbill.UserRoles() # UserRoles |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Add a new user with roles (to make api requests)
api_response = api_instance.add_user_roles(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->add_user_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserRoles | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[str] get_current_user_permissions()
List user permissions
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
try:
# List user permissions
api_response = api_instance.get_current_user_permissions()
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->get_current_user_permissions: %s\n" % e)
This endpoint does not need any parameter.
list[str]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Subject get_current_user_subject()
Get user information
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
try:
# Get user information
api_response = api_instance.get_current_user_subject()
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->get_current_user_subject: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RoleDefinition get_role_definition(role)
Get role definition
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
role = 'role_example' # str |
try:
# Get role definition
api_response = api_instance.get_role_definition(role)
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->get_role_definition: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
role | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserRoles get_user_roles(username)
Get roles associated to a user
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
username = 'username_example' # str |
try:
# Get roles associated to a user
api_response = api_instance.get_user_roles(username)
pprint(api_response)
except ApiException as e:
print("Exception when calling SecurityApi->get_user_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
invalidate_user(username, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Invalidate an existing user
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
username = 'username_example' # str |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Invalidate an existing user
api_instance.invalidate_user(username, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling SecurityApi->invalidate_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
username | str | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_role_definition(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Update a new role definition)
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
body = killbill.RoleDefinition() # RoleDefinition |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Update a new role definition)
api_instance.update_role_definition(body, x_killbill_created_by, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling SecurityApi->update_role_definition: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | RoleDefinition | ||
x_killbill_created_by | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_user_password(body, x_killbill_created_by, username, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Update a user password
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
body = killbill.UserRoles() # UserRoles |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
username = 'username_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Update a user password
api_instance.update_user_password(body, x_killbill_created_by, username, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling SecurityApi->update_user_password: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserRoles | ||
x_killbill_created_by | str | ||
username | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_user_roles(body, x_killbill_created_by, username, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
Update roles associated to a user
from __future__ import print_function
import time
import killbill
from killbill.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = killbill.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = killbill.SecurityApi(killbill.ApiClient(configuration))
body = killbill.UserRoles() # UserRoles |
x_killbill_created_by = 'x_killbill_created_by_example' # str |
username = 'username_example' # str |
x_killbill_reason = 'x_killbill_reason_example' # str | (optional)
x_killbill_comment = 'x_killbill_comment_example' # str | (optional)
try:
# Update roles associated to a user
api_instance.update_user_roles(body, x_killbill_created_by, username, x_killbill_reason=x_killbill_reason, x_killbill_comment=x_killbill_comment)
except ApiException as e:
print("Exception when calling SecurityApi->update_user_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserRoles | ||
x_killbill_created_by | str | ||
username | str | ||
x_killbill_reason | str | [optional] | |
x_killbill_comment | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]