Documentation ¶
Index ¶
- Constants
- type BindPsaTagRequest
- type BindPsaTagResponse
- type BuyDevicesRequest
- type BuyDevicesResponse
- type Client
- func (c *Client) BindPsaTag(request *BindPsaTagRequest) (response *BindPsaTagResponse, err error)
- func (c *Client) BuyDevices(request *BuyDevicesRequest) (response *BuyDevicesResponse, err error)
- func (c *Client) CreateCustomImage(request *CreateCustomImageRequest) (response *CreateCustomImageResponse, err error)
- func (c *Client) CreatePsaRegulation(request *CreatePsaRegulationRequest) (response *CreatePsaRegulationResponse, err error)
- func (c *Client) CreateSpotDevice(request *CreateSpotDeviceRequest) (response *CreateSpotDeviceResponse, err error)
- func (c *Client) CreateUserCmd(request *CreateUserCmdRequest) (response *CreateUserCmdResponse, err error)
- func (c *Client) DeleteCustomImages(request *DeleteCustomImagesRequest) (response *DeleteCustomImagesResponse, err error)
- func (c *Client) DeletePsaRegulation(request *DeletePsaRegulationRequest) (response *DeletePsaRegulationResponse, err error)
- func (c *Client) DeleteUserCmds(request *DeleteUserCmdsRequest) (response *DeleteUserCmdsResponse, err error)
- func (c *Client) DescribeCustomImageProcess(request *DescribeCustomImageProcessRequest) (response *DescribeCustomImageProcessResponse, err error)
- func (c *Client) DescribeCustomImages(request *DescribeCustomImagesRequest) (response *DescribeCustomImagesResponse, err error)
- func (c *Client) DescribeDeviceClass(request *DescribeDeviceClassRequest) (response *DescribeDeviceClassResponse, err error)
- func (c *Client) DescribeDeviceClassPartition(request *DescribeDeviceClassPartitionRequest) (response *DescribeDeviceClassPartitionResponse, err error)
- func (c *Client) DescribeDeviceHardwareInfo(request *DescribeDeviceHardwareInfoRequest) (response *DescribeDeviceHardwareInfoResponse, err error)
- func (c *Client) DescribeDeviceInventory(request *DescribeDeviceInventoryRequest) (response *DescribeDeviceInventoryResponse, err error)
- func (c *Client) DescribeDeviceOperationLog(request *DescribeDeviceOperationLogRequest) (response *DescribeDeviceOperationLogResponse, err error)
- func (c *Client) DescribeDevicePartition(request *DescribeDevicePartitionRequest) (response *DescribeDevicePartitionResponse, err error)
- func (c *Client) DescribeDevicePosition(request *DescribeDevicePositionRequest) (response *DescribeDevicePositionResponse, err error)
- func (c *Client) DescribeDevicePriceInfo(request *DescribeDevicePriceInfoRequest) (response *DescribeDevicePriceInfoResponse, err error)
- func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
- func (c *Client) DescribeHardwareSpecification(request *DescribeHardwareSpecificationRequest) (response *DescribeHardwareSpecificationResponse, err error)
- func (c *Client) DescribeHostedDeviceOutBandInfo(request *DescribeHostedDeviceOutBandInfoRequest) (response *DescribeHostedDeviceOutBandInfoResponse, err error)
- func (c *Client) DescribeOperationResult(request *DescribeOperationResultRequest) (response *DescribeOperationResultResponse, err error)
- func (c *Client) DescribeOsInfo(request *DescribeOsInfoRequest) (response *DescribeOsInfoResponse, err error)
- func (c *Client) DescribePsaRegulations(request *DescribePsaRegulationsRequest) (response *DescribePsaRegulationsResponse, err error)
- func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeRepairTaskConstant(request *DescribeRepairTaskConstantRequest) (response *DescribeRepairTaskConstantResponse, err error)
- func (c *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
- func (c *Client) DescribeTaskOperationLog(request *DescribeTaskOperationLogRequest) (response *DescribeTaskOperationLogResponse, err error)
- func (c *Client) DescribeUserCmdTaskInfo(request *DescribeUserCmdTaskInfoRequest) (response *DescribeUserCmdTaskInfoResponse, err error)
- func (c *Client) DescribeUserCmdTasks(request *DescribeUserCmdTasksRequest) (response *DescribeUserCmdTasksResponse, err error)
- func (c *Client) DescribeUserCmds(request *DescribeUserCmdsRequest) (response *DescribeUserCmdsResponse, err error)
- func (c *Client) ModifyCustomImageAttribute(request *ModifyCustomImageAttributeRequest) (response *ModifyCustomImageAttributeResponse, err error)
- func (c *Client) ModifyDeviceAliases(request *ModifyDeviceAliasesRequest) (response *ModifyDeviceAliasesResponse, err error)
- func (c *Client) ModifyDeviceAutoRenewFlag(request *ModifyDeviceAutoRenewFlagRequest) (response *ModifyDeviceAutoRenewFlagResponse, err error)
- func (c *Client) ModifyLanIp(request *ModifyLanIpRequest) (response *ModifyLanIpResponse, err error)
- func (c *Client) ModifyPayModePre2Post(request *ModifyPayModePre2PostRequest) (response *ModifyPayModePre2PostResponse, err error)
- func (c *Client) ModifyPsaRegulation(request *ModifyPsaRegulationRequest) (response *ModifyPsaRegulationResponse, err error)
- func (c *Client) ModifyUserCmd(request *ModifyUserCmdRequest) (response *ModifyUserCmdResponse, err error)
- func (c *Client) OfflineDevices(request *OfflineDevicesRequest) (response *OfflineDevicesResponse, err error)
- func (c *Client) RebootDevices(request *RebootDevicesRequest) (response *RebootDevicesResponse, err error)
- func (c *Client) RecoverDevices(request *RecoverDevicesRequest) (response *RecoverDevicesResponse, err error)
- func (c *Client) RepairTaskControl(request *RepairTaskControlRequest) (response *RepairTaskControlResponse, err error)
- func (c *Client) ResetDevicePassword(request *ResetDevicePasswordRequest) (response *ResetDevicePasswordResponse, err error)
- func (c *Client) ReturnDevices(request *ReturnDevicesRequest) (response *ReturnDevicesResponse, err error)
- func (c *Client) RunUserCmd(request *RunUserCmdRequest) (response *RunUserCmdResponse, err error)
- func (c *Client) SetOutBandVpnAuthPassword(request *SetOutBandVpnAuthPasswordRequest) (response *SetOutBandVpnAuthPasswordResponse, err error)
- func (c *Client) ShutdownDevices(request *ShutdownDevicesRequest) (response *ShutdownDevicesResponse, err error)
- func (c *Client) StartDevices(request *StartDevicesRequest) (response *StartDevicesResponse, err error)
- func (c *Client) UnbindPsaTag(request *UnbindPsaTagRequest) (response *UnbindPsaTagResponse, err error)
- type CpuInfo
- type CreateCustomImageRequest
- type CreateCustomImageResponse
- type CreatePsaRegulationRequest
- type CreatePsaRegulationResponse
- type CreateSpotDeviceRequest
- type CreateSpotDeviceResponse
- type CreateUserCmdRequest
- type CreateUserCmdResponse
- type CustomImage
- type CustomImageProcess
- type DeleteCustomImagesRequest
- type DeleteCustomImagesResponse
- type DeletePsaRegulationRequest
- type DeletePsaRegulationResponse
- type DeleteUserCmdsRequest
- type DeleteUserCmdsResponse
- type DescribeCustomImageProcessRequest
- type DescribeCustomImageProcessResponse
- type DescribeCustomImagesRequest
- type DescribeCustomImagesResponse
- type DescribeDeviceClassPartitionRequest
- type DescribeDeviceClassPartitionResponse
- type DescribeDeviceClassRequest
- type DescribeDeviceClassResponse
- type DescribeDeviceHardwareInfoRequest
- type DescribeDeviceHardwareInfoResponse
- type DescribeDeviceInventoryRequest
- type DescribeDeviceInventoryResponse
- type DescribeDeviceOperationLogRequest
- type DescribeDeviceOperationLogResponse
- type DescribeDevicePartitionRequest
- type DescribeDevicePartitionResponse
- type DescribeDevicePositionRequest
- type DescribeDevicePositionResponse
- type DescribeDevicePriceInfoRequest
- type DescribeDevicePriceInfoResponse
- type DescribeDevicesRequest
- type DescribeDevicesResponse
- type DescribeHardwareSpecificationRequest
- type DescribeHardwareSpecificationResponse
- type DescribeHostedDeviceOutBandInfoRequest
- type DescribeHostedDeviceOutBandInfoResponse
- type DescribeOperationResultRequest
- type DescribeOperationResultResponse
- type DescribeOsInfoRequest
- type DescribeOsInfoResponse
- type DescribePsaRegulationsRequest
- type DescribePsaRegulationsResponse
- type DescribeRegionsRequest
- type DescribeRegionsResponse
- type DescribeRepairTaskConstantRequest
- type DescribeRepairTaskConstantResponse
- type DescribeTaskInfoRequest
- type DescribeTaskInfoResponse
- type DescribeTaskOperationLogRequest
- type DescribeTaskOperationLogResponse
- type DescribeUserCmdTaskInfoRequest
- type DescribeUserCmdTaskInfoResponse
- type DescribeUserCmdTasksRequest
- type DescribeUserCmdTasksResponse
- type DescribeUserCmdsRequest
- type DescribeUserCmdsResponse
- type DeviceAlias
- type DeviceClass
- type DeviceClassPartitionInfo
- type DeviceDiskSizeInfo
- type DeviceHardwareInfo
- type DeviceInfo
- type DeviceOperationLog
- type DevicePartition
- type DevicePositionInfo
- type DevicePriceInfo
- type DiskInfo
- type FailedTaskInfo
- type HostedDeviceOutBandInfo
- type ModifyCustomImageAttributeRequest
- type ModifyCustomImageAttributeResponse
- type ModifyDeviceAliasesRequest
- type ModifyDeviceAliasesResponse
- type ModifyDeviceAutoRenewFlagRequest
- type ModifyDeviceAutoRenewFlagResponse
- type ModifyLanIpRequest
- type ModifyLanIpResponse
- type ModifyPayModePre2PostRequest
- type ModifyPayModePre2PostResponse
- type ModifyPsaRegulationRequest
- type ModifyPsaRegulationResponse
- type ModifyUserCmdRequest
- type ModifyUserCmdResponse
- type OfflineDevicesRequest
- type OfflineDevicesResponse
- type OsInfo
- type PartitionInfo
- type PsaRegulation
- type RebootDevicesRequest
- type RebootDevicesResponse
- type RecoverDevicesRequest
- type RecoverDevicesResponse
- type RegionInfo
- type RepairTaskControlRequest
- type RepairTaskControlResponse
- type ResetDevicePasswordRequest
- type ResetDevicePasswordResponse
- type ReturnDevicesRequest
- type ReturnDevicesResponse
- type RunUserCmdRequest
- type RunUserCmdResponse
- type SetOutBandVpnAuthPasswordRequest
- type SetOutBandVpnAuthPasswordResponse
- type ShutdownDevicesRequest
- type ShutdownDevicesResponse
- type StartDevicesRequest
- type StartDevicesResponse
- type SubtaskStatus
- type SuccessTaskInfo
- type Tag
- type TaskInfo
- type TaskOperationLog
- type TaskType
- type UnbindPsaTagRequest
- type UnbindPsaTagResponse
- type UserCmd
- type UserCmdTask
- type UserCmdTaskInfo
- type ZoneInfo
Constants ¶
const APIVersion = "2018-04-23"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindPsaTagRequest ¶
type BindPsaTagRequest struct { *tchttp.BaseRequest // 预授权规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` // 需要绑定的标签key TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // 需要绑定的标签value TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
func NewBindPsaTagRequest ¶
func NewBindPsaTagRequest() (request *BindPsaTagRequest)
func (*BindPsaTagRequest) FromJsonString ¶
func (r *BindPsaTagRequest) FromJsonString(s string) error
func (*BindPsaTagRequest) ToJsonString ¶
func (r *BindPsaTagRequest) ToJsonString() string
type BindPsaTagResponse ¶
type BindPsaTagResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBindPsaTagResponse ¶
func NewBindPsaTagResponse() (response *BindPsaTagResponse)
func (*BindPsaTagResponse) FromJsonString ¶
func (r *BindPsaTagResponse) FromJsonString(s string) error
func (*BindPsaTagResponse) ToJsonString ¶
func (r *BindPsaTagResponse) ToJsonString() string
type BuyDevicesRequest ¶
type BuyDevicesRequest struct { *tchttp.BaseRequest // 可用区ID。通过接口[查询地域以及可用区(DescribeRegions)](https://cloud.tencent.com/document/api/386/33564)获取可用区信息 Zone *string `json:"Zone,omitempty" name:"Zone"` // 部署服务器的操作系统ID。通过接口[查询操作系统信息(DescribeOsInfo)](https://cloud.tencent.com/document/api/386/31964)获取操作系统信息 OsTypeId *uint64 `json:"OsTypeId,omitempty" name:"OsTypeId"` // RAID类型ID。通过接口[查询机型RAID方式以及系统盘大小(DescribeDeviceClassPartition)](https://cloud.tencent.com/document/api/386/32910)获取RAID信息 RaidId *uint64 `json:"RaidId,omitempty" name:"RaidId"` // 购买数量 GoodsCount *uint64 `json:"GoodsCount,omitempty" name:"GoodsCount"` // 购买至私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 购买至子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 购买的机型ID。通过接口[查询设备型号(DescribeDeviceClass)](https://cloud.tencent.com/document/api/386/32911)获取机型信息 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 购买时长单位,取值:M(月) D(天) TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // 购买时长 TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // 是否安装安全Agent,取值:1(安装) 0(不安装),默认取值0 NeedSecurityAgent *uint64 `json:"NeedSecurityAgent,omitempty" name:"NeedSecurityAgent"` // 是否安装监控Agent,取值:1(安装) 0(不安装),默认取值0 NeedMonitorAgent *uint64 `json:"NeedMonitorAgent,omitempty" name:"NeedMonitorAgent"` // 是否安装EMR Agent,取值:1(安装) 0(不安装),默认取值0 NeedEMRAgent *uint64 `json:"NeedEMRAgent,omitempty" name:"NeedEMRAgent"` // 是否安装EMR软件包,取值:1(安装) 0(不安装),默认取值0 NeedEMRSoftware *uint64 `json:"NeedEMRSoftware,omitempty" name:"NeedEMRSoftware"` // 是否分配弹性公网IP,取值:1(分配) 0(不分配),默认取值0 ApplyEip *uint64 `json:"ApplyEip,omitempty" name:"ApplyEip"` // 弹性公网IP计费模式,取值:Flow(按流量计费) Bandwidth(按带宽计费),默认取值Flow EipPayMode *string `json:"EipPayMode,omitempty" name:"EipPayMode"` // 弹性公网IP带宽限制,单位Mb EipBandwidth *uint64 `json:"EipBandwidth,omitempty" name:"EipBandwidth"` // 数据盘是否格式化,取值:1(格式化) 0(不格式化),默认取值为1 IsZoning *uint64 `json:"IsZoning,omitempty" name:"IsZoning"` // 物理机计费模式,取值:1(预付费) 2(后付费),默认取值为1 CpmPayMode *uint64 `json:"CpmPayMode,omitempty" name:"CpmPayMode"` // 自定义镜像ID,取值生效时用自定义镜像部署物理机 ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 设置Linux root或Windows Administrator的密码 Password *string `json:"Password,omitempty" name:"Password"` // 自动续费标志位,取值:1(自动续费) 0(不自动续费),默认取值0 AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // 系统盘根分区大小,单位为G,默认取值10G。通过接口[查询机型RAID方式以及系统盘大小(DescribeDeviceClassPartition)](https://cloud.tencent.com/document/api/386/32910)获取根分区信息 SysRootSpace *uint64 `json:"SysRootSpace,omitempty" name:"SysRootSpace"` // 系统盘swap分区或/boot/efi分区的大小,单位为G。若是uefi启动的机器,分区为/boot/efi,且此值是默认是2G。 普通机器为swap分区,可以不指定此分区。 机型是否是uefi启动,参见接口[查询设备型号(DescribeDeviceClass)](https://cloud.tencent.com/document/api/386/32911) SysSwaporuefiSpace *uint64 `json:"SysSwaporuefiSpace,omitempty" name:"SysSwaporuefiSpace"` // /usr/local分区大小,单位为G SysUsrlocalSpace *uint64 `json:"SysUsrlocalSpace,omitempty" name:"SysUsrlocalSpace"` // /data分区大小,单位为G。如果系统盘还有剩余大小,会分配给/data分区。(特殊情况:如果剩余空间不足10G,并且没有指定/data分区,则剩余空间会分配给Root分区) SysDataSpace *uint64 `json:"SysDataSpace,omitempty" name:"SysDataSpace"` // 是否开启超线程,取值:1(开启) 0(关闭),默认取值1 HyperThreading *uint64 `json:"HyperThreading,omitempty" name:"HyperThreading"` // 指定的内网IP列表,不指定时自动分配 LanIps []*string `json:"LanIps,omitempty" name:"LanIps" list` // 设备名称列表 Aliases []*string `json:"Aliases,omitempty" name:"Aliases" list` // CPU型号ID,自定义机型需要传入,取值: // <br/><li>1: E5-2620v3 (6核) * 2</li><li>2: E5-2680v4 (14核) * 2</li><li>3: E5-2670v3 (12核) * 2</li><li>4: E5-2620v4 (8核) * 2</li><li>5: 4110 (8核) * 2</li><li>6: 6133 (20核) * 2</li><br/> CpuId *uint64 `json:"CpuId,omitempty" name:"CpuId"` // 是否有RAID卡,取值:1(有) 0(无),自定义机型需要传入 ContainRaidCard *uint64 `json:"ContainRaidCard,omitempty" name:"ContainRaidCard"` // 内存大小,单位为G,自定义机型需要传入。取值参考接口[查询自定义机型部件信息(DescribeHardwareSpecification)](https://cloud.tencent.com/document/api/386/33565)返回值 MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // 系统盘ID,自定义机型需要传入。取值参考接口[查询自定义机型部件信息(DescribeHardwareSpecification)](https://cloud.tencent.com/document/api/386/33565)返回值 SystemDiskTypeId *uint64 `json:"SystemDiskTypeId,omitempty" name:"SystemDiskTypeId"` // 系统盘数量,自定义机型需要传入。取值参考接口[查询自定义机型部件信息(DescribeHardwareSpecification)](https://cloud.tencent.com/document/api/386/33565)返回值 SystemDiskCount *uint64 `json:"SystemDiskCount,omitempty" name:"SystemDiskCount"` // 数据盘ID,自定义机型需要传入。取值参考接口[查询自定义机型部件信息(DescribeHardwareSpecification)](https://cloud.tencent.com/document/api/386/33565)返回值 DataDiskTypeId *uint64 `json:"DataDiskTypeId,omitempty" name:"DataDiskTypeId"` // 数据盘数量,自定义机型需要传入。取值参考接口[查询自定义机型部件信息(DescribeHardwareSpecification)](https://cloud.tencent.com/document/api/386/33565)返回值 DataDiskCount *uint64 `json:"DataDiskCount,omitempty" name:"DataDiskCount"` // 绑定的标签列表 Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` // 指定数据盘的文件系统格式,当前支持 EXT4和XFS选项, 默认为EXT4。 参数适用于数据盘和Linux, 且在IsZoning为1时生效 FileSystem *string `json:"FileSystem,omitempty" name:"FileSystem"` }
func NewBuyDevicesRequest ¶
func NewBuyDevicesRequest() (request *BuyDevicesRequest)
func (*BuyDevicesRequest) FromJsonString ¶
func (r *BuyDevicesRequest) FromJsonString(s string) error
func (*BuyDevicesRequest) ToJsonString ¶
func (r *BuyDevicesRequest) ToJsonString() string
type BuyDevicesResponse ¶
type BuyDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 购买的物理机实例ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBuyDevicesResponse ¶
func NewBuyDevicesResponse() (response *BuyDevicesResponse)
func (*BuyDevicesResponse) FromJsonString ¶
func (r *BuyDevicesResponse) FromJsonString(s string) error
func (*BuyDevicesResponse) ToJsonString ¶
func (r *BuyDevicesResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) BindPsaTag ¶
func (c *Client) BindPsaTag(request *BindPsaTagRequest) (response *BindPsaTagResponse, err error)
为预授权规则绑定标签
func (*Client) BuyDevices ¶
func (c *Client) BuyDevices(request *BuyDevicesRequest) (response *BuyDevicesResponse, err error)
购买黑石物理机
func (*Client) CreateCustomImage ¶
func (c *Client) CreateCustomImage(request *CreateCustomImageRequest) (response *CreateCustomImageResponse, err error)
创建自定义镜像<br> 每个AppId在每个可用区最多保留20个自定义镜像
func (*Client) CreatePsaRegulation ¶
func (c *Client) CreatePsaRegulation(request *CreatePsaRegulationRequest) (response *CreatePsaRegulationResponse, err error)
创建预授权规则
func (*Client) CreateSpotDevice ¶
func (c *Client) CreateSpotDevice(request *CreateSpotDeviceRequest) (response *CreateSpotDeviceResponse, err error)
创建黑石竞价实例
func (*Client) CreateUserCmd ¶
func (c *Client) CreateUserCmd(request *CreateUserCmdRequest) (response *CreateUserCmdResponse, err error)
创建自定义脚本
func (*Client) DeleteCustomImages ¶
func (c *Client) DeleteCustomImages(request *DeleteCustomImagesRequest) (response *DeleteCustomImagesResponse, err error)
删除自定义镜像<br> 正用于部署或重装中的镜像被删除后,镜像文件将保留一段时间,直到部署或重装结束
func (*Client) DeletePsaRegulation ¶
func (c *Client) DeletePsaRegulation(request *DeletePsaRegulationRequest) (response *DeletePsaRegulationResponse, err error)
删除预授权规则
func (*Client) DeleteUserCmds ¶
func (c *Client) DeleteUserCmds(request *DeleteUserCmdsRequest) (response *DeleteUserCmdsResponse, err error)
删除自定义脚本
func (*Client) DescribeCustomImageProcess ¶
func (c *Client) DescribeCustomImageProcess(request *DescribeCustomImageProcessRequest) (response *DescribeCustomImageProcessResponse, err error)
查询自定义镜像制作进度
func (*Client) DescribeCustomImages ¶
func (c *Client) DescribeCustomImages(request *DescribeCustomImagesRequest) (response *DescribeCustomImagesResponse, err error)
查看自定义镜像列表
func (*Client) DescribeDeviceClass ¶
func (c *Client) DescribeDeviceClass(request *DescribeDeviceClassRequest) (response *DescribeDeviceClassResponse, err error)
获取获取设备类型
func (*Client) DescribeDeviceClassPartition ¶
func (c *Client) DescribeDeviceClassPartition(request *DescribeDeviceClassPartitionRequest) (response *DescribeDeviceClassPartitionResponse, err error)
查询机型支持的RAID方式, 并返回系统盘的分区和逻辑盘的列表
func (*Client) DescribeDeviceHardwareInfo ¶
func (c *Client) DescribeDeviceHardwareInfo(request *DescribeDeviceHardwareInfoRequest) (response *DescribeDeviceHardwareInfoResponse, err error)
查询设备硬件配置信息,如 CPU 型号,内存大小,磁盘大小和数量
func (*Client) DescribeDeviceInventory ¶
func (c *Client) DescribeDeviceInventory(request *DescribeDeviceInventoryRequest) (response *DescribeDeviceInventoryResponse, err error)
查询设备库存
func (*Client) DescribeDeviceOperationLog ¶
func (c *Client) DescribeDeviceOperationLog(request *DescribeDeviceOperationLogRequest) (response *DescribeDeviceOperationLogResponse, err error)
查询设备操作日志, 如设备重启,重装,设置密码等操作
func (*Client) DescribeDevicePartition ¶
func (c *Client) DescribeDevicePartition(request *DescribeDevicePartitionRequest) (response *DescribeDevicePartitionResponse, err error)
获取物理机的分区格式
func (*Client) DescribeDevicePosition ¶
func (c *Client) DescribeDevicePosition(request *DescribeDevicePositionRequest) (response *DescribeDevicePositionResponse, err error)
查询服务器所在的位置,如机架,上联交换机等信息
func (*Client) DescribeDevicePriceInfo ¶
func (c *Client) DescribeDevicePriceInfo(request *DescribeDevicePriceInfoRequest) (response *DescribeDevicePriceInfoResponse, err error)
查询服务器价格信息,支持设备的批量查找,支持标准机型和弹性机型的混合查找
func (*Client) DescribeDevices ¶
func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
查询物理服务器,可以按照实例,业务IP等过滤
func (*Client) DescribeHardwareSpecification ¶
func (c *Client) DescribeHardwareSpecification(request *DescribeHardwareSpecificationRequest) (response *DescribeHardwareSpecificationResponse, err error)
查询自定义机型部件信息,包括CpuId对应的型号,DiskTypeId对应的磁盘类型
func (*Client) DescribeHostedDeviceOutBandInfo ¶
func (c *Client) DescribeHostedDeviceOutBandInfo(request *DescribeHostedDeviceOutBandInfoRequest) (response *DescribeHostedDeviceOutBandInfoResponse, err error)
查询托管设备带外信息
func (*Client) DescribeOperationResult ¶
func (c *Client) DescribeOperationResult(request *DescribeOperationResultRequest) (response *DescribeOperationResultResponse, err error)
获取异步操作状态的完成状态
func (*Client) DescribeOsInfo ¶
func (c *Client) DescribeOsInfo(request *DescribeOsInfoRequest) (response *DescribeOsInfoResponse, err error)
查询指定机型所支持的操作系统
func (*Client) DescribePsaRegulations ¶
func (c *Client) DescribePsaRegulations(request *DescribePsaRegulationsRequest) (response *DescribePsaRegulationsResponse, err error)
获取预授权规则列表
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
查询地域以及可用区
func (*Client) DescribeRepairTaskConstant ¶
func (c *Client) DescribeRepairTaskConstant(request *DescribeRepairTaskConstantRequest) (response *DescribeRepairTaskConstantResponse, err error)
维修任务配置获取
func (*Client) DescribeTaskInfo ¶
func (c *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
获取用户维修任务列表及详细信息<br> <br> TaskStatus(任务状态ID)与状态中文名的对应关系如下:<br> 1:未授权<br> 2:处理中<br> 3:待确认<br> 4:未授权-暂不处理<br> 5:已恢复<br> 6:待确认-未恢复<br>
func (*Client) DescribeTaskOperationLog ¶
func (c *Client) DescribeTaskOperationLog(request *DescribeTaskOperationLogRequest) (response *DescribeTaskOperationLogResponse, err error)
获取维修任务操作日志
func (*Client) DescribeUserCmdTaskInfo ¶
func (c *Client) DescribeUserCmdTaskInfo(request *DescribeUserCmdTaskInfoRequest) (response *DescribeUserCmdTaskInfoResponse, err error)
获取自定义脚本任务详细信息
func (*Client) DescribeUserCmdTasks ¶
func (c *Client) DescribeUserCmdTasks(request *DescribeUserCmdTasksRequest) (response *DescribeUserCmdTasksResponse, err error)
获取自定义脚本任务列表
func (*Client) DescribeUserCmds ¶
func (c *Client) DescribeUserCmds(request *DescribeUserCmdsRequest) (response *DescribeUserCmdsResponse, err error)
获取自定义脚本信息列表
func (*Client) ModifyCustomImageAttribute ¶
func (c *Client) ModifyCustomImageAttribute(request *ModifyCustomImageAttributeRequest) (response *ModifyCustomImageAttributeResponse, err error)
用于修改自定义镜像名或描述
func (*Client) ModifyDeviceAliases ¶
func (c *Client) ModifyDeviceAliases(request *ModifyDeviceAliasesRequest) (response *ModifyDeviceAliasesResponse, err error)
修改服务器名称
func (*Client) ModifyDeviceAutoRenewFlag ¶
func (c *Client) ModifyDeviceAutoRenewFlag(request *ModifyDeviceAutoRenewFlagRequest) (response *ModifyDeviceAutoRenewFlagResponse, err error)
修改物理机服务器自动续费标志
func (*Client) ModifyLanIp ¶
func (c *Client) ModifyLanIp(request *ModifyLanIpRequest) (response *ModifyLanIpResponse, err error)
修改物理机内网IP(不重装系统)
func (*Client) ModifyPayModePre2Post ¶
func (c *Client) ModifyPayModePre2Post(request *ModifyPayModePre2PostRequest) (response *ModifyPayModePre2PostResponse, err error)
将设备的预付费模式修改为后付费计费模式,支持批量转换。(前提是客户要加入黑石物理机后付费计费的白名单,申请黑石物理机后付费可以联系腾讯云客服)
func (*Client) ModifyPsaRegulation ¶
func (c *Client) ModifyPsaRegulation(request *ModifyPsaRegulationRequest) (response *ModifyPsaRegulationResponse, err error)
允许修改规则信息及关联故障类型
func (*Client) ModifyUserCmd ¶
func (c *Client) ModifyUserCmd(request *ModifyUserCmdRequest) (response *ModifyUserCmdResponse, err error)
修改自定义脚本
func (*Client) OfflineDevices ¶
func (c *Client) OfflineDevices(request *OfflineDevicesRequest) (response *OfflineDevicesResponse, err error)
销毁黑石物理机实例:可以销毁物理机列表中的竞价实例,或回收站列表中所有计费模式的实例
func (*Client) RebootDevices ¶
func (c *Client) RebootDevices(request *RebootDevicesRequest) (response *RebootDevicesResponse, err error)
重启机器
func (*Client) RecoverDevices ¶
func (c *Client) RecoverDevices(request *RecoverDevicesRequest) (response *RecoverDevicesResponse, err error)
恢复回收站中的物理机(仅限后付费的物理机)
func (*Client) RepairTaskControl ¶
func (c *Client) RepairTaskControl(request *RepairTaskControlRequest) (response *RepairTaskControlResponse, err error)
此接口用于操作维修任务<br> 入参TaskId为维修任务ID<br> 入参Operate表示对维修任务的操作,支持如下取值:<br> AuthorizeRepair(授权维修)<br> Ignore(暂不提醒)<br> ConfirmRecovered(维修完成后,确认故障恢复)<br> ConfirmUnRecovered(维修完成后,确认故障未恢复)<br> <br> 操作约束(当前任务状态(TaskStatus)->对应可执行的操作):<br> 未授权(1)->授权维修;暂不处理<br> 暂不处理(4)->授权维修<br> 待确认(3)->确认故障恢复;确认故障未恢复<br> 未恢复(6)->确认故障恢复<br> <br> 对于Ping不可达故障的任务,还允许:<br> 未授权->确认故障恢复<br> 暂不处理->确认故障恢复<br> <br> 处理中与已恢复状态的任务不允许进行操作。<br> <br> 详细信息请访问:https://cloud.tencent.com/document/product/386/18190
func (*Client) ResetDevicePassword ¶
func (c *Client) ResetDevicePassword(request *ResetDevicePasswordRequest) (response *ResetDevicePasswordResponse, err error)
重置服务器密码
func (*Client) ReturnDevices ¶
func (c *Client) ReturnDevices(request *ReturnDevicesRequest) (response *ReturnDevicesResponse, err error)
退回物理机至回收站,支持批量退还不同计费模式的物理机(包括预付费、后付费、预付费转后付费)
func (*Client) RunUserCmd ¶
func (c *Client) RunUserCmd(request *RunUserCmdRequest) (response *RunUserCmdResponse, err error)
运行自定义脚本
func (*Client) SetOutBandVpnAuthPassword ¶
func (c *Client) SetOutBandVpnAuthPassword(request *SetOutBandVpnAuthPasswordRequest) (response *SetOutBandVpnAuthPasswordResponse, err error)
设置带外VPN认证用户密码
func (*Client) ShutdownDevices ¶
func (c *Client) ShutdownDevices(request *ShutdownDevicesRequest) (response *ShutdownDevicesResponse, err error)
关闭服务器
func (*Client) StartDevices ¶
func (c *Client) StartDevices(request *StartDevicesRequest) (response *StartDevicesResponse, err error)
开启服务器
func (*Client) UnbindPsaTag ¶
func (c *Client) UnbindPsaTag(request *UnbindPsaTagRequest) (response *UnbindPsaTagResponse, err error)
解除标签与预授权规则的绑定
type CpuInfo ¶
type CpuInfo struct { // CPU的ID CpuId *uint64 `json:"CpuId,omitempty" name:"CpuId"` // CPU型号描述 CpuDescription *string `json:"CpuDescription,omitempty" name:"CpuDescription"` // 机型序列 Series *uint64 `json:"Series,omitempty" name:"Series"` // 支持的RAID方式,0:有RAID卡,1:没有RAID卡 ContainRaidCard []*uint64 `json:"ContainRaidCard,omitempty" name:"ContainRaidCard" list` }
type CreateCustomImageRequest ¶
type CreateCustomImageRequest struct { *tchttp.BaseRequest // 用于制作镜像的物理机ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 镜像别名 ImageName *string `json:"ImageName,omitempty" name:"ImageName"` // 镜像描述 ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"` }
func NewCreateCustomImageRequest ¶
func NewCreateCustomImageRequest() (request *CreateCustomImageRequest)
func (*CreateCustomImageRequest) FromJsonString ¶
func (r *CreateCustomImageRequest) FromJsonString(s string) error
func (*CreateCustomImageRequest) ToJsonString ¶
func (r *CreateCustomImageRequest) ToJsonString() string
type CreateCustomImageResponse ¶
type CreateCustomImageResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateCustomImageResponse ¶
func NewCreateCustomImageResponse() (response *CreateCustomImageResponse)
func (*CreateCustomImageResponse) FromJsonString ¶
func (r *CreateCustomImageResponse) FromJsonString(s string) error
func (*CreateCustomImageResponse) ToJsonString ¶
func (r *CreateCustomImageResponse) ToJsonString() string
type CreatePsaRegulationRequest ¶
type CreatePsaRegulationRequest struct { *tchttp.BaseRequest // 规则别名 PsaName *string `json:"PsaName,omitempty" name:"PsaName"` // 关联的故障类型ID列表 TaskTypeIds []*uint64 `json:"TaskTypeIds,omitempty" name:"TaskTypeIds" list` // 维修实例上限,默认为5 RepairLimit *uint64 `json:"RepairLimit,omitempty" name:"RepairLimit"` // 规则备注 PsaDescription *string `json:"PsaDescription,omitempty" name:"PsaDescription"` }
func NewCreatePsaRegulationRequest ¶
func NewCreatePsaRegulationRequest() (request *CreatePsaRegulationRequest)
func (*CreatePsaRegulationRequest) FromJsonString ¶
func (r *CreatePsaRegulationRequest) FromJsonString(s string) error
func (*CreatePsaRegulationRequest) ToJsonString ¶
func (r *CreatePsaRegulationRequest) ToJsonString() string
type CreatePsaRegulationResponse ¶
type CreatePsaRegulationResponse struct { *tchttp.BaseResponse Response *struct { // 创建的预授权规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePsaRegulationResponse ¶
func NewCreatePsaRegulationResponse() (response *CreatePsaRegulationResponse)
func (*CreatePsaRegulationResponse) FromJsonString ¶
func (r *CreatePsaRegulationResponse) FromJsonString(s string) error
func (*CreatePsaRegulationResponse) ToJsonString ¶
func (r *CreatePsaRegulationResponse) ToJsonString() string
type CreateSpotDeviceRequest ¶
type CreateSpotDeviceRequest struct { *tchttp.BaseRequest // 可用区名称。如ap-guangzhou-bls-1, 通过DescribeRegions获取 Zone *string `json:"Zone,omitempty" name:"Zone"` // 计算单元类型, 如v3.c2.medium,更详细的ComputeType参考[竞价实例产品文档](https://cloud.tencent.com/document/product/386/30256) ComputeType *string `json:"ComputeType,omitempty" name:"ComputeType"` // 操作系统类型ID OsTypeId *uint64 `json:"OsTypeId,omitempty" name:"OsTypeId"` // 私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 购买的计算单元个数 GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // 出价策略。可取值为SpotWithPriceLimit和SpotAsPriceGo。SpotWithPriceLimit,用户设置价格上限,需要传SpotPriceLimit参数, 如果市场价高于用户的指定价格,则购买不成功; SpotAsPriceGo 是随市场价的策略。 SpotStrategy *string `json:"SpotStrategy,omitempty" name:"SpotStrategy"` // 用户设置的价格。当为SpotWithPriceLimit竞价策略时有效 SpotPriceLimit *float64 `json:"SpotPriceLimit,omitempty" name:"SpotPriceLimit"` // 设置竞价实例密码。可选参数,没有指定会生成随机密码 Passwd *string `json:"Passwd,omitempty" name:"Passwd"` }
func NewCreateSpotDeviceRequest ¶
func NewCreateSpotDeviceRequest() (request *CreateSpotDeviceRequest)
func (*CreateSpotDeviceRequest) FromJsonString ¶
func (r *CreateSpotDeviceRequest) FromJsonString(s string) error
func (*CreateSpotDeviceRequest) ToJsonString ¶
func (r *CreateSpotDeviceRequest) ToJsonString() string
type CreateSpotDeviceResponse ¶
type CreateSpotDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 创建的服务器ID ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds" list` // 任务ID FlowId *uint64 `json:"FlowId,omitempty" name:"FlowId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateSpotDeviceResponse ¶
func NewCreateSpotDeviceResponse() (response *CreateSpotDeviceResponse)
func (*CreateSpotDeviceResponse) FromJsonString ¶
func (r *CreateSpotDeviceResponse) FromJsonString(s string) error
func (*CreateSpotDeviceResponse) ToJsonString ¶
func (r *CreateSpotDeviceResponse) ToJsonString() string
type CreateUserCmdRequest ¶
type CreateUserCmdRequest struct { *tchttp.BaseRequest // 用户自定义脚本的名称 Alias *string `json:"Alias,omitempty" name:"Alias"` // 命令适用的操作系统类型,取值linux或xserver OsType *string `json:"OsType,omitempty" name:"OsType"` // 脚本内容,必须经过base64编码 Content *string `json:"Content,omitempty" name:"Content"` }
func NewCreateUserCmdRequest ¶
func NewCreateUserCmdRequest() (request *CreateUserCmdRequest)
func (*CreateUserCmdRequest) FromJsonString ¶
func (r *CreateUserCmdRequest) FromJsonString(s string) error
func (*CreateUserCmdRequest) ToJsonString ¶
func (r *CreateUserCmdRequest) ToJsonString() string
type CreateUserCmdResponse ¶
type CreateUserCmdResponse struct { *tchttp.BaseResponse Response *struct { // 脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateUserCmdResponse ¶
func NewCreateUserCmdResponse() (response *CreateUserCmdResponse)
func (*CreateUserCmdResponse) FromJsonString ¶
func (r *CreateUserCmdResponse) FromJsonString(s string) error
func (*CreateUserCmdResponse) ToJsonString ¶
func (r *CreateUserCmdResponse) ToJsonString() string
type CustomImage ¶
type CustomImage struct { // 镜像ID ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 镜像别名 ImageName *string `json:"ImageName,omitempty" name:"ImageName"` // 镜像状态码 ImageStatus *uint64 `json:"ImageStatus,omitempty" name:"ImageStatus"` // 镜像OS名 OsClass *string `json:"OsClass,omitempty" name:"OsClass"` // 镜像OS版本 OsVersion *string `json:"OsVersion,omitempty" name:"OsVersion"` // OS是64还是32位 OsBit *uint64 `json:"OsBit,omitempty" name:"OsBit"` // 镜像大小(M) ImageSize *uint64 `json:"ImageSize,omitempty" name:"ImageSize"` // 创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 分区信息 PartitionInfoSet []*PartitionInfo `json:"PartitionInfoSet,omitempty" name:"PartitionInfoSet" list` // 适用机型 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 备注 ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"` // 原始镜像id OsTypeId *uint64 `json:"OsTypeId,omitempty" name:"OsTypeId"` }
type CustomImageProcess ¶
type DeleteCustomImagesRequest ¶
type DeleteCustomImagesRequest struct { *tchttp.BaseRequest // 准备删除的镜像ID列表 ImageIds []*string `json:"ImageIds,omitempty" name:"ImageIds" list` }
func NewDeleteCustomImagesRequest ¶
func NewDeleteCustomImagesRequest() (request *DeleteCustomImagesRequest)
func (*DeleteCustomImagesRequest) FromJsonString ¶
func (r *DeleteCustomImagesRequest) FromJsonString(s string) error
func (*DeleteCustomImagesRequest) ToJsonString ¶
func (r *DeleteCustomImagesRequest) ToJsonString() string
type DeleteCustomImagesResponse ¶
type DeleteCustomImagesResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteCustomImagesResponse ¶
func NewDeleteCustomImagesResponse() (response *DeleteCustomImagesResponse)
func (*DeleteCustomImagesResponse) FromJsonString ¶
func (r *DeleteCustomImagesResponse) FromJsonString(s string) error
func (*DeleteCustomImagesResponse) ToJsonString ¶
func (r *DeleteCustomImagesResponse) ToJsonString() string
type DeletePsaRegulationRequest ¶
type DeletePsaRegulationRequest struct { *tchttp.BaseRequest // 预授权规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` }
func NewDeletePsaRegulationRequest ¶
func NewDeletePsaRegulationRequest() (request *DeletePsaRegulationRequest)
func (*DeletePsaRegulationRequest) FromJsonString ¶
func (r *DeletePsaRegulationRequest) FromJsonString(s string) error
func (*DeletePsaRegulationRequest) ToJsonString ¶
func (r *DeletePsaRegulationRequest) ToJsonString() string
type DeletePsaRegulationResponse ¶
type DeletePsaRegulationResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePsaRegulationResponse ¶
func NewDeletePsaRegulationResponse() (response *DeletePsaRegulationResponse)
func (*DeletePsaRegulationResponse) FromJsonString ¶
func (r *DeletePsaRegulationResponse) FromJsonString(s string) error
func (*DeletePsaRegulationResponse) ToJsonString ¶
func (r *DeletePsaRegulationResponse) ToJsonString() string
type DeleteUserCmdsRequest ¶
type DeleteUserCmdsRequest struct { *tchttp.BaseRequest // 需要删除的脚本ID CmdIds []*string `json:"CmdIds,omitempty" name:"CmdIds" list` }
func NewDeleteUserCmdsRequest ¶
func NewDeleteUserCmdsRequest() (request *DeleteUserCmdsRequest)
func (*DeleteUserCmdsRequest) FromJsonString ¶
func (r *DeleteUserCmdsRequest) FromJsonString(s string) error
func (*DeleteUserCmdsRequest) ToJsonString ¶
func (r *DeleteUserCmdsRequest) ToJsonString() string
type DeleteUserCmdsResponse ¶
type DeleteUserCmdsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteUserCmdsResponse ¶
func NewDeleteUserCmdsResponse() (response *DeleteUserCmdsResponse)
func (*DeleteUserCmdsResponse) FromJsonString ¶
func (r *DeleteUserCmdsResponse) FromJsonString(s string) error
func (*DeleteUserCmdsResponse) ToJsonString ¶
func (r *DeleteUserCmdsResponse) ToJsonString() string
type DescribeCustomImageProcessRequest ¶
type DescribeCustomImageProcessRequest struct { *tchttp.BaseRequest // 镜像ID ImageId *string `json:"ImageId,omitempty" name:"ImageId"` }
func NewDescribeCustomImageProcessRequest ¶
func NewDescribeCustomImageProcessRequest() (request *DescribeCustomImageProcessRequest)
func (*DescribeCustomImageProcessRequest) FromJsonString ¶
func (r *DescribeCustomImageProcessRequest) FromJsonString(s string) error
func (*DescribeCustomImageProcessRequest) ToJsonString ¶
func (r *DescribeCustomImageProcessRequest) ToJsonString() string
type DescribeCustomImageProcessResponse ¶
type DescribeCustomImageProcessResponse struct { *tchttp.BaseResponse Response *struct { // 镜像制作进度 CustomImageProcessSet []*CustomImageProcess `json:"CustomImageProcessSet,omitempty" name:"CustomImageProcessSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCustomImageProcessResponse ¶
func NewDescribeCustomImageProcessResponse() (response *DescribeCustomImageProcessResponse)
func (*DescribeCustomImageProcessResponse) FromJsonString ¶
func (r *DescribeCustomImageProcessResponse) FromJsonString(s string) error
func (*DescribeCustomImageProcessResponse) ToJsonString ¶
func (r *DescribeCustomImageProcessResponse) ToJsonString() string
type DescribeCustomImagesRequest ¶
type DescribeCustomImagesRequest struct { *tchttp.BaseRequest // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,仅支持CreateTime OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式 0:递增(默认) 1:递减 Order *uint64 `json:"Order,omitempty" name:"Order"` // 按ImageId查找指定镜像信息,ImageId字段存在时其他字段失效 ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 模糊查询过滤,可以查询镜像ID或镜像名 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // <ul> // 镜像状态过滤列表,有效取值为: // <li>1:制作中</li> // <li>2:制作失败</li> // <li>3:正常</li> // <li>4:删除中</li> // </ul> ImageStatus []*uint64 `json:"ImageStatus,omitempty" name:"ImageStatus" list` }
func NewDescribeCustomImagesRequest ¶
func NewDescribeCustomImagesRequest() (request *DescribeCustomImagesRequest)
func (*DescribeCustomImagesRequest) FromJsonString ¶
func (r *DescribeCustomImagesRequest) FromJsonString(s string) error
func (*DescribeCustomImagesRequest) ToJsonString ¶
func (r *DescribeCustomImagesRequest) ToJsonString() string
type DescribeCustomImagesResponse ¶
type DescribeCustomImagesResponse struct { *tchttp.BaseResponse Response *struct { // 返回镜像数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 镜像信息列表 CustomImageSet []*CustomImage `json:"CustomImageSet,omitempty" name:"CustomImageSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCustomImagesResponse ¶
func NewDescribeCustomImagesResponse() (response *DescribeCustomImagesResponse)
func (*DescribeCustomImagesResponse) FromJsonString ¶
func (r *DescribeCustomImagesResponse) FromJsonString(s string) error
func (*DescribeCustomImagesResponse) ToJsonString ¶
func (r *DescribeCustomImagesResponse) ToJsonString() string
type DescribeDeviceClassPartitionRequest ¶
type DescribeDeviceClassPartitionRequest struct { *tchttp.BaseRequest // 设备类型代号。代号通过接口[查询设备型号(DescribeDeviceClass)](https://cloud.tencent.com/document/api/386/32911)查询。标准机型需要传入此参数 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 需要查询自定义机型RAID信息时,传入自定义机型实例ID。InstanceId存在时DeviceClassCode失效 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDeviceClassPartitionRequest ¶
func NewDescribeDeviceClassPartitionRequest() (request *DescribeDeviceClassPartitionRequest)
func (*DescribeDeviceClassPartitionRequest) FromJsonString ¶
func (r *DescribeDeviceClassPartitionRequest) FromJsonString(s string) error
func (*DescribeDeviceClassPartitionRequest) ToJsonString ¶
func (r *DescribeDeviceClassPartitionRequest) ToJsonString() string
type DescribeDeviceClassPartitionResponse ¶
type DescribeDeviceClassPartitionResponse struct { *tchttp.BaseResponse Response *struct { // 支持的RAID格式列表 DeviceClassPartitionInfoSet []*DeviceClassPartitionInfo `json:"DeviceClassPartitionInfoSet,omitempty" name:"DeviceClassPartitionInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceClassPartitionResponse ¶
func NewDescribeDeviceClassPartitionResponse() (response *DescribeDeviceClassPartitionResponse)
func (*DescribeDeviceClassPartitionResponse) FromJsonString ¶
func (r *DescribeDeviceClassPartitionResponse) FromJsonString(s string) error
func (*DescribeDeviceClassPartitionResponse) ToJsonString ¶
func (r *DescribeDeviceClassPartitionResponse) ToJsonString() string
type DescribeDeviceClassRequest ¶
type DescribeDeviceClassRequest struct {
*tchttp.BaseRequest
}
func NewDescribeDeviceClassRequest ¶
func NewDescribeDeviceClassRequest() (request *DescribeDeviceClassRequest)
func (*DescribeDeviceClassRequest) FromJsonString ¶
func (r *DescribeDeviceClassRequest) FromJsonString(s string) error
func (*DescribeDeviceClassRequest) ToJsonString ¶
func (r *DescribeDeviceClassRequest) ToJsonString() string
type DescribeDeviceClassResponse ¶
type DescribeDeviceClassResponse struct { *tchttp.BaseResponse Response *struct { // 物理机设备类型列表 DeviceClassSet []*DeviceClass `json:"DeviceClassSet,omitempty" name:"DeviceClassSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceClassResponse ¶
func NewDescribeDeviceClassResponse() (response *DescribeDeviceClassResponse)
func (*DescribeDeviceClassResponse) FromJsonString ¶
func (r *DescribeDeviceClassResponse) FromJsonString(s string) error
func (*DescribeDeviceClassResponse) ToJsonString ¶
func (r *DescribeDeviceClassResponse) ToJsonString() string
type DescribeDeviceHardwareInfoRequest ¶
type DescribeDeviceHardwareInfoRequest struct { *tchttp.BaseRequest // 设备 ID 列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewDescribeDeviceHardwareInfoRequest ¶
func NewDescribeDeviceHardwareInfoRequest() (request *DescribeDeviceHardwareInfoRequest)
func (*DescribeDeviceHardwareInfoRequest) FromJsonString ¶
func (r *DescribeDeviceHardwareInfoRequest) FromJsonString(s string) error
func (*DescribeDeviceHardwareInfoRequest) ToJsonString ¶
func (r *DescribeDeviceHardwareInfoRequest) ToJsonString() string
type DescribeDeviceHardwareInfoResponse ¶
type DescribeDeviceHardwareInfoResponse struct { *tchttp.BaseResponse Response *struct { // 设备硬件配置信息 DeviceHardwareInfoSet []*DeviceHardwareInfo `json:"DeviceHardwareInfoSet,omitempty" name:"DeviceHardwareInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceHardwareInfoResponse ¶
func NewDescribeDeviceHardwareInfoResponse() (response *DescribeDeviceHardwareInfoResponse)
func (*DescribeDeviceHardwareInfoResponse) FromJsonString ¶
func (r *DescribeDeviceHardwareInfoResponse) FromJsonString(s string) error
func (*DescribeDeviceHardwareInfoResponse) ToJsonString ¶
func (r *DescribeDeviceHardwareInfoResponse) ToJsonString() string
type DescribeDeviceInventoryRequest ¶
type DescribeDeviceInventoryRequest struct { *tchttp.BaseRequest // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // 设备型号 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // CpuId,自定义机型时需传入 CpuId *uint64 `json:"CpuId,omitempty" name:"CpuId"` // 硬盘类型,自定义机型时需传入 DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // 单块硬盘大小,自定义机型时需传入 DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // 硬盘数量,自定义机型时需传入 DiskNum *uint64 `json:"DiskNum,omitempty" name:"DiskNum"` // 内存总大小,自定义机型时需传入 Mem *uint64 `json:"Mem,omitempty" name:"Mem"` // 是否支持raid,自定义机型时需传入 HaveRaidCard *uint64 `json:"HaveRaidCard,omitempty" name:"HaveRaidCard"` }
func NewDescribeDeviceInventoryRequest ¶
func NewDescribeDeviceInventoryRequest() (request *DescribeDeviceInventoryRequest)
func (*DescribeDeviceInventoryRequest) FromJsonString ¶
func (r *DescribeDeviceInventoryRequest) FromJsonString(s string) error
func (*DescribeDeviceInventoryRequest) ToJsonString ¶
func (r *DescribeDeviceInventoryRequest) ToJsonString() string
type DescribeDeviceInventoryResponse ¶
type DescribeDeviceInventoryResponse struct { *tchttp.BaseResponse Response *struct { // 库存设备数量 DeviceCount *uint64 `json:"DeviceCount,omitempty" name:"DeviceCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceInventoryResponse ¶
func NewDescribeDeviceInventoryResponse() (response *DescribeDeviceInventoryResponse)
func (*DescribeDeviceInventoryResponse) FromJsonString ¶
func (r *DescribeDeviceInventoryResponse) FromJsonString(s string) error
func (*DescribeDeviceInventoryResponse) ToJsonString ¶
func (r *DescribeDeviceInventoryResponse) ToJsonString() string
type DescribeDeviceOperationLogRequest ¶
type DescribeDeviceOperationLogRequest struct { *tchttp.BaseRequest // 设备实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 查询开始日期 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 查询结束日期 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回数量 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeDeviceOperationLogRequest ¶
func NewDescribeDeviceOperationLogRequest() (request *DescribeDeviceOperationLogRequest)
func (*DescribeDeviceOperationLogRequest) FromJsonString ¶
func (r *DescribeDeviceOperationLogRequest) FromJsonString(s string) error
func (*DescribeDeviceOperationLogRequest) ToJsonString ¶
func (r *DescribeDeviceOperationLogRequest) ToJsonString() string
type DescribeDeviceOperationLogResponse ¶
type DescribeDeviceOperationLogResponse struct { *tchttp.BaseResponse Response *struct { // 操作日志列表 DeviceOperationLogSet []*DeviceOperationLog `json:"DeviceOperationLogSet,omitempty" name:"DeviceOperationLogSet" list` // 返回数目 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceOperationLogResponse ¶
func NewDescribeDeviceOperationLogResponse() (response *DescribeDeviceOperationLogResponse)
func (*DescribeDeviceOperationLogResponse) FromJsonString ¶
func (r *DescribeDeviceOperationLogResponse) FromJsonString(s string) error
func (*DescribeDeviceOperationLogResponse) ToJsonString ¶
func (r *DescribeDeviceOperationLogResponse) ToJsonString() string
type DescribeDevicePartitionRequest ¶
type DescribeDevicePartitionRequest struct { *tchttp.BaseRequest // 物理机ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDevicePartitionRequest ¶
func NewDescribeDevicePartitionRequest() (request *DescribeDevicePartitionRequest)
func (*DescribeDevicePartitionRequest) FromJsonString ¶
func (r *DescribeDevicePartitionRequest) FromJsonString(s string) error
func (*DescribeDevicePartitionRequest) ToJsonString ¶
func (r *DescribeDevicePartitionRequest) ToJsonString() string
type DescribeDevicePartitionResponse ¶
type DescribeDevicePartitionResponse struct { *tchttp.BaseResponse Response *struct { // 物理机分区格式 DevicePartition *DevicePartition `json:"DevicePartition,omitempty" name:"DevicePartition"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDevicePartitionResponse ¶
func NewDescribeDevicePartitionResponse() (response *DescribeDevicePartitionResponse)
func (*DescribeDevicePartitionResponse) FromJsonString ¶
func (r *DescribeDevicePartitionResponse) FromJsonString(s string) error
func (*DescribeDevicePartitionResponse) ToJsonString ¶
func (r *DescribeDevicePartitionResponse) ToJsonString() string
type DescribeDevicePositionRequest ¶
type DescribeDevicePositionRequest struct { *tchttp.BaseRequest // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 实例ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 实例别名 Alias *string `json:"Alias,omitempty" name:"Alias"` }
func NewDescribeDevicePositionRequest ¶
func NewDescribeDevicePositionRequest() (request *DescribeDevicePositionRequest)
func (*DescribeDevicePositionRequest) FromJsonString ¶
func (r *DescribeDevicePositionRequest) FromJsonString(s string) error
func (*DescribeDevicePositionRequest) ToJsonString ¶
func (r *DescribeDevicePositionRequest) ToJsonString() string
type DescribeDevicePositionResponse ¶
type DescribeDevicePositionResponse struct { *tchttp.BaseResponse Response *struct { // 返回数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 设备所在机架信息 DevicePositionInfoSet []*DevicePositionInfo `json:"DevicePositionInfoSet,omitempty" name:"DevicePositionInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDevicePositionResponse ¶
func NewDescribeDevicePositionResponse() (response *DescribeDevicePositionResponse)
func (*DescribeDevicePositionResponse) FromJsonString ¶
func (r *DescribeDevicePositionResponse) FromJsonString(s string) error
func (*DescribeDevicePositionResponse) ToJsonString ¶
func (r *DescribeDevicePositionResponse) ToJsonString() string
type DescribeDevicePriceInfoRequest ¶
type DescribeDevicePriceInfoRequest struct { *tchttp.BaseRequest // 需要查询的实例列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 购买时长单位,当前只支持取值为m TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // 购买时长 TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` }
func NewDescribeDevicePriceInfoRequest ¶
func NewDescribeDevicePriceInfoRequest() (request *DescribeDevicePriceInfoRequest)
func (*DescribeDevicePriceInfoRequest) FromJsonString ¶
func (r *DescribeDevicePriceInfoRequest) FromJsonString(s string) error
func (*DescribeDevicePriceInfoRequest) ToJsonString ¶
func (r *DescribeDevicePriceInfoRequest) ToJsonString() string
type DescribeDevicePriceInfoResponse ¶
type DescribeDevicePriceInfoResponse struct { *tchttp.BaseResponse Response *struct { // 服务器价格信息列表 DevicePriceInfoSet []*DevicePriceInfo `json:"DevicePriceInfoSet,omitempty" name:"DevicePriceInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDevicePriceInfoResponse ¶
func NewDescribeDevicePriceInfoResponse() (response *DescribeDevicePriceInfoResponse)
func (*DescribeDevicePriceInfoResponse) FromJsonString ¶
func (r *DescribeDevicePriceInfoResponse) FromJsonString(s string) error
func (*DescribeDevicePriceInfoResponse) ToJsonString ¶
func (r *DescribeDevicePriceInfoResponse) ToJsonString() string
type DescribeDevicesRequest ¶
type DescribeDevicesRequest struct { *tchttp.BaseRequest // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回数量 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 机型ID,通过接口[查询设备型号(DescribeDeviceClass)](https://cloud.tencent.com/document/api/386/31968)查询 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 设备ID数组 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 外网IP数组 WanIps []*string `json:"WanIps,omitempty" name:"WanIps" list` // 内网IP数组 LanIps []*string `json:"LanIps,omitempty" name:"LanIps" list` // 设备名称 Alias *string `json:"Alias,omitempty" name:"Alias"` // 模糊IP查询 VagueIp *string `json:"VagueIp,omitempty" name:"VagueIp"` // 设备到期时间查询的起始时间 DeadlineStartTime *string `json:"DeadlineStartTime,omitempty" name:"DeadlineStartTime"` // 设备到期时间查询的结束时间 DeadlineEndTime *string `json:"DeadlineEndTime,omitempty" name:"DeadlineEndTime"` // 自动续费标志 0:不自动续费,1:自动续费 AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // 私有网络唯一ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网唯一ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 标签列表 Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` // 设备类型,取值有: compute(计算型), standard(标准型), storage(存储型) 等 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` // 竞价实例机器的过滤。如果未指定此参数,则不做过滤。0: 查询非竞价实例的机器; 1: 查询竞价实例的机器。 IsLuckyDevice *uint64 `json:"IsLuckyDevice,omitempty" name:"IsLuckyDevice"` // 排序字段 OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式,取值:0:增序(默认),1:降序 Order *uint64 `json:"Order,omitempty" name:"Order"` }
func NewDescribeDevicesRequest ¶
func NewDescribeDevicesRequest() (request *DescribeDevicesRequest)
func (*DescribeDevicesRequest) FromJsonString ¶
func (r *DescribeDevicesRequest) FromJsonString(s string) error
func (*DescribeDevicesRequest) ToJsonString ¶
func (r *DescribeDevicesRequest) ToJsonString() string
type DescribeDevicesResponse ¶
type DescribeDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 返回数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 物理机信息列表 DeviceInfoSet []*DeviceInfo `json:"DeviceInfoSet,omitempty" name:"DeviceInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDevicesResponse ¶
func NewDescribeDevicesResponse() (response *DescribeDevicesResponse)
func (*DescribeDevicesResponse) FromJsonString ¶
func (r *DescribeDevicesResponse) FromJsonString(s string) error
func (*DescribeDevicesResponse) ToJsonString ¶
func (r *DescribeDevicesResponse) ToJsonString() string
type DescribeHardwareSpecificationRequest ¶
type DescribeHardwareSpecificationRequest struct {
*tchttp.BaseRequest
}
func NewDescribeHardwareSpecificationRequest ¶
func NewDescribeHardwareSpecificationRequest() (request *DescribeHardwareSpecificationRequest)
func (*DescribeHardwareSpecificationRequest) FromJsonString ¶
func (r *DescribeHardwareSpecificationRequest) FromJsonString(s string) error
func (*DescribeHardwareSpecificationRequest) ToJsonString ¶
func (r *DescribeHardwareSpecificationRequest) ToJsonString() string
type DescribeHardwareSpecificationResponse ¶
type DescribeHardwareSpecificationResponse struct { *tchttp.BaseResponse Response *struct { // CPU型号列表 CpuInfoSet []*CpuInfo `json:"CpuInfoSet,omitempty" name:"CpuInfoSet" list` // 内存的取值,单位为G MemSet []*uint64 `json:"MemSet,omitempty" name:"MemSet" list` // 硬盘型号列表 DiskInfoSet []*DiskInfo `json:"DiskInfoSet,omitempty" name:"DiskInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeHardwareSpecificationResponse ¶
func NewDescribeHardwareSpecificationResponse() (response *DescribeHardwareSpecificationResponse)
func (*DescribeHardwareSpecificationResponse) FromJsonString ¶
func (r *DescribeHardwareSpecificationResponse) FromJsonString(s string) error
func (*DescribeHardwareSpecificationResponse) ToJsonString ¶
func (r *DescribeHardwareSpecificationResponse) ToJsonString() string
type DescribeHostedDeviceOutBandInfoRequest ¶
type DescribeHostedDeviceOutBandInfoRequest struct { *tchttp.BaseRequest // 托管设备的唯一ID数组,数组个数不超过20 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 可用区ID Zone *string `json:"Zone,omitempty" name:"Zone"` }
func NewDescribeHostedDeviceOutBandInfoRequest ¶
func NewDescribeHostedDeviceOutBandInfoRequest() (request *DescribeHostedDeviceOutBandInfoRequest)
func (*DescribeHostedDeviceOutBandInfoRequest) FromJsonString ¶
func (r *DescribeHostedDeviceOutBandInfoRequest) FromJsonString(s string) error
func (*DescribeHostedDeviceOutBandInfoRequest) ToJsonString ¶
func (r *DescribeHostedDeviceOutBandInfoRequest) ToJsonString() string
type DescribeHostedDeviceOutBandInfoResponse ¶
type DescribeHostedDeviceOutBandInfoResponse struct { *tchttp.BaseResponse Response *struct { // 托管设备带外信息 HostedDeviceOutBandInfoSet []*HostedDeviceOutBandInfo `json:"HostedDeviceOutBandInfoSet,omitempty" name:"HostedDeviceOutBandInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeHostedDeviceOutBandInfoResponse ¶
func NewDescribeHostedDeviceOutBandInfoResponse() (response *DescribeHostedDeviceOutBandInfoResponse)
func (*DescribeHostedDeviceOutBandInfoResponse) FromJsonString ¶
func (r *DescribeHostedDeviceOutBandInfoResponse) FromJsonString(s string) error
func (*DescribeHostedDeviceOutBandInfoResponse) ToJsonString ¶
func (r *DescribeHostedDeviceOutBandInfoResponse) ToJsonString() string
type DescribeOperationResultRequest ¶
type DescribeOperationResultRequest struct { *tchttp.BaseRequest // 异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeOperationResultRequest ¶
func NewDescribeOperationResultRequest() (request *DescribeOperationResultRequest)
func (*DescribeOperationResultRequest) FromJsonString ¶
func (r *DescribeOperationResultRequest) FromJsonString(s string) error
func (*DescribeOperationResultRequest) ToJsonString ¶
func (r *DescribeOperationResultRequest) ToJsonString() string
type DescribeOperationResultResponse ¶
type DescribeOperationResultResponse struct { *tchttp.BaseResponse Response *struct { // 任务的整体状态,取值如下:<br> // 1:成功<br> // 2:失败<br> // 3:部分成功,部分失败<br> // 4:未完成<br> // 5:部分成功,部分未完成<br> // 6:部分未完成,部分失败<br> // 7:部分未完成,部分失败,部分成功 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // 各实例对应任务的状态ID SubtaskStatusSet []*SubtaskStatus `json:"SubtaskStatusSet,omitempty" name:"SubtaskStatusSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeOperationResultResponse ¶
func NewDescribeOperationResultResponse() (response *DescribeOperationResultResponse)
func (*DescribeOperationResultResponse) FromJsonString ¶
func (r *DescribeOperationResultResponse) FromJsonString(s string) error
func (*DescribeOperationResultResponse) ToJsonString ¶
func (r *DescribeOperationResultResponse) ToJsonString() string
type DescribeOsInfoRequest ¶
type DescribeOsInfoRequest struct { *tchttp.BaseRequest // 设备类型代号。 可以从DescribeDeviceClass查询设备类型列表 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` }
func NewDescribeOsInfoRequest ¶
func NewDescribeOsInfoRequest() (request *DescribeOsInfoRequest)
func (*DescribeOsInfoRequest) FromJsonString ¶
func (r *DescribeOsInfoRequest) FromJsonString(s string) error
func (*DescribeOsInfoRequest) ToJsonString ¶
func (r *DescribeOsInfoRequest) ToJsonString() string
type DescribeOsInfoResponse ¶
type DescribeOsInfoResponse struct { *tchttp.BaseResponse Response *struct { // 操作系统信息列表 OsInfoSet []*OsInfo `json:"OsInfoSet,omitempty" name:"OsInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeOsInfoResponse ¶
func NewDescribeOsInfoResponse() (response *DescribeOsInfoResponse)
func (*DescribeOsInfoResponse) FromJsonString ¶
func (r *DescribeOsInfoResponse) FromJsonString(s string) error
func (*DescribeOsInfoResponse) ToJsonString ¶
func (r *DescribeOsInfoResponse) ToJsonString() string
type DescribePsaRegulationsRequest ¶
type DescribePsaRegulationsRequest struct { *tchttp.BaseRequest // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 规则ID过滤,支持模糊查询 PsaIds []*string `json:"PsaIds,omitempty" name:"PsaIds" list` // 规则别名过滤,支持模糊查询 PsaNames []*string `json:"PsaNames,omitempty" name:"PsaNames" list` // 标签过滤 Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` // 排序字段,取值支持:CreateTime OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式 0:递增(默认) 1:递减 Order *uint64 `json:"Order,omitempty" name:"Order"` }
func NewDescribePsaRegulationsRequest ¶
func NewDescribePsaRegulationsRequest() (request *DescribePsaRegulationsRequest)
func (*DescribePsaRegulationsRequest) FromJsonString ¶
func (r *DescribePsaRegulationsRequest) FromJsonString(s string) error
func (*DescribePsaRegulationsRequest) ToJsonString ¶
func (r *DescribePsaRegulationsRequest) ToJsonString() string
type DescribePsaRegulationsResponse ¶
type DescribePsaRegulationsResponse struct { *tchttp.BaseResponse Response *struct { // 返回规则数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 返回规则列表 PsaRegulations []*PsaRegulation `json:"PsaRegulations,omitempty" name:"PsaRegulations" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePsaRegulationsResponse ¶
func NewDescribePsaRegulationsResponse() (response *DescribePsaRegulationsResponse)
func (*DescribePsaRegulationsResponse) FromJsonString ¶
func (r *DescribePsaRegulationsResponse) FromJsonString(s string) error
func (*DescribePsaRegulationsResponse) ToJsonString ¶
func (r *DescribePsaRegulationsResponse) ToJsonString() string
type DescribeRegionsRequest ¶
type DescribeRegionsRequest struct { *tchttp.BaseRequest // 地域整型ID,目前黑石可用地域包括:8-北京,4-上海,1-广州, 19-重庆 RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` }
func NewDescribeRegionsRequest ¶
func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)
func (*DescribeRegionsRequest) FromJsonString ¶
func (r *DescribeRegionsRequest) FromJsonString(s string) error
func (*DescribeRegionsRequest) ToJsonString ¶
func (r *DescribeRegionsRequest) ToJsonString() string
type DescribeRegionsResponse ¶
type DescribeRegionsResponse struct { *tchttp.BaseResponse Response *struct { // 地域信息 RegionInfoSet []*RegionInfo `json:"RegionInfoSet,omitempty" name:"RegionInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRegionsResponse ¶
func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)
func (*DescribeRegionsResponse) FromJsonString ¶
func (r *DescribeRegionsResponse) FromJsonString(s string) error
func (*DescribeRegionsResponse) ToJsonString ¶
func (r *DescribeRegionsResponse) ToJsonString() string
type DescribeRepairTaskConstantRequest ¶
type DescribeRepairTaskConstantRequest struct {
*tchttp.BaseRequest
}
func NewDescribeRepairTaskConstantRequest ¶
func NewDescribeRepairTaskConstantRequest() (request *DescribeRepairTaskConstantRequest)
func (*DescribeRepairTaskConstantRequest) FromJsonString ¶
func (r *DescribeRepairTaskConstantRequest) FromJsonString(s string) error
func (*DescribeRepairTaskConstantRequest) ToJsonString ¶
func (r *DescribeRepairTaskConstantRequest) ToJsonString() string
type DescribeRepairTaskConstantResponse ¶
type DescribeRepairTaskConstantResponse struct { *tchttp.BaseResponse Response *struct { // 故障类型ID与对应中文名列表 TaskTypeSet []*TaskType `json:"TaskTypeSet,omitempty" name:"TaskTypeSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRepairTaskConstantResponse ¶
func NewDescribeRepairTaskConstantResponse() (response *DescribeRepairTaskConstantResponse)
func (*DescribeRepairTaskConstantResponse) FromJsonString ¶
func (r *DescribeRepairTaskConstantResponse) FromJsonString(s string) error
func (*DescribeRepairTaskConstantResponse) ToJsonString ¶
func (r *DescribeRepairTaskConstantResponse) ToJsonString() string
type DescribeTaskInfoRequest ¶
type DescribeTaskInfoRequest struct { *tchttp.BaseRequest // 开始位置 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数据条数 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 时间过滤下限 StartDate *string `json:"StartDate,omitempty" name:"StartDate"` // 时间过滤上限 EndDate *string `json:"EndDate,omitempty" name:"EndDate"` // 任务状态ID过滤 TaskStatus []*uint64 `json:"TaskStatus,omitempty" name:"TaskStatus" list` // 排序字段,目前支持:CreateTime,AuthTime,EndTime OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式 0:递增(默认) 1:递减 Order *uint64 `json:"Order,omitempty" name:"Order"` // 任务ID过滤 TaskIds []*string `json:"TaskIds,omitempty" name:"TaskIds" list` // 实例ID过滤 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 实例别名过滤 Aliases []*string `json:"Aliases,omitempty" name:"Aliases" list` // 故障类型ID过滤 TaskTypeIds []*uint64 `json:"TaskTypeIds,omitempty" name:"TaskTypeIds" list` }
func NewDescribeTaskInfoRequest ¶
func NewDescribeTaskInfoRequest() (request *DescribeTaskInfoRequest)
func (*DescribeTaskInfoRequest) FromJsonString ¶
func (r *DescribeTaskInfoRequest) FromJsonString(s string) error
func (*DescribeTaskInfoRequest) ToJsonString ¶
func (r *DescribeTaskInfoRequest) ToJsonString() string
type DescribeTaskInfoResponse ¶
type DescribeTaskInfoResponse struct { *tchttp.BaseResponse Response *struct { // 返回任务总数量 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 任务信息列表 TaskInfoSet []*TaskInfo `json:"TaskInfoSet,omitempty" name:"TaskInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTaskInfoResponse ¶
func NewDescribeTaskInfoResponse() (response *DescribeTaskInfoResponse)
func (*DescribeTaskInfoResponse) FromJsonString ¶
func (r *DescribeTaskInfoResponse) FromJsonString(s string) error
func (*DescribeTaskInfoResponse) ToJsonString ¶
func (r *DescribeTaskInfoResponse) ToJsonString() string
type DescribeTaskOperationLogRequest ¶
type DescribeTaskOperationLogRequest struct { *tchttp.BaseRequest // 维修任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 排序字段,目前支持:OperationTime OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式 0:递增(默认) 1:递减 Order *uint64 `json:"Order,omitempty" name:"Order"` }
func NewDescribeTaskOperationLogRequest ¶
func NewDescribeTaskOperationLogRequest() (request *DescribeTaskOperationLogRequest)
func (*DescribeTaskOperationLogRequest) FromJsonString ¶
func (r *DescribeTaskOperationLogRequest) FromJsonString(s string) error
func (*DescribeTaskOperationLogRequest) ToJsonString ¶
func (r *DescribeTaskOperationLogRequest) ToJsonString() string
type DescribeTaskOperationLogResponse ¶
type DescribeTaskOperationLogResponse struct { *tchttp.BaseResponse Response *struct { // 操作日志 TaskOperationLogSet []*TaskOperationLog `json:"TaskOperationLogSet,omitempty" name:"TaskOperationLogSet" list` // 日志条数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTaskOperationLogResponse ¶
func NewDescribeTaskOperationLogResponse() (response *DescribeTaskOperationLogResponse)
func (*DescribeTaskOperationLogResponse) FromJsonString ¶
func (r *DescribeTaskOperationLogResponse) FromJsonString(s string) error
func (*DescribeTaskOperationLogResponse) ToJsonString ¶
func (r *DescribeTaskOperationLogResponse) ToJsonString() string
type DescribeUserCmdTaskInfoRequest ¶
type DescribeUserCmdTaskInfoRequest struct { *tchttp.BaseRequest // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,支持: RunBeginTime,RunEndTime,Status OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式,取值: 1倒序,0顺序;默认倒序 Order *uint64 `json:"Order,omitempty" name:"Order"` // 关键字搜索,可搜索ID或别名,支持模糊搜索 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
func NewDescribeUserCmdTaskInfoRequest ¶
func NewDescribeUserCmdTaskInfoRequest() (request *DescribeUserCmdTaskInfoRequest)
func (*DescribeUserCmdTaskInfoRequest) FromJsonString ¶
func (r *DescribeUserCmdTaskInfoRequest) FromJsonString(s string) error
func (*DescribeUserCmdTaskInfoRequest) ToJsonString ¶
func (r *DescribeUserCmdTaskInfoRequest) ToJsonString() string
type DescribeUserCmdTaskInfoResponse ¶
type DescribeUserCmdTaskInfoResponse struct { *tchttp.BaseResponse Response *struct { // 返回数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 自定义脚本任务详细信息列表 UserCmdTaskInfoSet []*UserCmdTaskInfo `json:"UserCmdTaskInfoSet,omitempty" name:"UserCmdTaskInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUserCmdTaskInfoResponse ¶
func NewDescribeUserCmdTaskInfoResponse() (response *DescribeUserCmdTaskInfoResponse)
func (*DescribeUserCmdTaskInfoResponse) FromJsonString ¶
func (r *DescribeUserCmdTaskInfoResponse) FromJsonString(s string) error
func (*DescribeUserCmdTaskInfoResponse) ToJsonString ¶
func (r *DescribeUserCmdTaskInfoResponse) ToJsonString() string
type DescribeUserCmdTasksRequest ¶
type DescribeUserCmdTasksRequest struct { *tchttp.BaseRequest // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,支持: RunBeginTime,RunEndTime,InstanceCount,SuccessCount,FailureCount OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式,取值: 1倒序,0顺序;默认倒序 Order *uint64 `json:"Order,omitempty" name:"Order"` }
func NewDescribeUserCmdTasksRequest ¶
func NewDescribeUserCmdTasksRequest() (request *DescribeUserCmdTasksRequest)
func (*DescribeUserCmdTasksRequest) FromJsonString ¶
func (r *DescribeUserCmdTasksRequest) FromJsonString(s string) error
func (*DescribeUserCmdTasksRequest) ToJsonString ¶
func (r *DescribeUserCmdTasksRequest) ToJsonString() string
type DescribeUserCmdTasksResponse ¶
type DescribeUserCmdTasksResponse struct { *tchttp.BaseResponse Response *struct { // 脚本任务信息数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 脚本任务信息列表 UserCmdTasks []*UserCmdTask `json:"UserCmdTasks,omitempty" name:"UserCmdTasks" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUserCmdTasksResponse ¶
func NewDescribeUserCmdTasksResponse() (response *DescribeUserCmdTasksResponse)
func (*DescribeUserCmdTasksResponse) FromJsonString ¶
func (r *DescribeUserCmdTasksResponse) FromJsonString(s string) error
func (*DescribeUserCmdTasksResponse) ToJsonString ¶
func (r *DescribeUserCmdTasksResponse) ToJsonString() string
type DescribeUserCmdsRequest ¶
type DescribeUserCmdsRequest struct { *tchttp.BaseRequest // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 数量限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,支持: OsType,CreateTime,ModifyTime OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // 排序方式,取值: 1倒序,0顺序;默认倒序 Order *uint64 `json:"Order,omitempty" name:"Order"` // 关键字搜索,可搜索ID或别名,支持模糊搜索 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // 查询的脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` }
func NewDescribeUserCmdsRequest ¶
func NewDescribeUserCmdsRequest() (request *DescribeUserCmdsRequest)
func (*DescribeUserCmdsRequest) FromJsonString ¶
func (r *DescribeUserCmdsRequest) FromJsonString(s string) error
func (*DescribeUserCmdsRequest) ToJsonString ¶
func (r *DescribeUserCmdsRequest) ToJsonString() string
type DescribeUserCmdsResponse ¶
type DescribeUserCmdsResponse struct { *tchttp.BaseResponse Response *struct { // 返回数量 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 脚本信息列表 UserCmds []*UserCmd `json:"UserCmds,omitempty" name:"UserCmds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUserCmdsResponse ¶
func NewDescribeUserCmdsResponse() (response *DescribeUserCmdsResponse)
func (*DescribeUserCmdsResponse) FromJsonString ¶
func (r *DescribeUserCmdsResponse) FromJsonString(s string) error
func (*DescribeUserCmdsResponse) ToJsonString ¶
func (r *DescribeUserCmdsResponse) ToJsonString() string
type DeviceAlias ¶
type DeviceClass ¶
type DeviceClass struct { // 机型ID DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // CPU描述 CpuDescription *string `json:"CpuDescription,omitempty" name:"CpuDescription"` // 内存描述 MemDescription *string `json:"MemDescription,omitempty" name:"MemDescription"` // 硬盘描述 DiskDescription *string `json:"DiskDescription,omitempty" name:"DiskDescription"` // 是否支持RAID. 0:不支持; 1:支持 HaveRaidCard *uint64 `json:"HaveRaidCard,omitempty" name:"HaveRaidCard"` // 网卡描述 NicDescription *string `json:"NicDescription,omitempty" name:"NicDescription"` // GPU描述 GpuDescription *string `json:"GpuDescription,omitempty" name:"GpuDescription"` // 单价折扣 Discount *float64 `json:"Discount,omitempty" name:"Discount"` // 用户刊例价格 UnitPrice *uint64 `json:"UnitPrice,omitempty" name:"UnitPrice"` // 实际价格 RealPrice *uint64 `json:"RealPrice,omitempty" name:"RealPrice"` // 官网刊例价格 NormalPrice *uint64 `json:"NormalPrice,omitempty" name:"NormalPrice"` // 设备使用场景类型 DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` // 机型系列 Series *uint64 `json:"Series,omitempty" name:"Series"` }
type DeviceClassPartitionInfo ¶
type DeviceClassPartitionInfo struct { // RAID类型ID RaidId *uint64 `json:"RaidId,omitempty" name:"RaidId"` // RAID名称 Raid *string `json:"Raid,omitempty" name:"Raid"` // RAID名称(前台展示用) RaidDisplay *string `json:"RaidDisplay,omitempty" name:"RaidDisplay"` // 系统盘总大小(单位GiB) SystemDiskSize *uint64 `json:"SystemDiskSize,omitempty" name:"SystemDiskSize"` // 系统盘/分区默认大小(单位GiB) SysRootSpace *uint64 `json:"SysRootSpace,omitempty" name:"SysRootSpace"` // 系统盘swap分区默认大小(单位GiB) SysSwaporuefiSpace *uint64 `json:"SysSwaporuefiSpace,omitempty" name:"SysSwaporuefiSpace"` // 系统盘/usr/local分区默认大小(单位GiB) SysUsrlocalSpace *uint64 `json:"SysUsrlocalSpace,omitempty" name:"SysUsrlocalSpace"` // 系统盘/data分区默认大小(单位GiB) SysDataSpace *uint64 `json:"SysDataSpace,omitempty" name:"SysDataSpace"` // 设备是否是uefi启动方式。0:legacy启动; 1:uefi启动 SysIsUefiType *uint64 `json:"SysIsUefiType,omitempty" name:"SysIsUefiType"` // 数据盘总大小 DataDiskSize *uint64 `json:"DataDiskSize,omitempty" name:"DataDiskSize"` // 硬盘列表 DeviceDiskSizeInfoSet []*DeviceDiskSizeInfo `json:"DeviceDiskSizeInfoSet,omitempty" name:"DeviceDiskSizeInfoSet" list` }
type DeviceDiskSizeInfo ¶
type DeviceHardwareInfo ¶
type DeviceHardwareInfo struct { // 设备实例 ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 是否自定义机型 IsElastic *uint64 `json:"IsElastic,omitempty" name:"IsElastic"` // 机型计费模式,1 为预付费,2 为后付费 CpmPayMode *uint64 `json:"CpmPayMode,omitempty" name:"CpmPayMode"` // 自定义机型,CPU 型号 ID(非自定义机型返回0) CpuId *uint64 `json:"CpuId,omitempty" name:"CpuId"` // 自定义机型,内存大小, 单位 GB(非自定义机型返回0) Mem *uint64 `json:"Mem,omitempty" name:"Mem"` // 是否有 RAID 卡,0:没有 RAID 卡; 1:有 RAID 卡 ContainRaidCard *uint64 `json:"ContainRaidCard,omitempty" name:"ContainRaidCard"` // 自定义机型系统盘类型ID(若没有则返回0) SystemDiskTypeId *uint64 `json:"SystemDiskTypeId,omitempty" name:"SystemDiskTypeId"` // 自定义机型系统盘数量(若没有则返回0) SystemDiskCount *uint64 `json:"SystemDiskCount,omitempty" name:"SystemDiskCount"` // 自定义机型数据盘类型 ID(若没有则返回0) DataDiskTypeId *uint64 `json:"DataDiskTypeId,omitempty" name:"DataDiskTypeId"` // 自定义机型数据盘数量(若没有则返回0) DataDiskCount *uint64 `json:"DataDiskCount,omitempty" name:"DataDiskCount"` // CPU 型号描述 CpuDescription *string `json:"CpuDescription,omitempty" name:"CpuDescription"` // 内存描述 MemDescription *string `json:"MemDescription,omitempty" name:"MemDescription"` // 磁盘描述 DiskDescription *string `json:"DiskDescription,omitempty" name:"DiskDescription"` // 网卡描述 NicDescription *string `json:"NicDescription,omitempty" name:"NicDescription"` // 是否支持 RAID 的描述 RaidDescription *string `json:"RaidDescription,omitempty" name:"RaidDescription"` }
type DeviceInfo ¶
type DeviceInfo struct { // 设备唯一ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 设备状态ID,取值:<li>1:申领设备中</li><li>2:初始化中</li><li>4:运营中</li><li>7:隔离中</li><li>8:已隔离</li><li>10:解隔离中</li><li>16:故障中</li> DeviceStatus *uint64 `json:"DeviceStatus,omitempty" name:"DeviceStatus"` // 设备操作状态ID,取值: // <li>1:运行中</li><li>2:正在关机</li><li>3:已关机</li><li>5:正在开机</li><li>7:重启中</li><li>9:重装中</li><li>12:绑定EIP</li><li>13:解绑EIP</li><li>14:绑定LB</li><li>15:解绑LB</li><li>19:更换IP中</li><li>20:制作镜像中</li><li>21:制作镜像失败</li> OperateStatus *uint64 `json:"OperateStatus,omitempty" name:"OperateStatus"` // 操作系统ID,参考接口[查询操作系统信息(DescribeOsInfo)](https://cloud.tencent.com/document/product/386/32902) OsTypeId *uint64 `json:"OsTypeId,omitempty" name:"OsTypeId"` // RAID类型ID,参考接口[查询机型RAID方式以及系统盘大小(DescribeDeviceClassPartition)](https://cloud.tencent.com/document/product/386/32910) RaidId *uint64 `json:"RaidId,omitempty" name:"RaidId"` // 设备别名 Alias *string `json:"Alias,omitempty" name:"Alias"` // AppId AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // 外网IP WanIp *string `json:"WanIp,omitempty" name:"WanIp"` // 内网IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` // 设备交付时间 DeliverTime *string `json:"DeliverTime,omitempty" name:"DeliverTime"` // 设备到期时间 Deadline *string `json:"Deadline,omitempty" name:"Deadline"` // 自动续费标识。0: 不自动续费; 1:自动续费 AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // 设备类型 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 标签列表 Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` // 计费模式。1: 预付费; 2: 后付费; 3:预付费转后付费中 CpmPayMode *uint64 `json:"CpmPayMode,omitempty" name:"CpmPayMode"` // 带外IP DhcpIp *string `json:"DhcpIp,omitempty" name:"DhcpIp"` // 所在私有网络别名 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // 所在子网别名 SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // 所在私有网络CIDR VpcCidrBlock *string `json:"VpcCidrBlock,omitempty" name:"VpcCidrBlock"` // 所在子网CIDR SubnetCidrBlock *string `json:"SubnetCidrBlock,omitempty" name:"SubnetCidrBlock"` // 标识是否是竞价实例。0: 普通设备; 1: 竞价实例设备 IsLuckyDevice *uint64 `json:"IsLuckyDevice,omitempty" name:"IsLuckyDevice"` }
type DeviceOperationLog ¶
type DeviceOperationLog struct { // 日志的ID Id *uint64 `json:"Id,omitempty" name:"Id"` // 设备ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 日志对应的操作任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 操作任务名称 TaskName *string `json:"TaskName,omitempty" name:"TaskName"` // 操作任务中文名称 TaskDescription *string `json:"TaskDescription,omitempty" name:"TaskDescription"` // 操作开始时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 操作结束时间 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 操作状态,0: 正在执行中;1:任务成功; 2: 任务失败。 Status *uint64 `json:"Status,omitempty" name:"Status"` // 操作者 OpUin *string `json:"OpUin,omitempty" name:"OpUin"` // 操作描述 LogDescription *string `json:"LogDescription,omitempty" name:"LogDescription"` }
type DevicePartition ¶
type DevicePartition struct { // 系统盘大小 SystemDiskSize *uint64 `json:"SystemDiskSize,omitempty" name:"SystemDiskSize"` // 数据盘大小 DataDiskSize *uint64 `json:"DataDiskSize,omitempty" name:"DataDiskSize"` // 是否兼容Uefi SysIsUefiType *bool `json:"SysIsUefiType,omitempty" name:"SysIsUefiType"` // root分区大小 SysRootSpace *uint64 `json:"SysRootSpace,omitempty" name:"SysRootSpace"` // Swaporuefi分区大小 SysSwaporuefiSpace *uint64 `json:"SysSwaporuefiSpace,omitempty" name:"SysSwaporuefiSpace"` // Usrlocal分区大小 SysUsrlocalSpace *uint64 `json:"SysUsrlocalSpace,omitempty" name:"SysUsrlocalSpace"` // data分区大小 SysDataSpace *uint64 `json:"SysDataSpace,omitempty" name:"SysDataSpace"` // 硬盘大小详情 DeviceDiskSizeInfoSet []*DeviceDiskSizeInfo `json:"DeviceDiskSizeInfoSet,omitempty" name:"DeviceDiskSizeInfoSet" list` }
type DevicePositionInfo ¶
type DevicePositionInfo struct { // 设备ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 所在可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // 私有网络ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 业务IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` // 实例别名 Alias *string `json:"Alias,omitempty" name:"Alias"` // 机架名称 RckName *string `json:"RckName,omitempty" name:"RckName"` // 机位 PosCode *uint64 `json:"PosCode,omitempty" name:"PosCode"` // 交换机名称 SwitchName *string `json:"SwitchName,omitempty" name:"SwitchName"` // 设备交付时间 DeliverTime *string `json:"DeliverTime,omitempty" name:"DeliverTime"` // 过期时间 Deadline *string `json:"Deadline,omitempty" name:"Deadline"` }
type DevicePriceInfo ¶
type DevicePriceInfo struct { // 物理机ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 设备型号 DeviceClassCode *string `json:"DeviceClassCode,omitempty" name:"DeviceClassCode"` // 是否是弹性机型,1:是,0:否 IsElastic *uint64 `json:"IsElastic,omitempty" name:"IsElastic"` // 付费模式ID, 1:预付费; 2:后付费; 3:预付费转后付费中 CpmPayMode *uint64 `json:"CpmPayMode,omitempty" name:"CpmPayMode"` // Cpu信息描述 CpuDescription *string `json:"CpuDescription,omitempty" name:"CpuDescription"` // 内存信息描述 MemDescription *string `json:"MemDescription,omitempty" name:"MemDescription"` // 硬盘信息描述 DiskDescription *string `json:"DiskDescription,omitempty" name:"DiskDescription"` // 网卡信息描述 NicDescription *string `json:"NicDescription,omitempty" name:"NicDescription"` // Gpu信息描述 GpuDescription *string `json:"GpuDescription,omitempty" name:"GpuDescription"` // Raid信息描述 RaidDescription *string `json:"RaidDescription,omitempty" name:"RaidDescription"` // 客户的单价 Price *uint64 `json:"Price,omitempty" name:"Price"` // 刊例单价 NormalPrice *uint64 `json:"NormalPrice,omitempty" name:"NormalPrice"` // 原价 TotalCost *uint64 `json:"TotalCost,omitempty" name:"TotalCost"` // 折扣价 RealTotalCost *uint64 `json:"RealTotalCost,omitempty" name:"RealTotalCost"` // 计费时长 TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // 计费时长单位, m:按月计费; d:按天计费 TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // 商品数量 GoodsCount *uint64 `json:"GoodsCount,omitempty" name:"GoodsCount"` }
type FailedTaskInfo ¶
type HostedDeviceOutBandInfo ¶
type HostedDeviceOutBandInfo struct { // 物理机ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 带外IP OutBandIp *string `json:"OutBandIp,omitempty" name:"OutBandIp"` // VPN的IP VpnIp *string `json:"VpnIp,omitempty" name:"VpnIp"` // VPN的端口 VpnPort *uint64 `json:"VpnPort,omitempty" name:"VpnPort"` }
type ModifyCustomImageAttributeRequest ¶
type ModifyCustomImageAttributeRequest struct { *tchttp.BaseRequest // 镜像ID ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 设置新的镜像名 ImageName *string `json:"ImageName,omitempty" name:"ImageName"` // 设置新的镜像描述 ImageDescription *string `json:"ImageDescription,omitempty" name:"ImageDescription"` }
func NewModifyCustomImageAttributeRequest ¶
func NewModifyCustomImageAttributeRequest() (request *ModifyCustomImageAttributeRequest)
func (*ModifyCustomImageAttributeRequest) FromJsonString ¶
func (r *ModifyCustomImageAttributeRequest) FromJsonString(s string) error
func (*ModifyCustomImageAttributeRequest) ToJsonString ¶
func (r *ModifyCustomImageAttributeRequest) ToJsonString() string
type ModifyCustomImageAttributeResponse ¶
type ModifyCustomImageAttributeResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyCustomImageAttributeResponse ¶
func NewModifyCustomImageAttributeResponse() (response *ModifyCustomImageAttributeResponse)
func (*ModifyCustomImageAttributeResponse) FromJsonString ¶
func (r *ModifyCustomImageAttributeResponse) FromJsonString(s string) error
func (*ModifyCustomImageAttributeResponse) ToJsonString ¶
func (r *ModifyCustomImageAttributeResponse) ToJsonString() string
type ModifyDeviceAliasesRequest ¶
type ModifyDeviceAliasesRequest struct { *tchttp.BaseRequest // 需要改名的设备与别名列表 DeviceAliases []*DeviceAlias `json:"DeviceAliases,omitempty" name:"DeviceAliases" list` }
func NewModifyDeviceAliasesRequest ¶
func NewModifyDeviceAliasesRequest() (request *ModifyDeviceAliasesRequest)
func (*ModifyDeviceAliasesRequest) FromJsonString ¶
func (r *ModifyDeviceAliasesRequest) FromJsonString(s string) error
func (*ModifyDeviceAliasesRequest) ToJsonString ¶
func (r *ModifyDeviceAliasesRequest) ToJsonString() string
type ModifyDeviceAliasesResponse ¶
type ModifyDeviceAliasesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDeviceAliasesResponse ¶
func NewModifyDeviceAliasesResponse() (response *ModifyDeviceAliasesResponse)
func (*ModifyDeviceAliasesResponse) FromJsonString ¶
func (r *ModifyDeviceAliasesResponse) FromJsonString(s string) error
func (*ModifyDeviceAliasesResponse) ToJsonString ¶
func (r *ModifyDeviceAliasesResponse) ToJsonString() string
type ModifyDeviceAutoRenewFlagRequest ¶
type ModifyDeviceAutoRenewFlagRequest struct { *tchttp.BaseRequest // 自动续费标志位。0: 不自动续费; 1: 自动续费 AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // 需要修改的设备ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewModifyDeviceAutoRenewFlagRequest ¶
func NewModifyDeviceAutoRenewFlagRequest() (request *ModifyDeviceAutoRenewFlagRequest)
func (*ModifyDeviceAutoRenewFlagRequest) FromJsonString ¶
func (r *ModifyDeviceAutoRenewFlagRequest) FromJsonString(s string) error
func (*ModifyDeviceAutoRenewFlagRequest) ToJsonString ¶
func (r *ModifyDeviceAutoRenewFlagRequest) ToJsonString() string
type ModifyDeviceAutoRenewFlagResponse ¶
type ModifyDeviceAutoRenewFlagResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDeviceAutoRenewFlagResponse ¶
func NewModifyDeviceAutoRenewFlagResponse() (response *ModifyDeviceAutoRenewFlagResponse)
func (*ModifyDeviceAutoRenewFlagResponse) FromJsonString ¶
func (r *ModifyDeviceAutoRenewFlagResponse) FromJsonString(s string) error
func (*ModifyDeviceAutoRenewFlagResponse) ToJsonString ¶
func (r *ModifyDeviceAutoRenewFlagResponse) ToJsonString() string
type ModifyLanIpRequest ¶
type ModifyLanIpRequest struct { *tchttp.BaseRequest // 物理机ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 指定新VPC VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 指定新子网 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 指定新内网IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` // 是否需要重启机器,取值 1(需要) 0(不需要),默认取值0 RebootDevice *uint64 `json:"RebootDevice,omitempty" name:"RebootDevice"` }
func NewModifyLanIpRequest ¶
func NewModifyLanIpRequest() (request *ModifyLanIpRequest)
func (*ModifyLanIpRequest) FromJsonString ¶
func (r *ModifyLanIpRequest) FromJsonString(s string) error
func (*ModifyLanIpRequest) ToJsonString ¶
func (r *ModifyLanIpRequest) ToJsonString() string
type ModifyLanIpResponse ¶
type ModifyLanIpResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyLanIpResponse ¶
func NewModifyLanIpResponse() (response *ModifyLanIpResponse)
func (*ModifyLanIpResponse) FromJsonString ¶
func (r *ModifyLanIpResponse) FromJsonString(s string) error
func (*ModifyLanIpResponse) ToJsonString ¶
func (r *ModifyLanIpResponse) ToJsonString() string
type ModifyPayModePre2PostRequest ¶
type ModifyPayModePre2PostRequest struct { *tchttp.BaseRequest // 需要修改的设备ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewModifyPayModePre2PostRequest ¶
func NewModifyPayModePre2PostRequest() (request *ModifyPayModePre2PostRequest)
func (*ModifyPayModePre2PostRequest) FromJsonString ¶
func (r *ModifyPayModePre2PostRequest) FromJsonString(s string) error
func (*ModifyPayModePre2PostRequest) ToJsonString ¶
func (r *ModifyPayModePre2PostRequest) ToJsonString() string
type ModifyPayModePre2PostResponse ¶
type ModifyPayModePre2PostResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyPayModePre2PostResponse ¶
func NewModifyPayModePre2PostResponse() (response *ModifyPayModePre2PostResponse)
func (*ModifyPayModePre2PostResponse) FromJsonString ¶
func (r *ModifyPayModePre2PostResponse) FromJsonString(s string) error
func (*ModifyPayModePre2PostResponse) ToJsonString ¶
func (r *ModifyPayModePre2PostResponse) ToJsonString() string
type ModifyPsaRegulationRequest ¶
type ModifyPsaRegulationRequest struct { *tchttp.BaseRequest // 预授权规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` // 预授权规则别名 PsaName *string `json:"PsaName,omitempty" name:"PsaName"` // 维修中的实例上限 RepairLimit *uint64 `json:"RepairLimit,omitempty" name:"RepairLimit"` // 预授权规则备注 PsaDescription *string `json:"PsaDescription,omitempty" name:"PsaDescription"` // 预授权规则关联故障类型ID列表 TaskTypeIds []*uint64 `json:"TaskTypeIds,omitempty" name:"TaskTypeIds" list` }
func NewModifyPsaRegulationRequest ¶
func NewModifyPsaRegulationRequest() (request *ModifyPsaRegulationRequest)
func (*ModifyPsaRegulationRequest) FromJsonString ¶
func (r *ModifyPsaRegulationRequest) FromJsonString(s string) error
func (*ModifyPsaRegulationRequest) ToJsonString ¶
func (r *ModifyPsaRegulationRequest) ToJsonString() string
type ModifyPsaRegulationResponse ¶
type ModifyPsaRegulationResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyPsaRegulationResponse ¶
func NewModifyPsaRegulationResponse() (response *ModifyPsaRegulationResponse)
func (*ModifyPsaRegulationResponse) FromJsonString ¶
func (r *ModifyPsaRegulationResponse) FromJsonString(s string) error
func (*ModifyPsaRegulationResponse) ToJsonString ¶
func (r *ModifyPsaRegulationResponse) ToJsonString() string
type ModifyUserCmdRequest ¶
type ModifyUserCmdRequest struct { *tchttp.BaseRequest // 待修改的脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` // 待修改的脚本名称 Alias *string `json:"Alias,omitempty" name:"Alias"` // 脚本适用的操作系统类型 OsType *string `json:"OsType,omitempty" name:"OsType"` // 待修改的脚本内容,必须经过base64编码 Content *string `json:"Content,omitempty" name:"Content"` }
func NewModifyUserCmdRequest ¶
func NewModifyUserCmdRequest() (request *ModifyUserCmdRequest)
func (*ModifyUserCmdRequest) FromJsonString ¶
func (r *ModifyUserCmdRequest) FromJsonString(s string) error
func (*ModifyUserCmdRequest) ToJsonString ¶
func (r *ModifyUserCmdRequest) ToJsonString() string
type ModifyUserCmdResponse ¶
type ModifyUserCmdResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyUserCmdResponse ¶
func NewModifyUserCmdResponse() (response *ModifyUserCmdResponse)
func (*ModifyUserCmdResponse) FromJsonString ¶
func (r *ModifyUserCmdResponse) FromJsonString(s string) error
func (*ModifyUserCmdResponse) ToJsonString ¶
func (r *ModifyUserCmdResponse) ToJsonString() string
type OfflineDevicesRequest ¶
type OfflineDevicesRequest struct { *tchttp.BaseRequest // 需要退还的物理机ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewOfflineDevicesRequest ¶
func NewOfflineDevicesRequest() (request *OfflineDevicesRequest)
func (*OfflineDevicesRequest) FromJsonString ¶
func (r *OfflineDevicesRequest) FromJsonString(s string) error
func (*OfflineDevicesRequest) ToJsonString ¶
func (r *OfflineDevicesRequest) ToJsonString() string
type OfflineDevicesResponse ¶
type OfflineDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewOfflineDevicesResponse ¶
func NewOfflineDevicesResponse() (response *OfflineDevicesResponse)
func (*OfflineDevicesResponse) FromJsonString ¶
func (r *OfflineDevicesResponse) FromJsonString(s string) error
func (*OfflineDevicesResponse) ToJsonString ¶
func (r *OfflineDevicesResponse) ToJsonString() string
type OsInfo ¶
type OsInfo struct { // 操作系统ID OsTypeId *uint64 `json:"OsTypeId,omitempty" name:"OsTypeId"` // 操作系统名称 OsName *string `json:"OsName,omitempty" name:"OsName"` // 操作系统名称描述 OsDescription *string `json:"OsDescription,omitempty" name:"OsDescription"` // 操作系统英文名称 OsEnglishDescription *string `json:"OsEnglishDescription,omitempty" name:"OsEnglishDescription"` // 操作系统的分类,如CentOs Debian OsClass *string `json:"OsClass,omitempty" name:"OsClass"` // 标识镜像分类。public:公共镜像; private: 专属镜像 ImageTag *string `json:"ImageTag,omitempty" name:"ImageTag"` // 操作系统,ext4文件下所支持的最大的磁盘大小。单位为T MaxPartitionSize *uint64 `json:"MaxPartitionSize,omitempty" name:"MaxPartitionSize"` }
type PartitionInfo ¶
type PsaRegulation ¶
type PsaRegulation struct { // 规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` // 规则别名 PsaName *string `json:"PsaName,omitempty" name:"PsaName"` // 关联标签数量 TagCount *uint64 `json:"TagCount,omitempty" name:"TagCount"` // 关联实例数量 InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // 故障实例数量 RepairCount *uint64 `json:"RepairCount,omitempty" name:"RepairCount"` // 故障实例上限 RepairLimit *uint64 `json:"RepairLimit,omitempty" name:"RepairLimit"` // 创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 规则备注 PsaDescription *string `json:"PsaDescription,omitempty" name:"PsaDescription"` // 关联标签 Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` // 关联故障类型id TaskTypeIds []*uint64 `json:"TaskTypeIds,omitempty" name:"TaskTypeIds" list` }
type RebootDevicesRequest ¶
type RebootDevicesRequest struct { *tchttp.BaseRequest // 需要重启的设备ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewRebootDevicesRequest ¶
func NewRebootDevicesRequest() (request *RebootDevicesRequest)
func (*RebootDevicesRequest) FromJsonString ¶
func (r *RebootDevicesRequest) FromJsonString(s string) error
func (*RebootDevicesRequest) ToJsonString ¶
func (r *RebootDevicesRequest) ToJsonString() string
type RebootDevicesResponse ¶
type RebootDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRebootDevicesResponse ¶
func NewRebootDevicesResponse() (response *RebootDevicesResponse)
func (*RebootDevicesResponse) FromJsonString ¶
func (r *RebootDevicesResponse) FromJsonString(s string) error
func (*RebootDevicesResponse) ToJsonString ¶
func (r *RebootDevicesResponse) ToJsonString() string
type RecoverDevicesRequest ¶
type RecoverDevicesRequest struct { *tchttp.BaseRequest // 需要恢复的物理机ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewRecoverDevicesRequest ¶
func NewRecoverDevicesRequest() (request *RecoverDevicesRequest)
func (*RecoverDevicesRequest) FromJsonString ¶
func (r *RecoverDevicesRequest) FromJsonString(s string) error
func (*RecoverDevicesRequest) ToJsonString ¶
func (r *RecoverDevicesRequest) ToJsonString() string
type RecoverDevicesResponse ¶
type RecoverDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRecoverDevicesResponse ¶
func NewRecoverDevicesResponse() (response *RecoverDevicesResponse)
func (*RecoverDevicesResponse) FromJsonString ¶
func (r *RecoverDevicesResponse) FromJsonString(s string) error
func (*RecoverDevicesResponse) ToJsonString ¶
func (r *RecoverDevicesResponse) ToJsonString() string
type RegionInfo ¶
type RegionInfo struct { // 地域ID Region *string `json:"Region,omitempty" name:"Region"` // 地域整型ID RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` // 地域描述 RegionDescription *string `json:"RegionDescription,omitempty" name:"RegionDescription"` // 该地域下的可用区信息 ZoneInfoSet []*ZoneInfo `json:"ZoneInfoSet,omitempty" name:"ZoneInfoSet" list` }
type RepairTaskControlRequest ¶
type RepairTaskControlRequest struct { *tchttp.BaseRequest // 维修任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 操作 Operate *string `json:"Operate,omitempty" name:"Operate"` }
func NewRepairTaskControlRequest ¶
func NewRepairTaskControlRequest() (request *RepairTaskControlRequest)
func (*RepairTaskControlRequest) FromJsonString ¶
func (r *RepairTaskControlRequest) FromJsonString(s string) error
func (*RepairTaskControlRequest) ToJsonString ¶
func (r *RepairTaskControlRequest) ToJsonString() string
type RepairTaskControlResponse ¶
type RepairTaskControlResponse struct { *tchttp.BaseResponse Response *struct { // 出参TaskId是黑石异步任务ID,不同于入参TaskId字段。 // 此字段可作为DescriptionOperationResult查询异步任务状态接口的入参,查询异步任务执行结果。 TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRepairTaskControlResponse ¶
func NewRepairTaskControlResponse() (response *RepairTaskControlResponse)
func (*RepairTaskControlResponse) FromJsonString ¶
func (r *RepairTaskControlResponse) FromJsonString(s string) error
func (*RepairTaskControlResponse) ToJsonString ¶
func (r *RepairTaskControlResponse) ToJsonString() string
type ResetDevicePasswordRequest ¶
type ResetDevicePasswordRequest struct { *tchttp.BaseRequest // 需要重置密码的服务器ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 新密码 Password *string `json:"Password,omitempty" name:"Password"` }
func NewResetDevicePasswordRequest ¶
func NewResetDevicePasswordRequest() (request *ResetDevicePasswordRequest)
func (*ResetDevicePasswordRequest) FromJsonString ¶
func (r *ResetDevicePasswordRequest) FromJsonString(s string) error
func (*ResetDevicePasswordRequest) ToJsonString ¶
func (r *ResetDevicePasswordRequest) ToJsonString() string
type ResetDevicePasswordResponse ¶
type ResetDevicePasswordResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewResetDevicePasswordResponse ¶
func NewResetDevicePasswordResponse() (response *ResetDevicePasswordResponse)
func (*ResetDevicePasswordResponse) FromJsonString ¶
func (r *ResetDevicePasswordResponse) FromJsonString(s string) error
func (*ResetDevicePasswordResponse) ToJsonString ¶
func (r *ResetDevicePasswordResponse) ToJsonString() string
type ReturnDevicesRequest ¶
type ReturnDevicesRequest struct { *tchttp.BaseRequest // 需要退还的物理机ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewReturnDevicesRequest ¶
func NewReturnDevicesRequest() (request *ReturnDevicesRequest)
func (*ReturnDevicesRequest) FromJsonString ¶
func (r *ReturnDevicesRequest) FromJsonString(s string) error
func (*ReturnDevicesRequest) ToJsonString ¶
func (r *ReturnDevicesRequest) ToJsonString() string
type ReturnDevicesResponse ¶
type ReturnDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 黑石异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewReturnDevicesResponse ¶
func NewReturnDevicesResponse() (response *ReturnDevicesResponse)
func (*ReturnDevicesResponse) FromJsonString ¶
func (r *ReturnDevicesResponse) FromJsonString(s string) error
func (*ReturnDevicesResponse) ToJsonString ¶
func (r *ReturnDevicesResponse) ToJsonString() string
type RunUserCmdRequest ¶
type RunUserCmdRequest struct { *tchttp.BaseRequest // 自定义脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` // 执行脚本机器的用户名 UserName *string `json:"UserName,omitempty" name:"UserName"` // 执行脚本机器的用户名的密码 Password *string `json:"Password,omitempty" name:"Password"` // 执行脚本的服务器实例 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 执行脚本的参数,必须经过base64编码 CmdParam *string `json:"CmdParam,omitempty" name:"CmdParam"` }
func NewRunUserCmdRequest ¶
func NewRunUserCmdRequest() (request *RunUserCmdRequest)
func (*RunUserCmdRequest) FromJsonString ¶
func (r *RunUserCmdRequest) FromJsonString(s string) error
func (*RunUserCmdRequest) ToJsonString ¶
func (r *RunUserCmdRequest) ToJsonString() string
type RunUserCmdResponse ¶
type RunUserCmdResponse struct { *tchttp.BaseResponse Response *struct { // 运行成功的任务信息列表 SuccessTaskInfoSet []*SuccessTaskInfo `json:"SuccessTaskInfoSet,omitempty" name:"SuccessTaskInfoSet" list` // 运行失败的任务信息列表 FailedTaskInfoSet []*FailedTaskInfo `json:"FailedTaskInfoSet,omitempty" name:"FailedTaskInfoSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunUserCmdResponse ¶
func NewRunUserCmdResponse() (response *RunUserCmdResponse)
func (*RunUserCmdResponse) FromJsonString ¶
func (r *RunUserCmdResponse) FromJsonString(s string) error
func (*RunUserCmdResponse) ToJsonString ¶
func (r *RunUserCmdResponse) ToJsonString() string
type SetOutBandVpnAuthPasswordRequest ¶
type SetOutBandVpnAuthPasswordRequest struct { *tchttp.BaseRequest // 设置的Vpn认证密码 Password *string `json:"Password,omitempty" name:"Password"` // 操作字段,取值为:Create(创建)或Update(修改) Operate *string `json:"Operate,omitempty" name:"Operate"` }
func NewSetOutBandVpnAuthPasswordRequest ¶
func NewSetOutBandVpnAuthPasswordRequest() (request *SetOutBandVpnAuthPasswordRequest)
func (*SetOutBandVpnAuthPasswordRequest) FromJsonString ¶
func (r *SetOutBandVpnAuthPasswordRequest) FromJsonString(s string) error
func (*SetOutBandVpnAuthPasswordRequest) ToJsonString ¶
func (r *SetOutBandVpnAuthPasswordRequest) ToJsonString() string
type SetOutBandVpnAuthPasswordResponse ¶
type SetOutBandVpnAuthPasswordResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetOutBandVpnAuthPasswordResponse ¶
func NewSetOutBandVpnAuthPasswordResponse() (response *SetOutBandVpnAuthPasswordResponse)
func (*SetOutBandVpnAuthPasswordResponse) FromJsonString ¶
func (r *SetOutBandVpnAuthPasswordResponse) FromJsonString(s string) error
func (*SetOutBandVpnAuthPasswordResponse) ToJsonString ¶
func (r *SetOutBandVpnAuthPasswordResponse) ToJsonString() string
type ShutdownDevicesRequest ¶
type ShutdownDevicesRequest struct { *tchttp.BaseRequest // 需要关闭的设备ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewShutdownDevicesRequest ¶
func NewShutdownDevicesRequest() (request *ShutdownDevicesRequest)
func (*ShutdownDevicesRequest) FromJsonString ¶
func (r *ShutdownDevicesRequest) FromJsonString(s string) error
func (*ShutdownDevicesRequest) ToJsonString ¶
func (r *ShutdownDevicesRequest) ToJsonString() string
type ShutdownDevicesResponse ¶
type ShutdownDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewShutdownDevicesResponse ¶
func NewShutdownDevicesResponse() (response *ShutdownDevicesResponse)
func (*ShutdownDevicesResponse) FromJsonString ¶
func (r *ShutdownDevicesResponse) FromJsonString(s string) error
func (*ShutdownDevicesResponse) ToJsonString ¶
func (r *ShutdownDevicesResponse) ToJsonString() string
type StartDevicesRequest ¶
type StartDevicesRequest struct { *tchttp.BaseRequest // 需要开机的设备ID列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewStartDevicesRequest ¶
func NewStartDevicesRequest() (request *StartDevicesRequest)
func (*StartDevicesRequest) FromJsonString ¶
func (r *StartDevicesRequest) FromJsonString(s string) error
func (*StartDevicesRequest) ToJsonString ¶
func (r *StartDevicesRequest) ToJsonString() string
type StartDevicesResponse ¶
type StartDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 异步任务ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStartDevicesResponse ¶
func NewStartDevicesResponse() (response *StartDevicesResponse)
func (*StartDevicesResponse) FromJsonString ¶
func (r *StartDevicesResponse) FromJsonString(s string) error
func (*StartDevicesResponse) ToJsonString ¶
func (r *StartDevicesResponse) ToJsonString() string
type SubtaskStatus ¶
type SubtaskStatus struct { // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例ID对应任务的状态,取值如下:<br> // 1:成功<br> // 2:失败<br> // 3:部分成功,部分失败<br> // 4:未完成<br> // 5:部分成功,部分未完成<br> // 6:部分未完成,部分失败<br> // 7:部分未完成,部分失败,部分成功 TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` }
type SuccessTaskInfo ¶
type TaskInfo ¶
type TaskInfo struct { // 任务id TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 主机id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 主机别名 Alias *string `json:"Alias,omitempty" name:"Alias"` // 故障类型id TaskTypeId *uint64 `json:"TaskTypeId,omitempty" name:"TaskTypeId"` // 任务状态id TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // 创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 授权时间 AuthTime *string `json:"AuthTime,omitempty" name:"AuthTime"` // 结束时间 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 任务详情 TaskDetail *string `json:"TaskDetail,omitempty" name:"TaskDetail"` // 设备状态 DeviceStatus *uint64 `json:"DeviceStatus,omitempty" name:"DeviceStatus"` // 设备操作状态 OperateStatus *uint64 `json:"OperateStatus,omitempty" name:"OperateStatus"` // 可用区 Zone *string `json:"Zone,omitempty" name:"Zone"` // 地域 Region *string `json:"Region,omitempty" name:"Region"` // 所属网络 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 所在子网 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 子网名 SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // VPC名 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // VpcCidrBlock VpcCidrBlock *string `json:"VpcCidrBlock,omitempty" name:"VpcCidrBlock"` // SubnetCidrBlock SubnetCidrBlock *string `json:"SubnetCidrBlock,omitempty" name:"SubnetCidrBlock"` // 公网ip WanIp *string `json:"WanIp,omitempty" name:"WanIp"` // 内网IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` // 管理IP MgtIp *string `json:"MgtIp,omitempty" name:"MgtIp"` }
type TaskOperationLog ¶
type TaskOperationLog struct { // 操作步骤 TaskStep *string `json:"TaskStep,omitempty" name:"TaskStep"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` // 操作描述 OperationDetail *string `json:"OperationDetail,omitempty" name:"OperationDetail"` // 操作时间 OperationTime *string `json:"OperationTime,omitempty" name:"OperationTime"` }
type UnbindPsaTagRequest ¶
type UnbindPsaTagRequest struct { *tchttp.BaseRequest // 预授权规则ID PsaId *string `json:"PsaId,omitempty" name:"PsaId"` // 需要解绑的标签key TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // 需要解绑的标签value TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
func NewUnbindPsaTagRequest ¶
func NewUnbindPsaTagRequest() (request *UnbindPsaTagRequest)
func (*UnbindPsaTagRequest) FromJsonString ¶
func (r *UnbindPsaTagRequest) FromJsonString(s string) error
func (*UnbindPsaTagRequest) ToJsonString ¶
func (r *UnbindPsaTagRequest) ToJsonString() string
type UnbindPsaTagResponse ¶
type UnbindPsaTagResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUnbindPsaTagResponse ¶
func NewUnbindPsaTagResponse() (response *UnbindPsaTagResponse)
func (*UnbindPsaTagResponse) FromJsonString ¶
func (r *UnbindPsaTagResponse) FromJsonString(s string) error
func (*UnbindPsaTagResponse) ToJsonString ¶
func (r *UnbindPsaTagResponse) ToJsonString() string
type UserCmd ¶
type UserCmd struct { // 用户自定义脚本名 Alias *string `json:"Alias,omitempty" name:"Alias"` // AppId AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // 脚本自增ID AutoId *uint64 `json:"AutoId,omitempty" name:"AutoId"` // 脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` // 脚本内容 Content *string `json:"Content,omitempty" name:"Content"` // 创建时间 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 修改时间 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` // 命令适用的操作系统类型 OsType *string `json:"OsType,omitempty" name:"OsType"` }
type UserCmdTask ¶
type UserCmdTask struct { // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 任务状态ID,取值: -1(进行中) 0(结束) Status *int64 `json:"Status,omitempty" name:"Status"` // 脚本名称 Alias *string `json:"Alias,omitempty" name:"Alias"` // 脚本ID CmdId *string `json:"CmdId,omitempty" name:"CmdId"` // 运行实例数量 InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // 运行成功数量 SuccessCount *uint64 `json:"SuccessCount,omitempty" name:"SuccessCount"` // 运行失败数量 FailureCount *uint64 `json:"FailureCount,omitempty" name:"FailureCount"` // 执行开始时间 RunBeginTime *string `json:"RunBeginTime,omitempty" name:"RunBeginTime"` // 执行结束时间 RunEndTime *string `json:"RunEndTime,omitempty" name:"RunEndTime"` }
type UserCmdTaskInfo ¶
type UserCmdTaskInfo struct { // 自动编号,可忽略 AutoId *uint64 `json:"AutoId,omitempty" name:"AutoId"` // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 任务开始时间 RunBeginTime *string `json:"RunBeginTime,omitempty" name:"RunBeginTime"` // 任务结束时间 RunEndTime *string `json:"RunEndTime,omitempty" name:"RunEndTime"` // 任务状态ID,取值为 -1:进行中;0:成功;>0:失败错误码 Status *int64 `json:"Status,omitempty" name:"Status"` // 设备别名 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 设备ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 私有网络名 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // 私有网络整型ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 私有网络Cidr VpcCidrBlock *string `json:"VpcCidrBlock,omitempty" name:"VpcCidrBlock"` // 子网名 SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // 子网ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 子网Cidr SubnetCidrBlock *string `json:"SubnetCidrBlock,omitempty" name:"SubnetCidrBlock"` // 内网IP LanIp *string `json:"LanIp,omitempty" name:"LanIp"` // 脚本内容,base64编码后的值 CmdContent *string `json:"CmdContent,omitempty" name:"CmdContent"` // 脚本参数,base64编码后的值 CmdParam *string `json:"CmdParam,omitempty" name:"CmdParam"` // 脚本执行结果,base64编码后的值 CmdResult *string `json:"CmdResult,omitempty" name:"CmdResult"` // 用户AppId AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // 用户执行脚本结束退出的返回值,没有返回值为-1 LastShellExit *int64 `json:"LastShellExit,omitempty" name:"LastShellExit"` }