getPortForwardingRuleList
    • PDF

    getPortForwardingRuleList

    • PDF

    기사 요약

    개요

    포트 포워딩 룰 리스트 조회

    설명

    포트 포워딩 룰 리스트 정보를 조회합니다.
    최초에 서버를 생성하면 계정당 하나씩 포트 포워딩용 공인 IP가 부여됩니다.

    요청 파라미터

    파라미터 명필수 여부타입제약사항설명
    regionNoNoString입력 가능한 상태는 getRegionList 액션을 통해 획득 가능
    zoneNoNoStringgetZoneList 액션을 통해 획득 가능
    Default: 해당 리전의 첫번째 ZONE을 선택

    응답 데이터 타입

    • PortForwardingRuleList 타입
    PortForwardingRuleList extends CommonResponse
    private Integer totalRows;
    private List portForwardingRuleList = new ArrayList();
    PortForwardingRule
    private String portForwardingConfigurationNo;
    private String portForwardingPublicIp;
    private Zone zone;
    private Integer portForwardingExternalPort;
    private Integer portForwardingInternalPort;
    private ServerInstance serverInstance;

    예시

    호출

    ncloud server getPortForwardingRuleList --regionNo 1
    

    응답

    {
      "getPortForwardingRuleListResponse": {
        "requestId": "67ca10f9-760e-4d83-b25a-04fad1ddaef3",
        "returnCode": "0",
        "returnMessage": "success",
        "totalRows": 1,
        "portForwardingRuleList": [
          {
            "portForwardingConfigurationNo": "2187",
            "portForwardingPublicIp": "192.168.120.111",
            "zone": {
              "zoneNo": "2",
              "zoneName": "KR-1",
              "zoneDescription": "KR-1 zone"
            },
            "portForwardingExternalPort": 4250,
            "portForwardingInternalPort": 22,
            "serverInstance": {
              "serverInstanceNo": "397364",
              "serverName": "ncloud-mktest3",
              "serverDescription": "",
              "cpuCount": 2,
              "memorySize": 2147483648,
              "baseBlockStorageSize": 53687091200,
              "platformType": {
                "code": "LNX64",
                "codeName": "Linux 64 Bit"
              },
              "loginKeyName": "ysw",
              "isFeeChargingMonitoring": false,
              "publicIp": "",
              "privateIp": "10.113.245.164",
              "serverImageName": "centos-7.3-64",
              "serverInstanceStatus": {
                "code": "NSTOP",
                "codeName": "Server normal stopped state"
              },
              "serverInstanceOperation": {
                "code": "NULL",
                "codeName": "Server NULL OP"
              },
              "serverInstanceStatusName": "stopped",
              "createDate": "2018-02-23T15:44:59+0900",
              "uptime": "2018-02-23T15:57:56+0900",
              "serverImageProductCode": "SPSW0LINUX000046",
              "serverProductCode": "SPSVRSTAND000049",
              "isProtectServerTermination": false,
              "portForwardingPublicIp": "192.168.120.111",
              "portForwardingExternalPort": 4250,
              "portForwardingInternalPort": 22,
              "zone": {
                "zoneNo": "2",
                "zoneName": "KR-1",
                "zoneDescription": "KR-1 zone"
              },
              "region": {
                "regionNo": "1",
                "regionCode": "KR",
                "regionName": "Korea"
              },
              "baseBlockStorageDiskType": {
                "code": "NET",
                "codeName": "Network Storage"
              },
              "baseBlockStroageDiskDetailType": {
                "code": "HDD",
                "codeName": "HDD"
              },
              "userData": "",
              "accessControlGroupList": [
                {
                  "accessControlGroupConfigurationNo": "1038",
                  "accessControlGroupName": "ncloud-default-acg",
                  "accessControlGroupDescription": "Default AccessControlGroup",
                  "isDefault": true,
                  "createDate": "2013-12-03T10:37:39+0900"
                }
              ]
            }
          }
        ]
      }
    }
    
    <?xml version="1.0" encoding="UTF-8"?>
    <getPortForwardingRuleListResponse>
      <requestId>b07afaee-89c9-41bd-883f-689410998f4d</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <portForwardingRuleList>
        <portForwardingRule>
          <portForwardingConfigurationNo>2187</portForwardingConfigurationNo>
          <portForwardingPublicIp>192.168.120.111</portForwardingPublicIp>
          <zone>
            <zoneNo>2</zoneNo>
            <zoneName>KR-1</zoneName>
            <zoneDescription>KR-1 zone</zoneDescription>
          </zone>
          <portForwardingExternalPort>4250</portForwardingExternalPort>
          <portForwardingInternalPort>22</portForwardingInternalPort>
          <serverInstance>
            <serverInstanceNo>397364</serverInstanceNo>
            <serverName>ncloud-mktest3</serverName>
            <serverDescription></serverDescription>
            <cpuCount>2</cpuCount>
            <memorySize>2147483648</memorySize>
            <baseBlockStorageSize>53687091200</baseBlockStorageSize>
            <platformType>
              <code>LNX64</code>
              <codeName>Linux 64 Bit</codeName>
            </platformType>
            <loginKeyName>ysw</loginKeyName>
            <isFeeChargingMonitoring>false</isFeeChargingMonitoring>
            <publicIp></publicIp>
            <privateIp>10.113.245.164</privateIp>
            <serverImageName>centos-7.3-64</serverImageName>
            <serverInstanceStatus>
              <code>NSTOP</code>
              <codeName>Server normal stopped state</codeName>
            </serverInstanceStatus>
            <serverInstanceOperation>
              <code>NULL</code>
              <codeName>Server NULL OP</codeName>
            </serverInstanceOperation>
            <serverInstanceStatusName>stopped</serverInstanceStatusName>
            <createDate>2018-02-23T15:44:59+0900</createDate>
            <uptime>2018-02-23T15:57:56+0900</uptime>
            <serverImageProductCode>SPSW0LINUX000046</serverImageProductCode>
            <serverProductCode>SPSVRSTAND000049</serverProductCode>
            <isProtectServerTermination>false</isProtectServerTermination>
            <portForwardingPublicIp>192.168.120.111</portForwardingPublicIp>
            <portForwardingExternalPort>4250</portForwardingExternalPort>
            <portForwardingInternalPort>22</portForwardingInternalPort>
            <zone>
              <zoneNo>2</zoneNo>
              <zoneName>KR-1</zoneName>
              <zoneDescription>KR-1 zone</zoneDescription>
            </zone>
            <region>
              <regionNo>1</regionNo>
              <regionCode>KR</regionCode>
              <regionName>Korea</regionName>
            </region>
            <baseBlockStorageDiskType>
              <code>NET</code>
              <codeName>Network Storage</codeName>
            </baseBlockStorageDiskType>
            <baseBlockStroageDiskDetailType>
              <code>HDD</code>
              <codeName>HDD</codeName>
            </baseBlockStroageDiskDetailType>
            <userData></userData>
            <accessControlGroupList>
              <accessControlGroupConfigurationNo>1038</accessControlGroupConfigurationNo>
              <accessControlGroupName>ncloud-default-acg</accessControlGroupName>
              <accessControlGroupDescription>Default AccessControlGroup</accessControlGroupDescription>
              <isDefault>true</isDefault>
              <createDate>2013-12-03T10:37:39+0900</createDate>
            </accessControlGroupList>
          </serverInstance>
        </portForwardingRule>
      </portForwardingRuleList>
    </getPortForwardingRuleListResponse>
    

    이 문서가 도움이 되었습니까?

    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.