REST API to manage your virtual devices.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 3.15.0-15704
- Package version: 1.0.5
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python >=3.6
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import avh_api
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import avh_api
Please follow the installation procedure and then run the following:
import time
import avh_api
from pprint import pprint
from avh_api.api import arm_api
from avh_api.model.api_conflict_error import ApiConflictError
from avh_api.model.api_error import ApiError
from avh_api.model.api_internal_consistency_error import ApiInternalConsistencyError
from avh_api.model.api_not_found_error import ApiNotFoundError
from avh_api.model.api_token import ApiToken
from avh_api.model.btrace_enable_options import BtraceEnableOptions
from avh_api.model.create_team import CreateTeam
from avh_api.model.firmware import Firmware
from avh_api.model.gpios_state import GpiosState
from avh_api.model.hook import Hook
from avh_api.model.image import Image
from avh_api.model.instance import Instance
from avh_api.model.instance_console_endpoint import InstanceConsoleEndpoint
from avh_api.model.instance_create_options import InstanceCreateOptions
from avh_api.model.instance_input import InstanceInput
from avh_api.model.instance_return import InstanceReturn
from avh_api.model.instance_start_options import InstanceStartOptions
from avh_api.model.instance_state import InstanceState
from avh_api.model.instance_stop_options import InstanceStopOptions
from avh_api.model.kcrange import Kcrange
from avh_api.model.kernel_task import KernelTask
from avh_api.model.media_play_body import MediaPlayBody
from avh_api.model.model import Model
from avh_api.model.patch_instance_options import PatchInstanceOptions
from avh_api.model.peripherals_data import PeripheralsData
from avh_api.model.project import Project
from avh_api.model.project_key import ProjectKey
from avh_api.model.project_settings import ProjectSettings
from avh_api.model.role import Role
from avh_api.model.snapshot import Snapshot
from avh_api.model.snapshot_creation_options import SnapshotCreationOptions
from avh_api.model.subscriber_invite import SubscriberInvite
from avh_api.model.team import Team
from avh_api.model.team_create import TeamCreate
from avh_api.model.token import Token
from avh_api.model.user_error import UserError
from avh_api.model.v1_create_hook_parameters import V1CreateHookParameters
from avh_api.model.v1_set_state_body import V1SetStateBody
from avh_api.model.validation_error import ValidationError
from avh_api.model.web_player_create_session_request import WebPlayerCreateSessionRequest
from avh_api.model.web_player_session import WebPlayerSession
# Defining the host is optional and defaults to https://app.avh.arm.com/api
# See configuration.py for a list of all supported configuration parameters.
configuration = avh_api.Configuration(
host = "https://app.avh.arm.com/api"
)
# Enter a context with an instance of the API client
with avh_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = arm_api.ArmApi(api_client)
trial_email = "trialEmail_example" # str | Trial Email
try:
# Get Trial Status
api_response = api_instance.trial_status(trial_email)
pprint(api_response)
except avh_api.ApiException as e:
print("Exception when calling ArmApi->trial_status: %s\n" % e)
All URIs are relative to https://app.avh.arm.com/api
Class | Method | HTTP request | Description |
---|---|---|---|
ArmApi | trial_status | GET /v1/billing/trial-status/{trialEmail} | Get Trial Status |
ArmApi | v1_add_project_key | POST /v1/projects/{projectId}/keys | Add Project Authorized Key |
ArmApi | v1_add_team_role_to_project | PUT /v1/roles/projects/{projectId}/teams/{teamId}/roles/{roleId} | Add team role to project |
ArmApi | v1_add_user_role_to_project | PUT /v1/roles/projects/{projectId}/users/{userId}/roles/{roleId} | Add user role to project |
ArmApi | v1_add_user_to_team | PUT /v1/teams/{teamId}/users/{userId} | Add user to team |
ArmApi | v1_auth_login | POST /v1/auth/login | Log In |
ArmApi | v1_btrace_preauthorize | GET /v1/instances/{instanceId}/btrace-authorize | Pre-authorize an btrace download |
ArmApi | v1_clear_core_trace | DELETE /v1/instances/{instanceId}/strace | Clear CoreTrace logs |
ArmApi | v1_clear_hyper_trace | DELETE /v1/instances/{instanceId}/btrace | Clear HyperTrace logs |
ArmApi | v1_clear_hyper_trace_hooks | POST /v1/instances/{instanceId}/hooks/clear | Clear Hooks on an instance |
ArmApi | v1_clear_instance_panics | DELETE /v1/instances/{instanceId}/panics | Clear Panics |
ArmApi | v1_create_hook | POST /v1/instances/{instanceId}/hooks | Create hypervisor hook for Instance |
ArmApi | v1_create_image | POST /v1/images | Create a new Image |
ArmApi | v1_create_instance | POST /v1/instances | Create Instance |
ArmApi | v1_create_project | POST /v1/projects | Create a Project |
ArmApi | v1_create_snapshot | POST /v1/instances/{instanceId}/snapshots | Create Instance Snapshot |
ArmApi | v1_create_subscriber_invite | POST /v1/billing/invites | Create Subscriber Invite |
ArmApi | v1_delete_hook | DELETE /v1/hooks/{hookId} | Delete an existing hypervisor hook |
ArmApi | v1_delete_image | DELETE /v2/images/{imageId} | Delete Image |
ArmApi | v1_delete_instance | DELETE /v1/instances/{instanceId} | Remove Instance |
ArmApi | v1_delete_instance_snapshot | DELETE /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot |
ArmApi | v1_delete_project | DELETE /v1/projects/{projectId} | Delete a Project |
ArmApi | v1_delete_snapshot | DELETE /v1/snapshots/{snapshotId} | Delete a Snapshot |
ArmApi | v1_disable_expose_port | POST /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. |
ArmApi | v1_enable_expose_port | POST /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. |
ArmApi | v1_execute_hyper_trace_hooks | POST /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance |
ArmApi | v1_get_hook_by_id | GET /v1/hooks/{hookId} | Get hypervisor hook by id |
ArmApi | v1_get_hooks | GET /v1/instances/{instanceId}/hooks | Get all hypervisor hooks for Instance |
ArmApi | v1_get_image | GET /v1/images/{imageId} | Get Image Metadata |
ArmApi | v1_get_images | GET /v1/images | Get all Images Metadata |
ArmApi | v1_get_instance | GET /v1/instances/{instanceId} | Get Instance |
ArmApi | v1_get_instance_console | GET /v1/instances/{instanceId}/console | Get console websocket URL |
ArmApi | v1_get_instance_console_log | GET /v1/instances/{instanceId}/consoleLog | Get Console Log |
ArmApi | v1_get_instance_gpios | GET /v1/instances/{instanceId}/gpios | Get Instance GPIOs |
ArmApi | v1_get_instance_panics | GET /v1/instances/{instanceId}/panics | Get Panics |
ArmApi | v1_get_instance_peripherals | GET /v1/instances/{instanceId}/peripherals | Get Instance Peripherals |
ArmApi | v1_get_instance_quick_connect_command | GET /v1/instances/{instanceId}/quickConnectCommand | Recommended SSH Command for Quick Connect |
ArmApi | v1_get_instance_screenshot | GET /v1/instances/{instanceId}/screenshot.{format} | Get Instance Screenshot |
ArmApi | v1_get_instance_snapshot | GET /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot |
ArmApi | v1_get_instance_snapshots | GET /v1/instances/{instanceId}/snapshots | Get Instance Snapshots |
ArmApi | v1_get_instance_state | GET /v1/instances/{instanceId}/state | Get state of Instance |
ArmApi | v1_get_instances | GET /v1/instances | Get Instances |
ArmApi | v1_get_model_software | GET /v1/models/{model}/software | Get Software for Model |
ArmApi | v1_get_models | GET /v1/models | Get Supported Models |
ArmApi | v1_get_project | GET /v1/projects/{projectId} | Get a Project |
ArmApi | v1_get_project_instances | GET /v1/projects/{projectId}/instances | Get Instances in Project |
ArmApi | v1_get_project_keys | GET /v1/projects/{projectId}/keys | Get Project Authorized Keys |
ArmApi | v1_get_project_vpn_config | GET /v1/projects/{projectId}/vpnconfig/{format} | Get Project VPN Configuration |
ArmApi | v1_get_projects | GET /v1/projects | Get Projects |
ArmApi | v1_get_snapshot | GET /v1/snapshots/{snapshotId} | Get Snapshot |
ArmApi | v1_kcrange | GET /v1/instances/{instanceId}/btrace-kcrange | Get Kernel extension ranges |
ArmApi | v1_list_threads | GET /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) |
ArmApi | v1_media_play | POST /v1/instances/{instanceId}/media/play | Start playing media |
ArmApi | v1_media_stop | POST /v1/instances/{instanceId}/media/stop | Stop playing media |
ArmApi | v1_patch_instance | PATCH /v1/instances/{instanceId} | Update Instance |
ArmApi | v1_pause_instance | POST /v1/instances/{instanceId}/pause | Pause an Instance |
ArmApi | v1_post_instance_input | POST /v1/instances/{instanceId}/input | Provide Instance Input |
ArmApi | v1_ready | GET /v1/ready | API Status |
ArmApi | v1_reboot_instance | POST /v1/instances/{instanceId}/reboot | Reboot an Instance |
ArmApi | v1_remove_project_key | DELETE /v1/projects/{projectId}/keys/{keyId} | Delete Project Authorized Key |
ArmApi | v1_remove_team_role_from_project | DELETE /v1/roles/projects/{projectId}/teams/{teamId}/roles/{roleId} | Remove team role from project |
ArmApi | v1_remove_user_from_team | DELETE /v1/teams/{teamId}/users/{userId} | Remove user from team |
ArmApi | v1_remove_user_role_from_project | DELETE /v1/roles/projects/{projectId}/users/{userId}/roles/{roleId} | Remove user role from project |
ArmApi | v1_rename_instance_snapshot | PATCH /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot |
ArmApi | v1_restore_instance_snapshot | POST /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot |
ArmApi | v1_roles | GET /v1/roles | Get all roles |
ArmApi | v1_set_instance_gpios | PUT /v1/instances/{instanceId}/gpios | Set Instance GPIOs |
ArmApi | v1_set_instance_peripherals | PUT /v1/instances/{instanceId}/peripherals | Set Instance Peripherals |
ArmApi | v1_set_instance_state | PUT /v1/instances/{instanceId}/state | Set state of Instance |
ArmApi | v1_snapshot_rename | PATCH /v1/snapshots/{snapshotId} | Rename a Snapshot |
ArmApi | v1_start_core_trace | POST /v1/instances/{instanceId}/strace/enable | Start CoreTrace on an instance |
ArmApi | v1_start_hyper_trace | POST /v1/instances/{instanceId}/btrace/enable | Start HyperTrace on an instance |
ArmApi | v1_start_instance | POST /v1/instances/{instanceId}/start | Start an Instance |
ArmApi | v1_start_network_monitor | POST /v1/instances/{instanceId}/sslsplit/enable | Start Network Monitor on an instance. |
ArmApi | v1_stop_core_trace | POST /v1/instances/{instanceId}/strace/disable | Stop CoreTrace on an instance. |
ArmApi | v1_stop_hyper_trace | POST /v1/instances/{instanceId}/btrace/disable | Stop HyperTrace on an instance. |
ArmApi | v1_stop_instance | POST /v1/instances/{instanceId}/stop | Stop an Instance |
ArmApi | v1_stop_network_monitor | POST /v1/instances/{instanceId}/sslsplit/disable | Stop Network Monitor on an instance. |
ArmApi | v1_team_change | PATCH /v1/teams/{teamId} | Update team |
ArmApi | v1_team_create | POST /v1/teams | Create team |
ArmApi | v1_team_delete | DELETE /v1/teams/{teamId} | Delete team |
ArmApi | v1_teams | GET /v1/teams | Get teams |
ArmApi | v1_unpause_instance | POST /v1/instances/{instanceId}/unpause | Unpause an Instance |
ArmApi | v1_update_hook | PUT /v1/hooks/{hookId} | Update an existing hypervisor hook |
ArmApi | v1_update_project | PATCH /v1/projects/{projectId} | Update a Project |
ArmApi | v1_update_project_settings | PATCH /v1/projects/{projectId}/settings | Change Project Settings |
ArmApi | v1_upload_image_data | POST /v1/images/{imageId} | Upload Image Data |
ArmApi | v1_web_player_allowed_domains | GET /v1/webplayer/allowedDomains | Retrieve the list of allowed domains for all Web Player sessions |
ArmApi | v1_web_player_create_session | POST /v1/webplayer | Create a new Web Player Session |
ArmApi | v1_web_player_destroy_session | DELETE /v1/webplayer/{sessionId} | Tear down a Web Player Session |
ArmApi | v1_web_player_list_sessions | GET /v1/webplayer | List all Web Player sessions |
ArmApi | v1_web_player_session_info | GET /v1/webplayer/{sessionId} | Retrieve Web Player Session Information |
- Address
- AgentApp
- AgentAppReadyResponse
- AgentAppStatus
- AgentAppsList
- AgentAppsStatusList
- AgentError
- AgentIcons
- AgentInstallBody
- AgentProfilesReturn
- AgentSystemAdbAuth
- AgentSystemGetPropBody
- AgentValueReturn
- AgreedAck
- ApiConflictError
- ApiError
- ApiInternalConsistencyError
- ApiNotFoundError
- ApiToken
- Bit
- BtraceEnableOptions
- Button
- CouponOptions
- CreateTeam
- CreatedBy
- Credentials
- DomainOptions
- Extension
- Features
- FileChanges
- Firmware
- GpioStateDefinition
- GpiosState
- GrantTrialRequestResponse
- Hook
- Image
- Instance
- InstanceAgentState
- InstanceBootOptions
- InstanceBootOptionsAdditionalTag
- InstanceConsoleEndpoint
- InstanceCreateOptions
- InstanceInput
- InstanceNetmonState
- InstanceReturn
- InstanceServices
- InstanceStartOptions
- InstanceState
- InstanceStopOptions
- Invitation
- InviteRevokeParams
- InviteRevokeParamsIds
- Kcrange
- KernelTask
- KernelThread
- MediaPlayBody
- Model
- ModelSoftware
- PasswordChangeBody
- PasswordResetBody
- PatchInstanceOptions
- PeripheralsData
- Plan
- Project
- ProjectKey
- ProjectQuota
- ProjectSettings
- ProjectUsage
- RateInfo
- ResetLinkBody
- Role
- RotateBody
- Snapshot
- SnapshotCreationOptions
- SnapshotStatus
- SubscriberInvite
- Team
- TeamCreate
- TextInput
- Token
- TouchCurveInput
- TouchInput
- Trial
- TrialExtension
- TrialRequestMetadata
- TrialRequestOptions
- UpdateExtension
- User
- UserError
- V1CreateHookParameters
- V1LoadExtensionParameters
- V1SetStateBody
- ValidationError
- VolumeOptions
- VpnDefinition
- WebPlayerCreateSessionRequest
- WebPlayerSession
- Type: Bearer authentication (ApiToken or JWT)
If the OpenAPI document is large, imports in avh_api.apis and avh_api.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from avh_api.api.default_api import DefaultApi
from avh_api.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import avh_api
from avh_api.apis import *
from avh_api.models import *