Skip to content

Latest commit

 

History

History
147 lines (97 loc) · 4.12 KB

IAMInfoApi.md

File metadata and controls

147 lines (97 loc) · 4.12 KB

cosmotech_api.IAMInfoApi

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_iam_groups

List[str] list_iam_groups()

Get the list of all groups

Example

  • 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)

Parameters

This endpoint does not need any parameter.

Return type

List[str]

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

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]

list_iam_members

Members list_iam_members()

Get ALL IAM members list

Example

  • 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)

Parameters

This endpoint does not need any parameter.

Return type

Members

Authorization

oAuth2AuthCode

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml

HTTP response details

Status code Description Response headers
200 The ALL members list -

[Back to top] [Back to API list] [Back to Model list] [Back to README]