All URIs are relative to http://localhost/
| Method | HTTP request | Description |
|---|---|---|
| addChannel | POST api/v2/external_accounts/{external_account_id}/user_attribution/channel.json_api | Create a User Attribution Channel for an external account |
| removeChannel | DELETE api/v2/external_accounts/{external_account_id}/user_attribution/channel.json_api | Remove the User Attribution Channel for an external account |
| showChannel | 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 addChannel(externalAccountId)
Create a User Attribution Channel for an external account
URL will only be returned in this response and will not be accessible again.
// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.UserAttributionsApi;
UserAttributionsApi apiInstance = new UserAttributionsApi();
Integer externalAccountId = 56; // Integer | The ID of the external account to create a User Attribution Channel for
try {
ExternalAccountUserAttributionChannel result = apiInstance.addChannel(externalAccountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserAttributionsApi#addChannel");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| externalAccountId | Integer | The ID of the external account to create a User Attribution Channel for |
ExternalAccountUserAttributionChannel
No authorization required
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
Meta removeChannel(externalAccountId)
Remove the User Attribution Channel for an external account
// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.UserAttributionsApi;
UserAttributionsApi apiInstance = new UserAttributionsApi();
Integer externalAccountId = 56; // Integer | The ID of the external account to remove the User Attribution Channel from
try {
Meta result = apiInstance.removeChannel(externalAccountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserAttributionsApi#removeChannel");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| externalAccountId | Integer | The ID of the external account to remove the User Attribution Channel from |
No authorization required
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
ExternalAccountUserAttributionChannel showChannel(externalAccountId)
Show the User Attribution Channel of an external account
The channel url will not be returned.
// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.UserAttributionsApi;
UserAttributionsApi apiInstance = new UserAttributionsApi();
Integer externalAccountId = 56; // Integer | The ID of the external account to show the user attribution channel for
try {
ExternalAccountUserAttributionChannel result = apiInstance.showChannel(externalAccountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserAttributionsApi#showChannel");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| externalAccountId | Integer | The ID of the external account to show the user attribution channel for |
ExternalAccountUserAttributionChannel
No authorization required
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
ExternalAccount update(externalAccountId, include, cloudtrailName)
Update the user attributions on an external account
// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.UserAttributionsApi;
UserAttributionsApi apiInstance = new UserAttributionsApi();
Integer externalAccountId = 56; // Integer | The ID of the external account to update the user attributions of
String 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.
String cloudtrailName = "cloudtrailName_example"; // String | The name of the cloudetrail associated with the user attribution.
try {
ExternalAccount result = apiInstance.update(externalAccountId, include, cloudtrailName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserAttributionsApi#update");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| externalAccountId | 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] |
| cloudtrailName | String | The name of the cloudetrail associated with the user attribution. | [optional] |
No authorization required
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json