The FunctionContext has several properties available to tailor responses to the specific request. IXON Cloud has verified the user's credentials calling the Cloud Function, and ensured that correct resources are set on the context. There is no need to verify this in your function.

A Cloud Function can be called from a UI Component placed on Main Pages, Device Pages, Cards and Reports.

PropertyDescriptionAvailable fieldsAvailability 
userThe user logged in to IXON Cloud that calls
the Cloud Function
public_id
name
custom_properties
- Main page
- Device Page
- Report page
- Card
companyThe Company the user has open in the Portalpublic_id
name
custom_properties
permissions
- Main page
- Device Page
- Report page
- Card
agentOptional
If the Cloud Function is called from a device
page with an agent, or a device page with an asset with a linked agent, this property is set.
public_id
name
custom_properties
permissions
- Device Page
- Report page
- Card
assetOptional
If the Cloud Function is called from an asset
page with an asset, this property is set
public_id
name
custom_properties
permissions
- Device Page
- Card
agent_or_assetOptional
If the Cloud Function is called from an agent or
asset page, this property is set. This property
can be used if it is not relevant if the page
is for an agent or asset. It will use the asset public_id when both are set.
public_id
name
custom_properties
permissions
- Device Page
- Card