All URIs are relative to https://YOUR_INSTANCE.wavefront.com
Method | HTTP request | Description |
---|---|---|
create_aws_external_id | POST /api/v2/cloudintegration/awsExternalId | Create an external id |
create_cloud_integration | POST /api/v2/cloudintegration | Create a cloud integration |
delete_aws_external_id | DELETE /api/v2/cloudintegration/awsExternalId/{id} | DELETEs an external id that was created by Wavefront |
delete_cloud_integration | DELETE /api/v2/cloudintegration/{id} | Delete a specific cloud integration |
disable_cloud_integration | POST /api/v2/cloudintegration/{id}/disable | Disable a specific cloud integration |
enable_cloud_integration | POST /api/v2/cloudintegration/{id}/enable | Enable a specific cloud integration |
get_all_cloud_integration | GET /api/v2/cloudintegration | Get all cloud integrations for a customer |
get_aws_external_id | GET /api/v2/cloudintegration/awsExternalId/{id} | GETs (confirms) a valid external id that was created by Wavefront |
get_cloud_integration | GET /api/v2/cloudintegration/{id} | Get a specific cloud integration |
undelete_cloud_integration | POST /api/v2/cloudintegration/{id}/undelete | Undelete a specific cloud integration |
update_cloud_integration | PUT /api/v2/cloudintegration/{id} | Update a specific cloud integration |
ResponseContainerString create_aws_external_id()
Create an external id
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
try:
# Create an external id
api_response = api_instance.create_aws_external_id()
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->create_aws_external_id: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration create_cloud_integration(body=body)
Create a cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> (optional)
try:
# Create a cloud integration
api_response = api_instance.create_cloud_integration(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->create_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | CloudIntegration | Example Body: <pre>{ "name":"CloudWatch integration", "service":"CLOUDWATCH", "cloudWatch":{ "baseCredentials":{ "roleArn":"arn:aws:iam::<accountid>:role/<rolename>" }, "metricFilterRegex":"^aws.(sqs | ec2 |
ResponseContainerCloudIntegration
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerString delete_aws_external_id(id)
DELETEs an external id that was created by Wavefront
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# DELETEs an external id that was created by Wavefront
api_response = api_instance.delete_aws_external_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->delete_aws_external_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration delete_cloud_integration(id, skip_trash=skip_trash)
Delete a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
skip_trash = false # bool | (optional) (default to false)
try:
# Delete a specific cloud integration
api_response = api_instance.delete_cloud_integration(id, skip_trash=skip_trash)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->delete_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
skip_trash | bool | [optional] [default to false] |
ResponseContainerCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration disable_cloud_integration(id)
Disable a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Disable a specific cloud integration
api_response = api_instance.disable_cloud_integration(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->disable_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration enable_cloud_integration(id)
Enable a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Enable a specific cloud integration
api_response = api_instance.enable_cloud_integration(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->enable_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerPagedCloudIntegration get_all_cloud_integration(offset=offset, limit=limit)
Get all cloud integrations for a customer
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get all cloud integrations for a customer
api_response = api_instance.get_all_cloud_integration(offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->get_all_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] |
ResponseContainerPagedCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerString get_aws_external_id(id)
GETs (confirms) a valid external id that was created by Wavefront
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# GETs (confirms) a valid external id that was created by Wavefront
api_response = api_instance.get_aws_external_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->get_aws_external_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration get_cloud_integration(id)
Get a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Get a specific cloud integration
api_response = api_instance.get_cloud_integration(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->get_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration undelete_cloud_integration(id)
Undelete a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
try:
# Undelete a specific cloud integration
api_response = api_instance.undelete_cloud_integration(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->undelete_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
ResponseContainerCloudIntegration
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerCloudIntegration update_cloud_integration(id, body=body)
Update a specific cloud integration
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.CloudIntegrationApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = wavefront_api_client.CloudIntegration() # CloudIntegration | Example Body: <pre>{ \"name\":\"CloudWatch integration\", \"service\":\"CLOUDWATCH\", \"cloudWatch\":{ \"baseCredentials\":{ \"roleArn\":\"arn:aws:iam::<accountid>:role/<rolename>\" }, \"metricFilterRegex\":\"^aws.(sqs|ec2|ebs|elb).*$\", \"pointTagFilterRegex\":\"(region|name)\" }, \"serviceRefreshRateInMins\":5 }</pre> (optional)
try:
# Update a specific cloud integration
api_response = api_instance.update_cloud_integration(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CloudIntegrationApi->update_cloud_integration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
body | CloudIntegration | Example Body: <pre>{ "name":"CloudWatch integration", "service":"CLOUDWATCH", "cloudWatch":{ "baseCredentials":{ "roleArn":"arn:aws:iam::<accountid>:role/<rolename>" }, "metricFilterRegex":"^aws.(sqs | ec2 |
ResponseContainerCloudIntegration
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]