Get Trigger's Activation Detail
- 인쇄
- PDF
Get Trigger's Activation Detail
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
Cloud Functions 트리거의 실행 결과 상세 내용를 조회합니다.
요청
요청을 위한 파라미터, 헤더, 바디 정보를 설명합니다.
요청 URL
GET {CLOUD_FUNCTIONS_API_URL}/triggers/{triggerName}/activations/{activationId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
파라미터명 | 타입 | 필수 여부 | 설명 | 제약 사항 |
---|---|---|---|---|
triggerName | String | Y | 트리거 이름 | |
activationId | String | Y | 실행 결과 ID |
응답
응답 바디
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
content.activationId | String | 트리거 실행 결과 ID | |
content.name | String | 트리거 이름 | |
content.duration | Integer | 트리거 실행 시간 (ms) | |
content.start | Integer | 트리거 실행 시작 시간 | Unix timestamp (ms) |
content.end | Integer | 트리거 실행 종료 시간 | Unix timestamp (ms) - 고정 값: 0 |
content.logs | String[] | 트리거 로그 | |
content.namespace | String | 사용자의 네임스페이스 | |
content.subject | String | 액션을 실행한 사용자 정보 | |
content.response | Object | 트리거 실행 결과 정보 | |
content.response.result | Object | 트리거 실행 결과 | |
content.response.status | String | 트리거 상태 | |
content.response.success | Boolean | 트리거 실행 성공 여부 |
오류 코드
HTTP 상태 코드 | 오류 코드 | 오류 메시지 | 설명 |
---|---|---|---|
400 | 80000 | INTERNAL_EXCEPTION | 잘못된 요청 파라미터 |
403 | 80002 | SUB_ACC_NO_PERMISSION | 상세 권한 오류 |
404 | 80501 | TRIGGER_NOT_FOUND | 트리거를 찾을 수 없음 |
404 | 80517 | TRIGGER_ACTIVATION_NOT_FOUND | 실행 이력을 찾을 수 없음 |
예시
요청 예시
curl -X GET "https://cloudfunctions.apigw.fin-ntruss.com/ncf/api/v2/triggers/mytrigger/activations"
-H "x-ncp-iam-access-key: Y0Z9EG0lKoeWAQCSHRtM"
-H "x-ncp-apigw-timestamp: 1546398302273"
-H "x-ncp-apigw-signature-v2: VXjaLhHB2CdowCrqDNYg7w7GR3TYxZzM2eIZ+i3IH0Q="
응답 예시
{
"content": {
"activationId": "03e16f1eb68c45e5a16f1eb68cd5e551",
"duration": 0,
"end": 0,
"logs": [],
"name": "mytrigger",
"namespace": "kHbJQSZDDh3m",
"response": {
"result": {},
"status": "success",
"success": true
},
"start": 1702924096749,
"subject": "kHbJQSZDDh3m"
}
}
이 문서가 도움이 되었습니까?