- HOME
- CLI overview
- Compute
- Server (VPC)
- Server Overview
- Server
- Login Key
- Placement Group
- getServerInstanceList
- getServerInstanceDetail
- createServerInstances
- startServerInstances
- stopServerInstances
- rebootServerInstances
- terminateServerInstances
- changeServerInstanceSpec
- getRootPassword
- getRootPasswordServerInstanceList
- setProtectServerTermination
- interruptServerInstance
- Server Image
- removeServerImageSharingPermission
- addServerImageSharingPermission
- getServerImageDetail
- getServerImageList
- createServerImageFromSnapshot
- createServerImage
- deleteServerImage
- getMemberServerImageInstanceList
- getMemberServerImageInstanceDetail
- createMemberServerImageInstance
- deleteMemberServerImageInstances
- setMemberServerImageSharingPermission
- addMemberServerImageSharingPermission
- removeMemberServerImageSharingPermission
- Storage
- Snapshot
- Public IP
- Init Script
- Network Interface
- getNetworkInterfaceList
- getNetworkInterfaceDetail
- createNetworkInterface
- deleteNetworkInterface
- attachNetworkInterface
- detachNetworkInterface
- addNetworkInterfaceAccessControlGroup
- removeNetworkInterfaceAccessControlGroup
- assignSecondaryIps
- unassignSecondaryIps
- enableFlowLog
- disableFlowLog
- getFlowLogConfigurationList
- ACG
- Common
- Server
- Server Overview
- getServerImageProductList
- getServerProductList
- getRaidList
- getServerInstanceList
- createServerInstances
- recreateServerInstance
- terminateServerInstances
- changeServerInstanceSpec
- rebootServerInstances
- startServerInstances
- stopServerInstances
- getInitScriptList
- getRootPassword
- getRootPasswordServerInstanceList
- getMemberServerImageList
- createMemberServerImage
- deleteMemberServerImages
- getBlockStorageInstanceList
- createBlockStorageInstance
- deleteBlockStorageInstances
- attachBlockStorageInstance
- detachBlockStorageInstances
- changeBlockStorageVolumeSize
- getBlockStorageSnapshotInstanceList
- createBlockStorageSnapshotInstance
- deleteBlockStorageSnapshotInstances
- getPublicIpInstanceList
- getPublicIpTargetServerInstanceList
- createPublicIpInstance
- associatePublicIpWithServerInstance
- disassociatePublicIpFromServerInstance
- deletePublicIpInstances
- replaceServerInstanceAssociatedWithPublicIp
- getPortForwardingRuleList
- addPortForwardingRules
- deletePortForwardingRules
- getRegionList
- getZoneList
- getLoginKeyList
- createLoginKey
- importLoginKey
- deleteLoginKey
- createNasVolumeInstance
- deleteNasVolumeInstance
- getNasVolumeInstanceList
- changeNasVolumeSize
- getNasVolumeInstanceRatingList
- setNasVolumeAccessControl
- addNasVolumeAccessControl
- removeNasVolumeAccessControl
- getNasVolumeAccessControlRuleList
- getAccessControlGroupList
- getAccessControlGroupServerInstanceList
- getAccessControlRuleList
- createInstanceTags
- deleteInstanceTags
- getInstanceTagList
- getPortForwardingConfigurationList
- setMemberServerImageSharingPermission
- addMemberServerImageSharingPermission
- removeMemberServerImageSharingPermission
- setNasVolumeReturnProtection
- getNasVolumeSnapshotConfigurationHistoryList
- changeNasVolumeSnapshotConfiguration
- getNasVolumeSnapshotList
- createNasVolumeSnapshot
- deleteNasVolumeSnapshot
- restoreNasVolumeWithSnapshot
- setProtectServerTermination
- interruptServerInstance
- Auto Scaling (VPC)
- Auto Scaling Overview
- Launch Configuration
- Auto Scaling Group
- getAutoScalingGroupList
- getAutoScalingGroupDetail
- createAutoScalingGroup
- updateAutoScalingGroup
- deleteAutoScalingGroup
- setDesiredCapacity
- getScheduledActionList
- putScheduledUpdateGroupAction
- deleteScheduledUpdateGroupAction
- getScalingProcessTypeList
- suspendProcesses
- resumeProcesses
- getAutoScalingActivityLogList
- getAutoScalingPolicyList
- getAdjustmentTypeList
- putScalingPolicy
- deleteScalingPolicy
- executePolicy
- Auto Scaling
- Auto Scaling Overview
- getLaunchConfigurationList
- createLaunchConfiguration
- deleteAutoScalingLaunchConfiguration
- getAutoScalingGroupList
- createAutoScalingGroup
- updateAutoScalingGroup
- deleteAutoScalingGroup
- setDesiredCapacity
- terminateServerInstanceInAutoScalingGroup
- setServerInstanceHealth
- getScheduledActionList
- putScheduledUpdateGroupAction
- deleteScheduledAction
- suspendProcesses
- resumeProcesses
- getScalingProcessTypeList
- getAutoScalingActivityLogList
- getAutoScalingConfigurationLogList
- getAutoScalingPolicyList
- putScalingPolicy
- deletePolicy
- executePolicy
- getAdjustmentTypeList
- Server (VPC)
- Storage
- Networking
- VPC
- VPC Overview
- VPC Management
- Subnet Management
- Network ACL
- getNetworkAclList
- getNetworkAclDetail
- createNetworkAcl
- deleteNetworkAcl
- setSubnetNetworkAcl
- getNetworkAclRuleList
- addNetworkAclInboundRule
- addNetworkAclOutboundRule
- removeNetworkAclInboundRule
- removeNetworkAclOutboundRule
- setNetworkAclDescription
- getNetworkAclDenyAllowGroupList
- getNetworkAclDenyAllowGroupDetail
- createNetworkAclDenyAllowGroup
- deleteNetworkAclDenyAllowGroup
- setNetworkAclDenyAllowGroupIpList
- setNetworkAclDenyAllowGroupDescription
- NAT Gateway
- VPC Peering
- Route Table
- Load Balancer (VPC)
- Load Balancer Overview
- Load Balancer
- addLoadBalancerListenerCertificate
- getLoadBalancerInstanceList
- getLoadBalancerInstanceDetail
- createLoadBalancerInstance
- deleteLoadBalancerInstances
- changeLoadBalancerInstanceConfiguration
- setLoadBalancerInstanceSubnet
- setLoadBalancerDescription
- getLoadBalancerListenerList
- createLoadBalancerListener
- deleteLoadBalancerListeners
- changeLoadBalancerListenerConfiguration
- getLoadBalancerRuleList
- removeLoadBalancerListenerCertificate
- getLoadBalancerListenerCertificateList
- Target Group
- Load Balancer
- Load Balancer Overview
- getLoadBalancerInstanceList
- createLoadBalancerInstance
- getLoadBalancerTargetServerInstanceList
- changeLoadBalancerInstanceConfiguration
- getLoadBalancedServerInstanceList
- changeLoadBalancedServerInstances
- deleteLoadBalancerInstances
- getLoadBalancerSslCertificateList
- addLoadBalancerSslCertificate
- deleteLoadBalancerSslCertificate
- VPC
- Database
- Cloud DB for PostgreSQL (VPC)
- Cloud DB for PostgreSQL (on VPC) overview
- addCloudPostgresqlDatabaseList
- addCloudPostgresqlUserList
- changeCloudPostgresqlUserList
- createCloudPostgresqlInstance
- createCloudPostgresqlReadReplicaInstance
- deleteCloudPostgresqlDatabaseList
- deleteCloudPostgresqlInstance
- deleteCloudPostgresqlReadReplicaInstance
- deleteCloudPostgresqlUserList
- exportBackupToObjectStorage
- exportDbServerLogToObjectStorage
- getCloudPostgresqlBackupDetailList
- getCloudPostgresqlBackupList
- getCloudPostgresqlBucketList
- getCloudPostgresqlDatabaseList
- getCloudPostgresqlImageProductList
- getCloudPostgresqlInstanceDetail
- getCloudPostgresqlInstanceList
- getCloudPostgresqlProductList
- getCloudPostgresqlTargetSubnetList
- getCloudPostgresqlTargetVpcList
- getCloudPostgresqlUserList
- getDbServerLogList
- rebootCloudPostgresqlServerInstance
- Cloud DB for MySQL (VPC)
- Cloud DB for MySQL (VPC) overview
- addCloudMysqlDatabaseList
- addCloudMysqlUserList
- changeCloudMysqlServerSpec
- changeCloudMysqlUserList
- createCloudMysqlInstance
- createCloudMysqlRecoveryInstance
- createCloudMysqlSlaveInstance
- deleteCloudMysqlDatabaseList
- deleteCloudMysqlInstance
- deleteCloudMysqlServerInstance
- deleteCloudMysqlUserList
- exportBackupToObjectStorage
- exportDbServerLogToObjectStorage
- getCloudMysqlBackupDetailList
- getCloudMysqlBackupList
- getCloudMysqlDatabaseList
- getCloudMysqlEventHistoryList
- getCloudMysqlImageProductList
- getCloudMysqlInstanceDetail
- getCloudMysqlInstanceList
- getCloudMysqlProductList
- getCloudMysqlRecoveryTime
- getCloudMysqlTargetSubnetList
- getCloudMysqlTargetVpcList
- getCloudMysqlUserList
- getDbServerLogList
- rebootCloudMysqlServerInstance
- Cloud DB for Redis (VPC)
- Cloud DB for Redis (VPC) Overview
- createCloudRedisConfigGroup
- createCloudRedisInstance
- deleteCloudRedisConfigGroup
- deleteCloudRedisInstance
- getCloudRedisBackupDetailList
- getCloudRedisBackupList
- getCloudRedisConfigGroupList
- getCloudRedisInstanceDetail
- getCloudRedisImageProductList
- getCloudRedisInstanceList
- getCloudRedisProductList
- rebootCloudRedisServerInstance
- flushAllCloudRedisServerInstance
- getCloudRedisTargetVpcList
- getCloudRedisTargetSubnetList
- createCloudRedisManualBackup
- deleteCloudRedisManualBackup
- getCloudRedisManualBackupList
- getCloudRedisManualBackupDetailList
- getCloudRedisBucketList
- exportBackupToObjectStorage
- getCloudRedisConfigGroupVersionList
- Cloud DB for MSSQL (VPC)
- Cloud DB for MSSQL (VPC) overview
- createCloudMssqlInstance
- createCloudMssqlSlaveInstance
- deleteCloudMssqlInstance
- deleteCloudMssqlServerInstance
- exportDbServerLogsToObjectStorage
- exportBackupToObjectStorage
- getCloudMssqlLogBackupFileList
- getCloudMssqlBackupDetailList
- getCloudMssqlBackupList
- getCloudMssqlCharacterSetList
- getCloudMssqlConfigGroupList
- getCloudMssqlImageProductList
- getCloudMssqlInstanceDetail
- getCloudMssqlInstanceList
- getCloudMssqlProductList
- getCloudMssqlTargetSubnetList
- getCloudMssqlTargetVpcList
- getCloudMssqlLogFileList
- getCloudMssqlFolderList
- getCloudMssqlBucketList
- rebootCloudMssqlServerInstance
- Cloud DB for MongoDB (VPC)
- Cloud DB for MongoDB (on VPC) overview
- addCloudMongoDbUserList
- changeCloudMongoDbConfigCount
- changeCloudMongoDbMongosCount
- changeCloudMongoDbSecondaryCount
- changeCloudMongoDbShardCount
- changeCloudMongoDbUserList
- createCloudMongoDbInstance
- deleteCloudMongoDbInstance
- deleteCloudMongoDbUserList
- getCloudMongoDbBucketList
- exportBackupToObjectStorage
- getCloudMongoDbBackupDetailList
- getCloudMongoDbBackupList
- getCloudMongoDbImageProductList
- getCloudMongoDbInstanceDetail
- getCloudMongoDbInstanceList
- getCloudMongoDbProductList
- getCloudMongoDbTargetSubnetList
- getCloudMongoDbTargetVpcList
- getCloudMongoDbUserList
- rebootCloudMongoDbServerInstance
- getDbServerLogList
- exportDbServerLogToObjectStorage
- Cloud DB for PostgreSQL (VPC)
- Big Data & Analytics
- Cloud Hadoop (VPC)
- Cloud Hadoop (VPC) Overview
- backupClusterConfiguration
- changeCloudHadoopNodeCount
- changeCloudHadoopNodeSpec
- createCloudHadoopInstance
- createCloudHadoopNotebookInstance
- deleteCloudHadoopInstance
- deleteCloudHadoopNotebookInstance
- getCloudHadoopAddOnList
- getCloudHadoopBucketList
- getCloudHadoopClusterTypeList
- getCloudHadoopImageProductList
- getCloudHadoopInstanceDetail
- getCloudHadoopInstanceList
- getCloudHadoopLoginKeyList
- getCloudHadoopMysqlInstanceList
- getCloudHadoopMysqlUserList
- getCloudHadoopNotebookBucketList
- getCloudHadoopNotebookComponentList
- getCloudHadoopNotebookImageProductList
- getCloudHadoopNotebookInstanceDetail
- getCloudHadoopNotebookInstanceList
- getCloudHadoopNotebookProductList
- getCloudHadoopObjectList
- getCloudHadoopProductList
- getCloudHadoopTargetSubnetList
- getCloudHadoopTargetVpcList
- saveExternalHiveMetaStore
- testConnectExternalHiveMetaStore
- Cloud Hadoop (VPC)
- Content Delivery
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Summary
Searches the list of subnets.
Requests
Request parameters
Parameter Name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code You can decide the region to get the subnet list from Region code can be obtained through the getRegionList action Default: selects the first region of the getRegionList search results | |
subnetNoList.N | No | List<String> | - List of the subnet numbers You can search by filtering with a subnet number Subnet No. can be obtained through the getSubnetList action ex) --subnetNoList 1234 2345 | |
subnetName | No | String | - Subnet name You can search by filtering with a subnet name | |
subnet | No | String | - Subnet IP address range You can search by filtering with a subnet IP address range ex) --subnet 10.0.0.0/24 | |
subnetTypeCode | No | String | - Subnet type code You can search by filtering with a subnet type code Options: PUBLIC | |
usageTypeCode | No | String | - Purpose type code You can search by filtering with a purpose type code Options: GEN (general) | |
networkAclNo | No | String | - Network ACL number You can search by filtering with Network ACL number applied to the subnet networkAcl No. can be obtained through the getNetworkAclList action | |
pageNo | No | Integer | - Page number of the paged results The results can be paged using page No. and page size | |
pageSize | Conditional | Integer | - Size of each page to be displayed when paging The results can be paged using page No. and page size Entering the information is when page No. is entered | |
subnetStatusCode | No | String | - Subnet status code You can search by filtering with a subnet status code Options: INIT | |
vpcNo | No | String | -VPC No. You can search by filtering with a VPC number VPC No. can be obtained through the getVpcList action | |
zoneCode | No | String | - Zone code You can decide the zone to get the subnet list from Zone code can be obtained through the getZoneList action | |
responseFormatType | No | String | - Format type of the response result Options: xml | json Default: xml |
Response
Response data type
- Subnet list type
SubnetList extends CommonResponse |
---|
private Integer totalRows; |
private List |
Subnet |
---|
private String subnetNo; |
private String vpcNo; |
private String zoneCode; |
private String subnetName; |
private String subnet; |
private CommonCode subnetStatus; |
private Date createDate; |
private CommonCode subnetType; |
private CommonCode usageType; |
private String networkAclNo; |
Examples
Request examples
ncloud vpc getSubnetList --regionCode KR --subnetNoList ***43 --subnetName test-*** --subnet ***.***.1.0 --subnetTypeCode PUBLIC --usageTypeCode GEN --networkAclNo ***31 --subnetStatusCode RUN --vpcNo ***04 --zoneCode KR-1
Plain text
Response examples
<getSubnetListResponse>
<requestId>4a7ca579-1b43-439b-97f7-c423a37bc3d9</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<subnetList>
<subnet>
<subnetNo>***43</subnetNo>
<vpcNo>***04</vpcNo>
<zoneCode>KR-1</zoneCode>
<subnetName>test-***</subnetName>
<subnet>***.***.1.0/24</subnet>
<subnetStatus>
<code>RUN</code>
<codeName>run</codeName>
</subnetStatus>
<createDate>2020-05-04T11:49:52+0900</createDate>
<subnetType>
<code>PUBLIC</code>
<codeName>Public</codeName>
</subnetType>
<usageType>
<code>GEN</code>
<codeName>General</codeName>
</usageType>
<networkAclNo>***31</networkAclNo>
</subnet>
</subnetList>
</getSubnetListResponse>
XML
Was this article helpful?
Thank you for your feedback! Our team will get back to you
How can we improve this article?
Your feedback
Comment
Comment (Optional)
Character limit : 500
Please enter your comment
Email (Optional)
Email
Please enter a valid email