All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| list_iam_groups | GET /iaminfo/groups | Get the list of all groups |
| list_iam_members | GET /iaminfo/members | Get ALL IAM members list |
List[str] list_iam_groups()
Get the list of all groups
- OAuth Authentication (oAuth2AuthCode):
import cosmotech_api
from cosmotech_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = cosmotech_api.Configuration(
host = "http://localhost:8080"
)
# 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.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with cosmotech_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cosmotech_api.IAMInfoApi(api_client)
try:
# Get the list of all groups
api_response = api_instance.list_iam_groups()
print("The response of IAMInfoApi->list_iam_groups:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IAMInfoApi->list_iam_groups: %s\n" % e)This endpoint does not need any parameter.
List[str]
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The list of all groups | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Members list_iam_members()
Get ALL IAM members list
- OAuth Authentication (oAuth2AuthCode):
import cosmotech_api
from cosmotech_api.models.members import Members
from cosmotech_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = cosmotech_api.Configuration(
host = "http://localhost:8080"
)
# 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.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with cosmotech_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cosmotech_api.IAMInfoApi(api_client)
try:
# Get ALL IAM members list
api_response = api_instance.list_iam_members()
print("The response of IAMInfoApi->list_iam_members:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IAMInfoApi->list_iam_members: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The ALL members list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]