Skip to content

Commit 9e8fdba

Browse files
committed
Adds Documentation for Notifications
This documents the account/notifications endpoint and the Notification object
1 parent 4a69f5d commit 9e8fdba

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

docs/src/data/endpoints/account.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,25 @@ endpoints:
435435
curl -H "Authorization: Bearer $TOKEN" \
436436
-X DELETE \
437437
https://$api_root/$version/account/oauth-clients/$client_id
438+
/account/notifications:
439+
group: Notifications
440+
authenticated: true
441+
description: >
442+
View the collection of Notifications on your account.
443+
methods:
444+
GET:
445+
response: notification
446+
description: >
447+
Returns a collection of important, often time-sensitive items related
448+
to your account, such as "you have an outstanding balance" or "one of
449+
your linodes has a scheduled migration." These are infrequent, but
450+
important when they do arise.
451+
examples:
452+
curl: |
453+
curl -H "Authorization: Bearer $TOKEN" \
454+
https://$api_root/$version/account/notifications
455+
python: |
456+
# coming soon
438457
/account/events:
439458
group: Events
440459
authenticated: true
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Notification
2+
description: >
3+
Notifications are important, often time-sensitive occurrences that require
4+
your attention. These include, but are not limited to, having an outstanding
5+
balance, having scheduled Linode migrations, having important tickets open
6+
on your account, or being impacted by a known outage.
7+
schema:
8+
type:
9+
description: >
10+
The type of notification this is.
11+
type: Enum
12+
subtype: NotificatonType
13+
value: important_ticket
14+
entity:
15+
description: >
16+
Detailed inforrmation about the event's entity, including id, type, label, and URL used to access it.
17+
type:
18+
id:
19+
type: Integer
20+
value: 9302
21+
description: >
22+
The entity's ID that this event is for. This is meaningless without a type.
23+
label:
24+
type: String
25+
value: linode123
26+
description: >
27+
The current label of this object. This will reflect changes in label.
28+
type:
29+
type: String
30+
value: linode
31+
description: >
32+
The type of entity this is related to.
33+
url:
34+
type: String
35+
value: /v4/linode/instances/123
36+
description: >
37+
The URL where you can access the object this event is for. If a relative URL, it is
38+
relative to the domain you retrieved the event from.
39+
when:
40+
description: >
41+
If this notification is of an event that will happen at a fixed, future time,
42+
this is when the named action will be taken. For example, is a Linode is
43+
to be migrated in response to a Xen Security Advisory, this field will
44+
contain around the time the Linode will be taken offline for migration.
45+
type: Datetime
46+
value: null
47+
enums:
48+
NotificatonType:
49+
important_ticket: There is a ticket open on your account that requires your attention.
50+
abuse_ticket: There is an abuse-related ticket on your account that requires your attention.
51+
outage: There is a known outage impacting one or more of your services.
52+
pending_migration: There is a migration queued for one of your Linodes that you must initiate.
53+
scheduled_migration: There is a migration queued for one of your Linodes.
54+
outstanding_balance: You have a balance on your account that must be paid.
55+
xsa: You have a Linode impacted by a Xen Security Advisory which will require migration.
56+
scheduled_reboot: There is a reboot queued for one of your Linodes.

0 commit comments

Comments
 (0)