history_attachments
Creates, updates, deletes, gets or lists a history_attachments resource.
Overview​
| Name | history_attachments |
| Type | Resource |
| Id | ovh.notification.history_attachments |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
name | string | Name of the attachment |
content_type | string | Content type of the attachment (wire: contentType) |
size_bytes | integer | Size of the attachment in bytes (wire: sizeBytes) |
url | string | URL to use to download the attachment |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | attachment_name, notification_id | Get a notification attachment |
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"}}) |
attachment_name | string | Attachment name (wire: attachmentName) |
notification_id | string (uuid) | Notification ID (wire: notificationId) |
SELECT examples​
- get
Get a notification attachment
SELECT
name,
content_type,
size_bytes,
url
FROM ovh.notification.history_attachments
WHERE attachment_name = '{{ attachment_name }}' -- required
AND notification_id = '{{ notification_id }}' -- required
;