All URIs are relative to https://unit-tenant.instana.io
| Method | HTTP request | Description |
|---|---|---|
| clear_source_map_upload_configuration | PUT /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId}/clear | Clear source map files for sourcemap upload configuration |
| create_website | POST /api/website-monitoring/config | Configure new website |
| delete_website | DELETE /api/website-monitoring/config/{websiteId} | Remove website |
| delete_website_source_map_upload_configuration | DELETE /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId} | Delete sourcemap upload configuration for website |
| get_website | GET /api/website-monitoring/config/{websiteId} | Get configured website |
| get_website_geo_location_configuration | GET /api/website-monitoring/config/{websiteId}/geo-location | Get geo location configuration for website |
| get_website_geo_mapping_rules | GET /api/website-monitoring/config/{websiteId}/geo-mapping-rules | Get custom geo mapping rules for website |
| get_website_ip_masking_configuration | GET /api/website-monitoring/config/{websiteId}/ip-masking | Get IP masking configuration for website |
| get_website_source_map_upload_configuration | GET /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId} | Get sourcemap upload configurations for website |
| get_website_source_map_upload_configurations | GET /api/website-monitoring/config/{websiteId}/sourcemap-upload | Get all sourcemap upload configurations for website |
| get_websites | GET /api/website-monitoring/config | Get configured websites |
| post_website_source_map_upload_config | POST /api/website-monitoring/config/{websiteId}/sourcemap-upload | Add new sourcemap upload configuration for website |
| rename_website | PUT /api/website-monitoring/config/{websiteId} | Rename website |
| set_website_geo_mapping_rules | PUT /api/website-monitoring/config/{websiteId}/geo-mapping-rules | Set custom geo mapping rules for website |
| update_website_geo_location_configuration | PUT /api/website-monitoring/config/{websiteId}/geo-location | Update geo location configuration for website |
| update_website_ip_masking_configuration | PUT /api/website-monitoring/config/{websiteId}/ip-masking | Update IP masking configuration for website |
| update_website_teams | PUT /api/website-monitoring/config/{websiteId}/teams | Update teams assigned to the website |
| upload_source_map_file | PUT /api/website-monitoring/config/{websiteId}/sourcemap-upload/{sourceMapConfigId}/form | Upload sourcemap file for website |
clear_source_map_upload_configuration(website_id, source_map_config_id)
Clear source map files for sourcemap upload configuration
API request to clear source map files for sourcemap upload configuration.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'UhzF-fWORlyVLHDlvutYYQ' # str | Website ID
source_map_config_id = '97e0ad312110d3ad' # str | Source Map Config ID
try:
# Clear source map files for sourcemap upload configuration
api_instance.clear_source_map_upload_configuration(website_id, source_map_config_id)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->clear_source_map_upload_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| source_map_config_id | str | Source Map Config ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Source map files in the source map upload configuration successfully cleared | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Website create_website(name=name, create_website_request_inner=create_website_request_inner)
Configure new website
API request to add new website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.create_website_request_inner import CreateWebsiteRequestInner
from instana_client.models.website import Website
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
name = 'name_example' # str | (optional)
create_website_request_inner = [{"id":"test","displayName":"test"}] # List[CreateWebsiteRequestInner] | (optional)
try:
# Configure new website
api_response = api_instance.create_website(name=name, create_website_request_inner=create_website_request_inner)
print("The response of WebsiteConfigurationApi->create_website:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->create_website: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | [optional] | |
| create_website_request_inner | List[CreateWebsiteRequestInner] | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Website successfully configured | - |
| 400 | Missing name query parameter or name already used for a configured website | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_website(website_id)
Remove website
API request to delete website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'K3bP-bmCRkyimNai9vvq8o' # str | Website ID
try:
# Remove website
api_instance.delete_website(website_id)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->delete_website: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Website successfully removed | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_website_source_map_upload_configuration(website_id, source_map_config_id)
Delete sourcemap upload configuration for website
API request to delete sourcemap upload configuration for website.
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
source_map_config_id = '97e0ad312110d3ad' # str | Source Map Config ID
try:
# Delete sourcemap upload configuration for website
api_instance.delete_website_source_map_upload_configuration(website_id, source_map_config_id)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->delete_website_source_map_upload_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| source_map_config_id | str | Source Map Config ID |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Sourcemap configuration successfully deleted or sourcemap not found | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Website get_website(website_id)
Get configured website
API request to get configured website details for specified websiteId
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.website import Website
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
try:
# Get configured website
api_response = api_instance.get_website(website_id)
print("The response of WebsiteConfigurationApi->get_website:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeoLocationConfiguration get_website_geo_location_configuration(website_id)
Get geo location configuration for website
API request to get geo-location configuration of a website specified by its websiteId
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.geo_location_configuration import GeoLocationConfiguration
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
try:
# Get geo location configuration for website
api_response = api_instance.get_website_geo_location_configuration(website_id)
print("The response of WebsiteConfigurationApi->get_website_geo_location_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website_geo_location_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_website_geo_mapping_rules(website_id)
Get custom geo mapping rules for website
API request to get custom geo mapping rules for website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'iiLxP1zaTuCS7fyk9m4W0W' # str | Website ID
try:
# Get custom geo mapping rules for website
api_instance.get_website_geo_mapping_rules(website_id)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website_geo_mapping_rules: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
void (empty response body)
- Content-Type: Not defined
- Accept: text/csv
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IpMaskingConfiguration get_website_ip_masking_configuration(website_id)
Get IP masking configuration for website
API request to get IP masking configuration of a website specified by its websiteId
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.ip_masking_configuration import IpMaskingConfiguration
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
try:
# Get IP masking configuration for website
api_response = api_instance.get_website_ip_masking_configuration(website_id)
print("The response of WebsiteConfigurationApi->get_website_ip_masking_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website_ip_masking_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SourceMapUploadConfig get_website_source_map_upload_configuration(website_id, source_map_config_id)
Get sourcemap upload configurations for website
API request to get sourcemap upload configuration for website.
import instana_client
from instana_client.models.source_map_upload_config import SourceMapUploadConfig
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'website_id_example' # str |
source_map_config_id = '97e0ad312110d3ad' # str | Source Map Config ID
try:
# Get sourcemap upload configurations for website
api_response = api_instance.get_website_source_map_upload_configuration(website_id, source_map_config_id)
print("The response of WebsiteConfigurationApi->get_website_source_map_upload_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website_source_map_upload_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | ||
| source_map_config_id | str | Source Map Config ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SourceMapUploadConfigs get_website_source_map_upload_configurations(website_id)
Get all sourcemap upload configurations for website
API request to get all sourcemap upload configurations for website.
import instana_client
from instana_client.models.source_map_upload_configs import SourceMapUploadConfigs
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
try:
# Get all sourcemap upload configurations for website
api_response = api_instance.get_website_source_map_upload_configurations(website_id)
print("The response of WebsiteConfigurationApi->get_website_source_map_upload_configurations:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_website_source_map_upload_configurations: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[Website] get_websites()
Get configured websites
API request to get all configured websites details.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.website import Website
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
try:
# Get configured websites
api_response = api_instance.get_websites()
print("The response of WebsiteConfigurationApi->get_websites:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->get_websites: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad request. | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SourceMapUploadConfig post_website_source_map_upload_config(website_id, post_mobile_app_source_map_config_request=post_mobile_app_source_map_config_request)
Add new sourcemap upload configuration for website
API request to add sourcemap upload configuration for website.
import instana_client
from instana_client.models.post_mobile_app_source_map_config_request import PostMobileAppSourceMapConfigRequest
from instana_client.models.source_map_upload_config import SourceMapUploadConfig
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = '1ELrNt-eQ9SlK4D_EgLMiA' # str | Website ID
post_mobile_app_source_map_config_request = {"description":"websiteSourcemapConfig2"} # PostMobileAppSourceMapConfigRequest | (optional)
try:
# Add new sourcemap upload configuration for website
api_response = api_instance.post_website_source_map_upload_config(website_id, post_mobile_app_source_map_config_request=post_mobile_app_source_map_config_request)
print("The response of WebsiteConfigurationApi->post_website_source_map_upload_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->post_website_source_map_upload_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| post_mobile_app_source_map_config_request | PostMobileAppSourceMapConfigRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Website sourcemap upload configuration added successfully | - |
| 400 | Missing description or description already used for a configuration. | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 422 | Unprocessable request - missing/invalid data. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Website rename_website(website_id, name=name)
Rename website
API request to rename website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.website import Website
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'K3bP-bmCRkyimNai9vvq8o' # str | Website ID
name = 'name_example' # str | (optional)
try:
# Rename website
api_response = api_instance.rename_website(website_id, name=name)
print("The response of WebsiteConfigurationApi->rename_website:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->rename_website: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| name | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Website successfully renamed | - |
| 400 | Missing name query parameter or name already used for a configured website | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
set_website_geo_mapping_rules(website_id, body=body)
Set custom geo mapping rules for website
API request to set custom geo mapping rules for website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'K3bP-bmCRkyimNai9vvq8o' # str | Website ID
body = 'body_example' # str | (optional)
try:
# Set custom geo mapping rules for website
api_instance.set_website_geo_mapping_rules(website_id, body=body)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->set_website_geo_mapping_rules: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| body | str | [optional] |
void (empty response body)
- Content-Type: text/csv
- Accept: text/csv
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 415 | Unsupported Media Type. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GeoLocationConfiguration update_website_geo_location_configuration(website_id, geo_location_configuration=geo_location_configuration)
Update geo location configuration for website
API request to update geo location configuration for website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.geo_location_configuration import GeoLocationConfiguration
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'iiLxP1zaTuCS7fyk9m4W0W' # str | Website ID
geo_location_configuration = instana_client.GeoLocationConfiguration() # GeoLocationConfiguration | (optional)
try:
# Update geo location configuration for website
api_response = api_instance.update_website_geo_location_configuration(website_id, geo_location_configuration=geo_location_configuration)
print("The response of WebsiteConfigurationApi->update_website_geo_location_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->update_website_geo_location_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| geo_location_configuration | GeoLocationConfiguration | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IpMaskingConfiguration update_website_ip_masking_configuration(website_id, ip_masking_configuration=ip_masking_configuration)
Update IP masking configuration for website
API request to update IP masking configuration for website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.ip_masking_configuration import IpMaskingConfiguration
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'iiLxP1zaTuCS7fyk9m4W0W' # str | Website ID
ip_masking_configuration = instana_client.IpMaskingConfiguration() # IpMaskingConfiguration | (optional)
try:
# Update IP masking configuration for website
api_response = api_instance.update_website_ip_masking_configuration(website_id, ip_masking_configuration=ip_masking_configuration)
print("The response of WebsiteConfigurationApi->update_website_ip_masking_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->update_website_ip_masking_configuration: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| ip_masking_configuration | IpMaskingConfiguration | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[ApiTag] update_website_teams(website_id, api_tag=api_tag)
Update teams assigned to the website
API request to update teams of a website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.api_tag import ApiTag
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'website_id_example' # str |
api_tag = [{"id":"test","displayName":"test"}] # List[ApiTag] | (optional)
try:
# Update teams assigned to the website
api_response = api_instance.update_website_teams(website_id, api_tag=api_tag)
print("The response of WebsiteConfigurationApi->update_website_teams:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->update_website_teams: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | ||
| api_tag | List[ApiTag] | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Website successfully configured | - |
| 400 | Bad request. | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SourceMapUploadConfig upload_source_map_file(website_id, source_map_config_id, source_map, url, file_format=file_format)
Upload sourcemap file for website
API request to upload sourcemap file for website.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.source_map_upload_config import SourceMapUploadConfig
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.WebsiteConfigurationApi(api_client)
website_id = 'UhzF-fWORlyVLHDlvutYYQ' # str | Website ID
source_map_config_id = '97e0ad312110d3ad' # str | Source Map Config ID
source_map = None # bytearray | Local Source Map file path
url = 'url_example' # str | URL of the website
file_format = 'file_format_example' # str | (optional)
try:
# Upload sourcemap file for website
api_response = api_instance.upload_source_map_file(website_id, source_map_config_id, source_map, url, file_format=file_format)
print("The response of WebsiteConfigurationApi->upload_source_map_file:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebsiteConfigurationApi->upload_source_map_file: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| website_id | str | Website ID | |
| source_map_config_id | str | Source Map Config ID | |
| source_map | bytearray | Local Source Map file path | |
| url | str | URL of the website | |
| file_format | str | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad request. | - |
| 401 | Unauthorized access - requires user authentication. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
| 500 | Internal server error. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]