action digitalocean_functions_get_trigger { label: "Get Trigger" description: "Gets the trigger details. To get the trigger details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`." provider: digitalocean method: GET path: "/v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}" encoding: json input: { type: "object" properties: { namespace_id: { type: "string" } trigger_name: { type: "string" } } required: ["namespace_id", "trigger_name"] additionalProperties: false } output: { type: "object" properties: { trigger: { type: "object" properties: { created_at: { type: "string" description: "UTC time string." } function: { type: "string" description: "Name of function(action) that exists in the given namespace." } is_enabled: { type: "boolean" description: "Indicates weather the trigger is paused or unpaused." } name: { type: "string" description: "The trigger's unique name within the namespace." } namespace: { type: "string" description: "A unique string format of UUID with a prefix fn-." } scheduled_details: { type: "object" description: "Trigger details for SCHEDULED type, where body is optional.\n" required: ["cron"] properties: { body: { type: "object" description: "Optional data to be sent to function while triggering the function." properties: { name: { type: "string" } } } cron: { type: "string" description: "valid cron expression string which is required for SCHEDULED type triggers." } } } scheduled_runs: { type: "object" properties: { last_run_at: { type: "string" description: "Indicates last run time. null value indicates trigger not run yet." } next_run_at: { type: "string" description: "Indicates next run time. null value indicates trigger will not run." } } } type: { type: "string" description: "String which indicates the type of trigger source like SCHEDULED." } updated_at: { type: "string" description: "UTC time string." } } } } } }