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.
# load the gem
require 'esp_sdk'
api_instance = ESP::UserAttributionsApi.new
external_account_id = 56 # Integer | The ID of the external account to create a User Attribution Channel for
begin
#Create a User Attribution Channel for an external account
result = api_instance.add_channel(external_account_id)
p result
rescue ESP::ApiError => e
puts "Exception when calling UserAttributionsApi->add_channel: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to create a User Attribution Channel for |
ExternalAccountUserAttributionChannel
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
Meta remove_channel(external_account_id)
Remove the User Attribution Channel for an external account
# load the gem
require 'esp_sdk'
api_instance = ESP::UserAttributionsApi.new
external_account_id = 56 # Integer | The ID of the external account to remove the User Attribution Channel from
begin
#Remove the User Attribution Channel for an external account
result = api_instance.remove_channel(external_account_id)
p result
rescue ESP::ApiError => e
puts "Exception when calling UserAttributionsApi->remove_channel: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to remove the User Attribution Channel from |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
ExternalAccountUserAttributionChannel show_channel(external_account_id)
Show the User Attribution Channel of an external account
The channel url will not be returned.
# load the gem
require 'esp_sdk'
api_instance = ESP::UserAttributionsApi.new
external_account_id = 56 # Integer | The ID of the external account to show the user attribution channel for
begin
#Show the User Attribution Channel of an external account
result = api_instance.show_channel(external_account_id)
p result
rescue ESP::ApiError => e
puts "Exception when calling UserAttributionsApi->show_channel: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to show the user attribution channel for |
ExternalAccountUserAttributionChannel
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
ExternalAccount update(external_account_id, opts)
Update the user attributions on an external account
# load the gem
require 'esp_sdk'
api_instance = ESP::UserAttributionsApi.new
external_account_id = 56 # Integer | The ID of the external account to update the user attributions of
opts = {
include: "include_example", # String | 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.
cloudtrail_name: "cloudtrail_name_example" # String | The name of the cloudetrail associated with the user attribution.
}
begin
#Update the user attributions on an external account
result = api_instance.update(external_account_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling UserAttributionsApi->update: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to update the user attributions of | |
| include | String | 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 | String | The name of the cloudetrail associated with the user attribution. | [optional] |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json