All URIs are relative to https://api.evident.io
| Method | HTTP request | Description |
|---|---|---|
| create | POST /api/v2/external_accounts/amazon.json_api | Create an Amazon External Account |
| show | GET /api/v2/external_accounts/{external_account_id}/amazon.json_api | Show an Amazon External Account |
| update | PATCH /api/v2/external_accounts/{external_account_id}/amazon.json_api | Update an Amazon External Account |
ExternalAccountAmazonIam create(arn, external_id, name, team_id)
Create an Amazon External Account
The related external_account object will be returned with the response.
# load the gem
require 'esp_sdk'
api_instance = ESP::ExternalAccountsAmazonApi.new
arn = "arn_example" # String | Amazon Resource Name for the IAM role
external_id = "external_id_example" # String | External Identifier set on the role
name = "name_example" # String | Name
team_id = 56 # Integer | The ID of the team the external account belongs to
begin
#Create an Amazon External Account
result = api_instance.create(arn, external_id, name, team_id)
p result
rescue ESP::ApiError => e
puts "Exception when calling ExternalAccountsAmazonApi->create: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| arn | String | Amazon Resource Name for the IAM role | |
| external_id | String | External Identifier set on the role | |
| name | String | Name | |
| team_id | Integer | The ID of the team the external account belongs to |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
ExternalAccountAmazonIam show(external_account_id, opts)
Show an Amazon External Account
# load the gem
require 'esp_sdk'
api_instance = ESP::ExternalAccountsAmazonApi.new
external_account_id = 56 # Integer | The ID of the external account to show an Amazon IAM credential for
opts = {
include: "include_example" # String | Related objects that can be included in the response: external_account See Including Objects for more information.
}
begin
#Show an Amazon External Account
result = api_instance.show(external_account_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling ExternalAccountsAmazonApi->show: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to show an Amazon IAM credential for | |
| include | String | Related objects that can be included in the response: external_account See Including Objects for more information. | [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
ExternalAccountAmazonIam update(external_account_id, opts)
Update an Amazon External Account
The related external_account object will be returned with the response.
# load the gem
require 'esp_sdk'
api_instance = ESP::ExternalAccountsAmazonApi.new
external_account_id = 56 # Integer | The ID of the external account to update an Amazon IAM credential of
opts = {
arn: "arn_example", # String | Amazon Resource Name for the IAM role
external_id: "external_id_example", # String | External Identifier set on the role
name: "name_example", # String | Name
team_id: 56 # Integer | The ID of the team the external account belongs to
}
begin
#Update an Amazon External Account
result = api_instance.update(external_account_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling ExternalAccountsAmazonApi->update: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| external_account_id | Integer | The ID of the external account to update an Amazon IAM credential of | |
| arn | String | Amazon Resource Name for the IAM role | [optional] |
| external_id | String | External Identifier set on the role | [optional] |
| name | String | Name | [optional] |
| team_id | Integer | The ID of the team the external account belongs to | [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