GetAllPortPlugin
  • PDF

GetAllPortPlugin

  • PDF

Summary

Can be used in a VPC environment.

This API queries the user's port plugin settings.

Request

API URL

URL: https://cw.apigw.ntruss.com/cw_server/real/api/plugin/port
Method: GET

Request header

The request headers specified in common settings are required.

x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
x-ncp-dmn_cd: PUB
x-ncp-region_code: KR

Example

Request example

GET /cw_server/real/api/plugin/port
Host: cw.apigw.ntruss.com
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
x-ncp-dmn_cd: PUB
x-ncp-region_code: KR

Response example

The API returns HTTP code 200 as well as all of the user-defined port plugins if the query is completed without any errors.

[
  {
    "portList": [
      80,
      8080
    ],
    "instanceNo": "1234567"
  },
  {
    "portList": [
      80,
      8080
    ],
    "instanceNo": "7654321"
  }
]

Was this article helpful?