API Description

<p><strong>1.&nbsp;AttachDiskToInstance</strong></p> <p><strong>Interface Description</strong></p> <p>&nbsp;Attach EBS to ECS instance.&nbsp; Attach EBS needs to get the token by logging in for authentication. Please take note that when calling the interface : :</p> <p>(1)the Status of EBS must be ToAttach (to be attached)</p> <p>(2)the EBS type must be correspondent to ECS type, before calling this interface, you can query the information of the current EBS by calling ListDisks interface.&nbsp;</p> <p>Before calling this interface, you can query all the ECS that attached by calling ListAbleAttachInstance interface. The interface is asynchronous execution. It will take a few moments for the interface to call return information successfully.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>EbsId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id to be attached.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>ECS instance Id attached on EBS.&nbsp; Query all the ECS instance that can be attached by calling ListAbleAttachInstance interface</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>JobId</p> </td> <td> <p>String</p> </td> <td> <p>Task Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>2.&nbsp;CheckQuota</strong></p> <p><strong>Interface Description</strong></p> <p>Quota check during upgrading process<br /> Contents:</p> <p>(1)The expanded disk size cannot be smaller than the original disk size.<br /> (2)Single instance disk size quota<br /> (3)Single disk size quota</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Unexpanded EBS ID</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Size</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>Expanded EBS Size</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>3.&nbsp;CreateDisk</strong></p> <p><strong>Interface Description</strong></p> <p>Create one or more paid digital EBS. The type of EBS can be queried by ListAllEbsTypes. Create EBS needs to get the token by logging in for authentication.&nbsp; authentication. Creating EBS will incurred cost, thus it is recommended to understand the EBS pricing model in advance.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Size</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>Memory of EBS, unit: GB&nbsp;&nbsp; Must be filled</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>DisplayName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS display name in portal interface.&nbsp; The longest length of EBS display name is 20, if exceed, then it will throw ParameterValidateException exception.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>EbsType</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS product specification.&nbsp; Each EBS type in the portal has corresponding EBS product specification, for example, the SSD cloud drive corresponds to the product specification name ebs.s1.&nbsp; Query EBS product specification by ListAllEbsTypes interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Count</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>Amount of EBS need to be created&nbsp; 1 by default.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Tags</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS tag.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Region Id EBS belongs to.&nbsp; Must be filled RegionId determines where the EBS user created located, such as Huadong 1.&nbsp; Can Query region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Available zone Id EBS belongs to.&nbsp;&nbsp; Must be filled There may be more than one free area under a region, and the available zone Id determines the specific free area of the EBS distribution created by the user, such as available zone A.&nbsp; Can query region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>SnapshotId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Created snapshot used in EBS.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>ECS instance Id.&nbsp;&nbsp; Must be filled ECS instance Id determines which ECS instance the EBS created will be attached.&nbsp; Can list region information by ListInstances interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>ChargeType</p> </td> <td> <p>ChargeType</p> </td> <td> <p>Charge type of EBS.&nbsp;</p> <p>Charge type is listed as follows:&nbsp;&nbsp;&nbsp; Hour:&nbsp; Charged by hourly Usage:&nbsp; Charged by quantity PreUsage: Pre-paid by quantity Monthly: Paid by monthly Free:&nbsp; Free of charge Annual:&nbsp; Paid by year Charge mode is determined to be hour to create EBS recently..</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product code of EBS.&nbsp; Product code of EBS is fixed as Ebs.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderId</p> </td> <td> <p>String</p> </td> <td> <p>Oder Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Status</p> </td> <td> <p>OrderStatus</p> </td> <td> <p>Order Status</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product code of EBS.&nbsp; Product code of EBS is fixed as Ebs.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>4.&nbsp;CreateDiskNew</strong></p> <p><strong>Interface Description</strong></p> <p>Create one or more paid digital EBS.</p> <p>EBS types can be queried by interface ListAllEbsTypes.<br /> Create EBS needs to get the token by logging in for authentication.Request Parameter</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Size</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Size, unit: GB</p> <p>Required field</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>DisplayName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS Display name on Ping An Cloud console</p> <p>Maximum EBS display name is 20 characters. If the maximum length is exceeded, a ParameterValidate exception will be thrown.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>EbsType</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Product Specification.</p> <p>Each type of cloud disk in the portal corresponds to the cloud disk product specification, such as the product specification ebs.s1 corresponding to the SSD type cloud disk.</p> <p>The cloud disk product specifications can be queried by the interface of ListAllEbsTypes.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Count</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>需要创建云磁盘数量。<br /> 默认情况下为1。</p> <p>EBS numbers need to be created.</p> <p>The Defalut number is 1</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Tags</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS Tags</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Region ID</p> <p>Required Field</p> <p>Region ID determines location of created EBS by users, e.g. South China 1.</p> <p>Region ID can be queried by interface ListRegions</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Avialable Zone ID of EBS<br /> Required Field</p> <p>A Region may have various Available Zone. Available Zone ID determines the specific Availability Zone of the cloud disk distribution created by the user, e.g. Availability Zone A.</p> <p>Available Zone ID can be queried by interface ListZones</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>SnapshotId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Snapshots of created EBS</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Attached ECS ID of EBS</p> <p>Required field</p> <p>The ECS instance Id determines which instance the EBS can be attached可以通过ListAbleAttachInstance</p> <p>Instance ID can be queried by interface ListAbleAttachInstance</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>ChargeType</p> </td> <td> <p>ChargeType</p> </td> <td> <p>Billing method of EBS:<br /> Hour/Usage/PreUsage/ Monthly/Free/Annual</p> <p>Currently EBS billing method is by hour.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product Code</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderId</p> </td> <td> <p>String</p> </td> <td> <p>Order Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Status</p> </td> <td> <p>OrderStatus</p> </td> <td> <p>Order status</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product Code</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>5.&nbsp;DeleteDisk</strong></p> <p><strong>Interface Description</strong></p> <p>Release paid data EBS. The type of EBS can be queried by ListAllEbsTypes.&nbsp;&nbsp; Release EBS needs to get the token by logging in for authentication. The EBS could be released only when the Status is one of the follows, or it will throw exception: 1, Available (availabe) 2, CreateFailed (create failed) 3, DestroyFailed (destroy failed) 4, ToAttach (to be attached). Currently deleting a EBS will delete the corresponding snapshots of the EBS (including manual snapshots and automatic snapshots), this feature can be turned off by setting needDeleteSnapshot=no. The interface is asynchronous execute, it will take a few moments for the interface to call return information successfully.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id need to be released.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>NeedDeleteSnapshot</p> </td> <td> <p>boolean</p> </td> <td> <p>no</p> </td> <td> <p>Whether to delete snapshots synchronously.&nbsp; When the value is yes, which means delete snapshots synchronously (including manual and automatic snapshot) When the value is no, which means do not delete snapshot synchronously.&nbsp; The value defaulted as yes.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>JobId</p> </td> <td> <p>String</p> </td> <td> <p>Job Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>6.&nbsp;DetachDisk</strong></p> <p><strong>Interface Description</strong></p> <p>Detach paid EBS from ECS. The type of EBS can be queried by ListAllEbsTypes. Detach EBS need to get the token by logging in for authentication. Please take note of the following when using this interface:</p> <p>(1)EnableFlag properties in EBS must be yes;</p> <p>(2)EBS must have been attached to ECS instance;</p> <p>(3)Status of EBS must be Available or DestroyFailed; 4,</p> <p>The charge mode of EBS cannot be set to Monthly (paid monthly);</p> <p>information above can be queried in EBS by ListDisks interface. The interface is asynchronous execution, it will take a few moments for the interface to return call information successfully.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>EbsId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id need to be unloaded.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>JobId</p> </td> <td> <p>String</p> </td> <td> <p>Job Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>7.&nbsp;GetDisk</strong></p> <p><strong>Interface Description</strong></p> <p>Get detailed EBS information by EBS Id.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBSId.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>DiskDetail</p> </td> <td> <p>EbsDetailBean</p> </td> <td> <p>Details of EBS.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>8.&nbsp;ListAbleAttachInstance</strong></p> <p><strong>Interface Description</strong></p> <p>List all the ECS instance can be attached by EBS. The interface is usually called before calling AttachDiskToInstance interface, used to ensure the validation of ECS type Status attached to the EBS.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBSId to be attached.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Name</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Name of ECS instance.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Region Id to be attached belongs to EBS.&nbsp; RegionId determines where EBS located, such as Huadong 1.&nbsp; Can list region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Availabe zone Id to be attached belonged to EBS.&nbsp; There may be more than one available zone under a region, and the available zone Id determines the specific available zone of the EBS distribution created by the user, such as available zone A.&nbsp; Can query region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PodId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>High available zone Id to be attached belonged to EBS.&nbsp; There may be more than one high available zone under a region, and the high available zone Id determines the specific available zone of the EBS distribution created by the user, such as Shenzhen C1.&nbsp; Can list region information by ListPods interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageNumber</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page number.&nbsp; Used in page query.&nbsp; The default value is 1.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageSize</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page size. Used in page query.&nbsp; The default value is 10.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderBy</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order by keywords.&nbsp; When querying, specify by which keyword to sort the returned data.&nbsp; Default sort order is by time</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderType</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order type. By default, sorting by DESC is used in conjunction with sorting by keywords, indicating whether sorting is by ascending or descending order. The values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASC: ascending order&nbsp;&nbsp; DESC: descending order</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceCategory</p> </td> <td> <p>InstanceCategory[]</p> </td> <td> <p>no</p> </td> <td> <p>ECS classification array, the default values are Instance Category.ECS and InstanceCategory. Caas&nbsp; ECS classification, and the values are:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ecs:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;Independent ECS&nbsp;&nbsp;&nbsp; Caas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster ECS&nbsp;&nbsp;&nbsp;&nbsp; Dedicated;&nbsp; Dedicated ECS&nbsp;&nbsp;&nbsp; AutoScaling: elastic scaling&nbsp;&nbsp;&nbsp; GBD:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bigdata ECS&nbsp;&nbsp;&nbsp;&nbsp; FORTRESS:&nbsp;&nbsp; Fortress machine</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>EbsTypeId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS product type Id.&nbsp; Each EBS type in the portal has corresponding EBS product specification, for example, the SSD cloud drive corresponds to the product &nbsp;specification name ebs.s1.&nbsp; Can list region information by ListTypes interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Instances</p> </td> <td> <p>List&lt;InstanceBean&gt;</p> </td> <td> <p>ECS instance information list</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>TotalCount</p> </td> <td> <p>Long</p> </td> <td> <p>Total amount of ECS host machines</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>9.&nbsp;ListAbleRelateDisks</strong></p> <p><strong>Interface Description</strong></p> <p>Query the list of all EBS that can be associated with the snapshot policy. Please take note that when calling interface: 1. the data returned by this interface should be page data, the page value in default is 1, the amount of data displayed per page is 10.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Region Id EBS belongs to. Region Id determines where the ECS locates, such as Huadong 1. Can list region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>IntervalType</p> </td> <td> <p>IntervalType</p> </td> <td> <p>yes</p> </td> <td> <p>Periods under snapshot policy.&nbsp; The values are as follows.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MANUAL: Manual&nbsp;&nbsp; HOURLY: Hourly&nbsp;&nbsp;&nbsp;&nbsp; DAILY:&nbsp; Daily&nbsp;&nbsp;&nbsp; WEEKLY: Weekly&nbsp;&nbsp;&nbsp; MONTHLY: monthly</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Available zone Id EBS belongs to.&nbsp; There may be more than one available zone under a region, and the available zone Id determines the specific available zone of the EBS distribution created by the user, such as available zone A.&nbsp; Can list region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Name</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Name of EBS</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Name of ECS.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageNumber</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page number.&nbsp; Used in page query.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageSize</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page size&nbsp; Used in page query.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderBy</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order by keywords.&nbsp; When querying, specify by which keyword to sort the returned data.&nbsp; Default sort order is by time</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderType</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order type. &nbsp;By default, sorting by DESC is used in conjunction with sorting keywords, indicating whether sorting is in ascending or descending order. The values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASC: ascending order&nbsp;&nbsp; DESC: descending order</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>DiskType</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS type. Only the EBS attached by the corresponding ECS in the array will be queried.&nbsp; EBS type, the values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ROOT: system disk&nbsp;&nbsp;&nbsp; DATADISK: data disk</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceCategory</p> </td> <td> <p>InstanceCategory[]</p> </td> <td> <p>no</p> </td> <td> <p>The ECS classification array column, with the default values of InstanceCategory.Ecs and InstanceCategory.Caas Only the EBS attached by the corresponding ECS in the array column will be queried.&nbsp; ECS type, the values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ecs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Independent ECS&nbsp;&nbsp;&nbsp; Caas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster ECS&nbsp;&nbsp;&nbsp;&nbsp; Dedicated;&nbsp; Dedicated ECS&nbsp;&nbsp;&nbsp; AutoScaling: elastic scaling&nbsp;&nbsp;&nbsp; GBD:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bigdata ECS&nbsp;&nbsp;&nbsp;&nbsp; FORTRESS:&nbsp;&nbsp; Fortress machine</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Disks</p> </td> <td> <p>List&lt;EbsBean&gt;</p> </td> <td> <p>Information list of EBS queried</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>TotalCount</p> </td> <td> <p>Long</p> </td> <td> <p>Total amount of EBS queried.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>10.&nbsp;ListAllEbsTypes</strong></p> <p><strong>Interface Description</strong></p> <p>List the type of EBS product types.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Region Id EBS belongs to.&nbsp; Region Id determines where the ECS locates, such as Huadong 1.&nbsp; Can list region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Available zone Id EBS belongs to.&nbsp; There may be more than one available zone under a region, and the available zone Id determines the specific available zone of the EBS distribution created by the user, such as available zone A.&nbsp; Can list region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>EbsTypes</p> </td> <td> <p>List&lt;EbsTypeBean&gt;</p> </td> <td> <p>EBS product type information list.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>11.&nbsp;ListDiskByPolicyId</strong></p> <p><strong>Interface Description</strong></p> <p>Query the list of all EBS that can be associated with the snapshot policy. Please take note that when calling interface:</p> <p>(1)only the following EBS information of Status can be queried:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>ToAttach: to be attached</p> <p>Attaching: attached</p> <p>Detaching: detached&nbsp;</p> <p>Available:available&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>Destroying:destroying DestroyFailed: failed to delete</p> <p>(2)The Status of the ECS where EBS located must be in the following status:</p> <p>Running: running&nbsp;</p> <p>Stopped: stopped</p> <p>Starting: started</p> <p>Stopping: stopping&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>Destroying: destroying&nbsp;&nbsp;&nbsp;</p> <p>(3)The data returned is the result of page query. By default, the page number is 1 and 10 rows of data are displayed on each page</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>SnapshotPolicyId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Snapshot policy associated to EBS.&nbsp; Can get snapshot policy by ListAllSnapshotPolicies interface</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Disks</p> </td> <td> <p>List&lt;EbsBean&gt;</p> </td> <td> <p>Information list of EBS queried</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>TotalCount</p> </td> <td> <p>Long</p> </td> <td> <p>Total amount of EBS queried.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>12.&nbsp;ListDisks</strong></p> <p><strong>Interface Description</strong></p> <p>Query EBS information. Please take note that when calling interface: 1, the interface is executed by page query with the default page is 1, 1000 rows of data will be displayed in each page.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Region Id EBS belongs to.&nbsp; Region Id determines where ECS located, such as Huadong 1.&nbsp; Can list region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS Id.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Available zone Id EBS belongs to.&nbsp; There may be more than one available zone under a region, and the available zone Id determines the specific available zone of the EBS distribution created by the user, such as available zone A.&nbsp; Can list region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ZoneName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Available zone name EBS belongs to.&nbsp; There may be more than one available zone under a region, and the available zone Id determines the specific available zone of the EBS distribution created by the user, such as available zone A.&nbsp; Can list region information by ListZones interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Name</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Name of EBS.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceId</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>ECS instance Id.&nbsp; ECS instance Id means the ECS instance tag attached on EBS.&nbsp; Can list region information by ListInstances interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Name of ECS instance.&nbsp; Name of ECS instance means the ECS instance tag attached on EBS.&nbsp; Can list region information by ListInstances interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageNumber</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page number.&nbsp; Used in page query.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>PageSize</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Page size&nbsp; Used in page query.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderBy</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order by keywords.&nbsp; When querying, specify by which keyword to sort the returned data.&nbsp; Defaulted sorting by time</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderType</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Order type. By default, sorting by DESC is used in conjunction with sorting keywords, indicating whether sorting is in ascending or descending order. The values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASC: ascending order&nbsp;&nbsp; DESC: descending order</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Status</p> </td> <td> <p>DiskStatus</p> </td> <td> <p>no</p> </td> <td> <p>EBS Status array column.&nbsp; Only the EBS attached by the corresponding ECS in the array will be queried.&nbsp; The values of EBS are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToCreate: to create&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pending:pending&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Available: available: available&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CreateFailed: create&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CreateFailed: create failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destroying: destroying&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destroyed:destroyed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DestroyFailed:destroy failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel: cancel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ToAttach: to be attached&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Attaching: attaching&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deteaching: detaching</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Tags</p> </td> <td> <p>String[]</p> </td> <td> <p>no</p> </td> <td> <p>Array column of EBS tag list.&nbsp; Only the EBS attached by the corresponding ECS in the array column will be queried.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>InstanceCategory</p> </td> <td> <p>InstanceCategory[]</p> </td> <td> <p>no</p> </td> <td> <p>The ECS classification array column, with the default values of InstanceCategory.Ecs and InstanceCategory.Caas Only the EBS attached by the corresponding ECS in the array will be queried.&nbsp; ECS type, the values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ecs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Independent ECS&nbsp;&nbsp;&nbsp; Caas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster ECS&nbsp;&nbsp;&nbsp;&nbsp; Dedicated;&nbsp; Dedicated ECS&nbsp;&nbsp;&nbsp; AutoScaling: elastic scaling&nbsp;&nbsp;&nbsp; GBD:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bigdata ECS&nbsp;&nbsp;&nbsp;&nbsp; FORTRESS:&nbsp;&nbsp; Fortress machine</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>DiskType</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>EBS type. Only the EBS attached by the corresponding ECS in the array column will be queried.&nbsp; EBS type, the values are as follows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ROOT: system disk&nbsp;&nbsp;&nbsp; DATADISK: data disk</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Disks</p> </td> <td> <p>List&lt;EbsBean&gt;</p> </td> <td> <p>Information list of EBS queried</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>TotalCount</p> </td> <td> <p>Long</p> </td> <td> <p>Total amount of EBS queried.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>13. ListEbsTypes</strong></p> <p><strong>Interface Description</strong></p> <p>Query the type of EBS product. Each EBS type in the portal has corresponding EBS product specification, for example, the product specification name SSD cloud drive corresponded to is ebs.s1.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>ProductSeriesId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Product series Id to be queried. Can list product series information by ListProductSeries interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>RegionId</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>Region Id EBS product type belongs to.&nbsp; Can list region information by ListRegions interface.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>EbsTypes</p> </td> <td> <p>List&lt;EbsTypeBean&gt;</p> </td> <td> <p>EBS product type information list.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>14. ModifyDiskAttribute</strong></p> <p><strong>Interface Description</strong></p> <p>Modify EBS attribute. Modify EBS attribute needs to get the token by logging in for authentication.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id to be modified.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>DisplayName</p> </td> <td> <p>String</p> </td> <td> <p>no</p> </td> <td> <p>Display name after EBS modification.&nbsp; The longest length of EBS display name is 20, if exceed, then it will throw ParameterValidateException exception.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>15. ModifyEbsAttribute</strong></p> <p><strong>Interface Description</strong></p> <p>Modify EBS attribute. Modify EBS need to get the token by logging in for authentication.&nbsp; List the disk that needs to modify by get disk uuid to judge and distinguish data disk and system disk, and check whether it is a local disk that can throw exceptional caution.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>IsNeedDeleteShapshot</p> </td> <td> <p>boolean</p> </td> <td> <p>no</p> </td> <td> <p>Whether to release snapshot automatically with disk.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>IsInstanceDeleteDisk</p> </td> <td> <p>boolean</p> </td> <td> <p>no</p> </td> <td> <p>Whether to release snapshot automatically with instance.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>16. UpgradeDisk</strong></p> <p><strong>Interface Description</strong></p> <p>Upgrade EBS. Upgrade EBS need to get the token by logging in for in for authentication.&nbsp; EBS upgrade will incur cost, it i recommended to know the pricing model of EBS in advance.&nbsp; Please take note that when calling this interface:&nbsp; . Please take note that when calling this interface:</p> <p>(1)only data disk(whose type is DATADISK)can be upgraded, system disk(whose type is ROOT) cannot be upgraded;</p> <p>(2)Status of EBS can be upgraded when it is Available or Destroyfailed ;</p> <p>(3)Status of EBS can be upgraded when it is Normal ;</p> <p>(4)the disk memory of the upgraded cannot be smaller than the original one;</p> <p>(5)expired disk cannot be upgraded;</p> <p>(6)if the EBS charge mode is&nbsp; paid by monthly or annually, then the starting time, expiration time and period need to be calculated againwill be recalculated.</p> <p><strong>Request Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Required (yes/no)</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>Id</p> </td> <td> <p>String</p> </td> <td> <p>yes</p> </td> <td> <p>EBS Id to be upgraded</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Size</p> </td> <td> <p>Integer</p> </td> <td> <p>yes</p> </td> <td> <p>EBS size after upgrading</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>CouponId</p> </td> <td> <p>Long</p> </td> <td> <p>no</p> </td> <td> <p>CouponId users hold.&nbsp; Can list by listAvailableCoupons method in Payment service.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Period</p> </td> <td> <p>Integer</p> </td> <td> <p>no</p> </td> <td> <p>Valid periods of upgrading.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table> <p><strong>Response Parameter</strong></p> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <p><strong>Parameter Name</strong></p> </td> <td> <p><strong>Parameter Type</strong></p> </td> <td> <p><strong>Parameter Description</strong></p> </td> <td> <p><strong>Remarks</strong></p> </td> </tr> <tr> <td> <p>ChargeType</p> </td> <td> <p>ChargeType</p> </td> <td> <p>Charge type of EBS.&nbsp; Charge type is listed as follows:&nbsp;&nbsp;&nbsp; Hour:&nbsp; Charged by hourly Usage:&nbsp; Charged by quantity PreUsage: Pre-paid by quantity Monthly: Paid by monthly</p> <p>Free:&nbsp; Free of charge</p> <p>Annual:&nbsp; Paid by year</p> <p>Charge mode is determined to be hour to create EBS recently..</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product code of EBS.&nbsp; Product code of EBS is fixed as Ebs.</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>OrderId</p> </td> <td> <p>String</p> </td> <td> <p>Oder Id</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>Status</p> </td> <td> <p>OrderStatus</p> </td> <td> <p>Order Status</p> </td> <td> <p>&nbsp;</p> </td> </tr> <tr> <td> <p>ProductCode</p> </td> <td> <p>String</p> </td> <td> <p>Product code of EBS.&nbsp; Product code of EBS is fixed as Ebs.</p> </td> <td> <p>&nbsp;</p> </td> </tr> </tbody> </table>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products