--- title: "Post Trigger Link Action" slug: "compute-cloudfunctions-posttriggerlinkaction" tags: ["Cloud Functions"] updated: 2026-10-22T10:47:10Z published: 2026-10-22T10:47:10Z canonical: "api-gov.ncloud-docs.com/compute-cloudfunctions-posttriggerlinkaction" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Post Trigger Link Action Classic 환경에서 이용 가능합니다. 액션 연결 없이 생성한 트리거에 액션을 연결합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | POST | /api/v2/triggers/{triggerName}/link-action | ### 요청 헤더 Cloud Funtions API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Functions 요청 헤더](/docs/compute-cloudfunctions#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `triggerName` | String | Required | 트리거 이름 | ### 요청 바디 요청 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `action` | String | Required | 트리거와 연결할 액션 이름 | | `package` | String | Required | 트리거와 연결할 액션의 패키지 이름 | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request POST 'https://cloudfunctions.apigw.gov-ntruss.com/api/v2/triggers/trg2-os/link-action' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Sub Account Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "action": "act-02", "package": "pckg" }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `content` | Object | - | 트리거 연결 액션 정보 | | `content.action` | Object | - | 액션 정보 | | `content.action.name` | String | - | 액션 이름 | | `content.action.path` | String | - | 액션 경로 | | `content.namespace` | String | - | 사용자의 네임스페이스 | | `content.status` | String | - | 트리거와 액션의 연결 상태 | | `content.trigger` | Object | - | 트리거 정보 | | `content.trigger.name` | String | - | 트리거 이름 | | `content.trigger.path` | String | - | 트리거 경로 | ### 응답 상태 코드 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud API 응답 상태 코드](/docs/api-call-lgc-errorhandling)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "content": { "action": { "name": "act02", "path": "oGX7O8Jbeodp/pckg" }, "namespace": "oGX7O8Jbeodp", "status": "active", "trigger": { "name": "trg2-os", "path": "oGX7O8Jbeodp" } } } ```