@alicloud/ecs20140526 7.2.3 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +133 -166
- package/dist/client.js +165 -162
- package/dist/client.js.map +1 -1
- package/dist/models/AcceptInquiredSystemEventRequest.d.ts +0 -7
- package/dist/models/AcceptInquiredSystemEventRequest.js.map +1 -1
- package/dist/models/AcceptInquiredSystemEventResponseBody.d.ts +0 -3
- package/dist/models/AcceptInquiredSystemEventResponseBody.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +14 -0
- package/dist/models/CreateAutoProvisioningGroupRequest.js +25 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +14 -0
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js +25 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js.map +1 -1
- package/dist/models/CreateImagePipelineRequest.d.ts +9 -9
- package/dist/models/CreateInstanceRequest.d.ts +6 -2
- package/dist/models/CreateInstanceRequest.js.map +1 -1
- package/dist/models/CreatePrefixListRequest.d.ts +2 -2
- package/dist/models/CreateSnapshotGroupRequest.d.ts +7 -7
- package/dist/models/DescribeAutoProvisioningGroupHistoryRequest.d.ts +1 -1
- package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.d.ts +42 -0
- package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js.map +1 -1
- package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.d.ts +32 -0
- package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js.map +1 -1
- package/dist/models/DescribeAvailableResourceRequest.d.ts +0 -118
- package/dist/models/DescribeAvailableResourceRequest.js.map +1 -1
- package/dist/models/DescribeAvailableResourceResponseBody.d.ts +9 -75
- package/dist/models/DescribeAvailableResourceResponseBody.js.map +1 -1
- package/dist/models/DescribeElasticityAssurancesRequest.d.ts +1 -1
- package/dist/models/DescribeEniMonitorDataRequest.d.ts +2 -2
- package/dist/models/DescribeImagePipelineExecutionsRequest.d.ts +22 -24
- package/dist/models/DescribeImagePipelineExecutionsRequest.js.map +1 -1
- package/dist/models/DescribeImagePipelineExecutionsResponseBody.d.ts +26 -24
- package/dist/models/DescribeImagePipelineExecutionsResponseBody.js.map +1 -1
- package/dist/models/DescribeImagePipelinesRequest.d.ts +1 -1
- package/dist/models/DescribeImagePipelinesResponseBody.d.ts +2 -2
- package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +18 -1
- package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeInstancesFullStatusRequest.d.ts +2 -1
- package/dist/models/DescribeInstancesFullStatusRequest.js.map +1 -1
- package/dist/models/DescribeInvocationResultsRequest.d.ts +79 -64
- package/dist/models/DescribeInvocationResultsRequest.js.map +1 -1
- package/dist/models/DescribeInvocationResultsResponseBody.d.ts +160 -136
- package/dist/models/DescribeInvocationResultsResponseBody.js.map +1 -1
- package/dist/models/DescribeInvocationsRequest.d.ts +17 -91
- package/dist/models/DescribeInvocationsRequest.js.map +1 -1
- package/dist/models/DescribeInvocationsResponseBody.d.ts +225 -172
- package/dist/models/DescribeInvocationsResponseBody.js.map +1 -1
- package/dist/models/DescribeManagedInstancesRequest.d.ts +18 -0
- package/dist/models/DescribeManagedInstancesRequest.js.map +1 -1
- package/dist/models/DescribeSnapshotGroupsResponseBody.d.ts +1 -1
- package/dist/models/DescribeSnapshotPackageRequest.d.ts +3 -3
- package/dist/models/ModifyCloudAssistantSettingsRequest.d.ts +2 -1
- package/dist/models/ModifyCloudAssistantSettingsRequest.js.map +1 -1
- package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.d.ts +2 -1
- package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.js.map +1 -1
- package/dist/models/ModifyDedicatedHostsChargeTypeRequest.d.ts +8 -8
- package/dist/models/ModifyInstanceMetadataOptionsRequest.d.ts +8 -1
- package/dist/models/ModifyInstanceMetadataOptionsRequest.js.map +1 -1
- package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +1 -1
- package/dist/models/ModifySecurityGroupEgressRuleRequest.d.ts +14 -2
- package/dist/models/ModifySecurityGroupEgressRuleRequest.js.map +1 -1
- package/dist/models/ModifySecurityGroupRuleRequest.d.ts +14 -2
- package/dist/models/ModifySecurityGroupRuleRequest.js.map +1 -1
- package/dist/models/OpenSnapshotServiceRequest.d.ts +26 -0
- package/dist/models/OpenSnapshotServiceRequest.js +64 -0
- package/dist/models/OpenSnapshotServiceRequest.js.map +1 -0
- package/dist/models/OpenSnapshotServiceResponse.d.ts +19 -0
- package/dist/models/OpenSnapshotServiceResponse.js +69 -0
- package/dist/models/OpenSnapshotServiceResponse.js.map +1 -0
- package/dist/models/OpenSnapshotServiceResponseBody.d.ts +21 -0
- package/dist/models/OpenSnapshotServiceResponseBody.js +58 -0
- package/dist/models/OpenSnapshotServiceResponseBody.js.map +1 -0
- package/dist/models/ReleaseDedicatedHostRequest.d.ts +13 -0
- package/dist/models/ReleaseDedicatedHostRequest.js +2 -0
- package/dist/models/ReleaseDedicatedHostRequest.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +69 -59
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +172 -162
- package/src/models/AcceptInquiredSystemEventRequest.ts +0 -7
- package/src/models/AcceptInquiredSystemEventResponseBody.ts +0 -3
- package/src/models/CreateAutoProvisioningGroupRequest.ts +29 -0
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +29 -0
- package/src/models/CreateImagePipelineRequest.ts +9 -9
- package/src/models/CreateInstanceRequest.ts +6 -2
- package/src/models/CreatePrefixListRequest.ts +2 -2
- package/src/models/CreateSnapshotGroupRequest.ts +7 -7
- package/src/models/DescribeAutoProvisioningGroupHistoryRequest.ts +1 -1
- package/src/models/DescribeAutoSnapshotPolicyAssociationsRequest.ts +42 -0
- package/src/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.ts +32 -0
- package/src/models/DescribeAvailableResourceRequest.ts +0 -118
- package/src/models/DescribeAvailableResourceResponseBody.ts +9 -75
- package/src/models/DescribeElasticityAssurancesRequest.ts +1 -1
- package/src/models/DescribeEniMonitorDataRequest.ts +2 -2
- package/src/models/DescribeImagePipelineExecutionsRequest.ts +22 -24
- package/src/models/DescribeImagePipelineExecutionsResponseBody.ts +26 -24
- package/src/models/DescribeImagePipelinesRequest.ts +1 -1
- package/src/models/DescribeImagePipelinesResponseBody.ts +2 -2
- package/src/models/DescribeInstanceAttributeResponseBody.ts +18 -1
- package/src/models/DescribeInstancesFullStatusRequest.ts +2 -1
- package/src/models/DescribeInvocationResultsRequest.ts +79 -64
- package/src/models/DescribeInvocationResultsResponseBody.ts +160 -136
- package/src/models/DescribeInvocationsRequest.ts +17 -91
- package/src/models/DescribeInvocationsResponseBody.ts +225 -172
- package/src/models/DescribeManagedInstancesRequest.ts +18 -0
- package/src/models/DescribeSnapshotGroupsResponseBody.ts +1 -1
- package/src/models/DescribeSnapshotPackageRequest.ts +3 -3
- package/src/models/ModifyCloudAssistantSettingsRequest.ts +2 -1
- package/src/models/ModifyCloudAssistantSettingsShrinkRequest.ts +2 -1
- package/src/models/ModifyDedicatedHostsChargeTypeRequest.ts +8 -8
- package/src/models/ModifyInstanceMetadataOptionsRequest.ts +8 -1
- package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +1 -1
- package/src/models/ModifySecurityGroupEgressRuleRequest.ts +14 -2
- package/src/models/ModifySecurityGroupRuleRequest.ts +14 -2
- package/src/models/OpenSnapshotServiceRequest.ts +45 -0
- package/src/models/OpenSnapshotServiceResponse.ts +40 -0
- package/src/models/OpenSnapshotServiceResponseBody.ts +34 -0
- package/src/models/ReleaseDedicatedHostRequest.ts +15 -0
- package/src/models/model.ts +5 -0
package/dist/client.js
CHANGED
|
@@ -99,7 +99,7 @@ class Client extends openapi_core_1.default {
|
|
|
99
99
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* dubbo
|
|
103
103
|
*
|
|
104
104
|
* @param request - AcceptInquiredSystemEventRequest
|
|
105
105
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -149,7 +149,7 @@ class Client extends openapi_core_1.default {
|
|
|
149
149
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AcceptInquiredSystemEventResponse({}));
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* dubbo
|
|
153
153
|
*
|
|
154
154
|
* @param request - AcceptInquiredSystemEventRequest
|
|
155
155
|
* @returns AcceptInquiredSystemEventResponse
|
|
@@ -640,8 +640,17 @@ class Client extends openapi_core_1.default {
|
|
|
640
640
|
* Applies an automatic snapshot policy to one or more cloud disks. You can call this operation to replace the automatic snapshot policy of a cloud disk.
|
|
641
641
|
*
|
|
642
642
|
* @remarks
|
|
643
|
-
*
|
|
644
|
-
*
|
|
643
|
+
* ## [](#)Usage notes
|
|
644
|
+
* When you call this operation, note that:
|
|
645
|
+
* * You can apply only one automatic snapshot policy to each disk.
|
|
646
|
+
* * You can apply a single automatic snapshot policy to multiple disks.
|
|
647
|
+
* Feature changes:
|
|
648
|
+
* By default, only one policy can be applied to a single disk. After the feature is upgraded, a maximum of 10 automatic snapshot policies can be applied to a single disk at the same time to meet the backup requirements of multiple scenarios.
|
|
649
|
+
* If you need to apply for a whitelist to upgrade the feature, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).
|
|
650
|
+
* After you upgrade the feature, take note of the following:
|
|
651
|
+
* * Each cloud disk supports up to 10 automatic snapshot policies.
|
|
652
|
+
* * If the target cloud disk already has an automatic snapshot policy applied, calling this operation will add to the existing policy rather than replace it.
|
|
653
|
+
* > To avoid unexpected fees, cancel the automatic snapshot policies that you no longer need.
|
|
645
654
|
*
|
|
646
655
|
* @param request - ApplyAutoSnapshotPolicyRequest
|
|
647
656
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -688,8 +697,17 @@ class Client extends openapi_core_1.default {
|
|
|
688
697
|
* Applies an automatic snapshot policy to one or more cloud disks. You can call this operation to replace the automatic snapshot policy of a cloud disk.
|
|
689
698
|
*
|
|
690
699
|
* @remarks
|
|
691
|
-
*
|
|
692
|
-
*
|
|
700
|
+
* ## [](#)Usage notes
|
|
701
|
+
* When you call this operation, note that:
|
|
702
|
+
* * You can apply only one automatic snapshot policy to each disk.
|
|
703
|
+
* * You can apply a single automatic snapshot policy to multiple disks.
|
|
704
|
+
* Feature changes:
|
|
705
|
+
* By default, only one policy can be applied to a single disk. After the feature is upgraded, a maximum of 10 automatic snapshot policies can be applied to a single disk at the same time to meet the backup requirements of multiple scenarios.
|
|
706
|
+
* If you need to apply for a whitelist to upgrade the feature, [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).
|
|
707
|
+
* After you upgrade the feature, take note of the following:
|
|
708
|
+
* * Each cloud disk supports up to 10 automatic snapshot policies.
|
|
709
|
+
* * If the target cloud disk already has an automatic snapshot policy applied, calling this operation will add to the existing policy rather than replace it.
|
|
710
|
+
* > To avoid unexpected fees, cancel the automatic snapshot policies that you no longer need.
|
|
693
711
|
*
|
|
694
712
|
* @param request - ApplyAutoSnapshotPolicyRequest
|
|
695
713
|
* @returns ApplyAutoSnapshotPolicyResponse
|
|
@@ -8928,7 +8946,7 @@ class Client extends openapi_core_1.default {
|
|
|
8928
8946
|
return await this.describeAccessPointsWithOptions(request, runtime);
|
|
8929
8947
|
}
|
|
8930
8948
|
/**
|
|
8931
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed
|
|
8949
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed the account verification.
|
|
8932
8950
|
*
|
|
8933
8951
|
* @remarks
|
|
8934
8952
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -8976,7 +8994,7 @@ class Client extends openapi_core_1.default {
|
|
|
8976
8994
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAccountAttributesResponse({}));
|
|
8977
8995
|
}
|
|
8978
8996
|
/**
|
|
8979
|
-
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed
|
|
8997
|
+
* Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed the account verification.
|
|
8980
8998
|
*
|
|
8981
8999
|
* @remarks
|
|
8982
9000
|
* After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](https://help.aliyun.com/document_detail/25412.html).
|
|
@@ -9278,7 +9296,7 @@ class Client extends openapi_core_1.default {
|
|
|
9278
9296
|
return await this.describeAutoProvisioningGroupsWithOptions(request, runtime);
|
|
9279
9297
|
}
|
|
9280
9298
|
/**
|
|
9281
|
-
*
|
|
9299
|
+
* Queries association relationships of automatic snapshot policies.
|
|
9282
9300
|
*
|
|
9283
9301
|
* @param request - DescribeAutoSnapshotPolicyAssociationsRequest
|
|
9284
9302
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9331,7 +9349,7 @@ class Client extends openapi_core_1.default {
|
|
|
9331
9349
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAutoSnapshotPolicyAssociationsResponse({}));
|
|
9332
9350
|
}
|
|
9333
9351
|
/**
|
|
9334
|
-
*
|
|
9352
|
+
* Queries association relationships of automatic snapshot policies.
|
|
9335
9353
|
*
|
|
9336
9354
|
* @param request - DescribeAutoSnapshotPolicyAssociationsRequest
|
|
9337
9355
|
* @returns DescribeAutoSnapshotPolicyAssociationsResponse
|
|
@@ -9410,38 +9428,7 @@ class Client extends openapi_core_1.default {
|
|
|
9410
9428
|
return await this.describeAutoSnapshotPolicyExWithOptions(request, runtime);
|
|
9411
9429
|
}
|
|
9412
9430
|
/**
|
|
9413
|
-
*
|
|
9414
|
-
*
|
|
9415
|
-
* @remarks
|
|
9416
|
-
* The value of `DestinationResource` determines whether you need to specify additional parameters. When you select a value in the following chain for DestinationResource, the more to the right the selected value is ordered, the more parameters you must specify.
|
|
9417
|
-
* * Sequence: `Zone > IoOptimized > InstanceType = Network = ddh > SystemDisk > DataDisk`
|
|
9418
|
-
* * Examples:
|
|
9419
|
-
* * If you set `DestinationResource` to `DataDisk`, take note of the following items:
|
|
9420
|
-
* * If you set `ResourceType` to `disk` to query the categories of data disks regardless of whether the disks are attached to ECS instances, you can leave `InstanceType` empty.
|
|
9421
|
-
* * If you set `ResourceType` to `instance` to query the categories of data disks that are attached to ECS instances, you must specify `InstanceType` and `DataDiskCategory` due to instance type-specific limits on data disks.
|
|
9422
|
-
* * If you set `DestinationResource` to `SystemDisk` and `ResourceType` to `instance`, you must specify `InstanceType` due to instance type-specific limits on system disks.
|
|
9423
|
-
* * If you set `DestinationResource` to `InstanceType`, we recommend that you specify `IoOptimized` and `InstanceType`.
|
|
9424
|
-
* * To query the ecs.g5.large instance type in all zones of the China (Hangzhou) region, set `RegionId to cn-hangzhou, DestinationResource to InstanceType, IoOptimized to optimized, and InstanceType to ecs.g5.large`.
|
|
9425
|
-
* * To query the zones in which the ecs.g5.large instance type is available in the China (Hangzhou) region, set `RegionId to cn-hangzhou, DestinationResource to Zone, IoOptimized to optimized, and InstanceType to ecs.g5.large`.
|
|
9426
|
-
* **To query the zones in which the ecs.g5.large instance type is available in the China (Hangzhou) region, specify parameters as follows:**
|
|
9427
|
-
* "RegionId": "cn-hangzhou",
|
|
9428
|
-
* "DestinationResource": "Zone",
|
|
9429
|
-
* "InstanceType": "ecs.g5.large"
|
|
9430
|
-
* **To query the ecs.g5.large instance type in all zones of the China (Hangzhou) region, specify parameters as follows:**
|
|
9431
|
-
* "RegionId": "cn-hangzhou",
|
|
9432
|
-
* "DestinationResource": "InstanceType""InstanceType": "ecs.g5.large"
|
|
9433
|
-
* **To query data disks of the ultra disk category in Hangzhou Zone B regardless of whether the disks are attached to ECS instances, specify parameters as follows:**
|
|
9434
|
-
* "RegionId": "cn-hangzhou",
|
|
9435
|
-
* "ZoneId": "cn-hangzhou-b",
|
|
9436
|
-
* "ResourceType": "disk",
|
|
9437
|
-
* "DestinationResource": "DataDisk"
|
|
9438
|
-
* **To query data disks purchased together with ecs.g7.large instances that reside in Hangzhou Zone B and use Enterprise SSDs (ESSDs) as system disks, specify parameters as follows:**
|
|
9439
|
-
* "RegionId": "cn-hangzhou",
|
|
9440
|
-
* "ZoneId": "cn-hangzhou-b",
|
|
9441
|
-
* "ResourceType": "instance",
|
|
9442
|
-
* "InstanceType": "ecs.g7.large",
|
|
9443
|
-
* "DestinationResource": "SystemDisk",
|
|
9444
|
-
* "SystemDiskCategory": "cloud_essd"
|
|
9431
|
+
* 查询可用资源
|
|
9445
9432
|
*
|
|
9446
9433
|
* @param request - DescribeAvailableResourceRequest
|
|
9447
9434
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9527,38 +9514,7 @@ class Client extends openapi_core_1.default {
|
|
|
9527
9514
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAvailableResourceResponse({}));
|
|
9528
9515
|
}
|
|
9529
9516
|
/**
|
|
9530
|
-
*
|
|
9531
|
-
*
|
|
9532
|
-
* @remarks
|
|
9533
|
-
* The value of `DestinationResource` determines whether you need to specify additional parameters. When you select a value in the following chain for DestinationResource, the more to the right the selected value is ordered, the more parameters you must specify.
|
|
9534
|
-
* * Sequence: `Zone > IoOptimized > InstanceType = Network = ddh > SystemDisk > DataDisk`
|
|
9535
|
-
* * Examples:
|
|
9536
|
-
* * If you set `DestinationResource` to `DataDisk`, take note of the following items:
|
|
9537
|
-
* * If you set `ResourceType` to `disk` to query the categories of data disks regardless of whether the disks are attached to ECS instances, you can leave `InstanceType` empty.
|
|
9538
|
-
* * If you set `ResourceType` to `instance` to query the categories of data disks that are attached to ECS instances, you must specify `InstanceType` and `DataDiskCategory` due to instance type-specific limits on data disks.
|
|
9539
|
-
* * If you set `DestinationResource` to `SystemDisk` and `ResourceType` to `instance`, you must specify `InstanceType` due to instance type-specific limits on system disks.
|
|
9540
|
-
* * If you set `DestinationResource` to `InstanceType`, we recommend that you specify `IoOptimized` and `InstanceType`.
|
|
9541
|
-
* * To query the ecs.g5.large instance type in all zones of the China (Hangzhou) region, set `RegionId to cn-hangzhou, DestinationResource to InstanceType, IoOptimized to optimized, and InstanceType to ecs.g5.large`.
|
|
9542
|
-
* * To query the zones in which the ecs.g5.large instance type is available in the China (Hangzhou) region, set `RegionId to cn-hangzhou, DestinationResource to Zone, IoOptimized to optimized, and InstanceType to ecs.g5.large`.
|
|
9543
|
-
* **To query the zones in which the ecs.g5.large instance type is available in the China (Hangzhou) region, specify parameters as follows:**
|
|
9544
|
-
* "RegionId": "cn-hangzhou",
|
|
9545
|
-
* "DestinationResource": "Zone",
|
|
9546
|
-
* "InstanceType": "ecs.g5.large"
|
|
9547
|
-
* **To query the ecs.g5.large instance type in all zones of the China (Hangzhou) region, specify parameters as follows:**
|
|
9548
|
-
* "RegionId": "cn-hangzhou",
|
|
9549
|
-
* "DestinationResource": "InstanceType""InstanceType": "ecs.g5.large"
|
|
9550
|
-
* **To query data disks of the ultra disk category in Hangzhou Zone B regardless of whether the disks are attached to ECS instances, specify parameters as follows:**
|
|
9551
|
-
* "RegionId": "cn-hangzhou",
|
|
9552
|
-
* "ZoneId": "cn-hangzhou-b",
|
|
9553
|
-
* "ResourceType": "disk",
|
|
9554
|
-
* "DestinationResource": "DataDisk"
|
|
9555
|
-
* **To query data disks purchased together with ecs.g7.large instances that reside in Hangzhou Zone B and use Enterprise SSDs (ESSDs) as system disks, specify parameters as follows:**
|
|
9556
|
-
* "RegionId": "cn-hangzhou",
|
|
9557
|
-
* "ZoneId": "cn-hangzhou-b",
|
|
9558
|
-
* "ResourceType": "instance",
|
|
9559
|
-
* "InstanceType": "ecs.g7.large",
|
|
9560
|
-
* "DestinationResource": "SystemDisk",
|
|
9561
|
-
* "SystemDiskCategory": "cloud_essd"
|
|
9517
|
+
* 查询可用资源
|
|
9562
9518
|
*
|
|
9563
9519
|
* @param request - DescribeAvailableResourceRequest
|
|
9564
9520
|
* @returns DescribeAvailableResourceResponse
|
|
@@ -12073,13 +12029,22 @@ class Client extends openapi_core_1.default {
|
|
|
12073
12029
|
return await this.describeImageFromFamilyWithOptions(request, runtime);
|
|
12074
12030
|
}
|
|
12075
12031
|
/**
|
|
12076
|
-
*
|
|
12032
|
+
* The key of tag N of the image creation task. Valid values of N: 1 to 20.
|
|
12077
12033
|
*
|
|
12078
12034
|
* @remarks
|
|
12079
|
-
*
|
|
12080
|
-
* *
|
|
12081
|
-
* *
|
|
12082
|
-
* *
|
|
12035
|
+
* The status of the image creation task. Valid values:
|
|
12036
|
+
* * PREPARING: Resources, such as intermediate instances, are being created.
|
|
12037
|
+
* * REPAIRING: The source image is being repaired.
|
|
12038
|
+
* * BUILDING: The user-defined commands are being run and an image is being created.
|
|
12039
|
+
* * TESTING: The user-defined test commands are being run.
|
|
12040
|
+
* * DISTRIBUTING: The created image is being copied and shared.
|
|
12041
|
+
* * RELEASING: The temporary resources generated during the image creation process are being released.
|
|
12042
|
+
* * SUCCESS The image creation task is completed.
|
|
12043
|
+
* * PARTITION_SUCCESS: The image creation task is partially completed. The image is created, but exceptions may occur when the image was copied or shared or when temporary resources were released.
|
|
12044
|
+
* * FAILED: The image creation task fails.
|
|
12045
|
+
* * TEST_FAILED: The image is created, but the test fails.
|
|
12046
|
+
* * CANCELLING: The image creation task is being canceled.
|
|
12047
|
+
* * CANCELLED: The image creation task is canceled.
|
|
12083
12048
|
*
|
|
12084
12049
|
* @param request - DescribeImagePipelineExecutionsRequest
|
|
12085
12050
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12141,13 +12106,22 @@ class Client extends openapi_core_1.default {
|
|
|
12141
12106
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeImagePipelineExecutionsResponse({}));
|
|
12142
12107
|
}
|
|
12143
12108
|
/**
|
|
12144
|
-
*
|
|
12109
|
+
* The key of tag N of the image creation task. Valid values of N: 1 to 20.
|
|
12145
12110
|
*
|
|
12146
12111
|
* @remarks
|
|
12147
|
-
*
|
|
12148
|
-
* *
|
|
12149
|
-
* *
|
|
12150
|
-
* *
|
|
12112
|
+
* The status of the image creation task. Valid values:
|
|
12113
|
+
* * PREPARING: Resources, such as intermediate instances, are being created.
|
|
12114
|
+
* * REPAIRING: The source image is being repaired.
|
|
12115
|
+
* * BUILDING: The user-defined commands are being run and an image is being created.
|
|
12116
|
+
* * TESTING: The user-defined test commands are being run.
|
|
12117
|
+
* * DISTRIBUTING: The created image is being copied and shared.
|
|
12118
|
+
* * RELEASING: The temporary resources generated during the image creation process are being released.
|
|
12119
|
+
* * SUCCESS The image creation task is completed.
|
|
12120
|
+
* * PARTITION_SUCCESS: The image creation task is partially completed. The image is created, but exceptions may occur when the image was copied or shared or when temporary resources were released.
|
|
12121
|
+
* * FAILED: The image creation task fails.
|
|
12122
|
+
* * TEST_FAILED: The image is created, but the test fails.
|
|
12123
|
+
* * CANCELLING: The image creation task is being canceled.
|
|
12124
|
+
* * CANCELLED: The image creation task is canceled.
|
|
12151
12125
|
*
|
|
12152
12126
|
* @param request - DescribeImagePipelineExecutionsRequest
|
|
12153
12127
|
* @returns DescribeImagePipelineExecutionsResponse
|
|
@@ -13825,22 +13799,24 @@ class Client extends openapi_core_1.default {
|
|
|
13825
13799
|
return await this.describeInstancesFullStatusWithOptions(request, runtime);
|
|
13826
13800
|
}
|
|
13827
13801
|
/**
|
|
13828
|
-
*
|
|
13802
|
+
* The execution status of the command. Valid values:
|
|
13803
|
+
* * Running:
|
|
13804
|
+
* * Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running.
|
|
13805
|
+
* * One-time task: If the command is being run on instances, the execution state is Running.
|
|
13806
|
+
* * Finished:
|
|
13807
|
+
* * Scheduled task: The execution state can never be Finished.
|
|
13808
|
+
* * One-time task: The execution was complete on all instances, or the execution was stopped on some instances and was complete on the other instances.
|
|
13809
|
+
* * Failed:
|
|
13810
|
+
* * Scheduled task: The execution state can never be Failed.
|
|
13811
|
+
* * One-time task: The execution failed on all instances.
|
|
13812
|
+
* * PartialFailed:
|
|
13813
|
+
* * Scheduled task: The execution state can never be PartialFailed.
|
|
13814
|
+
* * One-time task: The execution failed on some instances.
|
|
13815
|
+
* * Stopped: The task was stopped.
|
|
13816
|
+
* * Stopping: The task is being stopped.
|
|
13829
13817
|
*
|
|
13830
13818
|
* @remarks
|
|
13831
|
-
*
|
|
13832
|
-
* * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the execution results.
|
|
13833
|
-
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
13834
|
-
* * You can [subscribe to Cloud Assistant task status events](https://help.aliyun.com/document_detail/2669130.html) to obtain command execution results from the events. This helps you reduce the number of times to poll API operations and improve efficiency.
|
|
13835
|
-
* * During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
13836
|
-
* * Comparison between the `DescribeInvocations` and `DescribeInvocationResults` operations:
|
|
13837
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on multiple instances:
|
|
13838
|
-
* * The `DescribeInvocations` operation queries the execution status of the command on each instance and the overall execution status of the command on all instances.
|
|
13839
|
-
* * The `DescribeInvocationResults` operation queries only the execution status of the command on each instance.
|
|
13840
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on a single instance:
|
|
13841
|
-
* * The `DescribeInvocations` operation is equivalent to the `DescribeInvocationResults` operation.
|
|
13842
|
-
* * If you want to query the status of each execution for a scheduled (recurring) task or a task that is automatically executed on instance startup (`RepeatMode is set to Period or EveryReboot`), you can call only the `DescribeInvocationResults` operation and must set `IncludeHistory` to true. The `DescribeInvocations` operation queries only the most recent execution status of the command.
|
|
13843
|
-
* * If you want to view the command content and parameters, you can call only the `DescribeInvocations` operation and check the `CommandContent` value in the response.
|
|
13819
|
+
* DescribeInvocationResults
|
|
13844
13820
|
*
|
|
13845
13821
|
* @param request - DescribeInvocationResultsRequest
|
|
13846
13822
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -13920,22 +13896,24 @@ class Client extends openapi_core_1.default {
|
|
|
13920
13896
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeInvocationResultsResponse({}));
|
|
13921
13897
|
}
|
|
13922
13898
|
/**
|
|
13923
|
-
*
|
|
13899
|
+
* The execution status of the command. Valid values:
|
|
13900
|
+
* * Running:
|
|
13901
|
+
* * Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running.
|
|
13902
|
+
* * One-time task: If the command is being run on instances, the execution state is Running.
|
|
13903
|
+
* * Finished:
|
|
13904
|
+
* * Scheduled task: The execution state can never be Finished.
|
|
13905
|
+
* * One-time task: The execution was complete on all instances, or the execution was stopped on some instances and was complete on the other instances.
|
|
13906
|
+
* * Failed:
|
|
13907
|
+
* * Scheduled task: The execution state can never be Failed.
|
|
13908
|
+
* * One-time task: The execution failed on all instances.
|
|
13909
|
+
* * PartialFailed:
|
|
13910
|
+
* * Scheduled task: The execution state can never be PartialFailed.
|
|
13911
|
+
* * One-time task: The execution failed on some instances.
|
|
13912
|
+
* * Stopped: The task was stopped.
|
|
13913
|
+
* * Stopping: The task is being stopped.
|
|
13924
13914
|
*
|
|
13925
13915
|
* @remarks
|
|
13926
|
-
*
|
|
13927
|
-
* * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the execution results.
|
|
13928
|
-
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
13929
|
-
* * You can [subscribe to Cloud Assistant task status events](https://help.aliyun.com/document_detail/2669130.html) to obtain command execution results from the events. This helps you reduce the number of times to poll API operations and improve efficiency.
|
|
13930
|
-
* * During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
13931
|
-
* * Comparison between the `DescribeInvocations` and `DescribeInvocationResults` operations:
|
|
13932
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on multiple instances:
|
|
13933
|
-
* * The `DescribeInvocations` operation queries the execution status of the command on each instance and the overall execution status of the command on all instances.
|
|
13934
|
-
* * The `DescribeInvocationResults` operation queries only the execution status of the command on each instance.
|
|
13935
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on a single instance:
|
|
13936
|
-
* * The `DescribeInvocations` operation is equivalent to the `DescribeInvocationResults` operation.
|
|
13937
|
-
* * If you want to query the status of each execution for a scheduled (recurring) task or a task that is automatically executed on instance startup (`RepeatMode is set to Period or EveryReboot`), you can call only the `DescribeInvocationResults` operation and must set `IncludeHistory` to true. The `DescribeInvocations` operation queries only the most recent execution status of the command.
|
|
13938
|
-
* * If you want to view the command content and parameters, you can call only the `DescribeInvocations` operation and check the `CommandContent` value in the response.
|
|
13916
|
+
* DescribeInvocationResults
|
|
13939
13917
|
*
|
|
13940
13918
|
* @param request - DescribeInvocationResultsRequest
|
|
13941
13919
|
* @returns DescribeInvocationResultsResponse
|
|
@@ -13945,21 +13923,10 @@ class Client extends openapi_core_1.default {
|
|
|
13945
13923
|
return await this.describeInvocationResultsWithOptions(request, runtime);
|
|
13946
13924
|
}
|
|
13947
13925
|
/**
|
|
13948
|
-
*
|
|
13926
|
+
* The command type.
|
|
13949
13927
|
*
|
|
13950
13928
|
* @remarks
|
|
13951
|
-
*
|
|
13952
|
-
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
13953
|
-
* * You can [subscribe to Cloud Assistant task status events](https://help.aliyun.com/document_detail/2669130.html) to obtain command execution results from the events. This helps you reduce the number of times to poll API operations and improve efficiency.
|
|
13954
|
-
* * During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeInvocations operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
13955
|
-
* * Differences between the `DescribeInvocations` and `DescribeInvocationResults` operations:
|
|
13956
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on multiple instances:
|
|
13957
|
-
* * The `DescribeInvocations` operation queries the execution status of the command on each instance and the overall execution status of the command on all instances.
|
|
13958
|
-
* * The `DescribeInvocationResults` operation queries only the execution status of the command on each instance.
|
|
13959
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on a single instance:
|
|
13960
|
-
* * The `DescribeInvocations` operation is equivalent to the `DescribeInvocationResults` operation.
|
|
13961
|
-
* * If you want to query the status of each execution for a scheduled (recurring) task or a task that is automatically executed on instance startup (`RepeatMode is set to Period or EveryReboot`), you can call only the `DescribeInvocationResults` operation and must set `IncludeHistory` to true. The `DescribeInvocations` operation queries only the most recent execution status of the command.
|
|
13962
|
-
* * If you want to view the command content and parameters, you can call only the `DescribeInvocations` operation and check the `CommandContent` value in the response.
|
|
13929
|
+
* DescribeInvocations
|
|
13963
13930
|
*
|
|
13964
13931
|
* @param request - DescribeInvocationsRequest
|
|
13965
13932
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -14051,21 +14018,10 @@ class Client extends openapi_core_1.default {
|
|
|
14051
14018
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeInvocationsResponse({}));
|
|
14052
14019
|
}
|
|
14053
14020
|
/**
|
|
14054
|
-
*
|
|
14021
|
+
* The command type.
|
|
14055
14022
|
*
|
|
14056
14023
|
* @remarks
|
|
14057
|
-
*
|
|
14058
|
-
* * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
|
|
14059
|
-
* * You can [subscribe to Cloud Assistant task status events](https://help.aliyun.com/document_detail/2669130.html) to obtain command execution results from the events. This helps you reduce the number of times to poll API operations and improve efficiency.
|
|
14060
|
-
* * During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeInvocations operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
|
|
14061
|
-
* * Differences between the `DescribeInvocations` and `DescribeInvocationResults` operations:
|
|
14062
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on multiple instances:
|
|
14063
|
-
* * The `DescribeInvocations` operation queries the execution status of the command on each instance and the overall execution status of the command on all instances.
|
|
14064
|
-
* * The `DescribeInvocationResults` operation queries only the execution status of the command on each instance.
|
|
14065
|
-
* * Scenario in which the `RunCommand` or `InvokeCommand` operation is called to run a Cloud Assistant command on a single instance:
|
|
14066
|
-
* * The `DescribeInvocations` operation is equivalent to the `DescribeInvocationResults` operation.
|
|
14067
|
-
* * If you want to query the status of each execution for a scheduled (recurring) task or a task that is automatically executed on instance startup (`RepeatMode is set to Period or EveryReboot`), you can call only the `DescribeInvocationResults` operation and must set `IncludeHistory` to true. The `DescribeInvocations` operation queries only the most recent execution status of the command.
|
|
14068
|
-
* * If you want to view the command content and parameters, you can call only the `DescribeInvocations` operation and check the `CommandContent` value in the response.
|
|
14024
|
+
* DescribeInvocations
|
|
14069
14025
|
*
|
|
14070
14026
|
* @param request - DescribeInvocationsRequest
|
|
14071
14027
|
* @returns DescribeInvocationsResponse
|
|
@@ -23090,7 +23046,7 @@ class Client extends openapi_core_1.default {
|
|
|
23090
23046
|
return await this.modifyInstanceMetadataOptionsWithOptions(request, runtime);
|
|
23091
23047
|
}
|
|
23092
23048
|
/**
|
|
23093
|
-
* Modifies
|
|
23049
|
+
* Modifies instance network configurations.
|
|
23094
23050
|
*
|
|
23095
23051
|
* @remarks
|
|
23096
23052
|
* When you call this operation, note that:
|
|
@@ -23137,7 +23093,7 @@ class Client extends openapi_core_1.default {
|
|
|
23137
23093
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceNetworkOptionsResponse({}));
|
|
23138
23094
|
}
|
|
23139
23095
|
/**
|
|
23140
|
-
* Modifies
|
|
23096
|
+
* Modifies instance network configurations.
|
|
23141
23097
|
*
|
|
23142
23098
|
* @remarks
|
|
23143
23099
|
* When you call this operation, note that:
|
|
@@ -25231,7 +25187,7 @@ class Client extends openapi_core_1.default {
|
|
|
25231
25187
|
return await this.modifySnapshotGroupWithOptions(request, runtime);
|
|
25232
25188
|
}
|
|
25233
25189
|
/**
|
|
25234
|
-
*
|
|
25190
|
+
* Modifies the name or description of a storage capacity unit (SCU).
|
|
25235
25191
|
*
|
|
25236
25192
|
* @param request - ModifyStorageCapacityUnitAttributeRequest
|
|
25237
25193
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -25281,7 +25237,7 @@ class Client extends openapi_core_1.default {
|
|
|
25281
25237
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyStorageCapacityUnitAttributeResponse({}));
|
|
25282
25238
|
}
|
|
25283
25239
|
/**
|
|
25284
|
-
*
|
|
25240
|
+
* Modifies the name or description of a storage capacity unit (SCU).
|
|
25285
25241
|
*
|
|
25286
25242
|
* @param request - ModifyStorageCapacityUnitAttributeRequest
|
|
25287
25243
|
* @returns ModifyStorageCapacityUnitAttributeResponse
|
|
@@ -25702,6 +25658,54 @@ class Client extends openapi_core_1.default {
|
|
|
25702
25658
|
let runtime = new $dara.RuntimeOptions({});
|
|
25703
25659
|
return await this.modifyVpcAttributeWithOptions(request, runtime);
|
|
25704
25660
|
}
|
|
25661
|
+
/**
|
|
25662
|
+
* Activate the snapshot service.
|
|
25663
|
+
*
|
|
25664
|
+
* @param request - OpenSnapshotServiceRequest
|
|
25665
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
25666
|
+
* @returns OpenSnapshotServiceResponse
|
|
25667
|
+
*/
|
|
25668
|
+
async openSnapshotServiceWithOptions(request, runtime) {
|
|
25669
|
+
request.validate();
|
|
25670
|
+
let query = {};
|
|
25671
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
25672
|
+
query["OwnerId"] = request.ownerId;
|
|
25673
|
+
}
|
|
25674
|
+
if (!$dara.isNull(request.regionId)) {
|
|
25675
|
+
query["RegionId"] = request.regionId;
|
|
25676
|
+
}
|
|
25677
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
25678
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
25679
|
+
}
|
|
25680
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
25681
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
25682
|
+
}
|
|
25683
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
25684
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
25685
|
+
});
|
|
25686
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
25687
|
+
action: "OpenSnapshotService",
|
|
25688
|
+
version: "2014-05-26",
|
|
25689
|
+
protocol: "HTTPS",
|
|
25690
|
+
pathname: "/",
|
|
25691
|
+
method: "POST",
|
|
25692
|
+
authType: "AK",
|
|
25693
|
+
style: "RPC",
|
|
25694
|
+
reqBodyType: "formData",
|
|
25695
|
+
bodyType: "json",
|
|
25696
|
+
});
|
|
25697
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.OpenSnapshotServiceResponse({}));
|
|
25698
|
+
}
|
|
25699
|
+
/**
|
|
25700
|
+
* Activate the snapshot service.
|
|
25701
|
+
*
|
|
25702
|
+
* @param request - OpenSnapshotServiceRequest
|
|
25703
|
+
* @returns OpenSnapshotServiceResponse
|
|
25704
|
+
*/
|
|
25705
|
+
async openSnapshotService(request) {
|
|
25706
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
25707
|
+
return await this.openSnapshotServiceWithOptions(request, runtime);
|
|
25708
|
+
}
|
|
25705
25709
|
/**
|
|
25706
25710
|
* Purchases an elasticity assurance that is not in the Active state and for which resources are prepared.
|
|
25707
25711
|
*
|
|
@@ -26578,7 +26582,7 @@ class Client extends openapi_core_1.default {
|
|
|
26578
26582
|
return await this.releaseCapacityReservationWithOptions(request, runtime);
|
|
26579
26583
|
}
|
|
26580
26584
|
/**
|
|
26581
|
-
* Releases a pay-as-you-go
|
|
26585
|
+
* Releases a pay-as-you-go Dedicated Host or an expired subscription Dedicated Host.
|
|
26582
26586
|
*
|
|
26583
26587
|
* @remarks
|
|
26584
26588
|
* ## Usage notes
|
|
@@ -26609,6 +26613,9 @@ class Client extends openapi_core_1.default {
|
|
|
26609
26613
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
26610
26614
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
26611
26615
|
}
|
|
26616
|
+
if (!$dara.isNull(request.terminateSubscription)) {
|
|
26617
|
+
query["TerminateSubscription"] = request.terminateSubscription;
|
|
26618
|
+
}
|
|
26612
26619
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
26613
26620
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
26614
26621
|
});
|
|
@@ -26626,7 +26633,7 @@ class Client extends openapi_core_1.default {
|
|
|
26626
26633
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReleaseDedicatedHostResponse({}));
|
|
26627
26634
|
}
|
|
26628
26635
|
/**
|
|
26629
|
-
* Releases a pay-as-you-go
|
|
26636
|
+
* Releases a pay-as-you-go Dedicated Host or an expired subscription Dedicated Host.
|
|
26630
26637
|
*
|
|
26631
26638
|
* @remarks
|
|
26632
26639
|
* ## Usage notes
|
|
@@ -27187,13 +27194,11 @@ class Client extends openapi_core_1.default {
|
|
|
27187
27194
|
* * The category of the system disk cannot be changed.
|
|
27188
27195
|
* * Make sure that no unpaid orders are associated with the instance.
|
|
27189
27196
|
* * The instance must be in the `Stopped` state.
|
|
27190
|
-
*
|
|
27191
|
-
* **Note
|
|
27192
|
-
* *
|
|
27193
|
-
* *
|
|
27194
|
-
* After
|
|
27195
|
-
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the status of the new system disk. If the new system disk is in the In Use state, the system disk is replaced.
|
|
27196
|
-
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of the instance whose system disk is replaced. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
27197
|
+
* **
|
|
27198
|
+
* **Note:** The operation is applicable only to instances of the Virtual Private Cloud (VPC) type. If the instance is a pay-as-you-go instance and economical mode by default is enabled, you can enable standard mode when stopping the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](https://help.aliyun.com/document_detail/25501.html).
|
|
27199
|
+
* * You can use the parameter `SystemDisk.Size` to re-specify the size of the system disk (cannot be less than the original system disk capacity).
|
|
27200
|
+
* * If the `OperationLocks` parameter value of the instance contains `"LockReason": "security"`, then the ECS instance is locked for security. You cannot replace the system disk. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
27201
|
+
* After the system disk is replaced, you can query the status of the instance to check whether the replacement is successful by using the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) interface. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
27197
27202
|
*
|
|
27198
27203
|
* @param request - ReplaceSystemDiskRequest
|
|
27199
27204
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -27288,13 +27293,11 @@ class Client extends openapi_core_1.default {
|
|
|
27288
27293
|
* * The category of the system disk cannot be changed.
|
|
27289
27294
|
* * Make sure that no unpaid orders are associated with the instance.
|
|
27290
27295
|
* * The instance must be in the `Stopped` state.
|
|
27291
|
-
*
|
|
27292
|
-
* **Note
|
|
27293
|
-
* *
|
|
27294
|
-
* *
|
|
27295
|
-
* After
|
|
27296
|
-
* * Call the [DescribeDisks](https://help.aliyun.com/document_detail/25514.html) operation to query the status of the new system disk. If the new system disk is in the In Use state, the system disk is replaced.
|
|
27297
|
-
* * Call the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) operation to query the status of the instance whose system disk is replaced. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
27296
|
+
* **
|
|
27297
|
+
* **Note:** The operation is applicable only to instances of the Virtual Private Cloud (VPC) type. If the instance is a pay-as-you-go instance and economical mode by default is enabled, you can enable standard mode when stopping the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](https://help.aliyun.com/document_detail/25501.html).
|
|
27298
|
+
* * You can use the parameter `SystemDisk.Size` to re-specify the size of the system disk (cannot be less than the original system disk capacity).
|
|
27299
|
+
* * If the `OperationLocks` parameter value of the instance contains `"LockReason": "security"`, then the ECS instance is locked for security. You cannot replace the system disk. For more information, see [API behavior when an instance is locked for security reasons](https://help.aliyun.com/document_detail/25695.html).
|
|
27300
|
+
* After the system disk is replaced, you can query the status of the instance to check whether the replacement is successful by using the [DescribeInstances](https://help.aliyun.com/document_detail/25506.html) interface. If the `OperationLocks` parameter is empty, the system disk is replaced.
|
|
27298
27301
|
*
|
|
27299
27302
|
* @param request - ReplaceSystemDiskRequest
|
|
27300
27303
|
* @returns ReplaceSystemDiskResponse
|
|
@@ -27574,8 +27577,8 @@ class Client extends openapi_core_1.default {
|
|
|
27574
27577
|
* Resizes a system disk or a data disk.
|
|
27575
27578
|
*
|
|
27576
27579
|
* @remarks
|
|
27577
|
-
* >
|
|
27578
|
-
* *
|
|
27580
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. If the format is MBR, you cannot resize the file to more than 2TiB. Otherwise, data loss may occur. If you want to resize an MBR partition, we recommend creating and mounting a data disk in the GPT partition format, and then copy the existing data to the new data disk. For more information, see [Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
27581
|
+
* * The disk types that can be resized include basic disks (`cloud` ), ultra disks (`cloud_efficiency` ), SSDs (`cloud_ssd` ), Enterprise SSDs (ESSDs)(`cloud_essd` ), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), premium elastic ephemeral disks (elastic_ephemeral_disk_premium), and Regional ESSDs (cloud_regional_disk_auto).
|
|
27579
27582
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
27580
27583
|
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
27581
27584
|
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|
|
@@ -27637,8 +27640,8 @@ class Client extends openapi_core_1.default {
|
|
|
27637
27640
|
* Resizes a system disk or a data disk.
|
|
27638
27641
|
*
|
|
27639
27642
|
* @remarks
|
|
27640
|
-
* >
|
|
27641
|
-
* *
|
|
27643
|
+
* > Before you call this operation to resize a disk, you must check the partition format of the disk. If the format is MBR, you cannot resize the file to more than 2TiB. Otherwise, data loss may occur. If you want to resize an MBR partition, we recommend creating and mounting a data disk in the GPT partition format, and then copy the existing data to the new data disk. For more information, see [Resize a disk to extend the disk capacity](https://help.aliyun.com/document_detail/44986.html).
|
|
27644
|
+
* * The disk types that can be resized include basic disks (`cloud` ), ultra disks (`cloud_efficiency` ), SSDs (`cloud_ssd` ), Enterprise SSDs (ESSDs)(`cloud_essd` ), ESSD AutoPL disks (cloud_auto), standard elastic ephemeral disks (elastic_ephemeral_disk_standard), premium elastic ephemeral disks (elastic_ephemeral_disk_premium), and Regional ESSDs (cloud_regional_disk_auto).
|
|
27642
27645
|
* * You cannot resize a cloud disk when a snapshot is being created for the disk. Wait until the snapshot is created before you resize the cloud disk.
|
|
27643
27646
|
* * You cannot call this operation to extend partitions or file systems. You must manually allocate partitions and file systems after the resize cloud disk capacity. For more information, see [Extend partitions and file systems (Linux)](~~2949817#bb3b1f02e51pj~~) and [Extend partitions and file systems (windows)](~~2932233#a9f9b78f3fujb~~).
|
|
27644
27647
|
* * If the multi-attach feature is enabled for a cloud disk, you can resize the disk online or offline. Make sure that the ECS instances to which the disk is attached meet the following requirements:
|