Skip to content

Latest commit

 

History

History
452 lines (312 loc) · 16.2 KB

CloudIntegrationApi.md

File metadata and controls

452 lines (312 loc) · 16.2 KB

wavefront_api_client.CloudIntegrationApi

All URIs are relative to https://localhost

Method HTTP request Description
create_cloud_integration POST /api/v2/cloudintegration Create a cloud integration
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_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

create_cloud_integration

ResponseContainerCloudIntegration create_cloud_integration(body=body)

Create a cloud integration

Example

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::&lt;accountid&gt;:role/&lt;rolename&gt;\",       \"externalId\":\"wave123\"     },     \"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)

Parameters

Name Type Description Notes
body CloudIntegration Example Body: <pre>{ &quot;name&quot;:&quot;CloudWatch integration&quot;, &quot;service&quot;:&quot;CLOUDWATCH&quot;, &quot;cloudWatch&quot;:{ &quot;baseCredentials&quot;:{ &quot;roleArn&quot;:&quot;arn:aws:iam::&lt;accountid&gt;:role/&lt;rolename&gt;&quot;, &quot;externalId&quot;:&quot;wave123&quot; }, &quot;metricFilterRegex&quot;:&quot;^aws.(sqs ec2

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_cloud_integration

ResponseContainerCloudIntegration delete_cloud_integration(id)

Delete a specific cloud integration

Example

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:
    # Delete a specific cloud integration
    api_response = api_instance.delete_cloud_integration(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudIntegrationApi->delete_cloud_integration: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

disable_cloud_integration

ResponseContainerCloudIntegration disable_cloud_integration(id)

Disable a specific cloud integration

Example

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)

Parameters

Name Type Description Notes
id str

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

enable_cloud_integration

ResponseContainerCloudIntegration enable_cloud_integration(id)

Enable a specific cloud integration

Example

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)

Parameters

Name Type Description Notes
id str

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_all_cloud_integration

ResponseContainerPagedCloudIntegration get_all_cloud_integration(offset=offset, limit=limit)

Get all cloud integrations for a customer

Example

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)

Parameters

Name Type Description Notes
offset int [optional] [default to 0]
limit int [optional] [default to 100]

Return type

ResponseContainerPagedCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_cloud_integration

ResponseContainerCloudIntegration get_cloud_integration(id)

Get a specific cloud integration

Example

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)

Parameters

Name Type Description Notes
id str

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

undelete_cloud_integration

ResponseContainerCloudIntegration undelete_cloud_integration(id)

Undelete a specific cloud integration

Example

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)

Parameters

Name Type Description Notes
id str

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_cloud_integration

ResponseContainerCloudIntegration update_cloud_integration(id, body=body)

Update a specific cloud integration

Example

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::&lt;accountid&gt;:role/&lt;rolename&gt;\",       \"externalId\":\"wave123\"     },     \"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)

Parameters

Name Type Description Notes
id str
body CloudIntegration Example Body: <pre>{ &quot;name&quot;:&quot;CloudWatch integration&quot;, &quot;service&quot;:&quot;CLOUDWATCH&quot;, &quot;cloudWatch&quot;:{ &quot;baseCredentials&quot;:{ &quot;roleArn&quot;:&quot;arn:aws:iam::&lt;accountid&gt;:role/&lt;rolename&gt;&quot;, &quot;externalId&quot;:&quot;wave123&quot; }, &quot;metricFilterRegex&quot;:&quot;^aws.(sqs ec2

Return type

ResponseContainerCloudIntegration

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]