phishings
Creates, updates, deletes, gets or lists a phishings resource.
Overview​
| Name | phishings |
| Type | Resource |
| Id | ovh.ip.phishings |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | Internal ID of the phishing entry |
creation_date | string (date-time) | Date of the event (wire: creationDate) |
ip_on_antiphishing | string (ipv4) | IP address hosting the phishing URL (example: 192.0.2.0) (wire: ipOnAntiphishing) |
state | string | Current state of the phishing (blocked, blocking, unblocked, unblocking) |
url_phishing | string | Phishing URL (wire: urlPhishing) |
Phishing URLs hosted on your IP
| Name | Datatype | Description |
|---|---|---|
id | integer | Internal ID of the phishing entry |
creation_date | string (date-time) | Date of the event (wire: creationDate) |
ip_on_antiphishing | string (ipv4) | IP address hosting the phishing URL (example: 192.0.2.0) (wire: ipOnAntiphishing) |
state | string | Current state of the phishing (blocked, blocking, unblocked, unblocking) |
url_phishing | string | Phishing URL (wire: urlPhishing) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, ip | Get a phishing report. Returns the phishing URL, the address hosting it, the date of the event and its state. | |
list | select | ip | ip_on_antiphishing, state, x_pagination_mode | List phishing reports. Returns the IDs of phishing URLs found on the block, filterable by address or state. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
id | integer | Internal ID of the phishing entry |
ip | string (ip-block) | |
ip_on_antiphishing | string (ipv4) | Filter the value of ipOnAntiphishing property (within or equals) (wire: ipOnAntiphishing) |
state | string | Filter the value of state property (=) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a phishing report. Returns the phishing URL, the address hosting it, the date of the event and its state.
SELECT
id,
creation_date,
ip_on_antiphishing,
state,
url_phishing
FROM ovh.ip.phishings
WHERE id = '{{ id }}' -- required
AND ip = '{{ ip }}' -- required
;
List phishing reports. Returns the IDs of phishing URLs found on the block, filterable by address or state.
SELECT
id,
creation_date,
ip_on_antiphishing,
state,
url_phishing
FROM ovh.ip.phishings
WHERE ip = '{{ ip }}' -- required
AND ip_on_antiphishing = '{{ ip_on_antiphishing }}'
AND state = '{{ state }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;