v20200324

package
v1.0.154 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 23

Documentation

Index

Constants

View Source
const APIVersion = "2020-03-24"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyInstanceSnapshotRequest added in v1.0.132

type ApplyInstanceSnapshotRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 快照 ID。
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`
}

func NewApplyInstanceSnapshotRequest added in v1.0.132

func NewApplyInstanceSnapshotRequest() (request *ApplyInstanceSnapshotRequest)

func (*ApplyInstanceSnapshotRequest) FromJsonString added in v1.0.132

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

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

func (*ApplyInstanceSnapshotRequest) ToJsonString added in v1.0.132

func (r *ApplyInstanceSnapshotRequest) ToJsonString() string

type ApplyInstanceSnapshotResponse added in v1.0.132

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewApplyInstanceSnapshotResponse added in v1.0.132

func NewApplyInstanceSnapshotResponse() (response *ApplyInstanceSnapshotResponse)

func (*ApplyInstanceSnapshotResponse) FromJsonString added in v1.0.132

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

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

func (*ApplyInstanceSnapshotResponse) ToJsonString added in v1.0.132

func (r *ApplyInstanceSnapshotResponse) ToJsonString() string

type AssociateInstancesKeyPairsRequest added in v1.0.153

type AssociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// 密钥对 ID 列表。每次请求批量密钥对的上限为 100。
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list`

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewAssociateInstancesKeyPairsRequest added in v1.0.153

func NewAssociateInstancesKeyPairsRequest() (request *AssociateInstancesKeyPairsRequest)

func (*AssociateInstancesKeyPairsRequest) FromJsonString added in v1.0.153

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

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

func (*AssociateInstancesKeyPairsRequest) ToJsonString added in v1.0.153

func (r *AssociateInstancesKeyPairsRequest) ToJsonString() string

type AssociateInstancesKeyPairsResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAssociateInstancesKeyPairsResponse added in v1.0.153

func NewAssociateInstancesKeyPairsResponse() (response *AssociateInstancesKeyPairsResponse)

func (*AssociateInstancesKeyPairsResponse) FromJsonString added in v1.0.153

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

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

func (*AssociateInstancesKeyPairsResponse) ToJsonString added in v1.0.153

func (r *AssociateInstancesKeyPairsResponse) ToJsonString() string

type Blueprint added in v1.0.4

type Blueprint struct {

	// 镜像 ID  ,是 Blueprint 的唯一标识。
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// 镜像对外展示标题。
	DisplayTitle *string `json:"DisplayTitle,omitempty" name:"DisplayTitle"`

	// 镜像对外展示版本。
	DisplayVersion *string `json:"DisplayVersion,omitempty" name:"DisplayVersion"`

	// 镜像描述信息。
	Description *string `json:"Description,omitempty" name:"Description"`

	// 操作系统名称。
	OsName *string `json:"OsName,omitempty" name:"OsName"`

	// 操作系统平台。
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// 操作系统平台类型,如 LINUX_UNIX、WINDOWS。
	PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"`

	// 镜像类型,如 APP_OS、PURE_OS、PRIVATE。
	BlueprintType *string `json:"BlueprintType,omitempty" name:"BlueprintType"`

	// 镜像图片 URL。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// 镜像所需系统盘大小。
	RequiredSystemDiskSize *int64 `json:"RequiredSystemDiskSize,omitempty" name:"RequiredSystemDiskSize"`

	// 镜像状态。
	BlueprintState *string `json:"BlueprintState,omitempty" name:"BlueprintState"`

	// 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// 镜像名称。
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// 镜像是否支持自动化助手。
	SupportAutomationTools *bool `json:"SupportAutomationTools,omitempty" name:"SupportAutomationTools"`

	// 镜像所需内存大小, 单位: GB
	RequiredMemorySize *int64 `json:"RequiredMemorySize,omitempty" name:"RequiredMemorySize"`
}

type BlueprintInstance added in v1.0.153

type BlueprintInstance struct {

	// 镜像信息。
	Blueprint *Blueprint `json:"Blueprint,omitempty" name:"Blueprint"`

	// 软件列表。
	SoftwareSet []*Software `json:"SoftwareSet,omitempty" name:"SoftwareSet" list`

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

type BlueprintPrice added in v1.0.153

type BlueprintPrice struct {

	// 镜像单价,原价。单位元。
	OriginalBlueprintPrice *float64 `json:"OriginalBlueprintPrice,omitempty" name:"OriginalBlueprintPrice"`

	// 镜像总价,原价。单位元。
	OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

	// 折扣。
	Discount *int64 `json:"Discount,omitempty" name:"Discount"`

	// 镜像折扣后总价。单位元。
	DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"`
}

type Bundle

type Bundle struct {

	// 套餐 ID。
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// 内存大小,单位 GB。
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// 系统盘类型。
	// 取值范围:
	// <li> LOCAL_BASIC:本地硬盘</li><li> LOCAL_SSD:本地 SSD 硬盘</li><li> CLOUD_BASIC:普通云硬盘</li><li> CLOUD_SSD:SSD 云硬盘</li><li> CLOUD_PREMIUM:高性能云硬盘</li>
	SystemDiskType *string `json:"SystemDiskType,omitempty" name:"SystemDiskType"`

	// 系统盘大小。
	SystemDiskSize *int64 `json:"SystemDiskSize,omitempty" name:"SystemDiskSize"`

	// 每月网络流量,单位 Gb。
	MonthlyTraffic *int64 `json:"MonthlyTraffic,omitempty" name:"MonthlyTraffic"`

	// 是否支持 Linux/Unix 平台。
	SupportLinuxUnixPlatform *bool `json:"SupportLinuxUnixPlatform,omitempty" name:"SupportLinuxUnixPlatform"`

	// 是否支持 Windows 平台。
	SupportWindowsPlatform *bool `json:"SupportWindowsPlatform,omitempty" name:"SupportWindowsPlatform"`

	// 套餐当前单位价格信息。
	Price *Price `json:"Price,omitempty" name:"Price"`

	// CPU 核数。
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// 峰值带宽,单位 Mbps。
	InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`

	// 网络计费类型。
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// 套餐售卖状态,取值:‘AVAILABLE’(可用) , ‘SOLD_OUT’(售罄)
	BundleSalesState *string `json:"BundleSalesState,omitempty" name:"BundleSalesState"`

	// 套餐类型。
	// 取值范围:
	// <li> GENERAL_BUNDLE:通用型</li><li> STORAGE_BUNDLE:存储型 </li>
	BundleType *string `json:"BundleType,omitempty" name:"BundleType"`

	// 套餐展示标签.
	// 取值范围:
	// "ACTIVITY": 活动套餐,
	// "NORMAL": 普通套餐
	// "CAREFREE": 无忧套餐
	BundleDisplayLabel *string `json:"BundleDisplayLabel,omitempty" name:"BundleDisplayLabel"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, 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 added in v1.0.132

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

本接口(ApplyInstanceSnapshot)用于回滚指定实例的系统盘快照。 <li>仅支持回滚到原系统盘。</li> <li>用于回滚的快照必须处于 NORMAL 状态。快照状态可以通 DescribeSnapshots 接口查询,见输出参数中 SnapshotState 字段解释。</li> <li>回滚快照时,实例的状态必须为 STOPPED 或 RUNNING,可通过 DescribeInstances 接口查询实例状态。处于 RUNNING 状态的实例会强制关机,然后回滚快照。</li>

func (*Client) AssociateInstancesKeyPairs added in v1.0.153

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

本接口(AssociateInstancesKeyPairs)用于绑定用户指定密钥对到实例。 * 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后绑定。 * 将密钥的公钥写入到实例的 SSH 配置当中,用户就可以通过该密钥的私钥来登录实例。 * 如果实例原来绑定过密钥,那么原来的密钥将失效。 * 如果实例原来是通过密码登录,绑定密钥后无法使用密码登录。 * 支持批量操作。每次请求批量实例的上限为 100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) CreateBlueprint added in v1.0.132

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

本接口 (CreateBlueprint) 用于创建镜像。

func (*Client) CreateFirewallRules added in v1.0.16

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

本接口(CreateFirewallRules)用于在实例上添加防火墙规则。

* FirewallVersion 为防火墙版本号,用户每次更新防火墙规则版本会自动加1,防止您更新的规则已过期,不填不考虑冲突。

在 FirewallRules 参数中: * Protocol 字段支持输入 TCP,UDP,ICMP,ALL。 * Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。 * CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。 * Action 字段只允许输入 ACCEPT 或 DROP。 * FirewallRuleDescription 字段长度不得超过 64。

func (*Client) CreateInstanceSnapshot added in v1.0.132

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

本接口(CreateInstanceSnapshot)用于创建指定实例的系统盘快照。

func (*Client) CreateKeyPair added in v1.0.153

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

本接口(CreateKeyPair)用于创建一个密钥对。

func (*Client) DeleteBlueprints added in v1.0.132

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

本接口 (DeleteBlueprints) 用于删除镜像。

func (*Client) DeleteFirewallRules added in v1.0.16

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

本接口(DeleteFirewallRules)用于删除实例的防火墙规则。

* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接删除指定的规则。

在 FirewallRules 参数中: * Protocol 字段支持输入 TCP,UDP,ICMP,ALL。 * Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。 * CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。 * Action 字段只允许输入 ACCEPT 或 DROP。 * FirewallRuleDescription 字段长度不得超过 64。

func (*Client) DeleteKeyPairs added in v1.0.153

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

本接口(DeleteKeyPairs)用于删除密钥对。

func (*Client) DeleteSnapshots added in v1.0.132

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

本接口(DeleteSnapshots)用于删除快照。 快照必须处于 NORMAL 状态,快照状态可以通过 DescribeSnapshots 接口查询,见输出参数中 SnapshotState 字段解释。

func (*Client) DescribeBlueprintInstances added in v1.0.153

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

本接口(DescribeBlueprintInstances)用于查询镜像实例信息。

func (*Client) DescribeBlueprints added in v1.0.4

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

本接口(DescribeBlueprints)用于查询镜像信息。

func (*Client) DescribeBundles

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

本接口(DescribeBundles)用于查询套餐信息。

func (*Client) DescribeFirewallRules added in v1.0.16

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

本接口(DescribeFirewallRules)用于查询实例的防火墙规则。

func (*Client) DescribeFirewallRulesTemplate added in v1.0.153

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

本接口(DescribeFirewallRulesTemplate)用于查询防火墙规则模版。

func (*Client) DescribeGeneralResourceQuotas added in v1.0.153

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

本接口(DescribeGeneralResourceQuotas)用于查询通用资源配额信息。

func (*Client) DescribeInstanceLoginKeyPairAttribute added in v1.0.153

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

本接口用于查询实例默认登录密钥属性。

func (*Client) DescribeInstanceVncUrl added in v1.0.153

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

本接口(DescribeInstanceVncUrl)用于查询实例管理终端地址,获取的地址可用于实例的 VNC 登录。

* 处于 RUNNING 状态的机器可使用此功能。 * 管理终端地址的有效期为 15 秒,调用接口成功后如果 15 秒内不使用该链接进行访问,管理终端地址自动失效,您需要重新查询。 * 管理终端地址一旦被访问,将自动失效,您需要重新查询。 * 如果连接断开,每分钟内重新连接的次数不能超过 30 次。

func (*Client) DescribeInstances

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

本接口(DescribeInstances)用于查询一个或多个实例的详细信息。

* 可以根据实例 ID、实例名称或者实例的内网 IP 查询实例的详细信息。 * 过滤信息详细请见过滤器 [Filters](https://cloud.tencent.com/document/product/1207/47576#Filter) 。 * 如果参数为空,返回当前用户一定数量(Limit 所指定的数量,默认为 20)的实例。 * 支持查询实例的最新操作(LatestOperation)以及最新操作状态(LatestOperationState)。

func (*Client) DescribeInstancesDeniedActions added in v1.0.153

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

本接口(DescribeInstancesDeniedActions)用于查询一个或多个实例的操作限制列表信息。

func (*Client) DescribeInstancesReturnable added in v1.0.153

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

本接口(DescribeInstancesReturnable)用于查询实例是否可退还。

func (*Client) DescribeInstancesTrafficPackages added in v1.0.26

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

本接口(DescribeInstancesTrafficPackages)用于查询一个或多个实例的流量包详情。

func (*Client) DescribeKeyPairs added in v1.0.153

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

本接口 (DescribeKeyPairs) 用于查询用户密钥对信息。

func (*Client) DescribeModifyInstanceBundles added in v1.0.153

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

本接口(DescribeModifyInstanceBundles)用于查询实例可变更套餐列表。

func (*Client) DescribeRegions added in v1.0.153

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

本接口(DescribeRegions)用于查询地域信息。

func (*Client) DescribeResetInstanceBlueprints added in v1.0.153

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

查询重置实例的镜像信息

func (*Client) DescribeSnapshots added in v1.0.132

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

本接口(DescribeSnapshots)用于查询快照的详细信息。

func (*Client) DescribeSnapshotsDeniedActions added in v1.0.153

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

本接口(DescribeSnapshotsDeniedActions)用于查询一个或多个快照的操作限制列表信息。

func (*Client) DisassociateInstancesKeyPairs added in v1.0.153

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

本接口(DisassociateInstancesKeyPairs)用于解除实例与指定密钥对的绑定关系。

* 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后解绑。 * 解绑密钥后,实例可以通过原来设置的密码登录。 * 如果原来没有设置密码,解绑后将无法使用 SSH 登录。可以调用 ResetInstancesPassword 接口来设置登录密码。 * 支持批量操作。每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) ImportKeyPair added in v1.0.153

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

本接口(ImportKeyPair)用于导入用户指定密钥对。

func (*Client) InquirePriceCreateBlueprint added in v1.0.153

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

本接口 (InquirePriceCreateBlueprint) 用于创建镜像询价。

func (*Client) InquirePriceCreateInstances added in v1.0.153

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

本接口(InquiryPriceCreateInstances)用于创建实例询价。

func (*Client) InquirePriceRenewInstances added in v1.0.153

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

本接口(InquirePriceCreateInstances)用于续费实例询价。

func (*Client) ModifyBlueprintAttribute added in v1.0.132

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

本接口 (ModifyBlueprintAttribute) 用于修改镜像属性。

func (*Client) ModifyFirewallRuleDescription added in v1.0.153

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

本接口(ModifyFirewallRuleDescription)用于修改单条防火墙规则描述。

* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接修改防火墙规则备注。

在 FirewallRule 参数中: * Protocol 字段支持输入 TCP,UDP,ICMP,ALL。 * Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。 * CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。 * Action 字段只允许输入 ACCEPT 或 DROP。 * FirewallRuleDescription 字段长度不得超过 64。

func (*Client) ModifyFirewallRules added in v1.0.153

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

本接口(ModifyFirewallRules)用于重置实例防火墙规则。

本接口先删除当前实例的所有防火墙规则,然后添加新的规则。

* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接重置防火墙规则。

在 FirewallRules 参数中: * Protocol 字段支持输入 TCP,UDP,ICMP,ALL。 * Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。 * CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。 * Action 字段只允许输入 ACCEPT 或 DROP。 * FirewallRuleDescription 字段长度不得超过 64。

func (*Client) ModifyInstancesAttribute added in v1.0.153

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

本接口(ModifyInstancesAttribute)用于修改实例的属性。 * “实例名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为提交工单或是进行实例管理操作的依据。 * 支持批量操作。每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) ModifyInstancesLoginKeyPairAttribute added in v1.0.153

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

本接口用于设置实例默认登录密钥对属性。

func (*Client) ModifyInstancesRenewFlag added in v1.0.153

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

本接口 (ModifyInstancesRenewFlag) 用于修改包年包月实例续费标识。

* 实例被标识为自动续费后,每次在实例到期时,会自动续费一个月。 * 支持批量操作。每次请求批量实例的上限为100。 * 实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) ModifySnapshotAttribute added in v1.0.132

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

本接口(ModifySnapshotAttribute)用于修改指定快照的属性。 <li>“快照名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为提交工单或是进行快照管理操作的依据。</li>

func (*Client) RebootInstances

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

本接口(RebootInstances)用于重启实例。

* 只有状态为 RUNNING 的实例才可以进行此操作。 * 接口调用成功时,实例会进入 REBOOTING 状态;重启实例成功时,实例会进入 RUNNING 状态。 * 支持批量操作,每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) ResetInstance

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

本接口(ResetInstance)用于重装指定实例上的镜像。

* 如果指定了 BlueprintId 参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。 * 系统盘将会被格式化,并重置;请确保系统盘中无重要文件。 * 目前不支持实例使用该接口实现 LINUX_UNIX 和 WINDOWS 操作系统切换。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) ResetInstancesPassword added in v1.0.153

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

本接口(ResetInstancesPassword)用于将实例操作系统的密码重置为用户指定的密码。 * 只修改管理员帐号的密码。实例的操作系统不同,管理员帐号也会不一样(Windows 为 Administrator,Ubuntu 为 ubuntu ,其它系统为 root)。 * 支持批量操作。将多个实例操作系统的密码重置为相同的密码。每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) StartInstances

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

本接口(StartInstances)用于启动一个或多个实例。

* 只有状态为 STOPPED 的实例才可以进行此操作。 * 接口调用成功时,实例会进入 STARTING 状态;启动实例成功时,实例会进入 RUNNING 状态。 * 支持批量操作。每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) StopInstances

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

本接口(StopInstances)用于关闭一个或多个实例。 * 只有状态为 RUNNING 的实例才可以进行此操作。 * 接口调用成功时,实例会进入 STOPPING 状态;关闭实例成功时,实例会进入 STOPPED 状态。 * 支持批量操作。每次请求批量实例的上限为 100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。

func (*Client) TerminateInstances added in v1.0.153

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

本接口 (TerminateInstances) 用于退还实例。

* 处于 SHUTDOWN 状态的实例,可通过本接口销毁,且不可恢复。 * 支持批量操作,每次请求批量实例的上限为100。 * 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态 (LatestOperationState) 为“SUCCESS”,则代表操作成功。

type CreateBlueprintRequest added in v1.0.132

type CreateBlueprintRequest struct {
	*tchttp.BaseRequest

	// 镜像名称。最大长度60。
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// 镜像描述。最大长度60。
	Description *string `json:"Description,omitempty" name:"Description"`

	// 需要制作镜像的实例ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewCreateBlueprintRequest added in v1.0.132

func NewCreateBlueprintRequest() (request *CreateBlueprintRequest)

func (*CreateBlueprintRequest) FromJsonString added in v1.0.132

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

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

func (*CreateBlueprintRequest) ToJsonString added in v1.0.132

func (r *CreateBlueprintRequest) ToJsonString() string

type CreateBlueprintResponse added in v1.0.132

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

		// 自定义镜像ID。
		BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateBlueprintResponse added in v1.0.132

func NewCreateBlueprintResponse() (response *CreateBlueprintResponse)

func (*CreateBlueprintResponse) FromJsonString added in v1.0.132

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

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

func (*CreateBlueprintResponse) ToJsonString added in v1.0.132

func (r *CreateBlueprintResponse) ToJsonString() string

type CreateFirewallRulesRequest added in v1.0.16

type CreateFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 防火墙规则列表。
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules" list`

	// 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewCreateFirewallRulesRequest added in v1.0.16

func NewCreateFirewallRulesRequest() (request *CreateFirewallRulesRequest)

func (*CreateFirewallRulesRequest) FromJsonString added in v1.0.16

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

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

func (*CreateFirewallRulesRequest) ToJsonString added in v1.0.16

func (r *CreateFirewallRulesRequest) ToJsonString() string

type CreateFirewallRulesResponse added in v1.0.16

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateFirewallRulesResponse added in v1.0.16

func NewCreateFirewallRulesResponse() (response *CreateFirewallRulesResponse)

func (*CreateFirewallRulesResponse) FromJsonString added in v1.0.16

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

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

func (*CreateFirewallRulesResponse) ToJsonString added in v1.0.16

func (r *CreateFirewallRulesResponse) ToJsonString() string

type CreateInstanceSnapshotRequest added in v1.0.132

type CreateInstanceSnapshotRequest struct {
	*tchttp.BaseRequest

	// 需要创建快照的实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 快照名称,最长为 60 个字符。
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`
}

func NewCreateInstanceSnapshotRequest added in v1.0.132

func NewCreateInstanceSnapshotRequest() (request *CreateInstanceSnapshotRequest)

func (*CreateInstanceSnapshotRequest) FromJsonString added in v1.0.132

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

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

func (*CreateInstanceSnapshotRequest) ToJsonString added in v1.0.132

func (r *CreateInstanceSnapshotRequest) ToJsonString() string

type CreateInstanceSnapshotResponse added in v1.0.132

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

		// 快照 ID。
		SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateInstanceSnapshotResponse added in v1.0.132

func NewCreateInstanceSnapshotResponse() (response *CreateInstanceSnapshotResponse)

func (*CreateInstanceSnapshotResponse) FromJsonString added in v1.0.132

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

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

func (*CreateInstanceSnapshotResponse) ToJsonString added in v1.0.132

func (r *CreateInstanceSnapshotResponse) ToJsonString() string

type CreateKeyPairRequest added in v1.0.153

type CreateKeyPairRequest struct {
	*tchttp.BaseRequest

	// 密钥对名称,可由数字,字母和下划线组成,长度不超过 25 个字符。
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`
}

func NewCreateKeyPairRequest added in v1.0.153

func NewCreateKeyPairRequest() (request *CreateKeyPairRequest)

func (*CreateKeyPairRequest) FromJsonString added in v1.0.153

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

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

func (*CreateKeyPairRequest) ToJsonString added in v1.0.153

func (r *CreateKeyPairRequest) ToJsonString() string

type CreateKeyPairResponse added in v1.0.153

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

		// 密钥对信息。
		KeyPair *KeyPair `json:"KeyPair,omitempty" name:"KeyPair"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateKeyPairResponse added in v1.0.153

func NewCreateKeyPairResponse() (response *CreateKeyPairResponse)

func (*CreateKeyPairResponse) FromJsonString added in v1.0.153

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

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

func (*CreateKeyPairResponse) ToJsonString added in v1.0.153

func (r *CreateKeyPairResponse) ToJsonString() string

type DeleteBlueprintsRequest added in v1.0.132

type DeleteBlueprintsRequest struct {
	*tchttp.BaseRequest

	// 镜像ID列表。镜像ID,可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值中的BlueprintId获取。
	BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds" list`
}

func NewDeleteBlueprintsRequest added in v1.0.132

func NewDeleteBlueprintsRequest() (request *DeleteBlueprintsRequest)

func (*DeleteBlueprintsRequest) FromJsonString added in v1.0.132

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

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

func (*DeleteBlueprintsRequest) ToJsonString added in v1.0.132

func (r *DeleteBlueprintsRequest) ToJsonString() string

type DeleteBlueprintsResponse added in v1.0.132

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteBlueprintsResponse added in v1.0.132

func NewDeleteBlueprintsResponse() (response *DeleteBlueprintsResponse)

func (*DeleteBlueprintsResponse) FromJsonString added in v1.0.132

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

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

func (*DeleteBlueprintsResponse) ToJsonString added in v1.0.132

func (r *DeleteBlueprintsResponse) ToJsonString() string

type DeleteFirewallRulesRequest added in v1.0.16

type DeleteFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 防火墙规则列表。
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules" list`

	// 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewDeleteFirewallRulesRequest added in v1.0.16

func NewDeleteFirewallRulesRequest() (request *DeleteFirewallRulesRequest)

func (*DeleteFirewallRulesRequest) FromJsonString added in v1.0.16

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

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

func (*DeleteFirewallRulesRequest) ToJsonString added in v1.0.16

func (r *DeleteFirewallRulesRequest) ToJsonString() string

type DeleteFirewallRulesResponse added in v1.0.16

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteFirewallRulesResponse added in v1.0.16

func NewDeleteFirewallRulesResponse() (response *DeleteFirewallRulesResponse)

func (*DeleteFirewallRulesResponse) FromJsonString added in v1.0.16

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

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

func (*DeleteFirewallRulesResponse) ToJsonString added in v1.0.16

func (r *DeleteFirewallRulesResponse) ToJsonString() string

type DeleteKeyPairsRequest added in v1.0.153

type DeleteKeyPairsRequest struct {
	*tchttp.BaseRequest

	// 密钥对 ID 列表,每次请求批量密钥对的上限为 10。
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list`
}

func NewDeleteKeyPairsRequest added in v1.0.153

func NewDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest)

func (*DeleteKeyPairsRequest) FromJsonString added in v1.0.153

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

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

func (*DeleteKeyPairsRequest) ToJsonString added in v1.0.153

func (r *DeleteKeyPairsRequest) ToJsonString() string

type DeleteKeyPairsResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteKeyPairsResponse added in v1.0.153

func NewDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse)

func (*DeleteKeyPairsResponse) FromJsonString added in v1.0.153

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

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

func (*DeleteKeyPairsResponse) ToJsonString added in v1.0.153

func (r *DeleteKeyPairsResponse) ToJsonString() string

type DeleteSnapshotsRequest added in v1.0.132

type DeleteSnapshotsRequest struct {
	*tchttp.BaseRequest

	// 要删除的快照 ID 列表,可通过 DescribeSnapshots 查询。
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds" list`
}

func NewDeleteSnapshotsRequest added in v1.0.132

func NewDeleteSnapshotsRequest() (request *DeleteSnapshotsRequest)

func (*DeleteSnapshotsRequest) FromJsonString added in v1.0.132

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

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

func (*DeleteSnapshotsRequest) ToJsonString added in v1.0.132

func (r *DeleteSnapshotsRequest) ToJsonString() string

type DeleteSnapshotsResponse added in v1.0.132

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteSnapshotsResponse added in v1.0.132

func NewDeleteSnapshotsResponse() (response *DeleteSnapshotsResponse)

func (*DeleteSnapshotsResponse) FromJsonString added in v1.0.132

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

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

func (*DeleteSnapshotsResponse) ToJsonString added in v1.0.132

func (r *DeleteSnapshotsResponse) ToJsonString() string

type DeniedAction added in v1.0.153

type DeniedAction struct {

	// 限制操作名。
	Action *string `json:"Action,omitempty" name:"Action"`

	// 限制操作消息码。
	Code *string `json:"Code,omitempty" name:"Code"`

	// 限制操作消息。
	Message *string `json:"Message,omitempty" name:"Message"`
}

type DescribeBlueprintInstancesRequest added in v1.0.153

type DescribeBlueprintInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表,当前最多支持 1 个。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewDescribeBlueprintInstancesRequest added in v1.0.153

func NewDescribeBlueprintInstancesRequest() (request *DescribeBlueprintInstancesRequest)

func (*DescribeBlueprintInstancesRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeBlueprintInstancesRequest) ToJsonString added in v1.0.153

func (r *DescribeBlueprintInstancesRequest) ToJsonString() string

type DescribeBlueprintInstancesResponse added in v1.0.153

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

		// 符合条件的镜像实例数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 镜像实例列表信息。
		BlueprintInstanceSet []*BlueprintInstance `json:"BlueprintInstanceSet,omitempty" name:"BlueprintInstanceSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBlueprintInstancesResponse added in v1.0.153

func NewDescribeBlueprintInstancesResponse() (response *DescribeBlueprintInstancesResponse)

func (*DescribeBlueprintInstancesResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeBlueprintInstancesResponse) ToJsonString added in v1.0.153

func (r *DescribeBlueprintInstancesResponse) ToJsonString() string

type DescribeBlueprintsRequest added in v1.0.4

type DescribeBlueprintsRequest struct {
	*tchttp.BaseRequest

	// 镜像 ID 列表。
	BlueprintIds []*string `json:"BlueprintIds,omitempty" name:"BlueprintIds" list`

	// 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 过滤器列表。
	// <li>blueprint-id</li>按照【镜像 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>blueprint-type</li>按照【镜像类型】进行过滤。
	// 取值:APP_OS(预置应用的系统 );PURE_OS(纯净的 OS 系统);PRIVATE(自定义镜像)。
	// 类型:String
	// 必选:否
	// <li>platform-type</li>按照【镜像平台类型】进行过滤。
	// 取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)。
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 BlueprintIds 和 Filters 。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}

func NewDescribeBlueprintsRequest added in v1.0.4

func NewDescribeBlueprintsRequest() (request *DescribeBlueprintsRequest)

func (*DescribeBlueprintsRequest) FromJsonString added in v1.0.4

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

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

func (*DescribeBlueprintsRequest) ToJsonString added in v1.0.4

func (r *DescribeBlueprintsRequest) ToJsonString() string

type DescribeBlueprintsResponse added in v1.0.4

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

		// 符合条件的镜像数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 镜像详细信息列表。
		BlueprintSet []*Blueprint `json:"BlueprintSet,omitempty" name:"BlueprintSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeBlueprintsResponse added in v1.0.4

func NewDescribeBlueprintsResponse() (response *DescribeBlueprintsResponse)

func (*DescribeBlueprintsResponse) FromJsonString added in v1.0.4

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

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

func (*DescribeBlueprintsResponse) ToJsonString added in v1.0.4

func (r *DescribeBlueprintsResponse) ToJsonString() string

type DescribeBundlesRequest

type DescribeBundlesRequest struct {
	*tchttp.BaseRequest

	// 套餐 ID 列表。
	BundleIds []*string `json:"BundleIds,omitempty" name:"BundleIds" list`

	// 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 过滤器列表。
	// <li>bundle-id</li>按照【套餐 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>support-platform-type</li>按照【系统类型】进行过滤。
	// 取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 BundleIds 和 Filters。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}

func NewDescribeBundlesRequest

func NewDescribeBundlesRequest() (request *DescribeBundlesRequest)

func (*DescribeBundlesRequest) FromJsonString

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

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 {

		// 套餐详细信息列表。
		BundleSet []*Bundle `json:"BundleSet,omitempty" name:"BundleSet" list`

		// 符合要求的套餐总数,用于分页展示。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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 DescribeFirewallRulesRequest added in v1.0.16

type DescribeFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 偏移量,默认为 0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeFirewallRulesRequest added in v1.0.16

func NewDescribeFirewallRulesRequest() (request *DescribeFirewallRulesRequest)

func (*DescribeFirewallRulesRequest) FromJsonString added in v1.0.16

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

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

func (*DescribeFirewallRulesRequest) ToJsonString added in v1.0.16

func (r *DescribeFirewallRulesRequest) ToJsonString() string

type DescribeFirewallRulesResponse added in v1.0.16

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

		// 符合条件的防火墙规则数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 防火墙规则详细信息列表。
		FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet" list`

		// 防火墙版本号。
		FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeFirewallRulesResponse added in v1.0.16

func NewDescribeFirewallRulesResponse() (response *DescribeFirewallRulesResponse)

func (*DescribeFirewallRulesResponse) FromJsonString added in v1.0.16

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

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

func (*DescribeFirewallRulesResponse) ToJsonString added in v1.0.16

func (r *DescribeFirewallRulesResponse) ToJsonString() string

type DescribeFirewallRulesTemplateRequest added in v1.0.153

type DescribeFirewallRulesTemplateRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeFirewallRulesTemplateRequest added in v1.0.153

func NewDescribeFirewallRulesTemplateRequest() (request *DescribeFirewallRulesTemplateRequest)

func (*DescribeFirewallRulesTemplateRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeFirewallRulesTemplateRequest) ToJsonString added in v1.0.153

func (r *DescribeFirewallRulesTemplateRequest) ToJsonString() string

type DescribeFirewallRulesTemplateResponse added in v1.0.153

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

		// 符合条件的防火墙规则数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 防火墙规则详细信息列表。
		FirewallRuleSet []*FirewallRuleInfo `json:"FirewallRuleSet,omitempty" name:"FirewallRuleSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeFirewallRulesTemplateResponse added in v1.0.153

func NewDescribeFirewallRulesTemplateResponse() (response *DescribeFirewallRulesTemplateResponse)

func (*DescribeFirewallRulesTemplateResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeFirewallRulesTemplateResponse) ToJsonString added in v1.0.153

type DescribeGeneralResourceQuotasRequest added in v1.0.153

type DescribeGeneralResourceQuotasRequest struct {
	*tchttp.BaseRequest

	// 资源名列表,取值为:USER_KEY_PAIR、INSTANCE、SNAPSHOT。
	ResourceNames []*string `json:"ResourceNames,omitempty" name:"ResourceNames" list`
}

func NewDescribeGeneralResourceQuotasRequest added in v1.0.153

func NewDescribeGeneralResourceQuotasRequest() (request *DescribeGeneralResourceQuotasRequest)

func (*DescribeGeneralResourceQuotasRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeGeneralResourceQuotasRequest) ToJsonString added in v1.0.153

func (r *DescribeGeneralResourceQuotasRequest) ToJsonString() string

type DescribeGeneralResourceQuotasResponse added in v1.0.153

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

		// 通用资源配额详细信息列表。
		GeneralResourceQuotaSet []*GeneralResourceQuota `json:"GeneralResourceQuotaSet,omitempty" name:"GeneralResourceQuotaSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeGeneralResourceQuotasResponse added in v1.0.153

func NewDescribeGeneralResourceQuotasResponse() (response *DescribeGeneralResourceQuotasResponse)

func (*DescribeGeneralResourceQuotasResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeGeneralResourceQuotasResponse) ToJsonString added in v1.0.153

type DescribeInstanceLoginKeyPairAttributeRequest added in v1.0.153

type DescribeInstanceLoginKeyPairAttributeRequest struct {
	*tchttp.BaseRequest

	// 实例ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewDescribeInstanceLoginKeyPairAttributeRequest added in v1.0.153

func NewDescribeInstanceLoginKeyPairAttributeRequest() (request *DescribeInstanceLoginKeyPairAttributeRequest)

func (*DescribeInstanceLoginKeyPairAttributeRequest) FromJsonString added in v1.0.153

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

func (*DescribeInstanceLoginKeyPairAttributeRequest) ToJsonString added in v1.0.153

type DescribeInstanceLoginKeyPairAttributeResponse added in v1.0.153

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

		// 是否允许使用默认密钥对登录,YES:允许登录 NO:禁止登录。
		PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstanceLoginKeyPairAttributeResponse added in v1.0.153

func NewDescribeInstanceLoginKeyPairAttributeResponse() (response *DescribeInstanceLoginKeyPairAttributeResponse)

func (*DescribeInstanceLoginKeyPairAttributeResponse) FromJsonString added in v1.0.153

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

func (*DescribeInstanceLoginKeyPairAttributeResponse) ToJsonString added in v1.0.153

type DescribeInstanceVncUrlRequest added in v1.0.153

type DescribeInstanceVncUrlRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}

func NewDescribeInstanceVncUrlRequest added in v1.0.153

func NewDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlRequest)

func (*DescribeInstanceVncUrlRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeInstanceVncUrlRequest) ToJsonString added in v1.0.153

func (r *DescribeInstanceVncUrlRequest) ToJsonString() string

type DescribeInstanceVncUrlResponse added in v1.0.153

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

		// 实例的管理终端地址。
		InstanceVncUrl *string `json:"InstanceVncUrl,omitempty" name:"InstanceVncUrl"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstanceVncUrlResponse added in v1.0.153

func NewDescribeInstanceVncUrlResponse() (response *DescribeInstanceVncUrlResponse)

func (*DescribeInstanceVncUrlResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeInstanceVncUrlResponse) ToJsonString added in v1.0.153

func (r *DescribeInstanceVncUrlResponse) ToJsonString() string

type DescribeInstancesDeniedActionsRequest added in v1.0.153

type DescribeInstancesDeniedActionsRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewDescribeInstancesDeniedActionsRequest added in v1.0.153

func NewDescribeInstancesDeniedActionsRequest() (request *DescribeInstancesDeniedActionsRequest)

func (*DescribeInstancesDeniedActionsRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeInstancesDeniedActionsRequest) ToJsonString added in v1.0.153

type DescribeInstancesDeniedActionsResponse added in v1.0.153

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

		// 实例操作限制列表详细信息。
		InstanceDeniedActionSet []*InstanceDeniedActions `json:"InstanceDeniedActionSet,omitempty" name:"InstanceDeniedActionSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesDeniedActionsResponse added in v1.0.153

func NewDescribeInstancesDeniedActionsResponse() (response *DescribeInstancesDeniedActionsResponse)

func (*DescribeInstancesDeniedActionsResponse) FromJsonString added in v1.0.153

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

func (*DescribeInstancesDeniedActionsResponse) ToJsonString added in v1.0.153

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 过滤器列表。
	// <li>instance-name</li>按照【实例名称】进行过滤。
	// 类型:String
	// 必选:否
	// <li>private-ip-address</li>按照【实例主网卡的内网 IP】进行过滤。
	// 类型:String
	// 必选:否
	// <li>public-ip-address</li>按照【实例主网卡的公网 IP】进行过滤。
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 InstanceIds 和 Filters。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`

	// 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesRequest

func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)

func (*DescribeInstancesRequest) FromJsonString

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

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 {

		// 符合条件的实例数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 实例详细信息列表。
		InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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 added in v1.0.153

type DescribeInstancesReturnableRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 偏移量,默认为 0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesReturnableRequest added in v1.0.153

func NewDescribeInstancesReturnableRequest() (request *DescribeInstancesReturnableRequest)

func (*DescribeInstancesReturnableRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeInstancesReturnableRequest) ToJsonString added in v1.0.153

func (r *DescribeInstancesReturnableRequest) ToJsonString() string

type DescribeInstancesReturnableResponse added in v1.0.153

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

		// 符合条件的实例数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 可退还实例详细信息列表。
		InstanceReturnableSet []*InstanceReturnable `json:"InstanceReturnableSet,omitempty" name:"InstanceReturnableSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesReturnableResponse added in v1.0.153

func NewDescribeInstancesReturnableResponse() (response *DescribeInstancesReturnableResponse)

func (*DescribeInstancesReturnableResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeInstancesReturnableResponse) ToJsonString added in v1.0.153

func (r *DescribeInstancesReturnableResponse) ToJsonString() string

type DescribeInstancesTrafficPackagesRequest added in v1.0.26

type DescribeInstancesTrafficPackagesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 偏移量,默认为 0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeInstancesTrafficPackagesRequest added in v1.0.26

func NewDescribeInstancesTrafficPackagesRequest() (request *DescribeInstancesTrafficPackagesRequest)

func (*DescribeInstancesTrafficPackagesRequest) FromJsonString added in v1.0.26

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

func (*DescribeInstancesTrafficPackagesRequest) ToJsonString added in v1.0.26

type DescribeInstancesTrafficPackagesResponse added in v1.0.26

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

		// 符合条件的实例流量包详情数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 实例流量包详情列表。
		InstanceTrafficPackageSet []*InstanceTrafficPackage `json:"InstanceTrafficPackageSet,omitempty" name:"InstanceTrafficPackageSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeInstancesTrafficPackagesResponse added in v1.0.26

func NewDescribeInstancesTrafficPackagesResponse() (response *DescribeInstancesTrafficPackagesResponse)

func (*DescribeInstancesTrafficPackagesResponse) FromJsonString added in v1.0.26

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

func (*DescribeInstancesTrafficPackagesResponse) ToJsonString added in v1.0.26

type DescribeKeyPairsRequest added in v1.0.153

type DescribeKeyPairsRequest struct {
	*tchttp.BaseRequest

	// 密钥对 ID 列表。
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list`

	// 偏移量,默认为 0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeKeyPairsRequest added in v1.0.153

func NewDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest)

func (*DescribeKeyPairsRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeKeyPairsRequest) ToJsonString added in v1.0.153

func (r *DescribeKeyPairsRequest) ToJsonString() string

type DescribeKeyPairsResponse added in v1.0.153

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

		// 符合条件的密钥对数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 密钥对详细信息列表。
		KeyPairSet []*KeyPair `json:"KeyPairSet,omitempty" name:"KeyPairSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeKeyPairsResponse added in v1.0.153

func NewDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse)

func (*DescribeKeyPairsResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeKeyPairsResponse) ToJsonString added in v1.0.153

func (r *DescribeKeyPairsResponse) ToJsonString() string

type DescribeModifyInstanceBundlesRequest added in v1.0.153

type DescribeModifyInstanceBundlesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 过滤器列表。
	// <li>bundle-id</li>按照【套餐 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>support-platform-type</li>按照【系统类型】进行过滤。
	// 取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`

	// 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeModifyInstanceBundlesRequest added in v1.0.153

func NewDescribeModifyInstanceBundlesRequest() (request *DescribeModifyInstanceBundlesRequest)

func (*DescribeModifyInstanceBundlesRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeModifyInstanceBundlesRequest) ToJsonString added in v1.0.153

func (r *DescribeModifyInstanceBundlesRequest) ToJsonString() string

type DescribeModifyInstanceBundlesResponse added in v1.0.153

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

		// 符合条件的套餐数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 变更套餐详细信息。
		ModifyBundleSet []*ModifyBundle `json:"ModifyBundleSet,omitempty" name:"ModifyBundleSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeModifyInstanceBundlesResponse added in v1.0.153

func NewDescribeModifyInstanceBundlesResponse() (response *DescribeModifyInstanceBundlesResponse)

func (*DescribeModifyInstanceBundlesResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeModifyInstanceBundlesResponse) ToJsonString added in v1.0.153

type DescribeRegionsRequest added in v1.0.153

type DescribeRegionsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeRegionsRequest added in v1.0.153

func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)

func (*DescribeRegionsRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeRegionsRequest) ToJsonString added in v1.0.153

func (r *DescribeRegionsRequest) ToJsonString() string

type DescribeRegionsResponse added in v1.0.153

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

		// 地域数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 地域信息列表。
		RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeRegionsResponse added in v1.0.153

func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)

func (*DescribeRegionsResponse) FromJsonString added in v1.0.153

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

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

func (*DescribeRegionsResponse) ToJsonString added in v1.0.153

func (r *DescribeRegionsResponse) ToJsonString() string

type DescribeResetInstanceBlueprintsRequest added in v1.0.153

type DescribeResetInstanceBlueprintsRequest struct {
	*tchttp.BaseRequest

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

	// 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 过滤器列表。
	// <li>blueprint-id</li>按照【镜像 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>blueprint-type</li>按照【镜像类型】进行过滤。
	// 取值: APP_OS(预置应用的系统 );PURE_OS(纯净的 OS 系统)。
	// 类型:String
	// 必选:否
	// <li>platform-type</li>按照【镜像平台类型】进行过滤。
	// 取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)。
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 BlueprintIds 和 Filters 。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}

func NewDescribeResetInstanceBlueprintsRequest added in v1.0.153

func NewDescribeResetInstanceBlueprintsRequest() (request *DescribeResetInstanceBlueprintsRequest)

func (*DescribeResetInstanceBlueprintsRequest) FromJsonString added in v1.0.153

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

func (*DescribeResetInstanceBlueprintsRequest) ToJsonString added in v1.0.153

type DescribeResetInstanceBlueprintsResponse added in v1.0.153

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

		// 符合条件的镜像数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 镜像重置信息列表
		ResetInstanceBlueprintSet []*ResetInstanceBlueprint `json:"ResetInstanceBlueprintSet,omitempty" name:"ResetInstanceBlueprintSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeResetInstanceBlueprintsResponse added in v1.0.153

func NewDescribeResetInstanceBlueprintsResponse() (response *DescribeResetInstanceBlueprintsResponse)

func (*DescribeResetInstanceBlueprintsResponse) FromJsonString added in v1.0.153

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

func (*DescribeResetInstanceBlueprintsResponse) ToJsonString added in v1.0.153

type DescribeSnapshotsDeniedActionsRequest added in v1.0.153

type DescribeSnapshotsDeniedActionsRequest struct {
	*tchttp.BaseRequest

	// 快照 ID 列表, 可通过 DescribeSnapshots 查询。
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds" list`
}

func NewDescribeSnapshotsDeniedActionsRequest added in v1.0.153

func NewDescribeSnapshotsDeniedActionsRequest() (request *DescribeSnapshotsDeniedActionsRequest)

func (*DescribeSnapshotsDeniedActionsRequest) FromJsonString added in v1.0.153

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

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

func (*DescribeSnapshotsDeniedActionsRequest) ToJsonString added in v1.0.153

type DescribeSnapshotsDeniedActionsResponse added in v1.0.153

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

		// 快照操作限制列表详细信息。
		SnapshotDeniedActionSet []*SnapshotDeniedActions `json:"SnapshotDeniedActionSet,omitempty" name:"SnapshotDeniedActionSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeSnapshotsDeniedActionsResponse added in v1.0.153

func NewDescribeSnapshotsDeniedActionsResponse() (response *DescribeSnapshotsDeniedActionsResponse)

func (*DescribeSnapshotsDeniedActionsResponse) FromJsonString added in v1.0.153

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

func (*DescribeSnapshotsDeniedActionsResponse) ToJsonString added in v1.0.153

type DescribeSnapshotsRequest added in v1.0.132

type DescribeSnapshotsRequest struct {
	*tchttp.BaseRequest

	// 要查询快照的 ID 列表。
	// 参数不支持同时指定 SnapshotIds 和 Filters。
	SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds" list`

	// 过滤器列表。
	// <li>snapshot-id</li>按照【快照 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>disk-id</li>按照【磁盘 ID】进行过滤。
	// 类型:String
	// 必选:否
	// <li>snapshot-name</li>按照【快照名称】进行过滤。
	// 类型:String
	// 必选:否
	// <li>instance-id</li>按照【实例 ID 】进行过滤。
	// 类型:String
	// 必选:否
	// 每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 SnapshotIds 和 Filters。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`

	// 偏移量,默认为 0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数量,默认为 20,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeSnapshotsRequest added in v1.0.132

func NewDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest)

func (*DescribeSnapshotsRequest) FromJsonString added in v1.0.132

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

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

func (*DescribeSnapshotsRequest) ToJsonString added in v1.0.132

func (r *DescribeSnapshotsRequest) ToJsonString() string

type DescribeSnapshotsResponse added in v1.0.132

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

		// 快照的数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 快照的详情列表。
		SnapshotSet []*Snapshot `json:"SnapshotSet,omitempty" name:"SnapshotSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeSnapshotsResponse added in v1.0.132

func NewDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse)

func (*DescribeSnapshotsResponse) FromJsonString added in v1.0.132

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

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

func (*DescribeSnapshotsResponse) ToJsonString added in v1.0.132

func (r *DescribeSnapshotsResponse) ToJsonString() string

type DisassociateInstancesKeyPairsRequest added in v1.0.153

type DisassociateInstancesKeyPairsRequest struct {
	*tchttp.BaseRequest

	// 密钥对 ID 列表。每次请求批量密钥对的上限为 100。
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list`

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewDisassociateInstancesKeyPairsRequest added in v1.0.153

func NewDisassociateInstancesKeyPairsRequest() (request *DisassociateInstancesKeyPairsRequest)

func (*DisassociateInstancesKeyPairsRequest) FromJsonString added in v1.0.153

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

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

func (*DisassociateInstancesKeyPairsRequest) ToJsonString added in v1.0.153

func (r *DisassociateInstancesKeyPairsRequest) ToJsonString() string

type DisassociateInstancesKeyPairsResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDisassociateInstancesKeyPairsResponse added in v1.0.153

func NewDisassociateInstancesKeyPairsResponse() (response *DisassociateInstancesKeyPairsResponse)

func (*DisassociateInstancesKeyPairsResponse) FromJsonString added in v1.0.153

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

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

func (*DisassociateInstancesKeyPairsResponse) ToJsonString added in v1.0.153

type Filter

type Filter struct {

	// 需要过滤的字段。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 字段的过滤值。
	Values []*string `json:"Values,omitempty" name:"Values" list`
}

type FirewallRule added in v1.0.16

type FirewallRule struct {

	// 协议,取值:TCP,UDP,ICMP,ALL。
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// 端口,取值:ALL,单独的端口,逗号分隔的离散端口,减号分隔的端口范围。
	Port *string `json:"Port,omitempty" name:"Port"`

	// 网段或 IP (互斥)。默认为 0.0.0.0/0,表示所有来源。
	CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"`

	// 取值:ACCEPT,DROP。默认为 ACCEPT。
	Action *string `json:"Action,omitempty" name:"Action"`

	// 防火墙规则描述。
	FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"`
}

type FirewallRuleInfo added in v1.0.16

type FirewallRuleInfo struct {

	// 应用类型,取值:自定义,HTTP(80),HTTPS(443),Linux登录(22),Windows登录(3389),MySQL(3306),SQL Server(1433),全部TCP,全部UDP,Ping-ICMP,ALL。
	AppType *string `json:"AppType,omitempty" name:"AppType"`

	// 协议,取值:TCP,UDP,ICMP,ALL。
	Protocol *string `json:"Protocol,omitempty" name:"Protocol"`

	// 端口,取值:ALL,单独的端口,逗号分隔的离散端口,减号分隔的端口范围。
	Port *string `json:"Port,omitempty" name:"Port"`

	// 网段或 IP (互斥)。默认为 0.0.0.0/0,表示所有来源。
	CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"`

	// 取值:ACCEPT,DROP。默认为 ACCEPT。
	Action *string `json:"Action,omitempty" name:"Action"`

	// 防火墙规则描述。
	FirewallRuleDescription *string `json:"FirewallRuleDescription,omitempty" name:"FirewallRuleDescription"`
}

type GeneralResourceQuota added in v1.0.153

type GeneralResourceQuota struct {

	// 资源名称。
	ResourceName *string `json:"ResourceName,omitempty" name:"ResourceName"`

	// 资源当前可用数量。
	ResourceQuotaAvailable *int64 `json:"ResourceQuotaAvailable,omitempty" name:"ResourceQuotaAvailable"`

	// 资源总数量。
	ResourceQuotaTotal *int64 `json:"ResourceQuotaTotal,omitempty" name:"ResourceQuotaTotal"`
}

type ImportKeyPairRequest added in v1.0.153

type ImportKeyPairRequest struct {
	*tchttp.BaseRequest

	// 密钥对名称,可由数字,字母和下划线组成,长度不超过 25 个字符。
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// 密钥对的公钥内容, OpenSSH RSA 格式。
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`
}

func NewImportKeyPairRequest added in v1.0.153

func NewImportKeyPairRequest() (request *ImportKeyPairRequest)

func (*ImportKeyPairRequest) FromJsonString added in v1.0.153

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

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

func (*ImportKeyPairRequest) ToJsonString added in v1.0.153

func (r *ImportKeyPairRequest) ToJsonString() string

type ImportKeyPairResponse added in v1.0.153

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

		// 密钥对 ID。
		KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewImportKeyPairResponse added in v1.0.153

func NewImportKeyPairResponse() (response *ImportKeyPairResponse)

func (*ImportKeyPairResponse) FromJsonString added in v1.0.153

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

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

func (*ImportKeyPairResponse) ToJsonString added in v1.0.153

func (r *ImportKeyPairResponse) ToJsonString() string

type InquirePriceCreateBlueprintRequest added in v1.0.153

type InquirePriceCreateBlueprintRequest struct {
	*tchttp.BaseRequest

	// 自定义镜像的个数。默认值为1。
	BlueprintCount *int64 `json:"BlueprintCount,omitempty" name:"BlueprintCount"`
}

func NewInquirePriceCreateBlueprintRequest added in v1.0.153

func NewInquirePriceCreateBlueprintRequest() (request *InquirePriceCreateBlueprintRequest)

func (*InquirePriceCreateBlueprintRequest) FromJsonString added in v1.0.153

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

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

func (*InquirePriceCreateBlueprintRequest) ToJsonString added in v1.0.153

func (r *InquirePriceCreateBlueprintRequest) ToJsonString() string

type InquirePriceCreateBlueprintResponse added in v1.0.153

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

		// 自定义镜像的价格参数。
		BlueprintPrice *BlueprintPrice `json:"BlueprintPrice,omitempty" name:"BlueprintPrice"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquirePriceCreateBlueprintResponse added in v1.0.153

func NewInquirePriceCreateBlueprintResponse() (response *InquirePriceCreateBlueprintResponse)

func (*InquirePriceCreateBlueprintResponse) FromJsonString added in v1.0.153

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

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

func (*InquirePriceCreateBlueprintResponse) ToJsonString added in v1.0.153

func (r *InquirePriceCreateBlueprintResponse) ToJsonString() string

type InquirePriceCreateInstancesRequest added in v1.0.153

type InquirePriceCreateInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例的套餐 ID。
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// 创建数量,默认为 1。
	InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`

	// 应用镜像 ID,使用收费应用镜像时必填。
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`
}

func NewInquirePriceCreateInstancesRequest added in v1.0.153

func NewInquirePriceCreateInstancesRequest() (request *InquirePriceCreateInstancesRequest)

func (*InquirePriceCreateInstancesRequest) FromJsonString added in v1.0.153

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

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

func (*InquirePriceCreateInstancesRequest) ToJsonString added in v1.0.153

func (r *InquirePriceCreateInstancesRequest) ToJsonString() string

type InquirePriceCreateInstancesResponse added in v1.0.153

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

		// 询价信息。
		Price *Price `json:"Price,omitempty" name:"Price"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquirePriceCreateInstancesResponse added in v1.0.153

func NewInquirePriceCreateInstancesResponse() (response *InquirePriceCreateInstancesResponse)

func (*InquirePriceCreateInstancesResponse) FromJsonString added in v1.0.153

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

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

func (*InquirePriceCreateInstancesResponse) ToJsonString added in v1.0.153

func (r *InquirePriceCreateInstancesResponse) ToJsonString() string

type InquirePriceRenewInstancesRequest added in v1.0.153

type InquirePriceRenewInstancesRequest struct {
	*tchttp.BaseRequest

	// 待续费的实例。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"`
}

func NewInquirePriceRenewInstancesRequest added in v1.0.153

func NewInquirePriceRenewInstancesRequest() (request *InquirePriceRenewInstancesRequest)

func (*InquirePriceRenewInstancesRequest) FromJsonString added in v1.0.153

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

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

func (*InquirePriceRenewInstancesRequest) ToJsonString added in v1.0.153

func (r *InquirePriceRenewInstancesRequest) ToJsonString() string

type InquirePriceRenewInstancesResponse added in v1.0.153

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

		// 询价信息。
		Price *Price `json:"Price,omitempty" name:"Price"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquirePriceRenewInstancesResponse added in v1.0.153

func NewInquirePriceRenewInstancesResponse() (response *InquirePriceRenewInstancesResponse)

func (*InquirePriceRenewInstancesResponse) FromJsonString added in v1.0.153

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

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

func (*InquirePriceRenewInstancesResponse) ToJsonString added in v1.0.153

func (r *InquirePriceRenewInstancesResponse) ToJsonString() string

type Instance

type Instance struct {

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 套餐 ID。
	BundleId *string `json:"BundleId,omitempty" name:"BundleId"`

	// 镜像 ID。
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// 实例的 CPU 核数,单位:核。
	CPU *int64 `json:"CPU,omitempty" name:"CPU"`

	// 实例内存容量,单位:GB 。
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// 实例名称。
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`

	// 实例计费模式。取值范围:
	// PREPAID:表示预付费,即包年包月。
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// 实例系统盘信息。
	SystemDisk *SystemDisk `json:"SystemDisk,omitempty" name:"SystemDisk"`

	// 实例主网卡的内网 IP。
	// 注意:此字段可能返回 空,表示取不到有效值。
	PrivateAddresses []*string `json:"PrivateAddresses,omitempty" name:"PrivateAddresses" list`

	// 实例主网卡的公网 IP。
	// 注意:此字段可能返回 空,表示取不到有效值。
	PublicAddresses []*string `json:"PublicAddresses,omitempty" name:"PublicAddresses" list`

	// 实例带宽信息。
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"`

	// 自动续费标识。取值范围:
	// NOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费
	// NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 。
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`

	// 实例登录设置。
	LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`

	// 实例状态。取值范围:
	// <li>PENDING:表示创建中</li><li>LAUNCH_FAILED:表示创建失败</li><li>RUNNING:表示运行中</li><li>STOPPED:表示关机</li><li>STARTING:表示开机中</li><li>STOPPING:表示关机中</li><li>REBOOTING:表示重启中</li><li>SHUTDOWN:表示停止待销毁</li><li>TERMINATING:表示销毁中</li>
	InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"`

	// 实例全局唯一 ID。
	Uuid *string `json:"Uuid,omitempty" name:"Uuid"`

	// 实例的最新操作。例:StopInstances、ResetInstance。注意:此字段可能返回 空值,表示取不到有效值。
	LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"`

	// 实例的最新操作状态。取值范围:
	// SUCCESS:表示操作成功
	// OPERATING:表示操作执行中
	// FAILED:表示操作失败
	// 注意:此字段可能返回 空值,表示取不到有效值。
	LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`

	// 实例最新操作的唯一请求 ID。
	// 注意:此字段可能返回 空值,表示取不到有效值。
	LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"`

	// 隔离时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"`

	// 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// 到期时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ 。
	// 注意:此字段可能返回 null,表示取不到有效值。
	ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"`

	// 操作系统平台类型,如 LINUX_UNIX、WINDOWS。
	PlatformType *string `json:"PlatformType,omitempty" name:"PlatformType"`

	// 操作系统平台。
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// 操作系统名称。
	OsName *string `json:"OsName,omitempty" name:"OsName"`
}

type InstanceChargePrepaid added in v1.0.153

type InstanceChargePrepaid struct {

	// 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
	Period *int64 `json:"Period,omitempty" name:"Period"`

	// 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费,用户需要手动续费<br><li>DISABLE_NOTIFY_AND_AUTO_RENEW:不自动续费,且不通知<br><br>默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

type InstanceDeniedActions added in v1.0.153

type InstanceDeniedActions struct {

	// 实例 ID。
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 操作限制列表。
	DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions" list`
}

type InstancePrice

type InstancePrice struct {

	// 套餐单价原价。
	OriginalBundlePrice *float64 `json:"OriginalBundlePrice,omitempty" name:"OriginalBundlePrice"`

	// 原价。
	OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

	// 折扣。
	Discount *int64 `json:"Discount,omitempty" name:"Discount"`

	// 折后价。
	DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"`
}

type InstanceReturnable added in v1.0.153

type InstanceReturnable struct {

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 实例是否可退还。
	IsReturnable *bool `json:"IsReturnable,omitempty" name:"IsReturnable"`

	// 实例退还失败错误码。
	ReturnFailCode *int64 `json:"ReturnFailCode,omitempty" name:"ReturnFailCode"`

	// 实例退还失败错误信息。
	ReturnFailMessage *string `json:"ReturnFailMessage,omitempty" name:"ReturnFailMessage"`
}

type InstanceTrafficPackage added in v1.0.26

type InstanceTrafficPackage struct {

	// 实例ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 流量包详情列表。
	TrafficPackageSet []*TrafficPackage `json:"TrafficPackageSet,omitempty" name:"TrafficPackageSet" list`
}

type InternetAccessible

type InternetAccessible struct {

	// 网络计费类型。
	InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"`

	// 公网出带宽上限,单位:Mbps。
	InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`

	// 是否分配公网 IP。
	PublicIpAssigned *bool `json:"PublicIpAssigned,omitempty" name:"PublicIpAssigned"`
}

type KeyPair added in v1.0.153

type KeyPair struct {

	// 密钥对 ID ,是密钥对的唯一标识。
	KeyId *string `json:"KeyId,omitempty" name:"KeyId"`

	// 密钥对名称。
	KeyName *string `json:"KeyName,omitempty" name:"KeyName"`

	// 密钥对的纯文本公钥。
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`

	// 密钥对关联的实例 ID 列表。
	// 注意:此字段可能返回 null,表示取不到有效值。
	AssociatedInstanceIds []*string `json:"AssociatedInstanceIds,omitempty" name:"AssociatedInstanceIds" list`

	// 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`

	// 密钥对私钥。
	// 注意:此字段可能返回 null,表示取不到有效值。
	PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"`
}

type LoginSettings

type LoginSettings struct {

	// 密钥 ID 列表。关联密钥后,就可以通过对应的私钥来访问实例。注意:此字段可能返回 [],表示取不到有效值。
	KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list`
}

type ModifyBlueprintAttributeRequest added in v1.0.132

type ModifyBlueprintAttributeRequest struct {
	*tchttp.BaseRequest

	// 镜像 ID。可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值中的BlueprintId获取。
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`

	// 设置新的镜像名称。最大长度60。
	BlueprintName *string `json:"BlueprintName,omitempty" name:"BlueprintName"`

	// 设置新的镜像描述。最大长度60。
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewModifyBlueprintAttributeRequest added in v1.0.132

func NewModifyBlueprintAttributeRequest() (request *ModifyBlueprintAttributeRequest)

func (*ModifyBlueprintAttributeRequest) FromJsonString added in v1.0.132

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

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

func (*ModifyBlueprintAttributeRequest) ToJsonString added in v1.0.132

func (r *ModifyBlueprintAttributeRequest) ToJsonString() string

type ModifyBlueprintAttributeResponse added in v1.0.132

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyBlueprintAttributeResponse added in v1.0.132

func NewModifyBlueprintAttributeResponse() (response *ModifyBlueprintAttributeResponse)

func (*ModifyBlueprintAttributeResponse) FromJsonString added in v1.0.132

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

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

func (*ModifyBlueprintAttributeResponse) ToJsonString added in v1.0.132

func (r *ModifyBlueprintAttributeResponse) ToJsonString() string

type ModifyBundle added in v1.0.153

type ModifyBundle struct {

	// 更改实例套餐后需要补的差价。
	ModifyPrice *Price `json:"ModifyPrice,omitempty" name:"ModifyPrice"`

	// 变更套餐状态。取值:
	// <li>SOLD_OUT:套餐售罄</li>
	// <li>AVAILABLE:支持套餐变更</li>
	// <li>UNAVAILABLE:暂不支持套餐变更</li>
	ModifyBundleState *string `json:"ModifyBundleState,omitempty" name:"ModifyBundleState"`

	// 套餐信息。
	Bundle *Bundle `json:"Bundle,omitempty" name:"Bundle"`
}

type ModifyFirewallRuleDescriptionRequest added in v1.0.153

type ModifyFirewallRuleDescriptionRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 防火墙规则。
	FirewallRule *FirewallRule `json:"FirewallRule,omitempty" name:"FirewallRule"`

	// 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewModifyFirewallRuleDescriptionRequest added in v1.0.153

func NewModifyFirewallRuleDescriptionRequest() (request *ModifyFirewallRuleDescriptionRequest)

func (*ModifyFirewallRuleDescriptionRequest) FromJsonString added in v1.0.153

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

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

func (*ModifyFirewallRuleDescriptionRequest) ToJsonString added in v1.0.153

func (r *ModifyFirewallRuleDescriptionRequest) ToJsonString() string

type ModifyFirewallRuleDescriptionResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyFirewallRuleDescriptionResponse added in v1.0.153

func NewModifyFirewallRuleDescriptionResponse() (response *ModifyFirewallRuleDescriptionResponse)

func (*ModifyFirewallRuleDescriptionResponse) FromJsonString added in v1.0.153

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

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

func (*ModifyFirewallRuleDescriptionResponse) ToJsonString added in v1.0.153

type ModifyFirewallRulesRequest added in v1.0.153

type ModifyFirewallRulesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 防火墙规则列表。
	FirewallRules []*FirewallRule `json:"FirewallRules,omitempty" name:"FirewallRules" list`

	// 防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。
	FirewallVersion *uint64 `json:"FirewallVersion,omitempty" name:"FirewallVersion"`
}

func NewModifyFirewallRulesRequest added in v1.0.153

func NewModifyFirewallRulesRequest() (request *ModifyFirewallRulesRequest)

func (*ModifyFirewallRulesRequest) FromJsonString added in v1.0.153

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

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

func (*ModifyFirewallRulesRequest) ToJsonString added in v1.0.153

func (r *ModifyFirewallRulesRequest) ToJsonString() string

type ModifyFirewallRulesResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyFirewallRulesResponse added in v1.0.153

func NewModifyFirewallRulesResponse() (response *ModifyFirewallRulesResponse)

func (*ModifyFirewallRulesResponse) FromJsonString added in v1.0.153

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

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

func (*ModifyFirewallRulesResponse) ToJsonString added in v1.0.153

func (r *ModifyFirewallRulesResponse) ToJsonString() string

type ModifyInstancesAttributeRequest added in v1.0.153

type ModifyInstancesAttributeRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 实例名称。可任意命名,但不得超过 60 个字符。
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
}

func NewModifyInstancesAttributeRequest added in v1.0.153

func NewModifyInstancesAttributeRequest() (request *ModifyInstancesAttributeRequest)

func (*ModifyInstancesAttributeRequest) FromJsonString added in v1.0.153

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

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

func (*ModifyInstancesAttributeRequest) ToJsonString added in v1.0.153

func (r *ModifyInstancesAttributeRequest) ToJsonString() string

type ModifyInstancesAttributeResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesAttributeResponse added in v1.0.153

func NewModifyInstancesAttributeResponse() (response *ModifyInstancesAttributeResponse)

func (*ModifyInstancesAttributeResponse) FromJsonString added in v1.0.153

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

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

func (*ModifyInstancesAttributeResponse) ToJsonString added in v1.0.153

func (r *ModifyInstancesAttributeResponse) ToJsonString() string

type ModifyInstancesLoginKeyPairAttributeRequest added in v1.0.153

type ModifyInstancesLoginKeyPairAttributeRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 是否允许使用默认密钥对登录,YES:允许登录;NO:禁止登录
	PermitLogin *string `json:"PermitLogin,omitempty" name:"PermitLogin"`
}

func NewModifyInstancesLoginKeyPairAttributeRequest added in v1.0.153

func NewModifyInstancesLoginKeyPairAttributeRequest() (request *ModifyInstancesLoginKeyPairAttributeRequest)

func (*ModifyInstancesLoginKeyPairAttributeRequest) FromJsonString added in v1.0.153

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

func (*ModifyInstancesLoginKeyPairAttributeRequest) ToJsonString added in v1.0.153

type ModifyInstancesLoginKeyPairAttributeResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesLoginKeyPairAttributeResponse added in v1.0.153

func NewModifyInstancesLoginKeyPairAttributeResponse() (response *ModifyInstancesLoginKeyPairAttributeResponse)

func (*ModifyInstancesLoginKeyPairAttributeResponse) FromJsonString added in v1.0.153

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

func (*ModifyInstancesLoginKeyPairAttributeResponse) ToJsonString added in v1.0.153

type ModifyInstancesRenewFlagRequest added in v1.0.153

type ModifyInstancesRenewFlagRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费<br><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
	RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"`
}

func NewModifyInstancesRenewFlagRequest added in v1.0.153

func NewModifyInstancesRenewFlagRequest() (request *ModifyInstancesRenewFlagRequest)

func (*ModifyInstancesRenewFlagRequest) FromJsonString added in v1.0.153

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

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

func (*ModifyInstancesRenewFlagRequest) ToJsonString added in v1.0.153

func (r *ModifyInstancesRenewFlagRequest) ToJsonString() string

type ModifyInstancesRenewFlagResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyInstancesRenewFlagResponse added in v1.0.153

func NewModifyInstancesRenewFlagResponse() (response *ModifyInstancesRenewFlagResponse)

func (*ModifyInstancesRenewFlagResponse) FromJsonString added in v1.0.153

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

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

func (*ModifyInstancesRenewFlagResponse) ToJsonString added in v1.0.153

func (r *ModifyInstancesRenewFlagResponse) ToJsonString() string

type ModifySnapshotAttributeRequest added in v1.0.132

type ModifySnapshotAttributeRequest struct {
	*tchttp.BaseRequest

	// 快照 ID, 可通过 DescribeSnapshots 查询。
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// 新的快照名称,最长为 60 个字符。
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`
}

func NewModifySnapshotAttributeRequest added in v1.0.132

func NewModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest)

func (*ModifySnapshotAttributeRequest) FromJsonString added in v1.0.132

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

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

func (*ModifySnapshotAttributeRequest) ToJsonString added in v1.0.132

func (r *ModifySnapshotAttributeRequest) ToJsonString() string

type ModifySnapshotAttributeResponse added in v1.0.132

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifySnapshotAttributeResponse added in v1.0.132

func NewModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse)

func (*ModifySnapshotAttributeResponse) FromJsonString added in v1.0.132

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

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

func (*ModifySnapshotAttributeResponse) ToJsonString added in v1.0.132

func (r *ModifySnapshotAttributeResponse) ToJsonString() string

type Price

type Price struct {

	// 实例价格。
	InstancePrice *InstancePrice `json:"InstancePrice,omitempty" name:"InstancePrice"`
}

type RebootInstancesRequest

type RebootInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewRebootInstancesRequest

func NewRebootInstancesRequest() (request *RebootInstancesRequest)

func (*RebootInstancesRequest) FromJsonString

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

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 {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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 added in v1.0.153

type RegionInfo struct {

	// 地域名称,例如,ap-guangzhou。
	Region *string `json:"Region,omitempty" name:"Region"`

	// 地域描述,例如,华南地区(广州)。
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 地域是否可用状态。
	RegionState *string `json:"RegionState,omitempty" name:"RegionState"`

	// 是否中国大陆地域
	IsChinaMainland *bool `json:"IsChinaMainland,omitempty" name:"IsChinaMainland"`
}

type ResetInstanceBlueprint added in v1.0.153

type ResetInstanceBlueprint struct {

	// 镜像详细信息
	BlueprintInfo *Blueprint `json:"BlueprintInfo,omitempty" name:"BlueprintInfo"`

	// 实例镜像是否可重置为目标镜像
	IsResettable *bool `json:"IsResettable,omitempty" name:"IsResettable"`

	// 不可重置信息.当镜像可重置时为""
	NonResettableMessage *string `json:"NonResettableMessage,omitempty" name:"NonResettableMessage"`
}

type ResetInstanceRequest

type ResetInstanceRequest struct {
	*tchttp.BaseRequest

	// 实例 ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 镜像 ID。可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值中的BlueprintId获取。
	BlueprintId *string `json:"BlueprintId,omitempty" name:"BlueprintId"`
}

func NewResetInstanceRequest

func NewResetInstanceRequest() (request *ResetInstanceRequest)

func (*ResetInstanceRequest) FromJsonString

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

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 {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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 added in v1.0.153

type ResetInstancesPasswordRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`

	// 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:
	// `LINUX_UNIX` 实例密码必须 8-30 位,推荐使用 12 位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字:0-9<br><li>特殊字符: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
	// `WINDOWS` 实例密码必须 12-30 位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字: 0-9<br><li>特殊字符:()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>如果实例即包含 `LINUX_UNIX` 实例又包含 `WINDOWS` 实例,则密码复杂度限制按照 `WINDOWS` 实例的限制。
	Password *string `json:"Password,omitempty" name:"Password"`

	// 待重置密码的实例操作系统用户名。不得超过 64 个字符。
	UserName *string `json:"UserName,omitempty" name:"UserName"`
}

func NewResetInstancesPasswordRequest added in v1.0.153

func NewResetInstancesPasswordRequest() (request *ResetInstancesPasswordRequest)

func (*ResetInstancesPasswordRequest) FromJsonString added in v1.0.153

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

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

func (*ResetInstancesPasswordRequest) ToJsonString added in v1.0.153

func (r *ResetInstancesPasswordRequest) ToJsonString() string

type ResetInstancesPasswordResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetInstancesPasswordResponse added in v1.0.153

func NewResetInstancesPasswordResponse() (response *ResetInstancesPasswordResponse)

func (*ResetInstancesPasswordResponse) FromJsonString added in v1.0.153

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

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

func (*ResetInstancesPasswordResponse) ToJsonString added in v1.0.153

func (r *ResetInstancesPasswordResponse) ToJsonString() string

type Snapshot added in v1.0.132

type Snapshot struct {

	// 快照 ID。
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// 创建此快照的磁盘类型。取值:<li>SYSTEM_DISK:系统盘</li>
	DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"`

	// 创建此快照的磁盘 ID。
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`

	// 创建此快照的磁盘大小,单位 GB。
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// 快照名称,用户自定义的快照别名。
	SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"`

	// 快照的状态。取值范围:
	// <li>NORMAL:正常 </li>
	// <li>CREATING:创建中</li>
	// <li>ROLLBACKING:回滚中。</li>
	SnapshotState *string `json:"SnapshotState,omitempty" name:"SnapshotState"`

	// 创建或回滚快照进度百分比,成功后此字段取值为 100。
	Percent *int64 `json:"Percent,omitempty" name:"Percent"`

	// 快照的最新操作,只有创建、回滚快照时记录。
	// 取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。
	// 注意:此字段可能返回 null,表示取不到有效值。
	LatestOperation *string `json:"LatestOperation,omitempty" name:"LatestOperation"`

	// 快照的最新操作状态,只有创建、回滚快照时记录。
	// 取值范围:
	// <li>SUCCESS:表示操作成功</li>
	// <li>OPERATING:表示操作执行中</li>
	// <li>FAILED:表示操作失败</li>
	// 注意:此字段可能返回 null,表示取不到有效值。
	LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`

	// 快照最新操作的唯一请求 ID,只有创建、回滚快照时记录。
	// 注意:此字段可能返回 null,表示取不到有效值。
	LatestOperationRequestId *string `json:"LatestOperationRequestId,omitempty" name:"LatestOperationRequestId"`

	// 快照的创建时间。
	CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
}

type SnapshotDeniedActions added in v1.0.153

type SnapshotDeniedActions struct {

	// 快照 ID。
	SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`

	// 操作限制列表。
	DeniedActions []*DeniedAction `json:"DeniedActions,omitempty" name:"DeniedActions" list`
}

type Software added in v1.0.153

type Software struct {

	// 软件名称。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 软件版本。
	Version *string `json:"Version,omitempty" name:"Version"`

	// 软件图片 URL。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// 软件安装目录。
	InstallDir *string `json:"InstallDir,omitempty" name:"InstallDir"`

	// 软件详情列表。
	DetailSet []*SoftwareDetail `json:"DetailSet,omitempty" name:"DetailSet" list`
}

type SoftwareDetail added in v1.0.153

type SoftwareDetail struct {

	// 详情唯一键。
	Key *string `json:"Key,omitempty" name:"Key"`

	// 详情标题。
	Title *string `json:"Title,omitempty" name:"Title"`

	// 详情值。
	Value *string `json:"Value,omitempty" name:"Value"`
}

type StartInstancesRequest

type StartInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewStartInstancesRequest

func NewStartInstancesRequest() (request *StartInstancesRequest)

func (*StartInstancesRequest) FromJsonString

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

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 {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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

	// 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewStopInstancesRequest

func NewStopInstancesRequest() (request *StopInstancesRequest)

func (*StopInstancesRequest) FromJsonString

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

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 {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		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

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 {

	// 系统盘类型。
	// 取值范围:
	// <li> LOCAL_BASIC:本地硬盘</li><li> LOCAL_SSD:本地 SSD 硬盘</li><li> CLOUD_BASIC:普通云硬盘</li><li> CLOUD_SSD:SSD 云硬盘</li><li> CLOUD_PREMIUM:高性能云硬盘</li>
	DiskType *string `json:"DiskType,omitempty" name:"DiskType"`

	// 系统盘大小,单位:GB。
	DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`

	// 系统盘ID。
	// 注意:此字段可能返回 null,表示取不到有效值。
	DiskId *string `json:"DiskId,omitempty" name:"DiskId"`
}

type TerminateInstancesRequest added in v1.0.153

type TerminateInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例ID列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
	InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
}

func NewTerminateInstancesRequest added in v1.0.153

func NewTerminateInstancesRequest() (request *TerminateInstancesRequest)

func (*TerminateInstancesRequest) FromJsonString added in v1.0.153

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

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

func (*TerminateInstancesRequest) ToJsonString added in v1.0.153

func (r *TerminateInstancesRequest) ToJsonString() string

type TerminateInstancesResponse added in v1.0.153

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewTerminateInstancesResponse added in v1.0.153

func NewTerminateInstancesResponse() (response *TerminateInstancesResponse)

func (*TerminateInstancesResponse) FromJsonString added in v1.0.153

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

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

func (*TerminateInstancesResponse) ToJsonString added in v1.0.153

func (r *TerminateInstancesResponse) ToJsonString() string

type TrafficPackage added in v1.0.26

type TrafficPackage struct {

	// 流量包ID。
	TrafficPackageId *string `json:"TrafficPackageId,omitempty" name:"TrafficPackageId"`

	// 流量包生效周期内已使用流量,单位字节。
	TrafficUsed *int64 `json:"TrafficUsed,omitempty" name:"TrafficUsed"`

	// 流量包生效周期内的总流量,单位字节。
	TrafficPackageTotal *int64 `json:"TrafficPackageTotal,omitempty" name:"TrafficPackageTotal"`

	// 流量包生效周期内的剩余流量,单位字节。
	TrafficPackageRemaining *int64 `json:"TrafficPackageRemaining,omitempty" name:"TrafficPackageRemaining"`

	// 流量包生效周期内超出流量包额度的流量,单位字节。
	TrafficOverflow *int64 `json:"TrafficOverflow,omitempty" name:"TrafficOverflow"`

	// 流量包生效周期开始时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 流量包生效周期结束时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 流量包到期时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
	// 格式为: YYYY-MM-DDThh:mm:ssZ。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Deadline *string `json:"Deadline,omitempty" name:"Deadline"`

	// 流量包状态:
	// <li>NETWORK_NORMAL:正常</li>
	// <li>OVERDUE_NETWORK_DISABLED:欠费断网</li>
	Status *string `json:"Status,omitempty" name:"Status"`
}

Jump to

Keyboard shortcuts

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