deletePortForwardingRules
- 인쇄
- PDF
deletePortForwardingRules
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
개요
포트 포워딩 룰 삭제
설명
포트 포워딩 룰을 삭제합니다.
가지고 있는 서버에 포트 포워딩 룰을 삭제할 수 있습니다.
요청 파라미터
파라미터 명 | 필수 여부 | 타입 | 제약사항 | 설명 |
---|---|---|---|---|
portForwardingConfigurationNo | Yes | String | - 포트 포워딩 설정 번호 네이버 클라우드 플랫폼에서 포트 포워딩을 위해 생성한 key 값 | |
portForwardingRuleList.serverInstanceNo | Yes | String | 포트 포워딩을 설정한 삭제 대상 서버 인스턴스 번호 | |
portForwardingRuleList.portForwardingExternalPort | Yes | Integer | Min : 1, Max : 65534 | 삭제 대상 외부 포트 |
portForwardingRuleList.portForwardingInternalPort | Yes | Integer | Min : 1, Max : 65534 | - 삭제 대상 내부 포트 다음 포트만 입력 가능: [리눅스: 22 | 윈도우: 3389] |
응답 데이터 타입
- PortForwardingRuleList 타입
PortForwardingRuleList extends CommonResponse |
---|
private Integer totalRows; |
private List |
PortForwardingRule |
---|
private String portForwardingConfigurationNo; |
private String portForwardingPublicIp; |
private Zone zone; |
private Integer portForwardingExternalPort; |
private Integer portForwardingInternalPort; |
private ServerInstance serverInstance; |
예시
호출
ncloud server deletePortForwardingRules --portForwardingConfigurationNo 2187 --portForwardingRuleList "serverInstanceNo=397364,portForwardingExternalPort=4250,portForwardingInternalPort=22"
응답
{
"deletePortForwardingRulesResponse": {
"requestId": "e976d121-4442-4e87-a5ee-1880b79d382e",
"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" ?>
<deletePortForwardingRulesResponse>
<requestId>e976d121-4442-4e87-a5ee-1880b79d382e</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>
</deletePortForwardingRulesResponse>
이 문서가 도움이 되었습니까?