--- title: "UpdatePortPlugin" slug: "management-cloudinsight-updateportplugin" tags: ["Cloud Insight"] updated: 2026-09-17T09:58:00Z published: 2026-09-17T09:58:00Z canonical: "api.ncloud-docs.com/management-cloudinsight-updateportplugin" --- > ## 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. # UpdatePortPlugin Classic/VPC環境で利用できます。 特定のサーバの Port Plugin設定を更新します。Port Plugin設定が既にある場合、上書きされます。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | POST | /cw_server/real/api/plugin/port | ### リクエストヘッダ Cloud Insight APIで共通して使用されるヘッダの詳細は、[Cloud Insightのリクエストヘッダ](/docs/ja/management-cloudinsight#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `portList` | Array | Required | ポート番号リスト | | `instanceNo` | String | Required | サーバインスタンス番号 - [GetAllPortPlugin](/docs/ja/management-cloudinsight-getallportplugin)を参照 - 1個のみ入力可能 | | `type` | String | Optional | サーバタイプ - `vpcserver` (デフォルト) \| `classicserver` \| `cloudhadoop` - `vpcserver`: VPC環境のサーバ - `classicserver`: Classic環境のサーバ - `cloudhadoop`: Cloud Hadoopサーバ | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://cw.apigw.ntruss.com/cw_server/real/api/plugin/port' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --header 'x-ncp-region_code: {Region Code}' \ --header 'x-ncp-dmn_cd: PUB' \ --data '{ "instanceNo": "**********", "portList": [ 80, 8080 ], "type": "vpcserver" }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスステータスコード NAVERクラウドプラットフォームで共通して使用されるレスポンスステータスコードの詳細は、[Cloud Insight APIのレスポンスステータスコード](/docs/ja/management-cloudinsight#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンス成功時、`200 OK`と表示され、特定のサーバの Port Plugin設定が更新されます。