thousandeyes-sdk-python/endpoint_instant_tests/docs/HttpServerInstantScheduledTestApi.md

98 lines
4.2 KiB
Markdown

# endpoint_instant_tests.HttpServerInstantScheduledTestApi
All URIs are relative to *https://api.thousandeyes.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**post_http_server_instant_test**](HttpServerInstantScheduledTestApi.md#post_http_server_instant_test) | **POST** /v7/endpoint/tests/scheduled-tests/http-server/instant | Run http server instant scheduled test
# **post_http_server_instant_test**
> EndpointHttpServerTest post_http_server_instant_test(endpoint_http_server_instant_test, aid=aid)
Run http server instant scheduled test
Creates and runs a new endpoint http server instant scheduled test in ThousandEyes.
### Example
* Bearer Authentication (BearerAuth):
```python
import endpoint_instant_tests
from endpoint_instant_tests.models.endpoint_http_server_instant_test import EndpointHttpServerInstantTest
from endpoint_instant_tests.models.endpoint_http_server_test import EndpointHttpServerTest
from endpoint_instant_tests.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.thousandeyes.com
# See configuration.py for a list of all supported configuration parameters.
configuration = endpoint_instant_tests.Configuration(
host = "https://api.thousandeyes.com"
)
# 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 = endpoint_instant_tests.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with endpoint_instant_tests.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = endpoint_instant_tests.HttpServerInstantScheduledTestApi(api_client)
endpoint_http_server_instant_test = endpoint_instant_tests.EndpointHttpServerInstantTest() # EndpointHttpServerInstantTest |
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)
try:
# Run http server instant scheduled test
api_response = api_instance.post_http_server_instant_test(endpoint_http_server_instant_test, aid=aid)
print("The response of HttpServerInstantScheduledTestApi->post_http_server_instant_test:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling HttpServerInstantScheduledTestApi->post_http_server_instant_test: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**endpoint_http_server_instant_test** | [**EndpointHttpServerInstantTest**](EndpointHttpServerInstantTest.md)| |
**aid** | **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]
### Return type
[**EndpointHttpServerTest**](EndpointHttpServerTest.md)
### Authorization
[BearerAuth](../README.md#BearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/hal+json, application/problem+json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | Created | * Location - <br> |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Insufficient permissions to query endpoint | - |
**429** | Exhausted rate limit for the organization | - |
**500** | Internal server error | - |
**502** | Bad Gateway | - |
**0** | An error occurred | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)