All URIs are relative to https://api.evident.io
| Method | HTTP request | Description |
|---|---|---|
| add_channel | POST /api/v2/external_accounts/{external_account_id}/user_attribution/channel.json_api | Create a User Attribution Channel for an external account |
| remove_channel | DELETE /api/v2/external_accounts/{external_account_id}/user_attribution/channel.json_api | Remove the User Attribution Channel for an external account |
| show_channel | GET /api/v2/external_accounts/{external_account_id}/user_attribution/channel.json_api | Show the User Attribution Channel of an external account |
| update | PATCH /api/v2/external_accounts/{external_account_id}/user_attribution.json_api | Update the user attributions on an external account |
ExternalAccountUserAttributionChannel add_channel(external_account_id)
Create a User Attribution Channel for an external account
URL will only be returned in this response and will not be accessible again.
from __future__ import print_statement
import time
import esp_sdk
from esp_sdk.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = esp_sdk.UserAttributionsApi()
external_account_id = 56 # int | The ID of the external account to create a User Attribution Channel for
try:
# Create a User Attribution Channel for an external account
api_response = api_instance.add_channel(external_account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserAttributionsApi->add_channel: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | int | The ID of the external account to create a User Attribution Channel for |
ExternalAccountUserAttributionChannel
See https://github.com/EvidentSecurity/esp-sdk-python#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Meta remove_channel(external_account_id)
Remove the User Attribution Channel for an external account
from __future__ import print_statement
import time
import esp_sdk
from esp_sdk.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = esp_sdk.UserAttributionsApi()
external_account_id = 56 # int | The ID of the external account to remove the User Attribution Channel from
try:
# Remove the User Attribution Channel for an external account
api_response = api_instance.remove_channel(external_account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserAttributionsApi->remove_channel: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | int | The ID of the external account to remove the User Attribution Channel from |
See https://github.com/EvidentSecurity/esp-sdk-python#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExternalAccountUserAttributionChannel show_channel(external_account_id)
Show the User Attribution Channel of an external account
The channel url will not be returned.
from __future__ import print_statement
import time
import esp_sdk
from esp_sdk.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = esp_sdk.UserAttributionsApi()
external_account_id = 56 # int | The ID of the external account to show the user attribution channel for
try:
# Show the User Attribution Channel of an external account
api_response = api_instance.show_channel(external_account_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserAttributionsApi->show_channel: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | int | The ID of the external account to show the user attribution channel for |
ExternalAccountUserAttributionChannel
See https://github.com/EvidentSecurity/esp-sdk-python#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExternalAccount update(external_account_id, include=include, cloudtrail_name=cloudtrail_name)
Update the user attributions on an external account
from __future__ import print_statement
import time
import esp_sdk
from esp_sdk.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = esp_sdk.UserAttributionsApi()
external_account_id = 56 # int | The ID of the external account to update the user attributions of
include = 'include_example' # str | Related objects that can be included in the response: organization, sub_organization, team, scan_intervals, disabled_signatures, suppressions, azure_group See Including Objects for more information. (optional)
cloudtrail_name = 'cloudtrail_name_example' # str | The name of the cloudetrail associated with the user attribution. (optional)
try:
# Update the user attributions on an external account
api_response = api_instance.update(external_account_id, include=include, cloudtrail_name=cloudtrail_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserAttributionsApi->update: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | int | The ID of the external account to update the user attributions of | |
| include | str | Related objects that can be included in the response: organization, sub_organization, team, scan_intervals, disabled_signatures, suppressions, azure_group See Including Objects for more information. | [optional] |
| cloudtrail_name | str | The name of the cloudetrail associated with the user attribution. | [optional] |
See https://github.com/EvidentSecurity/esp-sdk-python#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]