Skip to main content

contacts

Creates, updates, deletes, gets or lists a contacts resource.

Overview​

Namecontacts
TypeResource
Idlinode.managed.contacts

Fields​

The following fields are returned by SELECT queries:

The requested Managed Contact.

NameDatatypeDescription
idintegerRead-only This Contact's unique ID.
namestringThe name of this Contact. (example: John Doe, pattern: [a-zA-Z0-9-_ ]{2,64})
emailstring (email)The address to email this Contact to alert them of issues. (example: john.doe@example.org)
groupstringFilterable A grouping for this Contact. This is for display purposes only. (example: on-call)
phoneobjectInformation about how to reach this Contact by phone.
updatedstring (date-time)Read-only When this Contact was last updated. (example: 2018-01-01T00:01:01)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcontactIdReturns a single managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
listselectpage, page_sizeReturns a paginated list of managed contacts on your account.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
createinsertCreates a managed contact. When investigating or resolving an issue with a service monitor, Akamai Support may reach out to this contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
updatereplacecontactIdUpdates information for a managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
deletedeletecontactIdDeletes a managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

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.

NameDatatypeDescription
contactIdstringThe ID of the contact to access.
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples​

Returns a single managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

SELECT
id,
name,
email,
group,
phone,
updated
FROM linode.managed.contacts
WHERE contactId = '{{ contactId }}' -- required
;

INSERT examples​

Creates a managed contact. When investigating or resolving an issue with a service monitor, Akamai Support may reach out to this contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

INSERT INTO linode.managed.contacts (
email,
group,
name,
phone
)
SELECT
'{{ email }}',
'{{ group }}',
'{{ name }}',
'{{ phone }}'
RETURNING
id,
name,
email,
group,
phone,
updated
;

REPLACE examples​

Updates information for a managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

REPLACE linode.managed.contacts
SET
email = '{{ email }}',
group = '{{ group }}',
name = '{{ name }}',
phone = '{{ phone }}'
WHERE
contactId = '{{ contactId }}' --required
RETURNING
id,
name,
email,
group,
phone,
updated;

DELETE examples​

Deletes a managed contact.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

DELETE FROM linode.managed.contacts
WHERE contactId = '{{ contactId }}' --required
;