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.