Preview

Function is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

Function

A function whose code is executed on the AppDirect platform.

This page contains

    Fields

    id: ID!

    Identifier of the function.

    tenant: String!

    Tenant to which the function belongs.

    scope: FunctionScope! PREVIEW

    Scope of the function.

    createdOn: DateTime!

    When the function was created.

    lastModifiedOn: DateTime!

    When the function was last modified.

    createdBy: User PREVIEW

    User who created the function.

    name: String!

    Name for the function.

    variables: [FunctionVariable!]! PREVIEW

    Variables used to parameterize the function's invocation.

    active: Boolean!

    Whether the function is active or not. An inactive function cannot be invoked.

    status: FunctionProvisioningStatus! PREVIEW

    Provisioning status for the function.

    codeFile: File! PREVIEW

    Reference to the function's code file

    lastInvocation: FunctionInvocation PREVIEW

    Result of the last invocation of this function. Null if the function was never invoked.

    runtime: String

    Function runtime platform information

    Parent objects of Function

    AccountFunctionConnection PREVIEW

    Paginated list of functions for an account.

    FunctionConnection PREVIEW

    Paginated list of functions.

    FunctionInvocation PREVIEW

    Output of a function's invocation.

    Mutations for Function

    createAccountFunction PREVIEW

    Create an account-scoped function.

    createFunction PREVIEW

    Create a function.

    retryFunctionProvisioning PREVIEW

    Retry the provisioning of an existing Function. Useful in case an error happened with the first provisioning attempt.

    updateFunction PREVIEW

    Update an existing function.

    Queries for Function

    function PREVIEW

    Function by id.

    functions PREVIEW

    Paginated list of functions for a tenant.