--- title: "Get Action" slug: "compute-cloudfunctions-v2-getaction" tags: ["Cloud Functions"] updated: 2026-09-17T09:57:45Z published: 2026-09-17T09:57:45Z canonical: "api.ncloud-docs.com/compute-cloudfunctions-v2-getaction" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Action Classic/VPC環境で利用できます。 Cloud Functionsアクションを照会します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | GET | /ncf/api/v2/packages/{packageName}/actions/{actionName} | 参考 シンガポールリージョンと日本リージョンは、VPC環境でのみ利用できます。 ### リクエストヘッダ Cloud Funtions APIで共通して使用されるヘッダの詳細は、[Cloud Functionsのリクエストヘッダ](/docs/ja/compute-cloudfunctions#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `packageName` | String | Required | パッケージ名 - パッケージに属しないアクションの場合、記号の「-」を入力 - <例> `/packages/-/actions/myaction?platform=vpc` | | `actionName` | String | Required | アクションの名前 | ### リクエストクエリパラメータ リクエストクエリパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `platform` | String | Optional | プラットフォームタイプ - `vpc`(デフォルト) \| `classic` | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request GET 'https://cloudfunctions.apigw.ntruss.com/api/v2/packages/package003/actions?platform=classic' \ --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}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 #### Basicアクション Basicアクションのレスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `content` | Object | - | アクション情報 | | `content.custom-options` | Boolean | - | ヘッダオプションの設定 - ウェブアクションタイプのみサポート | | `content.description` | String | - | アクションの説明 | | `content.exec.binary` | Boolean | - | アクションコードのファイルはバイナリかどうか | | `content.exec.code` | String | - | アクションのソースコードまたは Base64-encodedコードファイルのバイナリ | | `content.exec.kind` | String | - | 使用言語 | | `content.exec.main` | String | - | 実行関数 | | `content.limits.memory` | Integer | - | アクションコンテナに割り当てられるメモリの容量 | | `content.limits.timeout` | Integer | - | アクションが実行される最大時間 | | `content.name` | String | - | アクションの名前 | | `content.parameters` | Object | - | アクションの基本パラメータ | | `content.vpc` | Object | - | VPC情報 - `platform`が`vpc`の場合にのみ表示 | | `content.vpc.vpcNo` | Integer | - | 接続された VPC番号 | | `content.vpc.subnetNo` | Integer | - | 接続された Subnet番号 | | `content.path` | String | - | アクションのパス | | `content.raw-http` | Boolean | - | 未加工 HTTPの使用有無 - ウェブアクションタイプのみサポート | | `content.resourceId` | String | - | アクションのリソース ID | | `content.web` | Boolean | - | ウェブアクションの設定 | #### Sequenceアクション Sequenceアクションのレスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `content` | Object | - | アクション情報 | | `content.description` | String | - | アクションの説明 | | `content.exec.components` | String[] | - | 関連付けられたアクションリスト | | `content.exec.kind` | String | - | アクションの種類 - `sequence`(固定値) | | `content.name` | String | - | アクションの名前 | | `content.path` | String | - | アクションのパス | | `content.resourceId` | String | - | アクションのリソース ID | | `content.web` | Boolean | - | ウェブアクションの設定 | ### レスポンスステータスコード Cloud Functions APIで共通して使用されるレスポンスステータスコードの詳細は、[Cloud Functionsのレスポンスステータスコード](/docs/ja/compute-cloudfunctions#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "content": { "custom-options": false, "description": "Create Action", "exec": { "binary": false, "code": "function main(params) { \nlet name = params.name || \"World\";\nlet place = params.place || \"Naver\"; \n return {payload: \"abc\"};\n}", "kind": "nodejs:16", "main": "main" }, "limits": { "memory": 128, "timeout": 60000 }, "name": "action000", "parameters": { "name": "action000" }, "path": "****YBNzcd4Z/package003", "raw-http": false, "resourceId": "Sy***", "web": false } } ```