Every API method accepts _request_timeout in seconds: a positive float for
the urllib3 total timeout, or a pair of positive floats (connect, read).
This controls HTTP transport waiting, not how long the server operation may run.
It is not a wall-clock deadline for the operation or for all retries combined.
Transport timeouts raise urllib3.exceptions.TimeoutError subclasses such as
ReadTimeoutError and ConnectTimeoutError. When retries are exhausted, urllib3
can instead raise urllib3.exceptions.MaxRetryError; inspect its reason to
distinguish a timeout from other connection failures. Retry behavior depends on
the HTTP method and Configuration.retries. These are client-side exceptions,
not HTTP response statuses or SDK ApiException responses.
A timeout does not guarantee cancellation or rollback of an operation accepted by the server. For example, after a start request times out, the instance may still be starting or may already be running; the timeout alone does not establish its state or mean it was stopped or destroyed. The request might not have reached the server at all, leaving the instance off. Treat the outcome as unknown and fetch the instance's current state before deciding whether to retry. If it has since been destroyed, that lookup may return not found; the timeout itself does not prove destruction. Do not blindly repeat a state-changing request.
Catch urllib3.exceptions.TimeoutError and urllib3.exceptions.MaxRetryError
separately from the SDK ApiException. MaxRetryError is not a subclass of
TimeoutError. With
_with_http_info the same rules apply. With _without_preload_content, a read
timeout may also occur later when reading the returned response body.
All URIs are relative to https://app.corellium.com/api
| Method | HTTP request | Description |
|---|---|---|
| v3_add_user_to_team | PUT /v3/teams/{teamId}/users/{userId} | Add a user to a team |
| v3_create_team | POST /v3/teams | Create a team |
| v3_delete_team | DELETE /v3/teams/{teamId} | Delete a team |
| v3_list_teams | GET /v3/teams | List teams |
| v3_remove_user_from_team | DELETE /v3/teams/{teamId}/users/{userId} | Remove a user from a team |
| v3_update_team | PATCH /v3/teams/{teamId} | Update a team |
v3_add_user_to_team(team_id, user_id)
Add a user to a team
Required role: Domain administrator.
Adds a user to a team, so the user gets every project role the team has. Requires a domain administrator. Available for Enterprise accounts only.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
team_id = '089c8ffd-ca4d-4d35-80ab-0847d18b7213' # str | Team identifier.
user_id = 'e8c5b7ea-aa5f-4a4a-bdca-0c67060b5320' # str | User identifier.
try:
# Add a user to a team
api_instance.v3_add_user_to_team(team_id, user_id)
except Exception as e:
print("Exception when calling TeamsApi->v3_add_user_to_team: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | str | Team identifier. | |
| user_id | str | User identifier. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | User added to team. | - |
| 403 | Domain administrator permissions required. Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamCreated v3_create_team(create_team_body)
Create a team
Required role: Domain administrator.
Creates an empty team in your domain and returns its ID. Requires a domain administrator. Next, add members with v3AddUserToTeam and give the team project access with PUT /v3/roles/projects/{projectId}/teams/{teamId}/roles/{roleId}. Available for Enterprise accounts only.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.models.create_team_body import CreateTeamBody
from corellium.models.team_created import TeamCreated
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
create_team_body = corellium.CreateTeamBody() # CreateTeamBody |
try:
# Create a team
api_response = api_instance.v3_create_team(create_team_body)
print("The response of TeamsApi->v3_create_team:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TeamsApi->v3_create_team: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| create_team_body | CreateTeamBody |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Team created. | - |
| 400 | The request was invalid, for example a missing or malformed field. The body says which field; fix it before retrying. | - |
| 403 | Domain administrator permissions required. Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
v3_delete_team(team_id)
Delete a team
Required role: Domain administrator.
Deletes a team. Requires a domain administrator. The users in it are not deleted, but they lose any project access they had only through this team. Available for Enterprise accounts only.
Deletes are idempotent: a teamId that does not exist, including one that was already deleted, is a successful no-op that still returns 204, and
repeated calls return 204 as well. A 404 means the request path did not match a delete route, not
that the target was missing.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
team_id = '089c8ffd-ca4d-4d35-80ab-0847d18b7213' # str | Team identifier.
try:
# Delete a team
api_instance.v3_delete_team(team_id)
except Exception as e:
print("Exception when calling TeamsApi->v3_delete_team: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | str | Team identifier. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Team deleted. | - |
| 403 | Domain administrator permissions required. Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamsListResponse v3_list_teams(limit=limit, offset=offset)
List teams
Lists the teams in your domain. A team is a named group of users; giving a team a role on a project (with the Roles endpoints) gives every member that access, which is easier than granting each user separately. Includes the built-in all-users team, which always contains everyone in the domain. Available for Enterprise accounts only.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.models.teams_list_response import TeamsListResponse
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
limit = 100 # float | Most results to return in one page. Whole number from 1 to 1000; defaults to 100. A value outside that range is rejected with 400. (optional) (default to 100)
offset = 0 # float | How many results to skip before this page starts; defaults to 0. To get the next page, add `limit` to the previous `offset`. (optional) (default to 0)
try:
# List teams
api_response = api_instance.v3_list_teams(limit=limit, offset=offset)
print("The response of TeamsApi->v3_list_teams:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TeamsApi->v3_list_teams: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| limit | float | Most results to return in one page. Whole number from 1 to 1000; defaults to 100. A value outside that range is rejected with 400. | [optional] [default to 100] |
| offset | float | How many results to skip before this page starts; defaults to 0. To get the next page, add `limit` to the previous `offset`. | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Paginated list of teams. | - |
| 400 | The request was invalid, for example a missing or malformed field. The body says which field; fix it before retrying. | - |
| 403 | Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
v3_remove_user_from_team(team_id, user_id)
Remove a user from a team
Required role: Domain administrator.
Removes a user from a team, so the user loses the project access they had only through this team. Requires a domain administrator. Available for Enterprise accounts only.
Removal is idempotent: if the user is not a member of the team, the call is a no-op and still returns 204.
Repeated calls therefore also return 204. A teamId or userId that does not exist is also a successful
no-op that returns 204.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
team_id = '089c8ffd-ca4d-4d35-80ab-0847d18b7213' # str | Team identifier.
user_id = 'e8c5b7ea-aa5f-4a4a-bdca-0c67060b5320' # str | User identifier.
try:
# Remove a user from a team
api_instance.v3_remove_user_from_team(team_id, user_id)
except Exception as e:
print("Exception when calling TeamsApi->v3_remove_user_from_team: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | str | Team identifier. | |
| user_id | str | User identifier. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | User removed from team, or was not a member. | - |
| 403 | Domain administrator permissions required. Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
v3_update_team(team_id, update_team_body=update_team_body)
Update a team
Required role: Domain administrator.
Renames a team or changes its settings. Requires a domain administrator. Available for Enterprise accounts only.
- Bearer (JWT) Authentication (BearerAuth):
import corellium
from corellium.models.update_team_body import UpdateTeamBody
from corellium.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.corellium.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = corellium.Configuration(
host = "https://app.corellium.com/api"
)
# 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 Bearer authorization (JWT): BearerAuth
configuration = corellium.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with corellium.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = corellium.TeamsApi(api_client)
team_id = '089c8ffd-ca4d-4d35-80ab-0847d18b7213' # str | Team identifier.
update_team_body = corellium.UpdateTeamBody() # UpdateTeamBody | (optional)
try:
# Update a team
api_instance.v3_update_team(team_id, update_team_body=update_team_body)
except Exception as e:
print("Exception when calling TeamsApi->v3_update_team: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | str | Team identifier. | |
| update_team_body | UpdateTeamBody | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Team updated. | - |
| 403 | Domain administrator permissions required. Signed in, but not allowed to do this: you lack the required role, have no access to the project, or your license does not include the feature. | - |
| 404 | No team with the given teamId. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]