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
get_managed_contactselectReturns a single Managed Contact.

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

Learn more...

Learn more...
get_managed_contactsselectpage, 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...
post_managed_contactinsertCreates a Managed Contact. A Managed Contact is someone Linode special forces can contact in the course of attempting to resolve an issue with a Managed Service.

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

Learn more...

Learn more...
put_managed_contactreplaceUpdates information about a Managed Contact. This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
delete_managed_contactdeleteDeletes 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
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;

INSERT examples

Creates a Managed Contact. A Managed Contact is someone Linode special forces can contact in the course of attempting to resolve an issue with a Managed Service.

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

Learn more...

Learn more...

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

REPLACE examples

Updates information about 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
data__email = '{{ email }}',
data__group = '{{ group }}',
data__name = '{{ name }}',
data__phone = '{{ phone }}'
WHERE

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;