NotifyTargetsOperations
The notify_targets.* operations.
Methods
Section titled “Methods”list()
Section titled “list()”list(owner, options?): Promise<NotifyTarget[]>;List the notify targets an owner's agents route to.
The notify targets the owner keeps. The deployment's include those it starts with.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
owner |
string |
options? |
CallOptions |
Returns
Section titled “Returns”Promise<NotifyTarget[]>
add( owner, input, options?): Promise<NotifyTarget>;Add a webhook for an owner's agents' notices.
Adds a webhook for the owner's agents' notices. Your resolver gives each agent the targets it routes to; an agent routing to another owner's is checked as notify_target.use. One of the owner's own by the same name is a conflict. The URL must pass the deployment's egress check, when it's added and before each notice.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
owner |
string |
input |
NotifyTargetInput |
options? |
CallOptions |
Returns
Section titled “Returns”Promise<NotifyTarget>
remove()
Section titled “remove()”remove( owner, name, options?): Promise<NotifyTarget>;Remove a notify target.
Removes one of the owner's own.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
owner |
string |
name |
string |
options? |
CallOptions |
Returns
Section titled “Returns”Promise<NotifyTarget>