- 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
Overview
Adjust desired capacity
Description
Desired capacity configuration regarding the assigned Auto Scaling Group
Request Parameters
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
autoScalingGroupName | Yes | String | Min : 1, Max : 255 | Enter the name of the auto-scaling group you want to view. |
desiredCapacity | Yes | Integer | Min : 0, Max : 30 | New desired capacity configuration of the assigned group The value must not be smaller than the min size or greater than the max size of previously set properties under Auto Scaling Group. |
Response Data type
- AutoScalingGroupList Type
AutoScalingGroupList extends CommonResponse |
---|
private Integer totalRows; |
private List |
AutoScalingGroup extends BaseObject |
---|
private String autoScalingGroupName; |
private String launchConfigurationName; |
private Integer desiredCapacity; |
private Integer minSize; |
private Integer maxSize; |
private Integer defaultCooldown; |
private List |
private Integer healthCheckGracePeriod; |
private CommonCode healthCheckType; |
private Date createDate; |
private List |
private List |
private List |
LoadBalancerInstanceSummary extends BaseObject |
---|
private String loadBalancerInstanceNo; |
private String loadBalancerName; |
InAutoScalingGroupServerInstance extends BaseObject |
---|
private CommonCode healthStatus; |
private CommonCode lifecycleState; |
private LaunchConfiguration launchConfiguration; |
private String serverInstanceNo; |
private String serverInstanceName; |
SuspendedProcess |
---|
private CommonCode process; |
private String suspensionReason; |
Zone |
---|
private String zoneNo; |
private String zoneName; |
private String zoneCode; |
private String zoneDescription; |
private String regionNo; |
private long totalMemorySize; |
private long totalUsedMemorySize; |
private long totalUsePossibleMemorySize; |
CommonCode |
---|
private String codeKind; |
private String detailCategorizeCode; |
private String code; |
private String codeName; |
private Integer codeOrder; |
private String javaConstantCode; |
LaunchConfiguration |
---|
private String launchConfigurationName; |
private String serverImageProductCode; |
private String serverProductCode; |
private String memberServerImageNo; |
private String loginKeyName; |
private Date createDate; |
private String userData; |
private List |
AccessControlGroup extends BaseObject |
---|
private String accessControlGroupConfigurationNo; |
private String accessControlGroupName; |
private String accessControlGroupDescription; |
private boolean isDefault; |
private Date createDate; |
Examples
Request
ncloud autoscaling setDesiredCapacity --autoScalingGroupName soso02 --desiredCapacity 5
Plain text
Response
{
"setDesiredCapacityResponse": {
"requestId": "e1e84571-50a0-451f-8acb-ff8dce840ecc",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 1,
"autoScalingGroupList": [
{
"autoScalingGroupName": "soso02",
"launchConfigurationName": "test-autoscaling",
"desiredCapacity": 5,
"minSize": 0,
"maxSize": 30,
"defaultCooldown": 12,
"loadBalancerInstanceSummaryList": [],
"healthCheckGracePeriod": 42,
"healthCheckType": {
"code": "SVR",
"codeName": "Server"
},
"createDate": "2017-08-18T14:11:49+0900",
"inAutoScalingGroupServerInstanceList": [
{
"healthStatus": {
"code": "HLTHY",
"codeName": "Healthy (normal)"
},
"lifecycleState": {
"code": "PNDNG",
"codeName": "Pending status"
},
"launchConfiguration": {
"launchConfigurationName": "test-autoscaling",
"serverImageProductCode": "SPSW0LINUX000044",
"serverProductCode": "SPSVRSTAND000003",
"memberServerImageNo": "",
"loginKeyName": "packer-1522153936",
"createDate": "2018-04-05T14:53:16+0900",
"userData": ""
},
"serverInstanceNo": "401886",
"serverInstanceName": "s-3a1ry5007bc39y001"
},
{
"healthStatus": {
"code": "HLTHY",
"codeName": "Healthy (normal)"
},
"lifecycleState": {
"code": "PNDNG",
"codeName": "Pending status"
},
"launchConfiguration": {
"launchConfigurationName": "test-autoscaling",
"serverImageProductCode": "SPSW0LINUX000044",
"serverProductCode": "SPSVRSTAND000003",
"memberServerImageNo": "",
"loginKeyName": "packer-1522153936",
"createDate": "2018-04-05T14:53:16+0900",
"userData": ""
},
"serverInstanceNo": "401889",
"serverInstanceName": "s-3a1ry5007bc39y002"
}
],
"suspendedProcessList": [],
"zoneList": [
{
"zoneNo": "2",
"zoneName": "KR-1",
"zoneCode": "KR-1",
"zoneDescription": "KR-1 zone",
"regionNo": "1"
}
]
}
]
}
}
JSON
<?xml version="1.0" encoding="UTF-8" ?>
<setDesiredCapacityResponse>
<requestId>e1e84571-50a0-451f-8acb-ff8dce840ecc</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<autoScalingGroupList>
<autoScalingGroupName>soso02</autoScalingGroupName>
<launchConfigurationName>test-autoscaling</launchConfigurationName>
<desiredCapacity>5</desiredCapacity>
<minSize>0</minSize>
<maxSize>30</maxSize>
<defaultCooldown>12</defaultCooldown>
<loadBalancerInstanceSummaryList/>
<healthCheckGracePeriod>42</healthCheckGracePeriod>
<healthCheckType>
<code>SVR</code>
<codeName>Server</codeName>
</healthCheckType>
<createDate>2017-08-18T14:11:49+0900</createDate>
<inAutoScalingGroupServerInstanceList>
<healthStatus>
<code>HLTHY</code>
<codeName>Healthy (normal)</codeName>
</healthStatus>
<lifecycleState>
<code>PNDNG</code>
<codeName>Pending status</codeName>
</lifecycleState>
<launchConfiguration>
<launchConfigurationName>test-autoscaling</launchConfigurationName>
<serverImageProductCode>SPSW0LINUX000044</serverImageProductCode>
<serverProductCode>SPSVRSTAND000003</serverProductCode>
<memberServerImageNo></memberServerImageNo>
<loginKeyName>packer-1522153936</loginKeyName>
<createDate>2018-04-05T14:53:16+0900</createDate>
<userData></userData>
</launchConfiguration>
<serverInstanceNo>401886</serverInstanceNo>
<serverInstanceName>s-3a1ry5007bc39y001</serverInstanceName>
</inAutoScalingGroupServerInstanceList>
<inAutoScalingGroupServerInstanceList>
<healthStatus>
<code>HLTHY</code>
<codeName>Healthy (normal)</codeName>
</healthStatus>
<lifecycleState>
<code>PNDNG</code>
<codeName>Pending status</codeName>
</lifecycleState>
<launchConfiguration>
<launchConfigurationName>test-autoscaling</launchConfigurationName>
<serverImageProductCode>SPSW0LINUX000044</serverImageProductCode>
<serverProductCode>SPSVRSTAND000003</serverProductCode>
<memberServerImageNo></memberServerImageNo>
<loginKeyName>packer-1522153936</loginKeyName>
<createDate>2018-04-05T14:53:16+0900</createDate>
<userData></userData>
</launchConfiguration>
<serverInstanceNo>401889</serverInstanceNo>
<serverInstanceName>s-3a1ry5007bc39y002</serverInstanceName>
</inAutoScalingGroupServerInstanceList>
<suspendedProcessList/>
<zoneList>
<zoneNo>2</zoneNo>
<zoneName>KR-1</zoneName>
<zoneCode>KR-1</zoneCode>
<zoneDescription>KR-1 zone</zoneDescription>
<regionNo>1</regionNo>
</zoneList>
</autoScalingGroupList>
</setDesiredCapacityResponse>
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