All URIs are relative to https://api.evident.io
| Method | HTTP request | Description |
|---|---|---|
| activate | PATCH /api/v2/custom_signature_definitions/{custom_signature_definition_id}/activate.json_api | Activate a Custom Signature Definition |
| archive | PATCH /api/v2/custom_signature_definitions/{custom_signature_definition_id}/archive.json_api | Archive a Custom Signature Definition |
| create | POST /api/v2/custom_signature_definitions.json_api | Create a(n) Custom Signature Definition |
| delete | DELETE /api/v2/custom_signature_definitions/{id}.json_api | Delete a(n) Custom Signature Definition |
| list | PUT /api/v2/custom_signature_definitions.json_api | Get a list of Custom Signature Definitions |
| show | GET /api/v2/custom_signature_definitions/{id}.json_api | Show a single Custom Signature Definition |
| update | PATCH /api/v2/custom_signature_definitions/{id}.json_api | Update a(n) Custom Signature Definition |
CustomSignatureDefinition activate(custom_signature_definition_id, opts)
Activate a Custom Signature Definition
A successful call to this API marks the definition for activation. The definition will go into the 'validating' state and will be tested before activating. The definition must have a status of editable to be activated.
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
custom_signature_definition_id = 56 # Integer | ID of Custom Signature Definition
opts = {
include: "include_example" # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
}
begin
#Activate a Custom Signature Definition
result = api_instance.activate(custom_signature_definition_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->activate: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| custom_signature_definition_id | Integer | ID of Custom Signature Definition | |
| include | String | Related objects that can be included in the response: custom_signature, results 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
CustomSignatureDefinition archive(custom_signature_definition_id, opts)
Archive a Custom Signature Definition
A successful call to this API archives and returns a specific custom signature definition identified by the id parameter. The definition must have a status of active to be archived.
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
custom_signature_definition_id = 56 # Integer | ID of Custom Signature Definition
opts = {
include: "include_example" # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
}
begin
#Archive a Custom Signature Definition
result = api_instance.archive(custom_signature_definition_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->archive: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| custom_signature_definition_id | Integer | ID of Custom Signature Definition | |
| include | String | Related objects that can be included in the response: custom_signature, results 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
CustomSignatureDefinition create(custom_signature_id, opts)
Create a(n) Custom Signature Definition
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
custom_signature_id = 56 # Integer | ID of the custom signature this definition belongs to
opts = {
include: "include_example" # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
}
begin
#Create a(n) Custom Signature Definition
result = api_instance.create(custom_signature_id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->create: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| custom_signature_id | Integer | ID of the custom signature this definition belongs to | |
| include | String | Related objects that can be included in the response: custom_signature, results 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
Meta delete(id)
Delete a(n) Custom Signature Definition
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
id = 56 # Integer | Custom Signature Definition ID
begin
#Delete a(n) Custom Signature Definition
result = api_instance.delete(id)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->delete: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Custom Signature Definition ID |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
PaginatedCollection list(opts)
Get a list of Custom Signature Definitions
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
opts = {
include: "include_example", # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
filter: {'key' => "filter_example"}, # Hash<String, String> | Filter Params for Searching. Equality Searchable Attributes: [id, language, status, version_number] Searchable Association: [custom_signature] See Searching Lists for more information. See the filter parameter of the association's list action to see what attributes are searchable on each association. See Conditions on Relationships in Searching Lists for more information.
page: "{:number=>1,+:size=>20}" # String | Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page.
}
begin
#Get a list of Custom Signature Definitions
result = api_instance.list(opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->list: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| include | String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information. | [optional] |
| filter | Hash<String, String> | Filter Params for Searching. Equality Searchable Attributes: [id, language, status, version_number] Searchable Association: [custom_signature] See Searching Lists for more information. See the filter parameter of the association's list action to see what attributes are searchable on each association. See Conditions on Relationships in Searching Lists for more information. | [optional] |
| page | String | Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page. | [optional] [default to {:number=>1,+:size=>20}] |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
CustomSignatureDefinition show(id, opts)
Show a single Custom Signature Definition
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
id = 56 # Integer | Custom Signature Definition ID
opts = {
include: "include_example" # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
}
begin
#Show a single Custom Signature Definition
result = api_instance.show(id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->show: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Custom Signature Definition ID | |
| include | String | Related objects that can be included in the response: custom_signature, results 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
CustomSignatureDefinition update(id, opts)
Update a(n) Custom Signature Definition
# load the gem
require 'esp_sdk'
api_instance = ESP::CustomSignatureDefinitionsApi.new
id = 56 # Integer | Custom Signature Definition ID
opts = {
include: "include_example", # String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information.
code: "code_example", # String | The code for this definition
language: "language_example" # String | The language of the definition. Valid values are ruby, javascript
}
begin
#Update a(n) Custom Signature Definition
result = api_instance.update(id, opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling CustomSignatureDefinitionsApi->update: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Custom Signature Definition ID | |
| include | String | Related objects that can be included in the response: custom_signature, results See Including Objects for more information. | [optional] |
| code | String | The code for this definition | [optional] |
| language | String | The language of the definition. Valid values are ruby, javascript | [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