Gets the trigger details. To get the trigger details, send a GET request to /v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
namespace_id |
string | True | The ID of the namespace to be managed. | |
trigger_name |
string | True | The name of the trigger to be managed. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.functions.get_trigger(namespace_id="aff93af3", trigger_name="trig_name")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.