Skip to main content

organizations

Creates, updates, deletes, gets or lists an organizations resource.

Overview

Nameorganizations
TypeResource
Idcloudflare.user.organizations

Fields

The following fields are returned by SELECT queries:

Organization Details response

NameDatatypeDescription
errorsarray
messagesarray
resultobject
successbooleanWhether the API call was successful. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganization_idGets a specific organization the user is associated with.
listselectname, page, per_page, order, direction, match, statusLists organizations the user is associated with.
deletedeleteorganization_idRemoves association to an organization.

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
organization_idstringThe organization ID.
directionstring
matchstring
namestring
orderstring
pagenumber
per_pagenumber
statusstring

SELECT examples

Gets a specific organization the user is associated with.

SELECT
errors,
messages,
result,
success
FROM cloudflare.user.organizations
WHERE organization_id = '{{ organization_id }}' -- required
;

DELETE examples

Removes association to an organization.

DELETE FROM cloudflare.user.organizations
WHERE organization_id = '{{ organization_id }}' --required
;