v20200324

package
v3.0.357+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// Failed to create the image.
	FAILEDOPERATION_CREATEBLUEPRINTFAILED = "FailedOperation.CreateBlueprintFailed"

	// Failed to create the key pair.
	FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed"

	// Failed to delete the key pair.
	FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed"

	// Failed to manipulate the firewall rule.
	FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed"

	// Failed to import the key pair.
	FAILEDOPERATION_IMPORTKEYPAIRFAILED = "FailedOperation.ImportKeyPairFailed"

	// Failed to manipulate the instance.
	FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"

	// Failed to manipulate the snapshot.
	FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed"

	// The operation failed. The custom image could not be created.
	FAILEDOPERATION_UNABLETOCREATEBLUEPRINT = "FailedOperation.UnableToCreateBlueprint"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Failed to query the instance status. Please try again later.
	INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"

	// Failed to query whether the configuration of the instance can be modified.
	INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification"

	// Failed to query whether the configuration of the instance can be modified.
	INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError"

	// Failed to query whether the instance can be returned.
	INTERNALERROR_DESCRIBEINSTANCESRETURNABLEERROR = "InternalError.DescribeInstancesReturnableError"

	// An error occurred while querying the instance traffic package.
	INTERNALERROR_DESCRIBEINSTANCESTRAFFICPACKAGESFAILED = "InternalError.DescribeInstancesTrafficPackagesFailed"

	// Failed to get the snapshot quota lock.
	INTERNALERROR_GETSNAPSHOTALLOCQUOTALOCKERROR = "InternalError.GetSnapshotAllocQuotaLockError"

	// The package price is incorrect.
	INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice"

	// The command `DescribeInstanceLoginKeyPair` could not be found.
	INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound"

	// There was an error in the request.
	INTERNALERROR_REQUESTERROR = "InternalError.RequestError"

	// Failed to get the price.
	INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"

	// Undefined service package ID.
	INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"

	// Invalid parameter: the number of `Values` in the `Filter` parameter exceeds the allowed maximum number.
	INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"

	// Invalid parameter: the firewall rule is duplicated.
	INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated"

	// Invalid parameter: the firewall rule already exists.
	INVALIDPARAMETER_FIREWALLRULESEXIST = "InvalidParameter.FirewallRulesExist"

	// Invalid parameter: the `Filter` parameter is invalid.
	INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"

	// Invalid parameter: the value of `Name` in the `Filter` parameter is invalid.
	INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"

	// Invalid parameter: the value of `Name` in the `Filter` parameter is not a string.
	INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"

	// Invalid parameter: the `Values` in the `Filter` parameter is not a list.
	INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList"

	// Invalid parameter: the `Filter` parameter is not a dictionary.
	INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"

	// Invalid parameter: there are unsupported `Name` values in the `Filter` parameter.
	INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"

	// Invalid parameter: only one attribute can be modified at a time.
	INVALIDPARAMETER_ONLYALLOWMODIFYONEATTRIBUTE = "InvalidParameter.OnlyAllowModifyOneAttribute"

	// Invalid parameter: the parameters conflict.
	INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"

	// Incorrect parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// The configuration of this instance does not meet the requirements of the specified image.
	INVALIDPARAMETERVALUE_BLUEPRINTCONFIGNOTMATCH = "InvalidParameterValue.BlueprintConfigNotMatch"

	// The image ID is invalid, as instance reinstallation does not allow switching the OS type.
	INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId"

	// Invalid parameter value: the image ID format is invalid.
	INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"

	// The ID format of the CCN instance is invalid.
	INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed"

	// The disk size has changed.
	INVALIDPARAMETERVALUE_DISKSIZENOTMATCH = "InvalidParameterValue.DiskSizeNotMatch"

	// The parameter `KeyName` already exists and is duplicate.
	INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue"

	// Invalid parameter value: duplicate values are not allowed.
	INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"

	// The length of the firewall rule description exceeds the limit.
	INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong"

	// Invalid parameter value: the instance ID format is invalid.
	INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"

	// Invalid parameter value: the length of the instance name exceeds the upper limit.
	INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong"

	// The image ID is invalid.
	INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId"

	// The type of the image OS is invalid.
	INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"

	// Invalid image status value
	INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState"

	// The image type is invalid.
	INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType"

	// The console display type is invalid.
	INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes"

	// Invalid parameter value: the disk ID format is invalid.
	INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed"

	// The value of setting whether to use the default key pair for login is incorrect.
	INVALIDPARAMETERVALUE_INVALIDINSTANCELOGINKEYPAIRPERMITLOGIN = "InvalidParameterValue.InvalidInstanceLoginKeyPairPermitLogin"

	// Invalid parametric value: the IP address format is invalid.
	INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"

	// Invalid parametric value.
	INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty"

	// The key pair name is invalid.
	INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidKeyPairNameIncludeIllegalChar"

	// The parameter length is invalid.
	INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong"

	// The password in the parameter is invalid.
	INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword"

	// Incorrect quota resource name.
	INVALIDPARAMETERVALUE_INVALIDRESOURCEQUOTARESOURCENAME = "InvalidParameterValue.InvalidResourceQuotaResourceName"

	// Invalid `Zone` value.
	INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone"

	// Invalid parametric value: the key pair ID format is invalid.
	INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed"

	// The public key of this key pair already exists in the system and cannot be reused.
	INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYDUPLICATED = "InvalidParameterValue.KeyPairPublicKeyDuplicated"

	// The format of the specified public key is incorrect.
	INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYMALFORMED = "InvalidParameterValue.KeyPairPublicKeyMalformed"

	// Invalid parametric value: the number of parameter values exceeds the upper limit.
	INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"

	// Invalid parametric value: it cannot be negative.
	INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"

	// It is not allowed to change the OS type.
	INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType"

	// Invalid parametric value: it is not within the valid range.
	INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"

	// Invalid parametric value: the snapshot ID format is invalid.
	INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"

	// Invalid parametric value: the length of the snapshot name exceeds the upper limit.
	INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong"

	// The length of the parameter value exceeds the upper limit.
	INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"

	// Invalid AZ.
	INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid"

	// The firewall rule quota is exceeded.
	LIMITEXCEEDED_FIREWALLRULESLIMITEXCEEDED = "LimitExceeded.FirewallRulesLimitExceeded"

	// The key pair quota is exceeded.
	LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded"

	// The snapshot quota is exceeded.
	LIMITEXCEEDED_SNAPSHOTQUOTALIMITEXCEEDED = "LimitExceeded.SnapshotQuotaLimitExceeded"

	// Missing parameter.
	MISSINGPARAMETER = "MissingParameter"

	// This instance does not support upgrading packages.
	OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify"

	// It is not allowed to manipulate this instance, as it is being created.
	OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"

	// It is not allowed to manipulate this instance, as the last operation is still in progress.
	OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"

	// Instances using storage packages do not support snapshot creation.
	OPERATIONDENIED_OPERATIONDENIEDCREATESNAPSHOTFORSTORAGEBUNDLE = "OperationDenied.OperationDeniedCreateSnapshotForStorageBundle"

	// The key pair is in use.
	RESOURCEINUSE_KEYPAIRINUSE = "ResourceInUse.KeyPairInUse"

	// The resource does not exist.
	RESOURCENOTFOUND = "ResourceNotFound"

	// The image ID does not exist.
	RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"

	// The specified image does not exist. Please check whether the `BlueprintId` of the image is correct.
	RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound"

	// The disk does not exist.
	RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound"

	// The firewall does not exist.
	RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"

	// The firewall rule does not exist.
	RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound"

	// The instance ID does not exist.
	RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

	// The instance does not exist.
	RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"

	// The key pair ID does not exist.
	RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound"

	// The snapshot ID does not exist.
	RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"

	// The snapshot does not exist.
	RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound"

	// The resource is unavailable.
	RESOURCEUNAVAILABLE = "ResourceUnavailable"

	// MFA has expired.
	UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"

	// MFA does not exist.
	UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"

	// Unsupported operation.
	UNSUPPORTEDOPERATION = "UnsupportedOperation"

	// Unable to associate with CCN: there is no instance in this region
	UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = "UnsupportedOperation.AttachCcnConditionUnsatisfied"

	// Failed to associate the CCN instance. Please check the CCN status and try again later.
	UNSUPPORTEDOPERATION_ATTACHCCNFAILED = "UnsupportedOperation.AttachCcnFailed"

	// The current status of the image does not support this operation.
	UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid"

	// The image is in use, so this operation is not supported.
	UNSUPPORTEDOPERATION_BLUEPRINTOCCUPIED = "UnsupportedOperation.BlueprintOccupied"

	// The CCN instance is already associated, and reassociation is not supported.
	UNSUPPORTEDOPERATION_CCNALREADYATTACHED = "UnsupportedOperation.CcnAlreadyAttached"

	// No CCN instance has been associated yet, so this operation is not supported.
	UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached"

	// Failed to query the status of the associated CCN instance. Please try again later.
	UNSUPPORTEDOPERATION_DESCRIBECCNATTACHEDINSTANCESFAILED = "UnsupportedOperation.DescribeCcnAttachedInstancesFailed"

	// Failed to unassociate the CCN instance. Please check the CCN status and try again later.
	UNSUPPORTEDOPERATION_DETACHCCNFAILED = "UnsupportedOperation.DetachCcnFailed"

	// The disk is busy.
	UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy"

	// Unsupported operation: the last operation of the disk has not been completed.
	UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished"

	// The firewall is busy.
	UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy"

	// The specified firewall version number does not match the current version.
	UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"

	// Unsupported operation: the instance has expired.
	UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired"

	// Unsupported operation: the instance status is invalid.
	UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"

	// Unsupported operation: the snapshot status is invalid.
	UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState"

	// Unsupported operation: one key pair cannot be bound to the same instance repeatedly.
	UNSUPPORTEDOPERATION_KEYPAIRBINDDUPLICATE = "UnsupportedOperation.KeyPairBindDuplicate"

	// Unsupported operation: the `KeyPair` has a binding relationship with the image. Before performing this operation, please delete the custom image bound to the key pair.
	UNSUPPORTEDOPERATION_KEYPAIRBINDTOBLUEPRINTS = "UnsupportedOperation.KeyPairBindToBlueprints"

	// Unsupported operation: key pairs that are not bound to instances cannot be unbound from instances.
	UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = "UnsupportedOperation.KeyPairNotBoundToInstance"

	// Unsupported operation: the last operation of the instance has not been completed.
	UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

	// The shared image does not support this operation.
	UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint"

	// Terminating a resource in the resource center failed.
	UNSUPPORTEDOPERATION_POSTDESTROYRESOURCEFAILED = "UnsupportedOperation.PostDestroyResourceFailed"

	// Failed to reapply to associate a CCN instance. Please check the CCN status and try again later.
	UNSUPPORTEDOPERATION_RESETATTACHCCNFAILED = "UnsupportedOperation.ResetAttachCcnFailed"

	// The snapshot is busy.
	UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy"

	// Windows instances do not support binding key pairs.
	UNSUPPORTEDOPERATION_WINDOWSNOTALLOWTOASSOCIATEKEYPAIR = "UnsupportedOperation.WindowsNotAllowToAssociateKeyPair"
)
View Source
const APIVersion = "2020-03-24"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyInstanceSnapshotRequest

type ApplyInstanceSnapshotRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Snapshot ID.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`
}

func NewApplyInstanceSnapshotRequest

func NewApplyInstanceSnapshotRequest() (request *ApplyInstanceSnapshotRequest)

func (*ApplyInstanceSnapshotRequest) FromJsonString

func (r *ApplyInstanceSnapshotRequest) 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 (*ApplyInstanceSnapshotRequest) ToJsonString

func (r *ApplyInstanceSnapshotRequest) ToJsonString() string

type ApplyInstanceSnapshotResponse

type ApplyInstanceSnapshotResponse 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 NewApplyInstanceSnapshotResponse

func NewApplyInstanceSnapshotResponse() (response *ApplyInstanceSnapshotResponse)

func (*ApplyInstanceSnapshotResponse) FromJsonString

func (r *ApplyInstanceSnapshotResponse) 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 (*ApplyInstanceSnapshotResponse) ToJsonString

func (r *ApplyInstanceSnapshotResponse) ToJsonString() string

type AssociateInstancesKeyPairsRequest

type AssociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key pair ID list. Each request can contain up to 100 key pairs.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

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 AttachCcnRequest

type AttachCcnRequest struct {
	*tchttp.BaseRequest

	// CCN instance ID.
	CcnId *string `json:"CcnId,omitempty" name:"CcnId"`
}

func NewAttachCcnRequest

func NewAttachCcnRequest() (request *AttachCcnRequest)

func (*AttachCcnRequest) FromJsonString

func (r *AttachCcnRequest) 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 (*AttachCcnRequest) ToJsonString

func (r *AttachCcnRequest) ToJsonString() string

type AttachCcnResponse

type AttachCcnResponse 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 NewAttachCcnResponse

func NewAttachCcnResponse() (response *AttachCcnResponse)

func (*AttachCcnResponse) FromJsonString

func (r *AttachCcnResponse) 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 (*AttachCcnResponse) ToJsonString

func (r *AttachCcnResponse) ToJsonString() string

type Blueprint

type Blueprint struct {

	// Image ID, which is the unique identifier of `Blueprint`.
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// Image title to be displayed.
	DisplayTitle *string `json:"DisplayTitle,omitempty" name:"DisplayTitle"`

	// Image version to be displayed.
	DisplayVersion *string `json:"DisplayVersion,omitempty" name:"DisplayVersion"`

	// Image description information.
	Description *string `json:"Description,omitempty" name:"Description"`

	// OS name.
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// OS type.
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// OS type, such as LINUX_UNIX and WINDOWS.
	PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"`

	// Image type, such as APP_OS, PURE_OS, and PRIVATE.
	BlueprintType *string `json:"BlueprintType,omitempty" name:"BlueprintType"`

	// Image picture URL.
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// System disk size required by image in GB.
	RequiredSystemDiskSize *int64 `json:"RequiredSystemDiskSize,omitempty" name:"RequiredSystemDiskSize"`

	// Image status.
	BlueprintState *string `json:"BlueprintState,omitempty" name:"BlueprintState"`

	// Creation time according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Image name.
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// Whether the image supports automation tools.
	SupportAutomationTools *bool `json:"SupportAutomationTools,omitempty" name:"SupportAutomationTools"`

	// Memory size required by image in GB.
	RequiredMemorySize *int64 `json:"RequiredMemorySize,omitempty" name:"RequiredMemorySize"`

	// ID of the Lighthouse image shared from a CVM image
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ImageId *string `json:"ImageId,omitempty" name:"ImageId"`
}

type BlueprintInstance

type BlueprintInstance struct {

	// Image information.
	Blueprint *Blueprint `json:"Blueprint,omitempty" name:"Blueprint"`

	// Software list.
	SoftwareSet []*Software `json:"SoftwareSet,omitempty" name:"SoftwareSet"`

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

type BlueprintPrice

type BlueprintPrice struct {

	// Original image unit price in USD.
	OriginalBlueprintPrice *float64 `json:"OriginalBlueprintPrice,omitempty" name:"OriginalBlueprintPrice"`

	// Original image total price in USD.
	OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

	// Discount.
	Discount *int64 `json:"Discount,omitempty" name:"Discount"`

	// Discounted image total price in USD.
	DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"`
}

type Bundle

type Bundle struct {

	// Package ID.
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// Memory size in GB.
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// System disk type.
	// Valid values:
	// <li> LOCAL_BASIC: local disk</li><li> LOCAL_SSD: local SSD disk</li><li> CLOUD_BASIC: HDD cloud disk</li><li> CLOUD_SSD: SSD cloud disk</li><li> CLOUD_PREMIUM: Premium Cloud Storage</li>
	SystemDiskType *string `json:"SystemDiskType,omitempty" name:"SystemDiskType"`

	// System disk size.
	SystemDiskSize *int64 `json:"SystemDiskSize,omitempty" name:"SystemDiskSize"`

	// Monthly network traffic in Gb.
	MonthlyTraffic *int64 `json:"MonthlyTraffic,omitempty" name:"MonthlyTraffic"`

	// Whether Linux/Unix is supported.
	SupportLinuxUnixPlatform *bool `json:"SupportLinuxUnixPlatform,omitempty" name:"SupportLinuxUnixPlatform"`

	// Whether Windows is supported.
	SupportWindowsPlatform *bool `json:"SupportWindowsPlatform,omitempty" name:"SupportWindowsPlatform"`

	// Current package unit price information.
	Price *Price `json:"Price,omitempty" name:"Price"`

	// Number of CPU cores.
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// Peak bandwidth in Mbps.
	InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`

	// Network billing mode.
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// Package sale status. Valid values: AVAILABLE, SOLD_OUT
	BundleSalesState *string `json:"BundleSalesState,omitempty" name:"BundleSalesState"`

	// Package type.
	// Valid values:
	// <li> GENERAL_BUNDLE: general</li><li> STORAGE_BUNDLE: Storage</li>
	BundleType *string `json:"BundleType,omitempty" name:"BundleType"`

	// Package tag.
	// Valid values:
	// "ACTIVITY": promotional package
	// "NORMAL": regular package
	// "CAREFREE": carefree package
	BundleDisplayLabel *string `json:"BundleDisplayLabel,omitempty" name:"BundleDisplayLabel"`
}

type CcnAttachedInstance

type CcnAttachedInstance struct {

	// CCN instance ID.
	CcnId *string `json:"CcnId,omitempty" name:"CcnId"`

	// CIDR block of associated instance.
	CidrBlock []*string `json:"CidrBlock,omitempty" name:"CidrBlock"`

	// Associated instance status:
	//
	// •  PENDING: applying
	// •  ACTIVE: connected
	// •  EXPIRED: expired
	// •  REJECTED: rejected
	// •  DELETED: deleted
	// •  FAILED: failed (it will be asynchronously unassociated after 2 hours)
	// •  ATTACHING: associating
	// •  DETACHING: unassociating
	// •  DETACHFAILED: failed to unassociate (it will be asynchronously unassociated after 2 hours)
	State *string `json:"State,omitempty" name:"State"`

	// Association time.
	// Note: this field may return null, indicating that no valid values can be obtained.
	AttachedTime *string `json:"AttachedTime,omitempty" name:"AttachedTime"`

	// Remarks
	Description *string `json:"Description,omitempty" name:"Description"`
}

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) ApplyInstanceSnapshot

func (c *Client) ApplyInstanceSnapshot(request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)

ApplyInstanceSnapshot This API is used to roll back the system disk snapshot of the specified instance.

<li>Only rollback to the original system disk is supported.</li>

<li>Only snapshots in `NORMAL` status can be used for rollback. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.</li>

<li>When a snapshot is rolled back, the status of the instance must be `STOPPED` or `RUNNING`. You can call the `DescribeInstances` API to query the instance status. Instances in `RUNNING` status will be forcibly shut down before snapshot rollback.</li>

error code that may be returned:

INVALIDPARAMETERVALUE_DISKSIZENOTMATCH = "InvalidParameterValue.DiskSizeNotMatch"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"
RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound"
UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy"
UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy"

func (*Client) AssociateInstancesKeyPairs

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

AssociateInstancesKeyPairs This API is used to bind a user-specified key pair to an instance.

* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before binding.

* If the public key of a key pair is written to the SSH configuration of the instance, you 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 instances not available for the operation are selected, you will get an error code.

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound"
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_KEYPAIRBINDDUPLICATE = "UnsupportedOperation.KeyPairBindDuplicate"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"
UNSUPPORTEDOPERATION_WINDOWSNOTALLOWTOASSOCIATEKEYPAIR = "UnsupportedOperation.WindowsNotAllowToAssociateKeyPair"

func (*Client) AttachCcn

func (c *Client) AttachCcn(request *AttachCcnRequest) (response *AttachCcnResponse, err error)

AttachCcn This API is used to associate a CCN instance.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = "UnsupportedOperation.AttachCcnConditionUnsatisfied"
UNSUPPORTEDOPERATION_ATTACHCCNFAILED = "UnsupportedOperation.AttachCcnFailed"
UNSUPPORTEDOPERATION_CCNALREADYATTACHED = "UnsupportedOperation.CcnAlreadyAttached"

func (*Client) CreateBlueprint

func (c *Client) CreateBlueprint(request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)

CreateBlueprint This API is used to create an image.

error code that may be returned:

FAILEDOPERATION_CREATEBLUEPRINTFAILED = "FailedOperation.CreateBlueprintFailed"
FAILEDOPERATION_UNABLETOCREATEBLUEPRINT = "FailedOperation.UnableToCreateBlueprint"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) CreateFirewallRules

func (c *Client) CreateFirewallRules(request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)

CreateFirewallRules This API is used to add a firewall rule on an instance.

* `FirewallVersion` is the firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the updated rule from expiring. If it is left empty, conflicts will not be considered.

In the `FirewallRules` parameter:

* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.

* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.

* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.

* For the `Action` field, you can enter only `ACCEPT` or `DROP`.

* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.

error code that may be returned:

FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed"
INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated"
INVALIDPARAMETER_FIREWALLRULESEXIST = "InvalidParameter.FirewallRulesExist"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
LIMITEXCEEDED_FIREWALLRULESLIMITEXCEEDED = "LimitExceeded.FirewallRulesLimitExceeded"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy"
UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"

func (*Client) CreateInstanceSnapshot

func (c *Client) CreateInstanceSnapshot(request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)

CreateInstanceSnapshot This API is used to create a system disk snapshot of the specified instance.

error code that may be returned:

INTERNALERROR_GETSNAPSHOTALLOCQUOTALOCKERROR = "InternalError.GetSnapshotAllocQuotaLockError"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong"
LIMITEXCEEDED_SNAPSHOTQUOTALIMITEXCEEDED = "LimitExceeded.SnapshotQuotaLimitExceeded"
OPERATIONDENIED_OPERATIONDENIEDCREATESNAPSHOTFORSTORAGEBUNDLE = "OperationDenied.OperationDeniedCreateSnapshotForStorageBundle"
RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"
RESOURCENOTFOUND_DISKNOTFOUND = "ResourceNotFound.DiskNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_DISKBUSY = "UnsupportedOperation.DiskBusy"
UNSUPPORTEDOPERATION_DISKLATESTOPERATIONUNFINISHED = "UnsupportedOperation.DiskLatestOperationUnfinished"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) CreateKeyPair

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

CreateKeyPair This API is used to create a key pair.

error code that may be returned:

FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed"
INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue"
INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty"
INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEINCLUDEILLEGALCHAR = "InvalidParameterValue.InvalidKeyPairNameIncludeIllegalChar"
INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong"
LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded"

func (*Client) DeleteBlueprints

func (c *Client) DeleteBlueprints(request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)

DeleteBlueprints This API is used to delete an image.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"
RESOURCENOTFOUND_BLUEPRINTNOTFOUND = "ResourceNotFound.BlueprintNotFound"
RESOURCEUNAVAILABLE = "ResourceUnavailable"
UNSUPPORTEDOPERATION_BLUEPRINTCURSTATEINVALID = "UnsupportedOperation.BlueprintCurStateInvalid"
UNSUPPORTEDOPERATION_BLUEPRINTOCCUPIED = "UnsupportedOperation.BlueprintOccupied"
UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint"
UNSUPPORTEDOPERATION_POSTDESTROYRESOURCEFAILED = "UnsupportedOperation.PostDestroyResourceFailed"

func (*Client) DeleteFirewallRules

func (c *Client) DeleteFirewallRules(request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)

DeleteFirewallRules This API is used to delete a firewall rule of an instance.

* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be deleted directly.

In the `FirewallRules` parameter:

* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.

* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.

* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.

* For the `Action` field, you can enter only `ACCEPT` or `DROP`.

* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.

error code that may be returned:

FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed"
INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy"
UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"

func (*Client) DeleteKeyPairs

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

DeleteKeyPairs This API is used to delete a key pair.

error code that may be returned:

FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed"
RESOURCEINUSE_KEYPAIRINUSE = "ResourceInUse.KeyPairInUse"
RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound"
UNSUPPORTEDOPERATION_KEYPAIRBINDTOBLUEPRINTS = "UnsupportedOperation.KeyPairBindToBlueprints"

func (*Client) DeleteSnapshots

func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)

DeleteSnapshots This API is used to delete a snapshot.

The snapshot must be in `NORMAL` status. To query the status of a snapshot, you can call the `DescribeSnapshots` API and see the `SnapshotState` field in the response.

error code that may be returned:

FAILEDOPERATION_SNAPSHOTOPERATIONFAILED = "FailedOperation.SnapshotOperationFailed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"
RESOURCENOTFOUND_SNAPSHOTNOTFOUND = "ResourceNotFound.SnapshotNotFound"
UNSUPPORTEDOPERATION_INVALIDSNAPSHOTSTATE = "UnsupportedOperation.InvalidSnapshotState"
UNSUPPORTEDOPERATION_SNAPSHOTBUSY = "UnsupportedOperation.SnapshotBusy"

func (*Client) DescribeBlueprintInstances

func (c *Client) DescribeBlueprintInstances(request *DescribeBlueprintInstancesRequest) (response *DescribeBlueprintInstancesResponse, err error)

DescribeBlueprintInstances This API is used to query the information of an image instance.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeBlueprints

func (c *Client) DescribeBlueprints(request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)

DescribeBlueprints This API is used to query the information of an image.

error code that may be returned:

INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound"
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"

func (*Client) DescribeBundles

func (c *Client) DescribeBundles(request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)

DescribeBundles This API is used to query the information of a package.

error code that may be returned:

INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound"
INTERNALERROR_REQUESTERROR = "InternalError.RequestError"
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"
INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"
INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes"
INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
INVALIDPARAMETERVALUE_ZONEINVALID = "InvalidParameterValue.ZoneInvalid"

func (*Client) DescribeCcnAttachedInstances

func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error)

DescribeCcnAttachedInstances This API is used to query the information of instances associated with CCN.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_DESCRIBECCNATTACHEDINSTANCESFAILED = "UnsupportedOperation.DescribeCcnAttachedInstancesFailed"

func (*Client) DescribeFirewallRules

func (c *Client) DescribeFirewallRules(request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)

DescribeFirewallRules This API is used to query the firewall rules of an instance.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeFirewallRulesTemplate

func (c *Client) DescribeFirewallRulesTemplate(request *DescribeFirewallRulesTemplateRequest) (response *DescribeFirewallRulesTemplateResponse, err error)

DescribeFirewallRulesTemplate This API is used to query a firewall rule template.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeGeneralResourceQuotas

func (c *Client) DescribeGeneralResourceQuotas(request *DescribeGeneralResourceQuotasRequest) (response *DescribeGeneralResourceQuotasResponse, err error)

DescribeGeneralResourceQuotas This API is used to query the quota information of general resources.

error code that may be returned:

INVALIDPARAMETERVALUE_INVALIDRESOURCEQUOTARESOURCENAME = "InvalidParameterValue.InvalidResourceQuotaResourceName"

func (*Client) DescribeInstanceLoginKeyPairAttribute

func (c *Client) DescribeInstanceLoginKeyPairAttribute(request *DescribeInstanceLoginKeyPairAttributeRequest) (response *DescribeInstanceLoginKeyPairAttributeResponse, err error)

DescribeInstanceLoginKeyPairAttribute This API is used to query the attributes of the default login key of an instance.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeInstanceVncUrl

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

DescribeInstanceVncUrl This API is used to query the VNC URL of an instance, and the obtained address can be used for VNC login to the instance.

* This feature is available to instances in `RUNNING` status.

* 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 will have to query another one.

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

* If the connection is interrupted, up to 30 reconnection requests per minute are allowed.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) DescribeInstances

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

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

* You can query the details of an instance according to its ID, name, or private IP.

* For more information on filters, please see [Filters](https://intl.cloud.tencent.com/document/product/1207/47576?from_cn_redirect=1#Filter).

* 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.

* The latest operation (LatestOperation) and the latest operation status (LatestOperationState) of the instance can be queried.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound"
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong"
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
INVALIDPARAMETERVALUE_INVALIDZONE = "InvalidParameterValue.InvalidZone"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeInstancesDeniedActions

func (c *Client) DescribeInstancesDeniedActions(request *DescribeInstancesDeniedActionsRequest) (response *DescribeInstancesDeniedActionsResponse, err error)

DescribeInstancesDeniedActions This API is used to query the list of operation limits of one or more instances.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INTERNALERROR_INVALIDCOMMANDNOTFOUND = "InternalError.InvalidCommandNotFound"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeInstancesReturnable

func (c *Client) DescribeInstancesReturnable(request *DescribeInstancesReturnableRequest) (response *DescribeInstancesReturnableResponse, err error)

DescribeInstancesReturnable This API is used to query whether the specified instance can be returned.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INTERNALERROR_DESCRIBEINSTANCESRETURNABLEERROR = "InternalError.DescribeInstancesReturnableError"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeInstancesTrafficPackages

func (c *Client) DescribeInstancesTrafficPackages(request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)

DescribeInstancesTrafficPackages This API is used to query the traffic package details of one or more instances.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTRAFFICPACKAGESFAILED = "InternalError.DescribeInstancesTrafficPackagesFailed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"

func (*Client) DescribeKeyPairs

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

DescribeKeyPairs This API is used to query key pairs.

error code that may be returned:

INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"

func (*Client) DescribeModifyInstanceBundles

func (c *Client) DescribeModifyInstanceBundles(request *DescribeModifyInstanceBundlesRequest) (response *DescribeModifyInstanceBundlesResponse, err error)

DescribeModifyInstanceBundles This API is used to query the list of package options of an instance.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification"
INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError"
INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice"
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"
INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"
INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"

func (*Client) DescribeRegions

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

DescribeRegions This API is used to query the information of regions.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INTERNALERROR_DESCRIBEINSTANCESMODIFICATION = "InternalError.DescribeInstancesModification"
INTERNALERROR_DESCRIBEINSTANCESMODIFICATIONERROR = "InternalError.DescribeInstancesModificationError"
INTERNALERROR_INVALIDBUNDLEPRICE = "InternalError.InvalidBundlePrice"
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"
INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"
INVALIDPARAMETERVALUE_INVALIDCONSOLEDISPLAYTYPES = "InvalidParameterValue.InvalidConsoleDisplayTypes"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_BUNDLENOTSUPPORTMODIFY = "OperationDenied.BundleNotSupportModify"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_INSTANCEEXPIRED = "UnsupportedOperation.InstanceExpired"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"

func (*Client) DescribeResetInstanceBlueprints

func (c *Client) DescribeResetInstanceBlueprints(request *DescribeResetInstanceBlueprintsRequest) (response *DescribeResetInstanceBlueprintsResponse, err error)

DescribeResetInstanceBlueprints This API is used to query the image information of a reset instance.

error code that may be returned:

INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTPLATFORMTYPE = "InvalidParameterValue.InvalidBlueprintPlatformType"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTSTATE = "InvalidParameterValue.InvalidBlueprintState"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTTYPE = "InvalidParameterValue.InvalidBlueprintType"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) DescribeSnapshots

func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)

DescribeSnapshots This API is used to query the list of snapshots.

error code that may be returned:

INVALIDPARAMETER_FILTERVALUELIMITEXCEEDED = "InvalidParameter.FilterValueLimitExceeded"
INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
INVALIDPARAMETER_INVALIDFILTERINVALIDKEY = "InvalidParameter.InvalidFilterInvalidKey"
INVALIDPARAMETER_INVALIDFILTERINVALIDNAMENOTSTR = "InvalidParameter.InvalidFilterInvalidNameNotStr"
INVALIDPARAMETER_INVALIDFILTERINVALIDVALUESNOTLIST = "InvalidParameter.InvalidFilterInvalidValuesNotList"
INVALIDPARAMETER_INVALIDFILTERNOTDICT = "InvalidParameter.InvalidFilterNotDict"
INVALIDPARAMETER_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameter.InvalidFilterNotSupportedName"
INVALIDPARAMETER_PARAMETERCONFLICT = "InvalidParameter.ParameterConflict"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDDISKIDMALFORMED = "InvalidParameterValue.InvalidDiskIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NEGATIVE = "InvalidParameterValue.Negative"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong"

func (*Client) DescribeSnapshotsDeniedActions

func (c *Client) DescribeSnapshotsDeniedActions(request *DescribeSnapshotsDeniedActionsRequest) (response *DescribeSnapshotsDeniedActionsResponse, err error)

DescribeSnapshotsDeniedActions This API is used to query the list of operation limits of one or more snapshots.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"

func (*Client) DescribeZones

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

DescribeZones This API is used to query the list of AZs in a region.

error code that may be returned:

INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"

func (*Client) DetachCcn

func (c *Client) DetachCcn(request *DetachCcnRequest) (response *DetachCcnResponse, err error)

DetachCcn This API is used to unassociate a CCN instance.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached"
UNSUPPORTEDOPERATION_DETACHCCNFAILED = "UnsupportedOperation.DetachCcnFailed"

func (*Client) DisassociateInstancesKeyPairs

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

DisassociateInstancesKeyPairs This API is used to unbind an instance from the specified key pair.

* Only instances on LINUX_UNIX in [RUNNING, STOPPED] status are supported. Instances in `RUNNING` status will be forcibly shut down before unbinding.

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

* If no password was set, you cannot log in to the instance with SSH after unbinding. You can call the ResetInstancesPassword API to set a login password.

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

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_KEYPAIRIDMALFORMED = "InvalidParameterValue.KeyPairIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
RESOURCENOTFOUND_KEYIDNOTFOUND = "ResourceNotFound.KeyIdNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_KEYPAIRNOTBOUNDTOINSTANCE = "UnsupportedOperation.KeyPairNotBoundToInstance"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ImportKeyPair

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

ImportKeyPair This API is used to import the specified key pair.

error code that may be returned:

FAILEDOPERATION_CREATEKEYPAIRFAILED = "FailedOperation.CreateKeyPairFailed"
FAILEDOPERATION_DELETEKEYPAIRFAILED = "FailedOperation.DeleteKeyPairFailed"
FAILEDOPERATION_IMPORTKEYPAIRFAILED = "FailedOperation.ImportKeyPairFailed"
INVALIDPARAMETERVALUE_DUPLICATEPARAMETERVALUE = "InvalidParameterValue.DuplicateParameterValue"
INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMEEMPTY = "InvalidParameterValue.InvalidKeyPairNameEmpty"
INVALIDPARAMETERVALUE_INVALIDKEYPAIRNAMETOOLONG = "InvalidParameterValue.InvalidKeyPairNameTooLong"
INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYDUPLICATED = "InvalidParameterValue.KeyPairPublicKeyDuplicated"
INVALIDPARAMETERVALUE_KEYPAIRPUBLICKEYMALFORMED = "InvalidParameterValue.KeyPairPublicKeyMalformed"
LIMITEXCEEDED_KEYPAIRLIMITEXCEEDED = "LimitExceeded.KeyPairLimitExceeded"

func (*Client) InquirePriceCreateBlueprint

func (c *Client) InquirePriceCreateBlueprint(request *InquirePriceCreateBlueprintRequest) (response *InquirePriceCreateBlueprintResponse, err error)

InquirePriceCreateBlueprint This API is used to query the price of a created image.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"

func (*Client) InquirePriceCreateInstances

func (c *Client) InquirePriceCreateInstances(request *InquirePriceCreateInstancesRequest) (response *InquirePriceCreateInstancesResponse, err error)

InquirePriceCreateInstances This API is used to query the price of a created instance.

error code that may be returned:

INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"
INVALIDPARAMETER_BUNDLEIDNOTFOUND = "InvalidParameter.BundleIdNotFound"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_INVALIDBLUEPRINTID = "InvalidParameterValue.InvalidBlueprintId"
RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"

func (*Client) InquirePriceRenewInstances

func (c *Client) InquirePriceRenewInstances(request *InquirePriceRenewInstancesRequest) (response *InquirePriceRenewInstancesResponse, err error)

InquirePriceRenewInstances This API is used to query the price of renewed instance.

error code that may be returned:

INTERNALERROR_TRADEGETPRICEFAILED = "InternalError.TradeGetPriceFailed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"

func (*Client) ModifyBlueprintAttribute

func (c *Client) ModifyBlueprintAttribute(request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)

ModifyBlueprintAttribute This API is used to modify an image attribute.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"
UNSUPPORTEDOPERATION_NOTSUPPORTSHAREDBLUEPRINT = "UnsupportedOperation.NotSupportSharedBlueprint"

func (*Client) ModifyFirewallRuleDescription

func (c *Client) ModifyFirewallRuleDescription(request *ModifyFirewallRuleDescriptionRequest) (response *ModifyFirewallRuleDescriptionResponse, err error)

ModifyFirewallRuleDescription This API is used to modify the description of a single firewall rule.

* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the description of the specified rule will be modified directly.

In the `FirewallRule` parameter:

* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.

* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.

* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.

* For the `Action` field, you can enter only `ACCEPT` or `DROP`.

* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.

error code that may be returned:

INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_FIREWALLRULESNOTFOUND = "ResourceNotFound.FirewallRulesNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy"
UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"

func (*Client) ModifyFirewallRules

func (c *Client) ModifyFirewallRules(request *ModifyFirewallRulesRequest) (response *ModifyFirewallRulesResponse, err error)

ModifyFirewallRules This API is used to reset the firewall rules of an instance.

This API deletes all firewall rules of the current instance first and then adds new rules.

* `FirewallVersion` is used to specify the version of the firewall to be manipulated. If the `FirewallVersion` value passed in is not equal to the current latest version of the firewall, a failure will be returned. If `FirewallVersion` is not passed in, the specified rule will be reset directly.

In the `FirewallRules` parameter:

* Valid values of the `Protocol` field include `TCP`, `UDP`, `ICMP`, and `ALL`.

* For the `Port` field, you can enter only `ALL`, a single port number, several port numbers separated by commas, or a port range indicated by two port numbers separated by a minus sign. If `Port` is a range, the port number on the left of the minus sign must be smaller than the one on the right. If `Protocol` is not `TCP` or `UDP`, `Port` can only be empty or `ALL`. The length of the `Port` field cannot exceed 64 characters.

* For the `CidrBlock` field, you can enter any string that conforms to the CIDR format standard. Multi-Tenant network isolation rules take precedence over private network rules in the firewall.

* For the `Action` field, you can enter only `ACCEPT` or `DROP`.

* The length of the `FirewallRuleDescription` field cannot exceed 64 characters.

error code that may be returned:

FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = "FailedOperation.FirewallRulesOperationFailed"
INVALIDPARAMETER_FIREWALLRULESDUPLICATED = "InvalidParameter.FirewallRulesDuplicated"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_FIREWALLRULEDESCRIPTIONTOOLONG = "InvalidParameterValue.FirewallRuleDescriptionTooLong"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
RESOURCENOTFOUND_FIREWALLNOTFOUND = "ResourceNotFound.FirewallNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_FIREWALLBUSY = "UnsupportedOperation.FirewallBusy"
UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = "UnsupportedOperation.FirewallVersionMismatch"

func (*Client) ModifyInstancesAttribute

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

ModifyInstancesAttribute This API is used to modify the attributes of instances.

* The instance name is used only for users’ convenience.

* Batch operations are supported. Each request can contain up to 100 instances at a time.

* This API is async. A successful request will return a `RequestId`, it does not mean the operation is completed. You can call the `DescribeInstances` API to query the operation result. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETER_ONLYALLOWMODIFYONEATTRIBUTE = "InvalidParameter.OnlyAllowModifyOneAttribute"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INSTANCENAMETOOLONG = "InvalidParameterValue.InstanceNameTooLong"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ModifyInstancesLoginKeyPairAttribute

func (c *Client) ModifyInstancesLoginKeyPairAttribute(request *ModifyInstancesLoginKeyPairAttributeRequest) (response *ModifyInstancesLoginKeyPairAttributeResponse, err error)

ModifyInstancesLoginKeyPairAttribute This API is used to set the attributes of the default login key pair of an instance.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDINSTANCELOGINKEYPAIRPERMITLOGIN = "InvalidParameterValue.InvalidInstanceLoginKeyPairPermitLogin"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ModifyInstancesRenewFlag

func (c *Client) ModifyInstancesRenewFlag(request *ModifyInstancesRenewFlagRequest) (response *ModifyInstancesRenewFlagResponse, err error)

ModifyInstancesRenewFlag This API is used to modify the renewal flags of monthly subscribed instances.

* Instances marked with "auto-renewal" will be automatically renewed for one month when they expire.

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

* The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ModifySnapshotAttribute

func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)

ModifySnapshotAttribute This API is used to modify the attributes of a snapshot.

<li>The snapshot name is used only for users’ convenience.</li>

error code that may be returned:

INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
INVALIDPARAMETERVALUE_SNAPSHOTNAMETOOLONG = "InvalidParameterValue.SnapshotNameTooLong"
RESOURCENOTFOUND_SNAPSHOTIDNOTFOUND = "ResourceNotFound.SnapshotIdNotFound"

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`.

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

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

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ResetAttachCcn

func (c *Client) ResetAttachCcn(request *ResetAttachCcnRequest) (response *ResetAttachCcnResponse, err error)

ResetAttachCcn This API is used to apply for association again after a CCN instance association application expires.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_CCNIDMALFORMED = "InvalidParameterValue.CcnIdMalformed"
MISSINGPARAMETER = "MissingParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_CCNNOTATTACHED = "UnsupportedOperation.CcnNotAttached"
UNSUPPORTEDOPERATION_RESETATTACHCCNFAILED = "UnsupportedOperation.ResetAttachCcnFailed"

func (*Client) ResetInstance

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

ResetInstance This API is used to reinstall the image on the specified instance.

* If you specify a `BlueprintId`, 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.

* Currently, this API does not support switching the operating system between `LINUX_UNIX` and `WINDOWS` for instances.

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_BLUEPRINTCONFIGNOTMATCH = "InvalidParameterValue.BlueprintConfigNotMatch"
INVALIDPARAMETERVALUE_BLUEPRINTID = "InvalidParameterValue.BlueprintId"
INVALIDPARAMETERVALUE_BLUEPRINTIDMALFORMED = "InvalidParameterValue.BlueprintIdMalformed"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_BLUEPRINTIDNOTFOUND = "ResourceNotFound.BlueprintIdNotFound"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNAUTHORIZEDOPERATION_MFANOTFOUND = "UnauthorizedOperation.MFANotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) ResetInstancesPassword

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

ResetInstancesPassword This API is used to reset the password of the instance OS to a user-specified password.

* You can only use this API to modify the password of the admin account. The name of the admin account varies by OS (on Windows, it is `Administrator`; on Ubuntu, it is `ubuntu`; on other systems, it is `root`).

* Batch operations are supported. You can reset the passwords of multiple instances to the same one. The maximum number of instances in each request is 100.

* It’s recommended to shut down the instance first and then reset the password. If the instance is running, this API will try to shut it down normally. If the attempt fails, it will force to instance to shut down.

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

Note: Just like powering off a physical PC, a forced shutdown may cause data loss or the corruption of file system.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NOTALLOWTOCHANGEPLATFORMTYPE = "InvalidParameterValue.NotAllowToChangePlatformType"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) StartInstances

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

StartInstances This API is used to start one or more 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 will become `RUNNING` when the instance is successfully started.

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

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) StopInstances

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

StopInstances This API is used to shut down one or more 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 will become `STOPPED` when the instance is successfully shut down.

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

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

FAILEDOPERATION_INSTANCEOPERATIONFAILED = "FailedOperation.InstanceOperationFailed"
INTERNALERROR_DESCRIBEINSTANCESTATUS = "InternalError.DescribeInstanceStatus"
INVALIDPARAMETERVALUE_DUPLICATED = "InvalidParameterValue.Duplicated"
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_OUTOFRANGE = "InvalidParameterValue.OutOfRange"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

func (*Client) TerminateInstances

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

TerminateInstances This API is used to terminate one or more instances.

* Instances in `SHUTDOWN` status can be terminated through this API and cannot be recovered.

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

* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.

error code that may be returned:

INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
OPERATIONDENIED_INSTANCECREATING = "OperationDenied.InstanceCreating"
OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
RESOURCENOTFOUND_INSTANCEIDNOTFOUND = "ResourceNotFound.InstanceIdNotFound"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
UNSUPPORTEDOPERATION_INVALIDINSTANCESTATE = "UnsupportedOperation.InvalidInstanceState"
UNSUPPORTEDOPERATION_LATESTOPERATIONUNFINISHED = "UnsupportedOperation.LatestOperationUnfinished"

type CreateBlueprintRequest

type CreateBlueprintRequest struct {
	*tchttp.BaseRequest

	// Image name, which can contain up to 60 characters.
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// Image description, which can contain up to 60 characters.
	Description *string `json:"Description,omitempty" name:"Description"`

	// ID of the instance for which to make an image.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewCreateBlueprintRequest

func NewCreateBlueprintRequest() (request *CreateBlueprintRequest)

func (*CreateBlueprintRequest) FromJsonString

func (r *CreateBlueprintRequest) 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 (*CreateBlueprintRequest) ToJsonString

func (r *CreateBlueprintRequest) ToJsonString() string

type CreateBlueprintResponse

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

		// Custom image ID.
		BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

		// 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 NewCreateBlueprintResponse

func NewCreateBlueprintResponse() (response *CreateBlueprintResponse)

func (*CreateBlueprintResponse) FromJsonString

func (r *CreateBlueprintResponse) 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 (*CreateBlueprintResponse) ToJsonString

func (r *CreateBlueprintResponse) ToJsonString() string

type CreateFirewallRulesRequest

type CreateFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Firewall rule list.
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"`

	// Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered.
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewCreateFirewallRulesRequest

func NewCreateFirewallRulesRequest() (request *CreateFirewallRulesRequest)

func (*CreateFirewallRulesRequest) FromJsonString

func (r *CreateFirewallRulesRequest) 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 (*CreateFirewallRulesRequest) ToJsonString

func (r *CreateFirewallRulesRequest) ToJsonString() string

type CreateFirewallRulesResponse

type CreateFirewallRulesResponse 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 NewCreateFirewallRulesResponse

func NewCreateFirewallRulesResponse() (response *CreateFirewallRulesResponse)

func (*CreateFirewallRulesResponse) FromJsonString

func (r *CreateFirewallRulesResponse) 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 (*CreateFirewallRulesResponse) ToJsonString

func (r *CreateFirewallRulesResponse) ToJsonString() string

type CreateInstanceSnapshotRequest

type CreateInstanceSnapshotRequest struct {
	*tchttp.BaseRequest

	// ID of the instance for which to create a snapshot.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Snapshot name, which can contain up to 60 characters.
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`
}

func NewCreateInstanceSnapshotRequest

func NewCreateInstanceSnapshotRequest() (request *CreateInstanceSnapshotRequest)

func (*CreateInstanceSnapshotRequest) FromJsonString

func (r *CreateInstanceSnapshotRequest) 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 (*CreateInstanceSnapshotRequest) ToJsonString

func (r *CreateInstanceSnapshotRequest) ToJsonString() string

type CreateInstanceSnapshotResponse

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

		// Snapshot ID.
		SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

		// 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 NewCreateInstanceSnapshotResponse

func NewCreateInstanceSnapshotResponse() (response *CreateInstanceSnapshotResponse)

func (*CreateInstanceSnapshotResponse) FromJsonString

func (r *CreateInstanceSnapshotResponse) 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 (*CreateInstanceSnapshotResponse) ToJsonString

func (r *CreateInstanceSnapshotResponse) ToJsonString() string

type CreateKeyPairRequest

type CreateKeyPairRequest struct {
	*tchttp.BaseRequest

	// Key pair name, which can contain up to 25 digits, letters, and underscores.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`
}

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 DeleteBlueprintsRequest

type DeleteBlueprintsRequest struct {
	*tchttp.BaseRequest

	// Image ID list, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API.
	BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"`
}

func NewDeleteBlueprintsRequest

func NewDeleteBlueprintsRequest() (request *DeleteBlueprintsRequest)

func (*DeleteBlueprintsRequest) FromJsonString

func (r *DeleteBlueprintsRequest) 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 (*DeleteBlueprintsRequest) ToJsonString

func (r *DeleteBlueprintsRequest) ToJsonString() string

type DeleteBlueprintsResponse

type DeleteBlueprintsResponse 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 NewDeleteBlueprintsResponse

func NewDeleteBlueprintsResponse() (response *DeleteBlueprintsResponse)

func (*DeleteBlueprintsResponse) FromJsonString

func (r *DeleteBlueprintsResponse) 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 (*DeleteBlueprintsResponse) ToJsonString

func (r *DeleteBlueprintsResponse) ToJsonString() string

type DeleteFirewallRulesRequest

type DeleteFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Firewall rule list.
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"`

	// Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered.
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewDeleteFirewallRulesRequest

func NewDeleteFirewallRulesRequest() (request *DeleteFirewallRulesRequest)

func (*DeleteFirewallRulesRequest) FromJsonString

func (r *DeleteFirewallRulesRequest) 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 (*DeleteFirewallRulesRequest) ToJsonString

func (r *DeleteFirewallRulesRequest) ToJsonString() string

type DeleteFirewallRulesResponse

type DeleteFirewallRulesResponse 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 NewDeleteFirewallRulesResponse

func NewDeleteFirewallRulesResponse() (response *DeleteFirewallRulesResponse)

func (*DeleteFirewallRulesResponse) FromJsonString

func (r *DeleteFirewallRulesResponse) 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 (*DeleteFirewallRulesResponse) ToJsonString

func (r *DeleteFirewallRulesResponse) ToJsonString() string

type DeleteKeyPairsRequest

type DeleteKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key pair ID list. Each request can contain up to 10 key pairs.
	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 DeleteSnapshotsRequest

type DeleteSnapshotsRequest struct {
	*tchttp.BaseRequest

	// List of IDs of snapshots to be deleted, which can be queried through `DescribeSnapshots`.
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"`
}

func NewDeleteSnapshotsRequest

func NewDeleteSnapshotsRequest() (request *DeleteSnapshotsRequest)

func (*DeleteSnapshotsRequest) FromJsonString

func (r *DeleteSnapshotsRequest) 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 (*DeleteSnapshotsRequest) ToJsonString

func (r *DeleteSnapshotsRequest) ToJsonString() string

type DeleteSnapshotsResponse

type DeleteSnapshotsResponse 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 NewDeleteSnapshotsResponse

func NewDeleteSnapshotsResponse() (response *DeleteSnapshotsResponse)

func (*DeleteSnapshotsResponse) FromJsonString

func (r *DeleteSnapshotsResponse) 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 (*DeleteSnapshotsResponse) ToJsonString

func (r *DeleteSnapshotsResponse) ToJsonString() string

type DeniedAction

type DeniedAction struct {

	// Restricted operation name.
	Action *string `json:"Action,omitempty" name:"Action"`

	// Restricted operation message code.
	Code *string `json:"Code,omitempty" name:"Code"`

	// Restricted operation message.
	Message *string `json:"Message,omitempty" name:"Message"`
}

type DescribeBlueprintInstancesRequest

type DescribeBlueprintInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list, which currently can contain only one instance.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewDescribeBlueprintInstancesRequest

func NewDescribeBlueprintInstancesRequest() (request *DescribeBlueprintInstancesRequest)

func (*DescribeBlueprintInstancesRequest) FromJsonString

func (r *DescribeBlueprintInstancesRequest) 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 (*DescribeBlueprintInstancesRequest) ToJsonString

func (r *DescribeBlueprintInstancesRequest) ToJsonString() string

type DescribeBlueprintInstancesResponse

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

		// Number of eligible image instances.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Image instance list information.
		BlueprintInstanceSet []*BlueprintInstance `json:"BlueprintInstanceSet,omitempty" name:"BlueprintInstanceSet"`

		// 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 NewDescribeBlueprintInstancesResponse

func NewDescribeBlueprintInstancesResponse() (response *DescribeBlueprintInstancesResponse)

func (*DescribeBlueprintInstancesResponse) FromJsonString

func (r *DescribeBlueprintInstancesResponse) 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 (*DescribeBlueprintInstancesResponse) ToJsonString

func (r *DescribeBlueprintInstancesResponse) ToJsonString() string

type DescribeBlueprintsRequest

type DescribeBlueprintsRequest struct {
	*tchttp.BaseRequest

	// Image ID list.
	BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds"`

	// Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Filter list
	// <li>blueprint-id</li>Filter by **image ID**.
	// Type: String
	// Required: no
	// <li>blueprint-type</li>Filter by **image type**.
	// Valid values: `APP_OS`: application image; `PURE_OS`: system image; `PRIVATE`: custom image; `SHARED`: shared image
	// Type: String
	// Required: no
	// <li>platform-type</li>Filter by **image platform type**.
	// Valid values: `LINUX_UNIX`: Linux or Unix; `WINDOWS`: Windows
	// Type: String
	// Required: no
	// <li>blueprint-name</li>Filter by **image name**.
	// Type: String
	// Required: no
	// <li>blueprint-state</li>Filter by **image status**.
	// Type: String
	// Required: no
	//
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeBlueprintsRequest

func NewDescribeBlueprintsRequest() (request *DescribeBlueprintsRequest)

func (*DescribeBlueprintsRequest) FromJsonString

func (r *DescribeBlueprintsRequest) 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 (*DescribeBlueprintsRequest) ToJsonString

func (r *DescribeBlueprintsRequest) ToJsonString() string

type DescribeBlueprintsResponse

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

		// Number of eligible images.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Image details list.
		BlueprintSet []*Blueprint `json:"BlueprintSet,omitempty" name:"BlueprintSet"`

		// 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 NewDescribeBlueprintsResponse

func NewDescribeBlueprintsResponse() (response *DescribeBlueprintsResponse)

func (*DescribeBlueprintsResponse) FromJsonString

func (r *DescribeBlueprintsResponse) 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 (*DescribeBlueprintsResponse) ToJsonString

func (r *DescribeBlueprintsResponse) ToJsonString() string

type DescribeBundlesRequest

type DescribeBundlesRequest struct {
	*tchttp.BaseRequest

	// Package ID list.
	BundleIds []*string `json:"BundleIds,omitempty" name:"BundleIds"`

	// Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Filter list.
	// <li>bundle-id</li>Filter by **package ID**.
	// Type: String
	// Required: no
	// <li>support-platform-type</li>Filter by **system type**.
	// Valid values: LINUX_UNIX (Linux/Unix), WINDOWS ( Windows)
	// Type: String
	// Required: no
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`. You cannot specify both `BundleIds` and `Filters` at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// AZ list, which contains all AZs by default.
	Zones []*string `json:"Zones,omitempty" name:"Zones"`
}

func NewDescribeBundlesRequest

func NewDescribeBundlesRequest() (request *DescribeBundlesRequest)

func (*DescribeBundlesRequest) FromJsonString

func (r *DescribeBundlesRequest) 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 (*DescribeBundlesRequest) ToJsonString

func (r *DescribeBundlesRequest) ToJsonString() string

type DescribeBundlesResponse

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

		// List of package details.
		BundleSet []*Bundle `json:"BundleSet,omitempty" name:"BundleSet"`

		// Total number of eligible packages, which is used for pagination.
		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 NewDescribeBundlesResponse

func NewDescribeBundlesResponse() (response *DescribeBundlesResponse)

func (*DescribeBundlesResponse) FromJsonString

func (r *DescribeBundlesResponse) 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 (*DescribeBundlesResponse) ToJsonString

func (r *DescribeBundlesResponse) ToJsonString() string

type DescribeCcnAttachedInstancesRequest

type DescribeCcnAttachedInstancesRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeCcnAttachedInstancesRequest

func NewDescribeCcnAttachedInstancesRequest() (request *DescribeCcnAttachedInstancesRequest)

func (*DescribeCcnAttachedInstancesRequest) FromJsonString

func (r *DescribeCcnAttachedInstancesRequest) 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 (*DescribeCcnAttachedInstancesRequest) ToJsonString

func (r *DescribeCcnAttachedInstancesRequest) ToJsonString() string

type DescribeCcnAttachedInstancesResponse

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

		// List of instances associated with the CCN instance.
		// Note: this field may return null, indicating that no valid values can be obtained.
		CcnAttachedInstanceSet []*CcnAttachedInstance `json:"CcnAttachedInstanceSet,omitempty" name:"CcnAttachedInstanceSet"`

		// 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 NewDescribeCcnAttachedInstancesResponse

func NewDescribeCcnAttachedInstancesResponse() (response *DescribeCcnAttachedInstancesResponse)

func (*DescribeCcnAttachedInstancesResponse) FromJsonString

func (r *DescribeCcnAttachedInstancesResponse) 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 (*DescribeCcnAttachedInstancesResponse) ToJsonString

func (r *DescribeCcnAttachedInstancesResponse) ToJsonString() string

type DescribeFirewallRulesRequest

type DescribeFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeFirewallRulesRequest

func NewDescribeFirewallRulesRequest() (request *DescribeFirewallRulesRequest)

func (*DescribeFirewallRulesRequest) FromJsonString

func (r *DescribeFirewallRulesRequest) 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 (*DescribeFirewallRulesRequest) ToJsonString

func (r *DescribeFirewallRulesRequest) ToJsonString() string

type DescribeFirewallRulesResponse

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

		// Number of eligible firewall rules.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Firewall rule details list.
		FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet"`

		// Firewall version number.
		FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`

		// 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 NewDescribeFirewallRulesResponse

func NewDescribeFirewallRulesResponse() (response *DescribeFirewallRulesResponse)

func (*DescribeFirewallRulesResponse) FromJsonString

func (r *DescribeFirewallRulesResponse) 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 (*DescribeFirewallRulesResponse) ToJsonString

func (r *DescribeFirewallRulesResponse) ToJsonString() string

type DescribeFirewallRulesTemplateRequest

type DescribeFirewallRulesTemplateRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeFirewallRulesTemplateRequest

func NewDescribeFirewallRulesTemplateRequest() (request *DescribeFirewallRulesTemplateRequest)

func (*DescribeFirewallRulesTemplateRequest) FromJsonString

func (r *DescribeFirewallRulesTemplateRequest) 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 (*DescribeFirewallRulesTemplateRequest) ToJsonString

func (r *DescribeFirewallRulesTemplateRequest) ToJsonString() string

type DescribeFirewallRulesTemplateResponse

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

		// Number of eligible firewall rules.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Firewall rule details list.
		FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet"`

		// 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 NewDescribeFirewallRulesTemplateResponse

func NewDescribeFirewallRulesTemplateResponse() (response *DescribeFirewallRulesTemplateResponse)

func (*DescribeFirewallRulesTemplateResponse) FromJsonString

func (r *DescribeFirewallRulesTemplateResponse) 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 (*DescribeFirewallRulesTemplateResponse) ToJsonString

type DescribeGeneralResourceQuotasRequest

type DescribeGeneralResourceQuotasRequest struct {
	*tchttp.BaseRequest

	// List of resource names. Valid values: USER_KEY_PAIR, INSTANCE, SNAPSHOT.
	ResourceNames []*string `json:"ResourceNames,omitempty" name:"ResourceNames"`
}

func NewDescribeGeneralResourceQuotasRequest

func NewDescribeGeneralResourceQuotasRequest() (request *DescribeGeneralResourceQuotasRequest)

func (*DescribeGeneralResourceQuotasRequest) FromJsonString

func (r *DescribeGeneralResourceQuotasRequest) 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 (*DescribeGeneralResourceQuotasRequest) ToJsonString

func (r *DescribeGeneralResourceQuotasRequest) ToJsonString() string

type DescribeGeneralResourceQuotasResponse

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

		// List of general resource quota details.
		GeneralResourceQuotaSet []*GeneralResourceQuota `json:"GeneralResourceQuotaSet,omitempty" name:"GeneralResourceQuotaSet"`

		// 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 NewDescribeGeneralResourceQuotasResponse

func NewDescribeGeneralResourceQuotasResponse() (response *DescribeGeneralResourceQuotasResponse)

func (*DescribeGeneralResourceQuotasResponse) FromJsonString

func (r *DescribeGeneralResourceQuotasResponse) 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 (*DescribeGeneralResourceQuotasResponse) ToJsonString

type DescribeInstanceLoginKeyPairAttributeRequest

type DescribeInstanceLoginKeyPairAttributeRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewDescribeInstanceLoginKeyPairAttributeRequest

func NewDescribeInstanceLoginKeyPairAttributeRequest() (request *DescribeInstanceLoginKeyPairAttributeRequest)

func (*DescribeInstanceLoginKeyPairAttributeRequest) FromJsonString

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

func (*DescribeInstanceLoginKeyPairAttributeRequest) ToJsonString

type DescribeInstanceLoginKeyPairAttributeResponse

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

		// Whether to allow login with the default key pair. Valid values: YES, NO.
		PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"`

		// 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 NewDescribeInstanceLoginKeyPairAttributeResponse

func NewDescribeInstanceLoginKeyPairAttributeResponse() (response *DescribeInstanceLoginKeyPairAttributeResponse)

func (*DescribeInstanceLoginKeyPairAttributeResponse) FromJsonString

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

func (*DescribeInstanceLoginKeyPairAttributeResponse) ToJsonString

type DescribeInstanceVncUrlRequest

type DescribeInstanceVncUrlRequest struct {
	*tchttp.BaseRequest

	// Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	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 DescribeInstancesDeniedActionsRequest

type DescribeInstancesDeniedActionsRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

func NewDescribeInstancesDeniedActionsRequest

func NewDescribeInstancesDeniedActionsRequest() (request *DescribeInstancesDeniedActionsRequest)

func (*DescribeInstancesDeniedActionsRequest) FromJsonString

func (r *DescribeInstancesDeniedActionsRequest) 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 (*DescribeInstancesDeniedActionsRequest) ToJsonString

type DescribeInstancesDeniedActionsResponse

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

		// List of instance operation limit details.
		InstanceDeniedActionSet []*InstanceDeniedActions `json:"InstanceDeniedActionSet,omitempty" name:"InstanceDeniedActionSet"`

		// 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 NewDescribeInstancesDeniedActionsResponse

func NewDescribeInstancesDeniedActionsResponse() (response *DescribeInstancesDeniedActionsResponse)

func (*DescribeInstancesDeniedActionsResponse) FromJsonString

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

func (*DescribeInstancesDeniedActionsResponse) ToJsonString

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Filter list
	// <li>instance-name</li>Filter by the instance name
	// Type: String
	// Required: no
	// <li>private-ip-address</li>Filter by the private IP of instance primary ENI
	// Type: String
	// Required: no
	// <li>public-ip-address</li>Filter by the public IP of instance primary ENI
	// Type: String
	// Required: no
	// <li>zone</li>Filter by the availability zone
	// Type: String
	// Required: no
	// <li>instance-state</li>Filter by **instance status**.
	// Type: String
	// Required: no
	// Each request can contain up to 10 filters, each of which can have 5 values. You cannot specify both `InstanceIds` and `Filters` at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	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 eligible instances.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of instance details.
		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 DescribeInstancesReturnableRequest

type DescribeInstancesReturnableRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesReturnableRequest

func NewDescribeInstancesReturnableRequest() (request *DescribeInstancesReturnableRequest)

func (*DescribeInstancesReturnableRequest) FromJsonString

func (r *DescribeInstancesReturnableRequest) 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 (*DescribeInstancesReturnableRequest) ToJsonString

func (r *DescribeInstancesReturnableRequest) ToJsonString() string

type DescribeInstancesReturnableResponse

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

		// Number of eligible instances.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of returnable instance details.
		InstanceReturnableSet []*InstanceReturnable `json:"InstanceReturnableSet,omitempty" name:"InstanceReturnableSet"`

		// 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 NewDescribeInstancesReturnableResponse

func NewDescribeInstancesReturnableResponse() (response *DescribeInstancesReturnableResponse)

func (*DescribeInstancesReturnableResponse) FromJsonString

func (r *DescribeInstancesReturnableResponse) 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 (*DescribeInstancesReturnableResponse) ToJsonString

func (r *DescribeInstancesReturnableResponse) ToJsonString() string

type DescribeInstancesTrafficPackagesRequest

type DescribeInstancesTrafficPackagesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesTrafficPackagesRequest

func NewDescribeInstancesTrafficPackagesRequest() (request *DescribeInstancesTrafficPackagesRequest)

func (*DescribeInstancesTrafficPackagesRequest) FromJsonString

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

func (*DescribeInstancesTrafficPackagesRequest) ToJsonString

type DescribeInstancesTrafficPackagesResponse

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

		// Number of eligible instance traffic package details.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of instance traffic package details.
		InstanceTrafficPackageSet []*InstanceTrafficPackage `json:"InstanceTrafficPackageSet,omitempty" name:"InstanceTrafficPackageSet"`

		// 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 NewDescribeInstancesTrafficPackagesResponse

func NewDescribeInstancesTrafficPackagesResponse() (response *DescribeInstancesTrafficPackagesResponse)

func (*DescribeInstancesTrafficPackagesResponse) FromJsonString

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

func (*DescribeInstancesTrafficPackagesResponse) ToJsonString

type DescribeKeyPairsRequest

type DescribeKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key pair ID list.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Filter list
	// <li>key-id</li>Filter by **key pair ID**.
	// Type: String
	// Required: no
	// <li>key-name</li>Filter by **key pair name**.
	// Type: String
	// Required: no
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `KeyIds` and `Filters` cannot be specified at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

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 eligible key pairs.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of key pair details.
		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 DescribeModifyInstanceBundlesRequest

type DescribeModifyInstanceBundlesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Filter list.
	// <li>bundle-id</li>Filter by **package ID**.
	// Type: String
	// Required: no
	// <li>support-platform-type</li>Filter by **system type**.
	// Valid values: LINUX_UNIX (Linux/Unix), WINDOWS ( Windows)
	// Type: String
	// Required: no
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeModifyInstanceBundlesRequest

func NewDescribeModifyInstanceBundlesRequest() (request *DescribeModifyInstanceBundlesRequest)

func (*DescribeModifyInstanceBundlesRequest) FromJsonString

func (r *DescribeModifyInstanceBundlesRequest) 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 (*DescribeModifyInstanceBundlesRequest) ToJsonString

func (r *DescribeModifyInstanceBundlesRequest) ToJsonString() string

type DescribeModifyInstanceBundlesResponse

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

		// Number of matched instances.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// New package details
		ModifyBundleSet []*ModifyBundle `json:"ModifyBundleSet,omitempty" name:"ModifyBundleSet"`

		// 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 NewDescribeModifyInstanceBundlesResponse

func NewDescribeModifyInstanceBundlesResponse() (response *DescribeModifyInstanceBundlesResponse)

func (*DescribeModifyInstanceBundlesResponse) FromJsonString

func (r *DescribeModifyInstanceBundlesResponse) 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 (*DescribeModifyInstanceBundlesResponse) ToJsonString

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 *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Region information list.
		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 DescribeResetInstanceBlueprintsRequest

type DescribeResetInstanceBlueprintsRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Offset. Default value: 0. For more information on `Offset`, please see the relevant section in [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, please see the relevant section in the API [Overview](https://intl.cloud.tencent.com/document/product/1207/47578?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// Filter list
	// <li>blueprint-id</li>Filter by **image ID**.
	// Type: String
	// Required: no
	// <li>blueprint-type</li>Filter by **image type**.
	// Valid values: `APP_OS`: application image; `PURE_OS`: system image; `PRIVATE`: custom image
	// Type: String
	// Required: no
	// <li>platform-type</li>Filter by **image platform type**.
	// Valid values: `LINUX_UNIX`: Linux or Unix; `WINDOWS`: Windows
	// Type: String
	// Required: no
	// <li>blueprint-name</li>Filter by **image name**.
	// Type: String
	// Required: no
	// <li>blueprint-state</li>Filter by **image status**.
	// Type: String
	// Required: no
	//
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeResetInstanceBlueprintsRequest

func NewDescribeResetInstanceBlueprintsRequest() (request *DescribeResetInstanceBlueprintsRequest)

func (*DescribeResetInstanceBlueprintsRequest) FromJsonString

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

func (*DescribeResetInstanceBlueprintsRequest) ToJsonString

type DescribeResetInstanceBlueprintsResponse

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

		// Number of eligible images.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Image reset information list
		ResetInstanceBlueprintSet []*ResetInstanceBlueprint `json:"ResetInstanceBlueprintSet,omitempty" name:"ResetInstanceBlueprintSet"`

		// 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 NewDescribeResetInstanceBlueprintsResponse

func NewDescribeResetInstanceBlueprintsResponse() (response *DescribeResetInstanceBlueprintsResponse)

func (*DescribeResetInstanceBlueprintsResponse) FromJsonString

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

func (*DescribeResetInstanceBlueprintsResponse) ToJsonString

type DescribeSnapshotsDeniedActionsRequest

type DescribeSnapshotsDeniedActionsRequest struct {
	*tchttp.BaseRequest

	// Snapshot ID list, which can be queried through `DescribeSnapshots`.
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"`
}

func NewDescribeSnapshotsDeniedActionsRequest

func NewDescribeSnapshotsDeniedActionsRequest() (request *DescribeSnapshotsDeniedActionsRequest)

func (*DescribeSnapshotsDeniedActionsRequest) FromJsonString

func (r *DescribeSnapshotsDeniedActionsRequest) 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 (*DescribeSnapshotsDeniedActionsRequest) ToJsonString

type DescribeSnapshotsDeniedActionsResponse

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

		// List of snapshot operation limit details.
		SnapshotDeniedActionSet []*SnapshotDeniedActions `json:"SnapshotDeniedActionSet,omitempty" name:"SnapshotDeniedActionSet"`

		// 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 NewDescribeSnapshotsDeniedActionsResponse

func NewDescribeSnapshotsDeniedActionsResponse() (response *DescribeSnapshotsDeniedActionsResponse)

func (*DescribeSnapshotsDeniedActionsResponse) FromJsonString

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

func (*DescribeSnapshotsDeniedActionsResponse) ToJsonString

type DescribeSnapshotsRequest

type DescribeSnapshotsRequest struct {
	*tchttp.BaseRequest

	// List of IDs of snapshots to be queried.
	// You cannot specify `SnapshotIds` and `Filters` at the same time.
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"`

	// Filter list.
	// <li>snapshot-id</li>Filter by **snapshot ID**.
	// Type: String
	// Required: no
	// <li>disk-id</li>Filter by **disk ID**.
	// Type: String
	// Required: no
	// <li>snapshot-name</li>Filter by **snapshot name**.
	// Type: String
	// Required: no
	// <li>instance-id</li>Filter by **instance ID**.
	// Type: String
	// Required: no
	// Each request can contain up to 10 `Filters` and 5 `Filter.Values`. You cannot specify both `SnapshotIds` and `Filters` at the same time.
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// Offset. Default value: 0.
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeSnapshotsRequest

func NewDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest)

func (*DescribeSnapshotsRequest) FromJsonString

func (r *DescribeSnapshotsRequest) 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 (*DescribeSnapshotsRequest) ToJsonString

func (r *DescribeSnapshotsRequest) ToJsonString() string

type DescribeSnapshotsResponse

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

		// Number of snapshots.
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of snapshot details.
		SnapshotSet []*Snapshot `json:"SnapshotSet,omitempty" name:"SnapshotSet"`

		// 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 NewDescribeSnapshotsResponse

func NewDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse)

func (*DescribeSnapshotsResponse) FromJsonString

func (r *DescribeSnapshotsResponse) 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 (*DescribeSnapshotsResponse) ToJsonString

func (r *DescribeSnapshotsResponse) ToJsonString() string

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 AZs
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of AZ details
		ZoneInfoSet []*ZoneInfo `json:"ZoneInfoSet,omitempty" name:"ZoneInfoSet"`

		// 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 DetachCcnRequest

type DetachCcnRequest struct {
	*tchttp.BaseRequest

	// CCN instance ID.
	CcnId *string `json:"CcnId,omitempty" name:"CcnId"`
}

func NewDetachCcnRequest

func NewDetachCcnRequest() (request *DetachCcnRequest)

func (*DetachCcnRequest) FromJsonString

func (r *DetachCcnRequest) 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 (*DetachCcnRequest) ToJsonString

func (r *DetachCcnRequest) ToJsonString() string

type DetachCcnResponse

type DetachCcnResponse 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 NewDetachCcnResponse

func NewDetachCcnResponse() (response *DetachCcnResponse)

func (*DetachCcnResponse) FromJsonString

func (r *DetachCcnResponse) 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 (*DetachCcnResponse) ToJsonString

func (r *DetachCcnResponse) ToJsonString() string

type DisassociateInstancesKeyPairsRequest

type DisassociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// Key pair ID list. Each request can contain up to 100 key pairs.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

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 Filter

type Filter struct {

	// Field to be filtered.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Filter value of field.
	Values []*string `json:"Values,omitempty" name:"Values"`
}

type FirewallRule

type FirewallRule struct {

	// Protocol. Valid values: TCP, UDP, ICMP, ALL.
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// Port. Valid values: ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign
	Port *string `json:"Port,omitempty" name:"Port"`

	// IP range or IP (mutually exclusive). Default value: 0.0.0.0/0, which indicates all sources.
	CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"`

	// Valid values: ACCEPT, DROP. Default value: ACCEPT.
	Action *string `json:"Action,omitempty" name:"Action"`

	// Firewall rule description.
	FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"`
}

type FirewallRuleInfo

type FirewallRuleInfo struct {

	// Application type. Valid values: custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
	AppType *string `json:"AppType,omitempty" name:"AppType"`

	// Protocol. Valid values: TCP, UDP, ICMP, ALL.
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// Port. Valid values: ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign
	Port *string `json:"Port,omitempty" name:"Port"`

	// IP range or IP (mutually exclusive). Default value: 0.0.0.0/0, which indicates all sources.
	CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"`

	// Valid values: ACCEPT, DROP. Default value: ACCEPT.
	Action *string `json:"Action,omitempty" name:"Action"`

	// Firewall rule description.
	FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"`
}

type GeneralResourceQuota

type GeneralResourceQuota struct {

	// Resource name.
	ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"`

	// Number of available resources.
	ResourceQuotaAvailable *int64 `json:"ResourceQuotaAvailable,omitempty" name:"ResourceQuotaAvailable"`

	// Total number of resources.
	ResourceQuotaTotal *int64 `json:"ResourceQuotaTotal,omitempty" name:"ResourceQuotaTotal"`
}

type ImportKeyPairRequest

type ImportKeyPairRequest struct {
	*tchttp.BaseRequest

	// Key pair name, which can contain up to 25 digits, letters, and underscores.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// Public key content of the key pair, which is 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 InquirePriceCreateBlueprintRequest

type InquirePriceCreateBlueprintRequest struct {
	*tchttp.BaseRequest

	// Number of custom images. Default value: 1.
	BlueprintCount *int64 `json:"BlueprintCount,omitempty" name:"BlueprintCount"`
}

func NewInquirePriceCreateBlueprintRequest

func NewInquirePriceCreateBlueprintRequest() (request *InquirePriceCreateBlueprintRequest)

func (*InquirePriceCreateBlueprintRequest) FromJsonString

func (r *InquirePriceCreateBlueprintRequest) 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 (*InquirePriceCreateBlueprintRequest) ToJsonString

func (r *InquirePriceCreateBlueprintRequest) ToJsonString() string

type InquirePriceCreateBlueprintResponse

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

		// Custom image price.
		BlueprintPrice *BlueprintPrice `json:"BlueprintPrice,omitempty" name:"BlueprintPrice"`

		// 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 NewInquirePriceCreateBlueprintResponse

func NewInquirePriceCreateBlueprintResponse() (response *InquirePriceCreateBlueprintResponse)

func (*InquirePriceCreateBlueprintResponse) FromJsonString

func (r *InquirePriceCreateBlueprintResponse) 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 (*InquirePriceCreateBlueprintResponse) ToJsonString

func (r *InquirePriceCreateBlueprintResponse) ToJsonString() string

type InquirePriceCreateInstancesRequest

type InquirePriceCreateInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance package ID.
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// Number of instances to be created. Default value: 1.
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances.
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`

	// Application image ID, which is required if a paid application image is used and can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API.
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`
}

func NewInquirePriceCreateInstancesRequest

func NewInquirePriceCreateInstancesRequest() (request *InquirePriceCreateInstancesRequest)

func (*InquirePriceCreateInstancesRequest) FromJsonString

func (r *InquirePriceCreateInstancesRequest) 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 (*InquirePriceCreateInstancesRequest) ToJsonString

func (r *InquirePriceCreateInstancesRequest) ToJsonString() string

type InquirePriceCreateInstancesResponse

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

		// Price query information.
		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 NewInquirePriceCreateInstancesResponse

func NewInquirePriceCreateInstancesResponse() (response *InquirePriceCreateInstancesResponse)

func (*InquirePriceCreateInstancesResponse) FromJsonString

func (r *InquirePriceCreateInstancesResponse) 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 (*InquirePriceCreateInstancesResponse) ToJsonString

func (r *InquirePriceCreateInstancesResponse) ToJsonString() string

type InquirePriceRenewInstancesRequest

type InquirePriceRenewInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance to be renewed.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Prepaid mode, i.e., monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. It is required for prepaid instances.
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`
}

func NewInquirePriceRenewInstancesRequest

func NewInquirePriceRenewInstancesRequest() (request *InquirePriceRenewInstancesRequest)

func (*InquirePriceRenewInstancesRequest) FromJsonString

func (r *InquirePriceRenewInstancesRequest) 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 (*InquirePriceRenewInstancesRequest) ToJsonString

func (r *InquirePriceRenewInstancesRequest) ToJsonString() string

type InquirePriceRenewInstancesResponse

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

		// Price query information.
		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 NewInquirePriceRenewInstancesResponse

func NewInquirePriceRenewInstancesResponse() (response *InquirePriceRenewInstancesResponse)

func (*InquirePriceRenewInstancesResponse) FromJsonString

func (r *InquirePriceRenewInstancesResponse) 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 (*InquirePriceRenewInstancesResponse) ToJsonString

func (r *InquirePriceRenewInstancesResponse) ToJsonString() string

type Instance

type Instance struct {

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Package ID.
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// Image ID.
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// Number of instance CPU cores.
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// Instance memory capacity in GB.
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// Instance name.
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// Instance billing mode. Valid values:
	// PREPAID: prepaid (i.e., monthly subscription).
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// Instance system disk information.
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// Private IP of instance primary ENI.
	// Note: this field may return null, indicating that no valid values can be obtained.
	PrivateAddresses []*string `json:"PrivateAddresses,omitempty" name:"PrivateAddresses"`

	// Public IP of instance primary ENI.
	// Note: this field may return null, indicating that no valid values can be obtained.
	PublicAddresses []*string `json:"PublicAddresses,omitempty" name:"PublicAddresses"`

	// Instance bandwidth information.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// Auto-Renewal flag. Valid values:
	// NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically
	// NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`

	// Instance login settings.
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// Instance status. Valid values:
	// <li>PENDING: creating</li><li>LAUNCH_FAILED: creation failed</li><li>RUNNING: running</li><li>STOPPED: shut down</li><li>STARTING: starting</li><li>STOPPING: shutting down</li><li>REBOOTING: rebooting</li><li>SHUTDOWN: shut down and to be terminated</li><li>TERMINATING: terminating</li>
	InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"`

	// Globally unique ID of instance.
	Uuid *string `json:"Uuid,omitempty" name:"Uuid"`

	// Last instance operation, such as `StopInstances` and `ResetInstance`. Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"`

	// Last instance operation status. Valid values:
	// SUCCESS: operation succeeded
	// OPERATING: the operation is being executed
	// FAILED: operation failed
	// Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`

	// Unique request ID for the last operation of the instance.
	// Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"`

	// Isolation time according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"`

	// Creation time according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Expiration time according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"`

	// OS type, such as LINUX_UNIX and WINDOWS.
	PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"`

	// OS type.
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// OS name.
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// AZ.
	Zone *string `json:"Zone,omitempty" name:"Zone"`
}

type InstanceChargePrepaid

type InstanceChargePrepaid struct {

	// Subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60.
	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. You need to manually renew <br><li>DISABLE_NOTIFY_AND_AUTO_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 monthly if the account balance is sufficient.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

type InstanceDeniedActions

type InstanceDeniedActions struct {

	// Instance ID.
	// Note: this field may return null, indicating that no valid values can be obtained.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// List of operation limits.
	DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions"`
}

type InstancePrice

type InstancePrice struct {

	// Original package unit price.
	OriginalBundlePrice *float64 `json:"OriginalBundlePrice,omitempty" name:"OriginalBundlePrice"`

	// Original price.
	OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

	// Discount.
	Discount *int64 `json:"Discount,omitempty" name:"Discount"`

	// Discounted price.
	DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"`
}

type InstanceReturnable

type InstanceReturnable struct {

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Whether the instance can be returned.
	IsReturnable *bool `json:"IsReturnable,omitempty" name:"IsReturnable"`

	// Error code of instance return failure.
	ReturnFailCode *int64 `json:"ReturnFailCode,omitempty" name:"ReturnFailCode"`

	// Error message of instance return failure.
	ReturnFailMessage *string `json:"ReturnFailMessage,omitempty" name:"ReturnFailMessage"`
}

type InstanceTrafficPackage

type InstanceTrafficPackage struct {

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// List of traffic package details.
	TrafficPackageSet []*TrafficPackage `json:"TrafficPackageSet,omitempty" name:"TrafficPackageSet"`
}

type InternetAccessible

type InternetAccessible struct {

	// Network billing mode. Valid values:
	// <li>Bill by traffic package: TRAFFIC_POSTPAID_BY_HOUR</li>
	// <li>Bill by bandwidth: BANDWIDTH_POSTPAID_BY_HOUR</li>
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// Public network outbound bandwidth cap in Mbps.
	InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`

	// Whether to assign a public IP.
	PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"`
}

type KeyPair

type KeyPair struct {

	// Key pair ID, which is the unique identifier of a key pair.
	KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

	// Key pair name.
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// Public key (in plain text) of key pair.
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`

	// List of IDs of instances associated with the key pair.
	// Note: this field may return null, indicating that no valid values can be obtained.
	AssociatedInstanceIds []*string `json:"AssociatedInstanceIds,omitempty" name:"AssociatedInstanceIds"`

	// Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used
	// Note: this field may return null, indicating that no valid values can be obtained.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// Private key of key pair.
	// Note: this field may return null, indicating that no valid values can be obtained.
	PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"`
}

type LoginSettings

type LoginSettings struct {

	// Key ID list. After a key is associated, you can use it to access the instance. Note: this field may return [], indicating that no valid values can be obtained.
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`
}

type ModifyBlueprintAttributeRequest

type ModifyBlueprintAttributeRequest struct {
	*tchttp.BaseRequest

	// Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API.
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// New image name, which can contain up to 60 characters.
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// New image description, which can contain up to 60 characters.
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewModifyBlueprintAttributeRequest

func NewModifyBlueprintAttributeRequest() (request *ModifyBlueprintAttributeRequest)

func (*ModifyBlueprintAttributeRequest) FromJsonString

func (r *ModifyBlueprintAttributeRequest) 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 (*ModifyBlueprintAttributeRequest) ToJsonString

func (r *ModifyBlueprintAttributeRequest) ToJsonString() string

type ModifyBlueprintAttributeResponse

type ModifyBlueprintAttributeResponse 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 NewModifyBlueprintAttributeResponse

func NewModifyBlueprintAttributeResponse() (response *ModifyBlueprintAttributeResponse)

func (*ModifyBlueprintAttributeResponse) FromJsonString

func (r *ModifyBlueprintAttributeResponse) 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 (*ModifyBlueprintAttributeResponse) ToJsonString

func (r *ModifyBlueprintAttributeResponse) ToJsonString() string

type ModifyBundle

type ModifyBundle struct {

	// Price difference that you need to pay for the new instance package after change.
	ModifyPrice *Price `json:"ModifyPrice,omitempty" name:"ModifyPrice"`

	// Package change status. Valid values:
	// <li>SOLD_OUT: packages are sold out</li>
	// <li>AVAILABLE: packages can be changed</li>
	// <li>UNAVAILABLE: packages cannot be changed currently</li>
	ModifyBundleState *string `json:"ModifyBundleState,omitempty" name:"ModifyBundleState"`

	// Package information.
	Bundle *Bundle `json:"Bundle,omitempty" name:"Bundle"`
}

type ModifyFirewallRuleDescriptionRequest

type ModifyFirewallRuleDescriptionRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Firewall rule.
	FirewallRule *FirewallRule `json:"FirewallRule,omitempty" name:"FirewallRule"`

	// Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered.
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewModifyFirewallRuleDescriptionRequest

func NewModifyFirewallRuleDescriptionRequest() (request *ModifyFirewallRuleDescriptionRequest)

func (*ModifyFirewallRuleDescriptionRequest) FromJsonString

func (r *ModifyFirewallRuleDescriptionRequest) 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 (*ModifyFirewallRuleDescriptionRequest) ToJsonString

func (r *ModifyFirewallRuleDescriptionRequest) ToJsonString() string

type ModifyFirewallRuleDescriptionResponse

type ModifyFirewallRuleDescriptionResponse 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 NewModifyFirewallRuleDescriptionResponse

func NewModifyFirewallRuleDescriptionResponse() (response *ModifyFirewallRuleDescriptionResponse)

func (*ModifyFirewallRuleDescriptionResponse) FromJsonString

func (r *ModifyFirewallRuleDescriptionResponse) 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 (*ModifyFirewallRuleDescriptionResponse) ToJsonString

type ModifyFirewallRulesRequest

type ModifyFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// Instance ID.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Firewall rule list.
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules"`

	// Current firewall version number. Every time you update the firewall rule version, it will be automatically increased by 1 to prevent the rule from expiring. If it is left empty, conflicts will not be considered.
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewModifyFirewallRulesRequest

func NewModifyFirewallRulesRequest() (request *ModifyFirewallRulesRequest)

func (*ModifyFirewallRulesRequest) FromJsonString

func (r *ModifyFirewallRulesRequest) 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 (*ModifyFirewallRulesRequest) ToJsonString

func (r *ModifyFirewallRulesRequest) ToJsonString() string

type ModifyFirewallRulesResponse

type ModifyFirewallRulesResponse 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 NewModifyFirewallRulesResponse

func NewModifyFirewallRulesResponse() (response *ModifyFirewallRulesResponse)

func (*ModifyFirewallRulesResponse) FromJsonString

func (r *ModifyFirewallRulesResponse) 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 (*ModifyFirewallRulesResponse) ToJsonString

func (r *ModifyFirewallRulesResponse) ToJsonString() string

type ModifyInstancesAttributeRequest

type ModifyInstancesAttributeRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Instance name, which is customizable and can contain up to 60 characters.
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
}

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 ModifyInstancesLoginKeyPairAttributeRequest

type ModifyInstancesLoginKeyPairAttributeRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Whether to allow login with the default key pair. Valid values: YES: yes; NO: no.
	PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"`
}

func NewModifyInstancesLoginKeyPairAttributeRequest

func NewModifyInstancesLoginKeyPairAttributeRequest() (request *ModifyInstancesLoginKeyPairAttributeRequest)

func (*ModifyInstancesLoginKeyPairAttributeRequest) FromJsonString

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

func (*ModifyInstancesLoginKeyPairAttributeRequest) ToJsonString

type ModifyInstancesLoginKeyPairAttributeResponse

type ModifyInstancesLoginKeyPairAttributeResponse 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 NewModifyInstancesLoginKeyPairAttributeResponse

func NewModifyInstancesLoginKeyPairAttributeResponse() (response *ModifyInstancesLoginKeyPairAttributeResponse)

func (*ModifyInstancesLoginKeyPairAttributeResponse) FromJsonString

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

func (*ModifyInstancesLoginKeyPairAttributeResponse) ToJsonString

type ModifyInstancesRenewFlagRequest

type ModifyInstancesRenewFlagRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// 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 monthly if the account balance is sufficient.
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

func NewModifyInstancesRenewFlagRequest

func NewModifyInstancesRenewFlagRequest() (request *ModifyInstancesRenewFlagRequest)

func (*ModifyInstancesRenewFlagRequest) FromJsonString

func (r *ModifyInstancesRenewFlagRequest) 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 (*ModifyInstancesRenewFlagRequest) ToJsonString

func (r *ModifyInstancesRenewFlagRequest) ToJsonString() string

type ModifyInstancesRenewFlagResponse

type ModifyInstancesRenewFlagResponse 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 NewModifyInstancesRenewFlagResponse

func NewModifyInstancesRenewFlagResponse() (response *ModifyInstancesRenewFlagResponse)

func (*ModifyInstancesRenewFlagResponse) FromJsonString

func (r *ModifyInstancesRenewFlagResponse) 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 (*ModifyInstancesRenewFlagResponse) ToJsonString

func (r *ModifyInstancesRenewFlagResponse) ToJsonString() string

type ModifySnapshotAttributeRequest

type ModifySnapshotAttributeRequest struct {
	*tchttp.BaseRequest

	// Snapshot ID, which can be queried through `DescribeSnapshots`.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// New snapshot name, which can contain up to 60 characters.
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`
}

func NewModifySnapshotAttributeRequest

func NewModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest)

func (*ModifySnapshotAttributeRequest) FromJsonString

func (r *ModifySnapshotAttributeRequest) 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 (*ModifySnapshotAttributeRequest) ToJsonString

func (r *ModifySnapshotAttributeRequest) ToJsonString() string

type ModifySnapshotAttributeResponse

type ModifySnapshotAttributeResponse 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 NewModifySnapshotAttributeResponse

func NewModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse)

func (*ModifySnapshotAttributeResponse) FromJsonString

func (r *ModifySnapshotAttributeResponse) 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 (*ModifySnapshotAttributeResponse) ToJsonString

func (r *ModifySnapshotAttributeResponse) ToJsonString() string

type Price

type Price struct {

	// Instance price.
	InstancePrice *InstancePrice `json:"InstancePrice,omitempty" name:"InstancePrice"`
}

type RebootInstancesRequest

type RebootInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

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"`

	// Region availability status. Its value can only be `AVAILABLE`.
	RegionState *string `json:"RegionState,omitempty" name:"RegionState"`

	// Whether the region is in the Chinese mainland
	IsChinaMainland *bool `json:"IsChinaMainland,omitempty" name:"IsChinaMainland"`
}

type ResetAttachCcnRequest

type ResetAttachCcnRequest struct {
	*tchttp.BaseRequest

	// CCN instance ID.
	CcnId *string `json:"CcnId,omitempty" name:"CcnId"`
}

func NewResetAttachCcnRequest

func NewResetAttachCcnRequest() (request *ResetAttachCcnRequest)

func (*ResetAttachCcnRequest) FromJsonString

func (r *ResetAttachCcnRequest) 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 (*ResetAttachCcnRequest) ToJsonString

func (r *ResetAttachCcnRequest) ToJsonString() string

type ResetAttachCcnResponse

type ResetAttachCcnResponse 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 NewResetAttachCcnResponse

func NewResetAttachCcnResponse() (response *ResetAttachCcnResponse)

func (*ResetAttachCcnResponse) FromJsonString

func (r *ResetAttachCcnResponse) 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 (*ResetAttachCcnResponse) ToJsonString

func (r *ResetAttachCcnResponse) ToJsonString() string

type ResetInstanceBlueprint

type ResetInstanceBlueprint struct {

	// Image details
	BlueprintInfo *Blueprint `json:"BlueprintInfo,omitempty" name:"BlueprintInfo"`

	// Whether the image can be reset as the target image
	IsResettable *bool `json:"IsResettable,omitempty" name:"IsResettable"`

	// Non-Resettable flag. If the image is resettable, it will be ""
	NonResettableMessage *string `json:"NonResettableMessage,omitempty" name:"NonResettableMessage"`
}

type ResetInstanceRequest

type ResetInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// Image ID, which can be obtained from the `BlueprintId` returned by the [DescribeBlueprints](https://intl.cloud.tencent.com/document/product/1207/47689?from_cn_redirect=1) API.
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`
}

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 ResetInstancesPasswordRequest

type ResetInstancesPasswordRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`

	// Login password of the instance(s). The password requirements vary among different operating systems:
	// The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li>
	// The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username: <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
	Password *string `json:"Password,omitempty" name:"Password"`

	// OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
	UserName *string `json:"UserName,omitempty" name:"UserName"`
}

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 Snapshot

type Snapshot struct {

	// Snapshot ID.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// Type of the disk for which the snapshot is created. Valid values: <li>SYSTEM_DISK: system disk</li>
	DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"`

	// ID of the disk for which the snapshot is created.
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`

	// Size of the disk in GB for which the snapshot is created.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// Snapshot name, which is a custom snapshot alias.
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`

	// Snapshot status. Valid values:
	// <li>NORMAL: normal </li>
	// <li>CREATING: creating</li>
	// <li>ROLLBACKING: rolling back</li>
	SnapshotState *string `json:"SnapshotState,omitempty" name:"SnapshotState"`

	// Snapshot creation or rollback progress in percentage. After success, the value of this field will become 100.
	Percent *int64 `json:"Percent,omitempty" name:"Percent"`

	// Last snapshot operation. It is recorded only during snapshot creation and rollback.
	// Example values: CreateInstanceSnapshot, RollbackInstanceSnapshot.
	// Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"`

	// Last snapshot operation status. It is recorded only during snapshot creation and rollback.
	// Valid values:
	// <li>SUCCESS: operation succeeded</li>
	// <li>OPERATING: the operation is being executed</li>
	// <li>FAILED: operation failed</li>
	// Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`

	// Unique request ID for the last snapshot operation. It is recorded only during snapshot creation and rollback.
	// Note: this field may return null, indicating that no valid values can be obtained.
	LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"`

	// Snapshot creation time.
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
}

type SnapshotDeniedActions

type SnapshotDeniedActions struct {

	// Snapshot ID.
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// List of operation limits.
	DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions"`
}

type Software

type Software struct {

	// Software name.
	Name *string `json:"Name,omitempty" name:"Name"`

	// Software version.
	Version *string `json:"Version,omitempty" name:"Version"`

	// Software picture URL.
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// Software installation directory.
	InstallDir *string `json:"InstallDir,omitempty" name:"InstallDir"`

	// List of software details.
	DetailSet []*SoftwareDetail `json:"DetailSet,omitempty" name:"DetailSet"`
}

type SoftwareDetail

type SoftwareDetail struct {

	// Unique detail key
	Key *string `json:"Key,omitempty" name:"Key"`

	// Detail title.
	Title *string `json:"Title,omitempty" name:"Title"`

	// Detail value.
	Value *string `json:"Value,omitempty" name:"Value"`
}

type StartInstancesRequest

type StartInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	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 list. Each request can contain up to 100 instances at a time. You can get an instance ID from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}

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 SystemDisk

type SystemDisk struct {

	// System disk type.
	// Valid values:
	// <li> LOCAL_BASIC: local disk</li><li> LOCAL_SSD: local SSD disk</li><li> CLOUD_BASIC: HDD cloud disk</li><li> CLOUD_SSD: SSD cloud disk</li><li> CLOUD_PREMIUM: Premium Cloud Storage</li>
	DiskType *string `json:"DiskType,omitempty" name:"DiskType"`

	// System disk size in GB.
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// System disk ID.
	// Note: this field may return null, indicating that no valid values can be obtained.
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`
}

type TerminateInstancesRequest

type TerminateInstancesRequest struct {
	*tchttp.BaseRequest

	// Instance ID list, which can be obtained from the `InstanceId` returned by the [DescribeInstances](https://intl.cloud.tencent.com/document/api/1207/47573?from_cn_redirect=1) API.
	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 TrafficPackage

type TrafficPackage struct {

	// Traffic package ID.
	TrafficPackageId *string `json:"TrafficPackageId,omitempty" name:"TrafficPackageId"`

	// Used traffic in bytes during traffic package validity period.
	TrafficUsed *int64 `json:"TrafficUsed,omitempty" name:"TrafficUsed"`

	// Total traffic in bytes during traffic package validity period.
	TrafficPackageTotal *int64 `json:"TrafficPackageTotal,omitempty" name:"TrafficPackageTotal"`

	// Remaining traffic in bytes during traffic package validity period.
	TrafficPackageRemaining *int64 `json:"TrafficPackageRemaining,omitempty" name:"TrafficPackageRemaining"`

	// Traffic exceeding package amount in bytes during traffic package validity period.
	TrafficOverflow *int64 `json:"TrafficOverflow,omitempty" name:"TrafficOverflow"`

	// Start time of traffic package validity period according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// End time of traffic package validity period according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// Traffic package expiration time according to ISO 8601 standard. UTC time is used.
	// Format: YYYY-MM-DDThh:mm:ssZ.
	// Note: this field may return null, indicating that no valid values can be obtained.
	Deadline *string `json:"Deadline,omitempty" name:"Deadline"`

	// Traffic package status:
	// <li>NETWORK_NORMAL: normal</li>
	// <li>OVERDUE_NETWORK_DISABLED: the network is disconnected due to overdue payments</li>
	Status *string `json:"Status,omitempty" name:"Status"`
}

type ZoneInfo

type ZoneInfo struct {

	// AZ
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// Chinese name of AZ
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// AZ tags on instance purchase page
	InstanceDisplayLabel *string `json:"InstanceDisplayLabel,omitempty" name:"InstanceDisplayLabel"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL