Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
add_user_group_members | POST /user-groups/{user_group_id}/members | Add members to a user group |
add_user_group_roles | POST /user-groups/{user_group_id}/roles | Add roles to a user group |
add_user_group_service_groups | POST /user-groups/{user_group_id}/service-groups | Add service groups to a user group |
create_a_user_group | POST /user-groups | Create a user group |
delete_a_user_group | DELETE /user-groups/{user_group_id} | Delete a user group |
get_a_user_group | GET /user-groups/{user_group_id} | Get a user group |
list_user_group_members | GET /user-groups/{user_group_id}/members | List members of a user group |
list_user_group_roles | GET /user-groups/{user_group_id}/roles | List roles in a user group |
list_user_group_service_groups | GET /user-groups/{user_group_id}/service-groups | List service groups in a user group |
list_user_groups | GET /user-groups | List user groups |
remove_user_group_members | DELETE /user-groups/{user_group_id}/members | Remove members of a user group |
remove_user_group_roles | DELETE /user-groups/{user_group_id}/roles | Remove roles from a user group |
remove_user_group_service_groups | DELETE /user-groups/{user_group_id}/service-groups | Remove service groups from a user group |
update_a_user_group | PATCH /user-groups/{user_group_id} | Update a user group |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} add_user_group_members(user_group_id)
Add members to a user group
Add members to a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Add members to a user group
api_response = api_instance.add_user_group_members(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_members: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Add members to a user group
api_response = api_instance.add_user_group_members(user_group_id, request_body=request_body)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_members: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} add_user_group_roles(user_group_id)
Add roles to a user group
Add roles to a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Add roles to a user group
api_response = api_instance.add_user_group_roles(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_roles: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Add roles to a user group
api_response = api_instance.add_user_group_roles(user_group_id, request_body=request_body)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} add_user_group_service_groups(user_group_id)
Add service groups to a user group
Add service groups to a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Add service groups to a user group
api_response = api_instance.add_user_group_service_groups(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_service_groups: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Add service groups to a user group
api_response = api_instance.add_user_group_service_groups(user_group_id, request_body=request_body)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->add_user_group_service_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} create_a_user_group()
Create a user group
Create a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# Create a user group
api_response = api_instance.create_a_user_group(request_body=request_body)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->create_a_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_a_user_group(user_group_id)
Delete a user group
Delete a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
# example passing only required values which don't have defaults set
try:
# Delete a user group
api_instance.delete_a_user_group(user_group_id)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->delete_a_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_a_user_group(user_group_id)
Get a user group
Get a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
# example passing only required values which don't have defaults set
try:
# Get a user group
api_response = api_instance.get_a_user_group(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->get_a_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} list_user_group_members(user_group_id)
List members of a user group
List members of a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
per_page = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20
page = 1 # int | Current page. (optional)
# example passing only required values which don't have defaults set
try:
# List members of a user group
api_response = api_instance.list_user_group_members(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_members: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# List members of a user group
api_response = api_instance.list_user_group_members(user_group_id, per_page=per_page, page=page)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_members: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] if omitted the server will use the default value of 20 |
page | int | Current page. | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} list_user_group_roles(user_group_id)
List roles in a user group
List roles in a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
per_page = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20
page = 1 # int | Current page. (optional)
# example passing only required values which don't have defaults set
try:
# List roles in a user group
api_response = api_instance.list_user_group_roles(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_roles: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# List roles in a user group
api_response = api_instance.list_user_group_roles(user_group_id, per_page=per_page, page=page)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] if omitted the server will use the default value of 20 |
page | int | Current page. | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} list_user_group_service_groups(user_group_id)
List service groups in a user group
List service groups in a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
per_page = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20
page = 1 # int | Current page. (optional)
# example passing only required values which don't have defaults set
try:
# List service groups in a user group
api_response = api_instance.list_user_group_service_groups(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_service_groups: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# List service groups in a user group
api_response = api_instance.list_user_group_service_groups(user_group_id, per_page=per_page, page=page)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_group_service_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
per_page | int | Number of records per page. | [optional] if omitted the server will use the default value of 20 |
page | int | Current page. | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} list_user_groups()
List user groups
List all user groups.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
per_page = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20
page = 1 # int | Current page. (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# List user groups
api_response = api_instance.list_user_groups(per_page=per_page, page=page)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->list_user_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
per_page | int | Number of records per page. | [optional] if omitted the server will use the default value of 20 |
page | int | Current page. | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_members(user_group_id)
Remove members of a user group
Remove members of a user group
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Remove members of a user group
api_instance.remove_user_group_members(user_group_id)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_members: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Remove members of a user group
api_instance.remove_user_group_members(user_group_id, request_body=request_body)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_members: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_roles(user_group_id)
Remove roles from a user group
Remove roles from a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Remove roles from a user group
api_instance.remove_user_group_roles(user_group_id)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_roles: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Remove roles from a user group
api_instance.remove_user_group_roles(user_group_id, request_body=request_body)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_roles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_user_group_service_groups(user_group_id)
Remove service groups from a user group
Remove service groups from a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Remove service groups from a user group
api_instance.remove_user_group_service_groups(user_group_id)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_service_groups: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Remove service groups from a user group
api_instance.remove_user_group_service_groups(user_group_id, request_body=request_body)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->remove_user_group_service_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} update_a_user_group(user_group_id)
Update a user group
Update a user group.
- Api Key Authentication (token):
import time
import fastly
from fastly.api import iam_user_groups_api
from pprint import pprint
# Defining the host is optional and defaults to https://api.fastly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = fastly.Configuration(
host = "https://api.fastly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: token
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'
# Enter a context with an instance of the API client
with fastly.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = iam_user_groups_api.IamUserGroupsApi(api_client)
user_group_id = "t4Gg2uUGZzb2W9Euo4mo0R" # str | Alphanumeric string identifying the user group.
request_body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | (optional)
# example passing only required values which don't have defaults set
try:
# Update a user group
api_response = api_instance.update_a_user_group(user_group_id)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->update_a_user_group: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
# Update a user group
api_response = api_instance.update_a_user_group(user_group_id, request_body=request_body)
pprint(api_response)
except fastly.ApiException as e:
print("Exception when calling IamUserGroupsApi->update_a_user_group: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_group_id | str | Alphanumeric string identifying the user group. | |
request_body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]