Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getPortForwardingConfigurationList

Prev Next

개요

포트포워딩 설정 리스트 조회

설명

포트포워딩 설정 리스트(Port Forwarding Configuration List) 정보를 조회합니다.

요청 파라미터

파라미터 명 필수 여부 타입 제약사항 설명
regionNo No String - 리전 번호
포트포워딩 설정 리스트(Configuation List)가 조회될 리전(Region) 결정 가능
regionNo는 getRegionList 액션을 통해서 획득할 수 있습니다.
serverInstanceNoList No List<String> - 서버 인스턴스 번호 리스트
지정한 서버 인스턴스에 해당하는 포트포워딩 설정 리스트 조회 가능
serverInstanceNo는 getServerInstanceList 액션을 통해 획득 가능
ex) serverInstanceNoList 12345 serverInstanceNoList 23456
portForwardingPublicIpList No List<String> - 포트포워딩 공인 IP 리스트
포트포워딩 공인 IP로 필터링하여 조회 가능
portForwardingPublicIp는 getServerInstanceList 액션을 통해 획득 가능
ex) portForwardingPublicIpList "192.168.0.1" portForwardingPublicIpList "192.168.0.2"

응답 데이터 타입

  • PortForwardingConfigurationList 타입
PortForwardingConfigurationList extends CommonResponse
private Integer totalRows;
private List portForwardingConfigurationList = new ArrayList<>();
PortForwardingRule
private String portForwardingConfigurationNo;
private String portForwardingPublicIp;
private ServerInstanceNoList serverInstanceNoList;

예시

호출

ncloud server getPortForwardingConfigurationList

응답

{
  "getPortForwardingConfigurationListResponse": {
    "requestId": "e2068abf-aa0d-46d6-8e7f-8e86c9805f5e",
    "returnCode": "0",
    "returnMessage": "success",
    "totalRows": 1,
    "portForwardingConfigurationList": [
      {
        "portForwardingConfigurationNo": "***536",
        "portForwardingPublicIp": "***.***.160.56",
        "serverInstanceNoList": [
          "***5058"
        ]
      }
    ]
  }
}
<getPortForwardingConfigurationListResponse>
  <requestId>e2068abf-aa0d-46d6-8e7f-8e86c9805f5e</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <portForwardingConfigurationList>
    <portForwardingConfiguration>
      <portForwardingConfigurationNo>***536</portForwardingConfigurationNo>
      <portForwardingPublicIp>***.***.160.56</portForwardingPublicIp>
      <serverInstanceNoList>
        <serverInstanceNo>***5058</serverInstanceNo>
      </serverInstanceNoList>
    </portForwardingConfiguration>
  </portForwardingConfigurationList>
</getPortForwardingConfigurationListResponse>