Post Action
  • PDF

Post Action

  • PDF

개요

액션을 실행합니다.

요청

요청 URL

POST {CLOUD_FUNCTIONS_API_URL}/packages/{packageName}/actions/{actionName}

x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}

Path Variables

파라미터 필수 여부 타입 설명
packageName Yes string - 패키지 이름
package에 속하지 않은 action을 실행하는 경우, packageName에 -를 입력
actionName Yes string 액션 이름

요청 파라미터

파라미터명 필수 여부 타입 제약 사항 설명
platform No string (classic | vpc) - 플랫폼 타입
default classic으로 처리됨
timeout No int MAX 60000 ms 단위로 http call의 timeout을 설정
timeout 까지 액션 실행이 종료되지 않은 경우 
http call과는 별개로 액션은 계속해서 실행되고, 
http 응답에서는 activationId만 확인 가능
default 값은 60000ms

요청 바디

JSON 형식으로, 액션의 런타임 파라미터를 전달할 수 있습니다.

{
    ...
    "name": "Kim",
    "age": 1,
    ...
}

응답

응답 바디

{
    "content": {
        "activationId": "string",
        "duration": "number",
        "start": "timestamp",
        "end": "timestamp",
        "name": "string",
        "namespace": "string",
        "response": {
            "result": {

            },
            "status": "string",
            "success": "boolean"
        },
        "subject": "string"
    }
}
항목 타입 설명 비고
content.activationId string 액션의 activation Id
content.duration int 실행 시간
content.start timestamp 액션 실행 시작 시간
content.end timestamp 액션 실행 종료 시간
content.name string 액션 이름
content.namespace string 사용자의 네임스페이스
content.response 액션 실행 결과 정보
content.subject string 액션을 실행한 사용자 정보

이 문서가 도움이 되었습니까?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.