Skip to main content

bookmarks

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

Overview

Namebookmarks
TypeResource
Idcloudflare.zero_trust.bookmarks

Fields

The following fields are returned by SELECT queries:

Get a Bookmark application response

NameDatatypeDescription
idstringThe unique identifier for the Bookmark application.
namestringThe name of the Bookmark application. (example: My Website)
app_launcher_visiblebooleanDisplays the application in the App Launcher.
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
domainstringThe domain of the Bookmark application. (example: example.com)
logo_urlstringThe image URL for the logo shown in the App Launcher dashboard. (example: https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg)
updated_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbookmark_id, account_idFetches a single Bookmark application.
listselectaccount_idLists Bookmark applications.
createinsertbookmark_id, account_idCreate a new Bookmark application.
updatereplacebookmark_id, account_idUpdates a configured Bookmark application.
deletedeletebookmark_id, account_idDeletes a Bookmark application.

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
account_idstringThe Cloudflare account ID.
bookmark_idstring

SELECT examples

Fetches a single Bookmark application.

SELECT
id,
name,
app_launcher_visible,
created_at,
domain,
logo_url,
updated_at
FROM cloudflare.zero_trust.bookmarks
WHERE bookmark_id = '{{ bookmark_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Create a new Bookmark application.

INSERT INTO cloudflare.zero_trust.bookmarks (
bookmark_id,
account_id
)
SELECT
'{{ bookmark_id }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Updates a configured Bookmark application.

REPLACE cloudflare.zero_trust.bookmarks
SET
-- No updatable properties
WHERE
bookmark_id = '{{ bookmark_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Deletes a Bookmark application.

DELETE FROM cloudflare.zero_trust.bookmarks
WHERE bookmark_id = '{{ bookmark_id }}' --required
AND account_id = '{{ account_id }}' --required
;