Documentation
¶
Index ¶
- Constants
- type ApplyInstanceSnapshotRequest
- type ApplyInstanceSnapshotResponse
- type Blueprint
- type Bundle
- type Client
- func (c *Client) ApplyInstanceSnapshot(request *ApplyInstanceSnapshotRequest) (response *ApplyInstanceSnapshotResponse, err error)
- func (c *Client) CreateBlueprint(request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
- func (c *Client) CreateFirewallRules(request *CreateFirewallRulesRequest) (response *CreateFirewallRulesResponse, err error)
- func (c *Client) CreateInstanceSnapshot(request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
- func (c *Client) DeleteBlueprints(request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
- func (c *Client) DeleteFirewallRules(request *DeleteFirewallRulesRequest) (response *DeleteFirewallRulesResponse, err error)
- func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
- func (c *Client) DescribeBlueprints(request *DescribeBlueprintsRequest) (response *DescribeBlueprintsResponse, err error)
- func (c *Client) DescribeBundles(request *DescribeBundlesRequest) (response *DescribeBundlesResponse, err error)
- func (c *Client) DescribeFirewallRules(request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesTrafficPackages(request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
- func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
- func (c *Client) ModifyBlueprintAttribute(request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
- func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
- func (c *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error)
- func (c *Client) ResetInstance(request *ResetInstanceRequest) (response *ResetInstanceResponse, err error)
- func (c *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error)
- func (c *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error)
- type CreateBlueprintRequest
- type CreateBlueprintResponse
- type CreateFirewallRulesRequest
- type CreateFirewallRulesResponse
- type CreateInstanceSnapshotRequest
- type CreateInstanceSnapshotResponse
- type DeleteBlueprintsRequest
- type DeleteBlueprintsResponse
- type DeleteFirewallRulesRequest
- type DeleteFirewallRulesResponse
- type DeleteSnapshotsRequest
- type DeleteSnapshotsResponse
- type DescribeBlueprintsRequest
- type DescribeBlueprintsResponse
- type DescribeBundlesRequest
- type DescribeBundlesResponse
- type DescribeFirewallRulesRequest
- type DescribeFirewallRulesResponse
- type DescribeInstancesRequest
- type DescribeInstancesResponse
- type DescribeInstancesTrafficPackagesRequest
- type DescribeInstancesTrafficPackagesResponse
- type DescribeSnapshotsRequest
- type DescribeSnapshotsResponse
- type Filter
- type FirewallRule
- type FirewallRuleInfo
- type Instance
- type InstancePrice
- type InstanceTrafficPackage
- type InternetAccessible
- type LoginSettings
- type ModifyBlueprintAttributeRequest
- type ModifyBlueprintAttributeResponse
- type ModifySnapshotAttributeRequest
- type ModifySnapshotAttributeResponse
- type Price
- type RebootInstancesRequest
- type RebootInstancesResponse
- type ResetInstanceRequest
- type ResetInstanceResponse
- type Snapshot
- type StartInstancesRequest
- type StartInstancesResponse
- type StopInstancesRequest
- type StopInstancesResponse
- type SystemDisk
- type TrafficPackage
Constants ¶
const APIVersion = "2020-03-24"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyInstanceSnapshotRequest ¶
type ApplyInstanceSnapshotRequest struct { *tchttp.BaseRequest // 实例 ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 快照 ID。 SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` }
func NewApplyInstanceSnapshotRequest ¶
func NewApplyInstanceSnapshotRequest() (request *ApplyInstanceSnapshotRequest)
func (*ApplyInstanceSnapshotRequest) FromJsonString ¶
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 ¶
func (r *ApplyInstanceSnapshotRequest) ToJsonString() string
type ApplyInstanceSnapshotResponse ¶
type ApplyInstanceSnapshotResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewApplyInstanceSnapshotResponse ¶
func NewApplyInstanceSnapshotResponse() (response *ApplyInstanceSnapshotResponse)
func (*ApplyInstanceSnapshotResponse) FromJsonString ¶
func (r *ApplyInstanceSnapshotResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ApplyInstanceSnapshotResponse) ToJsonString ¶
func (r *ApplyInstanceSnapshotResponse) ToJsonString() string
type Blueprint ¶
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 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 ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ApplyInstanceSnapshot ¶
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) CreateBlueprint ¶
func (c *Client) CreateBlueprint(request *CreateBlueprintRequest) (response *CreateBlueprintResponse, err error)
本接口 (CreateBlueprint) 用于创建镜像。
func (*Client) CreateFirewallRules ¶
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 ¶
func (c *Client) CreateInstanceSnapshot(request *CreateInstanceSnapshotRequest) (response *CreateInstanceSnapshotResponse, err error)
本接口(CreateInstanceSnapshot)用于创建指定实例的系统盘快照。
func (*Client) DeleteBlueprints ¶
func (c *Client) DeleteBlueprints(request *DeleteBlueprintsRequest) (response *DeleteBlueprintsResponse, err error)
本接口 (DeleteBlueprints) 用于删除镜像。
func (*Client) DeleteFirewallRules ¶
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) DeleteSnapshots ¶
func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
本接口(DeleteSnapshots)用于删除快照。 快照必须处于 NORMAL 状态,快照状态可以通过 DescribeSnapshots 接口查询,见输出参数中 SnapshotState 字段解释。
func (*Client) DescribeBlueprints ¶
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 ¶
func (c *Client) DescribeFirewallRules(request *DescribeFirewallRulesRequest) (response *DescribeFirewallRulesResponse, err error)
本接口(DescribeFirewallRules)用于查询实例的防火墙规则。
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) DescribeInstancesTrafficPackages ¶
func (c *Client) DescribeInstancesTrafficPackages(request *DescribeInstancesTrafficPackagesRequest) (response *DescribeInstancesTrafficPackagesResponse, err error)
本接口(DescribeInstancesTrafficPackages)用于查询一个或多个实例的流量包详情。
func (*Client) DescribeSnapshots ¶
func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
本接口(DescribeSnapshots)用于查询快照的详细信息。
func (*Client) ModifyBlueprintAttribute ¶
func (c *Client) ModifyBlueprintAttribute(request *ModifyBlueprintAttributeRequest) (response *ModifyBlueprintAttributeResponse, err error)
本接口 (ModifyBlueprintAttribute) 用于修改镜像属性。
func (*Client) ModifySnapshotAttribute ¶
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) 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”,则代表操作成功。
type CreateBlueprintRequest ¶
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 ¶
func NewCreateBlueprintRequest() (request *CreateBlueprintRequest)
func (*CreateBlueprintRequest) FromJsonString ¶
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 ¶
func (r *CreateBlueprintRequest) ToJsonString() string
type CreateBlueprintResponse ¶
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 ¶
func NewCreateBlueprintResponse() (response *CreateBlueprintResponse)
func (*CreateBlueprintResponse) FromJsonString ¶
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 ¶
func (r *CreateBlueprintResponse) ToJsonString() string
type CreateFirewallRulesRequest ¶
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 ¶
func NewCreateFirewallRulesRequest() (request *CreateFirewallRulesRequest)
func (*CreateFirewallRulesRequest) FromJsonString ¶
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 ¶
func (r *CreateFirewallRulesRequest) ToJsonString() string
type CreateFirewallRulesResponse ¶
type CreateFirewallRulesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateFirewallRulesResponse ¶
func NewCreateFirewallRulesResponse() (response *CreateFirewallRulesResponse)
func (*CreateFirewallRulesResponse) FromJsonString ¶
func (r *CreateFirewallRulesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateFirewallRulesResponse) ToJsonString ¶
func (r *CreateFirewallRulesResponse) ToJsonString() string
type CreateInstanceSnapshotRequest ¶
type CreateInstanceSnapshotRequest struct { *tchttp.BaseRequest // 需要创建快照的实例 ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 快照名称,最长为 60 个字符。 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
func NewCreateInstanceSnapshotRequest ¶
func NewCreateInstanceSnapshotRequest() (request *CreateInstanceSnapshotRequest)
func (*CreateInstanceSnapshotRequest) FromJsonString ¶
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 ¶
func (r *CreateInstanceSnapshotRequest) ToJsonString() string
type CreateInstanceSnapshotResponse ¶
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 ¶
func NewCreateInstanceSnapshotResponse() (response *CreateInstanceSnapshotResponse)
func (*CreateInstanceSnapshotResponse) FromJsonString ¶
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 ¶
func (r *CreateInstanceSnapshotResponse) ToJsonString() string
type DeleteBlueprintsRequest ¶
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 ¶
func NewDeleteBlueprintsRequest() (request *DeleteBlueprintsRequest)
func (*DeleteBlueprintsRequest) FromJsonString ¶
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 ¶
func (r *DeleteBlueprintsRequest) ToJsonString() string
type DeleteBlueprintsResponse ¶
type DeleteBlueprintsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteBlueprintsResponse ¶
func NewDeleteBlueprintsResponse() (response *DeleteBlueprintsResponse)
func (*DeleteBlueprintsResponse) FromJsonString ¶
func (r *DeleteBlueprintsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteBlueprintsResponse) ToJsonString ¶
func (r *DeleteBlueprintsResponse) ToJsonString() string
type DeleteFirewallRulesRequest ¶
type DeleteFirewallRulesRequest struct { *tchttp.BaseRequest // 实例 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 ¶
func NewDeleteFirewallRulesRequest() (request *DeleteFirewallRulesRequest)
func (*DeleteFirewallRulesRequest) FromJsonString ¶
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 ¶
func (r *DeleteFirewallRulesRequest) ToJsonString() string
type DeleteFirewallRulesResponse ¶
type DeleteFirewallRulesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteFirewallRulesResponse ¶
func NewDeleteFirewallRulesResponse() (response *DeleteFirewallRulesResponse)
func (*DeleteFirewallRulesResponse) FromJsonString ¶
func (r *DeleteFirewallRulesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteFirewallRulesResponse) ToJsonString ¶
func (r *DeleteFirewallRulesResponse) ToJsonString() string
type DeleteSnapshotsRequest ¶
type DeleteSnapshotsRequest struct { *tchttp.BaseRequest // 要删除的快照 ID 列表,可通过 DescribeSnapshots 查询。 SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds" list` }
func NewDeleteSnapshotsRequest ¶
func NewDeleteSnapshotsRequest() (request *DeleteSnapshotsRequest)
func (*DeleteSnapshotsRequest) FromJsonString ¶
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 ¶
func (r *DeleteSnapshotsRequest) ToJsonString() string
type DeleteSnapshotsResponse ¶
type DeleteSnapshotsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteSnapshotsResponse ¶
func NewDeleteSnapshotsResponse() (response *DeleteSnapshotsResponse)
func (*DeleteSnapshotsResponse) FromJsonString ¶
func (r *DeleteSnapshotsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSnapshotsResponse) ToJsonString ¶
func (r *DeleteSnapshotsResponse) ToJsonString() string
type DescribeBlueprintsRequest ¶
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 ¶
func NewDescribeBlueprintsRequest() (request *DescribeBlueprintsRequest)
func (*DescribeBlueprintsRequest) FromJsonString ¶
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 ¶
func (r *DescribeBlueprintsRequest) ToJsonString() string
type DescribeBlueprintsResponse ¶
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 ¶
func NewDescribeBlueprintsResponse() (response *DescribeBlueprintsResponse)
func (*DescribeBlueprintsResponse) FromJsonString ¶
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 ¶
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 ¶
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 ¶
func NewDescribeFirewallRulesRequest() (request *DescribeFirewallRulesRequest)
func (*DescribeFirewallRulesRequest) FromJsonString ¶
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 ¶
func (r *DescribeFirewallRulesRequest) ToJsonString() string
type DescribeFirewallRulesResponse ¶
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 ¶
func NewDescribeFirewallRulesResponse() (response *DescribeFirewallRulesResponse)
func (*DescribeFirewallRulesResponse) FromJsonString ¶
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 ¶
func (r *DescribeFirewallRulesResponse) ToJsonString() string
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 DescribeInstancesTrafficPackagesRequest ¶
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 ¶
func NewDescribeInstancesTrafficPackagesRequest() (request *DescribeInstancesTrafficPackagesRequest)
func (*DescribeInstancesTrafficPackagesRequest) FromJsonString ¶
func (r *DescribeInstancesTrafficPackagesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesTrafficPackagesRequest) ToJsonString ¶
func (r *DescribeInstancesTrafficPackagesRequest) ToJsonString() string
type DescribeInstancesTrafficPackagesResponse ¶
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 ¶
func NewDescribeInstancesTrafficPackagesResponse() (response *DescribeInstancesTrafficPackagesResponse)
func (*DescribeInstancesTrafficPackagesResponse) FromJsonString ¶
func (r *DescribeInstancesTrafficPackagesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesTrafficPackagesResponse) ToJsonString ¶
func (r *DescribeInstancesTrafficPackagesResponse) ToJsonString() string
type DescribeSnapshotsRequest ¶
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 ¶
func NewDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest)
func (*DescribeSnapshotsRequest) FromJsonString ¶
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 ¶
func (r *DescribeSnapshotsRequest) ToJsonString() string
type DescribeSnapshotsResponse ¶
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 ¶
func NewDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse)
func (*DescribeSnapshotsResponse) FromJsonString ¶
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 ¶
func (r *DescribeSnapshotsResponse) ToJsonString() string
type FirewallRule ¶
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 ¶
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 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 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 InstanceTrafficPackage ¶
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 LoginSettings ¶
type LoginSettings struct { // 密钥 ID 列表。关联密钥后,就可以通过对应的私钥来访问实例。注意:此字段可能返回 [],表示取不到有效值。 KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list` }
type ModifyBlueprintAttributeRequest ¶
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 ¶
func NewModifyBlueprintAttributeRequest() (request *ModifyBlueprintAttributeRequest)
func (*ModifyBlueprintAttributeRequest) FromJsonString ¶
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 ¶
func (r *ModifyBlueprintAttributeRequest) ToJsonString() string
type ModifyBlueprintAttributeResponse ¶
type ModifyBlueprintAttributeResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyBlueprintAttributeResponse ¶
func NewModifyBlueprintAttributeResponse() (response *ModifyBlueprintAttributeResponse)
func (*ModifyBlueprintAttributeResponse) FromJsonString ¶
func (r *ModifyBlueprintAttributeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlueprintAttributeResponse) ToJsonString ¶
func (r *ModifyBlueprintAttributeResponse) ToJsonString() string
type ModifySnapshotAttributeRequest ¶
type ModifySnapshotAttributeRequest struct { *tchttp.BaseRequest // 快照 ID, 可通过 DescribeSnapshots 查询。 SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // 新的快照名称,最长为 60 个字符。 SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` }
func NewModifySnapshotAttributeRequest ¶
func NewModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest)
func (*ModifySnapshotAttributeRequest) FromJsonString ¶
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 ¶
func (r *ModifySnapshotAttributeRequest) ToJsonString() string
type ModifySnapshotAttributeResponse ¶
type ModifySnapshotAttributeResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifySnapshotAttributeResponse ¶
func NewModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse)
func (*ModifySnapshotAttributeResponse) FromJsonString ¶
func (r *ModifySnapshotAttributeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySnapshotAttributeResponse) ToJsonString ¶
func (r *ModifySnapshotAttributeResponse) ToJsonString() string
type Price ¶
type Price struct { // 实例价格。 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 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 Snapshot ¶
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 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 TrafficPackage ¶
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"` }