Get Trigger

Prev Next

Classic 환경에서 이용 가능합니다.

Cloud Functions 트리거를 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /api/v2/triggers/{triggerName}

요청 헤더

Cloud Funtions API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud Functions 요청 헤더를 참조해 주십시오.

요청 경로 파라미터

요청 경로 파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
triggerName String Required 트리거 이름

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://cloudfunctions.apigw.gov-ntruss.com/api/v2/triggers/trigger000' \
--header 'Content-Type: application/json' \
--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}'

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
content Object - 트리거 정보
content.actions Array - 트리거에 연결된 액션 목록
content.description String - 트리거 설명
content.execOption Object - 트리거 유형별 실행 옵션
content.execOption.key String - 트리거 실행 옵션 이름
content.execOption.value Array - 트리거 실행 옵션 정보: value
content.name String - 트리거 이름
content.resourceId String - 트리거의 리소스 ID
content.type String - 트리거 유형

value

value에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
key String - 트리거 종류
value Integer - 트리거 실행 조건

응답 상태 코드

네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

{
    "content": {
        "actions": [
            "action111"
        ],
        "description": "",
        "execOption": {
            "key": "ncf_triggerOptions",
            "value": [
                {
                    "key": "cron",
                    "value": "*/1 * * * *"
                }
            ]
        },
        "name": "trigger000",
        "resourceId": "1v***",
        "type": "cron"
    }
}