Post Trigger Link Action
- Print
- PDF
Post Trigger Link Action
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Links a trigger with an action.
Request
Request URL
POST {CLOUD_FUNCTIONS_API_URL}/triggers/{triggerName}/link-action
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Parameter | Required | Type | Description |
---|---|---|---|
triggerName | Yes | string | Name of the trigger |
Request Parameters
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
platform | No | string | (classic | vpc) | Platform type. It is processed as default classic. |
Request Body
{
"action" : "string",
"package" : "string"
}
Property | Required | Type | Limits | Description |
---|---|---|---|---|
action | Yes | string | Name of the action to be linked with the trigger | |
package | Yes | string | Name of the package for the action to be linked with the trigger |
Response
Response Body
{
"content": {
"action": {
"name": "string",
"path": "string"
},
"namespace": "string",
"status": "string",
"trigger": {
"name": "string",
"path": "string"
}
}
}
Property | Type | Description | Note |
---|---|---|---|
content.action.name | string | Name of the action | |
content.action.path | string | Path of the action | |
content.namespace | string | Namespace of the user | |
content.status | string | Status of the link for the trigger and action | |
content.trigger.name | string | Name of the trigger | |
content.trigger.path | string | Path of the trigger |
Was this article helpful?