thousandeyes-sdk-tests
Note: The Page Load Tests, API Tests, and Web Transaction Tests APIs are not available for ThousandEyes for Government instance.
This API allows you to list, create, edit, and delete Network and Application Synthetics tests.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 7.0.104
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
Requirements.
Python 3.9+
Installation & Usage
pip install
Install directly via PyPi:
pip install thousandeyes-sdk-tests
(you may need to run pip with root permission: sudo pip install thousandeyes-sdk-tests)
Then import the package:
import thousandeyes_sdk.tests
Setuptools
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 thousandeyes_sdk.tests
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import thousandeyes_sdk.core
import thousandeyes_sdk.tests
from thousandeyes_sdk.core.exceptions import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com/v7
# See configuration.py for a list of all supported configuration parameters.
configuration = thousandeyes_sdk.core.Configuration(
host = "https://api.thousandeyes.com/v7"
)
# 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: BearerAuth
configuration = thousandeyes_sdk.core.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with thousandeyes_sdk.core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = thousandeyes_sdk.tests.APITestsApi(api_client)
api_test_request = thousandeyes_sdk.tests.ApiTestRequest() # ApiTestRequest |
aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional)
expand = ["agent","monitor"] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional)
try:
# Create API test
api_response = api_instance.create_api_test(api_test_request, aid=aid, expand=expand)
print("The response of APITestsApi->create_api_test:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling APITestsApi->create_api_test: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.thousandeyes.com/v7
| Class | Method | HTTP request | Description |
|---|---|---|---|
| APITestsApi | create_api_test | POST /tests/api | Create API test |
| APITestsApi | delete_api_test | DELETE /tests/api/{testId} | Delete API test |
| APITestsApi | get_api_test | GET /tests/api/{testId} | Get API test |
| APITestsApi | get_api_tests | GET /tests/api | List API tests |
| APITestsApi | update_api_test | PUT /tests/api/{testId} | Update API test |
| AgentToAgentTestsApi | create_agent_to_agent_test | POST /tests/agent-to-agent | Create Agent to Agent test |
| AgentToAgentTestsApi | delete_agent_to_agent_test | DELETE /tests/agent-to-agent/{testId} | Delete Agent to Agent test |
| AgentToAgentTestsApi | get_agent_to_agent_test | GET /tests/agent-to-agent/{testId} | Get Agent to Agent test |
| AgentToAgentTestsApi | get_agent_to_agent_tests | GET /tests/agent-to-agent | List Agent to Agent tests |
| AgentToAgentTestsApi | update_agent_to_agent_test | PUT /tests/agent-to-agent/{testId} | Update Agent to Agent test |
| AgentToServerTestsApi | create_agent_to_server_test | POST /tests/agent-to-server | Create Agent to Server test |
| AgentToServerTestsApi | delete_agent_to_server_test | DELETE /tests/agent-to-server/{testId} | Delete Agent to Server test |
| AgentToServerTestsApi | get_agent_to_server_test | GET /tests/agent-to-server/{testId} | Get Agent to Server test |
| AgentToServerTestsApi | get_agent_to_server_tests | GET /tests/agent-to-server | List Agent to Server tests |
| AgentToServerTestsApi | update_agent_to_server_test | PUT /tests/agent-to-server/{testId} | Update Agent to Server test |
| BGPTestsApi | create_bgp_test | POST /tests/bgp | Create BGP test |
| BGPTestsApi | delete_bgp_test | DELETE /tests/bgp/{testId} | Delete BGP test |
| BGPTestsApi | get_bgp_test | GET /tests/bgp/{testId} | Get BGP test |
| BGPTestsApi | get_bgp_tests | GET /tests/bgp | List BGP tests |
| BGPTestsApi | update_bgp_test | PUT /tests/bgp/{testId} | Update BGP test |
| DNSSECTestsApi | create_dns_sec_test | POST /tests/dnssec | Create DNSSEC test |
| DNSSECTestsApi | delete_dns_sec_test | DELETE /tests/dnssec/{testId} | Delete DNSSEC test |
| DNSSECTestsApi | get_dns_sec_test | GET /tests/dnssec/{testId} | Get DNSSEC test |
| DNSSECTestsApi | get_dns_sec_tests | GET /tests/dnssec | List DNSSEC tests |
| DNSSECTestsApi | update_dns_sec_test | PUT /tests/dnssec/{testId} | Update DNSSEC test |
| DNSServerTestsApi | create_dns_server_test | POST /tests/dns-server | Create DNS Server test |
| DNSServerTestsApi | delete_dns_server_test | DELETE /tests/dns-server/{testId} | Delete DNS Server test |
| DNSServerTestsApi | get_dns_server_test | GET /tests/dns-server/{testId} | Get DNS Server test |
| DNSServerTestsApi | get_dns_server_tests | GET /tests/dns-server | List DNS Server tests |
| DNSServerTestsApi | update_dns_server_test | PUT /tests/dns-server/{testId} | Update DNS Server test |
| DNSTraceTestsApi | create_dns_trace_test | POST /tests/dns-trace | Create DNS Trace test |
| DNSTraceTestsApi | delete_dns_trace_test | DELETE /tests/dns-trace/{testId} | Delete DNS Trace test |
| DNSTraceTestsApi | get_dns_trace_test | GET /tests/dns-trace/{testId} | Get DNS Trace test |
| DNSTraceTestsApi | get_dns_trace_tests | GET /tests/dns-trace | List DNS Trace tests |
| DNSTraceTestsApi | update_dns_trace_test | PUT /tests/dns-trace/{testId} | Update DNS Trace test |
| FTPServerTestsApi | create_ftp_server_test | POST /tests/ftp-server | Create FTP Server test |
| FTPServerTestsApi | delete_ftp_server_test | DELETE /tests/ftp-server/{testId} | Delete FTP Server test |
| FTPServerTestsApi | get_ftp_server_test | GET /tests/ftp-server/{testId} | Get FTP Server test |
| FTPServerTestsApi | get_ftp_server_tests | GET /tests/ftp-server | List FTP Server tests |
| FTPServerTestsApi | update_ftp_server_test | PUT /tests/ftp-server/{testId} | Update FTP Server test |
| HTTPServerTestsApi | create_http_server_test | POST /tests/http-server | Create HTTP Server test |
| HTTPServerTestsApi | delete_http_server_test | DELETE /tests/http-server/{testId} | Delete HTTP Server test |
| HTTPServerTestsApi | get_http_server_test | GET /tests/http-server/{testId} | Get HTTP Server test |
| HTTPServerTestsApi | get_http_server_tests | GET /tests/http-server | List HTTP Server tests |
| HTTPServerTestsApi | update_http_server_test | PUT /tests/http-server/{testId} | Update HTTP Server test |
| PageLoadTestsApi | create_page_load_test | POST /tests/page-load | Create Page Load test |
| PageLoadTestsApi | delete_page_load_test | DELETE /tests/page-load/{testId} | Delete Page Load test |
| PageLoadTestsApi | get_page_load_test | GET /tests/page-load/{testId} | Get Page Load test |
| PageLoadTestsApi | get_page_load_tests | GET /tests/page-load | List Page Load tests |
| PageLoadTestsApi | update_page_load_test | PUT /tests/page-load/{testId} | Update Page Load test |
| PathVisualizationInterfaceGroupsApi | create_path_vis_interface_groups | POST /network/path-vis/interface-groups | Create interface group for path visualization |
| PathVisualizationInterfaceGroupsApi | delete_path_vis_interface_group | DELETE /network/path-vis/interface-groups/{interfaceGroupId} | Delete interface group |
| PathVisualizationInterfaceGroupsApi | get_path_vis_interface_groups | GET /network/path-vis/interface-groups | List interface groups for path visualization |
| PathVisualizationInterfaceGroupsApi | update_path_vis_interface_group | PUT /network/path-vis/interface-groups/{interfaceGroupId} | Update interface group |
| SIPServerTestsApi | create_sip_server_test | POST /tests/sip-server | Create SIP Server test |
| SIPServerTestsApi | delete_sip_server_test | DELETE /tests/sip-server/{testId} | Delete SIP Server test |
| SIPServerTestsApi | get_sip_server_test | GET /tests/sip-server/{testId} | Get SIP Server test |
| SIPServerTestsApi | get_sip_server_tests | GET /tests/sip-server | List SIP Server tests |
| SIPServerTestsApi | update_sip_server_test | PUT /tests/sip-server/{testId} | Update SIP Server test |
| TestsApi | get_test_version_history | GET /tests/{testId}/history | Get test version history |
| TestsApi | get_tests | GET /tests | List configured tests |
| VoiceTestsApi | create_voice_test | POST /tests/voice | Create Voice test |
| VoiceTestsApi | delete_voice_test | DELETE /tests/voice/{testId} | Delete Voice test |
| VoiceTestsApi | get_voice_test | GET /tests/voice/{testId} | Get Voice test |
| VoiceTestsApi | get_voice_tests | GET /tests/voice | List Voice tests |
| VoiceTestsApi | update_voice_test | PUT /tests/voice/{testId} | Update Voice test |
| WebTransactionTestsApi | create_web_transactions_test | POST /tests/web-transactions | Create Web Transactions test |
| WebTransactionTestsApi | delete_web_transactions_test | DELETE /tests/web-transactions/{testId} | Delete Web Transactions test |
| WebTransactionTestsApi | get_web_transactions_test | GET /tests/web-transactions/{testId} | Get Web Transactions test |
| WebTransactionTestsApi | get_web_transactions_tests | GET /tests/web-transactions | List Web Transactions tests |
| WebTransactionTestsApi | update_web_transactions_test | PUT /tests/web-transactions/{testId} | Update Web Transactions test |
Documentation For Models
- AgentBase
- AgentResponse
- AgentToAgentInstantTest
- AgentToAgentProperties
- AgentToAgentTest
- AgentToAgentTestProtocol
- AgentToAgentTestRequest
- AgentToAgentTestResponse
- AgentToAgentTests
- AgentToServerInstantTest
- AgentToServerProperties
- AgentToServerTest
- AgentToServerTestRequest
- AgentToServerTestResponse
- AgentToServerTests
- AgentToServerWritablePropertyFields
- AlertDirection
- AlertRoundsViolationMode
- AlertRule
- AlertType
- ApiClientAuthentication
- ApiInstantTest
- ApiPredefinedVariable
- ApiProperties
- ApiRequest
- ApiRequestAssertion
- ApiRequestAssertionName
- ApiRequestAssertionOperator
- ApiRequestAuthType
- ApiRequestHeader
- ApiRequestMethod
- ApiRequestVariable
- ApiTest
- ApiTestRequest
- ApiTestResponse
- ApiTests
- BaseBgpRequest
- BaseBgpTest
- BaseRequest
- BaseTest
- BgpTest
- BgpTestRequest
- BgpTestResponse
- BgpTests
- CloudEnterpriseAgentType
- Coordinates
- DnsQueryClass
- DnsSecInstantTest
- DnsSecProperties
- DnsSecTest
- DnsSecTestRequest
- DnsSecTestResponse
- DnsSecTests
- DnsServerInstantTest
- DnsServerProperties
- DnsServerRequestProperties
- DnsServerTest
- DnsServerTestRequest
- DnsServerTestResponse
- DnsServerTests
- DnsTraceInstantTest
- DnsTraceProperties
- DnsTraceTest
- DnsTraceTestRequest
- DnsTraceTestResponse
- DnsTraceTests
- Error
- ExpandBgpTestOptions
- ExpandTestOptions
- FtpServerInstantTest
- FtpServerProperties
- FtpServerRequestType
- FtpServerTest
- FtpServerTestRequest
- FtpServerTestResponse
- FtpServerTests
- HttpServerBaseProperties
- HttpServerInstantTest
- HttpServerProperties
- HttpServerTest
- HttpServerTestRequest
- HttpServerTestResponse
- HttpServerTests
- InstantTest
- InterfaceGroup
- InterfaceGroups
- Link
- Monitor
- MonitorType
- MonitorsRequest
- NetworkProviderInfo
- NetworkProviderType
- OAuth
- OAuthAuthType
- PageLoadInstantTest
- PageLoadProperties
- PageLoadTest
- PageLoadTestRequest
- PageLoadTestResponse
- PageLoadTests
- RequestMethod
- SelfLinks
- SensitivityLevel
- Severity
- SharedWithAccount
- SimpleAgent
- SimpleAgentAllOfNetworkProviderInfo
- SimpleTest
- SipServerInstantTest
- SipServerProperties
- SipServerTest
- SipServerTestRequest
- SipServerTestResponse
- SipServerTests
- SipTestProtocol
- SourceInterfaceTestRequest
- TestAgentRequest
- TestAgentResponse
- TestAgentResponseProperties
- TestAgentWithSourceIpRequest
- TestAuthType
- TestChromiumTrack
- TestCustomHeaders
- TestDirection
- TestDnsServer
- TestDnsTransportProtocol
- TestDscpId
- TestHttpInterval
- TestInterval
- TestIpv6Policy
- TestLabel
- TestLinks
- TestMonitorsProperties
- TestPageLoadingStrategy
- TestPathTraceMode
- TestProbeMode
- TestProtocol
- TestRequest
- TestSelfLink
- TestSipCredentials
- TestSslVersionId
- TestSubInterval
- TestTag
- TestType
- TestVaultCredential
- TestVaultCredentialTarget
- TestVersionHistory
- TestVersionHistoryResponse
- Tests
- UnauthorizedError
- UnexpandedAgentToAgentTest
- UnexpandedAgentToServerTest
- UnexpandedApiTest
- UnexpandedBgpTest
- UnexpandedDnsSecTest
- UnexpandedDnsServerRequestTest
- UnexpandedDnsServerTest
- UnexpandedDnsTraceTest
- UnexpandedFtpServerTest
- UnexpandedHttpServerTest
- UnexpandedInstantTest
- UnexpandedPageLoadTest
- UnexpandedSipServerTest
- UnexpandedTest
- UnexpandedVoiceTest
- UnexpandedWebTransactionTest
- UpdateAgentToServerTestRequest
- UpdateBgpTestRequest
- ValidationError
- ValidationErrorItem
- VoiceInstantTest
- VoiceProperties
- VoiceTest
- VoiceTestRequest
- VoiceTestResponse
- VoiceTests
- WebTransactionInstantTest
- WebTransactionProperties
- WebTransactionTest
- WebTransactionTestRequest
- WebTransactionTestResponse
- WebTransactionTests
Documentation For Authorization
Authentication schemes defined for the API:
BearerAuth
- Type: Bearer authentication
Author
Metadata
Release files for thousandeyes-sdk-tests 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thousandeyes_sdk_tests-5.0.0.tar.gz | 323.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thousandeyes_sdk_tests-5.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 841.4 kB
Release files / thousandeyes_sdk_tests-5.0.0.tar.gz
| Download URL | thousandeyes_sdk_tests-5.0.0.tar.gz |
|---|---|
| Size | 323.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9aed1a45d1786d0e495e3fb10bfc1f0e7220038b0c9cda237ac08e59a285d73d
|
|
BLAKE2b-256 checksum How to use checksums |
b1856f4f04ec62965ff63bda6514c3896e4146d1ea84cc8818ac6c54a788c1dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / thousandeyes_sdk_tests-5.0.0-py3-none-any.whl
| Download URL | thousandeyes_sdk_tests-5.0.0-py3-none-any.whl |
|---|---|
| Size | 518.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f53202ab2923443274a9c56ac4a33bcd64d62e7d76e7c67ae4536d83cdefd6c1
|
|
BLAKE2b-256 checksum How to use checksums |
038a0016c1a1f6b86f9c1058612c39d1e3b4095f4be51117983f01ef5f852e19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency log