v20170312

package
v3.0.335+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Your account failed the qualification verification.
	ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"

	// Role name authentication failed.
	AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"

	// ENIs do not support changing subnets.
	ENINOTALLOWEDCHANGESUBNET = "EniNotAllowedChangeSubnet"

	// The account already exists.
	FAILEDOPERATION_ACCOUNTALREADYEXISTS = "FailedOperation.AccountAlreadyExists"

	// You cannot share images with yourself.
	FAILEDOPERATION_ACCOUNTISYOURSELF = "FailedOperation.AccountIsYourSelf"

	// The specified spread placement group does not exist.
	FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = "FailedOperation.DisasterRecoverGroupNotFound"

	// The tag key contains invalid characters.
	FAILEDOPERATION_ILLEGALTAGKEY = "FailedOperation.IllegalTagKey"

	// The tag value contains invalid characters.
	FAILEDOPERATION_ILLEGALTAGVALUE = "FailedOperation.IllegalTagValue"

	// Price query failed.
	FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"

	// Failed to query the refund: the payment order is not found. Check whether the instance `ins-xxxxxxx` has expired.
	FAILEDOPERATION_INQUIRYREFUNDPRICEFAILED = "FailedOperation.InquiryRefundPriceFailed"

	// The EMR instance `ins-xxxxxxxx` does not support this operation.
	FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"

	// This instance does not bind an EIP.
	FAILEDOPERATION_NOTFOUNDEIP = "FailedOperation.NotFoundEIP"

	// You’re using a collaborator account. Please enter a root account.
	FAILEDOPERATION_NOTMASTERACCOUNT = "FailedOperation.NotMasterAccount"

	// The specified placement group is not empty.
	FAILEDOPERATION_PLACEMENTSETNOTEMPTY = "FailedOperation.PlacementSetNotEmpty"

	// The configuration or billing mode of the CVM instances purchased during the promotion period cannot be modified.
	FAILEDOPERATION_PROMOTIONALPERIORESTRICTION = "FailedOperation.PromotionalPerioRestriction"

	// Image sharing failed.
	FAILEDOPERATION_QIMAGESHAREFAILED = "FailedOperation.QImageShareFailed"

	// Image sharing failed.
	FAILEDOPERATION_RIMAGESHAREFAILED = "FailedOperation.RImageShareFailed"

	// Security group operation failed.
	FAILEDOPERATION_SECURITYGROUPACTIONFAILED = "FailedOperation.SecurityGroupActionFailed"

	// The snapshot size is larger than the disk capacity. You need a larger disk space.
	FAILEDOPERATION_SNAPSHOTSIZELARGERTHANDATASIZE = "FailedOperation.SnapshotSizeLargerThanDataSize"

	// The snapshot size should be larger than the cloud disk capacity.
	FAILEDOPERATION_SNAPSHOTSIZELESSTHANDATASIZE = "FailedOperation.SnapshotSizeLessThanDataSize"

	// The tag key specified in the request is reserved for the system.
	FAILEDOPERATION_TAGKEYRESERVED = "FailedOperation.TagKeyReserved"

	// This image is not a Linux&x86_64 image.
	FAILEDOPERATION_TATAGENTNOTSUPPORT = "FailedOperation.TatAgentNotSupport"

	// The instance is unreturnable.
	FAILEDOPERATION_UNRETURNABLE = "FailedOperation.Unreturnable"

	// The image quota has been exceeded.
	IMAGEQUOTALIMITEXCEEDED = "ImageQuotaLimitExceeded"

	// You are trying to create more instances than your remaining quota allows.
	INSTANCESQUOTALIMITEXCEEDED = "InstancesQuotaLimitExceeded"

	// Internal error.
	INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"

	// Internal error.
	INTERNALSERVERERROR = "InternalServerError"

	// Insufficient account balance.
	INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"

	// The account has unpaid orders.
	INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"

	// Invalid account ID.
	INVALIDACCOUNTID_NOTFOUND = "InvalidAccountId.NotFound"

	// You cannot share images with yourself.
	INVALIDACCOUNTIS_YOURSELF = "InvalidAccountIs.YourSelf"

	// The specified ClientToken exceeds the maximum length of 64 bytes.
	INVALIDCLIENTTOKEN_TOOLONG = "InvalidClientToken.TooLong"

	// Invalid filter.
	INVALIDFILTER = "InvalidFilter"

	// [`Filter`](https://intl.cloud.tencent.com/document/api/213/15753?from_cn_redirect=1#Filter)
	INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"

	// The specified operation on this CDH instance is not support .
	INVALIDHOST_NOTSUPPORTED = "InvalidHost.NotSupported"

	// Invalid [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) `ID`. The specified [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) `ID` has an invalid format. For example, `host-1122` has an invalid `ID` length.
	INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"

	// The specified HostId does not exist, or does not belong to your account.
	INVALIDHOSTID_NOTFOUND = "InvalidHostId.NotFound"

	// The image is being shared.
	INVALIDIMAGEID_INSHARED = "InvalidImageId.InShared"

	// Invalid image status.
	INVALIDIMAGEID_INCORRECTSTATE = "InvalidImageId.IncorrectState"

	// Invalid image ID format.
	INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"

	// The image cannot be found.
	INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"

	// The image size exceeds the limit.
	INVALIDIMAGEID_TOOLARGE = "InvalidImageId.TooLarge"

	// The specified image name already exists.
	INVALIDIMAGENAME_DUPLICATE = "InvalidImageName.Duplicate"

	// The operating system type is not supported.
	INVALIDIMAGEOSTYPE_UNSUPPORTED = "InvalidImageOsType.Unsupported"

	// The operating system version is not supported.
	INVALIDIMAGEOSVERSION_UNSUPPORTED = "InvalidImageOsVersion.Unsupported"

	// This instance is not supported.
	INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"

	// Invalid instance `ID`. The specified instance `ID` has an invalid format. For example, `ins-1122` has an invalid `ID` length.
	INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"

	// No instance found.
	INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"

	// The specified InstanceName exceeds the maximum length of 60 bytes.
	INVALIDINSTANCENAME_TOOLONG = "InvalidInstanceName.TooLong"

	// This instance does not meet the [Return Policy](https://intl.cloud.tencent.com/document/product/213/9711?from_cn_redirect=1) for prepaid instances.
	INVALIDINSTANCENOTSUPPORTEDPREPAIDINSTANCE = "InvalidInstanceNotSupportedPrepaidInstance"

	// This operation cannot be performed due to the current instance status.
	INVALIDINSTANCESTATE = "InvalidInstanceState"

	// The specified `InstanceType` parameter has an invalid format.
	INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"

	// The number of key pairs exceeds the limit.
	INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"

	// Invalid key pair ID. The specified key pair ID has an invalid format. For example, `skey-1122` has an invalid `ID` length.
	INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"

	// Invalid key pair ID. The specified key pair ID does not exist.
	INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"

	// Key pair name already exists.
	INVALIDKEYPAIRNAME_DUPLICATE = "InvalidKeyPairName.Duplicate"

	// The key name cannot be empty.
	INVALIDKEYPAIRNAMEEMPTY = "InvalidKeyPairNameEmpty"

	// The key name contains invalid characters. Key names can only contain letters, numbers and underscores.
	INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidKeyPairNameIncludeIllegalChar"

	// The key name cannot exceed 25 characters.
	INVALIDKEYPAIRNAMETOOLONG = "InvalidKeyPairNameTooLong"

	// A parameter error occurred.
	INVALIDPARAMETER = "InvalidParameter"

	// RootDisk ID should not be passed to DataDiskIds.
	INVALIDPARAMETER_DATADISKIDCONTAINSROOTDISK = "InvalidParameter.DataDiskIdContainsRootDisk"

	// The specified data disk does not belong to the specified instance.
	INVALIDPARAMETER_DATADISKNOTBELONGSPECIFIEDINSTANCE = "InvalidParameter.DataDiskNotBelongSpecifiedInstance"

	// Only one system disk snapshot can be included.
	INVALIDPARAMETER_DUPLICATESYSTEMSNAPSHOTS = "InvalidParameter.DuplicateSystemSnapshots"

	//
	INVALIDPARAMETER_HOSTIDSTATUSNOTSUPPORT = "InvalidParameter.HostIdStatusNotSupport"

	// The specified HostName is invalid.
	INVALIDPARAMETER_HOSTNAMEILLEGAL = "InvalidParameter.HostNameIllegal"

	// This API does not support instance images.
	INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"

	// Invalid parameter dependency.
	INVALIDPARAMETER_INVALIDDEPENDENCE = "InvalidParameter.InvalidDependence"

	// Invalid VPC IP address format.
	INVALIDPARAMETER_INVALIDIPFORMAT = "InvalidParameter.InvalidIpFormat"

	// `ImageIds` and `Filters` cannot be specified at the same time.
	INVALIDPARAMETER_INVALIDPARAMETERCOEXISTIMAGEIDSFILTERS = "InvalidParameter.InvalidParameterCoexistImageIdsFilters"

	// Invalid URL.
	INVALIDPARAMETER_INVALIDPARAMETERURLERROR = "InvalidParameter.InvalidParameterUrlError"

	// `CoreCount` and `ThreadPerCore` must be specified at the same time.
	INVALIDPARAMETER_LACKCORECOUNTORTHREADPERCORE = "InvalidParameter.LackCoreCountOrThreadPerCore"

	// Local data disks cannot be used to create instance images.
	INVALIDPARAMETER_LOCALDATADISKNOTSUPPORT = "InvalidParameter.LocalDataDiskNotSupport"

	// Specifying an SSH key will override the original one of the image.
	INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"

	// The specified snapshot does not exist.
	INVALIDPARAMETER_SNAPSHOTNOTFOUND = "InvalidParameter.SnapshotNotFound"

	// At least one of the multiple parameters must be passed in.
	INVALIDPARAMETER_SPECIFYONEPARAMETER = "InvalidParameter.SpecifyOneParameter"

	// Swap disks are not supported.
	INVALIDPARAMETER_SWAPDISKNOTSUPPORT = "InvalidParameter.SwapDiskNotSupport"

	// The parameter does not contain system disk snapshot.
	INVALIDPARAMETER_SYSTEMSNAPSHOTNOTFOUND = "InvalidParameter.SystemSnapshotNotFound"

	// The length of parameter exceeds the limit.
	INVALIDPARAMETER_VALUETOOLARGE = "InvalidParameter.ValueTooLarge"

	// The parameter combination is invalid.
	INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"

	// The two specified parameters conflict. An EIP can only be bound to the instance or the specified private IP of the specified ENI.
	INVALIDPARAMETERCONFLICT = "InvalidParameterConflict"

	// Incorrect parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// The shared bandwidth package ID is invalid. Please provide a standard shared bandwidth package ID in the format similar to bwp-xxxxxxxx. In this format, the letter x stands for a lowercase character or a number.
	INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed"

	// The specified bandwidth package does not exist.
	INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDNOTFOUND = "InvalidParameterValue.BandwidthPackageIdNotFound"

	// Corresponding CHC hosts not found
	INVALIDPARAMETERVALUE_CHCHOSTSNOTFOUND = "InvalidParameterValue.ChcHostsNotFound"

	// The minimum capacity of a SSD data disk is 100 GB.
	INVALIDPARAMETERVALUE_CLOUDSSDDATADISKSIZETOOSMALL = "InvalidParameterValue.CloudSsdDataDiskSizeTooSmall"

	// Illegal core count.
	INVALIDPARAMETERVALUE_CORECOUNTVALUE = "InvalidParameterValue.CoreCountValue"

	// Duplicate parameter value
	INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"

	// Non-GPU instances cannot be changed to the GPU instance.
	INVALIDPARAMETERVALUE_GPUINSTANCEFAMILY = "InvalidParameterValue.GPUInstanceFamily"

	// Invalid IP format
	INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"

	// Invalid IPv6 address
	INVALIDPARAMETERVALUE_IPV6ADDRESSMALFORMED = "InvalidParameterValue.IPv6AddressMalformed"

	// The value of HostName is invalid.
	INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = "InvalidParameterValue.IllegalHostName"

	// The specified instance type does not exist.
	INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"

	// This type of instances cannot be added to the HPC cluster.
	INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"

	// The HPC cluster needs to be specified for the high-performance computing instance.
	INVALIDPARAMETERVALUE_INSTANCETYPEREQUIREDHPCCLUSTER = "InvalidParameterValue.InstanceTypeRequiredHpcCluster"

	// The spot instance is out of stock.
	INVALIDPARAMETERVALUE_INSUFFICIENTOFFERING = "InvalidParameterValue.InsufficientOffering"

	// The bid is lower than the market price.
	INVALIDPARAMETERVALUE_INSUFFICIENTPRICE = "InvalidParameterValue.InsufficientPrice"

	// Invalid AppID
	INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"

	// The specified image does not support the specified instance type.
	INVALIDPARAMETERVALUE_INVALIDIMAGEFORGIVENINSTANCETYPE = "InvalidParameterValue.InvalidImageForGivenInstanceType"

	// A RAW image cannot be used to create a CVM. Choose another image.
	INVALIDPARAMETERVALUE_INVALIDIMAGEFORMAT = "InvalidParameterValue.InvalidImageFormat"

	// The image does not support this operation.
	INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"

	// The operating system of the specified image is not available in the current region.
	INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"

	// The image has another ongoing task. Please check and try again later.
	INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"

	// Invalid IP address.
	INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"

	// Invalid parameter value.
	INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUELIMIT = "InvalidParameterValue.InvalidParameterValueLimit"

	// Incorrect time format.
	INVALIDPARAMETERVALUE_INVALIDTIMEFORMAT = "InvalidParameterValue.InvalidTimeFormat"

	// Incorrect UserData format. Use the Base64-encoded format.
	INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"

	// Invalid fuzzy query string
	INVALIDPARAMETERVALUE_INVALIDVAGUENAME = "InvalidParameterValue.InvalidVagueName"

	// The key does not exist.
	INVALIDPARAMETERVALUE_KEYPAIRNOTFOUND = "InvalidParameterValue.KeyPairNotFound"

	// The specified key does not support the operation.
	INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = "InvalidParameterValue.KeyPairNotSupported"

	// The instance launch template ID does not exist.
	INVALIDPARAMETERVALUE_LAUNCHTEMPLATEIDNOTEXISTED = "InvalidParameterValue.LaunchTemplateIdNotExisted"

	// The number of parameter values exceeds the limit.
	INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"

	// The parameter value must be a DHCP-enabled VPC.
	INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"

	// Unsupported operation.
	INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported"

	//  Invalid parameter value: invalid parameter value range.
	INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"

	// Invalid snapshot ID. Provide a snapshot ID in the format of snap-xxxxxxxx, where the letter x refers to lowercase letter or number.
	INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"

	// Invalid subnet ID. Please provide a subnet ID in the format of subnet-xxxxxxxx, where “x” can be a lowercase letter or number.
	INVALIDPARAMETERVALUE_SUBNETIDMALFORMED = "InvalidParameterValue.SubnetIdMalformed"

	// Creation failed: the subnet does not exist. Please specify another subnet.
	INVALIDPARAMETERVALUE_SUBNETNOTEXIST = "InvalidParameterValue.SubnetNotExist"

	// The specified tag does not exist
	INVALIDPARAMETERVALUE_TAGKEYNOTFOUND = "InvalidParameterValue.TagKeyNotFound"

	// Invalid thread count per core.
	INVALIDPARAMETERVALUE_THREADPERCOREVALUE = "InvalidParameterValue.ThreadPerCoreValue"

	// The parameter value exceeds the maximum limit.
	INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"

	// Invalid parameter value: parameter value is too long.
	INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"

	// The VPC ID `xxx` is invalid. Please provide a VPC ID in the format of vpc-xxxxxxxx, where “x” can be a lowercase letter or number.
	INVALIDPARAMETERVALUE_VPCIDMALFORMED = "InvalidParameterValue.VpcIdMalformed"

	// The VPC and instance must be in the same availability zone.
	INVALIDPARAMETERVALUE_VPCIDZONEIDNOTMATCH = "InvalidParameterValue.VpcIdZoneIdNotMatch"

	// The availability zone does not support this operation.
	INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"

	// The number of parameter values exceeds the limit.
	INVALIDPARAMETERVALUELIMIT = "InvalidParameterValueLimit"

	// Invalid parameter value: invalid `Offset`.
	INVALIDPARAMETERVALUEOFFSET = "InvalidParameterValueOffset"

	// Invalid password. The specified password does not meet the password requirements. For example, the password length does not meet the requirements.
	INVALIDPASSWORD = "InvalidPassword"

	// Invalid period. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]; unit: month.
	INVALIDPERIOD = "InvalidPeriod"

	// This operation is not supported for the account.
	INVALIDPERMISSION = "InvalidPermission"

	// Invalid project ID: the specified project ID does not exist.
	INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"

	// Invalid public key: the specified key already exists.
	INVALIDPUBLICKEY_DUPLICATE = "InvalidPublicKey.Duplicate"

	// Invalid public key: the specified public key does not meet the `OpenSSH RSA` format requirements.
	INVALIDPUBLICKEY_MALFORMED = "InvalidPublicKey.Malformed"

	// The region cannot be found.
	INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"

	// Currently this region does not support image synchronization.
	INVALIDREGION_UNAVAILABLE = "InvalidRegion.Unavailable"

	// The specified `security group ID` does not exist.
	INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"

	// The specified `security group ID` is in the wrong format. For example, `sg-ide32` has an invalid `instance ID` length.
	INVALIDSGID_MALFORMED = "InvalidSgId.Malformed"

	// The specified `zone` does not exist.
	INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"

	// An instance can be bound with up to 5 security groups.
	LIMITEXCEEDED_ASSOCIATEUSGLIMITEXCEEDED = "LimitExceeded.AssociateUSGLimitExceeded"

	// The CVM ENIs associated with the security group has exceeded the limit.
	LIMITEXCEEDED_CVMSVIFSPERSECGROUPLIMITEXCEEDED = "LimitExceeded.CvmsVifsPerSecGroupLimitExceeded"

	// The quota of the specified placement group is insufficient.
	LIMITEXCEEDED_DISASTERRECOVERGROUP = "LimitExceeded.DisasterRecoverGroup"

	// The number of ENIs on a specified instance exceeds the maximum ENIs allowed for the target instance type. Delete some ENIs and try again.
	LIMITEXCEEDED_ENINUMLIMIT = "LimitExceeded.EniNumLimit"

	// Number of IPs on this ENI reached the upper limit
	LIMITEXCEEDED_IPV6ADDRESSNUM = "LimitExceeded.IPv6AddressNum"

	// You are short of the instance quota.
	LIMITEXCEEDED_INSTANCEQUOTA = "LimitExceeded.InstanceQuota"

	// Unable to adjust: the target instance type does not support the configured public network bandwidth cap. See [Public Network Bandwidth Cap](https://intl.cloud.tencent.com/document/product/213/12523).
	LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"

	// Your quota for monthly-subscribed instances is full. Increase your quota and try again.
	LIMITEXCEEDED_PREPAYQUOTA = "LimitExceeded.PrepayQuota"

	// The number of security groups exceeds the quota limit.
	LIMITEXCEEDED_SINGLEUSGQUOTA = "LimitExceeded.SingleUSGQuota"

	// The spot instance offerings are out of stock.
	LIMITEXCEEDED_SPOTQUOTA = "LimitExceeded.SpotQuota"

	// Failed to return instances because of the quota limit.
	LIMITEXCEEDED_USERRETURNQUOTA = "LimitExceeded.UserReturnQuota"

	// You are short of the spot instance quota.
	LIMITEXCEEDED_USERSPOTQUOTA = "LimitExceeded.UserSpotQuota"

	// Insufficient subnet IPs.
	LIMITEXCEEDED_VPCSUBNETNUM = "LimitExceeded.VpcSubnetNum"

	// Missing parameter.
	MISSINGPARAMETER = "MissingParameter"

	// Parameter missing. Provide at least one parameter.
	MISSINGPARAMETER_ATLEASTONE = "MissingParameter.AtLeastOne"

	// The DPDK instance requires a VPC.
	MISSINGPARAMETER_DPDKINSTANCETYPEREQUIREDVPC = "MissingParameter.DPDKInstanceTypeRequiredVPC"

	// The instance type must have Cloud Monitor enabled.
	MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"

	// An identical job is running.
	MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"

	// The instance has an operation in progress. Please try again later.
	OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"

	// The number of shared images exceeds the quota.
	OVERQUOTA = "OverQuota"

	// This region does not support importing images.
	REGIONABILITYLIMIT_UNSUPPORTEDTOIMPORTIMAGE = "RegionAbilityLimit.UnsupportedToImportImage"

	// The resource is in use.
	RESOURCEINUSE = "ResourceInUse"

	// The availability zone has been sold out.
	RESOURCEINSUFFICIENT_AVAILABILITYZONESOLDOUT = "ResourceInsufficient.AvailabilityZoneSoldOut"

	// The specified cloud disk has been sold out.
	RESOURCEINSUFFICIENT_CLOUDDISKSOLDOUT = "ResourceInsufficient.CloudDiskSoldOut"

	// The parameters of cloud disk do not meet the specification.
	RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"

	// The number of instances exceeded the quota limit of spread placement groups.
	RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"

	// The specified instance type is insufficient.
	RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"

	// The HPC cluster does not exist.
	RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"

	// The specified placement group does not exist.
	RESOURCENOTFOUND_INVALIDPLACEMENTSET = "ResourceNotFound.InvalidPlacementSet"

	// No default CBS resources are available.
	RESOURCENOTFOUND_NODEFAULTCBS = "ResourceNotFound.NoDefaultCbs"

	// No default CBS resources are available.
	RESOURCENOTFOUND_NODEFAULTCBSWITHREASON = "ResourceNotFound.NoDefaultCbsWithReason"

	// This instance type is unavailable in the availability zone.
	RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"

	// The snapshot is being created.
	RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"

	// Resources in this availability zone has been sold out.
	RESOURCESSOLDOUT_AVAILABLEZONE = "ResourcesSoldOut.AvailableZone"

	// The public IP has been sold out.
	RESOURCESSOLDOUT_EIPINSUFFICIENT = "ResourcesSoldOut.EipInsufficient"

	// The specified instance type is sold out.
	RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"

	// A general error occurred during the security group service API call.
	SECGROUPACTIONFAILURE = "SecGroupActionFailure"

	//
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// The specified image does not belong to the user.
	UNAUTHORIZEDOPERATION_IMAGENOTBELONGTOACCOUNT = "UnauthorizedOperation.ImageNotBelongToAccount"

	// Check if the token is valid.
	UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"

	// Unauthorized operation. Make sure Multi-Factor Authentication (MFA) is valid.
	UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"

	// Unauthorized operation. Make sure Multi-Factor Authentication (MFA) exists.
	UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"

	// You’re not authorized for the operation. Please check the CAM policy.
	UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

	// The specified instance or network cannot use the bandwidth package.
	UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"

	// IPv6 instances cannot be migrated from Classiclink to VPC.
	UNSUPPORTEDOPERATION_IPV6NOTSUPPORTVPCMIGRATE = "UnsupportedOperation.IPv6NotSupportVpcMigrate"

	// This instance billing mode does not support the operation.
	UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"

	// The instance `ins-xxxxxx` with the `Xserver windows2012cndatacenterx86_64` operating system does not support this operation.
	UNSUPPORTEDOPERATION_INSTANCEOSWINDOWS = "UnsupportedOperation.InstanceOsWindows"

	// The instances are permanently corrupted, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"

	// Instances are entering the rescue mode, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"

	// The instance `ins-xxxxxx` in the `ENTER_SERVICE_LIVE_MIGRATE` status is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"

	// Instances are exiting from the rescue mode, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"

	// The instance `ins-xxxxxx` in the `EXIT_SERVICE_LIVE_MIGRATE` status is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEEXITSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateExitServiceLiveMigrate"

	// Unable to isolate: the instance is isolated
	UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"

	// The instances are being created, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"

	// The instances are being restarted, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"

	// Instances in the rescue mode are not available for this operation.
	UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"

	// Running instances do not support this operation.
	UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"

	// The instances are being migrated, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"

	// Isolated instances do not support this operation.
	UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"

	// The instance is starting up, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"

	// The instance has been shut down, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATESTOPPED = "UnsupportedOperation.InstanceStateStopped"

	// The instance is being shut down, and this operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"

	// Terminated instances are not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"

	// The instance is being terminated, and the operation is not supported.
	UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"

	// The specified disk is not supported.
	UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"

	// The current operation is only supported for Tencent Cloud International users.
	UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"

	// Encrypted disks are not available in the selected regions.
	UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"

	// Key-pair login is not available to Windows instances.
	UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"

	// A model whose data disks are all local disks does not support cross-model configuration adjustment.
	UNSUPPORTEDOPERATION_LOCALDATADISKCHANGEINSTANCEFAMILY = "UnsupportedOperation.LocalDataDiskChangeInstanceFamily"

	// An instance bound with CLB does not support modifying its VPC attributes.
	UNSUPPORTEDOPERATION_MODIFYVPCWITHCLB = "UnsupportedOperation.ModifyVPCWithCLB"

	// This instance type does not support spot instances.
	UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"

	// Failed to configure the scheduled action for the current instance.
	UNSUPPORTEDOPERATION_NOTSUPPORTIMPORTINSTANCESACTIONTIMER = "UnsupportedOperation.NotSupportImportInstancesActionTimer"

	// The instance does not support this operation.
	UNSUPPORTEDOPERATION_NOTSUPPORTINSTANCEIMAGE = "UnsupportedOperation.NotSupportInstanceImage"

	// Only a prepaid account supports this operation.
	UNSUPPORTEDOPERATION_ONLYFORPREPAIDACCOUNT = "UnsupportedOperation.OnlyForPrepaidAccount"

	// This image does not support instance reinstallation.
	UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"

	// The region is unsupported.
	UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"

	// Purchasing reserved instances is not supported for the current user.
	UNSUPPORTEDOPERATION_RESERVEDINSTANCEINVISIBLEFORUSER = "UnsupportedOperation.ReservedInstanceInvisibleForUser"

	// You’ve used up your quota for Reserved Instances.
	UNSUPPORTEDOPERATION_RESERVEDINSTANCEOUTOFQUATA = "UnsupportedOperation.ReservedInstanceOutofQuata"

	// This special instance type does not support the operation.
	UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"

	// The instance does not support the **no charges when shut down** feature.
	UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

	// The specified model does not support cross-model configuration adjustment.
	UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILY = "UnsupportedOperation.UnsupportedChangeInstanceFamily"

	// Non-ARM model instances cannot be changed to the ARM model.
	UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILYTOARM = "UnsupportedOperation.UnsupportedChangeInstanceFamilyToARM"

	// The target model (SA3) does not support configuration adjustment.
	UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILYTOSA3 = "UnsupportedOperation.UnsupportedChangeInstanceFamilyToSA3"

	// A Tencent Cloud International account does not support this operation.
	UNSUPPORTEDOPERATION_UNSUPPORTEDINTERNATIONALUSER = "UnsupportedOperation.UnsupportedInternationalUser"

	// The quota of user limit operations is insufficient.
	UNSUPPORTEDOPERATION_USERLIMITOPERATIONEXCEEDQUOTA = "UnsupportedOperation.UserLimitOperationExceedQuota"

	// The VPC IP address is not in the subnet.
	VPCADDRNOTINSUBNET = "VpcAddrNotInSubNet"

	// The VPC IP address is already occupied.
	VPCIPISUSED = "VpcIpIsUsed"
)
View Source
const APIVersion = "2017-03-12"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionTimer

type ActionTimer struct {

	// Additional data
	Externals *Externals `json:"Externals,omitempty" name:"Externals"`

	// Timer name. Currently `TerminateInstances` is the only supported value.
	TimerAction *string `json:"TimerAction,omitempty" name:"TimerAction"`

	// Execution time, which must be at least 5 minutes later than the current time. For example, 2018-5-29 11:26:40.
	ActionTime *string `json:"ActionTime,omitempty" name:"ActionTime"`
}

type AllocateHostsRequest

type AllocateHostsRequest struct {
	*tchttp.BaseRequest

	// Instance location. This parameter is used to specify the attributes of an instance, such as its availability zone and project.
	Placement *Placement `json:"Placement,omitempty" name:"Placement"`

	// A string used to ensure the idempotency of the request.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`

	// Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
	HostChargePrepaid *ChargePrepaid `json:"HostChargePrepaid,omitempty" name:"HostChargePrepaid"`

	// Instance billing model, only monthly or yearly subscription supported. Default value: `PREPAID'.
	HostChargeType *string `json:"HostChargeType,omitempty" name:"HostChargeType"`

	// CDH instance model. Default value: `HS1`.
	HostType *string `json:"HostType,omitempty" name:"HostType"`

	// Quantity of CDH instances purchased. Default value: 1.
	HostCount *uint64 `json:"HostCount,omitempty" name:"HostCount"`

	// Tag description. You can specify the parameter to associate a tag with an instance.
	TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`
}

func NewAllocateHostsRequest

func NewAllocateHostsRequest() (request *AllocateHostsRequest)

func (*AllocateHostsRequest) FromJsonString

func (r *AllocateHostsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AllocateHostsRequest) ToJsonString

func (r *AllocateHostsRequest) ToJsonString() string

type AllocateHostsResponse

type AllocateHostsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The ID list of the CVM instances newly created on the CDH.
		HostIdSet []*string `json:"HostIdSet,omitempty" name:"HostIdSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAllocateHostsResponse

func NewAllocateHostsResponse() (response *AllocateHostsResponse)

func (*AllocateHostsResponse) FromJsonString

func (r *AllocateHostsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AllocateHostsResponse) ToJsonString

func (r *AllocateHostsResponse) ToJsonString() string

type AssociateInstancesKeyPairsRequest

type AssociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). The maximum number of instances in each request is 100. <br>You can obtain the available instance IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/index) to query the instance IDs. <br><li>Call [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Key ID(s). The maximum number of key pairs in each request is 100. The key pair ID is in the format of `skey-3glfot13`. <br>You can obtain the available key pair IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/sshkey) to query the key pair IDs. <br><li>Call [DescribeKeyPairs](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) and look for `KeyId` in the response.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Whether to force shut down a running instances. It is recommended to manually shut down a running instance before associating a key pair with it. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails. <br><li>FALSE: do not force shut down an instance after a normal shutdown fails. <br><br>Default value: FALSE.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewAssociateInstancesKeyPairsRequest

func NewAssociateInstancesKeyPairsRequest() (request *AssociateInstancesKeyPairsRequest)

func (*AssociateInstancesKeyPairsRequest) FromJsonString

func (r *AssociateInstancesKeyPairsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateInstancesKeyPairsRequest) ToJsonString

func (r *AssociateInstancesKeyPairsRequest) ToJsonString() string

type AssociateInstancesKeyPairsResponse

type AssociateInstancesKeyPairsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAssociateInstancesKeyPairsResponse

func NewAssociateInstancesKeyPairsResponse() (response *AssociateInstancesKeyPairsResponse)

func (*AssociateInstancesKeyPairsResponse) FromJsonString

func (r *AssociateInstancesKeyPairsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateInstancesKeyPairsResponse) ToJsonString

func (r *AssociateInstancesKeyPairsResponse) ToJsonString() string

type AssociateSecurityGroupsRequest

type AssociateSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// ID of the security group to be associated, such as `sg-efil73jd`. Only one security group can be associated.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`

	// ID of the instance bound in the format of ins-lesecurk. You can specify up to 100 instances in each request.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewAssociateSecurityGroupsRequest

func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest)

func (*AssociateSecurityGroupsRequest) FromJsonString

func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSecurityGroupsRequest) ToJsonString

func (r *AssociateSecurityGroupsRequest) ToJsonString() string

type AssociateSecurityGroupsResponse

type AssociateSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAssociateSecurityGroupsResponse

func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse)

func (*AssociateSecurityGroupsResponse) FromJsonString

func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSecurityGroupsResponse) ToJsonString

func (r *AssociateSecurityGroupsResponse) ToJsonString() string

type ChargePrepaid

type ChargePrepaid struct {

	// Purchased usage period, in month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36
	Period *uint64 `json:"Period,omitempty" name:"Period"`

	// Auto renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically <br><br>Default value: NOTIFY_AND_AUTO_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) AllocateHosts

func (c *Client) AllocateHosts(request *AllocateHostsRequest) (response *AllocateHostsResponse, err error)

AllocateHosts This API is used to create CDH instances with specified configuration.

* When HostChargeType is PREPAID, the HostChargePrepaid parameter must be specified.

error code that may be returned:

INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
INVALIDPERIOD = "InvalidPeriod"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"

func (*Client) AssociateInstancesKeyPairs

func (c *Client) AssociateInstancesKeyPairs(request *AssociateInstancesKeyPairsRequest) (response *AssociateInstancesKeyPairsResponse, err error)

AssociateInstancesKeyPairs This API is used to associate key pairs with instances.

* If the public key of a key pair is written to the `SSH` configuration of the instance, users will be able to log in to the instance with the private key of the key pair.

* If the instance is already associated with a key, the old key will become invalid.

If you currently use a password to log in, you will no longer be able to do so after you associate the instance with a key.

* Batch operations are supported. The maximum number of instances in each request is 100. If any instance in the request cannot be associated with a key, you will get an error code.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = "InvalidParameterValue.KeyPairNotSupported"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCEOSWINDOWS = "UnsupportedOperation.InstanceOsWindows"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) AssociateSecurityGroups

func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)

AssociateSecurityGroups This API is used to associate security groups with specified instances.

error code that may be returned:

FAILEDOPERATION_SECURITYGROUPACTIONFAILED = "FailedOperation.SecurityGroupActionFailed"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"
INVALIDSGID_MALFORMED = "InvalidSgId.Malformed"
LIMITEXCEEDED_ASSOCIATEUSGLIMITEXCEEDED = "LimitExceeded.AssociateUSGLimitExceeded"
LIMITEXCEEDED_CVMSVIFSPERSECGROUPLIMITEXCEEDED = "LimitExceeded.CvmsVifsPerSecGroupLimitExceeded"
LIMITEXCEEDED_SINGLEUSGQUOTA = "LimitExceeded.SingleUSGQuota"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
SECGROUPACTIONFAILURE = "SecGroupActionFailure"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"

func (*Client) CreateDisasterRecoverGroup

func (c *Client) CreateDisasterRecoverGroup(request *CreateDisasterRecoverGroupRequest) (response *CreateDisasterRecoverGroupResponse, err error)

CreateDisasterRecoverGroup This API is used to create a [spread placement group](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1). After you create one, you can specify it for an instance when you [create the instance](https://intl.cloud.tencent.com/document/api/213/15730?from_cn_redirect=1),

error code that may be returned:

INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"

func (*Client) CreateImage

func (c *Client) CreateImage(request *CreateImageRequest) (response *CreateImageResponse, err error)

CreateImage This API is used to create a new image with the system disk of an instance. The image can be used to create new instances.

error code that may be returned:

IMAGEQUOTALIMITEXCEEDED = "ImageQuotaLimitExceeded"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDIMAGENAME_DUPLICATE = "InvalidImageName.Duplicate"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETER_DATADISKIDCONTAINSROOTDISK = "InvalidParameter.DataDiskIdContainsRootDisk"
INVALIDPARAMETER_DATADISKNOTBELONGSPECIFIEDINSTANCE = "InvalidParameter.DataDiskNotBelongSpecifiedInstance"
INVALIDPARAMETER_DUPLICATESYSTEMSNAPSHOTS = "InvalidParameter.DuplicateSystemSnapshots"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETER_INVALIDDEPENDENCE = "InvalidParameter.InvalidDependence"
INVALIDPARAMETER_LOCALDATADISKNOTSUPPORT = "InvalidParameter.LocalDataDiskNotSupport"
INVALIDPARAMETER_SNAPSHOTNOTFOUND = "InvalidParameter.SnapshotNotFound"
INVALIDPARAMETER_SPECIFYONEPARAMETER = "InvalidParameter.SpecifyOneParameter"
INVALIDPARAMETER_SWAPDISKNOTSUPPORT = "InvalidParameter.SwapDiskNotSupport"
INVALIDPARAMETER_SYSTEMSNAPSHOTNOTFOUND = "InvalidParameter.SystemSnapshotNotFound"
INVALIDPARAMETER_VALUETOOLARGE = "InvalidParameter.ValueTooLarge"
INVALIDPARAMETERCONFLICT = "InvalidParameterConflict"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_NOTSUPPORTINSTANCEIMAGE = "UnsupportedOperation.NotSupportInstanceImage"
UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) CreateKeyPair

func (c *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error)

CreateKeyPair This API is used to create an `OpenSSH RSA` key pair, which you can use to log in to a `Linux` instance.

* You only need to specify a name, and the system will automatically create a key pair and return its `ID` and the public and private keys.

* The name of the key pair must be unique.

* You can save the private key to a file and use it as an authentication method for `SSH`.

* Tencent Cloud does not save users' private keys. Be sure to save it yourself.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRNAME_DUPLICATE = "InvalidKeyPairName.Duplicate"
INVALIDKEYPAIRNAMEEMPTY = "InvalidKeyPairNameEmpty"
INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidKeyPairNameIncludeIllegalChar"
INVALIDKEYPAIRNAMETOOLONG = "InvalidKeyPairNameTooLong"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DeleteDisasterRecoverGroups

func (c *Client) DeleteDisasterRecoverGroups(request *DeleteDisasterRecoverGroupsRequest) (response *DeleteDisasterRecoverGroupsResponse, err error)

DeleteDisasterRecoverGroups This API is used to delete a [spread placement group](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1). Only empty placement groups can be deleted. To delete a non-empty group, you need to terminate all the CVM instances in it first. Otherwise, the deletion will fail.

error code that may be returned:

FAILEDOPERATION_PLACEMENTSETNOTEMPTY = "FailedOperation.PlacementSetNotEmpty"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
RESOURCENOTFOUND_INVALIDPLACEMENTSET = "ResourceNotFound.InvalidPlacementSet"

func (*Client) DeleteImages

func (c *Client) DeleteImages(request *DeleteImagesRequest) (response *DeleteImagesResponse, err error)

DeleteImages This API is used to delete images.

* If the [ImageState](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state) of an image is `Creating` or `In Use`, it cannot be deleted. Use [DescribeImages](https://intl.cloud.tencent.com/document/api/213/9418?from_cn_redirect=1) to query the image state.

* You can only create up to 10 custom images in each region. If you have used up the quota, you can delete images to create new ones.

* A shared image cannot be deleted.

error code that may be returned:

INVALIDIMAGEID_INSHARED = "InvalidImageId.InShared"
INVALIDIMAGEID_INCORRECTSTATE = "InvalidImageId.IncorrectState"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"

func (*Client) DeleteKeyPairs

func (c *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)

DeleteKeyPairs This API is used to delete the key pairs hosted in Tencent Cloud.

* You can delete multiple key pairs at the same time.

* A key pair used by an instance or image cannot be deleted. Therefore, you need to verify whether all the key pairs have been deleted successfully.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = "InvalidParameterValue.KeyPairNotSupported"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeDisasterRecoverGroupQuota

func (c *Client) DescribeDisasterRecoverGroupQuota(request *DescribeDisasterRecoverGroupQuotaRequest) (response *DescribeDisasterRecoverGroupQuotaResponse, err error)

DescribeDisasterRecoverGroupQuota This API is used to query the quota of [spread placement groups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1).

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = "InvalidParameterValue.KeyPairNotSupported"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeDisasterRecoverGroups

func (c *Client) DescribeDisasterRecoverGroups(request *DescribeDisasterRecoverGroupsRequest) (response *DescribeDisasterRecoverGroupsResponse, err error)

DescribeDisasterRecoverGroups This API is used to query the information on [spread placement groups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1).

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = "InvalidParameterValue.KeyPairNotSupported"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeHosts

func (c *Client) DescribeHosts(request *DescribeHostsRequest) (response *DescribeHostsResponse, err error)

DescribeHosts This API is used to query the details of CDH instances.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeImageQuota

func (c *Client) DescribeImageQuota(request *DescribeImageQuotaRequest) (response *DescribeImageQuotaResponse, err error)

DescribeImageQuota This API is used to query the image quota of an user account.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeImageSharePermission

func (c *Client) DescribeImageSharePermission(request *DescribeImageSharePermissionRequest) (response *DescribeImageSharePermissionResponse, err error)

DescribeImageSharePermission This API is used to query image sharing information.

error code that may be returned:

INVALIDACCOUNTID_NOTFOUND = "InvalidAccountId.NotFound"
INVALIDACCOUNTIS_YOURSELF = "InvalidAccountIs.YourSelf"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
OVERQUOTA = "OverQuota"
UNAUTHORIZEDOPERATION_IMAGENOTBELONGTOACCOUNT = "UnauthorizedOperation.ImageNotBelongToAccount"

func (*Client) DescribeImages

func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error)

DescribeImages This API is used to view the list of images.

* You specify the image ID or set filters to query the details of certain images.

* You can specify `Offset` and `Limit` to select a certain part of the results. By default, the information on the first 20 matching results is returned.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER_INVALIDPARAMETERCOEXISTIMAGEIDSFILTERS = "InvalidParameter.InvalidParameterCoexistImageIdsFilters"
INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUELIMIT = "InvalidParameterValue.InvalidParameterValueLimit"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeImportImageOs

func (c *Client) DescribeImportImageOs(request *DescribeImportImageOsRequest) (response *DescribeImportImageOsResponse, err error)

DescribeImportImageOs This API is used to query the list of supported operating systems of imported images.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER_INVALIDPARAMETERCOEXISTIMAGEIDSFILTERS = "InvalidParameter.InvalidParameterCoexistImageIdsFilters"
INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUELIMIT = "InvalidParameterValue.InvalidParameterValueLimit"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeInstanceFamilyConfigs

func (c *Client) DescribeInstanceFamilyConfigs(request *DescribeInstanceFamilyConfigsRequest) (response *DescribeInstanceFamilyConfigsResponse, err error)

DescribeInstanceFamilyConfigs This API is used to query a list of model families available to the current user in the current region.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"

func (*Client) DescribeInstanceTypeConfigs

func (c *Client) DescribeInstanceTypeConfigs(request *DescribeInstanceTypeConfigsRequest) (response *DescribeInstanceTypeConfigsResponse, err error)

DescribeInstanceTypeConfigs This API is used to query the model configuration of an instance.

* You can filter the query results with `zone` or `instance-family`. For more information on filtering conditions, see [`Filter`](https://intl.cloud.tencent.com/document/api/213/15753?from_cn_redirect=1#Filter).

* If no parameter is defined, the model configuration of all the instances in the specified region will be returned.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"

func (*Client) DescribeInstanceVncUrl

func (c *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error)

DescribeInstanceVncUrl This API is used to query the Virtual Network Console (VNC) URL of an instance for its login to the VNC.

* It does not support `STOPPED` CVMs.

* A VNC URL is only valid for 15 seconds. If you do not access the URL within 15 seconds, it will become invalid and you have to query a URL again.

* Once the VNC URL is accessed, it will become invalid and you have to query a URL again if needed.

* If the connection is interrupted, you can make up to 30 reconnection attempts per minute.

* After getting the value `InstanceVncUrl`, you need to append `InstanceVncUrl=xxxx` to the end of the link <https://img.qcloud.com/qcloud/app/active_vnc/index.html?>.

  • `InstanceVncUrl`: its value will be returned after the API is successfully called.

    The final URL is in the following format:

```

https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F%2Fbjvnc.qcloud.com%3A26789%2Fvnc%3Fs%3DaHpjWnRVMFNhYmxKdDM5MjRHNlVTSVQwajNUSW0wb2tBbmFtREFCTmFrcy8vUUNPMG0wSHZNOUUxRm5PMmUzWmFDcWlOdDJIbUJxSTZDL0RXcHZxYnZZMmRkWWZWcEZia2lyb09XMzdKNmM9

```

error code that may be returned:

INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCESTATE = "InvalidInstanceState"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPED = "UnsupportedOperation.InstanceStateStopped"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) DescribeInstances

func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)

DescribeInstances This API is used to query the details of instances.

* You can filter the query results with the instance `ID`, name, or billing method. See `Filter` for more information.

* If no parameter is defined, a certain number of instances under the current account will be returned. The number is specified by `Limit` and is 20 by default.

error code that may be returned:

FAILEDOPERATION_ILLEGALTAGKEY = "FailedOperation.IllegalTagKey"
FAILEDOPERATION_ILLEGALTAGVALUE = "FailedOperation.IllegalTagValue"
FAILEDOPERATION_TAGKEYRESERVED = "FailedOperation.TagKeyReserved"
INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"
INVALIDPARAMETERVALUE_IPV6ADDRESSMALFORMED = "InvalidParameterValue.IPv6AddressMalformed"
INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
INVALIDPARAMETERVALUE_INVALIDVAGUENAME = "InvalidParameterValue.InvalidVagueName"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_SUBNETIDMALFORMED = "InvalidParameterValue.SubnetIdMalformed"
INVALIDPARAMETERVALUE_TAGKEYNOTFOUND = "InvalidParameterValue.TagKeyNotFound"
INVALIDPARAMETERVALUE_VPCIDMALFORMED = "InvalidParameterValue.VpcIdMalformed"
INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"
INVALIDSGID_MALFORMED = "InvalidSgId.Malformed"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"
UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"

func (*Client) DescribeInstancesOperationLimit

func (c *Client) DescribeInstancesOperationLimit(request *DescribeInstancesOperationLimitRequest) (response *DescribeInstancesOperationLimitResponse, err error)

DescribeInstancesOperationLimit This API is used to query limitations on operations on an instance.

* Currently you can use this API to query the maximum number of times you can modify the configuration of an instance.

error code that may be returned:

INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"

func (*Client) DescribeInstancesStatus

func (c *Client) DescribeInstancesStatus(request *DescribeInstancesStatusRequest) (response *DescribeInstancesStatusResponse, err error)

DescribeInstancesStatus This API is used to query the status of instances.

* You can query the status of an instance with its `ID`.

* If no parameter is defined, the status of a certain number of instances under the current account will be returned. The number is specified by `Limit` and is 20 by default.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"

func (*Client) DescribeInternetChargeTypeConfigs

func (c *Client) DescribeInternetChargeTypeConfigs(request *DescribeInternetChargeTypeConfigsRequest) (response *DescribeInternetChargeTypeConfigsResponse, err error)

DescribeInternetChargeTypeConfigs This API is used to query the network billing methods.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"

func (*Client) DescribeKeyPairs

func (c *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)

DescribeKeyPairs This API is used to query key pairs.

* A key pair is a pair of keys generated by an algorithm in which the public key is available to the public and the private key is available only to the user. You can use this API to query the public key but not the private key.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUELIMIT = "InvalidParameterValueLimit"
INVALIDPARAMETERVALUEOFFSET = "InvalidParameterValueOffset"

func (*Client) DescribeRegions

func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)

DescribeRegions (Suspended) This API is used to query the information of regions. Due to platform policy, the update of this API has been temporarily stopped. Please try the new one as described in https://intl.cloud.tencent.com/document/product/1278/55255?from_cn_redirect=1

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUELIMIT = "InvalidParameterValueLimit"
INVALIDPARAMETERVALUEOFFSET = "InvalidParameterValueOffset"

func (*Client) DescribeReservedInstances

func (c *Client) DescribeReservedInstances(request *DescribeReservedInstancesRequest) (response *DescribeReservedInstancesResponse, err error)

DescribeReservedInstances This API is used to list reserved instances the user has purchased.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"
UNSUPPORTEDOPERATION_RESERVEDINSTANCEINVISIBLEFORUSER = "UnsupportedOperation.ReservedInstanceInvisibleForUser"

func (*Client) DescribeReservedInstancesConfigInfos

func (c *Client) DescribeReservedInstancesConfigInfos(request *DescribeReservedInstancesConfigInfosRequest) (response *DescribeReservedInstancesConfigInfosResponse, err error)

DescribeReservedInstancesConfigInfos This API is used to describe reserved instance (RI) offerings. Currently, RIs are only offered to beta users.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"
UNSUPPORTEDOPERATION_RESERVEDINSTANCEINVISIBLEFORUSER = "UnsupportedOperation.ReservedInstanceInvisibleForUser"

func (*Client) DescribeReservedInstancesOfferings

func (c *Client) DescribeReservedInstancesOfferings(request *DescribeReservedInstancesOfferingsRequest) (response *DescribeReservedInstancesOfferingsResponse, err error)

DescribeReservedInstancesOfferings This API is used to describe Reserved Instance offerings that are available for purchase.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"
UNSUPPORTEDOPERATION_RESERVEDINSTANCEINVISIBLEFORUSER = "UnsupportedOperation.ReservedInstanceInvisibleForUser"

func (*Client) DescribeZoneInstanceConfigInfos

func (c *Client) DescribeZoneInstanceConfigInfos(request *DescribeZoneInstanceConfigInfosRequest) (response *DescribeZoneInstanceConfigInfosResponse, err error)

DescribeZoneInstanceConfigInfos This API is used to query the configurations of models in an availability zone.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
RESOURCEINSUFFICIENT_AVAILABILITYZONESOLDOUT = "ResourceInsufficient.AvailabilityZoneSoldOut"

func (*Client) DescribeZones

func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)

DescribeZones This API is used to query availability zones.

error code that may be returned:

INVALIDFILTER = "InvalidFilter"
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
RESOURCEINSUFFICIENT_AVAILABILITYZONESOLDOUT = "ResourceInsufficient.AvailabilityZoneSoldOut"

func (*Client) DisassociateInstancesKeyPairs

func (c *Client) DisassociateInstancesKeyPairs(request *DisassociateInstancesKeyPairsRequest) (response *DisassociateInstancesKeyPairsResponse, err error)

DisassociateInstancesKeyPairs This API is used to unbind one or more key pairs from one or more instances.

* It only supports [`STOPPED`](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#InstanceStatus) Linux instances.

* After a key pair is disassociated from an instance, you can log in to the instance with password.

* If you did not set a password for the instance, you will not be able to log in via SSH after the unbinding. In this case, you can call [ResetInstancesPassword](https://intl.cloud.tencent.com/document/api/213/15736?from_cn_redirect=1) to set a login password.

* Batch operations are supported. The maximum number of instances in each request is 100. If instances not available for the operation are selected, you will get an error code.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNSUPPORTEDOPERATION_INSTANCEOSWINDOWS = "UnsupportedOperation.InstanceOsWindows"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) DisassociateSecurityGroups

func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)

DisassociateSecurityGroups This API is used to disassociate security groups from instances.

error code that may be returned:

FAILEDOPERATION_SECURITYGROUPACTIONFAILED = "FailedOperation.SecurityGroupActionFailed"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"
INVALIDSGID_MALFORMED = "InvalidSgId.Malformed"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
SECGROUPACTIONFAILURE = "SecGroupActionFailure"

func (*Client) ImportImage

func (c *Client) ImportImage(request *ImportImageRequest) (response *ImportImageResponse, err error)

ImportImage The API is used to import an image. The image imported can be used to create instances. Currently, this API can import images in formats like RAW, VHD, QCOW2, and VMDK.

error code that may be returned:

IMAGEQUOTALIMITEXCEEDED = "ImageQuotaLimitExceeded"
INVALIDIMAGENAME_DUPLICATE = "InvalidImageName.Duplicate"
INVALIDIMAGEOSTYPE_UNSUPPORTED = "InvalidImageOsType.Unsupported"
INVALIDIMAGEOSVERSION_UNSUPPORTED = "InvalidImageOsVersion.Unsupported"
INVALIDPARAMETER_INVALIDPARAMETERURLERROR = "InvalidParameter.InvalidParameterUrlError"
INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
REGIONABILITYLIMIT_UNSUPPORTEDTOIMPORTIMAGE = "RegionAbilityLimit.UnsupportedToImportImage"

func (*Client) ImportKeyPair

func (c *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)

ImportKeyPair This API is used to import key pairs.

* You can use this API to import key pairs to a user account, but the key pairs will not be automatically associated with any instance. You may use [AssociasteInstancesKeyPair](https://intl.cloud.tencent.com/document/api/213/9404?from_cn_redirect=1) to associate key pairs with instances.

* You need to specify the names of the key pairs and the content of the public keys.

* If you only have private keys, you can convert them to public keys with the `SSL` tool before importing them.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIR_LIMITEXCEEDED = "InvalidKeyPair.LimitExceeded"
INVALIDKEYPAIRNAME_DUPLICATE = "InvalidKeyPairName.Duplicate"
INVALIDKEYPAIRNAMEEMPTY = "InvalidKeyPairNameEmpty"
INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidKeyPairNameIncludeIllegalChar"
INVALIDKEYPAIRNAMETOOLONG = "InvalidKeyPairNameTooLong"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
INVALIDPUBLICKEY_DUPLICATE = "InvalidPublicKey.Duplicate"
INVALIDPUBLICKEY_MALFORMED = "InvalidPublicKey.Malformed"
MISSINGPARAMETER = "MissingParameter"

func (*Client) InquirePricePurchaseReservedInstancesOffering

func (c *Client) InquirePricePurchaseReservedInstancesOffering(request *InquirePricePurchaseReservedInstancesOfferingRequest) (response *InquirePricePurchaseReservedInstancesOfferingResponse, err error)

InquirePricePurchaseReservedInstancesOffering This API is used to query the price of reserved instances. It only supports querying purchasable reserved instance offerings. Currently, RIs are only offered to beta users.

error code that may be returned:

FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"

func (*Client) InquiryPriceResetInstance

func (c *Client) InquiryPriceResetInstance(request *InquiryPriceResetInstanceRequest) (response *InquiryPriceResetInstanceResponse, err error)

InquiryPriceResetInstance This API is used to query the price for reinstalling an instance.

* If you have specified the `ImageId` parameter, the price query is performed with the specified image. Otherwise, the image used by the current instance is used.

* You can only query the price for reinstallation caused by switching between Linux and Windows OS. And the [system disk type](https://intl.cloud.tencent.com/document/api/213/15753?from_cn_redirect=1#SystemDisk) of the instance must be `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`.

* Currently, this API only supports instances in Mainland China regions.

error code that may be returned:

FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"

func (*Client) InquiryPriceResetInstancesInternetMaxBandwidth

func (c *Client) InquiryPriceResetInstancesInternetMaxBandwidth(request *InquiryPriceResetInstancesInternetMaxBandwidthRequest) (response *InquiryPriceResetInstancesInternetMaxBandwidthResponse, err error)

InquiryPriceResetInstancesInternetMaxBandwidth This API is used to query the price for upgrading the public bandwidth cap of an instance.

* The allowed bandwidth cap varies for different models. For details, see [Purchasing Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).

* For bandwidth billed by the `TRAFFIC_POSTPAID_BY_HOUR` method, changing the bandwidth cap through this API takes effect in real time. You can increase or reduce bandwidth within applicable limits.

error code that may be returned:

FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
FAILEDOPERATION_NOTFOUNDEIP = "FailedOperation.NotFoundEIP"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
INVALIDPERMISSION = "InvalidPermission"
MISSINGPARAMETER = "MissingParameter"

func (*Client) InquiryPriceResetInstancesType

func (c *Client) InquiryPriceResetInstancesType(request *InquiryPriceResetInstancesTypeRequest) (response *InquiryPriceResetInstancesTypeResponse, err error)

InquiryPriceResetInstancesType This API is used to query the price for adjusting the instance model.

* Currently, you can only use this API to query the prices of instances whose [system disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`.

* Currently, you cannot use this API to query the prices of [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances.

error code that may be returned:

FAILEDOPERATION_INQUIRYREFUNDPRICEFAILED = "FailedOperation.InquiryRefundPriceFailed"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPERMISSION = "InvalidPermission"
LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
MISSINGPARAMETER = "MissingParameter"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
UNSUPPORTEDOPERATION_LOCALDATADISKCHANGEINSTANCEFAMILY = "UnsupportedOperation.LocalDataDiskChangeInstanceFamily"
UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILYTOSA3 = "UnsupportedOperation.UnsupportedChangeInstanceFamilyToSA3"

func (*Client) InquiryPriceResizeInstanceDisks

func (c *Client) InquiryPriceResizeInstanceDisks(request *InquiryPriceResizeInstanceDisksRequest) (response *InquiryPriceResizeInstanceDisksResponse, err error)

InquiryPriceResizeInstanceDisks This API is used to query the price for expanding data disks of an instance.

* Currently, you can only use this API to query the price of non-elastic data disks whose [disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`. You can use [`DescribeDisks`](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1) to check whether a disk is elastic. If the `Portable` field in the response is `false`, it means that the disk is non-elastic.

* Currently, you cannot use this API to query the price for [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances. *Also, you can only query the price of expanding one data disk at a time.

error code that may be returned:

INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_ATLEASTONE = "MissingParameter.AtLeastOne"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"

func (*Client) InquiryPriceRunInstances

func (c *Client) InquiryPriceRunInstances(request *InquiryPriceRunInstancesRequest) (response *InquiryPriceRunInstancesResponse, err error)

InquiryPriceRunInstances This API is used to query the price of creating instances. You can only use this API for instances whose configuration is within the purchase limit. For more information, see [RunInstances](https://intl.cloud.tencent.com/document/api/213/15730?from_cn_redirect=1).

error code that may be returned:

ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"
FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = "FailedOperation.DisasterRecoverGroupNotFound"
FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
FAILEDOPERATION_SNAPSHOTSIZELARGERTHANDATASIZE = "FailedOperation.SnapshotSizeLargerThanDataSize"
FAILEDOPERATION_TAGKEYRESERVED = "FailedOperation.TagKeyReserved"
FAILEDOPERATION_TATAGENTNOTSUPPORT = "FailedOperation.TatAgentNotSupport"
INSTANCESQUOTALIMITEXCEEDED = "InstancesQuotaLimitExceeded"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INVALIDCLIENTTOKEN_TOOLONG = "InvalidClientToken.TooLong"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDHOSTID_NOTFOUND = "InvalidHostId.NotFound"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDINSTANCENAME_TOOLONG = "InvalidInstanceName.TooLong"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETER_SNAPSHOTNOTFOUND = "InvalidParameter.SnapshotNotFound"
INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDNOTFOUND = "InvalidParameterValue.BandwidthPackageIdNotFound"
INVALIDPARAMETERVALUE_CLOUDSSDDATADISKSIZETOOSMALL = "InvalidParameterValue.CloudSsdDataDiskSizeTooSmall"
INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"
INVALIDPARAMETERVALUE_INSTANCETYPEREQUIREDHPCCLUSTER = "InvalidParameterValue.InstanceTypeRequiredHpcCluster"
INVALIDPARAMETERVALUE_INSUFFICIENTPRICE = "InvalidParameterValue.InsufficientPrice"
INVALIDPARAMETERVALUE_INVALIDIMAGEFORMAT = "InvalidParameterValue.InvalidImageFormat"
INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"
INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
INVALIDPASSWORD = "InvalidPassword"
INVALIDPERIOD = "InvalidPeriod"
INVALIDPERMISSION = "InvalidPermission"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
LIMITEXCEEDED_DISASTERRECOVERGROUP = "LimitExceeded.DisasterRecoverGroup"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"
RESOURCENOTFOUND_NODEFAULTCBS = "ResourceNotFound.NoDefaultCbs"
RESOURCENOTFOUND_NODEFAULTCBSWITHREASON = "ResourceNotFound.NoDefaultCbsWithReason"
RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"
UNSUPPORTEDOPERATION_ONLYFORPREPAIDACCOUNT = "UnsupportedOperation.OnlyForPrepaidAccount"
UNSUPPORTEDOPERATION_UNSUPPORTEDINTERNATIONALUSER = "UnsupportedOperation.UnsupportedInternationalUser"

func (*Client) ModifyDisasterRecoverGroupAttribute

func (c *Client) ModifyDisasterRecoverGroupAttribute(request *ModifyDisasterRecoverGroupAttributeRequest) (response *ModifyDisasterRecoverGroupAttributeResponse, err error)

ModifyDisasterRecoverGroupAttribute This API is used to modify the attributes of [spread placement groups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1).

error code that may be returned:

RESOURCENOTFOUND_INVALIDPLACEMENTSET = "ResourceNotFound.InvalidPlacementSet"

func (*Client) ModifyHostsAttribute

func (c *Client) ModifyHostsAttribute(request *ModifyHostsAttributeRequest) (response *ModifyHostsAttributeResponse, err error)

ModifyHostsAttribute This API is used to modify the attributes of a CDH instance, such as instance name and renewal flag. One of the two parameters, HostName and RenewFlag, must be set, but you cannot set both of them at the same time.

error code that may be returned:

INVALIDHOST_NOTSUPPORTED = "InvalidHost.NotSupported"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDHOSTID_NOTFOUND = "InvalidHostId.NotFound"

func (*Client) ModifyImageAttribute

func (c *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error)

ModifyImageAttribute This API is used to modify image attributes.

* Attributes of shared images cannot be modified.

error code that may be returned:

INVALIDIMAGEID_INCORRECTSTATE = "InvalidImageId.IncorrectState"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDIMAGENAME_DUPLICATE = "InvalidImageName.Duplicate"
INVALIDPARAMETER_VALUETOOLARGE = "InvalidParameter.ValueTooLarge"
INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"

func (*Client) ModifyImageSharePermission

func (c *Client) ModifyImageSharePermission(request *ModifyImageSharePermissionRequest) (response *ModifyImageSharePermissionResponse, err error)

ModifyImageSharePermission This API is used to modify image sharing information.

* The accounts with which an image is shared can use the shared image to create instances.

* Each custom image can be shared with up to 50 accounts.

* You can use a shared image to create instances, but you cannot change its name and description.

* If an image is shared with another account, the shared image will be in the same region as the original image.

error code that may be returned:

FAILEDOPERATION_ACCOUNTALREADYEXISTS = "FailedOperation.AccountAlreadyExists"
FAILEDOPERATION_ACCOUNTISYOURSELF = "FailedOperation.AccountIsYourSelf"
FAILEDOPERATION_NOTMASTERACCOUNT = "FailedOperation.NotMasterAccount"
FAILEDOPERATION_QIMAGESHAREFAILED = "FailedOperation.QImageShareFailed"
FAILEDOPERATION_RIMAGESHAREFAILED = "FailedOperation.RImageShareFailed"
INVALIDACCOUNTID_NOTFOUND = "InvalidAccountId.NotFound"
INVALIDACCOUNTIS_YOURSELF = "InvalidAccountIs.YourSelf"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"
INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
OVERQUOTA = "OverQuota"
UNAUTHORIZEDOPERATION_IMAGENOTBELONGTOACCOUNT = "UnauthorizedOperation.ImageNotBelongToAccount"

func (*Client) ModifyInstancesAttribute

func (c *Client) ModifyInstancesAttribute(request *ModifyInstancesAttributeRequest) (response *ModifyInstancesAttributeResponse, err error)

ModifyInstancesAttribute The API is used to modify the attributes of an instance. Currently, you can only use the API to modify the name and the associated security groups of the instance.

* **Instance names** are used only for users' convenience. Tencent Cloud does not use these names for online support or instance management.

* Batch operations are supported. The maximum number of Batch instances in each request is 100.

* When you modify the security groups associated with an instance, the original security groups will be disassociated.

* You can use the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) API to query the instance operation result. If the 'LatestOperationState' in the response is **SUCCESS**, the operation is successful.

error code that may be returned:

AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"
FAILEDOPERATION_SECURITYGROUPACTIONFAILED = "FailedOperation.SecurityGroupActionFailed"
INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCENAME_TOOLONG = "InvalidInstanceName.TooLong"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"
LIMITEXCEEDED_ASSOCIATEUSGLIMITEXCEEDED = "LimitExceeded.AssociateUSGLimitExceeded"
LIMITEXCEEDED_CVMSVIFSPERSECGROUPLIMITEXCEEDED = "LimitExceeded.CvmsVifsPerSecGroupLimitExceeded"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) ModifyInstancesProject

func (c *Client) ModifyInstancesProject(request *ModifyInstancesProjectRequest) (response *ModifyInstancesProjectResponse, err error)

ModifyInstancesProject This API is used to change the project to which an instance belongs.

* Project is a virtual concept. You can create multiple projects under one account, manage different resources in each project, and assign different instances to different projects. You may use the [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API to query instances and use the project ID to filter results.

* You cannot modify the project of an instance that is bound to a load balancer. You need to firstly unbind the load balancer from the instance by using the [`DeregisterInstancesFromLoadBalancer`](https://intl.cloud.tencent.com/document/api/214/1258?from_cn_redirect=1) API.

[^_^]: # (If you modify the project of an instance, security groups associated with the instance will be automatically disassociated. You can use the [`ModifyInstancesAttribute`](https://intl.cloud.tencent.com/document/api/213/15739?from_cn_redirect=1) API to associate the instance with the security groups again.

* Batch operations are supported. You can operate up to 100 instances in each request.

* You can call the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) API and find the result of the operation in the response parameter `LatestOperationState`. If the value is `SUCCESS`, the operation is successful.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"

func (*Client) ModifyInstancesVpcAttribute

func (c *Client) ModifyInstancesVpcAttribute(request *ModifyInstancesVpcAttributeRequest) (response *ModifyInstancesVpcAttributeResponse, err error)

ModifyInstancesVpcAttribute This API is used to modify the VPC attributes of an instance, such as the VPC IP address.

* By default, the instances will shut down when you perform this operation and restart upon completion.

* If the specified VPC ID and subnet ID (the subnet must be in the same availability zone as the instance) are different from the VPC where the specified instance resides, the instance will be migrated to a subnet of the specified VPC. Before performing this operation, make sure that the specified instance is not bound with an [ENI](https://intl.cloud.tencent.com/document/product/576?from_cn_redirect=1) or [CLB](https://intl.cloud.tencent.com/document/product/214?from_cn_redirect=1).

error code that may be returned:

ENINOTALLOWEDCHANGESUBNET = "EniNotAllowedChangeSubnet"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCESTATE = "InvalidInstanceState"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_IPV6NOTSUPPORTVPCMIGRATE = "UnsupportedOperation.IPv6NotSupportVpcMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_MODIFYVPCWITHCLB = "UnsupportedOperation.ModifyVPCWithCLB"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
VPCADDRNOTINSUBNET = "VpcAddrNotInSubNet"
VPCIPISUSED = "VpcIpIsUsed"

func (*Client) ModifyKeyPairAttribute

func (c *Client) ModifyKeyPairAttribute(request *ModifyKeyPairAttributeRequest) (response *ModifyKeyPairAttributeResponse, err error)

ModifyKeyPairAttribute This API is used to modify the attributes of key pairs.

* This API modifies the name and description of the key pair identified by the key pair ID.

* The name of the key pair must be unique.

* Key pair ID is the unique identifier of a key pair and cannot be modified.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDKEYPAIRID_MALFORMED = "InvalidKeyPairId.Malformed"
INVALIDKEYPAIRID_NOTFOUND = "InvalidKeyPairId.NotFound"
INVALIDKEYPAIRNAME_DUPLICATE = "InvalidKeyPairName.Duplicate"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) PurchaseReservedInstancesOffering

func (c *Client) PurchaseReservedInstancesOffering(request *PurchaseReservedInstancesOfferingRequest) (response *PurchaseReservedInstancesOfferingResponse, err error)

PurchaseReservedInstancesOffering This API is used to purchase one or more specific Reserved Instances.

error code that may be returned:

INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDCLIENTTOKEN_TOOLONG = "InvalidClientToken.TooLong"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
UNSUPPORTEDOPERATION_INVALIDPERMISSIONNONINTERNATIONALACCOUNT = "UnsupportedOperation.InvalidPermissionNonInternationalAccount"
UNSUPPORTEDOPERATION_RESERVEDINSTANCEINVISIBLEFORUSER = "UnsupportedOperation.ReservedInstanceInvisibleForUser"
UNSUPPORTEDOPERATION_RESERVEDINSTANCEOUTOFQUATA = "UnsupportedOperation.ReservedInstanceOutofQuata"

func (*Client) RebootInstances

func (c *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)

RebootInstances This API is used to restart instances.

* You can only perform this operation on instances whose status is `RUNNING`.

* If the API is called successfully, the instance status will become `REBOOTING`. After the instance is restarted, its status will become `RUNNING` again.

* Forced restart is supported. A forced restart is similar to switching off the power of a physical computer and starting it again. It may cause data loss or file system corruption. Be sure to only force start a CVM when it cannot be restarted normally.

* Batch operations are supported. The maximum number of instances in each request is 100.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPED = "UnsupportedOperation.InstanceStateStopped"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) ResetInstance

func (c *Client) ResetInstance(request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)

ResetInstance This API is used to reinstall the operating system of the specified instance.

* If you specify an `ImageId`, the specified image is used. Otherwise, the image used by the current instance is used.

* The system disk will be formatted and reset. Therefore, make sure that no important files are stored on the system disk.

* If the operating system switches between `Linux` and `Windows`, the system disk `ID` of the instance will change, and the snapshots that are associated with the system disk can no longer be used to roll back and restore data.

* If no password is specified, you will get a random password via internal message.

* You can only use this API to switch the operating system between `Linux` and `Windows` for instances whose [system disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#SystemDisk) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`.

* Currently, this API only supports instances in Mainland China regions.

error code that may be returned:

INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETER_HOSTNAMEILLEGAL = "InvalidParameter.HostNameIllegal"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = "InvalidParameterValue.IllegalHostName"
INVALIDPARAMETERVALUE_INVALIDIMAGEFORGIVENINSTANCETYPE = "InvalidParameterValue.InvalidImageForGivenInstanceType"
INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
INVALIDPARAMETERVALUE_KEYPAIRNOTFOUND = "InvalidParameterValue.KeyPairNotFound"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPASSWORD = "InvalidPassword"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCEINUSE = "ResourceInUse"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) ResetInstancesInternetMaxBandwidth

func (c *Client) ResetInstancesInternetMaxBandwidth(request *ResetInstancesInternetMaxBandwidthRequest) (response *ResetInstancesInternetMaxBandwidthResponse, err error)

ResetInstancesInternetMaxBandwidth This API is used to change the public bandwidth cap of an instance.

* The allowed bandwidth cap varies for different models. For details, see [Purchasing Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).

* For bandwidth billed by the `TRAFFIC_POSTPAID_BY_HOUR` method, changing the bandwidth cap through this API takes effect in real time. Users can increase or reduce bandwidth within applicable limits.

error code that may be returned:

FAILEDOPERATION_NOTFOUNDEIP = "FailedOperation.NotFoundEIP"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
INVALIDPERMISSION = "InvalidPermission"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) ResetInstancesPassword

func (c *Client) ResetInstancesPassword(request *ResetInstancesPasswordRequest) (response *ResetInstancesPasswordResponse, err error)

ResetInstancesPassword This API is used to reset the password of the operating system instances to a user-specified password.

* To modify the password of the administrator account: the name of the administrator account varies with the operating system. In Windows, it is `Administrator`; in Ubuntu, it is `ubuntu`; in Linux, it is `root`.

* To reset the password of a running instance, you need to set the parameter `ForceStop` to `True` for a forced shutdown. If not, only passwords of stopped instances can be reset.

* Batch operations are supported. You can reset the passwords of up to 100 instances to the same value once.

* You can call the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) API and find the result of the operation in the response parameter `LatestOperationState`. If the value is `SUCCESS`, the operation is successful.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"
INVALIDPASSWORD = "InvalidPassword"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) ResetInstancesType

func (c *Client) ResetInstancesType(request *ResetInstancesTypeRequest) (response *ResetInstancesTypeResponse, err error)

ResetInstancesType This API is used to change the model of an instance.

* You can only use this API to change the models of instances whose [system disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`.

* Currently, you cannot use this API to change the models of [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances.

error code that may be returned:

FAILEDOPERATION_PROMOTIONALPERIORESTRICTION = "FailedOperation.PromotionalPerioRestriction"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_GPUINSTANCEFAMILY = "InvalidParameterValue.GPUInstanceFamily"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
INVALIDPERMISSION = "InvalidPermission"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
LIMITEXCEEDED_ENINUMLIMIT = "LimitExceeded.EniNumLimit"
LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"
RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
RESOURCESSOLDOUT_AVAILABLEZONE = "ResourcesSoldOut.AvailableZone"
RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"
UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILY = "UnsupportedOperation.UnsupportedChangeInstanceFamily"
UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILYTOARM = "UnsupportedOperation.UnsupportedChangeInstanceFamilyToARM"
UNSUPPORTEDOPERATION_UNSUPPORTEDCHANGEINSTANCEFAMILYTOSA3 = "UnsupportedOperation.UnsupportedChangeInstanceFamilyToSA3"

func (*Client) ResizeInstanceDisks

func (c *Client) ResizeInstanceDisks(request *ResizeInstanceDisksRequest) (response *ResizeInstanceDisksResponse, err error)

ResizeInstanceDisks This API (ResizeInstanceDisks) is used to expand the data disks of an instance.

* Currently, you can only use the API to expand non-elastic data disks whose [disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`. You can use [`DescribeDisks`](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1) to check whether a disk is elastic. If the `Portable` field in the response is `false`, it means that the disk is non-elastic.

* Currently, this API does not support [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances.

* Currently, only one data disk can be expanded at a time.

error code that may be returned:

INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_ATLEASTONE = "MissingParameter.AtLeastOne"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPED = "UnsupportedOperation.InstanceStateStopped"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) RunInstances

func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstancesResponse, err error)

RunInstances This API is used to create one or more instances with a specified configuration.

* After an instance is created successfully, it will start up automatically, and the [instance state](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#instance_state) will become "Running".

* If you create a pay-as-you-go instance billed on an hourly basis, an amount equivalent to the hourly rate will be frozen before the creation. Make sure your account balance is sufficient before calling this API.

* The number of instances you can purchase through this API is subject to the [CVM instance purchase limit](https://intl.cloud.tencent.com/document/product/213/2664?from_cn_redirect=1). Both the instances created through this API and the console will be counted toward the quota.

* This API is an async API. An instance `ID` list will be returned after you successfully make a creation request. However, it does not mean the creation has been completed. The state of the instance will be `Creating` during the creation. You can use [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) to query the status of the instance. If the status changes from `Creating` to `Running`, it means that the instance has been created successfully.

error code that may be returned:

ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"
FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = "FailedOperation.DisasterRecoverGroupNotFound"
FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
FAILEDOPERATION_SECURITYGROUPACTIONFAILED = "FailedOperation.SecurityGroupActionFailed"
FAILEDOPERATION_SNAPSHOTSIZELARGERTHANDATASIZE = "FailedOperation.SnapshotSizeLargerThanDataSize"
FAILEDOPERATION_SNAPSHOTSIZELESSTHANDATASIZE = "FailedOperation.SnapshotSizeLessThanDataSize"
FAILEDOPERATION_TAGKEYRESERVED = "FailedOperation.TagKeyReserved"
INSTANCESQUOTALIMITEXCEEDED = "InstancesQuotaLimitExceeded"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
INVALIDCLIENTTOKEN_TOOLONG = "InvalidClientToken.TooLong"
INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
INVALIDHOSTID_NOTFOUND = "InvalidHostId.NotFound"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDINSTANCENAME_TOOLONG = "InvalidInstanceName.TooLong"
INVALIDINSTANCETYPE_MALFORMED = "InvalidInstanceType.Malformed"
INVALIDPARAMETER_HOSTIDSTATUSNOTSUPPORT = "InvalidParameter.HostIdStatusNotSupport"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETER_INVALIDIPFORMAT = "InvalidParameter.InvalidIpFormat"
INVALIDPARAMETER_LACKCORECOUNTORTHREADPERCORE = "InvalidParameter.LackCoreCountOrThreadPerCore"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETER_SNAPSHOTNOTFOUND = "InvalidParameter.SnapshotNotFound"
INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed"
INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDNOTFOUND = "InvalidParameterValue.BandwidthPackageIdNotFound"
INVALIDPARAMETERVALUE_CHCHOSTSNOTFOUND = "InvalidParameterValue.ChcHostsNotFound"
INVALIDPARAMETERVALUE_CLOUDSSDDATADISKSIZETOOSMALL = "InvalidParameterValue.CloudSsdDataDiskSizeTooSmall"
INVALIDPARAMETERVALUE_CORECOUNTVALUE = "InvalidParameterValue.CoreCountValue"
INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"
INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = "InvalidParameterValue.IllegalHostName"
INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"
INVALIDPARAMETERVALUE_INSTANCETYPEREQUIREDHPCCLUSTER = "InvalidParameterValue.InstanceTypeRequiredHpcCluster"
INVALIDPARAMETERVALUE_INSUFFICIENTOFFERING = "InvalidParameterValue.InsufficientOffering"
INVALIDPARAMETERVALUE_INSUFFICIENTPRICE = "InvalidParameterValue.InsufficientPrice"
INVALIDPARAMETERVALUE_INVALIDIMAGEFORGIVENINSTANCETYPE = "InvalidParameterValue.InvalidImageForGivenInstanceType"
INVALIDPARAMETERVALUE_INVALIDIMAGEFORMAT = "InvalidParameterValue.InvalidImageFormat"
INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"
INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
INVALIDPARAMETERVALUE_INVALIDTIMEFORMAT = "InvalidParameterValue.InvalidTimeFormat"
INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"
INVALIDPARAMETERVALUE_KEYPAIRNOTFOUND = "InvalidParameterValue.KeyPairNotFound"
INVALIDPARAMETERVALUE_LAUNCHTEMPLATEIDNOTEXISTED = "InvalidParameterValue.LaunchTemplateIdNotExisted"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
INVALIDPARAMETERVALUE_SUBNETNOTEXIST = "InvalidParameterValue.SubnetNotExist"
INVALIDPARAMETERVALUE_TAGKEYNOTFOUND = "InvalidParameterValue.TagKeyNotFound"
INVALIDPARAMETERVALUE_THREADPERCOREVALUE = "InvalidParameterValue.ThreadPerCoreValue"
INVALIDPARAMETERVALUE_VPCIDZONEIDNOTMATCH = "InvalidParameterValue.VpcIdZoneIdNotMatch"
INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
INVALIDPASSWORD = "InvalidPassword"
INVALIDPERIOD = "InvalidPeriod"
INVALIDPERMISSION = "InvalidPermission"
INVALIDPROJECTID_NOTFOUND = "InvalidProjectId.NotFound"
INVALIDSECURITYGROUPID_NOTFOUND = "InvalidSecurityGroupId.NotFound"
INVALIDZONE_MISMATCHREGION = "InvalidZone.MismatchRegion"
LIMITEXCEEDED_CVMSVIFSPERSECGROUPLIMITEXCEEDED = "LimitExceeded.CvmsVifsPerSecGroupLimitExceeded"
LIMITEXCEEDED_DISASTERRECOVERGROUP = "LimitExceeded.DisasterRecoverGroup"
LIMITEXCEEDED_IPV6ADDRESSNUM = "LimitExceeded.IPv6AddressNum"
LIMITEXCEEDED_INSTANCEQUOTA = "LimitExceeded.InstanceQuota"
LIMITEXCEEDED_PREPAYQUOTA = "LimitExceeded.PrepayQuota"
LIMITEXCEEDED_SINGLEUSGQUOTA = "LimitExceeded.SingleUSGQuota"
LIMITEXCEEDED_SPOTQUOTA = "LimitExceeded.SpotQuota"
LIMITEXCEEDED_USERSPOTQUOTA = "LimitExceeded.UserSpotQuota"
LIMITEXCEEDED_VPCSUBNETNUM = "LimitExceeded.VpcSubnetNum"
MISSINGPARAMETER = "MissingParameter"
MISSINGPARAMETER_DPDKINSTANCETYPEREQUIREDVPC = "MissingParameter.DPDKInstanceTypeRequiredVPC"
MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
RESOURCEINSUFFICIENT_AVAILABILITYZONESOLDOUT = "ResourceInsufficient.AvailabilityZoneSoldOut"
RESOURCEINSUFFICIENT_CLOUDDISKSOLDOUT = "ResourceInsufficient.CloudDiskSoldOut"
RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"
RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"
RESOURCENOTFOUND_NODEFAULTCBS = "ResourceNotFound.NoDefaultCbs"
RESOURCENOTFOUND_NODEFAULTCBSWITHREASON = "ResourceNotFound.NoDefaultCbsWithReason"
RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
RESOURCESSOLDOUT_EIPINSUFFICIENT = "ResourcesSoldOut.EipInsufficient"
RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"
UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"
UNSUPPORTEDOPERATION_NOTSUPPORTIMPORTINSTANCESACTIONTIMER = "UnsupportedOperation.NotSupportImportInstancesActionTimer"
UNSUPPORTEDOPERATION_ONLYFORPREPAIDACCOUNT = "UnsupportedOperation.OnlyForPrepaidAccount"
UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
UNSUPPORTEDOPERATION_UNSUPPORTEDINTERNATIONALUSER = "UnsupportedOperation.UnsupportedInternationalUser"
VPCADDRNOTINSUBNET = "VpcAddrNotInSubNet"
VPCIPISUSED = "VpcIpIsUsed"

func (*Client) StartInstances

func (c *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error)

StartInstances This API is used to start instances.

* You can only perform this operation on instances whose status is `STOPPED`.

* The instance status will become `STARTING` when the API is called successfully and `RUNNING` when the instance is successfully started.

* Batch operations are supported. The maximum number of instances in each request is 100.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATERUNNING = "UnsupportedOperation.InstanceStateRunning"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"

func (*Client) StopInstances

func (c *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error)

StopInstances This API is used to shut down instances.

* You can only perform this operation on instances whose status is `RUNNING`.

* The instance status will become `STOPPING` when the API is called successfully and `STOPPED` when the instance is successfully shut down.

* Forced shutdown is supported. A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be sht down normally.

* Batch operations are supported. The maximum number of instances in each request is 100.

error code that may be returned:

INTERNALSERVERERROR = "InternalServerError"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDPARAMETERCOMBINATION = "InvalidParameterCombination"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCESTATECORRUPTED = "UnsupportedOperation.InstanceStateCorrupted"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateEnterServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATESERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPED = "UnsupportedOperation.InstanceStateStopped"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"

func (*Client) SyncImages

func (c *Client) SyncImages(request *SyncImagesRequest) (response *SyncImagesResponse, err error)

SyncImages This API is used to sync a custom image to other regions.

* Each API call syncs a single image.

* This API supports syncing an image to multiple regions.

* Each account can have up to 10 custom images in each region.

error code that may be returned:

INVALIDIMAGEID_INCORRECTSTATE = "InvalidImageId.IncorrectState"
INVALIDIMAGEID_MALFORMED = "InvalidImageId.Malformed"
INVALIDIMAGEID_NOTFOUND = "InvalidImageId.NotFound"
INVALIDIMAGEID_TOOLARGE = "InvalidImageId.TooLarge"
INVALIDIMAGENAME_DUPLICATE = "InvalidImageName.Duplicate"
INVALIDPARAMETER_INSTANCEIMAGENOTSUPPORT = "InvalidParameter.InstanceImageNotSupport"
INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"
INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDREGION_NOTFOUND = "InvalidRegion.NotFound"
INVALIDREGION_UNAVAILABLE = "InvalidRegion.Unavailable"
UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"

func (*Client) TerminateInstances

func (c *Client) TerminateInstances(request *TerminateInstancesRequest) (response *TerminateInstancesResponse, err error)

TerminateInstances This API is used to return instances.

* Use this API to return instances that are no longer required.

* Pay-as-you-go instances can be returned directly through this API.

* When this API is called for the first time, the instance will be moved to the recycle bin. When this API is called for the second time, the instance will be terminated and cannot be recovered.

* Batch operations are supported. The allowed maximum number of instances in each request is 100.

error code that may be returned:

FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"
FAILEDOPERATION_UNRETURNABLE = "FailedOperation.Unreturnable"
INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
INTERNALSERVERERROR = "InternalServerError"
INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
INVALIDINSTANCENOTSUPPORTEDPREPAIDINSTANCE = "InvalidInstanceNotSupportedPrepaidInstance"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported"
LIMITEXCEEDED_USERRETURNQUOTA = "LimitExceeded.UserReturnQuota"
MISSINGPARAMETER = "MissingParameter"
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
UNSUPPORTEDOPERATION_INSTANCESTATEENTERRESCUEMODE = "UnsupportedOperation.InstanceStateEnterRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITRESCUEMODE = "UnsupportedOperation.InstanceStateExitRescueMode"
UNSUPPORTEDOPERATION_INSTANCESTATEEXITSERVICELIVEMIGRATE = "UnsupportedOperation.InstanceStateExitServiceLiveMigrate"
UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"
UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
UNSUPPORTEDOPERATION_USERLIMITOPERATIONEXCEEDQUOTA = "UnsupportedOperation.UserLimitOperationExceedQuota"

type CreateDisasterRecoverGroupRequest

type CreateDisasterRecoverGroupRequest struct {
	*tchttp.BaseRequest

	// Name of the spread placement group. The name must be 1-60 characters long and can contain both Chinese characters and English letters.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Type of the spread placement group. Valid values: <br><li>HOST: physical machine <br><li>SW: switch <br><li>RACK: rack
	Type *string `json:"Type,omitempty" name:"Type"`

	// A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. <br>For more information, see 'How to ensure idempotency'.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`
}

func NewCreateDisasterRecoverGroupRequest

func NewCreateDisasterRecoverGroupRequest() (request *CreateDisasterRecoverGroupRequest)

func (*CreateDisasterRecoverGroupRequest) FromJsonString

func (r *CreateDisasterRecoverGroupRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDisasterRecoverGroupRequest) ToJsonString

func (r *CreateDisasterRecoverGroupRequest) ToJsonString() string

type CreateDisasterRecoverGroupResponse

type CreateDisasterRecoverGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// List of spread placement group IDs.
		DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitempty" name:"DisasterRecoverGroupId"`

		// Type of the spread placement group. Valid values: <br><li>HOST: physical machine <br><li>SW: switch <br><li>RACK: rack.
		Type *string `json:"Type,omitempty" name:"Type"`

		// Name of the spread placement group. The name must be 1-60 characters long and can contain both Chinese characters and English letters.
		Name *string `json:"Name,omitempty" name:"Name"`

		// The maximum number of CVMs in a placement group.
		CvmQuotaTotal *int64 `json:"CvmQuotaTotal,omitempty" name:"CvmQuotaTotal"`

		// The current number of CVMs in a placement group.
		CurrentNum *int64 `json:"CurrentNum,omitempty" name:"CurrentNum"`

		// Creation time of the placement group.
		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateDisasterRecoverGroupResponse

func NewCreateDisasterRecoverGroupResponse() (response *CreateDisasterRecoverGroupResponse)

func (*CreateDisasterRecoverGroupResponse) FromJsonString

func (r *CreateDisasterRecoverGroupResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDisasterRecoverGroupResponse) ToJsonString

func (r *CreateDisasterRecoverGroupResponse) ToJsonString() string

type CreateImageRequest

type CreateImageRequest struct {
	*tchttp.BaseRequest

	// Image name
	ImageName *string `json:"ImageName,omitempty" name:"ImageName"`

	// ID of the instance from which an image will be created. This parameter is required when using instance to create an image.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Image description
	ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"`

	// Whether to force shut down an instance to create an image when a soft shutdown fails
	ForcePoweroff *string `json:"ForcePoweroff,omitempty" name:"ForcePoweroff"`

	// Whether to enable Sysprep when creating a Windows image.
	// Valid values: `TRUE` and `FALSE`; default value: `FALSE`.
	//
	// Click [here](https://intl.cloud.tencent.com/document/product/213/43498?from_cn_redirect=1) to learn more about Sysprep.
	Sysprep *string `json:"Sysprep,omitempty" name:"Sysprep"`

	// Specified data disk ID included in the full image created from the instance.
	DataDiskIds []*string `json:"DataDiskIds,omitempty" name:"DataDiskIds"`

	// Specified snapshot ID used to create an image. A system disk snapshot must be included. It cannot be passed together with `InstanceId`.
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"`

	// Success status of this request, without affecting the resources involved
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`
}

func NewCreateImageRequest

func NewCreateImageRequest() (request *CreateImageRequest)

func (*CreateImageRequest) FromJsonString

func (r *CreateImageRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateImageRequest) ToJsonString

func (r *CreateImageRequest) ToJsonString() string

type CreateImageResponse

type CreateImageResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Image ID.
		// Note: This field may return null, indicating that no valid value was found.
		ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateImageResponse

func NewCreateImageResponse() (response *CreateImageResponse)

func (*CreateImageResponse) FromJsonString

func (r *CreateImageResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateImageResponse) ToJsonString

func (r *CreateImageResponse) ToJsonString() string

type CreateKeyPairRequest

type CreateKeyPairRequest struct {
	*tchttp.BaseRequest

	// Name of the key pair, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// The ID of the project to which the new key pair belongs.
	// You can query the project IDs in two ways:
	// <li>Query the project IDs in the project list.
	// <li>Call `DescribeProject` and look for `projectId` in the response.
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
}

func NewCreateKeyPairRequest

func NewCreateKeyPairRequest() (request *CreateKeyPairRequest)

func (*CreateKeyPairRequest) FromJsonString

func (r *CreateKeyPairRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateKeyPairRequest) ToJsonString

func (r *CreateKeyPairRequest) ToJsonString() string

type CreateKeyPairResponse

type CreateKeyPairResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Key pair information.
		KeyPair *KeyPair `json:"KeyPair,omitempty" name:"KeyPair"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateKeyPairResponse

func NewCreateKeyPairResponse() (response *CreateKeyPairResponse)

func (*CreateKeyPairResponse) FromJsonString

func (r *CreateKeyPairResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateKeyPairResponse) ToJsonString

func (r *CreateKeyPairResponse) ToJsonString() string

type DataDisk

type DataDisk struct {

	// Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values: <br><li>LOCAL_BASIC: local disk<br><li>LOCAL_SSD: local SSD disk<br><li>LOCAL_NVME: local NVME disk, specified in the `InstanceType`<br><li>LOCAL_PRO: local HDD disk, specified in the `InstanceType`<br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: Tremendous SSD<br><br>Default value: LOCAL_BASIC.<br><br>This parameter is invalid for the `ResizeInstanceDisk` API.
	DiskType *string `json:"DiskType,omitempty" name:"DiskType"`

	// Data disk ID. Data disks of the type `LOCAL_BASIC` or `LOCAL_SSD` do not have IDs and do not support this parameter.
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`

	// Whether to terminate the data disk when its CVM is terminated. Valid values:
	// <li>TRUE: terminate the data disk when its CVM is terminated. This value only supports pay-as-you-go cloud disks billed on an hourly basis.
	// <li>FALSE: retain the data disk when its CVM is terminated.<br>
	// Default value: TRUE<br>
	// Currently this parameter is only used in the `RunInstances` API.
	// Note: This field may return null, indicating that no valid value is found.
	DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"`

	// Data disk snapshot ID. The size of the selected data disk snapshot must be smaller than that of the data disk.
	// Note: This field may return null, indicating that no valid value is found.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// Specifies whether the data disk is encrypted. Valid values:
	// <li>TRUE: encrypted
	// <li>FALSE: not encrypted<br>
	// Default value: FALSE<br>
	// This parameter is only used with `RunInstances`.
	// Note: this field may return `null`, indicating that no valid value is obtained.
	Encrypt *bool `json:"Encrypt,omitempty" name:"Encrypt"`

	// ID of the custom CMK in the format of UUID or “kms-abcd1234”. This parameter is used to encrypt cloud disks.
	//
	// Currently, this parameter is only used in the `RunInstances` API.
	// Note: this field may return null, indicating that no valid values can be obtained.
	KmsKeyId *string `json:"KmsKeyId,omitempty" name:"KmsKeyId"`

	// Cloud disk performance, in MB/s
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ThroughputPerformance *int64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"`

	// ID of the dedicated cluster to which the instance belongs.
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	CdcId *string `json:"CdcId,omitempty" name:"CdcId"`
}

type DeleteDisasterRecoverGroupsRequest

type DeleteDisasterRecoverGroupsRequest struct {
	*tchttp.BaseRequest

	// ID list of spread placement groups, obtainable via the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/api/213/17810?from_cn_redirect=1) API. You can operate up to 100 spread placement groups in each request.
	DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitempty" name:"DisasterRecoverGroupIds"`
}

func NewDeleteDisasterRecoverGroupsRequest

func NewDeleteDisasterRecoverGroupsRequest() (request *DeleteDisasterRecoverGroupsRequest)

func (*DeleteDisasterRecoverGroupsRequest) FromJsonString

func (r *DeleteDisasterRecoverGroupsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDisasterRecoverGroupsRequest) ToJsonString

func (r *DeleteDisasterRecoverGroupsRequest) ToJsonString() string

type DeleteDisasterRecoverGroupsResponse

type DeleteDisasterRecoverGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteDisasterRecoverGroupsResponse

func NewDeleteDisasterRecoverGroupsResponse() (response *DeleteDisasterRecoverGroupsResponse)

func (*DeleteDisasterRecoverGroupsResponse) FromJsonString

func (r *DeleteDisasterRecoverGroupsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDisasterRecoverGroupsResponse) ToJsonString

func (r *DeleteDisasterRecoverGroupsResponse) ToJsonString() string

type DeleteImagesRequest

type DeleteImagesRequest struct {
	*tchttp.BaseRequest

	// List of the IDs of the instances to be deleted.
	ImageIds []*string `json:"ImageIds,omitempty" name:"ImageIds"`
}

func NewDeleteImagesRequest

func NewDeleteImagesRequest() (request *DeleteImagesRequest)

func (*DeleteImagesRequest) FromJsonString

func (r *DeleteImagesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteImagesRequest) ToJsonString

func (r *DeleteImagesRequest) ToJsonString() string

type DeleteImagesResponse

type DeleteImagesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteImagesResponse

func NewDeleteImagesResponse() (response *DeleteImagesResponse)

func (*DeleteImagesResponse) FromJsonString

func (r *DeleteImagesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteImagesResponse) ToJsonString

func (r *DeleteImagesResponse) ToJsonString() string

type DeleteKeyPairsRequest

type DeleteKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key ID(s). The maximum number of key pairs in each request is 100. <br>You can obtain the available key pair IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/sshkey) to query the key pair IDs. <br><li>Call [DescribeKeyPairs](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) and look for `KeyId` in the response.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`
}

func NewDeleteKeyPairsRequest

func NewDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest)

func (*DeleteKeyPairsRequest) FromJsonString

func (r *DeleteKeyPairsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteKeyPairsRequest) ToJsonString

func (r *DeleteKeyPairsRequest) ToJsonString() string

type DeleteKeyPairsResponse

type DeleteKeyPairsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteKeyPairsResponse

func NewDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse)

func (*DeleteKeyPairsResponse) FromJsonString

func (r *DeleteKeyPairsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteKeyPairsResponse) ToJsonString

func (r *DeleteKeyPairsResponse) ToJsonString() string

type DescribeDisasterRecoverGroupQuotaRequest

type DescribeDisasterRecoverGroupQuotaRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeDisasterRecoverGroupQuotaRequest

func NewDescribeDisasterRecoverGroupQuotaRequest() (request *DescribeDisasterRecoverGroupQuotaRequest)

func (*DescribeDisasterRecoverGroupQuotaRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDisasterRecoverGroupQuotaRequest) ToJsonString

type DescribeDisasterRecoverGroupQuotaResponse

type DescribeDisasterRecoverGroupQuotaResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The maximum number of placement groups that can be created.
		GroupQuota *int64 `json:"GroupQuota,omitempty" name:"GroupQuota"`

		// The number of placement groups that have been created by the current user.
		CurrentNum *int64 `json:"CurrentNum,omitempty" name:"CurrentNum"`

		// Quota on instances in a physical-machine-type disaster recovery group.
		CvmInHostGroupQuota *int64 `json:"CvmInHostGroupQuota,omitempty" name:"CvmInHostGroupQuota"`

		// Quota on instances in a switch-type disaster recovery group.
		CvmInSwGroupQuota *int64 `json:"CvmInSwGroupQuota,omitempty" name:"CvmInSwGroupQuota"`

		// Quota on instances in a rack-type disaster recovery group.
		CvmInRackGroupQuota *int64 `json:"CvmInRackGroupQuota,omitempty" name:"CvmInRackGroupQuota"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDisasterRecoverGroupQuotaResponse

func NewDescribeDisasterRecoverGroupQuotaResponse() (response *DescribeDisasterRecoverGroupQuotaResponse)

func (*DescribeDisasterRecoverGroupQuotaResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDisasterRecoverGroupQuotaResponse) ToJsonString

type DescribeDisasterRecoverGroupsRequest

type DescribeDisasterRecoverGroupsRequest struct {
	*tchttp.BaseRequest

	// ID list of spread placement groups. You can operate up to 100 spread placement groups in each request.
	DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitempty" name:"DisasterRecoverGroupIds"`

	// Name of a spread placement group. Fuzzy match is supported.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Offset; default value: 0. For more information on `Offset`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeDisasterRecoverGroupsRequest

func NewDescribeDisasterRecoverGroupsRequest() (request *DescribeDisasterRecoverGroupsRequest)

func (*DescribeDisasterRecoverGroupsRequest) FromJsonString

func (r *DescribeDisasterRecoverGroupsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDisasterRecoverGroupsRequest) ToJsonString

func (r *DescribeDisasterRecoverGroupsRequest) ToJsonString() string

type DescribeDisasterRecoverGroupsResponse

type DescribeDisasterRecoverGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Information on spread placement groups.
		DisasterRecoverGroupSet []*DisasterRecoverGroup `json:"DisasterRecoverGroupSet,omitempty" name:"DisasterRecoverGroupSet"`

		// Total number of placement groups of the user.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDisasterRecoverGroupsResponse

func NewDescribeDisasterRecoverGroupsResponse() (response *DescribeDisasterRecoverGroupsResponse)

func (*DescribeDisasterRecoverGroupsResponse) FromJsonString

func (r *DescribeDisasterRecoverGroupsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDisasterRecoverGroupsResponse) ToJsonString

type DescribeHostsRequest

type DescribeHostsRequest struct {
	*tchttp.BaseRequest

	// <li><strong>zone</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>availability zones</strong>**. For example, availability zone: ap-guangzhou-1;</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">list of availability zones</a></p>
	// <li><strong>project-id</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>project ID</strong>**. You can query the existing project list through the [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) API or [CVM console](https://console.cloud.tencent.com/cvm/index), or create a project by calling the [AddProject](https://intl.cloud.tencent.com/document/api/378/4398?from_cn_redirect=1) API. For example, project ID: 1002189;</p><p style="padding-left: 30px;">Type: Integer</p><p style="padding-left: 30px;">Required: no</p>
	// <li><strong>host-id</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>[CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) ID</strong>**. For example, [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) ID: host-xxxxxxxx;</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p>
	// <li><strong>state</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>CDH instance name</strong>**. </p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p>
	// <li><strong>state</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>CDH instance status </strong>**. (PENDING: creating | LAUNCH_FAILURE: creation failed | RUNNING: running | EXPIRED: expired)</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p>
	// Each request can have up to 10 `Filters` and 5 `Filters.Values`.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset; default value: 0.
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100.
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeHostsRequest

func NewDescribeHostsRequest() (request *DescribeHostsRequest)

func (*DescribeHostsRequest) FromJsonString

func (r *DescribeHostsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHostsRequest) ToJsonString

func (r *DescribeHostsRequest) ToJsonString() string

type DescribeHostsResponse

type DescribeHostsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Total number of CDH instances meeting the query conditions
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Information on CDH instances
		HostSet []*HostItem `json:"HostSet,omitempty" name:"HostSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeHostsResponse

func NewDescribeHostsResponse() (response *DescribeHostsResponse)

func (*DescribeHostsResponse) FromJsonString

func (r *DescribeHostsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHostsResponse) ToJsonString

func (r *DescribeHostsResponse) ToJsonString() string

type DescribeImageQuotaRequest

type DescribeImageQuotaRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeImageQuotaRequest

func NewDescribeImageQuotaRequest() (request *DescribeImageQuotaRequest)

func (*DescribeImageQuotaRequest) FromJsonString

func (r *DescribeImageQuotaRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImageQuotaRequest) ToJsonString

func (r *DescribeImageQuotaRequest) ToJsonString() string

type DescribeImageQuotaResponse

type DescribeImageQuotaResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The image quota of an account
		ImageNumQuota *int64 `json:"ImageNumQuota,omitempty" name:"ImageNumQuota"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeImageQuotaResponse

func NewDescribeImageQuotaResponse() (response *DescribeImageQuotaResponse)

func (*DescribeImageQuotaResponse) FromJsonString

func (r *DescribeImageQuotaResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImageQuotaResponse) ToJsonString

func (r *DescribeImageQuotaResponse) ToJsonString() string

type DescribeImageSharePermissionRequest

type DescribeImageSharePermissionRequest struct {
	*tchttp.BaseRequest

	// The ID of the image to be shared
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`
}

func NewDescribeImageSharePermissionRequest

func NewDescribeImageSharePermissionRequest() (request *DescribeImageSharePermissionRequest)

func (*DescribeImageSharePermissionRequest) FromJsonString

func (r *DescribeImageSharePermissionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImageSharePermissionRequest) ToJsonString

func (r *DescribeImageSharePermissionRequest) ToJsonString() string

type DescribeImageSharePermissionResponse

type DescribeImageSharePermissionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Information on image sharing.
		SharePermissionSet []*SharePermission `json:"SharePermissionSet,omitempty" name:"SharePermissionSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeImageSharePermissionResponse

func NewDescribeImageSharePermissionResponse() (response *DescribeImageSharePermissionResponse)

func (*DescribeImageSharePermissionResponse) FromJsonString

func (r *DescribeImageSharePermissionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImageSharePermissionResponse) ToJsonString

func (r *DescribeImageSharePermissionResponse) ToJsonString() string

type DescribeImagesRequest

type DescribeImagesRequest struct {
	*tchttp.BaseRequest

	// List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways: <br><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response. <br><li>View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
	ImageIds []*string `json:"ImageIds,omitempty" name:"ImageIds"`

	// Filters. Each request can have up to 10 `Filters` and 5 `Filters.Values`. You cannot specify `ImageIds` and `Filters` at the same time. Specific filters:
	// <li>`image-id` - String - Optional - Filter results by image ID</li>
	// <li>`image-type` - String - Optional - Filter results by image type. Valid values:
	//     PRIVATE_IMAGE: private image created by the current account
	//     PUBLIC_IMAGE: public image created by Tencent Cloud
	//    SHARED_IMAGE: image shared with the current account by another account.</li>
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// Instance type, e.g. `S1.SMALL1`
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
}

func NewDescribeImagesRequest

func NewDescribeImagesRequest() (request *DescribeImagesRequest)

func (*DescribeImagesRequest) FromJsonString

func (r *DescribeImagesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImagesRequest) ToJsonString

func (r *DescribeImagesRequest) ToJsonString() string

type DescribeImagesResponse

type DescribeImagesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Information on an image, including its state and attributes.
		ImageSet []*Image `json:"ImageSet,omitempty" name:"ImageSet"`

		// Number of images meeting the filtering conditions.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeImagesResponse

func NewDescribeImagesResponse() (response *DescribeImagesResponse)

func (*DescribeImagesResponse) FromJsonString

func (r *DescribeImagesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImagesResponse) ToJsonString

func (r *DescribeImagesResponse) ToJsonString() string

type DescribeImportImageOsRequest

type DescribeImportImageOsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeImportImageOsRequest

func NewDescribeImportImageOsRequest() (request *DescribeImportImageOsRequest)

func (*DescribeImportImageOsRequest) FromJsonString

func (r *DescribeImportImageOsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImportImageOsRequest) ToJsonString

func (r *DescribeImportImageOsRequest) ToJsonString() string

type DescribeImportImageOsResponse

type DescribeImportImageOsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Supported operating system types of imported images.
		ImportImageOsListSupported *ImageOsList `json:"ImportImageOsListSupported,omitempty" name:"ImportImageOsListSupported"`

		// Supported operating system versions of imported images.
		ImportImageOsVersionSet []*OsVersion `json:"ImportImageOsVersionSet,omitempty" name:"ImportImageOsVersionSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeImportImageOsResponse

func NewDescribeImportImageOsResponse() (response *DescribeImportImageOsResponse)

func (*DescribeImportImageOsResponse) FromJsonString

func (r *DescribeImportImageOsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeImportImageOsResponse) ToJsonString

func (r *DescribeImportImageOsResponse) ToJsonString() string

type DescribeInstanceFamilyConfigsRequest

type DescribeInstanceFamilyConfigsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeInstanceFamilyConfigsRequest

func NewDescribeInstanceFamilyConfigsRequest() (request *DescribeInstanceFamilyConfigsRequest)

func (*DescribeInstanceFamilyConfigsRequest) FromJsonString

func (r *DescribeInstanceFamilyConfigsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceFamilyConfigsRequest) ToJsonString

func (r *DescribeInstanceFamilyConfigsRequest) ToJsonString() string

type DescribeInstanceFamilyConfigsResponse

type DescribeInstanceFamilyConfigsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// List of instance model families
		InstanceFamilyConfigSet []*InstanceFamilyConfig `json:"InstanceFamilyConfigSet,omitempty" name:"InstanceFamilyConfigSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstanceFamilyConfigsResponse

func NewDescribeInstanceFamilyConfigsResponse() (response *DescribeInstanceFamilyConfigsResponse)

func (*DescribeInstanceFamilyConfigsResponse) FromJsonString

func (r *DescribeInstanceFamilyConfigsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceFamilyConfigsResponse) ToJsonString

type DescribeInstanceTypeConfigsRequest

type DescribeInstanceTypeConfigsRequest struct {
	*tchttp.BaseRequest

	// <li><strong>zone</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>availability zones</strong>**. For example, availability zone: ap-guangzhou-1.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">list of availability zones</a></p>
	// <li><strong>instance-family</strong></li>
	// <p style="padding-left: 30px;">Filter results by **<strong>instance models</strong>**. For example, instance models: S1, I1 and M1.</p><p style="padding-left: 30px;">Type: Integer</p><p style="padding-left: 30px;">Required: no</p>
	// Each request can have up to 10 `Filters` and 1 `Filters.Values`.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeInstanceTypeConfigsRequest

func NewDescribeInstanceTypeConfigsRequest() (request *DescribeInstanceTypeConfigsRequest)

func (*DescribeInstanceTypeConfigsRequest) FromJsonString

func (r *DescribeInstanceTypeConfigsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceTypeConfigsRequest) ToJsonString

func (r *DescribeInstanceTypeConfigsRequest) ToJsonString() string

type DescribeInstanceTypeConfigsResponse

type DescribeInstanceTypeConfigsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// List of instance model families
		InstanceTypeConfigSet []*InstanceTypeConfig `json:"InstanceTypeConfigSet,omitempty" name:"InstanceTypeConfigSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstanceTypeConfigsResponse

func NewDescribeInstanceTypeConfigsResponse() (response *DescribeInstanceTypeConfigsResponse)

func (*DescribeInstanceTypeConfigsResponse) FromJsonString

func (r *DescribeInstanceTypeConfigsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceTypeConfigsResponse) ToJsonString

func (r *DescribeInstanceTypeConfigsResponse) ToJsonString() string

type DescribeInstanceVncUrlRequest

type DescribeInstanceVncUrlRequest struct {
	*tchttp.BaseRequest

	// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewDescribeInstanceVncUrlRequest

func NewDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlRequest)

func (*DescribeInstanceVncUrlRequest) FromJsonString

func (r *DescribeInstanceVncUrlRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceVncUrlRequest) ToJsonString

func (r *DescribeInstanceVncUrlRequest) ToJsonString() string

type DescribeInstanceVncUrlResponse

type DescribeInstanceVncUrlResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Instance VNC URL.
		InstanceVncUrl *string `json:"InstanceVncUrl,omitempty" name:"InstanceVncUrl"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstanceVncUrlResponse

func NewDescribeInstanceVncUrlResponse() (response *DescribeInstanceVncUrlResponse)

func (*DescribeInstanceVncUrlResponse) FromJsonString

func (r *DescribeInstanceVncUrlResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstanceVncUrlResponse) ToJsonString

func (r *DescribeInstanceVncUrlResponse) ToJsonString() string

type DescribeInstancesOperationLimitRequest

type DescribeInstancesOperationLimitRequest struct {
	*tchttp.BaseRequest

	// Query by instance ID(s). You can obtain the instance IDs from the value of `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API. For example, instance ID: ins-xxxxxxxx. (For the specific format, refer to section `ids.N` of the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).) You can query up to 100 instances in each request.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Operation on the instance(s).
	// <li> INSTANCE_DEGRADE: downgrade the instance configurations</li>
	Operation *string `json:"Operation,omitempty" name:"Operation"`
}

func NewDescribeInstancesOperationLimitRequest

func NewDescribeInstancesOperationLimitRequest() (request *DescribeInstancesOperationLimitRequest)

func (*DescribeInstancesOperationLimitRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesOperationLimitRequest) ToJsonString

type DescribeInstancesOperationLimitResponse

type DescribeInstancesOperationLimitResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The maximum number of times you can modify the instance configurations (degrading the configurations)
		InstanceOperationLimitSet []*OperationCountLimit `json:"InstanceOperationLimitSet,omitempty" name:"InstanceOperationLimitSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesOperationLimitResponse

func NewDescribeInstancesOperationLimitResponse() (response *DescribeInstancesOperationLimitResponse)

func (*DescribeInstancesOperationLimitResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesOperationLimitResponse) ToJsonString

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*tchttp.BaseRequest

	// Query by instance ID(s). For example, instance ID: `ins-xxxxxxxx`. For the specific format, refer to section `Ids.N` of the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can query up to 100 instances in each request. However, `InstanceIds` and `Filters` cannot be specified at the same time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Filters.
	// <li> `zone` - String - Optional - Filter results by availability zone.</li>
	// <li> `project-id` - Integer - Optional - Filter results by project ID. You can call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) or log in to the [console](https://console.cloud.tencent.com/cvm/index) to view the list of existing projects. You can also create a new project by calling [AddProject](https://intl.cloud.tencent.com/document/api/378/4398?from_cn_redirect=1).</li>
	// <li> `host-id` - String - Optional - Filter results by [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) ID. [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) ID format: `host-xxxxxxxx`.</li>
	// </li>`vpc-id` - String - Optional - Filter results by VPC ID. VPC ID format: `vpc-xxxxxxxx`.</li>
	// <li> `subnet-id` - String - Optional - Filter results by subnet ID. Subnet ID format: `subnet-xxxxxxxx`.</li>
	// </li>`instance-id` - String - Optional - Filter results by instance ID. Instance ID format: `ins-xxxxxxxx`.</li>
	// </li>`security-group-id` - String - Optional - Filter results by security group ID. Security group ID format: `sg-8jlk3f3r`.</li>
	// </li>`instance-name` - String - Optional - Filter results by instance name.</li>
	// </li>`instance-charge-type` - String - Optional - Filter results by instance billing method. `POSTPAID_BY_HOUR`: pay-as-you-go | `CDHPAID`: you are only billed for [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances, not the CVMs running on the [CDH](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) instances.</li>
	// </li>`private-ip-address` - String - Optional - Filter results by the private IP address of the instance's primary ENI.</li>
	// </li>`public-ip-address` - String - Optional - Filter results by the public IP address of the instance's primary ENI, including the IP addresses automatically assigned during the instance creation and the EIPs manually associated after the instance creation.</li>
	// <li> `tag-key` - String - Optional - Filter results by tag key.</li>
	// </li>`tag-value` - String - Optional - Filter results by tag value.</li>
	// <li> `tag:tag-key` - String - Optional - Filter results by tag key-value pair. Replace `tag-key` with specific tag keys, as shown in example 2.</li>
	// Each request can have up to 10 `Filters` and 5 `Filters.Values`. You cannot specify `InstanceIds` and `Filters` at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset; default value: 0. For more information on `Offset`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesRequest

func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)

func (*DescribeInstancesRequest) FromJsonString

func (r *DescribeInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesRequest) ToJsonString

func (r *DescribeInstancesRequest) ToJsonString() string

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Number of instances meeting the filtering conditions.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Detailed instance information.
		InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesResponse

func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)

func (*DescribeInstancesResponse) FromJsonString

func (r *DescribeInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesResponse) ToJsonString

func (r *DescribeInstancesResponse) ToJsonString() string

type DescribeInstancesStatusRequest

type DescribeInstancesStatusRequest struct {
	*tchttp.BaseRequest

	// Query by instance ID(s). For example, instance ID: `ins-xxxxxxxx`. For the specific format, refer to section `Ids.N` of the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can query up to 100 instances in each request.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Offset; default value: 0. For more information on `Offset`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesStatusRequest

func NewDescribeInstancesStatusRequest() (request *DescribeInstancesStatusRequest)

func (*DescribeInstancesStatusRequest) FromJsonString

func (r *DescribeInstancesStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesStatusRequest) ToJsonString

func (r *DescribeInstancesStatusRequest) ToJsonString() string

type DescribeInstancesStatusResponse

type DescribeInstancesStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Number of instance states meeting the filtering conditions.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// [Instance status](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) list.
		InstanceStatusSet []*InstanceStatus `json:"InstanceStatusSet,omitempty" name:"InstanceStatusSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesStatusResponse

func NewDescribeInstancesStatusResponse() (response *DescribeInstancesStatusResponse)

func (*DescribeInstancesStatusResponse) FromJsonString

func (r *DescribeInstancesStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInstancesStatusResponse) ToJsonString

func (r *DescribeInstancesStatusResponse) ToJsonString() string

type DescribeInternetChargeTypeConfigsRequest

type DescribeInternetChargeTypeConfigsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeInternetChargeTypeConfigsRequest

func NewDescribeInternetChargeTypeConfigsRequest() (request *DescribeInternetChargeTypeConfigsRequest)

func (*DescribeInternetChargeTypeConfigsRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInternetChargeTypeConfigsRequest) ToJsonString

type DescribeInternetChargeTypeConfigsResponse

type DescribeInternetChargeTypeConfigsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// List of network billing methods.
		InternetChargeTypeConfigSet []*InternetChargeTypeConfig `json:"InternetChargeTypeConfigSet,omitempty" name:"InternetChargeTypeConfigSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInternetChargeTypeConfigsResponse

func NewDescribeInternetChargeTypeConfigsResponse() (response *DescribeInternetChargeTypeConfigsResponse)

func (*DescribeInternetChargeTypeConfigsResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeInternetChargeTypeConfigsResponse) ToJsonString

type DescribeKeyPairsRequest

type DescribeKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key pair ID(s) in the format of `skey-11112222`. This API supports using multiple IDs as filters at the same time. For more information on the format of this parameter, see the `id.N` section in [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You cannot specify `KeyIds` and `Filters` at the same time. You can log in to the [console](https://console.cloud.tencent.com/cvm/index) to query the key pair IDs.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Filters.
	// <li> `project-id` - Integer - Optional - Filter results by project ID. To view the list of project IDs, you can go to [Project Management](https://console.cloud.tencent.com/project), or call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) and look for `projectId` in the response. </li>
	// <li> `key-name` - String - Optional - Filter results by key pair name. </li> You cannot specify `KeyIds` and `Filters` at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset; default value: 0. For more information on `Offset`, see the corresponding sections in API [Introduction](https://intl.cloud.tencent.com/document/product/377). Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeKeyPairsRequest

func NewDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest)

func (*DescribeKeyPairsRequest) FromJsonString

func (r *DescribeKeyPairsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKeyPairsRequest) ToJsonString

func (r *DescribeKeyPairsRequest) ToJsonString() string

type DescribeKeyPairsResponse

type DescribeKeyPairsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Number of key pairs meeting the filtering conditions.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Detailed information on key pairs.
		KeyPairSet []*KeyPair `json:"KeyPairSet,omitempty" name:"KeyPairSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeKeyPairsResponse

func NewDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse)

func (*DescribeKeyPairsResponse) FromJsonString

func (r *DescribeKeyPairsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeKeyPairsResponse) ToJsonString

func (r *DescribeKeyPairsResponse) ToJsonString() string

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeRegionsRequest

func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)

func (*DescribeRegionsRequest) FromJsonString

func (r *DescribeRegionsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRegionsRequest) ToJsonString

func (r *DescribeRegionsRequest) ToJsonString() string

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Number of regions
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of regions
		RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeRegionsResponse

func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)

func (*DescribeRegionsResponse) FromJsonString

func (r *DescribeRegionsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRegionsResponse) ToJsonString

func (r *DescribeRegionsResponse) ToJsonString() string

type DescribeReservedInstancesConfigInfosRequest

type DescribeReservedInstancesConfigInfosRequest struct {
	*tchttp.BaseRequest

	// zone
	// Filters by the availability zones in which the reserved instance can be purchased, such as `ap-guangzhou-1`.
	// Type: String
	// Required: no
	// Valid values: list of regions/availability zones
	//
	// product-description
	// Filters by the platform description (operating system) of the reserved instance, such as `linux`.
	// Type: String
	// Required: no
	// Valid value: linux
	//
	// duration
	// Filters by the **validity** of the reserved instance, which is the purchased usage period. For example, `31536000`.
	// Type: Integer
	// Unit: second
	// Required: no
	// Valid value: 31536000 (1 year)
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeReservedInstancesConfigInfosRequest

func NewDescribeReservedInstancesConfigInfosRequest() (request *DescribeReservedInstancesConfigInfosRequest)

func (*DescribeReservedInstancesConfigInfosRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesConfigInfosRequest) ToJsonString

type DescribeReservedInstancesConfigInfosResponse

type DescribeReservedInstancesConfigInfosResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Static configurations of the reserved instance.
		ReservedInstanceConfigInfos []*ReservedInstanceConfigInfoItem `json:"ReservedInstanceConfigInfos,omitempty" name:"ReservedInstanceConfigInfos"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeReservedInstancesConfigInfosResponse

func NewDescribeReservedInstancesConfigInfosResponse() (response *DescribeReservedInstancesConfigInfosResponse)

func (*DescribeReservedInstancesConfigInfosResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesConfigInfosResponse) ToJsonString

type DescribeReservedInstancesOfferingsRequest

type DescribeReservedInstancesOfferingsRequest struct {
	*tchttp.BaseRequest

	// Dry run. Default value: false.
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// The maximum duration as a filter,
	// in seconds.
	// Default value: 94608000.
	MaxDuration *int64 `json:"MaxDuration,omitempty" name:"MaxDuration"`

	// The minimum duration as a filter,
	// in seconds.
	// Default value: 2592000.
	MinDuration *int64 `json:"MinDuration,omitempty" name:"MinDuration"`

	// <li><strong>zone</strong></li>
	// <p style="padding-left: 30px;">Filters by the <strong>availability zones</strong> in which the Reserved Instances can be purchased, such as ap-guangzhou-1.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">Availability Zones</a></p>
	// <li><strong>duration</strong></li>
	// <p style="padding-left: 30px;">Filters by the <strong>duration</strong> of the Reserved Instance, in seconds. For example, 31536000.</p><p style="padding-left: 30px;">Type: Integer</p><p style="padding-left: 30px;">Unit: second</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: 31536000 (1 year) | 94608000 (3 years)</p>
	// <li><strong>instance-type</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>type of the Reserved Instance</strong>, such as `S3.MEDIUM4`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1">Instance Types</a></p>
	// <li><strong>offering-type</strong></li>
	// <p style="padding-left: 30px;">Filters by **<strong>payment term</strong>**, such as `All Upfront`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid value: All Upfront</p>
	// <li><strong>product-description</strong></li>
	// <p style="padding-left: 30px;">Filters by the <strong>platform description</strong> (operating system) of the Reserved Instance, such as `linux`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid value: linux</p>
	// <li><strong>reserved-instances-offering-id</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>Reserved Instance ID</strong>, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p>
	// Each request can have up to 10 `Filters` and 5 `Filter.Values`.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeReservedInstancesOfferingsRequest

func NewDescribeReservedInstancesOfferingsRequest() (request *DescribeReservedInstancesOfferingsRequest)

func (*DescribeReservedInstancesOfferingsRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesOfferingsRequest) ToJsonString

type DescribeReservedInstancesOfferingsResponse

type DescribeReservedInstancesOfferingsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The number of Reserved Instances that meet the condition.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// The list of Reserved Instances that meet the condition.
		ReservedInstancesOfferingsSet []*ReservedInstancesOffering `json:"ReservedInstancesOfferingsSet,omitempty" name:"ReservedInstancesOfferingsSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeReservedInstancesOfferingsResponse

func NewDescribeReservedInstancesOfferingsResponse() (response *DescribeReservedInstancesOfferingsResponse)

func (*DescribeReservedInstancesOfferingsResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesOfferingsResponse) ToJsonString

type DescribeReservedInstancesRequest

type DescribeReservedInstancesRequest struct {
	*tchttp.BaseRequest

	// Dry run. The default is false.
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// <li><strong>zone</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>availability zone</strong> in which reserved instances can be purchased, such as `ap-guangzhou-1`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">Availability Zones</a></p>
	// <li><strong>duration</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>validity period</strong> of the reserved instance, such as `31536000`.</p><p style="padding-left: 30px;">Type: Integer</p><p style="padding-left: 30px;">Unit: second</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid value: 31536000 (1 year)</p>
	// <li><strong>instance-type</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>specification of the reserved instance</strong>, such as `S3.MEDIUM4`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1">Reserved Instance Types</a></p>
	// <li><strong>instance-family</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>type of the reserved instance</strong>, such as `S3`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1">Reserved Instance Types</a></p>
	// <li><strong>offering-type</strong></li>
	// <li><strong>offering-type</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>payment method</strong>, such as `All Upfront`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: All Upfront | Partial Upfront | No Upfront</p>
	// <li><strong>product-description</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>platform description</strong> (operating system) of the reserved instance, such as `linux`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid value: linux</p>
	// <li><strong>reserved-instances-id</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>reserved instance ID</strong> in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p>
	// <li><strong>state</strong></li>
	// <p style="padding-left: 30px;">Filters by <strong>reserved instance status</strong>, such as `active`.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Required: no</p><p style="padding-left: 30px;">Valid values: active (created) | pending (waiting to be created) | retired (expired)</p>
	// Each request can have up to 10 `Filters` and 5 `Filter.Values`.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeReservedInstancesRequest

func NewDescribeReservedInstancesRequest() (request *DescribeReservedInstancesRequest)

func (*DescribeReservedInstancesRequest) FromJsonString

func (r *DescribeReservedInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesRequest) ToJsonString

func (r *DescribeReservedInstancesRequest) ToJsonString() string

type DescribeReservedInstancesResponse

type DescribeReservedInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The number of eligible reserved instances.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of eligible reserved instances.
		ReservedInstancesSet []*ReservedInstances `json:"ReservedInstancesSet,omitempty" name:"ReservedInstancesSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeReservedInstancesResponse

func NewDescribeReservedInstancesResponse() (response *DescribeReservedInstancesResponse)

func (*DescribeReservedInstancesResponse) FromJsonString

func (r *DescribeReservedInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeReservedInstancesResponse) ToJsonString

func (r *DescribeReservedInstancesResponse) ToJsonString() string

type DescribeZoneInstanceConfigInfosRequest

type DescribeZoneInstanceConfigInfosRequest struct {
	*tchttp.BaseRequest

	// <li> instance-charge-type-String-required: no-(filter) billing mode of instances. (POSTPAID_BY_HOUR: pay-as-you-go billing by hour | SPOTPAID: spot billing, which is suitable for a [spot instance] (https://intl.cloud.Tencent.com/document/product/213/17817) | CDHPAID: CDH billing, that is, billing only for CDH, but not for the instances on CDH. )  </li>
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeZoneInstanceConfigInfosRequest

func NewDescribeZoneInstanceConfigInfosRequest() (request *DescribeZoneInstanceConfigInfosRequest)

func (*DescribeZoneInstanceConfigInfosRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeZoneInstanceConfigInfosRequest) ToJsonString

type DescribeZoneInstanceConfigInfosResponse

type DescribeZoneInstanceConfigInfosResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// List of model configurations for the availability zone.
		InstanceTypeQuotaSet []*InstanceTypeQuotaItem `json:"InstanceTypeQuotaSet,omitempty" name:"InstanceTypeQuotaSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeZoneInstanceConfigInfosResponse

func NewDescribeZoneInstanceConfigInfosResponse() (response *DescribeZoneInstanceConfigInfosResponse)

func (*DescribeZoneInstanceConfigInfosResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeZoneInstanceConfigInfosResponse) ToJsonString

type DescribeZonesRequest

type DescribeZonesRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeZonesRequest

func NewDescribeZonesRequest() (request *DescribeZonesRequest)

func (*DescribeZonesRequest) FromJsonString

func (r *DescribeZonesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeZonesRequest) ToJsonString

func (r *DescribeZonesRequest) ToJsonString() string

type DescribeZonesResponse

type DescribeZonesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Number of availability zones.
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of availability zones.
		ZoneSet []*ZoneInfo `json:"ZoneSet,omitempty" name:"ZoneSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeZonesResponse

func NewDescribeZonesResponse() (response *DescribeZonesResponse)

func (*DescribeZonesResponse) FromJsonString

func (r *DescribeZonesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeZonesResponse) ToJsonString

func (r *DescribeZonesResponse) ToJsonString() string

type DisassociateInstancesKeyPairsRequest

type DisassociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). The maximum number of instances in each request is 100. <br><br>You can obtain the available instance IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/index) to query the instance IDs. <br><li>Call [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// List of key pair IDs. The maximum number of key pairs in each request is 100. The key pair ID is in the format of `skey-11112222`. <br><br>You can obtain the available key pair IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/sshkey) to query the key pair IDs. <br><li>Call [DescribeKeyPairs](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) and look for `KeyId` in the response.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Whether to force shut down a running instances. It is recommended to manually shut down a running instance before disassociating a key pair from it. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails. <br><li>FALSE: do not force shut down an instance after a normal shutdown fails. <br><br>Default value: FALSE.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewDisassociateInstancesKeyPairsRequest

func NewDisassociateInstancesKeyPairsRequest() (request *DisassociateInstancesKeyPairsRequest)

func (*DisassociateInstancesKeyPairsRequest) FromJsonString

func (r *DisassociateInstancesKeyPairsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateInstancesKeyPairsRequest) ToJsonString

func (r *DisassociateInstancesKeyPairsRequest) ToJsonString() string

type DisassociateInstancesKeyPairsResponse

type DisassociateInstancesKeyPairsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDisassociateInstancesKeyPairsResponse

func NewDisassociateInstancesKeyPairsResponse() (response *DisassociateInstancesKeyPairsResponse)

func (*DisassociateInstancesKeyPairsResponse) FromJsonString

func (r *DisassociateInstancesKeyPairsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateInstancesKeyPairsResponse) ToJsonString

type DisassociateSecurityGroupsRequest

type DisassociateSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// ID of the security group to be disassociated, such as `sg-efil73jd`. Only one security group can be disassociated.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`

	// ID(s) of the instance(s) to be disassociated,such as `ins-lesecurk`. You can specify multiple instances.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewDisassociateSecurityGroupsRequest

func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest)

func (*DisassociateSecurityGroupsRequest) FromJsonString

func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateSecurityGroupsRequest) ToJsonString

func (r *DisassociateSecurityGroupsRequest) ToJsonString() string

type DisassociateSecurityGroupsResponse

type DisassociateSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDisassociateSecurityGroupsResponse

func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse)

func (*DisassociateSecurityGroupsResponse) FromJsonString

func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateSecurityGroupsResponse) ToJsonString

func (r *DisassociateSecurityGroupsResponse) ToJsonString() string

type DisasterRecoverGroup

type DisasterRecoverGroup struct {

	// ID of a spread placement group.
	DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitempty" name:"DisasterRecoverGroupId"`

	// Name of a spread placement group, which must be 1-60 characters long.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Type of a spread placement group. Valid values: <br><li>HOST: physical machine <br><li>SW: switch <br><li>RACK: rack.
	Type *string `json:"Type,omitempty" name:"Type"`

	// The maximum number of CVMs that can be hosted in a spread placement group.
	CvmQuotaTotal *int64 `json:"CvmQuotaTotal,omitempty" name:"CvmQuotaTotal"`

	// The current number of CVMs in a spread placement group.
	CurrentNum *int64 `json:"CurrentNum,omitempty" name:"CurrentNum"`

	// The list of CVM IDs in a spread placement group.
	// Note: This field may return null, indicating that no valid value was found.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Creation time of a spread placement group.
	// Note: This field may return null, indicating that no valid value is found.
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}

type EnhancedService

type EnhancedService struct {

	// Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default.
	SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"`

	// Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default.
	MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"`

	// Enables the TAT service. If this parameter is not specified, the TAT service will not be enabled.
	AutomationService *RunAutomationServiceEnabled `json:"AutomationService,omitempty" name:"AutomationService"`
}

type Externals

type Externals struct {

	// Release address
	// Note: This field may return null, indicating that no valid value is found.
	ReleaseAddress *bool `json:"ReleaseAddress,omitempty" name:"ReleaseAddress"`

	// Not supported network. Value: <br><li>BASIC: classic network<br><li>VPC1.0: VPC1.0
	// Note: This field may return null, indicating that no valid value was found.
	UnsupportNetworks []*string `json:"UnsupportNetworks,omitempty" name:"UnsupportNetworks"`

	// Attributes of local HDD storage
	// Note: This field may return null, indicating that no valid value is found.
	StorageBlockAttr *StorageBlock `json:"StorageBlockAttr,omitempty" name:"StorageBlockAttr"`
}

type Filter

type Filter struct {

	// Filters.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Filter values.
	Values []*string `json:"Values,omitempty" name:"Values"`
}

type HostItem

type HostItem struct {

	// Location of the CDH instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project.
	Placement *Placement `json:"Placement,omitempty" name:"Placement"`

	// CDH instance ID
	HostId *string `json:"HostId,omitempty" name:"HostId"`

	// CDH instance type
	HostType *string `json:"HostType,omitempty" name:"HostType"`

	// CDH instance name
	HostName *string `json:"HostName,omitempty" name:"HostName"`

	// Billing method of the CDH instance
	HostChargeType *string `json:"HostChargeType,omitempty" name:"HostChargeType"`

	// Auto renewal flag of the CDH instance
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`

	// Creation time of the CDH instance
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Expiration time of the CDH instance
	ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"`

	// List of IDs of CVM instances created on the CDH
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// CDH instance state
	HostState *string `json:"HostState,omitempty" name:"HostState"`

	// CDH instance IP
	HostIp *string `json:"HostIp,omitempty" name:"HostIp"`

	// Resource information of the CDH instance
	HostResource *HostResource `json:"HostResource,omitempty" name:"HostResource"`

	// Cage ID of the CDH instance. This parameter is only valid for CDH instances in the cages of finance availability zones.
	// Note: This field may return null, indicating that no valid value is found.
	CageId *string `json:"CageId,omitempty" name:"CageId"`
}

type HostResource

type HostResource struct {

	// Total number of CPU cores in the CDH instance
	CpuTotal *uint64 `json:"CpuTotal,omitempty" name:"CpuTotal"`

	// Number of available CPU cores in the CDH instance
	CpuAvailable *uint64 `json:"CpuAvailable,omitempty" name:"CpuAvailable"`

	// Total memory of the CDH instance; unit: GiB
	MemTotal *float64 `json:"MemTotal,omitempty" name:"MemTotal"`

	// Available memory of the CDH instance; unit: GiB
	MemAvailable *float64 `json:"MemAvailable,omitempty" name:"MemAvailable"`

	// Total disk size of the CDH instance; unit: GiB
	DiskTotal *uint64 `json:"DiskTotal,omitempty" name:"DiskTotal"`

	// Avilable disk size of the CDH instance; unit: GiB
	DiskAvailable *uint64 `json:"DiskAvailable,omitempty" name:"DiskAvailable"`

	// CDH instance disk type.
	DiskType *string `json:"DiskType,omitempty" name:"DiskType"`
}

type Image

type Image struct {

	// Image ID
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// Operating system of the image
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// Image type
	ImageType *string `json:"ImageType,omitempty" name:"ImageType"`

	// Creation time of the image
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Image name
	ImageName *string `json:"ImageName,omitempty" name:"ImageName"`

	// Image description
	ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"`

	// Image size
	ImageSize *int64 `json:"ImageSize,omitempty" name:"ImageSize"`

	// Image architecture
	Architecture *string `json:"Architecture,omitempty" name:"Architecture"`

	// Image state
	ImageState *string `json:"ImageState,omitempty" name:"ImageState"`

	// Source platform of the image
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// Image creator
	ImageCreator *string `json:"ImageCreator,omitempty" name:"ImageCreator"`

	// Image source
	ImageSource *string `json:"ImageSource,omitempty" name:"ImageSource"`

	// Synchronization percentage
	// Note: This field may return null, indicating that no valid value is found.
	SyncPercent *int64 `json:"SyncPercent,omitempty" name:"SyncPercent"`

	// Whether the image supports cloud-init
	// Note: This field may return null, indicating that no valid value is found.
	IsSupportCloudinit *bool `json:"IsSupportCloudinit,omitempty" name:"IsSupportCloudinit"`

	// Information on the snapshots associated with the image
	// Note: This field may return null, indicating that no valid value is found.
	SnapshotSet []*Snapshot `json:"SnapshotSet,omitempty" name:"SnapshotSet"`
}

type ImageOsList

type ImageOsList struct {

	// Supported Windows OS
	// Note: This field may return null, indicating that no valid value is found.
	Windows []*string `json:"Windows,omitempty" name:"Windows"`

	// Supported Linux OS
	// Note: This field may return null, indicating that no valid value is found.
	Linux []*string `json:"Linux,omitempty" name:"Linux"`
}

type ImportImageRequest

type ImportImageRequest struct {
	*tchttp.BaseRequest

	// OS architecture of the image to be imported, `x86_64` or `i386`.
	Architecture *string `json:"Architecture,omitempty" name:"Architecture"`

	// OS type of the image to be imported. You can call `DescribeImportImageOs` to obtain the list of supported operating systems.
	OsType *string `json:"OsType,omitempty" name:"OsType"`

	// OS version of the image to be imported. You can call `DescribeImportImageOs` to obtain the list of supported operating systems.
	OsVersion *string `json:"OsVersion,omitempty" name:"OsVersion"`

	// Address on COS where the image to be imported is stored.
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// Image name
	ImageName *string `json:"ImageName,omitempty" name:"ImageName"`

	// Image description
	ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"`

	// Dry run to check the parameters without performing the operation
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// Whether to force import the image. For more information, see [Forcibly Import Image](https://intl.cloud.tencent.com/document/product/213/12849).
	Force *bool `json:"Force,omitempty" name:"Force"`
}

func NewImportImageRequest

func NewImportImageRequest() (request *ImportImageRequest)

func (*ImportImageRequest) FromJsonString

func (r *ImportImageRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ImportImageRequest) ToJsonString

func (r *ImportImageRequest) ToJsonString() string

type ImportImageResponse

type ImportImageResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewImportImageResponse

func NewImportImageResponse() (response *ImportImageResponse)

func (*ImportImageResponse) FromJsonString

func (r *ImportImageResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ImportImageResponse) ToJsonString

func (r *ImportImageResponse) ToJsonString() string

type ImportKeyPairRequest

type ImportKeyPairRequest struct {
	*tchttp.BaseRequest

	// Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// The ID of the [project](https://intl.cloud.tencent.com/document/product/378/10861?from_cn_redirect=1) to which the created key pair belongs.<br><br>You can retrieve the project ID in two ways:<br><li>Query the project ID in [Project Management](https://console.cloud.tencent.com/project).<br><li>Call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) and search for `projectId` in the response.
	//
	// If you want to use the default project, specify 0 for the parameter.
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// Content of the public key in the key pair in the `OpenSSH RSA` format.
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`
}

func NewImportKeyPairRequest

func NewImportKeyPairRequest() (request *ImportKeyPairRequest)

func (*ImportKeyPairRequest) FromJsonString

func (r *ImportKeyPairRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ImportKeyPairRequest) ToJsonString

func (r *ImportKeyPairRequest) ToJsonString() string

type ImportKeyPairResponse

type ImportKeyPairResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Key pair ID
		KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewImportKeyPairResponse

func NewImportKeyPairResponse() (response *ImportKeyPairResponse)

func (*ImportKeyPairResponse) FromJsonString

func (r *ImportKeyPairResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ImportKeyPairResponse) ToJsonString

func (r *ImportKeyPairResponse) ToJsonString() string

type InquirePricePurchaseReservedInstancesOfferingRequest

type InquirePricePurchaseReservedInstancesOfferingRequest struct {
	*tchttp.BaseRequest

	// The number of the reserved instances you are purchasing.
	InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// The ID of the reserved instance offering.
	ReservedInstancesOfferingId *string `json:"ReservedInstancesOfferingId,omitempty" name:"ReservedInstancesOfferingId"`

	// Dry run.
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.<br>For more information, see Ensuring Idempotency.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`

	// Reserved instance name.<br><li>The RI name defaults to “unnamed” if this parameter is left empty.</li><li>You can enter any name within 60 characters (including the pattern string).</li>
	ReservedInstanceName *string `json:"ReservedInstanceName,omitempty" name:"ReservedInstanceName"`
}

func NewInquirePricePurchaseReservedInstancesOfferingRequest

func NewInquirePricePurchaseReservedInstancesOfferingRequest() (request *InquirePricePurchaseReservedInstancesOfferingRequest)

func (*InquirePricePurchaseReservedInstancesOfferingRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquirePricePurchaseReservedInstancesOfferingRequest) ToJsonString

type InquirePricePurchaseReservedInstancesOfferingResponse

type InquirePricePurchaseReservedInstancesOfferingResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of the reserved instance with specified configuration.
		Price *ReservedInstancePrice `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquirePricePurchaseReservedInstancesOfferingResponse

func NewInquirePricePurchaseReservedInstancesOfferingResponse() (response *InquirePricePurchaseReservedInstancesOfferingResponse)

func (*InquirePricePurchaseReservedInstancesOfferingResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquirePricePurchaseReservedInstancesOfferingResponse) ToJsonString

type InquiryPriceResetInstanceRequest

type InquiryPriceResetInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways: <br/><li>For IDs of `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the information; for IDs of `marketplace images`, go to [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// Configuration of the system disk of the instance. For instances with a cloud disk as the system disk, you can expand the system disk by using this parameter to specify the new capacity after reinstallation. If the parameter is not specified, the system disk capacity remains unchanged by default. You can only expand the capacity of the system disk; reducing its capacity is not supported. When reinstalling the system, you can only modify the capacity of the system disk, not the type.
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
	EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`
}

func NewInquiryPriceResetInstanceRequest

func NewInquiryPriceResetInstanceRequest() (request *InquiryPriceResetInstanceRequest)

func (*InquiryPriceResetInstanceRequest) FromJsonString

func (r *InquiryPriceResetInstanceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstanceRequest) ToJsonString

func (r *InquiryPriceResetInstanceRequest) ToJsonString() string

type InquiryPriceResetInstanceResponse

type InquiryPriceResetInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of reinstalling the instance with the specified configuration.
		Price *Price `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceResetInstanceResponse

func NewInquiryPriceResetInstanceResponse() (response *InquiryPriceResetInstanceResponse)

func (*InquiryPriceResetInstanceResponse) FromJsonString

func (r *InquiryPriceResetInstanceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstanceResponse) ToJsonString

func (r *InquiryPriceResetInstanceResponse) ToJsonString() string

type InquiryPriceResetInstancesInternetMaxBandwidthRequest

type InquiryPriceResetInstancesInternetMaxBandwidthRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100. When changing the bandwidth of instances with `BANDWIDTH_PREPAID` or `BANDWIDTH_POSTPAID_BY_HOUR` as the network billing method, you can only specify one instance at a time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Configuration of public network egress bandwidth. The maximum bandwidth varies among different models. For more information, see the documentation on bandwidth limits. Currently only the `InternetMaxBandwidthOut` parameter is supported.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// Date from which the new bandwidth takes effect. Format: `YYYY-MM-DD`, such as `2016-10-30`. The starting date cannot be earlier than the current date. If the starting date is the current date, the new bandwidth takes effect immediately. This parameter is only valid for prepaid bandwidth. If you specify the parameter for bandwidth with other network billing methods, an error code will be returned.
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// Date until which the new bandwidth is effective. Format: `YYYY-MM-DD`, such as `2016-10-30`. The validity period of the new bandwidth covers the end date. The end date cannot be later than the expiration date of a prepaid instance. You can query the expiration time of an instance by calling [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728) and looking for `ExpiredTime` in the response. This parameter is only valid for prepaid bandwidth. If you specify the parameter for bandwidth with other network billing methods, an error code will be returned.
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewInquiryPriceResetInstancesInternetMaxBandwidthRequest

func NewInquiryPriceResetInstancesInternetMaxBandwidthRequest() (request *InquiryPriceResetInstancesInternetMaxBandwidthRequest)

func (*InquiryPriceResetInstancesInternetMaxBandwidthRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstancesInternetMaxBandwidthRequest) ToJsonString

type InquiryPriceResetInstancesInternetMaxBandwidthResponse

type InquiryPriceResetInstancesInternetMaxBandwidthResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of the new bandwidth
		Price *Price `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceResetInstancesInternetMaxBandwidthResponse

func NewInquiryPriceResetInstancesInternetMaxBandwidthResponse() (response *InquiryPriceResetInstancesInternetMaxBandwidthResponse)

func (*InquiryPriceResetInstancesInternetMaxBandwidthResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstancesInternetMaxBandwidthResponse) ToJsonString

type InquiryPriceResetInstancesTypeRequest

type InquiryPriceResetInstancesTypeRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). You can obtain the instance IDs from the value of `InstanceId` returned by the [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API. The maximum number of instances in each request is 1.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Instance model. Resources vary with the instance model. Specific values can be found in the tables of [Instance Types] (https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) or in the latest specifications via the [DescribeInstanceTypeConfigs] (https://intl.cloud.tencent.com/document/product/213/15749?from_cn_redirect=1) API.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
}

func NewInquiryPriceResetInstancesTypeRequest

func NewInquiryPriceResetInstancesTypeRequest() (request *InquiryPriceResetInstancesTypeRequest)

func (*InquiryPriceResetInstancesTypeRequest) FromJsonString

func (r *InquiryPriceResetInstancesTypeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstancesTypeRequest) ToJsonString

type InquiryPriceResetInstancesTypeResponse

type InquiryPriceResetInstancesTypeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of the instance using the specified model
		Price *Price `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceResetInstancesTypeResponse

func NewInquiryPriceResetInstancesTypeResponse() (response *InquiryPriceResetInstancesTypeResponse)

func (*InquiryPriceResetInstancesTypeResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResetInstancesTypeResponse) ToJsonString

type InquiryPriceResizeInstanceDisksRequest

type InquiryPriceResizeInstanceDisksRequest struct {
	*tchttp.BaseRequest

	// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// The configuration of data disks to be expanded. Currently, you can only use the API to expand non-elastic data disks whose [disk type](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#DataDisk) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`. You can use [`DescribeDisks`](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1) to check whether a disk is elastic. If the `Portable` field in the response is `false`, it means that the disk is non-elastic. Data disk capacity unit: GB; minimum increment: 10 GB. For more information about selecting a data disk type, see the product overview on cloud disks. Available data disk types are subject to the instance type (`InstanceType`). In addition, the maximum capacity allowed for expansion varies by data disk type.
	DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`

	// Whether to force shut down a running instances. It is recommended to manually shut down a running instance before resetting the user password. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails. <br><li>FALSE: do not force shut down an instance after a normal shutdown fails. <br><br>Default value: FALSE. <br><br>A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be shut down normally.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewInquiryPriceResizeInstanceDisksRequest

func NewInquiryPriceResizeInstanceDisksRequest() (request *InquiryPriceResizeInstanceDisksRequest)

func (*InquiryPriceResizeInstanceDisksRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResizeInstanceDisksRequest) ToJsonString

type InquiryPriceResizeInstanceDisksResponse

type InquiryPriceResizeInstanceDisksResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of the disks after being expanded to the specified configurations
		Price *Price `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceResizeInstanceDisksResponse

func NewInquiryPriceResizeInstanceDisksResponse() (response *InquiryPriceResizeInstanceDisksResponse)

func (*InquiryPriceResizeInstanceDisksResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceResizeInstanceDisksResponse) ToJsonString

type InquiryPriceRunInstancesRequest

type InquiryPriceRunInstancesRequest struct {
	*tchttp.BaseRequest

	// Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project.
	Placement *Placement `json:"Placement,omitempty" name:"Placement"`

	// [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways: <br/><li>For IDs of `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the information; for IDs of `marketplace images`, go to [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// The instance [billing method](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).<br><li>POSTPAID_BY_HOUR: hourly, pay-as-you-go<br>Default value: POSTPAID_BY_HOUR.
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`

	// The instance model. Different resource specifications are specified for different models. For specific values, call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to retrieve the latest specification list or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If the parameter is not specified, `S1.SMALL1` will be used by default.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// System disk configuration of the instance. If this parameter is not specified, the default value will be used.
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// The configuration information of the instance data disk. If this parameter is not specified, no data disk will be purchased by default. When purchasing, you can specify 21 data disks, which can contain at most 1 LOCAL_BASIC data disk or LOCAL_SSD data disk, and at most 20 CLOUD_BASIC data disks, CLOUD_PREMIUM data disks, or CLOUD_SSD data disks.
	DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`

	// VPC configurations. You can use this parameter to specify the VPC ID, subnet ID, etc. If this parameter is not specified, the basic network will be used by default. If a VPC IP is specified in this parameter, the `InstanceCount` parameter can only be 1.
	VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitempty" name:"VirtualPrivateCloud"`

	// Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// Number of instances to be purchased. Value range: [1, 100]; default value: 1. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on quota, see [CVM instance purchase limit](https://intl.cloud.tencent.com/document/product/213/2664).
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// Instance name to be displayed.<br><li>If this parameter is not specified, "Unnamed" will be displayed by default.</li><li>If you purchase multiple instances at the same time and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string, `server_{R:3}`. If you only purchase 1 instance, the instance will be named `server_3`; if you purchase 2, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.</li><li>If you purchase multiple instances at the same time and do not specify a pattern string, the instance names will be suffixed by `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase 2 instances and name them as `server_`, the instance names will be displayed as `server_1` and `server_2`.</li><li>The instance name contains up to 60 characters (including pattern strings).
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will not be associated with any security group by default.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`

	// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
	EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`

	// A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. <br>For more information, see 'How to ensure idempotency'.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`

	// Host name of the CVM. <br><li>Periods (.) or hyphens (-) cannot be the start or end of a host name or appear consecutively in a host name.<br><li>For Windows instances, the host name must be 2-15 characters long and can contain uppercase and lowercase letters, numbers, and hyphens (-). It cannot contain periods (.) or contain only numbers. <br><li>For other instances, such as Linux instances, the host name must be 2-30 characters long. It supports multiple periods (.) and allows uppercase and lowercase letters, numbers, and hyphens (-) between any two periods (.).
	HostName *string `json:"HostName,omitempty" name:"HostName"`

	// The tag description list. This parameter is used to bind a tag to a resource instance. A tag can only be bound to CVM instances.
	TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`

	// The market options of the instance.
	InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"`

	// HPC cluster ID.
	HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"`
}

func NewInquiryPriceRunInstancesRequest

func NewInquiryPriceRunInstancesRequest() (request *InquiryPriceRunInstancesRequest)

func (*InquiryPriceRunInstancesRequest) FromJsonString

func (r *InquiryPriceRunInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceRunInstancesRequest) ToJsonString

func (r *InquiryPriceRunInstancesRequest) ToJsonString() string

type InquiryPriceRunInstancesResponse

type InquiryPriceRunInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Price of the instance with the specified configurations.
		Price *Price `json:"Price,omitempty" name:"Price"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceRunInstancesResponse

func NewInquiryPriceRunInstancesResponse() (response *InquiryPriceRunInstancesResponse)

func (*InquiryPriceRunInstancesResponse) FromJsonString

func (r *InquiryPriceRunInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquiryPriceRunInstancesResponse) ToJsonString

func (r *InquiryPriceRunInstancesResponse) ToJsonString() string

type Instance

type Instance struct {

	// Location of the instance
	Placement *Placement `json:"Placement,omitempty" name:"Placement"`

	// Instance `ID`
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Instance model
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Number of CPU cores of the instance; unit: core
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// Memory capacity; unit: `GB`.
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// Instance status. Valid values: <br><li>NORMAL: instance is normal. <br><li>EXPIRED: instance expired. <br><li>PROTECTIVELY_ISOLATED: instance is protectively isolated.
	RestrictState *string `json:"RestrictState,omitempty" name:"RestrictState"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// Instance billing plan. Valid values:<br><li>`POSTPAID_BY_HOUR`: pay after use. You are billed by the hour, by traffic.<br><li>`CDHPAID`: `CDH` billing plan. Applicable to `CDH` only, not the instances on the host.<br>
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// Information on the system disk of the instance
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// Information of the instance data disks.
	DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`

	// List of private IPs of the instance's primary ENI.
	PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"`

	// List of public IPs of the instance's primary ENI.
	// Note: This field may return null, indicating that no valid value is found.
	PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses"`

	// Information on instance bandwidth.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// Information on the VPC where the instance resides.
	VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitempty" name:"VirtualPrivateCloud"`

	// `ID` of the image used to create the instance.
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// Auto renewal flag. Valid values: <br><li>`NOTIFY_AND_MANUAL_RENEW`: notify upon expiration, but do not renew automatically <br><li>`NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically <br><li>`DISABLE_NOTIFY_AND_MANUAL_RENEW`: do not notify upon expiration and do not renew automatically.
	// <br><li>Note: this parameter is `null` for postpaid instances.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`

	// Creation time following the `ISO8601` standard and using `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Expiration time in UTC format following the `ISO8601` standard: `YYYY-MM-DDThh:mm:ssZ`. Note: this parameter is `null` for postpaid instances.
	ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"`

	// Operating system name.
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`

	// Login settings of the instance. Currently only the key associated with the instance is returned.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Instance state. Valid values: <br><li>PENDING: creating <br></li><li>LAUNCH_FAILED: creation failed <br></li><li>RUNNING: running <br></li><li>STOPPED: shut down <br></li><li>STARTING: starting <br></li><li>STOPPING: shutting down <br></li><li>REBOOTING: rebooting <br></li><li>SHUTDOWN: shut down and to be terminated <br></li><li>TERMINATING: terminating. <br></li>
	InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"`

	// List of tags associated with the instance.
	Tags []*Tag `json:"Tags,omitempty" name:"Tags"`

	// Instance billing method after shutdown.
	// Valid values: <br><li>KEEP_CHARGING: billing continues after shutdown <br><li>STOP_CHARGING: billing stops after shutdown <li>NOT_APPLICABLE: the instance is not shut down or stopping billing after shutdown is not applicable to the instance. <br>
	StopChargingMode *string `json:"StopChargingMode,omitempty" name:"StopChargingMode"`

	// Globally unique ID of the instance.
	Uuid *string `json:"Uuid,omitempty" name:"Uuid"`

	// Last operation of the instance, such as StopInstances or ResetInstance.
	LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"`

	// The latest operation status of the instance. Valid values:<br><li>SUCCESS: operation succeeded<br><li>OPERATING: operation in progress<br><li>FAILED: operation failed
	LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`

	// Unique request ID for the last operation of the instance.
	LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"`

	// ID of a spread placement group.
	// Note: this field may return null, indicating that no valid value is obtained.
	DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitempty" name:"DisasterRecoverGroupId"`

	// IPv6 address of the instance.
	// Note: this field may return null, indicating that no valid value is obtained.
	IPv6Addresses []*string `json:"IPv6Addresses,omitempty" name:"IPv6Addresses"`

	// CAM role name.
	// Note: this field may return null, indicating that no valid value is obtained.
	CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"`

	// HPC cluster ID.
	// Note: this field may return null, indicating that no valid value was found.
	HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"`

	// IP list of HPC cluster.
	// Note: this field may return null, indicating that no valid value was found.
	RdmaIpAddresses []*string `json:"RdmaIpAddresses,omitempty" name:"RdmaIpAddresses"`

	// The isolation status of the instance. Valid values:<br><li>`ARREAR`: isolated due to overdue payment;<br></li><li>`EXPIRE`: isolated upon expiration;<br></li><li>`MANMADE`: isolated after manual returning;<br></li><li>`NOTISOLATED`: not isolated<br></li>
	// Note: this field may return null, indicating that no valid value was found.
	IsolatedSource *string `json:"IsolatedSource,omitempty" name:"IsolatedSource"`
}

type InstanceChargePrepaid

type InstanceChargePrepaid struct {

	// Subscription period; unit: month; valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	Period *int64 `json:"Period,omitempty" name:"Period"`

	// Auto renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically <br><br>Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

type InstanceFamilyConfig

type InstanceFamilyConfig struct {

	// Full name of the model family.
	InstanceFamilyName *string `json:"InstanceFamilyName,omitempty" name:"InstanceFamilyName"`

	// Acronym of the model family.
	InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`
}

type InstanceMarketOptionsRequest

type InstanceMarketOptionsRequest struct {

	// Options related to bidding
	SpotOptions *SpotMarketOptions `json:"SpotOptions,omitempty" name:"SpotOptions"`

	// Market option type. Currently `spot` is the only supported value.
	MarketType *string `json:"MarketType,omitempty" name:"MarketType"`
}

type InstanceStatus

type InstanceStatus struct {

	// Instance `ID`.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// The instance state. Valid values: <br><li>PENDING: creating<br></li><li>LAUNCH_FAILED: creation failed<br></li><li>RUNNING: running<br></li><li>STOPPED: shut down<br></li><li>STARTING: starting<br></li><li>STOPPING: shutting down<br></li><li>REBOOTING: rebooting<br></li><li>SHUTDOWN: shut down and to be terminated<br></li><li>TERMINATING: terminating.<br></li>
	InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"`
}

type InstanceTypeConfig

type InstanceTypeConfig struct {

	// Availability zone.
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// Instance model.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Instance model family.
	InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`

	// Number of GPU cores.
	GPU *int64 `json:"GPU,omitempty" name:"GPU"`

	// Number of CPU cores.
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// Memory capacity; unit: `GB`.
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// Number of FPGA cores; unit: core.
	FPGA *int64 `json:"FPGA,omitempty" name:"FPGA"`
}

type InstanceTypeQuotaItem

type InstanceTypeQuotaItem struct {

	// Availability zone.
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// Instance model.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Instance billing plan. Valid values: <br><li>POSTPAID_BY_HOUR: pay after use. You are billed for your traffic by the hour.<br><li>`CDHPAID`: [`CDH`](https://intl.cloud.tencent.com/document/product/416?from_cn_redirect=1) billing plan. Applicable to `CDH` only, not the instances on the host.
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// ENI type. For example, 25 represents an ENI of 25 GB.
	NetworkCard *int64 `json:"NetworkCard,omitempty" name:"NetworkCard"`

	// Additional data.
	// Note: This field may return null, indicating that no valid value is found.
	Externals *Externals `json:"Externals,omitempty" name:"Externals"`

	// Number of CPU cores of an instance model.
	Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`

	// Instance memory capacity; unit: `GB`.
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// Instance model family.
	InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`

	// Model name.
	TypeName *string `json:"TypeName,omitempty" name:"TypeName"`

	// List of local disk specifications. If the parameter returns null, it means that local disks cannot be created.
	LocalDiskTypeList []*LocalDiskType `json:"LocalDiskTypeList,omitempty" name:"LocalDiskTypeList"`

	// Whether an instance model is available. Valid values: <br><li>SELL: available <br><li>SOLD_OUT: sold out
	Status *string `json:"Status,omitempty" name:"Status"`

	// Price of an instance model.
	Price *ItemPrice `json:"Price,omitempty" name:"Price"`

	// Details of out-of-stock items
	// Note: this field may return null, indicating that no valid value is obtained.
	SoldOutReason *string `json:"SoldOutReason,omitempty" name:"SoldOutReason"`

	// Private network bandwidth, in Gbps.
	InstanceBandwidth *float64 `json:"InstanceBandwidth,omitempty" name:"InstanceBandwidth"`

	// The max packet sending and receiving capability (in 10k PPS).
	InstancePps *int64 `json:"InstancePps,omitempty" name:"InstancePps"`

	// Number of local storage blocks.
	StorageBlockAmount *int64 `json:"StorageBlockAmount,omitempty" name:"StorageBlockAmount"`

	// CPU type.
	CpuType *string `json:"CpuType,omitempty" name:"CpuType"`

	// Number of GPUs of the instance.
	Gpu *int64 `json:"Gpu,omitempty" name:"Gpu"`

	// Number of FPGAs of the instance.
	Fpga *int64 `json:"Fpga,omitempty" name:"Fpga"`

	// Descriptive information of the instance.
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

type InternetAccessible

type InternetAccessible struct {

	// Network connection billing plan. Valid value: <br><li>TRAFFIC_POSTPAID_BY_HOUR: pay after use. You are billed for your traffic, by the hour.
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps. The upper limit of bandwidth varies for different models. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/12523?from_cn_redirect=1).
	InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`

	// Whether to assign a public IP. Valid values: <br><li>TRUE: Assign a public IP <br><li>FALSE: Do not assign a public IP <br><br>If the public network bandwidth is greater than 0 Mbps, you can choose whether to assign a public IP; by default a public IP will be assigned. If the public network bandwidth is 0 Mbps, you will not be able to assign a public IP.
	PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"`

	// Bandwidth package ID. To obatin the IDs, you can call [`DescribeBandwidthPackages`](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) and look for the `BandwidthPackageId` fields in the response.
	BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"`
}

type InternetChargeTypeConfig

type InternetChargeTypeConfig struct {

	// Network billing method.
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// Description of the network billing method.
	Description *string `json:"Description,omitempty" name:"Description"`
}

type ItemPrice

type ItemPrice struct {

	// The original unit price for pay-as-you-go mode in USD. <br><li>When a billing tier is returned, it indicates the price fo the returned billing tier. For example, if `UnitPriceSecondStep` is returned, it refers to the unit price for the usage between 0 to 96 hours. Otherwise, it refers to that the unit price for unlimited usage.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPrice *float64 `json:"UnitPrice,omitempty" name:"UnitPrice"`

	// Billing unit for pay-as-you-go mode. Valid values: <br><li>HOUR: billed on an hourly basis. It's used for hourly postpaid instances (`POSTPAID_BY_HOUR`). <br><li>GB: bill by traffic in GB. It's used for postpaid products that are billed by the hourly traffic (`TRAFFIC_POSTPAID_BY_HOUR`).
	// Note: this field may return null, indicating that no valid value is obtained.
	ChargeUnit *string `json:"ChargeUnit,omitempty" name:"ChargeUnit"`

	// The original price of a pay-in-advance instance, in USD.
	// Note: this field may return null, indicating that no valid value is obtained.
	OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

	// Discount price of a prepaid instance, in USD.
	// Note: this field may return null, indicating that no valid value is obtained.
	DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"`

	// Percentage of the original price. For example, if you enter "20.0", the discounted price will be 20% of the original price.
	// Note: this field may return null, indicating that no valid values can be obtained.
	Discount *float64 `json:"Discount,omitempty" name:"Discount"`

	// The discounted unit price for pay-as-you-go mode in USD. <br><li>When a billing tier is returned, it indicates the price fo the returned billing tier. For example, if `UnitPriceSecondStep` is returned, it refers to the unit price for the usage between 0 to 96 hours. Otherwise, it refers to that the unit price for unlimited usage.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitempty" name:"UnitPriceDiscount"`

	// Original unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPriceSecondStep *float64 `json:"UnitPriceSecondStep,omitempty" name:"UnitPriceSecondStep"`

	// Discounted unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPriceDiscountSecondStep *float64 `json:"UnitPriceDiscountSecondStep,omitempty" name:"UnitPriceDiscountSecondStep"`

	// Original unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPriceThirdStep *float64 `json:"UnitPriceThirdStep,omitempty" name:"UnitPriceThirdStep"`

	// Discounted unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
	// Note: this field may return null, indicating that no valid value is obtained.
	UnitPriceDiscountThirdStep *float64 `json:"UnitPriceDiscountThirdStep,omitempty" name:"UnitPriceDiscountThirdStep"`

	// Original 3-year payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	OriginalPriceThreeYear *float64 `json:"OriginalPriceThreeYear,omitempty" name:"OriginalPriceThreeYear"`

	// Discounted 3-year upfront payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountPriceThreeYear *float64 `json:"DiscountPriceThreeYear,omitempty" name:"DiscountPriceThreeYear"`

	// Discount for 3-year upfront payment. For example, 20.0 indicates 80% off.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountThreeYear *float64 `json:"DiscountThreeYear,omitempty" name:"DiscountThreeYear"`

	// Original 5-year payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	OriginalPriceFiveYear *float64 `json:"OriginalPriceFiveYear,omitempty" name:"OriginalPriceFiveYear"`

	// Discounted 5-year upfront payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountPriceFiveYear *float64 `json:"DiscountPriceFiveYear,omitempty" name:"DiscountPriceFiveYear"`

	// Discount for 5-year upfront payment. For example, 20.0 indicates 80% off.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountFiveYear *float64 `json:"DiscountFiveYear,omitempty" name:"DiscountFiveYear"`

	// Original 1-year payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	OriginalPriceOneYear *float64 `json:"OriginalPriceOneYear,omitempty" name:"OriginalPriceOneYear"`

	// Discounted 1-year payment, in USD. This parameter is only available to upfront payment mode.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountPriceOneYear *float64 `json:"DiscountPriceOneYear,omitempty" name:"DiscountPriceOneYear"`

	// Discount for 1-year upfront payment. For example, 20.0 indicates 80% off.
	// Note: this field may return `null`, indicating that no valid value was found.
	// Note: this field may return `null`, indicating that no valid value was found.
	DiscountOneYear *float64 `json:"DiscountOneYear,omitempty" name:"DiscountOneYear"`
}

type KeyPair

type KeyPair struct {

	// Key pair `ID`, the unique identifier of a key pair.
	KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

	// Key pair name.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// `ID` of the project to which a key pair belongs.
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// Key pair description.
	Description *string `json:"Description,omitempty" name:"Description"`

	// Content of public key in a key pair.
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`

	// Content of private key in a key pair. Tencent Cloud do not keep private keys. Please keep it properly.
	PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"`

	// `ID` list of instances associated with a key.
	AssociatedInstanceIds []*string `json:"AssociatedInstanceIds,omitempty" name:"AssociatedInstanceIds"`

	// Creation time, which follows the `ISO8601` standard and uses `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
}

type LocalDiskType

type LocalDiskType struct {

	// Type of a local disk.
	Type *string `json:"Type,omitempty" name:"Type"`

	// Attributes of a local disk.
	PartitionType *string `json:"PartitionType,omitempty" name:"PartitionType"`

	// Minimum size of a local disk.
	MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"`

	// Maximum size of a local disk.
	MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"`

	// Whether a local disk is required during purchase. Valid values:<br><li>REQUIRED: required<br><li>OPTIONAL: optional
	Required *string `json:"Required,omitempty" name:"Required"`
}

type LoginSettings

type LoginSettings struct {

	// Login password of the instance. The password requirements vary among different operating systems: <br><li>For Linux instances, the password must be 8-30 characters long and contain at least two of the following types: [a-z], [A-Z], [0-9] and [( ) \` ~ ! @ # $ % ^ & *  - + = | { } [ ] : ; ' , . ? / ]. <br><li>For Windows instances, the password must be 12-30 characters long and contain at least three of the following categories: [a-z], [A-Z], [0-9] and [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]. <br><br>If this parameter is not specified, a random password will be generated and sent to you via the Message Center.
	// Note: this field may return null, indicating that no valid value is obtained.
	Password *string `json:"Password,omitempty" name:"Password"`

	// List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair. You can call [`DescribeKeyPairs`](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) to obtain `KeyId`. A key and password cannot be specified at the same time. Windows instances do not support keys. Currently, you can only specify one key when purchasing an instance.
	// Note: this field may return null, indicating that no valid value is obtained.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Whether to keep the original settings of an image. You cannot specify this parameter and `Password` or `KeyIds.N` at the same time. You can specify this parameter as `TRUE` only when you create an instance using a custom image, a shared image, or an imported image. Valid values: <br><li>TRUE: keep the login settings of the image <br><li>FALSE: do not keep the login settings of the image <br><br>Default value: FALSE.
	// Note: This field may return null, indicating that no valid value is found.
	KeepImageLogin *string `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"`
}

type ModifyDisasterRecoverGroupAttributeRequest

type ModifyDisasterRecoverGroupAttributeRequest struct {
	*tchttp.BaseRequest

	// Spread placement group ID, which can be obtained by calling the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/api/213/17810?from_cn_redirect=1) API.
	DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitempty" name:"DisasterRecoverGroupId"`

	// Name of a spread placement group. The name must be 1-60 characters long and can contain both Chinese characters and English letters.
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewModifyDisasterRecoverGroupAttributeRequest

func NewModifyDisasterRecoverGroupAttributeRequest() (request *ModifyDisasterRecoverGroupAttributeRequest)

func (*ModifyDisasterRecoverGroupAttributeRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDisasterRecoverGroupAttributeRequest) ToJsonString

type ModifyDisasterRecoverGroupAttributeResponse

type ModifyDisasterRecoverGroupAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyDisasterRecoverGroupAttributeResponse

func NewModifyDisasterRecoverGroupAttributeResponse() (response *ModifyDisasterRecoverGroupAttributeResponse)

func (*ModifyDisasterRecoverGroupAttributeResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDisasterRecoverGroupAttributeResponse) ToJsonString

type ModifyHostsAttributeRequest

type ModifyHostsAttributeRequest struct {
	*tchttp.BaseRequest

	// CDH instance ID(s).
	HostIds []*string `json:"HostIds,omitempty" name:"HostIds"`

	// CDH instance name to be displayed. You can specify any name you like, but its length cannot exceed 60 characters.
	HostName *string `json:"HostName,omitempty" name:"HostName"`

	// Auto renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically <br><br>If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`

	// Project ID. You can create a project by using the [AddProject](https://intl.cloud.tencent.com/doc/api/403/4398?from_cn_redirect=1) API and obtain its ID from the response parameter `projectId` of the [`DescribeProject`](https://intl.cloud.tencent.com/document/product/378/4400?from_cn_redirect=1) API. Subsequently, the project ID can be used to filter results when you query instances by calling the [DescribeHosts](https://intl.cloud.tencent.com/document/api/213/16474?from_cn_redirect=1) API.
	ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
}

func NewModifyHostsAttributeRequest

func NewModifyHostsAttributeRequest() (request *ModifyHostsAttributeRequest)

func (*ModifyHostsAttributeRequest) FromJsonString

func (r *ModifyHostsAttributeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyHostsAttributeRequest) ToJsonString

func (r *ModifyHostsAttributeRequest) ToJsonString() string

type ModifyHostsAttributeResponse

type ModifyHostsAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyHostsAttributeResponse

func NewModifyHostsAttributeResponse() (response *ModifyHostsAttributeResponse)

func (*ModifyHostsAttributeResponse) FromJsonString

func (r *ModifyHostsAttributeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyHostsAttributeResponse) ToJsonString

func (r *ModifyHostsAttributeResponse) ToJsonString() string

type ModifyImageAttributeRequest

type ModifyImageAttributeRequest struct {
	*tchttp.BaseRequest

	// Image ID such as `img-gvbnzy6f`. You can obtain the image IDs in two ways: <br><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response. <br><li>Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image).
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// New image name, which must meet the following requirements: <br> <li>No more than 20 characters. <br> <li>Must be unique.
	ImageName *string `json:"ImageName,omitempty" name:"ImageName"`

	// New image description, which must meet the following requirement: <br> <li> No more than 60 characters.
	ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"`
}

func NewModifyImageAttributeRequest

func NewModifyImageAttributeRequest() (request *ModifyImageAttributeRequest)

func (*ModifyImageAttributeRequest) FromJsonString

func (r *ModifyImageAttributeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyImageAttributeRequest) ToJsonString

func (r *ModifyImageAttributeRequest) ToJsonString() string

type ModifyImageAttributeResponse

type ModifyImageAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyImageAttributeResponse

func NewModifyImageAttributeResponse() (response *ModifyImageAttributeResponse)

func (*ModifyImageAttributeResponse) FromJsonString

func (r *ModifyImageAttributeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyImageAttributeResponse) ToJsonString

func (r *ModifyImageAttributeResponse) ToJsonString() string

type ModifyImageSharePermissionRequest

type ModifyImageSharePermissionRequest struct {
	*tchttp.BaseRequest

	// Image ID such as `img-gvbnzy6f`. You can obtain the image IDs in two ways: <br><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response. <br><li>Look for the information in the [Image Console](https://console.cloud.tencent.com/cvm/image). <br>You can only specify an image in the `NORMAL` state. For more information on image states, see [here](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#image_state).
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// List of account IDs with which an image is shared. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1). The account ID is different from the QQ number. You can find the account ID in [Account Information](https://console.cloud.tencent.com/developer).
	AccountIds []*string `json:"AccountIds,omitempty" name:"AccountIds"`

	// Operations. Valid values: `SHARE`, sharing an image; `CANCEL`, cancelling an image sharing.
	Permission *string `json:"Permission,omitempty" name:"Permission"`
}

func NewModifyImageSharePermissionRequest

func NewModifyImageSharePermissionRequest() (request *ModifyImageSharePermissionRequest)

func (*ModifyImageSharePermissionRequest) FromJsonString

func (r *ModifyImageSharePermissionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyImageSharePermissionRequest) ToJsonString

func (r *ModifyImageSharePermissionRequest) ToJsonString() string

type ModifyImageSharePermissionResponse

type ModifyImageSharePermissionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyImageSharePermissionResponse

func NewModifyImageSharePermissionResponse() (response *ModifyImageSharePermissionResponse)

func (*ModifyImageSharePermissionResponse) FromJsonString

func (r *ModifyImageSharePermissionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyImageSharePermissionResponse) ToJsonString

func (r *ModifyImageSharePermissionResponse) ToJsonString() string

type ModifyInstancesAttributeRequest

type ModifyInstancesAttributeRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Instance name. You can specify any name you like, but its length cannot exceed 60 characters.
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// ID list of security groups of the instance. The instance will be associated with the specified security groups and will be disassociated from the original security groups.
	SecurityGroups []*string `json:"SecurityGroups,omitempty" name:"SecurityGroups"`
}

func NewModifyInstancesAttributeRequest

func NewModifyInstancesAttributeRequest() (request *ModifyInstancesAttributeRequest)

func (*ModifyInstancesAttributeRequest) FromJsonString

func (r *ModifyInstancesAttributeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesAttributeRequest) ToJsonString

func (r *ModifyInstancesAttributeRequest) ToJsonString() string

type ModifyInstancesAttributeResponse

type ModifyInstancesAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesAttributeResponse

func NewModifyInstancesAttributeResponse() (response *ModifyInstancesAttributeResponse)

func (*ModifyInstancesAttributeResponse) FromJsonString

func (r *ModifyInstancesAttributeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesAttributeResponse) ToJsonString

func (r *ModifyInstancesAttributeResponse) ToJsonString() string

type ModifyInstancesProjectRequest

type ModifyInstancesProjectRequest struct {
	*tchttp.BaseRequest

	// Instance IDs. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. You can operate up to 100 instances in each request.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Project ID. You can create a project by using the [AddProject](https://intl.cloud.tencent.com/doc/api/403/4398?from_cn_redirect=1) API and obtain its ID from the response parameter `projectId` of the [`DescribeProject`](https://intl.cloud.tencent.com/document/product/378/4400?from_cn_redirect=1) API. Subsequently, the project ID can be used to filter results when you query instances by calling the [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API.
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
}

func NewModifyInstancesProjectRequest

func NewModifyInstancesProjectRequest() (request *ModifyInstancesProjectRequest)

func (*ModifyInstancesProjectRequest) FromJsonString

func (r *ModifyInstancesProjectRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesProjectRequest) ToJsonString

func (r *ModifyInstancesProjectRequest) ToJsonString() string

type ModifyInstancesProjectResponse

type ModifyInstancesProjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesProjectResponse

func NewModifyInstancesProjectResponse() (response *ModifyInstancesProjectResponse)

func (*ModifyInstancesProjectResponse) FromJsonString

func (r *ModifyInstancesProjectResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesProjectResponse) ToJsonString

func (r *ModifyInstancesProjectResponse) ToJsonString() string

type ModifyInstancesVpcAttributeRequest

type ModifyInstancesVpcAttributeRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// VPC configurations. You can use this parameter to specify the VPC ID, subnet ID, VPC IP, etc. If the specified VPC ID and subnet ID (the subnet must be in the same availability zone as the instance) are different from the VPC where the specified instance resides, the instance will be migrated to a subnet of the specified VPC. You can use `PrivateIpAddresses` to specify the VPC subnet IP. If you want to specify the subnet IP, you will need to specify a subnet IP for each of the specified instances, and each `InstanceIds` will match a `PrivateIpAddresses`. If `PrivateIpAddresses` is not specified, the VPC subnet IP will be assigned randomly.
	VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitempty" name:"VirtualPrivateCloud"`

	// Whether to force shut down a running instances. Default value: TRUE.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`

	// Whether to keep the host name. Default value: FALSE.
	ReserveHostName *bool `json:"ReserveHostName,omitempty" name:"ReserveHostName"`
}

func NewModifyInstancesVpcAttributeRequest

func NewModifyInstancesVpcAttributeRequest() (request *ModifyInstancesVpcAttributeRequest)

func (*ModifyInstancesVpcAttributeRequest) FromJsonString

func (r *ModifyInstancesVpcAttributeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesVpcAttributeRequest) ToJsonString

func (r *ModifyInstancesVpcAttributeRequest) ToJsonString() string

type ModifyInstancesVpcAttributeResponse

type ModifyInstancesVpcAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesVpcAttributeResponse

func NewModifyInstancesVpcAttributeResponse() (response *ModifyInstancesVpcAttributeResponse)

func (*ModifyInstancesVpcAttributeResponse) FromJsonString

func (r *ModifyInstancesVpcAttributeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstancesVpcAttributeResponse) ToJsonString

func (r *ModifyInstancesVpcAttributeResponse) ToJsonString() string

type ModifyKeyPairAttributeRequest

type ModifyKeyPairAttributeRequest struct {
	*tchttp.BaseRequest

	// Key pair ID in the format of `skey-xxxxxxxx`. <br><br>You can obtain the available key pair IDs in two ways: <br><li>Log in to the [console](https://console.cloud.tencent.com/cvm/sshkey) to query the key pair IDs. <br><li>Call [DescribeKeyPairs](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) and look for `KeyId` in the response.
	KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

	// New key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// New key pair description. You can specify any name you like, but its length cannot exceed 60 characters.
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewModifyKeyPairAttributeRequest

func NewModifyKeyPairAttributeRequest() (request *ModifyKeyPairAttributeRequest)

func (*ModifyKeyPairAttributeRequest) FromJsonString

func (r *ModifyKeyPairAttributeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyKeyPairAttributeRequest) ToJsonString

func (r *ModifyKeyPairAttributeRequest) ToJsonString() string

type ModifyKeyPairAttributeResponse

type ModifyKeyPairAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyKeyPairAttributeResponse

func NewModifyKeyPairAttributeResponse() (response *ModifyKeyPairAttributeResponse)

func (*ModifyKeyPairAttributeResponse) FromJsonString

func (r *ModifyKeyPairAttributeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyKeyPairAttributeResponse) ToJsonString

func (r *ModifyKeyPairAttributeResponse) ToJsonString() string

type OperationCountLimit

type OperationCountLimit struct {

	// Instance operation. Valid values: <br><li>`INSTANCE_DEGRADE`: downgrade an instance<br><li>`INTERNET_CHARGE_TYPE_CHANGE`: modify the billing plan of the network connection
	Operation *string `json:"Operation,omitempty" name:"Operation"`

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Number of operations already performed. If it returns `-1`, it means there is no limit on the times of the operation.
	CurrentCount *int64 `json:"CurrentCount,omitempty" name:"CurrentCount"`

	// Maximum number of times you can perform an operation. If it returns `-1`, it means there is no limit on the times of the operation. If it returns `0`, it means that configuration modification is not supported.
	LimitCount *int64 `json:"LimitCount,omitempty" name:"LimitCount"`
}

type OsVersion

type OsVersion struct {

	// Operating system type
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// Supported operating system versions
	OsVersions []*string `json:"OsVersions,omitempty" name:"OsVersions"`

	// Supported operating system architecture
	Architecture []*string `json:"Architecture,omitempty" name:"Architecture"`
}

type Placement

type Placement struct {

	// ID of the availability zone where the instance resides. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/35071) API and obtain the ID in the returned `Zone` field.
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// ID of the project to which the instance belongs. To obtain the project IDs, you can call [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1) and look for the `projectId` fields in the response. If this parameter is not specified, the default project will be used.
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
	HostIds []*string `json:"HostIds,omitempty" name:"HostIds"`

	// Master host IP used to create the CVM
	HostIps []*string `json:"HostIps,omitempty" name:"HostIps"`

	// The ID of the CDH to which the instance belongs, only used as an output parameter.
	HostId *string `json:"HostId,omitempty" name:"HostId"`
}

type Price

type Price struct {

	// Instance price.
	InstancePrice *ItemPrice `json:"InstancePrice,omitempty" name:"InstancePrice"`

	// Network price.
	BandwidthPrice *ItemPrice `json:"BandwidthPrice,omitempty" name:"BandwidthPrice"`
}

type PurchaseReservedInstancesOfferingRequest

type PurchaseReservedInstancesOfferingRequest struct {
	*tchttp.BaseRequest

	// The number of the Reserved Instance you are purchasing.
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// The ID of the Reserved Instance.
	ReservedInstancesOfferingId *string `json:"ReservedInstancesOfferingId,omitempty" name:"ReservedInstancesOfferingId"`

	// Dry run
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.<br>For more information, see Ensuring Idempotency.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`

	// Reserved instance name.<br><li>The RI name defaults to “unnamed” if this parameter is left empty.</li><li>You can enter any name within 60 characters (including the pattern string).</li>
	ReservedInstanceName *string `json:"ReservedInstanceName,omitempty" name:"ReservedInstanceName"`
}

func NewPurchaseReservedInstancesOfferingRequest

func NewPurchaseReservedInstancesOfferingRequest() (request *PurchaseReservedInstancesOfferingRequest)

func (*PurchaseReservedInstancesOfferingRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PurchaseReservedInstancesOfferingRequest) ToJsonString

type PurchaseReservedInstancesOfferingResponse

type PurchaseReservedInstancesOfferingResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The ID of the Reserved Instance purchased.
		ReservedInstanceId *string `json:"ReservedInstanceId,omitempty" name:"ReservedInstanceId"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPurchaseReservedInstancesOfferingResponse

func NewPurchaseReservedInstancesOfferingResponse() (response *PurchaseReservedInstancesOfferingResponse)

func (*PurchaseReservedInstancesOfferingResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PurchaseReservedInstancesOfferingResponse) ToJsonString

type RebootInstancesRequest

type RebootInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance IDs. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. You can operate up to 100 instances in each request.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Whether to forcibly restart an instance after a normal restart fails. Valid values: <br><li>`TRUE`: yes;<br><li>`FALSE`: no<br><br>Default value: `FALSE`. This parameter has been disused. We recommend using `StopType` instead. Note that `ForceReboot` and `StopType` parameters cannot be specified at the same time.
	ForceReboot *bool `json:"ForceReboot,omitempty" name:"ForceReboot"`

	// Shutdown type. Valid values: <br><li>SOFT: soft shutdown<br><li>HARD: hard shutdown<br><li>SOFT_FIRST: perform a soft shutdown first, and perform a hard shutdown if the soft shutdown fails<br><br>Default value: SOFT.
	StopType *string `json:"StopType,omitempty" name:"StopType"`
}

func NewRebootInstancesRequest

func NewRebootInstancesRequest() (request *RebootInstancesRequest)

func (*RebootInstancesRequest) FromJsonString

func (r *RebootInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RebootInstancesRequest) ToJsonString

func (r *RebootInstancesRequest) ToJsonString() string

type RebootInstancesResponse

type RebootInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRebootInstancesResponse

func NewRebootInstancesResponse() (response *RebootInstancesResponse)

func (*RebootInstancesResponse) FromJsonString

func (r *RebootInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RebootInstancesResponse) ToJsonString

func (r *RebootInstancesResponse) ToJsonString() string

type RegionInfo

type RegionInfo struct {

	// Region name, such as `ap-guangzhou`
	Region *string `json:"Region,omitempty" name:"Region"`

	// Region description, such as South China (Guangzhou)
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// Whether the region is available
	RegionState *string `json:"RegionState,omitempty" name:"RegionState"`
}

type ReservedInstanceConfigInfoItem

type ReservedInstanceConfigInfoItem struct {

	// Abbreviation name of the instance type.
	Type *string `json:"Type,omitempty" name:"Type"`

	// Full name of the instance type.
	TypeName *string `json:"TypeName,omitempty" name:"TypeName"`

	// Priority.
	Order *int64 `json:"Order,omitempty" name:"Order"`

	// List of instance families.
	InstanceFamilies []*ReservedInstanceFamilyItem `json:"InstanceFamilies,omitempty" name:"InstanceFamilies"`
}

type ReservedInstanceFamilyItem

type ReservedInstanceFamilyItem struct {

	// Instance family.
	InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`

	// Priority.
	Order *int64 `json:"Order,omitempty" name:"Order"`

	// List of instance types.
	InstanceTypes []*ReservedInstanceTypeItem `json:"InstanceTypes,omitempty" name:"InstanceTypes"`
}

type ReservedInstancePrice

type ReservedInstancePrice struct {

	// Original upfront payment, in USD.
	OriginalFixedPrice *float64 `json:"OriginalFixedPrice,omitempty" name:"OriginalFixedPrice"`

	// Discounted upfront payment, in USD.
	DiscountFixedPrice *float64 `json:"DiscountFixedPrice,omitempty" name:"DiscountFixedPrice"`

	// Original subsequent unit price, in USD/hr.
	OriginalUsagePrice *float64 `json:"OriginalUsagePrice,omitempty" name:"OriginalUsagePrice"`

	// Discounted subsequent unit price, in USD/hr.
	DiscountUsagePrice *float64 `json:"DiscountUsagePrice,omitempty" name:"DiscountUsagePrice"`
}

type ReservedInstancePriceItem

type ReservedInstancePriceItem struct {

	// Payment method. Valid values: All Upfront, Partial Upfront, and No Upfront.
	OfferingType *string `json:"OfferingType,omitempty" name:"OfferingType"`

	// Upfront payment, in USD.
	FixedPrice *float64 `json:"FixedPrice,omitempty" name:"FixedPrice"`

	// Subsequent unit price, in USD/hr.
	UsagePrice *float64 `json:"UsagePrice,omitempty" name:"UsagePrice"`

	// The ID of the reserved instance offering.
	ReservedInstancesOfferingId *string `json:"ReservedInstancesOfferingId,omitempty" name:"ReservedInstancesOfferingId"`

	// The availability zone in which the reserved instance can be purchased.
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// The **validity** of the reserved instance in seconds, which is the purchased usage period. For example, `31536000`.
	// Unit: second
	Duration *uint64 `json:"Duration,omitempty" name:"Duration"`

	// The operating system of the reserved instance, such as `linux`.
	// Valid value: linux.
	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`
}

type ReservedInstanceTypeItem

type ReservedInstanceTypeItem struct {

	// Instance type.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Number of CPU cores.
	Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`

	// Memory size.
	Memory *uint64 `json:"Memory,omitempty" name:"Memory"`

	// Number of GPUs.
	Gpu *uint64 `json:"Gpu,omitempty" name:"Gpu"`

	// Number of FPGAs.
	Fpga *uint64 `json:"Fpga,omitempty" name:"Fpga"`

	// Number of local storage blocks.
	StorageBlock *uint64 `json:"StorageBlock,omitempty" name:"StorageBlock"`

	// Number of NICs.
	NetworkCard *uint64 `json:"NetworkCard,omitempty" name:"NetworkCard"`

	// Maximum bandwidth.
	MaxBandwidth *float64 `json:"MaxBandwidth,omitempty" name:"MaxBandwidth"`

	// CPU frequency.
	Frequency *string `json:"Frequency,omitempty" name:"Frequency"`

	// CPU type.
	CpuModelName *string `json:"CpuModelName,omitempty" name:"CpuModelName"`

	// Packet forwarding rate.
	Pps *uint64 `json:"Pps,omitempty" name:"Pps"`

	// Other information.
	Externals *Externals `json:"Externals,omitempty" name:"Externals"`

	// Remarks.
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// Price information about the reserved instance.
	Prices []*ReservedInstancePriceItem `json:"Prices,omitempty" name:"Prices"`
}

type ReservedInstances

type ReservedInstances struct {

	// The ID of the purchased reserved instance, taking the form 650c138f-ae7e-4750-952a-96841d6e9fc1.
	ReservedInstancesId *string `json:"ReservedInstancesId,omitempty" name:"ReservedInstancesId"`

	// Reserved instance specification, such as `S3.MEDIUM4`.
	// Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1">Reserved Instance Specifications</a>
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Availability zones in which the reserved instance can be purchased. For example, "ap-guangzhou-1".
	// Returned values: <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">list of availability zones</a>
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// Start time of the reserved instance billing, taking the form of 2019-10-23 00:00:00.
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// End time of the reserved instance, taking the form of 2019-10-23 00:00:00
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// The **validity** of the reserved instance in seconds, which is the purchased usage period. For example, 31536000.
	// Measurement unit: second.
	Duration *int64 `json:"Duration,omitempty" name:"Duration"`

	// The number of reserved instances that have been purchased. For example, 10.
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// The operating system of the reserved instance. For example, "linux".
	// Returned value: linux.
	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`

	// The status of the reserved instance. For example, "active".
	// Returned value: "active" (created) | "pending" (waiting to be created) | "retired" (expired).
	State *string `json:"State,omitempty" name:"State"`

	// The currency in which the reserved instance is billed. The ISO 4217 standard currency codes are used. For example, USD.
	// Returned value: USD.
	CurrencyCode *string `json:"CurrencyCode,omitempty" name:"CurrencyCode"`

	// The payment method of the reserved instance. For example, "All Upfront".
	// Returned value: All Upfront.
	OfferingType *string `json:"OfferingType,omitempty" name:"OfferingType"`

	// Reserved instance type, such as `S3`.
	// Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1">Reserved Instance Types</a>
	InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`
}

type ReservedInstancesOffering

type ReservedInstancesOffering struct {

	// The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
	// Valid value: <a href="https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1">Availability Zones</a>
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
	// Value: USD.
	CurrencyCode *string `json:"CurrencyCode,omitempty" name:"CurrencyCode"`

	// The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
	// Unit: second
	Duration *int64 `json:"Duration,omitempty" name:"Duration"`

	// The purchase price of the Reserved Instance, such as 4000.0.
	// Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
	FixedPrice *float64 `json:"FixedPrice,omitempty" name:"FixedPrice"`

	// The instance model of the Reserved Instance, such as S3.MEDIUM4.
	// Valid values: please see <a href="https://intl.cloud.tencent.com/document/product/213/11518">Reserved Instance Types</a>
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// The payment term of the Reserved Instance, such as **All Upfront**.
	// Valid value: All Upfront.
	OfferingType *string `json:"OfferingType,omitempty" name:"OfferingType"`

	// The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
	ReservedInstancesOfferingId *string `json:"ReservedInstancesOfferingId,omitempty" name:"ReservedInstancesOfferingId"`

	// The operating system of the Reserved Instance, such as **linux**.
	// Valid value: linux.
	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`

	// The hourly usage price of the Reserved Instance, such as 0.0.
	// Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
	// Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
	UsagePrice *float64 `json:"UsagePrice,omitempty" name:"UsagePrice"`
}

type ResetInstanceRequest

type ResetInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Specified effective [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images:<br/><li>Public images</li><li>Custom images</li><li>Shared images</li><li>Marketplace images </li><br/>You can obtain the available image IDs in the following ways:<br/><li>for IDs of `public images`, `custom images`, and `shared images`, log in to the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE); for IDs of `marketplace images`, go to [Cloud Marketplace](https://market.cloud.tencent.com/list).</li><li>Call the API [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>
	// <br>Default value: current image.
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// Configurations of the system disk. For an instance whose system disk is a cloud disk, this parameter can be used to expand the system disk by specifying a new capacity after reinstallation. The system disk capacity can only be expanded but not shrunk. Reinstalling the system can only resize rather than changing the type of the system disk.
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
	EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`

	// Host name of the CVM, editable during the system reinstallation. <br><li>Periods (.) or hyphens (-) cannot be the start or end of a host name or appear consecutively in a host name.<br><li>For Windows instances, the host name must consist of 2-15 characters , including uppercase and lowercase letters, numbers, or hyphens (-). It cannot contain periods (.) or contain only numbers.<br><li>For other instances, such as Linux instances, the host name must consist of 2-60 characters, including multiple periods (.), and allows uppercase and lowercase letters, numbers, or hyphens (-) between any two periods (.).
	HostName *string `json:"HostName,omitempty" name:"HostName"`
}

func NewResetInstanceRequest

func NewResetInstanceRequest() (request *ResetInstanceRequest)

func (*ResetInstanceRequest) FromJsonString

func (r *ResetInstanceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstanceRequest) ToJsonString

func (r *ResetInstanceRequest) ToJsonString() string

type ResetInstanceResponse

type ResetInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetInstanceResponse

func NewResetInstanceResponse() (response *ResetInstanceResponse)

func (*ResetInstanceResponse) FromJsonString

func (r *ResetInstanceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstanceResponse) ToJsonString

func (r *ResetInstanceResponse) ToJsonString() string

type ResetInstancesInternetMaxBandwidthRequest

type ResetInstancesInternetMaxBandwidthRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100. When changing the bandwidth of instances with `BANDWIDTH_PREPAID` or `BANDWIDTH_POSTPAID_BY_HOUR` as the network billing method, you can only specify one instance at a time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Configuration of public network egress bandwidth. The maximum bandwidth varies among different models. For more information, see the documentation on bandwidth limits. Currently only the `InternetMaxBandwidthOut` parameter is supported.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// Date from which the new bandwidth takes effect. Format: `YYYY-MM-DD`, such as `2016-10-30`. The starting date cannot be earlier than the current date. If the starting date is the current date, the new bandwidth takes effect immediately. This parameter is only valid for prepaid bandwidth. If you specify the parameter for bandwidth with other network billing methods, an error code will be returned.
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// Date until which the new bandwidth is effective. Format: `YYYY-MM-DD`, such as `2016-10-30`. The validity period of the new bandwidth covers the end date. The end date cannot be later than the expiration date of a prepaid instance. You can query the expiration time of an instance by calling [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728) and looking for `ExpiredTime` in the response. This parameter is only valid for prepaid bandwidth. If you specify the parameter for bandwidth with other network billing methods, an error code will be returned.
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewResetInstancesInternetMaxBandwidthRequest

func NewResetInstancesInternetMaxBandwidthRequest() (request *ResetInstancesInternetMaxBandwidthRequest)

func (*ResetInstancesInternetMaxBandwidthRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesInternetMaxBandwidthRequest) ToJsonString

type ResetInstancesInternetMaxBandwidthResponse

type ResetInstancesInternetMaxBandwidthResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetInstancesInternetMaxBandwidthResponse

func NewResetInstancesInternetMaxBandwidthResponse() (response *ResetInstancesInternetMaxBandwidthResponse)

func (*ResetInstancesInternetMaxBandwidthResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesInternetMaxBandwidthResponse) ToJsonString

type ResetInstancesPasswordRequest

type ResetInstancesPasswordRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Login password of the instance. The rule of password complexity varies with operating systems:
	// For a Linux instance, the password must be 8 to 30 characters in length; password with more than 12 characters is recommended. It cannot begin with "/", and must contain at least three types of the following:<br><li>Lowercase letters: [a-z]<br><li>Uppercase letters: [A-Z]<br><li>Numbers: 0-9<br><li>Special characters: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
	// For a Windows CVM, the password must be 12 to 30 characters in length. It cannot begin with "/" or contain your username. It must contain at least three types of the following:<br><li>Lowercase letters: [a-z]<br><li>Uppercase letters: [A-Z]<br><li>Numbers: 0-9<br><li>Special characters: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<li>If the specified instances include both `Linux` and `Windows` instances, you need to follow the password requirements for `Windows` instances.
	Password *string `json:"Password,omitempty" name:"Password"`

	// Username of the instance operating system for which the password needs to be reset. This parameter is limited to 64 characters.
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// Whether to force shut down a running instances. It is recommended to manually shut down a running instance before resetting the user password. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails. <br><li>FALSE: do not force shut down an instance after a normal shutdown fails. <br><br>Default value: FALSE. <br><br>A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be shut down normally.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewResetInstancesPasswordRequest

func NewResetInstancesPasswordRequest() (request *ResetInstancesPasswordRequest)

func (*ResetInstancesPasswordRequest) FromJsonString

func (r *ResetInstancesPasswordRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesPasswordRequest) ToJsonString

func (r *ResetInstancesPasswordRequest) ToJsonString() string

type ResetInstancesPasswordResponse

type ResetInstancesPasswordResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetInstancesPasswordResponse

func NewResetInstancesPasswordResponse() (response *ResetInstancesPasswordResponse)

func (*ResetInstancesPasswordResponse) FromJsonString

func (r *ResetInstancesPasswordResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesPasswordResponse) ToJsonString

func (r *ResetInstancesPasswordResponse) ToJsonString() string

type ResetInstancesTypeRequest

type ResetInstancesTypeRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call the [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) API and find the value `InstanceId` in the response. The maximum number of instances in each request is 1.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Instance model. Different resource specifications are specified for different models. For specific values, call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to get the latest specification list or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// Forced shutdown of a running instances. We recommend you firstly try to shut down a running instance manually. Valid values: <br><li>TRUE: forced shutdown of an instance after a normal shutdown fails.<br><li>FALSE: no forced shutdown of an instance after a normal shutdown fails.<br><br>Default value: FALSE.<br><br>A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force a CVM to shut off if the normal shutdown fails.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewResetInstancesTypeRequest

func NewResetInstancesTypeRequest() (request *ResetInstancesTypeRequest)

func (*ResetInstancesTypeRequest) FromJsonString

func (r *ResetInstancesTypeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesTypeRequest) ToJsonString

func (r *ResetInstancesTypeRequest) ToJsonString() string

type ResetInstancesTypeResponse

type ResetInstancesTypeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetInstancesTypeResponse

func NewResetInstancesTypeResponse() (response *ResetInstancesTypeResponse)

func (*ResetInstancesTypeResponse) FromJsonString

func (r *ResetInstancesTypeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetInstancesTypeResponse) ToJsonString

func (r *ResetInstancesTypeResponse) ToJsonString() string

type ResizeInstanceDisksRequest

type ResizeInstanceDisksRequest struct {
	*tchttp.BaseRequest

	// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Configuration of data disks to be expanded. Currently you can only use the API to expand non-elastic data disks whose [disk type](https://intl.cloud.tencent.com/document/api/213/9452?from_cn_redirect=1#block_device) is `CLOUD_BASIC`, `CLOUD_PREMIUM`, or `CLOUD_SSD`. You can use [`DescribeDisks`](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1) to check whether a disk is elastic. If the `Portable` field in the response is `false`, it means that the disk is not elastic. Data disk capacity unit: GB; minimum increment: 10 GB. For more information on selecting the data disk type, see the [product overview on cloud disks](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). Available data disk types are subject to the instance type (`InstanceType`). In addition, the maximum capacity allowed for expansion varies by data disk type.
	DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`

	// Whether to force shut down a running instances. It is recommended to manually shut down a running instance before resetting the user password. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails. <br><li>FALSE: do not force shut down an instance after a normal shutdown fails. <br><br>Default value: FALSE. <br><br>A forced shutdown is similar to switching off the power of a physical computer. It may cause data loss or file system corruption. Be sure to only force shut down a CVM when it cannot be shut down normally.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`
}

func NewResizeInstanceDisksRequest

func NewResizeInstanceDisksRequest() (request *ResizeInstanceDisksRequest)

func (*ResizeInstanceDisksRequest) FromJsonString

func (r *ResizeInstanceDisksRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResizeInstanceDisksRequest) ToJsonString

func (r *ResizeInstanceDisksRequest) ToJsonString() string

type ResizeInstanceDisksResponse

type ResizeInstanceDisksResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResizeInstanceDisksResponse

func NewResizeInstanceDisksResponse() (response *ResizeInstanceDisksResponse)

func (*ResizeInstanceDisksResponse) FromJsonString

func (r *ResizeInstanceDisksResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResizeInstanceDisksResponse) ToJsonString

func (r *ResizeInstanceDisksResponse) ToJsonString() string

type RunAutomationServiceEnabled

type RunAutomationServiceEnabled struct {

	// Whether to enable the TAT service. Valid values: <br><li>`TRUE`: yes;<br><li>`FALSE`: no<br><br>Default: `FALSE`.
	Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
}

type RunInstancesRequest

type RunInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1). <br><li>POSTPAID_BY_HOUR: pay-as-you-go billing by hour <br><li>CDHPAID: Dedicated CVM (associated with a dedicated host. Resource usage of the dedicated host is free of charge.) <br><li>SPOTPAID: [spot instance] (https://intl.cloud.tencent.com/document/product/213/17817)<br> Default value: POSTPAID_BY_HOUR.
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`

	// Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone, project, and CDH. You can specify a CDH for a CVM by creating the CVM on the CDH.
	Placement *Placement `json:"Placement,omitempty" name:"Placement"`

	// The instance model. Different resource specifications are specified for different instance models.
	// <br><li>To view specific values for `POSTPAID_BY_HOUR` instances, you can call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If this parameter is not specified, `S1.SMALL1` will be used by default.<br><li>For `CDHPAID` instances, the value of this parameter is in the format of `CDH_XCXG` based on the number of CPU cores and memory capacity. For example, if you want to create a CDH instance with a single-core CPU and 1 GB memory, specify this parameter as `CDH_1C1G`.
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images:<br/><li>Public images</li><li>Custom images</li><li>Shared images</li><li>Marketplace images</li><br/>You can retrieve available image IDs in the following ways:<br/><li>For the IDs of `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the information. For the IDs of `marketplace images`, go to [Cloud Marketplace](https://market.cloud.tencent.com/list). </li><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1), pass in `InstanceType` to retrieve the list of images supported by the current model, and then find the `ImageId` in the response.</li>
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`

	// System disk configuration of the instance. If this parameter is not specified, the default value will be used.
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default. When purchasing, you can specify 21 data disks, which can contain at most 1 LOCAL_BASIC data disk or LOCAL_SSD data disk, and at most 20 CLOUD_BASIC data disks, CLOUD_PREMIUM data disks, or CLOUD_SSD data disks.
	DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`

	// Configuration information of VPC. This parameter is used to specify VPC ID and subnet ID, etc. If this parameter is not specified, the classic network is used by default. If a VPC IP is specified in this parameter, it indicates the primary ENI IP of each instance. The value of parameter InstanceCount must be same as the number of VPC IPs, which cannot be greater than 20.
	VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitempty" name:"VirtualPrivateCloud"`

	// Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// The number of instances to be purchased. Value range: [1, 100]; default value: 1. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on the quota, see [CVM instance purchase limit](https://intl.cloud.tencent.com/document/product/213/2664).
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// Instance name to be displayed.<br><li>If this parameter is not specified, "Unnamed" will be displayed by default.</li><li>If you purchase multiple instances at the same time and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string, `server_{R:3}`. If you only purchase 1 instance, the instance will be named `server_3`; if you purchase 2, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.</li><li>If you purchase multiple instances at the same time and do not specify a pattern string, the instance names will be suffixed by `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase 2 instances and name them as `server_`, the instance names will be displayed as `server_1` and `server_2`.</li><li>The instance name contains up to 60 characters (including pattern strings).
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will be associated with default security groups.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`

	// Specifies whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default. However, for custom images and images from the marketplace, Anti-DDoS and Cloud Monitor are not enabled by default. The original services in the image will be retained.
	EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`

	// A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. <br>For more information, see 'How to ensure idempotency'.
	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`

	// Instance hostname. <br><li>Dots (.) and dashes (-) can not be used as the first or last character of HostName nor used consecutively. <br<li>Windows instances: 2 to 15 characters, including English letters (case-insensitive), numbers and dashes (-). Dots and numeric-only names are not allowed. <br><li>Other instances (Linux, etc.): 2 to 60 characters, including English letters (case-insensitive), numbers, dashes (-) and dots. Note that consecutive dots are not allowed.<br><li>Batch naming: use `{R:x}` for batch naming if multiple instances are purchased. `x` is the serial number of the instance. It’s generated by [x, x+n-1], where `n` refers to the number of instances purchased. For example, if `server{R:3}` is input, if you purchase one instance, the hostname is `server3`. If you purchase two instances, the hostnames are `server3` and `server4` respectively. You can specify multiple pattern strings `{R:x}`. </li><br><li>Purchasing multiple instances: If no pattern string is specified, you shall add suffixes `1, 2...n` to the instance hostname. `n` represents the number of purchased instances. For example, if the instance hostname is `server`,  when two instances are purchased, the hostnames of instances purchased are respectively `server1` and `server2`.
	HostName *string `json:"HostName,omitempty" name:"HostName"`

	// Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.
	ActionTimer *ActionTimer `json:"ActionTimer,omitempty" name:"ActionTimer"`

	// Placement group ID. You can only specify one.
	DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitempty" name:"DisasterRecoverGroupIds"`

	// Binds the tag with the specified resources (CVM and CLB) as well
	TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`

	// The market options of the instance.
	InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitempty" name:"InstanceMarketOptions"`

	// User data provided to the instance, which needs to be encoded in base64 format with the maximum size of 16KB. For more information on how to get the value of this parameter, see the commands you need to execute on startup for [Windows](https://intl.cloud.tencent.com/document/product/213/17526) or [Linux](https://intl.cloud.tencent.com/document/product/213/17525).
	UserData *string `json:"UserData,omitempty" name:"UserData"`

	// Whether the request is a dry run only.
	// true: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available.
	// If the dry run fails, the corresponding error code will be returned.
	// If the dry run succeeds, the RequestId will be returned.
	// false (default value): send a normal request and create instance(s) if all the requirements are met.
	DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`

	// CAM role name, which can be obtained from the `roleName` field in the response of the [`DescribeRoleList`](https://intl.cloud.tencent.com/document/product/598/13887?from_cn_redirect=1) API.
	CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"`

	// HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.
	HpcClusterId *string `json:"HpcClusterId,omitempty" name:"HpcClusterId"`
}

func NewRunInstancesRequest

func NewRunInstancesRequest() (request *RunInstancesRequest)

func (*RunInstancesRequest) FromJsonString

func (r *RunInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RunInstancesRequest) ToJsonString

func (r *RunInstancesRequest) ToJsonString() string

type RunInstancesResponse

type RunInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// If you use this API to create instance(s), this parameter will be returned, representing one or more instance `ID`s. Retuning the instance `ID` list does not necessarily mean that the instance(s) were created successfully. To check whether the instance(s) were created successfully, you can call [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and check the states of the instances in `InstancesSet` in the response. If the state of an instance changes from "pending" to "running", it means that the instance has been created successfully.
		InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRunInstancesResponse

func NewRunInstancesResponse() (response *RunInstancesResponse)

func (*RunInstancesResponse) FromJsonString

func (r *RunInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RunInstancesResponse) ToJsonString

func (r *RunInstancesResponse) ToJsonString() string

type RunMonitorServiceEnabled

type RunMonitorServiceEnabled struct {

	// Whether to enable [Cloud Monitor](https://intl.cloud.tencent.com/document/product/248?from_cn_redirect=1). Valid values: <br><li>TRUE: enable Cloud Monitor <br><li>FALSE: do not enable Cloud Monitor <br><br>Default value: TRUE.
	Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
}

type RunSecurityServiceEnabled

type RunSecurityServiceEnabled struct {

	// Whether to enable [Cloud Security](https://intl.cloud.tencent.com/document/product/296?from_cn_redirect=1). Valid values: <br><li>TRUE: enable Cloud Security <br><li>FALSE: do not enable Cloud Security <br><br>Default value: TRUE.
	Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
}

type SharePermission

type SharePermission struct {

	// Time when an image was shared.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// ID of the account with which the image is shared.
	AccountId *string `json:"AccountId,omitempty" name:"AccountId"`
}

type Snapshot

type Snapshot struct {

	// Snapshot ID.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// Type of the cloud disk used to create the snapshot. Valid values:
	// SYSTEM_DISK: system disk
	// DATA_DISK: data disk
	DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"`

	// Size of the cloud disk used to create the snapshot; unit: GB.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`
}

type SpotMarketOptions

type SpotMarketOptions struct {

	// Bidding price
	MaxPrice *string `json:"MaxPrice,omitempty" name:"MaxPrice"`

	// Bidding request type. Currently only "one-time" is supported.
	SpotInstanceType *string `json:"SpotInstanceType,omitempty" name:"SpotInstanceType"`
}

type StartInstancesRequest

type StartInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewStartInstancesRequest

func NewStartInstancesRequest() (request *StartInstancesRequest)

func (*StartInstancesRequest) FromJsonString

func (r *StartInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*StartInstancesRequest) ToJsonString

func (r *StartInstancesRequest) ToJsonString() string

type StartInstancesResponse

type StartInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewStartInstancesResponse

func NewStartInstancesResponse() (response *StartInstancesResponse)

func (*StartInstancesResponse) FromJsonString

func (r *StartInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*StartInstancesResponse) ToJsonString

func (r *StartInstancesResponse) ToJsonString() string

type StopInstancesRequest

type StopInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Whether to force shut down an instance after a normal shutdown fails. Valid values: <br><li>TRUE: force shut down an instance after a normal shutdown fails <br><li>FALSE: do not force shut down an instance after a normal shutdown fails <br><br>Default value: FALSE.
	ForceStop *bool `json:"ForceStop,omitempty" name:"ForceStop"`

	// Instance shutdown mode. Valid values: <br><li>SOFT_FIRST: perform a soft shutdown first, and force shut down the instance if the soft shutdown fails <br><li>HARD: force shut down the instance directly <br><li>SOFT: soft shutdown only <br>Default value: SOFT.
	StopType *string `json:"StopType,omitempty" name:"StopType"`

	// Billing method of a pay-as-you-go instance after shutdown.
	// Valid values: <br><li>KEEP_CHARGING: billing continues after shutdown <br><li>STOP_CHARGING: billing stops after shutdown <br>Default value: KEEP_CHARGING.
	// This parameter is only valid for some pay-as-you-go instances using cloud disks. For more information, see [No charges when shut down for pay-as-you-go instances](https://intl.cloud.tencent.com/document/product/213/19918).
	StoppedMode *string `json:"StoppedMode,omitempty" name:"StoppedMode"`
}

func NewStopInstancesRequest

func NewStopInstancesRequest() (request *StopInstancesRequest)

func (*StopInstancesRequest) FromJsonString

func (r *StopInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*StopInstancesRequest) ToJsonString

func (r *StopInstancesRequest) ToJsonString() string

type StopInstancesResponse

type StopInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewStopInstancesResponse

func NewStopInstancesResponse() (response *StopInstancesResponse)

func (*StopInstancesResponse) FromJsonString

func (r *StopInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*StopInstancesResponse) ToJsonString

func (r *StopInstancesResponse) ToJsonString() string

type StorageBlock

type StorageBlock struct {

	// Local HDD storage type. Value: LOCAL_PRO.
	// Note: This field may return null, indicating that no valid value is found.
	Type *string `json:"Type,omitempty" name:"Type"`

	// Minimum capacity of local HDD storage
	// Note: This field may return null, indicating that no valid value is found.
	MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"`

	// Maximum capacity of local HDD storage
	// Note: This field may return null, indicating that no valid value is found.
	MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"`
}

type SyncImagesRequest

type SyncImagesRequest struct {
	*tchttp.BaseRequest

	// List of image IDs. You can obtain the image IDs in two ways: <br><li>Call the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) API and find the value of `ImageId` in the response. <br><li>Find the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image). <br>The specified images must meet the following requirement: <br><li>the images must be in the `NORMAL` state. <br>For more information on image status, see [Image Data Table](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#Image).
	ImageIds []*string `json:"ImageIds,omitempty" name:"ImageIds"`

	// List of destination regions for synchronization. A destination region must meet the following requirements: <br><li>It cannot be the source region. <br><li>It must be valid. <br><li>Currently some regions do not support image synchronization. <br>For specific regions, see [Region](https://intl.cloud.tencent.com/document/product/213/6091?from_cn_redirect=1).
	DestinationRegions []*string `json:"DestinationRegions,omitempty" name:"DestinationRegions"`
}

func NewSyncImagesRequest

func NewSyncImagesRequest() (request *SyncImagesRequest)

func (*SyncImagesRequest) FromJsonString

func (r *SyncImagesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SyncImagesRequest) ToJsonString

func (r *SyncImagesRequest) ToJsonString() string

type SyncImagesResponse

type SyncImagesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSyncImagesResponse

func NewSyncImagesResponse() (response *SyncImagesResponse)

func (*SyncImagesResponse) FromJsonString

func (r *SyncImagesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SyncImagesResponse) ToJsonString

func (r *SyncImagesResponse) ToJsonString() string

type SystemDisk

type SystemDisk struct {

	// System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Valid values:<br><li>LOCAL_BASIC: local disk<br><li>LOCAL_SSD: local SSD disk<br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_SSD: SSD<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><br>The disk type currently in stock will be used by default.
	DiskType *string `json:"DiskType,omitempty" name:"DiskType"`

	// System disk ID. System disks whose type is `LOCAL_BASIC` or `LOCAL_SSD` do not have an ID and do not support this parameter currently.
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`

	// System disk size; unit: GB; default value: 50 GB.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// ID of the dedicated cluster to which the instance belongs.
	CdcId *string `json:"CdcId,omitempty" name:"CdcId"`
}

type Tag

type Tag struct {

	// Tag key
	Key *string `json:"Key,omitempty" name:"Key"`

	// Tag value
	Value *string `json:"Value,omitempty" name:"Value"`
}

type TagSpecification

type TagSpecification struct {

	// The type of resource that bound with the tag. Valid values: `instance` (for CVM) and `host` (for CDH).
	ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"`

	// List of tags
	Tags []*Tag `json:"Tags,omitempty" name:"Tags"`
}

type TerminateInstancesRequest

type TerminateInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewTerminateInstancesRequest

func NewTerminateInstancesRequest() (request *TerminateInstancesRequest)

func (*TerminateInstancesRequest) FromJsonString

func (r *TerminateInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateInstancesRequest) ToJsonString

func (r *TerminateInstancesRequest) ToJsonString() string

type TerminateInstancesResponse

type TerminateInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewTerminateInstancesResponse

func NewTerminateInstancesResponse() (response *TerminateInstancesResponse)

func (*TerminateInstancesResponse) FromJsonString

func (r *TerminateInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateInstancesResponse) ToJsonString

func (r *TerminateInstancesResponse) ToJsonString() string

type VirtualPrivateCloud

type VirtualPrivateCloud struct {

	// VPC ID in the format of `vpc-xxx`. To obtain valid VPC IDs, you can log in to the [console](https://console.cloud.tencent.com/vpc/vpc?rid=1) or call the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API and look for the `unVpcId` fields in the response. If you specify `DEFAULT` for both `VpcId` and `SubnetId` when creating an instance, the default VPC will be used.
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// VPC subnet ID in the format `subnet-xxx`. To obtain valid subnet IDs, you can log in to the [console](https://console.cloud.tencent.com/vpc/subnet?rid=1) or call [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) and look for the `unSubnetId` fields in the response. If you specify `DEFAULT` for both `SubnetId` and `VpcId` when creating an instance, the default VPC will be used.
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`

	// Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC. Valid values: <br><li>`TRUE`: yes;<br><li>`FALSE`: no<br><br>Default: `FALSE`.
	AsVpcGateway *bool `json:"AsVpcGateway,omitempty" name:"AsVpcGateway"`

	// Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.
	PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"`

	// Number of IPv6 addresses randomly generated for the ENI.
	Ipv6AddressCount *uint64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"`
}

type ZoneInfo

type ZoneInfo struct {

	// Availability zone name, such as `ap-guangzhou-3`.
	// The following is a list of all availability zones:
	// <li> ap-chongqing-1 </li>
	// <li> ap-seoul-1 </li>
	// <li> ap-seoul-2 </li>
	// <li> ap-chengdu-1 </li>
	// <li> ap-chengdu-2 </li>
	// <li> ap-hongkong-1 (sold out)</li>
	// <li> ap-hongkong-2 </li>
	// <li> ap-hongkong-3 </li>
	// <li> ap-shenzhen-fsi-1 </li>
	// <li> ap-shenzhen-fsi-2 </li>
	// <li> ap-shenzhen-fsi-3 </li>
	// <li> ap-guangzhou-1 (sold out)</li>
	// <li> ap-guangzhou-2 (sold out)</li>
	// <li> ap-guangzhou-3 </li>
	// <li> ap-guangzhou-4 </li>
	// <li> ap-guangzhou-6 </li>
	// <li> ap-guangzhou-7 </li>
	// <li> ap-tokyo-1 </li>
	// <li> ap-tokyo-2 </li>
	// <li> ap-singapore-1 </li>
	// <li> ap-singapore-2 </li>
	// <li> ap-singapore-3 </li>
	// <li> ap-shanghai-fsi-1 </li>
	// <li> ap-shanghai-fsi-2 </li>
	// <li> ap-shanghai-fsi-3 </li>
	// <li> ap-bangkok-1 </li>
	// <li> ap-bangkok-2 </li>
	// <li> ap-shanghai-1 (sold out) </li>
	// <li> ap-shanghai-2 </li>
	// <li> ap-shanghai-3 </li>
	// <li> ap-shanghai-4 </li>
	// <li> ap-shanghai-5 </li>
	// <li> ap-mumbai-1 </li>
	// <li> ap-mumbai-2 </li>
	// <li> eu-moscow-1 </li>
	// <li> ap-beijing-1 </li>
	// <li> ap-beijing-2 </li>
	// <li> ap-beijing-3 </li>
	// <li> ap-beijing-4 </li>
	// <li> ap-beijing-5 </li>
	// <li> ap-beijing-6 </li>
	// <li> ap-beijing-7 </li>
	// <li> na-siliconvalley-1 </li>
	// <li> na-siliconvalley-2 </li>
	// <li> eu-frankfurt-1 </li>
	// <li> eu-frankfurt-2 </li>
	// <li> na-toronto-1 </li>
	// <li> na-ashburn-1 </li>
	// <li> na-ashburn-2 </li>
	// <li> ap-nanjing-1 </li>
	// <li> ap-nanjing-2 </li>
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// Availability zone description, such as Guangzhou Zone 3.
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// Availability zone ID.
	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`

	// Availability zone status. Valid values: `AVAILABLE`: available; `UNAVAILABLE`: unavailable.
	ZoneState *string `json:"ZoneState,omitempty" name:"ZoneState"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL