import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient"; import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; import { AcceptScheduledEventRequest } from './model/AcceptScheduledEventRequest'; import { AcceptScheduledEventResponse } from './model/AcceptScheduledEventResponse'; import { AddServerGroupMemberRequest } from './model/AddServerGroupMemberRequest'; import { AddServerGroupMemberResponse } from './model/AddServerGroupMemberResponse'; import { AssociateServerVirtualIpRequest } from './model/AssociateServerVirtualIpRequest'; import { AssociateServerVirtualIpResponse } from './model/AssociateServerVirtualIpResponse'; import { AttachServerVolumeRequest } from './model/AttachServerVolumeRequest'; import { AttachServerVolumeResponse } from './model/AttachServerVolumeResponse'; import { BatchAddServerGroupMemberRequest } from './model/BatchAddServerGroupMemberRequest'; import { BatchAddServerGroupMemberResponse } from './model/BatchAddServerGroupMemberResponse'; import { BatchAddServerNicsRequest } from './model/BatchAddServerNicsRequest'; import { BatchAddServerNicsResponse } from './model/BatchAddServerNicsResponse'; import { BatchAttachSharableVolumesRequest } from './model/BatchAttachSharableVolumesRequest'; import { BatchAttachSharableVolumesResponse } from './model/BatchAttachSharableVolumesResponse'; import { BatchCreateServerTagsRequest } from './model/BatchCreateServerTagsRequest'; import { BatchCreateServerTagsResponse } from './model/BatchCreateServerTagsResponse'; import { BatchDeleteServerGroupMemberRequest } from './model/BatchDeleteServerGroupMemberRequest'; import { BatchDeleteServerGroupMemberResponse } from './model/BatchDeleteServerGroupMemberResponse'; import { BatchDeleteServerNicsRequest } from './model/BatchDeleteServerNicsRequest'; import { BatchDeleteServerNicsResponse } from './model/BatchDeleteServerNicsResponse'; import { BatchDeleteServerTagsRequest } from './model/BatchDeleteServerTagsRequest'; import { BatchDeleteServerTagsResponse } from './model/BatchDeleteServerTagsResponse'; import { BatchDetachVolumesRequest } from './model/BatchDetachVolumesRequest'; import { BatchDetachVolumesResponse } from './model/BatchDetachVolumesResponse'; import { BatchRebootServersRequest } from './model/BatchRebootServersRequest'; import { BatchRebootServersResponse } from './model/BatchRebootServersResponse'; import { BatchResetServersPasswordRequest } from './model/BatchResetServersPasswordRequest'; import { BatchResetServersPasswordResponse } from './model/BatchResetServersPasswordResponse'; import { BatchResizeServersRequest } from './model/BatchResizeServersRequest'; import { BatchResizeServersResponse } from './model/BatchResizeServersResponse'; import { BatchStartServersRequest } from './model/BatchStartServersRequest'; import { BatchStartServersResponse } from './model/BatchStartServersResponse'; import { BatchStopServersRequest } from './model/BatchStopServersRequest'; import { BatchStopServersResponse } from './model/BatchStopServersResponse'; import { BatchUpdateServersNameRequest } from './model/BatchUpdateServersNameRequest'; import { BatchUpdateServersNameResponse } from './model/BatchUpdateServersNameResponse'; import { ChangeServerChargeModeRequest } from './model/ChangeServerChargeModeRequest'; import { ChangeServerChargeModeResponse } from './model/ChangeServerChargeModeResponse'; import { ChangeServerNetworkInterfaceRequest } from './model/ChangeServerNetworkInterfaceRequest'; import { ChangeServerNetworkInterfaceResponse } from './model/ChangeServerNetworkInterfaceResponse'; import { ChangeServerOsWithCloudInitRequest } from './model/ChangeServerOsWithCloudInitRequest'; import { ChangeServerOsWithCloudInitResponse } from './model/ChangeServerOsWithCloudInitResponse'; import { ChangeServerOsWithoutCloudInitRequest } from './model/ChangeServerOsWithoutCloudInitRequest'; import { ChangeServerOsWithoutCloudInitResponse } from './model/ChangeServerOsWithoutCloudInitResponse'; import { ChangeVpcRequest } from './model/ChangeVpcRequest'; import { ChangeVpcResponse } from './model/ChangeVpcResponse'; import { CreateLaunchTemplateRequest } from './model/CreateLaunchTemplateRequest'; import { CreateLaunchTemplateResponse } from './model/CreateLaunchTemplateResponse'; import { CreatePostPaidServersRequest } from './model/CreatePostPaidServersRequest'; import { CreatePostPaidServersResponse } from './model/CreatePostPaidServersResponse'; import { CreateServerGroupRequest } from './model/CreateServerGroupRequest'; import { CreateServerGroupResponse } from './model/CreateServerGroupResponse'; import { CreateServersRequest } from './model/CreateServersRequest'; import { CreateServersResponse } from './model/CreateServersResponse'; import { DeleteLaunchTemplatesRequest } from './model/DeleteLaunchTemplatesRequest'; import { DeleteLaunchTemplatesResponse } from './model/DeleteLaunchTemplatesResponse'; import { DeleteRecycleBinServerRequest } from './model/DeleteRecycleBinServerRequest'; import { DeleteRecycleBinServerResponse } from './model/DeleteRecycleBinServerResponse'; import { DeleteServerGroupMemberRequest } from './model/DeleteServerGroupMemberRequest'; import { DeleteServerGroupMemberResponse } from './model/DeleteServerGroupMemberResponse'; import { DeleteServerGroupRequest } from './model/DeleteServerGroupRequest'; import { DeleteServerGroupResponse } from './model/DeleteServerGroupResponse'; import { DeleteServerMetadataRequest } from './model/DeleteServerMetadataRequest'; import { DeleteServerMetadataResponse } from './model/DeleteServerMetadataResponse'; import { DeleteServerPasswordRequest } from './model/DeleteServerPasswordRequest'; import { DeleteServerPasswordResponse } from './model/DeleteServerPasswordResponse'; import { DeleteServersRequest } from './model/DeleteServersRequest'; import { DeleteServersResponse } from './model/DeleteServersResponse'; import { DetachServerVolumeRequest } from './model/DetachServerVolumeRequest'; import { DetachServerVolumeResponse } from './model/DetachServerVolumeResponse'; import { DisassociateServerVirtualIpRequest } from './model/DisassociateServerVirtualIpRequest'; import { DisassociateServerVirtualIpResponse } from './model/DisassociateServerVirtualIpResponse'; import { ExecuteServerDumpRequest } from './model/ExecuteServerDumpRequest'; import { ExecuteServerDumpResponse } from './model/ExecuteServerDumpResponse'; import { ExecuteServerRedeployRequest } from './model/ExecuteServerRedeployRequest'; import { ExecuteServerRedeployResponse } from './model/ExecuteServerRedeployResponse'; import { ListCloudServersRequest } from './model/ListCloudServersRequest'; import { ListCloudServersResponse } from './model/ListCloudServersResponse'; import { ListFlavorSellPoliciesRequest } from './model/ListFlavorSellPoliciesRequest'; import { ListFlavorSellPoliciesResponse } from './model/ListFlavorSellPoliciesResponse'; import { ListFlavorsRequest } from './model/ListFlavorsRequest'; import { ListFlavorsResponse } from './model/ListFlavorsResponse'; import { ListLaunchTemplateVersionsRequest } from './model/ListLaunchTemplateVersionsRequest'; import { ListLaunchTemplateVersionsResponse } from './model/ListLaunchTemplateVersionsResponse'; import { ListRecycleBinServersRequest } from './model/ListRecycleBinServersRequest'; import { ListRecycleBinServersResponse } from './model/ListRecycleBinServersResponse'; import { ListResizeFlavorsRequest } from './model/ListResizeFlavorsRequest'; import { ListResizeFlavorsResponse } from './model/ListResizeFlavorsResponse'; import { ListScheduledEventsRequest } from './model/ListScheduledEventsRequest'; import { ListScheduledEventsResponse } from './model/ListScheduledEventsResponse'; import { ListServerAzInfoRequest } from './model/ListServerAzInfoRequest'; import { ListServerAzInfoResponse } from './model/ListServerAzInfoResponse'; import { ListServerBlockDevicesRequest } from './model/ListServerBlockDevicesRequest'; import { ListServerBlockDevicesResponse } from './model/ListServerBlockDevicesResponse'; import { ListServerGroupsRequest } from './model/ListServerGroupsRequest'; import { ListServerGroupsResponse } from './model/ListServerGroupsResponse'; import { ListServerInterfacesRequest } from './model/ListServerInterfacesRequest'; import { ListServerInterfacesResponse } from './model/ListServerInterfacesResponse'; import { ListServerTagsRequest } from './model/ListServerTagsRequest'; import { ListServerTagsResponse } from './model/ListServerTagsResponse'; import { ListServerVolumeAttachmentsRequest } from './model/ListServerVolumeAttachmentsRequest'; import { ListServerVolumeAttachmentsResponse } from './model/ListServerVolumeAttachmentsResponse'; import { ListServersByTagRequest } from './model/ListServersByTagRequest'; import { ListServersByTagResponse } from './model/ListServersByTagResponse'; import { ListServersDetailsRequest } from './model/ListServersDetailsRequest'; import { ListServersDetailsResponse } from './model/ListServersDetailsResponse'; import { ListTemplatesRequest } from './model/ListTemplatesRequest'; import { ListTemplatesResponse } from './model/ListTemplatesResponse'; import { MigrateServerRequest } from './model/MigrateServerRequest'; import { MigrateServerResponse } from './model/MigrateServerResponse'; import { NovaAssociateSecurityGroupRequest } from './model/NovaAssociateSecurityGroupRequest'; import { NovaAssociateSecurityGroupResponse } from './model/NovaAssociateSecurityGroupResponse'; import { NovaAttachInterfaceRequest } from './model/NovaAttachInterfaceRequest'; import { NovaAttachInterfaceResponse } from './model/NovaAttachInterfaceResponse'; import { NovaCreateKeypairRequest } from './model/NovaCreateKeypairRequest'; import { NovaCreateKeypairResponse } from './model/NovaCreateKeypairResponse'; import { NovaCreateServersRequest } from './model/NovaCreateServersRequest'; import { NovaCreateServersResponse } from './model/NovaCreateServersResponse'; import { NovaDeleteKeypairRequest } from './model/NovaDeleteKeypairRequest'; import { NovaDeleteKeypairResponse } from './model/NovaDeleteKeypairResponse'; import { NovaDeleteServerRequest } from './model/NovaDeleteServerRequest'; import { NovaDeleteServerResponse } from './model/NovaDeleteServerResponse'; import { NovaDisassociateSecurityGroupRequest } from './model/NovaDisassociateSecurityGroupRequest'; import { NovaDisassociateSecurityGroupResponse } from './model/NovaDisassociateSecurityGroupResponse'; import { NovaListAvailabilityZonesRequest } from './model/NovaListAvailabilityZonesRequest'; import { NovaListAvailabilityZonesResponse } from './model/NovaListAvailabilityZonesResponse'; import { NovaListKeypairsRequest } from './model/NovaListKeypairsRequest'; import { NovaListKeypairsResponse } from './model/NovaListKeypairsResponse'; import { NovaListServerSecurityGroupsRequest } from './model/NovaListServerSecurityGroupsRequest'; import { NovaListServerSecurityGroupsResponse } from './model/NovaListServerSecurityGroupsResponse'; import { NovaListServersDetailsRequest } from './model/NovaListServersDetailsRequest'; import { NovaListServersDetailsResponse } from './model/NovaListServersDetailsResponse'; import { NovaListServersRequest } from './model/NovaListServersRequest'; import { NovaListServersResponse } from './model/NovaListServersResponse'; import { NovaListVersionsRequest } from './model/NovaListVersionsRequest'; import { NovaListVersionsResponse } from './model/NovaListVersionsResponse'; import { NovaShowFlavorExtraSpecsRequest } from './model/NovaShowFlavorExtraSpecsRequest'; import { NovaShowFlavorExtraSpecsResponse } from './model/NovaShowFlavorExtraSpecsResponse'; import { NovaShowKeypairRequest } from './model/NovaShowKeypairRequest'; import { NovaShowKeypairResponse } from './model/NovaShowKeypairResponse'; import { NovaShowServerInterfaceRequest } from './model/NovaShowServerInterfaceRequest'; import { NovaShowServerInterfaceResponse } from './model/NovaShowServerInterfaceResponse'; import { NovaShowServerRequest } from './model/NovaShowServerRequest'; import { NovaShowServerResponse } from './model/NovaShowServerResponse'; import { NovaShowVersionRequest } from './model/NovaShowVersionRequest'; import { NovaShowVersionResponse } from './model/NovaShowVersionResponse'; import { RegisterServerMonitorRequest } from './model/RegisterServerMonitorRequest'; import { RegisterServerMonitorResponse } from './model/RegisterServerMonitorResponse'; import { ReinstallServerWithCloudInitRequest } from './model/ReinstallServerWithCloudInitRequest'; import { ReinstallServerWithCloudInitResponse } from './model/ReinstallServerWithCloudInitResponse'; import { ReinstallServerWithoutCloudInitRequest } from './model/ReinstallServerWithoutCloudInitRequest'; import { ReinstallServerWithoutCloudInitResponse } from './model/ReinstallServerWithoutCloudInitResponse'; import { ResetServerPasswordRequest } from './model/ResetServerPasswordRequest'; import { ResetServerPasswordResponse } from './model/ResetServerPasswordResponse'; import { ResizePostPaidServerRequest } from './model/ResizePostPaidServerRequest'; import { ResizePostPaidServerResponse } from './model/ResizePostPaidServerResponse'; import { ResizeServerRequest } from './model/ResizeServerRequest'; import { ResizeServerResponse } from './model/ResizeServerResponse'; import { RevertRecycleBinServerRequest } from './model/RevertRecycleBinServerRequest'; import { RevertRecycleBinServerResponse } from './model/RevertRecycleBinServerResponse'; import { ShowAppendableVolumeQuotaRequest } from './model/ShowAppendableVolumeQuotaRequest'; import { ShowAppendableVolumeQuotaResponse } from './model/ShowAppendableVolumeQuotaResponse'; import { ShowFlavorCapacityRequest } from './model/ShowFlavorCapacityRequest'; import { ShowFlavorCapacityResponse } from './model/ShowFlavorCapacityResponse'; import { ShowJobRequest } from './model/ShowJobRequest'; import { ShowJobResponse } from './model/ShowJobResponse'; import { ShowMetadataOptionsRequest } from './model/ShowMetadataOptionsRequest'; import { ShowMetadataOptionsResponse } from './model/ShowMetadataOptionsResponse'; import { ShowRecycleBinRequest } from './model/ShowRecycleBinRequest'; import { ShowRecycleBinResponse } from './model/ShowRecycleBinResponse'; import { ShowResetPasswordFlagRequest } from './model/ShowResetPasswordFlagRequest'; import { ShowResetPasswordFlagResponse } from './model/ShowResetPasswordFlagResponse'; import { ShowSerialConsoleActionsRequest } from './model/ShowSerialConsoleActionsRequest'; import { ShowSerialConsoleActionsResponse } from './model/ShowSerialConsoleActionsResponse'; import { ShowServerAttachableNicNumRequest } from './model/ShowServerAttachableNicNumRequest'; import { ShowServerAttachableNicNumResponse } from './model/ShowServerAttachableNicNumResponse'; import { ShowServerBlockDeviceRequest } from './model/ShowServerBlockDeviceRequest'; import { ShowServerBlockDeviceResponse } from './model/ShowServerBlockDeviceResponse'; import { ShowServerConsoleOutputRequest } from './model/ShowServerConsoleOutputRequest'; import { ShowServerConsoleOutputResponse } from './model/ShowServerConsoleOutputResponse'; import { ShowServerGroupRequest } from './model/ShowServerGroupRequest'; import { ShowServerGroupResponse } from './model/ShowServerGroupResponse'; import { ShowServerLimitsRequest } from './model/ShowServerLimitsRequest'; import { ShowServerLimitsResponse } from './model/ShowServerLimitsResponse'; import { ShowServerPasswordRequest } from './model/ShowServerPasswordRequest'; import { ShowServerPasswordResponse } from './model/ShowServerPasswordResponse'; import { ShowServerRemoteConsoleRequest } from './model/ShowServerRemoteConsoleRequest'; import { ShowServerRemoteConsoleResponse } from './model/ShowServerRemoteConsoleResponse'; import { ShowServerRequest } from './model/ShowServerRequest'; import { ShowServerResponse } from './model/ShowServerResponse'; import { ShowServerTagsRequest } from './model/ShowServerTagsRequest'; import { ShowServerTagsResponse } from './model/ShowServerTagsResponse'; import { UpdateMetadataOptionsRequest } from './model/UpdateMetadataOptionsRequest'; import { UpdateMetadataOptionsResponse } from './model/UpdateMetadataOptionsResponse'; import { UpdateRecycleBinPolicyRequest } from './model/UpdateRecycleBinPolicyRequest'; import { UpdateRecycleBinPolicyResponse } from './model/UpdateRecycleBinPolicyResponse'; import { UpdateRecycleBinRequest } from './model/UpdateRecycleBinRequest'; import { UpdateRecycleBinResponse } from './model/UpdateRecycleBinResponse'; import { UpdateScheduledEventRequest } from './model/UpdateScheduledEventRequest'; import { UpdateScheduledEventResponse } from './model/UpdateScheduledEventResponse'; import { UpdateSerialConsoleOptionsRequest } from './model/UpdateSerialConsoleOptionsRequest'; import { UpdateSerialConsoleOptionsResponse } from './model/UpdateSerialConsoleOptionsResponse'; import { UpdateServerAutoTerminateTimeRequest } from './model/UpdateServerAutoTerminateTimeRequest'; import { UpdateServerAutoTerminateTimeResponse } from './model/UpdateServerAutoTerminateTimeResponse'; import { UpdateServerBlockDeviceRequest } from './model/UpdateServerBlockDeviceRequest'; import { UpdateServerBlockDeviceResponse } from './model/UpdateServerBlockDeviceResponse'; import { UpdateServerInterfaceRequest } from './model/UpdateServerInterfaceRequest'; import { UpdateServerInterfaceResponse } from './model/UpdateServerInterfaceResponse'; import { UpdateServerMetadataRequest } from './model/UpdateServerMetadataRequest'; import { UpdateServerMetadataResponse } from './model/UpdateServerMetadataResponse'; import { UpdateServerRequest } from './model/UpdateServerRequest'; import { UpdateServerResponse } from './model/UpdateServerResponse'; export declare class EcsClient { static newBuilder(): ClientBuilder; private hcClient; constructor(client: HcClient); getPath(): string; /** * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 接受并授权执行计划事件操作 * @param {string} id resource id * @param {ScheduledEventAcceptBody} scheduledEventAcceptBody 修改计划事件计划执行开始时间 * @param {*} [options] Override http request option. * @throws {RequiredError} */ acceptScheduledEvent(acceptScheduledEventRequest?: AcceptScheduledEventRequest): Promise; /** * 将云服务器加入云服务器组。添加成功后,如果该云服务器组是反亲和性策略的,则该云服务器与云服务器组中的其他成员尽量分散地创建在不同主机上。如果该云服务器时故障域类型的,则该云服务器会拥有故障域属性。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 添加云服务器组成员 * @param {string} serverGroupId 云服务器组ID。 * @param {AddServerGroupMemberRequestBody} addServerGroupMemberRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ addServerGroupMember(addServerGroupMemberRequest?: AddServerGroupMemberRequest): Promise; /** * 虚拟IP地址用于为网卡提供第二个IP地址,同时支持与多个弹性云服务器的网卡绑定,从而实现多个弹性云服务器之间的高可用性。 * * 该接口用于给云服务器网卡配置虚拟IP地址: * * - 当指定的IP地址是一个不存在的虚拟IP地址时,系统会创建该虚拟IP,并绑定至对应网卡。 * * - 当指定的IP地址是一个已经创建好的私有IP时,系统会将指定的网卡和虚拟IP绑定。如果该IP的device_owner为空,则仅支持VPC内二三层通信;如果该IP的device_owner为neutron:VIP_PORT,则支持VPC内二三层通信、VPC之间对等连接访问,以及弹性公网IP、VPN、云专线等Internet接入。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器网卡配置虚拟IP地址 * @param {string} nicId 云服务器网卡ID。 * @param {AssociateServerVirtualIpRequestBody} associateServerVirtualIpRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ associateServerVirtualIp(associateServerVirtualIpRequest?: AssociateServerVirtualIpRequest): Promise; /** * 把磁盘挂载到弹性云服务器上。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 弹性云服务器挂载磁盘 * @param {string} serverId 云服务器ID。 * @param {AttachServerVolumeRequestBody} attachServerVolumeRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ attachServerVolume(attachServerVolumeRequest?: AttachServerVolumeRequest): Promise; /** * 将云服务器加入云服务器组。添加成功后,该云服务器与云服务器组中的其他成员尽量分散地创建在不同主机上。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器组批量添加成员 * @param {string} serverGroupId * @param {BatchAddServerGroupMemberReq} batchAddServerGroupMemberReq This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchAddServerGroupMember(batchAddServerGroupMemberRequest?: BatchAddServerGroupMemberRequest): Promise; /** * 给云服务器添加一张或多张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量添加云服务器网卡 * @param {string} serverId 云服务器ID。 * @param {BatchAddServerNicsRequestBody} batchAddServerNicsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchAddServerNics(batchAddServerNicsRequest?: BatchAddServerNicsRequest): Promise; /** * 将指定的共享磁盘一次性挂载到多个弹性云服务器,实现批量挂载。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量挂载指定共享盘 * @param {string} volumeId 共享磁盘ID。 * @param {BatchAttachSharableVolumesRequestBody} batchAttachSharableVolumesRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchAttachSharableVolumes(batchAttachSharableVolumesRequest?: BatchAttachSharableVolumesRequest): Promise; /** * - 为指定云服务器批量添加标签。 * * - 标签管理服务TMS使用该接口批量管理云服务器的标签。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量添加云服务器标签 * @param {string} serverId 云服务器ID。 * @param {BatchCreateServerTagsRequestBody} batchCreateServerTagsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchCreateServerTags(batchCreateServerTagsRequest?: BatchCreateServerTagsRequest): Promise; /** * 将弹性云服务器移出云服务器组。移出后,该云服务器与云服务器组中的成员不再遵从反亲和策略。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器组批量删除成员 * @param {string} serverGroupId * @param {BatchDeleteServerGroupMemberReq} batchDeleteServerGroupMemberReq This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteServerGroupMember(batchDeleteServerGroupMemberRequest?: BatchDeleteServerGroupMemberRequest): Promise; /** * 卸载并删除云服务器中的一张或多张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量删除云服务器网卡 * @param {string} serverId 云服务器ID。 * @param {BatchDeleteServerNicsRequestBody} batchDeleteServerNicsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteServerNics(batchDeleteServerNicsRequest?: BatchDeleteServerNicsRequest): Promise; /** * - 为指定云服务器批量删除标签。 * * - 标签管理服务TMS使用该接口批量管理云服务器的标签。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量删除云服务器标签 * @param {string} serverId 云服务器ID。 * @param {BatchDeleteServerTagsRequestBody} batchDeleteServerTagsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteServerTags(batchDeleteServerTagsRequest?: BatchDeleteServerTagsRequest): Promise; /** * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量卸载指定共享盘 * @param {string} volumeId 卷ID。 * @param {VolumeBatchDetachRequest} volumeBatchDetachRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDetachVolumes(batchDetachVolumesRequest?: BatchDetachVolumesRequest): Promise; /** * 根据给定的云服务器ID列表,批量重启云服务器,一次最多可以重启1000台。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量重启云服务器 * @param {BatchRebootServersRequestBody} batchRebootServersRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchRebootServers(batchRebootServersRequest?: BatchRebootServersRequest): Promise; /** * 批量重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量重置弹性云服务器密码 * @param {BatchResetServersPasswordRequestBody} batchResetServersPasswordRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchResetServersPassword(batchResetServersPasswordRequest?: BatchResetServersPasswordRequest): Promise; /** * 批量变更云服务器规格 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量变更云服务器规格 * @param {BatchResizeServersReq} batchResizeServersReq * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchResizeServers(batchResizeServersRequest?: BatchResizeServersRequest): Promise; /** * 根据给定的云服务器ID列表,批量启动云服务器,一次最多可以启动1000台。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量启动云服务器 * @param {BatchStartServersRequestBody} batchStartServersRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchStartServers(batchStartServersRequest?: BatchStartServersRequest): Promise; /** * 根据给定的云服务器ID列表,批量关闭云服务器,一次最多可以关闭1000台。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量关闭云服务器 * @param {BatchStopServersRequestBody} batchStopServersRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchStopServers(batchStopServersRequest?: BatchStopServersRequest): Promise; /** * 批量修改弹性云服务器信息。 * 当前仅支持批量修改云服务器名称,一次最多可以修改1000台。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 批量修改弹性云服务器 * @param {BatchUpdateServersNameRequestBody} batchUpdateServersNameRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchUpdateServersName(batchUpdateServersNameRequest?: BatchUpdateServersNameRequest): Promise; /** * 更换云服务器的计费模式 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更换云服务器计费模式 * @param {ChangeServerChargeModeRequestBody} changeServerChargeModeRequestBody This is a change server charge mode Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ changeServerChargeMode(changeServerChargeModeRequest?: ChangeServerChargeModeRequest): Promise; /** * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新云服务器指定网卡属性 * @param {string} portId 网卡port id * @param {string} serverId 云服务器ID。 * @param {ChangeServerNetworkInterfaceRequestBody} changeServerNetworkInterfaceRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ changeServerNetworkInterface(changeServerNetworkInterfaceRequest?: ChangeServerNetworkInterfaceRequest): Promise; /** * 切换弹性云服务器操作系统。支持弹性云服务器数据盘不变的情况下,使用新镜像重装系统盘。 * * 调用该接口后,系统将卸载系统盘,然后使用新镜像重新创建系统盘,并挂载至弹性云服务器,实现切换操作系统功能。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 切换弹性云服务器操作系统(安装Cloud init) * @param {string} serverId 云服务器ID。 * @param {ChangeServerOsWithCloudInitRequestBody} changeServerOsWithCloudInitRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ changeServerOsWithCloudInit(changeServerOsWithCloudInitRequest?: ChangeServerOsWithCloudInitRequest): Promise; /** * 切换弹性云服务器操作系统。 * * 该接口支持未安装Cloud-init或Cloudbase-init的镜像使用。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 切换弹性云服务器操作系统(未安装Cloud init) * @param {string} serverId 云服务器ID。 * @param {ChangeServerOsWithoutCloudInitRequestBody} changeServerOsWithoutCloudInitRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ changeServerOsWithoutCloudInit(changeServerOsWithoutCloudInitRequest?: ChangeServerOsWithoutCloudInitRequest): Promise; /** * 云服务器切换虚拟私有云。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器切换虚拟私有云 * @param {string} serverId 云服务器ID。 * @param {ChangeVpcRequestBody} changeOsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ changeVpc(changeVpcRequest?: ChangeVpcRequest): Promise; /** * 创建启动模板。将创建一个全新的模板,并自动生成版本号为1的作为默认版本。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建模板 * @param {CreateLaunchTemplateRequestBody} createLaunchTemplateRequestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createLaunchTemplate(createLaunchTemplateRequest?: CreateLaunchTemplateRequest): Promise; /** * 创建一台或多台[按需付费](https://support.huaweicloud.com/productdesc-ecs/ecs_01_0065.html)方式的云服务器。 * * 弹性云服务器的登录鉴权方式包括两种:密钥对、密码。为安全起见,推荐使用密钥对方式。 * * - 密钥对 * 密钥对指使用密钥对作为弹性云服务器的鉴权方式。 * 接口调用方法:使用key_name字段,指定弹性云服务器登录时使用的密钥文件。 * * - 密码 * 密码指使用设置初始密码方式作为弹性云服务器的鉴权方式,此时,您可以通过用户名密码方式登录弹性云服务器,Linux操作系统时为root用户的初始密码,Windows操作系统时为Administrator用户的初始密码。 * * 接口调用方法:使用adminPass字段,指定管理员帐号的初始登录密码。对于镜像已安装Cloud-init的Linux云服务器,如果需要使用密文密码,可以使用user_data字段进行密码注入。 * * > 对于安装Cloud-init镜像的Linux云服务器云主机,若指定user_data字段,则adminPass字段无效。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建云服务器(按需) * @param {CreatePostPaidServersRequestBody} createPostPaidServersRequestBody This is a auto create Body Object * @param {string} [xClientToken] 保证客户端请求幂等性的标识 * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPostPaidServers(createPostPaidServersRequest?: CreatePostPaidServersRequest): Promise; /** * 创建弹性云服务器组。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建云服务器组 * @param {CreateServerGroupRequestBody} createServerGroupRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ createServerGroup(createServerGroupRequest?: CreateServerGroupRequest): Promise; /** * 创建一台或多台云服务器。 * * 指该接口兼容《弹性云服务器接口参考》创建云服务器v1的功能,同时合入新功能,支持创建[包年/包月](https://support.huaweicloud.com/productdesc-ecs/ecs_01_0065.html)的弹性云服务器。 * * 弹性云服务器的登录鉴权方式包括两种:密钥对、密码。为安全起见,推荐使用密钥对方式。 * * - 密钥对 * * 指使用密钥对作为弹性云服务器的鉴权方式。 * * 接口调用方法:使用key_name字段,指定弹性云服务器登录时使用的密钥文件。 * * - 密码 * * 指使用设置初始密码方式作为弹性云服务器的鉴权方式,此时,您可以通过用户名密码方式登录弹性云服务器,Linux操作系统时为root用户的初始密码,Windows操作系统时为Administrator用户的初始密码。 * * 接口调用方法:使用adminPass字段,指定管理员帐号的初始登录密码。对于镜像已安装Cloud-init的Linux云服务器,如果需要使用密文密码,可以使用user_data字段进行密码注入。 * * > 对于安装Cloud-init镜像的Linux云服务器云主机,若指定user_data字段,则adminPass字段无效。 * * 购买操作示例: * - [使用API购买ECS过程中常见问题及处理方法](https://support.huaweicloud.com/api-ecs/ecs_04_0007.html) * - [获取Token并检验Token的有效期 ](https://support.huaweicloud.com/api-ecs/ecs_04_0008.html) * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建云服务器 * @param {CreateServersRequestBody} createServersRequestBody This is a auto create Body Object * @param {string} [xClientToken] 保证客户端请求幂等性的标识 * @param {*} [options] Override http request option. * @throws {RequiredError} */ createServers(createServersRequest?: CreateServersRequest): Promise; /** * 删除启动模板。删除一个启动模板。并同时删除模板下所有的版本。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除模板 * @param {string} launchTemplateId 模板ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteLaunchTemplates(deleteLaunchTemplatesRequest?: DeleteLaunchTemplatesRequest): Promise; /** * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除回收站中虚拟机 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRecycleBinServer(deleteRecycleBinServerRequest?: DeleteRecycleBinServerRequest): Promise; /** * 删除云服务器组。 * * 与原生的删除云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云服务器组 * @param {string} serverGroupId 弹性云服务器组UUID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteServerGroup(deleteServerGroupRequest?: DeleteServerGroupRequest): Promise; /** * 将弹性云服务器移出云服务器组。移出后,该云服务器与云服务器组中的成员不再遵从反亲和策略。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云服务器组成员 * @param {string} serverGroupId 云服务器组ID。 * @param {DeleteServerGroupMemberRequestBody} deleteServerGroupMemberRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteServerGroupMember(deleteServerGroupMemberRequest?: DeleteServerGroupMemberRequest): Promise; /** * 删除云服务器指定元数据。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云服务器指定元数据 * @param {string} key 待删除的云服务器metadata键值 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteServerMetadata(deleteServerMetadataRequest?: DeleteServerMetadataRequest): Promise; /** * 清除Windows云服务器初始安装时系统生成的密码记录。清除密码后,不影响云服务器密码登录功能,但不能再使用获取密码功能来查询该云服务器密码。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器清除密码(企业项目) * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteServerPassword(deleteServerPasswordRequest?: DeleteServerPasswordRequest): Promise; /** * 根据指定的云服务器ID列表,删除云服务器。 * * 系统支持删除单台云服务器和批量删除多台云服务器操作,批量删除云服务器时,一次最多可以删除1000台。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云服务器 * @param {DeleteServersRequestBody} deleteServersRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteServers(deleteServersRequest?: DeleteServersRequest): Promise; /** * 从弹性云服务器中卸载磁盘。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 弹性云服务器卸载磁盘 * @param {string} serverId 云服务器ID。 * @param {string} volumeId 磁盘ID。 * @param {'0' | '1'} [deleteFlag] 是否强制卸载数据盘。 - 是,值为“1”。 - 否,值为“0”。 默认值为0。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ detachServerVolume(detachServerVolumeRequest?: DetachServerVolumeRequest): Promise; /** * 虚拟IP地址用于为网卡提供第二个IP地址,同时支持与多个弹性云服务器的网卡绑定,从而实现多个弹性云服务器之间的高可用性。 * * 该接口用于解绑定弹性云服务器网卡的虚拟IP地址。解绑后,网卡不会被删除。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器网卡解绑虚拟IP地址 * @param {string} nicId 云服务器网卡ID。 * @param {DisassociateServerVirtualIpRequestBody} disassociateServerVirtualIpRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ disassociateServerVirtualIp(disassociateServerVirtualIpRequest?: DisassociateServerVirtualIpRequest): Promise; /** * 触发云服务器内核dump * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 触发云服务器内核dump * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeServerDump(executeServerDumpRequest?: ExecuteServerDumpRequest): Promise; /** * 重部署云服务器 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 重部署云服务器 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeServerRedeploy(executeServerRedeployRequest?: ExecuteServerRedeployRequest): Promise; /** * 查询云服务器列表接口。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器列表接口 * @param {string} [id] 云服务器ID,格式为UUID,匹配规则为精确匹配。 * @param {string} [name] 云服务器名称,匹配规则为模糊匹配。 * @param {string} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) * @param {boolean} [inRecycleBin] 云服务器是否处于回收站中 * @param {string} [spodId] 共池裸机按整机柜发放的同一批次的批创id。 * @param {string} [flavorName] 云服务器规格名称。 * @param {string} [imageId] 镜像ID。 * @param {string} [metadata] 元数据过滤,支持key=value过滤。 * @param {string} [metadataKey] 元数据key过滤。 * @param {string} [tags] 查询tag字段中包含该值的云服务器。 * @param {string} [notTags] 查询tag字段中不包含该值的云服务器 * @param {string} [availabilityZone] 云服务器所在的AZ,匹配规则为模糊匹配。 * @param {string} [availabilityZoneEq] 云服务器所在的AZ,匹配规则为精确匹配。 * @param {string} [chargingMode] 云服务器的计费类型。 * @param {string} [keyName] 云服务器使用的密钥对名称。 * @param {string} [launchedSince] 过滤在launched_since时间之后启动的云服务器。格式为ISO8601时间格式,例如:2013-06-09T06:42:18Z。 * @param {string} [enterpriseProjectId] 过滤绑定某个企业项目的云服务器。 若需要查询当前用户所有企业项目绑定的云服务,请传参all_granted_eps。 * @param {Array} [expectFields] 控制查询输出的字段。在默认字段的基础上选择是否查询。 launched_at:云服务器启动时间。 key_name:云服务器使用的密钥对名称。 locked:云服务器是否为锁定状态。 root_device_name:云服务器系统盘的设备名称。 tenancy:在专属主机或共享池中创建云服务器。 dedicated_host_id:专属主机ID。 enterprise_project_id:查询绑定某个企业项目的云服务器。 tags:云服务器的标签列表。 metadata:云服务器元数据。 addresses:云服务器对应的网络地址信息。 security_groups:云服务器的安全组信息。 volumes_attached:云服务器挂载磁盘信息。 image:云服务器镜像信息。 power_state:云服务器电源状态。 cpu_options:自定义CPU选项。 market_info:云服务器计费信息,包含计费类型、到期时间等字段。 * @param {number} [limit] 查询返回VM数量限制。 limit 默认为10,最大为100。 * @param {string} [marker] 以单页最后一条server的ID作为分页标记。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCloudServers(listCloudServersRequest?: ListCloudServersRequest): Promise; /** * 查询规格销售策略。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询规格销售策略 * @param {string} [flavorId] 云服务器的系统规格的ID * @param {'available' | 'sellout'} [sellStatus] 云服务器的系统规格销售状态。 取值范围: - available:正常售卖 - sellout:售罄 * @param {'postPaid' | 'prePaid' | 'spot' | 'ri'} [sellMode] 计费模式。 key的取值范围: - postPaid:按需计费实例。 - prePaid:包年/包月计费实例。 - spot:竞价实例。 - ri:预留实例。 * @param {string} [availabilityZoneId] 可用区,需要指定可用区(AZ) * @param {number} [longestSpotDurationHoursGt] 查询竞价实例时长大于设置值的策略 * @param {number} [largestSpotDurationCountGt] 查询“竞价实例时长”的个数大于设置值的策略 * @param {number} [longestSpotDurationHours] 查询竞价实例时长等于设置值的策略 * @param {number} [largestSpotDurationCount] 查询“竞价实例时长”的个数等于设置值的策略 * @param {'immediate' | 'delay'} [interruptionPolicy] 中断策略。 取值范围: - immediate:立即释放 - delay:延迟释放 * @param {number} [limit] 单页面可显示的flavor条数最大值,默认是1000。 * @param {string} [marker] 以单页最后一条flavor的ID作为分页标记。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFlavorSellPolicies(listFlavorSellPoliciesRequest?: ListFlavorSellPoliciesRequest): Promise; /** * 查询云服务器规格详情信息和规格扩展信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询规格详情和规格扩展信息列表 * @param {string} [availabilityZone] 可用区,需要指定可用区(AZ)的名称或者ID或者code。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。 * @param {string} [flavorId] 规格id * @param {number} [limit] 查询返回云服务器规格列表当前页面的数量。默认为1000 * @param {string} [marker] 从marker指定的flavor_id的下一条数据开始查询 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFlavors(listFlavorsRequest?: ListFlavorsRequest): Promise; /** * 根据用户请求条件从数据库筛选、查询启动模板的版本相关信息,支持按照image_id和flavor_id进行过滤。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询模板版本列表 * @param {number} [limit] max number of resources to return * @param {string} [marker] next page resource index id * @param {string} [launchTemplateId] 模板id * @param {string} [imageId] 镜像id * @param {string} [flavorId] 规格id * @param {Array} [version] 版本 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLaunchTemplateVersions(listLaunchTemplateVersionsRequest?: ListLaunchTemplateVersionsRequest): Promise; /** * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询回收站中虚拟机列表 * @param {string} [allTenants] 所有租户 管理员字段 1: 返回所有租户的VM 0: 返回当前租户的VM,如果为0,与不设置该查询字段的效果一致 * @param {string} [availabilityZone] * @param {'Available values : power_state' | 'host_status' | 'hostname' | 'hypervisor_hostname' | 'user_data' | 'key_name' | 'root_device_name' | 'volumes_attached' | 'security_groups' | 'addresses' | 'image' | 'metadata' | 'tags' | 'system_tags' | 'dedicated_host_id' | 'enterprise_project_id' | 'cpu_options'} [expectFields] * @param {string} [ipAddress] * @param {number} [limit] * @param {string} [marker] * @param {string} [name] * @param {string} [offset] * @param {Array} [tags] * @param {Array} [tagsKey] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecycleBinServers(listRecycleBinServersRequest?: ListRecycleBinServersRequest): Promise; /** * 变更规格时,部分规格的云服务器之间不能互相变更。您可以通过本接口,通过指定弹性云服务器规格,查询该规格可以变更的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器规格变更支持列表 * @param {string} [instanceUuid] 进行规格切换的云服务器ID,UUID格式。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空) * @param {number} [limit] 单页面可显示的flavor条数最大值,默认是1000。 * @param {string} [marker] 以单页最后一条flavor的ID作为分页标记。 * @param {'asc' | 'desc'} [sortDir] 升序/降序排序,默认值为:asc。 取值范围: - asc:表示升序。 - desc:表示降序 * @param {'flavorid' | 'sort_key' | 'name' | 'memory_mb' | 'vcpus' | 'root_gb'} [sortKey] 排序字段。默认值为“flavorid”。 key的取值范围: - flavorid:表示规格ID。 - name:表示规格名称。 - memory_mb:表示内存大小。 - vcpus:表示CPU大小。 - root_gb:表示系统盘大小。 * @param {string} [sourceFlavorId] 进行规格切换的云服务器源规格ID。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空) * @param {string} [sourceFlavorName] 进行规格切换的云服务器源规格名称。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listResizeFlavors(listResizeFlavorsRequest?: ListResizeFlavorsRequest): Promise; /** * 查询计划事件列表 * 支持查看过去7天内计划事件 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询计划事件列表 * @param {string} [marker] 从marker指定的事件的下一条数据开始查询。 * @param {string} [id] 事件ID * @param {Array} [instanceId] 实例ID * @param {Array} [type] 事件类型 * @param {Array} [state] 事件状态 * @param {string} [publishSince] 事件发布开始时间 * @param {string} [publishUntil] 事件发布截至时间 * @param {number} [limit] 每页显示的条目数量 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listScheduledEvents(listScheduledEventsRequest?: ListScheduledEventsRequest): Promise; /** * 查询可用区列表 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询可用区列表 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerAzInfo(listServerAzInfoRequest?: ListServerAzInfoRequest): Promise; /** * 查询弹性云服务器挂载的磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询弹性云服务器挂载磁盘列表详情信息 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerBlockDevices(listServerBlockDevicesRequest?: ListServerBlockDevicesRequest): Promise; /** * 查询弹性云服务器组。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器组列表 * @param {number} [limit] 查询返回server group数量限制。 * @param {string} [marker] 从marker指定的server group的下一条数据开始查询。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerGroups(listServerGroupsRequest?: ListServerGroupsRequest): Promise; /** * 查询云服务器网卡信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器网卡信息 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerInterfaces(listServerInterfacesRequest?: ListServerInterfacesRequest): Promise; /** * 项目(Project)用于将OpenStack的资源(计算资源、存储资源和网络资源)进行分组和隔离。项目可以是一个部门或者一个项目组。一个帐户中可以创建多个项目。 * * 该接口用于查询用户在指定项目所使用的全部标签。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询项目标签 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerTags(listServerTagsRequest?: ListServerTagsRequest): Promise; /** * 查询弹性云服务器挂载的磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询弹性云服务器挂载磁盘列表信息 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServerVolumeAttachments(listServerVolumeAttachmentsRequest?: ListServerVolumeAttachmentsRequest): Promise; /** * 使用标签过滤弹性云服务器,并返回云服务器使用的所有标签和资源列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 按标签查询云服务器列表 * @param {ListServersByTagRequestBody} listServersByTagRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServersByTag(listServersByTagRequest?: ListServersByTagRequest): Promise; /** * 根据用户请求条件从数据库筛选、查询所有的弹性云服务器,并关联相关表获取到弹性云服务器的详细信息。 * * 该接口支持查询弹性云服务器计费方式,以及是否被冻结。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器详情列表 * @param {string} [enterpriseProjectId] 查询绑定某个企业项目的弹性云服务器。 若需要查询当前用户所有企业项目绑定的弹性云服务,请传参all_granted_eps。 * @param {string} [flavor] 云服务器规格ID,已上线的规格请参见《弹性云服务器用户指南》的“实例和应用场景”章节。 * @param {string} [ip] IPv4地址过滤结果,匹配规则为模糊匹配。 * @param {number} [limit] 查询返回云服务器当前页面的大小。每页默认值是25,最多返回1000台云服务器的信息。 * @param {string} [name] 云服务器名称,匹配规则为模糊匹配。 * @param {string} [notTags] 查询tag字段中不包含该值的云服务器。 * @param {number} [offset] 页码。 当前页面数,默认为1,取值范围大于等于0。 当取值为0时,系统默认返回第1页,与取值为1时相同。 建议设置该参数大于等于1。 * @param {string} [reservationId] 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。 * @param {string} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) * @param {string} [tags] 查询tag字段中包含该值的云服务器。 * @param {string} [ipEq] IPv4地址过滤结果,匹配规则为精确匹配。 * @param {string} [serverId] 云服务器ID,格式为UUID,匹配规则为精确匹配 示例: server_id=id1,id2 说明: 在使用server_id作为过滤条件时,不能同时使用其他过滤条件。如果同时指定server_id及其他过滤条件,则以server_id条件为准,其他过滤条件会被忽略 当server_id中含有不存在的云服务器ID时,返回的响应参数中该云服务器ID对应的servers结构体中除了id和fault其它字段均为null 为了避免API的URI过长,建议一次查询的server_id个数不超过100个 * @param {string} [marker] 以单页最后一条server的id作为分页标记。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listServersDetails(listServersDetailsRequest?: ListServersDetailsRequest): Promise; /** * 根据用户请求条件从数据库筛选、查询启动模板相关信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询模板列表 * @param {number} [limit] max number of resources to return * @param {string} [marker] next page resource index id * @param {Array} [launchTemplateId] 模板ID * @param {Array} [name] 模板名称 * @param {*} [options] Override http request option. * @throws {RequiredError} */ listTemplates(listTemplatesRequest?: ListTemplatesRequest): Promise; /** * - 将部署在专属主机上的弹性云服务器迁移至其他专属主机。 * - 将部署在专属主机上的弹性云服务器迁移至公共资源池,即不再部署在专属主机上。 * - 将公共资源池的弹性云服务器迁移至专属主机上,成为专属主机上部署的弹性云服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 冷迁移云服务器 * @param {string} serverId 云服务器ID。 * @param {MigrateServerRequestBody} migrateServerRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ migrateServer(migrateServerRequest?: MigrateServerRequest): Promise; /** * 为弹性云服务器添加一个安全组。 * * 添加多个安全组时,建议最多为弹性云服务器添加5个安全组。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 添加安全组 * @param {string} serverId 弹性云服务器ID。 * @param {NovaAssociateSecurityGroupRequestBody} novaAssociateSecurityGroupRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaAssociateSecurityGroup(novaAssociateSecurityGroupRequest?: NovaAssociateSecurityGroupRequest): Promise; /** * 给云服务器添加一张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 添加云服务器网卡 * @param {string} serverId 云服务器ID。 * @param {NovaAttachInterfaceRequestBody} novaAttachInterfaceRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaAttachInterface(novaAttachInterfaceRequest?: NovaAttachInterfaceRequest): Promise; /** * 创建SSH密钥,或把公钥导入系统,生成密钥对。 * * 创建SSH密钥成功后,请把响应数据中的私钥内容保存到本地文件,用户使用该私钥登录云服务器云主机。为保证云服务器云主机器安全,私钥数据只能读取一次,请妥善保管。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建和导入SSH密钥 * @param {NovaCreateKeypairRequestBody} novaCreateKeypairRequestBody This is a auto create Body Object * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaCreateKeypair(novaCreateKeypairRequest?: NovaCreateKeypairRequest): Promise; /** * 创建一台弹性云服务器。 * * 弹性云服务器创建完成后,如需开启自动恢复功能,可以调用配置云服务器自动恢复的接口,具体使用请参见管理云服务器自动恢复动作。 * * 该接口在云服务器创建失败后不支持自动回滚。若需要自动回滚能力,可以调用POST /v1/{project_id}/cloudservers接口,具体使用请参见创建云服务器(按需)。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建云服务器 * @param {NovaCreateServersRequestBody} novaCreateServersRequestBody This is a auto create Body Object * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaCreateServers(novaCreateServersRequest?: NovaCreateServersRequest): Promise; /** * 根据SSH密钥的名称,删除指定SSH密钥。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除SSH密钥 * @param {string} keypairName 密钥名称。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaDeleteKeypair(novaDeleteKeypairRequest?: NovaDeleteKeypairRequest): Promise; /** * 删除一台云服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云服务器 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaDeleteServer(novaDeleteServerRequest?: NovaDeleteServerRequest): Promise; /** * 移除弹性云服务器中的安全组。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 移除安全组 * @param {string} serverId 云服务器ID。 * @param {NovaDisassociateSecurityGroupRequestBody} novaDisassociateSecurityGroupRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaDisassociateSecurityGroup(novaDisassociateSecurityGroupRequest?: NovaDisassociateSecurityGroupRequest): Promise; /** * 查询可用域列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询可用区列表 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListAvailabilityZones(novaListAvailabilityZonesRequest?: NovaListAvailabilityZonesRequest): Promise; /** * 查询SSH密钥信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询SSH密钥列表 * @param {number} [limit] 查询返回秘钥数量限制。 在微版本2.35后支持 * @param {string} [marker] 从marker指定的keypair的名称的下一条数据开始查询。 在微版本2.35后支持。 * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListKeypairs(novaListKeypairsRequest?: NovaListKeypairsRequest): Promise; /** * 查询指定弹性云服务器的安全组。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询指定云服务器安全组列表 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListServerSecurityGroups(novaListServerSecurityGroupsRequest?: NovaListServerSecurityGroupsRequest): Promise; /** * 查询云服务器信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器列表 * @param {string} [changesSince] 云服务器上次更新状态的时间戳信息。格式符合ISO 8601,例如: CCYY-MM-DDThh:mm:ss+/-hh:mm > 说明: > > 可以查询到“deleted”状态的弹性云服务器。 * @param {string} [flavor] 云服务器类型ID。 * @param {string} [host] 主机节点名称。 * @param {string} [image] 镜像ID。 在使用image作为条件过滤时,不能同时支持其他过滤条件和分页条件。如果同时指定image及其他条件,则以image条件为准;当条件不含image时,接口功能不受限制。 * @param {string} [ip] IPv4地址过滤结果,匹配规则为模糊匹配。 * @param {number} [limit] 查询返回云服务器数量限制。 * @param {string} [marker] 从marker指定的云服务器ID的下一条数据开始查询。 * @param {string} [name] 云服务器名称。 * @param {string} [notTags] 查询tag字段中不包含该值的云服务器,值为标签的Key。 > 说明: > > 系统近期对标签功能进行了升级。如果之前添加的Tag为“Key.Value”的形式,则查询的时候需要使用“Key”来查询。 > > 例如:之前添加的tag为“a.b”,则升级后,查询时需使用“not-tags=a”。 * @param {string} [reservationId] 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。 * @param {'created_at' | 'availability_zone' | 'display_name' | 'host' | 'instance_type_id' | 'key_name' | 'project_id' | 'user_id' | 'updated_at' | 'uuid' | 'vm_state'} [sortKey] 查询结果按弹性云服务器属性排序,默认排序顺序为created_at逆序。 * @param {'ACTIVE' | 'BUILD' | 'DELETED' | 'ERROR' | 'HARD_REBOOT' | 'MIGRATING' | 'REBOOT' | 'RESIZE' | 'REVERT_RESIZE' | 'SHELVED' | 'SHELVED_OFFLOADED' | 'SHUTOFF' | 'UNKNOWN' | 'VERIFY_RESIZE'} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 其中DELETED 状态虚拟机只有管理员有权限查 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 * @param {string} [tags] 云服务器标签。 * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListServers(novaListServersRequest?: NovaListServersRequest): Promise; /** * 查询云服务器详情信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器详情列表 * @param {string} [changesSince] 云服务器上次更新状态的时间戳信息。时间戳为UTC格式。 * @param {string} [flavor] 云服务器规格ID。 * @param {string} [image] 镜像ID 在使用image作为条件过滤时,不能同时支持其他过滤条件和分页条件。如果同时指定image及其他条件,则以image条件为准;当条件不含image时,接口功能不受限制。 * @param {string} [ip] IPv4地址过滤结果,匹配规则为模糊匹配。 * @param {number} [limit] 查询返回云服务器数量限制。 * @param {string} [marker] 从marker指定的云服务器ID的下一条数据开始查询。 * @param {string} [name] 云服务器名称。 * @param {string} [notTags] 查询tag字段中不包含该值的云服务器,值为标签的Key。 > 说明: > > 系统近期对标签功能进行了升级。如果之前添加的Tag为“Key.Value”的形式,则查询的时候需要使用“Key”来查询。 > > 例如:之前添加的tag为“a.b”,则升级后,查询时需使用“not-tags=a”。 * @param {string} [reservationId] 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。 * @param {'created_at' | 'availability_zone' | 'display_name' | 'host' | 'instance_type_id' | 'key_name' | 'project_id' | 'user_id' | 'updated_at' | 'uuid' | 'vm_state'} [sortKey] 查询结果按弹性云服务器属性排序,默认排序顺序为created_at逆序。 * @param {'ACTIVE' | 'BUILD' | 'DELETED' | 'ERROR' | 'HARD_REBOOT' | 'MIGRATING' | 'REBOOT' | 'RESIZE' | 'REVERT_RESIZE' | 'SHELVED' | 'SHELVED_OFFLOADED' | 'SHUTOFF' | 'UNKNOWN' | 'VERIFY_RESIZE'} [status] 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 * @param {string} [tags] 查询tag字段中包含该值的云服务器。 * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListServersDetails(novaListServersDetailsRequest?: NovaListServersDetailsRequest): Promise; /** * 查询指定的规格的详细信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器规格extra_specs的详情 * @param {string} flavorId 规格id。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaShowFlavorExtraSpecs(novaShowFlavorExtraSpecsRequest?: NovaShowFlavorExtraSpecsRequest): Promise; /** * 根据SSH密钥名称查询指定SSH密钥。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询SSH密钥详情 * @param {string} keypairName 密钥名称信息。 * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaShowKeypair(novaShowKeypairRequest?: NovaShowKeypairRequest): Promise; /** * 根据云服务器ID,查询云服务器的详细信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器详情 * @param {string} serverId 云服务器ID。 * @param {string} [openStackAPIVersion] 微版本头 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaShowServer(novaShowServerRequest?: NovaShowServerRequest): Promise; /** * 根据网卡ID,查询云服务器网卡信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询指定云服务器网卡信息 * @param {string} portId 网卡port id * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaShowServerInterface(novaShowServerInterfaceRequest?: NovaShowServerInterfaceRequest): Promise; /** * 将云服务器添加到监控表中。 * * 注册到监控表中的云服务会被ceilometer周期性采集监控数据,包括平台的版本、cpu信息、内存、网卡、磁盘、硬件平台等信息,这些数据上报给云监控。例如SAP云服务器内部的插件会周期性从云监控中查询监控数据,以报表形式呈现给SAP。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 注册云服务器监控 * @param {string} serverId 云服务器ID。 * @param {RegisterServerMonitorRequestBody} registerServerMonitorRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ registerServerMonitor(registerServerMonitorRequest?: RegisterServerMonitorRequest): Promise; /** * 重装弹性云服务器的操作系统。支持弹性云服务器数据盘不变的情况下,使用原镜像重装系统盘。 * * 调用该接口后,系统将卸载系统盘,然后使用原镜像重新创建系统盘,并挂载至弹性云服务器,实现重装操作系统功能。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 重装弹性云服务器操作系统(安装Cloud-init) * @param {string} serverId 云服务器ID。 * @param {ReinstallServerWithCloudInitRequestBody} reinstallServerWithCloudInitRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ reinstallServerWithCloudInit(reinstallServerWithCloudInitRequest?: ReinstallServerWithCloudInitRequest): Promise; /** * 重装弹性云服务器的操作系统。 * * 该接口支持未安装Cloud-init或Cloudbase-init的镜像。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 重装弹性云服务器操作系统(未安装Cloud init) * @param {string} serverId 云服务器ID。 * @param {ReinstallServerWithoutCloudInitRequestBody} reinstallServerWithoutCloudInitRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ reinstallServerWithoutCloudInit(reinstallServerWithoutCloudInitRequest?: ReinstallServerWithoutCloudInitRequest): Promise; /** * 重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 一键重置弹性云服务器密码(企业项目) * @param {string} serverId 云服务器ID。 * @param {ResetServerPasswordRequestBody} resetServerPasswordRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetServerPassword(resetServerPasswordRequest?: ResetServerPasswordRequest): Promise; /** * 当您创建的弹性云服务器规格无法满足业务需要时,可以变更云服务器规格,升级vCPU、内存。具体接口的使用,请参见本节内容。 * * 变更规格时,部分规格的云服务器之间不能互相变更。 * * 您可以通过接口“/v1/{project_id}/cloudservers/resize_flavors?{instance_uuid,source_flavor_id,source_flavor_name}”查询支持列表。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 变更云服务器规格(按需) * @param {string} serverId 云服务器ID。 * @param {ResizePostPaidServerRequestBody} resizePostPaidServerRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ resizePostPaidServer(resizePostPaidServerRequest?: ResizePostPaidServerRequest): Promise; /** * 变更云服务器规格。 * * v1.1版本:指该接口兼容v1接口的功能,同时合入新功能,支持变更包年/包月弹性云服务器的规格。 * * 注意事项: * * - 该接口可以使用合作伙伴自身的AK/SK或者token调用,也可以用合作伙伴子客户的AK/SK或者token来调用。 * - 如果使用AK/SK认证方式,示例代码中region请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“区域”的内容,,serviceName(英文服务名称缩写)请指定为ECS。 * - Endpoint请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“终端节点(Endpoint)”的内容。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 变更云服务器规格 * @param {string} serverId 云服务器ID。 * @param {ResizeServerRequestBody} resizeServerRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ resizeServer(resizeServerRequest?: ResizeServerRequest): Promise; /** * 回收站中的虚拟机从回收站中恢复 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 恢复回收站中虚拟机 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ revertRecycleBinServer(revertRecycleBinServerRequest?: RevertRecycleBinServerRequest): Promise; /** * 查询包周期虚拟机可以追加卷数量 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询包周期虚拟机可以追加卷数量 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showAppendableVolumeQuota(showAppendableVolumeQuotaRequest?: ShowAppendableVolumeQuotaRequest): Promise; /** * 查询规格的容量 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询规格的容量 * @param {string} flavorId * @param {string} [count] * @param {string} [regionIds] * @param {*} [options] Override http request option. * @throws {RequiredError} */ showFlavorCapacity(showFlavorCapacityRequest?: ShowFlavorCapacityRequest): Promise; /** * 查询云服务器元数据配置,通过本接口,您可以查询指定云服务器的元数据配置。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器元数据配置 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showMetadataOptions(showMetadataOptionsRequest?: ShowMetadataOptionsRequest): Promise; /** * 查询回收站配置 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询回收站配置 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showRecycleBin(showRecycleBinRequest?: ShowRecycleBinRequest): Promise; /** * 查询弹性云服务器是否支持一键重置密码。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询是否支持一键重置密码 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showResetPasswordFlag(showResetPasswordFlagRequest?: ShowResetPasswordFlagRequest): Promise; /** * 获取云服务器云主机串口登录地址。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 获取串口登录地址 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showSerialConsoleActions(showSerialConsoleActionsRequest?: ShowSerialConsoleActionsRequest): Promise; /** * 查询弹性云服务器的详细信息。 * * 该接口支持查询弹性云服务器的计费方式,以及是否被冻结。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器详情 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServer(showServerRequest?: ShowServerRequest): Promise; /** * 查询虚拟机可挂载网卡 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询虚拟机可挂载网卡 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerAttachableNicNum(showServerAttachableNicNumRequest?: ShowServerAttachableNicNumRequest): Promise; /** * 查询弹性云服务器挂载的单个磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询弹性云服务器单个磁盘信息 * @param {string} serverId 云服务器ID。 * @param {string} volumeId 云硬盘ID,UUID格式。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerBlockDevice(showServerBlockDeviceRequest?: ShowServerBlockDeviceRequest): Promise; /** * 获取弹性云服务器云主机的控制台日志。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 获取弹性云服务器的控制台日志 * @param {string} serverId 云服务器ID。 * @param {number} [length] - 参数解释: 请求log行数。 - 约束限制: 不涉及。 - 取值范围: 大于等于-1。其中-1代表不限长度输出。 - 默认取值: 不填时默认50。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerConsoleOutput(showServerConsoleOutputRequest?: ShowServerConsoleOutputRequest): Promise; /** * 查询弹性云服务器组详情。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器组详情 * @param {string} serverGroupId 弹性云服务器组UUID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerGroup(showServerGroupRequest?: ShowServerGroupRequest): Promise; /** * 查询租户配额信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询租户配额 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerLimits(showServerLimitsRequest?: ShowServerLimitsRequest): Promise; /** * 当通过支持Cloudbase-init功能的镜像创建Windows云服务器时,获取云服务器初始安装时系统生成的管理员帐户(Administrator帐户或Cloudbase-init设置的帐户)随机密码。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 云服务器获取密码(企业项目) * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerPassword(showServerPasswordRequest?: ShowServerPasswordRequest): Promise; /** * 获取弹性云服务器VNC远程登录地址。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 获取VNC远程登录地址 * @param {string} serverId 云服务器ID。 * @param {ShowServerRemoteConsoleRequestBody} showServerRemoteConsoleRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerRemoteConsole(showServerRemoteConsoleRequest?: ShowServerRemoteConsoleRequest): Promise; /** * - 查询指定云服务器的标签信息。 * * - 标签管理服务TMS使用该接口查询指定云服务器的全部标签数据。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云服务器标签 * @param {string} serverId 云服务器ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showServerTags(showServerTagsRequest?: ShowServerTagsRequest): Promise; /** * 更新云服务器元数据配置,通过本接口,您可以选择启用或关闭IMDS服务,也可以选择IMDS服务的版本。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新云服务器元数据配置 * @param {string} serverId 云服务器ID。 * @param {UpdateServerMetadataOptionsRequestBody} updateServerMetadataOptionsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateMetadataOptions(updateMetadataOptionsRequest?: UpdateMetadataOptionsRequest): Promise; /** * 更新回收站属性信息 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新回收站配置 * @param {UpdateRecycleBinReq} updateRecycleBinReq This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecycleBin(updateRecycleBinRequest?: UpdateRecycleBinRequest): Promise; /** * 更新回收站策略 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新回收站策略 * @param {UpdateRecycleBinPolicyReq} updateRecycleBinPolicyReq This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecycleBinPolicy(updateRecycleBinPolicyRequest?: UpdateRecycleBinPolicyRequest): Promise; /** * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新计划事件 * @param {string} id resource id * @param {ScheduledEventUpdateBody} scheduledEventUpdateBody 修改计划事件计划执行开始时间 * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateScheduledEvent(updateScheduledEventRequest?: UpdateScheduledEventRequest): Promise; /** * 设置云服务器云主机串口登录。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 设置云服务器云主机串口登录 * @param {string} serverId 云服务器ID。 * @param {UpdateSerialConsoleOptionsRequestBody} updateSerialConsoleOptionsRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSerialConsoleOptions(updateSerialConsoleOptionsRequest?: UpdateSerialConsoleOptionsRequest): Promise; /** * 修改云服务器信息,目前支持修改云服务器名称及描述和hostname。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 修改云服务器 * @param {string} serverId 云服务器ID。 * @param {UpdateServerRequestBody} updateServerRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateServer(updateServerRequest?: UpdateServerRequest): Promise; /** * 修改按需服务器,设置定时删除时间。如果设置的定时删除时间为空字符串,表示取消定时删除。 * * 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ecs:cloudServers:put。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 修改云服务器定时删除时间 * @param {string} serverId 云服务器ID。 * @param {UpdateServerAutoTerminateTimeRequestBody} updateServerAutoTerminateTimeRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateServerAutoTerminateTime(updateServerAutoTerminateTimeRequest?: UpdateServerAutoTerminateTimeRequest): Promise; /** * 修改云服务器云主机挂载的单个磁盘信息。\'当前仅支持修改delete_on_termination字段。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 修改云服务器挂载的单个磁盘信息 * @param {string} serverId 云服务器ID。 * @param {string} volumeId 磁盘id,uuid格式 * @param {UpdateServerBlockDeviceReq} updateServerBlockDeviceReq This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateServerBlockDevice(updateServerBlockDeviceRequest?: UpdateServerBlockDeviceRequest): Promise; /** * 更新云服务器网卡挂载信息。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新云服务器网卡挂载信息 * @param {string} serverId 云服务器ID。 * @param {string} portId The network card ID of the cloud server. * @param {UpdateNicInfoRequestBody} updateNicInfoRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateServerInterface(updateServerInterfaceRequest?: UpdateServerInterfaceRequest): Promise; /** * 更新云服务器元数据。 * * - 如果元数据中没有待更新字段,则自动添加该字段。 * * - 如果元数据中已存在待更新字段,则直接更新字段值。 * * - 如果元数据中的字段不再请求参数中,则保持不变 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新云服务器元数据 * @param {string} serverId 云服务器ID。 * @param {UpdateServerMetadataRequestBody} updateServerMetadataRequestBody This is a auto create Body Object * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateServerMetadata(updateServerMetadataRequest?: UpdateServerMetadataRequest): Promise; /** * 返回Nova当前所有可用的版本。 * * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: * * - \"主版本号\": 具有独立的url。 * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询API版本信息列表 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaListVersions(novaListVersionsRequest?: NovaListVersionsRequest): Promise; /** * 返回指定版本的信息。 * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: * * - \"主版本号\": 具有独立的url。 * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询指定API版本信息 * @param {string} apiVersion API版本号。例如: v2 * @param {*} [options] Override http request option. * @throws {RequiredError} */ novaShowVersion(novaShowVersionRequest?: NovaShowVersionRequest): Promise; /** * 查询Job的执行状态。 * * 对于创建云服务器、删除云服务器、云服务器批量操作和网卡操作等异步API,命令下发后,会返回job_id,通过job_id可以查询任务的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询任务的执行状态 * @param {string} jobId 异步请求的任务ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ showJob(showJobRequest?: ShowJobRequest): Promise; } export declare const ParamCreater: () => { /** * * Please refer to HUAWEI cloud API Explorer for details. */ acceptScheduledEvent(acceptScheduledEventRequest?: AcceptScheduledEventRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 将云服务器加入云服务器组。添加成功后,如果该云服务器组是反亲和性策略的,则该云服务器与云服务器组中的其他成员尽量分散地创建在不同主机上。如果该云服务器时故障域类型的,则该云服务器会拥有故障域属性。 * * Please refer to HUAWEI cloud API Explorer for details. */ addServerGroupMember(addServerGroupMemberRequest?: AddServerGroupMemberRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 虚拟IP地址用于为网卡提供第二个IP地址,同时支持与多个弹性云服务器的网卡绑定,从而实现多个弹性云服务器之间的高可用性。 * * 该接口用于给云服务器网卡配置虚拟IP地址: * * - 当指定的IP地址是一个不存在的虚拟IP地址时,系统会创建该虚拟IP,并绑定至对应网卡。 * * - 当指定的IP地址是一个已经创建好的私有IP时,系统会将指定的网卡和虚拟IP绑定。如果该IP的device_owner为空,则仅支持VPC内二三层通信;如果该IP的device_owner为neutron:VIP_PORT,则支持VPC内二三层通信、VPC之间对等连接访问,以及弹性公网IP、VPN、云专线等Internet接入。 * * Please refer to HUAWEI cloud API Explorer for details. */ associateServerVirtualIp(associateServerVirtualIpRequest?: AssociateServerVirtualIpRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 把磁盘挂载到弹性云服务器上。 * * Please refer to HUAWEI cloud API Explorer for details. */ attachServerVolume(attachServerVolumeRequest?: AttachServerVolumeRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 将云服务器加入云服务器组。添加成功后,该云服务器与云服务器组中的其他成员尽量分散地创建在不同主机上。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchAddServerGroupMember(batchAddServerGroupMemberRequest?: BatchAddServerGroupMemberRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 给云服务器添加一张或多张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchAddServerNics(batchAddServerNicsRequest?: BatchAddServerNicsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 将指定的共享磁盘一次性挂载到多个弹性云服务器,实现批量挂载。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchAttachSharableVolumes(batchAttachSharableVolumesRequest?: BatchAttachSharableVolumesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * - 为指定云服务器批量添加标签。 * * - 标签管理服务TMS使用该接口批量管理云服务器的标签。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchCreateServerTags(batchCreateServerTagsRequest?: BatchCreateServerTagsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 将弹性云服务器移出云服务器组。移出后,该云服务器与云服务器组中的成员不再遵从反亲和策略。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchDeleteServerGroupMember(batchDeleteServerGroupMemberRequest?: BatchDeleteServerGroupMemberRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 卸载并删除云服务器中的一张或多张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchDeleteServerNics(batchDeleteServerNicsRequest?: BatchDeleteServerNicsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * - 为指定云服务器批量删除标签。 * * - 标签管理服务TMS使用该接口批量管理云服务器的标签。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchDeleteServerTags(batchDeleteServerTagsRequest?: BatchDeleteServerTagsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * * Please refer to HUAWEI cloud API Explorer for details. */ batchDetachVolumes(batchDetachVolumesRequest?: BatchDetachVolumesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 根据给定的云服务器ID列表,批量重启云服务器,一次最多可以重启1000台。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchRebootServers(batchRebootServersRequest?: BatchRebootServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 批量重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchResetServersPassword(batchResetServersPasswordRequest?: BatchResetServersPasswordRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 批量变更云服务器规格 * * Please refer to HUAWEI cloud API Explorer for details. */ batchResizeServers(batchResizeServersRequest?: BatchResizeServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 根据给定的云服务器ID列表,批量启动云服务器,一次最多可以启动1000台。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchStartServers(batchStartServersRequest?: BatchStartServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 根据给定的云服务器ID列表,批量关闭云服务器,一次最多可以关闭1000台。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchStopServers(batchStopServersRequest?: BatchStopServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 批量修改弹性云服务器信息。 * 当前仅支持批量修改云服务器名称,一次最多可以修改1000台。 * * Please refer to HUAWEI cloud API Explorer for details. */ batchUpdateServersName(batchUpdateServersNameRequest?: BatchUpdateServersNameRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更换云服务器的计费模式 * * Please refer to HUAWEI cloud API Explorer for details. */ changeServerChargeMode(changeServerChargeModeRequest?: ChangeServerChargeModeRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 * * Please refer to HUAWEI cloud API Explorer for details. */ changeServerNetworkInterface(changeServerNetworkInterfaceRequest?: ChangeServerNetworkInterfaceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 切换弹性云服务器操作系统。支持弹性云服务器数据盘不变的情况下,使用新镜像重装系统盘。 * * 调用该接口后,系统将卸载系统盘,然后使用新镜像重新创建系统盘,并挂载至弹性云服务器,实现切换操作系统功能。 * * Please refer to HUAWEI cloud API Explorer for details. */ changeServerOsWithCloudInit(changeServerOsWithCloudInitRequest?: ChangeServerOsWithCloudInitRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 切换弹性云服务器操作系统。 * * 该接口支持未安装Cloud-init或Cloudbase-init的镜像使用。 * * Please refer to HUAWEI cloud API Explorer for details. */ changeServerOsWithoutCloudInit(changeServerOsWithoutCloudInitRequest?: ChangeServerOsWithoutCloudInitRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 云服务器切换虚拟私有云。 * * Please refer to HUAWEI cloud API Explorer for details. */ changeVpc(changeVpcRequest?: ChangeVpcRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建启动模板。将创建一个全新的模板,并自动生成版本号为1的作为默认版本。 * * Please refer to HUAWEI cloud API Explorer for details. */ createLaunchTemplate(createLaunchTemplateRequest?: CreateLaunchTemplateRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建一台或多台[按需付费](https://support.huaweicloud.com/productdesc-ecs/ecs_01_0065.html)方式的云服务器。 * * 弹性云服务器的登录鉴权方式包括两种:密钥对、密码。为安全起见,推荐使用密钥对方式。 * * - 密钥对 * 密钥对指使用密钥对作为弹性云服务器的鉴权方式。 * 接口调用方法:使用key_name字段,指定弹性云服务器登录时使用的密钥文件。 * * - 密码 * 密码指使用设置初始密码方式作为弹性云服务器的鉴权方式,此时,您可以通过用户名密码方式登录弹性云服务器,Linux操作系统时为root用户的初始密码,Windows操作系统时为Administrator用户的初始密码。 * * 接口调用方法:使用adminPass字段,指定管理员帐号的初始登录密码。对于镜像已安装Cloud-init的Linux云服务器,如果需要使用密文密码,可以使用user_data字段进行密码注入。 * * > 对于安装Cloud-init镜像的Linux云服务器云主机,若指定user_data字段,则adminPass字段无效。 * * Please refer to HUAWEI cloud API Explorer for details. */ createPostPaidServers(createPostPaidServersRequest?: CreatePostPaidServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建弹性云服务器组。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. */ createServerGroup(createServerGroupRequest?: CreateServerGroupRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建一台或多台云服务器。 * * 指该接口兼容《弹性云服务器接口参考》创建云服务器v1的功能,同时合入新功能,支持创建[包年/包月](https://support.huaweicloud.com/productdesc-ecs/ecs_01_0065.html)的弹性云服务器。 * * 弹性云服务器的登录鉴权方式包括两种:密钥对、密码。为安全起见,推荐使用密钥对方式。 * * - 密钥对 * * 指使用密钥对作为弹性云服务器的鉴权方式。 * * 接口调用方法:使用key_name字段,指定弹性云服务器登录时使用的密钥文件。 * * - 密码 * * 指使用设置初始密码方式作为弹性云服务器的鉴权方式,此时,您可以通过用户名密码方式登录弹性云服务器,Linux操作系统时为root用户的初始密码,Windows操作系统时为Administrator用户的初始密码。 * * 接口调用方法:使用adminPass字段,指定管理员帐号的初始登录密码。对于镜像已安装Cloud-init的Linux云服务器,如果需要使用密文密码,可以使用user_data字段进行密码注入。 * * > 对于安装Cloud-init镜像的Linux云服务器云主机,若指定user_data字段,则adminPass字段无效。 * * 购买操作示例: * - [使用API购买ECS过程中常见问题及处理方法](https://support.huaweicloud.com/api-ecs/ecs_04_0007.html) * - [获取Token并检验Token的有效期 ](https://support.huaweicloud.com/api-ecs/ecs_04_0008.html) * * Please refer to HUAWEI cloud API Explorer for details. */ createServers(createServersRequest?: CreateServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 删除启动模板。删除一个启动模板。并同时删除模板下所有的版本。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteLaunchTemplates(deleteLaunchTemplatesRequest?: DeleteLaunchTemplatesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * * Please refer to HUAWEI cloud API Explorer for details. */ deleteRecycleBinServer(deleteRecycleBinServerRequest?: DeleteRecycleBinServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 删除云服务器组。 * * 与原生的删除云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteServerGroup(deleteServerGroupRequest?: DeleteServerGroupRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 将弹性云服务器移出云服务器组。移出后,该云服务器与云服务器组中的成员不再遵从反亲和策略。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteServerGroupMember(deleteServerGroupMemberRequest?: DeleteServerGroupMemberRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 删除云服务器指定元数据。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteServerMetadata(deleteServerMetadataRequest?: DeleteServerMetadataRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 清除Windows云服务器初始安装时系统生成的密码记录。清除密码后,不影响云服务器密码登录功能,但不能再使用获取密码功能来查询该云服务器密码。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteServerPassword(deleteServerPasswordRequest?: DeleteServerPasswordRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据指定的云服务器ID列表,删除云服务器。 * * 系统支持删除单台云服务器和批量删除多台云服务器操作,批量删除云服务器时,一次最多可以删除1000台。 * * Please refer to HUAWEI cloud API Explorer for details. */ deleteServers(deleteServersRequest?: DeleteServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 从弹性云服务器中卸载磁盘。 * * Please refer to HUAWEI cloud API Explorer for details. */ detachServerVolume(detachServerVolumeRequest?: DetachServerVolumeRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 虚拟IP地址用于为网卡提供第二个IP地址,同时支持与多个弹性云服务器的网卡绑定,从而实现多个弹性云服务器之间的高可用性。 * * 该接口用于解绑定弹性云服务器网卡的虚拟IP地址。解绑后,网卡不会被删除。 * * Please refer to HUAWEI cloud API Explorer for details. */ disassociateServerVirtualIp(disassociateServerVirtualIpRequest?: DisassociateServerVirtualIpRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 触发云服务器内核dump * * Please refer to HUAWEI cloud API Explorer for details. */ executeServerDump(executeServerDumpRequest?: ExecuteServerDumpRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 重部署云服务器 * * Please refer to HUAWEI cloud API Explorer for details. */ executeServerRedeploy(executeServerRedeployRequest?: ExecuteServerRedeployRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器列表接口。 * * Please refer to HUAWEI cloud API Explorer for details. */ listCloudServers(listCloudServersRequest?: ListCloudServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询规格销售策略。 * * Please refer to HUAWEI cloud API Explorer for details. */ listFlavorSellPolicies(listFlavorSellPoliciesRequest?: ListFlavorSellPoliciesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器规格详情信息和规格扩展信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ listFlavors(listFlavorsRequest?: ListFlavorsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据用户请求条件从数据库筛选、查询启动模板的版本相关信息,支持按照image_id和flavor_id进行过滤。 * * Please refer to HUAWEI cloud API Explorer for details. */ listLaunchTemplateVersions(listLaunchTemplateVersionsRequest?: ListLaunchTemplateVersionsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * * Please refer to HUAWEI cloud API Explorer for details. */ listRecycleBinServers(listRecycleBinServersRequest?: ListRecycleBinServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 变更规格时,部分规格的云服务器之间不能互相变更。您可以通过本接口,通过指定弹性云服务器规格,查询该规格可以变更的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ listResizeFlavors(listResizeFlavorsRequest?: ListResizeFlavorsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询计划事件列表 * 支持查看过去7天内计划事件 * * Please refer to HUAWEI cloud API Explorer for details. */ listScheduledEvents(listScheduledEventsRequest?: ListScheduledEventsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询可用区列表 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerAzInfo(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器挂载的磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerBlockDevices(listServerBlockDevicesRequest?: ListServerBlockDevicesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器组。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerGroups(listServerGroupsRequest?: ListServerGroupsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器网卡信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerInterfaces(listServerInterfacesRequest?: ListServerInterfacesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 项目(Project)用于将OpenStack的资源(计算资源、存储资源和网络资源)进行分组和隔离。项目可以是一个部门或者一个项目组。一个帐户中可以创建多个项目。 * * 该接口用于查询用户在指定项目所使用的全部标签。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerTags(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器挂载的磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServerVolumeAttachments(listServerVolumeAttachmentsRequest?: ListServerVolumeAttachmentsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 使用标签过滤弹性云服务器,并返回云服务器使用的所有标签和资源列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServersByTag(listServersByTagRequest?: ListServersByTagRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 根据用户请求条件从数据库筛选、查询所有的弹性云服务器,并关联相关表获取到弹性云服务器的详细信息。 * * 该接口支持查询弹性云服务器计费方式,以及是否被冻结。 * * Please refer to HUAWEI cloud API Explorer for details. */ listServersDetails(listServersDetailsRequest?: ListServersDetailsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据用户请求条件从数据库筛选、查询启动模板相关信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ listTemplates(listTemplatesRequest?: ListTemplatesRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * - 将部署在专属主机上的弹性云服务器迁移至其他专属主机。 * - 将部署在专属主机上的弹性云服务器迁移至公共资源池,即不再部署在专属主机上。 * - 将公共资源池的弹性云服务器迁移至专属主机上,成为专属主机上部署的弹性云服务器。 * * Please refer to HUAWEI cloud API Explorer for details. */ migrateServer(migrateServerRequest?: MigrateServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 为弹性云服务器添加一个安全组。 * * 添加多个安全组时,建议最多为弹性云服务器添加5个安全组。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaAssociateSecurityGroup(novaAssociateSecurityGroupRequest?: NovaAssociateSecurityGroupRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 给云服务器添加一张网卡。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaAttachInterface(novaAttachInterfaceRequest?: NovaAttachInterfaceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建SSH密钥,或把公钥导入系统,生成密钥对。 * * 创建SSH密钥成功后,请把响应数据中的私钥内容保存到本地文件,用户使用该私钥登录云服务器云主机。为保证云服务器云主机器安全,私钥数据只能读取一次,请妥善保管。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaCreateKeypair(novaCreateKeypairRequest?: NovaCreateKeypairRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 创建一台弹性云服务器。 * * 弹性云服务器创建完成后,如需开启自动恢复功能,可以调用配置云服务器自动恢复的接口,具体使用请参见管理云服务器自动恢复动作。 * * 该接口在云服务器创建失败后不支持自动回滚。若需要自动回滚能力,可以调用POST /v1/{project_id}/cloudservers接口,具体使用请参见创建云服务器(按需)。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaCreateServers(novaCreateServersRequest?: NovaCreateServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 根据SSH密钥的名称,删除指定SSH密钥。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaDeleteKeypair(novaDeleteKeypairRequest?: NovaDeleteKeypairRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 删除一台云服务器。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaDeleteServer(novaDeleteServerRequest?: NovaDeleteServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 移除弹性云服务器中的安全组。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaDisassociateSecurityGroup(novaDisassociateSecurityGroupRequest?: NovaDisassociateSecurityGroupRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 查询可用域列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListAvailabilityZones(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询SSH密钥信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListKeypairs(novaListKeypairsRequest?: NovaListKeypairsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询指定弹性云服务器的安全组。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListServerSecurityGroups(novaListServerSecurityGroupsRequest?: NovaListServerSecurityGroupsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListServers(novaListServersRequest?: NovaListServersRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器详情信息列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListServersDetails(novaListServersDetailsRequest?: NovaListServersDetailsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询指定的规格的详细信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaShowFlavorExtraSpecs(novaShowFlavorExtraSpecsRequest?: NovaShowFlavorExtraSpecsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据SSH密钥名称查询指定SSH密钥。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaShowKeypair(novaShowKeypairRequest?: NovaShowKeypairRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据云服务器ID,查询云服务器的详细信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaShowServer(novaShowServerRequest?: NovaShowServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 根据网卡ID,查询云服务器网卡信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaShowServerInterface(novaShowServerInterfaceRequest?: NovaShowServerInterfaceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 将云服务器添加到监控表中。 * * 注册到监控表中的云服务会被ceilometer周期性采集监控数据,包括平台的版本、cpu信息、内存、网卡、磁盘、硬件平台等信息,这些数据上报给云监控。例如SAP云服务器内部的插件会周期性从云监控中查询监控数据,以报表形式呈现给SAP。 * * Please refer to HUAWEI cloud API Explorer for details. */ registerServerMonitor(registerServerMonitorRequest?: RegisterServerMonitorRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 重装弹性云服务器的操作系统。支持弹性云服务器数据盘不变的情况下,使用原镜像重装系统盘。 * * 调用该接口后,系统将卸载系统盘,然后使用原镜像重新创建系统盘,并挂载至弹性云服务器,实现重装操作系统功能。 * * Please refer to HUAWEI cloud API Explorer for details. */ reinstallServerWithCloudInit(reinstallServerWithCloudInitRequest?: ReinstallServerWithCloudInitRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 重装弹性云服务器的操作系统。 * * 该接口支持未安装Cloud-init或Cloudbase-init的镜像。 * * Please refer to HUAWEI cloud API Explorer for details. */ reinstallServerWithoutCloudInit(reinstallServerWithoutCloudInitRequest?: ReinstallServerWithoutCloudInitRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。 * * Please refer to HUAWEI cloud API Explorer for details. */ resetServerPassword(resetServerPasswordRequest?: ResetServerPasswordRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 当您创建的弹性云服务器规格无法满足业务需要时,可以变更云服务器规格,升级vCPU、内存。具体接口的使用,请参见本节内容。 * * 变更规格时,部分规格的云服务器之间不能互相变更。 * * 您可以通过接口“/v1/{project_id}/cloudservers/resize_flavors?{instance_uuid,source_flavor_id,source_flavor_name}”查询支持列表。 * * Please refer to HUAWEI cloud API Explorer for details. */ resizePostPaidServer(resizePostPaidServerRequest?: ResizePostPaidServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 变更云服务器规格。 * * v1.1版本:指该接口兼容v1接口的功能,同时合入新功能,支持变更包年/包月弹性云服务器的规格。 * * 注意事项: * * - 该接口可以使用合作伙伴自身的AK/SK或者token调用,也可以用合作伙伴子客户的AK/SK或者token来调用。 * - 如果使用AK/SK认证方式,示例代码中region请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“区域”的内容,,serviceName(英文服务名称缩写)请指定为ECS。 * - Endpoint请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“终端节点(Endpoint)”的内容。 * * Please refer to HUAWEI cloud API Explorer for details. */ resizeServer(resizeServerRequest?: ResizeServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 回收站中的虚拟机从回收站中恢复 * * Please refer to HUAWEI cloud API Explorer for details. */ revertRecycleBinServer(revertRecycleBinServerRequest?: RevertRecycleBinServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询包周期虚拟机可以追加卷数量 * * Please refer to HUAWEI cloud API Explorer for details. */ showAppendableVolumeQuota(showAppendableVolumeQuotaRequest?: ShowAppendableVolumeQuotaRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询规格的容量 * * Please refer to HUAWEI cloud API Explorer for details. */ showFlavorCapacity(showFlavorCapacityRequest?: ShowFlavorCapacityRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询云服务器元数据配置,通过本接口,您可以查询指定云服务器的元数据配置。 * * Please refer to HUAWEI cloud API Explorer for details. */ showMetadataOptions(showMetadataOptionsRequest?: ShowMetadataOptionsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询回收站配置 * * Please refer to HUAWEI cloud API Explorer for details. */ showRecycleBin(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器是否支持一键重置密码。 * * Please refer to HUAWEI cloud API Explorer for details. */ showResetPasswordFlag(showResetPasswordFlagRequest?: ShowResetPasswordFlagRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 获取云服务器云主机串口登录地址。 * * Please refer to HUAWEI cloud API Explorer for details. */ showSerialConsoleActions(showSerialConsoleActionsRequest?: ShowSerialConsoleActionsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器的详细信息。 * * 该接口支持查询弹性云服务器的计费方式,以及是否被冻结。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServer(showServerRequest?: ShowServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询虚拟机可挂载网卡 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerAttachableNicNum(showServerAttachableNicNumRequest?: ShowServerAttachableNicNumRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器挂载的单个磁盘信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerBlockDevice(showServerBlockDeviceRequest?: ShowServerBlockDeviceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 获取弹性云服务器云主机的控制台日志。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerConsoleOutput(showServerConsoleOutputRequest?: ShowServerConsoleOutputRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询弹性云服务器组详情。 * * 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerGroup(showServerGroupRequest?: ShowServerGroupRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询租户配额信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerLimits(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 当通过支持Cloudbase-init功能的镜像创建Windows云服务器时,获取云服务器初始安装时系统生成的管理员帐户(Administrator帐户或Cloudbase-init设置的帐户)随机密码。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerPassword(showServerPasswordRequest?: ShowServerPasswordRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 获取弹性云服务器VNC远程登录地址。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerRemoteConsole(showServerRemoteConsoleRequest?: ShowServerRemoteConsoleRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * - 查询指定云服务器的标签信息。 * * - 标签管理服务TMS使用该接口查询指定云服务器的全部标签数据。 * * Please refer to HUAWEI cloud API Explorer for details. */ showServerTags(showServerTagsRequest?: ShowServerTagsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 更新云服务器元数据配置,通过本接口,您可以选择启用或关闭IMDS服务,也可以选择IMDS服务的版本。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateMetadataOptions(updateMetadataOptionsRequest?: UpdateMetadataOptionsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更新回收站属性信息 * * Please refer to HUAWEI cloud API Explorer for details. */ updateRecycleBin(updateRecycleBinRequest?: UpdateRecycleBinRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更新回收站策略 * * Please refer to HUAWEI cloud API Explorer for details. */ updateRecycleBinPolicy(updateRecycleBinPolicyRequest?: UpdateRecycleBinPolicyRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * * Please refer to HUAWEI cloud API Explorer for details. */ updateScheduledEvent(updateScheduledEventRequest?: UpdateScheduledEventRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 设置云服务器云主机串口登录。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateSerialConsoleOptions(updateSerialConsoleOptionsRequest?: UpdateSerialConsoleOptionsRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 修改云服务器信息,目前支持修改云服务器名称及描述和hostname。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateServer(updateServerRequest?: UpdateServerRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 修改按需服务器,设置定时删除时间。如果设置的定时删除时间为空字符串,表示取消定时删除。 * * 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ecs:cloudServers:put。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateServerAutoTerminateTime(updateServerAutoTerminateTimeRequest?: UpdateServerAutoTerminateTimeRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 修改云服务器云主机挂载的单个磁盘信息。\'当前仅支持修改delete_on_termination字段。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateServerBlockDevice(updateServerBlockDeviceRequest?: UpdateServerBlockDeviceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更新云服务器网卡挂载信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ updateServerInterface(updateServerInterfaceRequest?: UpdateServerInterfaceRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 更新云服务器元数据。 * * - 如果元数据中没有待更新字段,则自动添加该字段。 * * - 如果元数据中已存在待更新字段,则直接更新字段值。 * * - 如果元数据中的字段不再请求参数中,则保持不变 * * Please refer to HUAWEI cloud API Explorer for details. */ updateServerMetadata(updateServerMetadataRequest?: UpdateServerMetadataRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; data: {}; }; /** * 返回Nova当前所有可用的版本。 * * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: * * - \"主版本号\": 具有独立的url。 * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaListVersions(): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 返回指定版本的信息。 * 为了支持功能不断扩展,Nova API支持版本号区分。Nova中有两种形式的版本号: * * - \"主版本号\": 具有独立的url。 * - \"微版本号\": 通过Http请求头X-OpenStack-Nova-API-Version来使用,从2.27版本后更改为OpenStack-API-Version。 * * Please refer to HUAWEI cloud API Explorer for details. */ novaShowVersion(novaShowVersionRequest?: NovaShowVersionRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; /** * 查询Job的执行状态。 * * 对于创建云服务器、删除云服务器、云服务器批量操作和网卡操作等异步API,命令下发后,会返回job_id,通过job_id可以查询任务的执行状态。 * * Please refer to HUAWEI cloud API Explorer for details. */ showJob(showJobRequest?: ShowJobRequest): { method: string; url: string; contentType: string; queryParams: {}; pathParams: {}; headers: {}; }; }; /** * * @export * @class RequiredError * @extends {Error} */ export declare class RequiredError extends Error { field: string; name: "RequiredError"; constructor(field: string, msg?: string); } //# sourceMappingURL=EcsClient.d.ts.map