Documentation
¶
Index ¶
- Constants
- Variables
- type Apis
- type EcsBatchUpdateInstancesApi
- type EcsBatchUpdateInstancesOrderInfoResponse
- type EcsBatchUpdateInstancesRequest
- type EcsBatchUpdateInstancesResponse
- type EcsBatchUpdateInstancesUpdateInfoRequest
- type EcsChangeToCycleApi
- type EcsChangeToCycleOrderInfoResponse
- type EcsChangeToCycleRequest
- type EcsChangeToCycleResponse
- type EcsCreateInstanceApi
- type EcsCreateInstanceNetworkCardListRequest
- type EcsCreateInstanceRequest
- type EcsCreateInstanceResponse
- type EcsDescribeInstancesApi
- type EcsDescribeInstancesRequest
- type EcsDescribeInstancesResponse
- type EcsDescribeInstancesResultsFlavorResponse
- type EcsDescribeInstancesResultsImageResponse
- type EcsDescribeInstancesResultsNetworkInfoResponse
- type EcsDescribeInstancesResultsResponse
- type EcsDescribeInstancesResultsSecGroupListResponse
- type EcsDestroyInstanceApi
- type EcsDestroyInstanceRealRequest
- type EcsDestroyInstanceRealResponse
- type EcsDestroyInstanceRequest
- type EcsDestroyInstanceResponse
- type EcsFlavorListApi
- type EcsFlavorListFlavorListResponse
- type EcsFlavorListRequest
- type EcsFlavorListResponse
- type EcsGetUserdataMonitorApi
- type EcsGetUserdataMonitorRealRequest
- type EcsGetUserdataMonitorRealResponse
- type EcsGetUserdataMonitorRequest
- type EcsGetUserdataMonitorResponse
- type EcsGetUserdataMonitorResultsRealResponse
- type EcsGetUserdataMonitorResultsResponse
- type EcsInstanceDetailsApi
- type EcsInstanceDetailsRequest
- type EcsInstanceDetailsResponse
- type EcsInstanceDetailsResultsFlavorResponse
- type EcsInstanceDetailsResultsImageResponse
- type EcsInstanceDetailsResultsNetworkCardListResponse
- type EcsInstanceDetailsResultsSecGroupListResponse
- type EcsInstanceStatusListApi
- type EcsInstanceStatusListRequest
- type EcsInstanceStatusListResponse
- type EcsInstanceStatusListStatusListResponse
- type EcsJoinSecurityGroupApi
- type EcsJoinSecurityGroupRequest
- type EcsJoinSecurityGroupResponse
- type EcsLeaveSecurityGroupApi
- type EcsLeaveSecurityGroupRequest
- type EcsLeaveSecurityGroupResponse
- type EcsOrderQueryUuidApi
- type EcsOrderQueryUuidRealResponse
- type EcsOrderQueryUuidRequest
- type EcsOrderQueryUuidResponse
- type EcsQueryAsyncResultApi
- type EcsQueryAsyncResultRealResponse
- type EcsQueryAsyncResultRequest
- type EcsQueryAsyncResultResponse
- type EcsResetPasswordApi
- type EcsResetPasswordRealResponse
- type EcsResetPasswordRequest
- type EcsResetPasswordResponse
- type EcsShelveInstanceApi
- type EcsShelveInstanceRealRequest
- type EcsShelveInstanceRealResponse
- type EcsShelveInstanceRequest
- type EcsShelveInstanceResponse
- type EcsStartInstanceApi
- type EcsStartInstanceRealResponse
- type EcsStartInstanceRequest
- type EcsStartInstanceResponse
- type EcsStopInstanceApi
- type EcsStopInstanceRequest
- type EcsStopInstanceResponse
- type EcsTagOnDemandApi
- type EcsTagOnDemandOrderInfoResponse
- type EcsTagOnDemandRequest
- type EcsTagOnDemandResponse
- type EcsTerminateCycleApi
- type EcsTerminateCycleOrderInfoResponse
- type EcsTerminateCycleRequest
- type EcsTerminateCycleResponse
- type EcsUnsubscribeInstanceApi
- type EcsUnsubscribeInstanceRequest
- type EcsUnsubscribeInstanceResponse
- type EcsUpdateFlavorSpecApi
- type EcsUpdateFlavorSpecRequest
- type EcsUpdateFlavorSpecResponse
- type EcsUserdataDetailsApi
- type EcsUserdataDetailsRealRequest
- type EcsUserdataDetailsRealResponse
- type EcsUserdataDetailsRequest
- type EcsUserdataDetailsResponse
- type EcsVolumeListApi
- type EcsVolumeListRequest
- type EcsVolumeListResponse
- type EcsVolumeListResultsResponse
- type JobShowApi
- type JobShowRequest
- type JobShowResponse
- type KeypairAttachApi
- type KeypairAttachRequest
- type KeypairAttachResponse
- type KeypairCreateApi
- type KeypairCreateRealResponse
- type KeypairCreateRequest
- type KeypairCreateResponse
- type KeypairDeleteApi
- type KeypairDeleteRealResponse
- type KeypairDeleteRequest
- type KeypairDeleteResponse
- type KeypairDetachApi
- type KeypairDetachRequest
- type KeypairDetachResponse
- type KeypairDetailApi
- type KeypairDetailRequest
- type KeypairDetailResponse
- type KeypairDetailResults
- type KeypairImportApi
- type KeypairImportRequest
- type KeypairImportResponse
- type RegionListApi
- type RegionListRegionListResponse
- type RegionListRequest
- type RegionListResponse
- type SecurityGroupRuleEgressCreateApi
- type SecurityGroupRuleEgressCreateRequest
- type SecurityGroupRuleEgressCreateResponse
- type SecurityGroupRuleEgressCreateSecurityGroupRulesRequest
- type SecurityGroupRuleIngressCreateApi
- type SecurityGroupRuleIngressCreateRequest
- type SecurityGroupRuleIngressCreateResponse
- type SecurityGroupRuleIngressCreateSecurityGroupRulesRequest
Constants ¶
const ( EndpointNameCtecs = "ctecs" UrlProdCtecs = "ctecs-global.ctapi.ctyun.cn" UrlTestCtecs = "ctecs-global.ctapi-test.ctyun.cn:21443" )
Variables ¶
var EndpointCtecsProd = ctyunsdk.Endpoint{ EndpointName: EndpointNameCtecs, Url: UrlProdCtecs, }
var EndpointCtecsTest = ctyunsdk.Endpoint{ EndpointName: EndpointNameCtecs, Url: UrlTestCtecs, }
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct { RegionListApi *RegionListApi KeypairAttachApi *KeypairAttachApi KeypairDetachApi *KeypairDetachApi KeypairCreateApi *KeypairCreateApi KeypairDeleteApi *KeypairDeleteApi KeypairDetailApi *KeypairDetailApi KeypairImportApi *KeypairImportApi EcsDescribeInstancesApi *EcsDescribeInstancesApi EcsFlavorListApi *EcsFlavorListApi EcsCreateInstanceApi *EcsCreateInstanceApi EcsJoinSecurityGroupApi *EcsJoinSecurityGroupApi EcsLeaveSecurityGroupApi *EcsLeaveSecurityGroupApi EcsVolumeListApi *EcsVolumeListApi EcsInstanceDetailsApi *EcsInstanceDetailsApi EcsUnsubscribeInstanceApi *EcsUnsubscribeInstanceApi EcsUpdateFlavorSpecApi *EcsUpdateFlavorSpecApi EcsQueryAsyncResultApi *EcsQueryAsyncResultApi EcsStartInstanceApi *EcsStartInstanceApi EcsStopInstanceApi *EcsStopInstanceApi EcsInstanceStatusListApi *EcsInstanceStatusListApi EcsResetPasswordApi *EcsResetPasswordApi EcsChangeToCycleApi *EcsChangeToCycleApi EcsTagOnDemandApi *EcsTagOnDemandApi EcsTerminateCycleApi *EcsTerminateCycleApi EcsBatchUpdateInstancesApi *EcsBatchUpdateInstancesApi JobShowApi *JobShowApi EcsOrderQueryUuidApi *EcsOrderQueryUuidApi SecurityGroupRuleEgressCreateApi *SecurityGroupRuleEgressCreateApi SecurityGroupRuleIngressCreateApi *SecurityGroupRuleIngressCreateApi EcsShelveInstanceApi *EcsShelveInstanceApi EcsGetUserdataMonitorApi *EcsGetUserdataMonitorApi EcsUserdataDetailsApi *EcsUserdataDetailsApi EcsDestroyInstanceApi *EcsDestroyInstanceApi }
Apis api的接口
type EcsBatchUpdateInstancesApi ¶
type EcsBatchUpdateInstancesApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsBatchUpdateInstancesApi 包周期付费云主机标记到期转按需
func NewEcsBatchUpdateInstancesApi ¶
func NewEcsBatchUpdateInstancesApi(client *ctyunsdk.CtyunClient) *EcsBatchUpdateInstancesApi
func (*EcsBatchUpdateInstancesApi) Do ¶
func (this *EcsBatchUpdateInstancesApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsBatchUpdateInstancesRequest) (*EcsBatchUpdateInstancesResponse, ctyunsdk.CtyunRequestError)
type EcsBatchUpdateInstancesRequest ¶
type EcsBatchUpdateInstancesRequest struct { RegionId string UpdateInfo []EcsBatchUpdateInstancesUpdateInfoRequest }
type EcsBatchUpdateInstancesResponse ¶
type EcsBatchUpdateInstancesResponse struct {
UpdateInfo []EcsBatchUpdateInstancesOrderInfoResponse
}
type EcsChangeToCycleApi ¶
type EcsChangeToCycleApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsChangeToCycleApi 按需付费转包周期
func NewEcsChangeToCycleApi ¶
func NewEcsChangeToCycleApi(client *ctyunsdk.CtyunClient) *EcsChangeToCycleApi
func (*EcsChangeToCycleApi) Do ¶
func (this *EcsChangeToCycleApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsChangeToCycleRequest) (*EcsChangeToCycleResponse, ctyunsdk.CtyunRequestError)
type EcsChangeToCycleRequest ¶
type EcsChangeToCycleResponse ¶
type EcsChangeToCycleResponse struct {
OrderInfo []EcsChangeToCycleOrderInfoResponse
}
type EcsCreateInstanceApi ¶
type EcsCreateInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsCreateInstanceApi 创建一台按量付费或包年包月的云主机 https://www.ctyun.cn/document/10026730/10106580
func NewEcsCreateInstanceApi ¶
func NewEcsCreateInstanceApi(client *ctyunsdk.CtyunClient) *EcsCreateInstanceApi
func (*EcsCreateInstanceApi) Do ¶
func (this *EcsCreateInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsCreateInstanceRequest) (*EcsCreateInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsCreateInstanceRequest ¶
type EcsCreateInstanceRequest struct { ClientToken string // 客户端存根 RegionId string // 资源池ID AzName string // 可用区名称 InstanceName string // 云主机名称,不可以使用已存在的云主机名称 DisplayName string // 云主机显示名称 FlavorId string // 云主机规格ID ImageType *int // 镜像类型 ImageId string // 镜像ID BootDiskType string // 系统盘类型,取值范围: SATA(普通IO), SAS(高IO), SSD(超高IO), SSD-genric(通用型SSD), FAST-SSD(极速型SSD),您可以查看磁盘类型及性能介绍来了解磁盘类型及其对应性能指标 BootDiskSize *int // 系统盘大小单位为GiB,取值范围:[40, 32768] VpcId string // 虚拟私有云ID OnDemand *bool // 购买方式,取值范围: false(按周期), true(按需) NetworkCardList []EcsCreateInstanceNetworkCardListRequest // 网卡信息列表 ExtIp string // 是否使用弹性公网IP,取值范围: 0(不使用), 1(自动分配), 2(使用已有) ProjectId string // 企业项目id SecGroupList []string // 安全组ID列表 KeyPairID string // 密钥对ID UserPassword string // 用户密码 CycleCount *int // 订购时长 CycleType string // 订购周期类型 AutoRenewStatus *int // 是否自动续订,取值范围: 0(不续费), 1(自动续费), 注:按月购买,自动续订周期为3个月;按年购买,自动续订周期为1年 UserData string // 用户自定义数据,需要以Base64方式编码,Base64编码后的长度限制为1-16384字符 MonitorService *bool // 监控参数,支持通过该参数指定云主机在创建后是否开启详细监控,取值范围: false(不开启),true(开启);注:若指定该参数为true或不指定该参数,云主机内默认开启最新详细监控服务。若指定该参数为false,默认公共镜像不开启最新监控服务;私有镜像使用镜像中保留的监控服务。说明:仅部分资源池支持monitorService参数, PayVoucherPrice *float64 // 代金券,满足以下规则:两位小数,不足两位自动补0,超过两位小数无效;不可为负数;注:字段为0时表示不使用代金券,默认不使用 }
type EcsDescribeInstancesApi ¶
type EcsDescribeInstancesApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsDescribeInstancesApi 查询一台或多台云主机信息 https://www.ctyun.cn/document/10026730/10189239
func NewEcsDescribeInstancesApi ¶
func NewEcsDescribeInstancesApi(client *ctyunsdk.CtyunClient) *EcsDescribeInstancesApi
func (*EcsDescribeInstancesApi) Do ¶
func (this *EcsDescribeInstancesApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsDescribeInstancesRequest) (*EcsDescribeInstancesResponse, ctyunsdk.CtyunRequestError)
type EcsDescribeInstancesResponse ¶
type EcsDescribeInstancesResponse struct { CurrentCount int TotalCount int TotalPage int Results []EcsDescribeInstancesResultsResponse }
type EcsDescribeInstancesResultsResponse ¶
type EcsDescribeInstancesResultsResponse struct { AzName string AzDisplayName string AttachedVolume []string ExpiredTime string CreatedTime string ProjectId string InstanceId string DisplayName string InstanceName string OsType int InstanceStatus string OnDemand bool KeypairName string SecGroupList []EcsDescribeInstancesResultsSecGroupListResponse NetworkInfo []EcsDescribeInstancesResultsNetworkInfoResponse Image EcsDescribeInstancesResultsImageResponse Flavor EcsDescribeInstancesResultsFlavorResponse }
type EcsDestroyInstanceApi ¶
type EcsDestroyInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsDestroyInstanceApi
func NewEcsDestroyInstanceApi ¶
func NewEcsDestroyInstanceApi(client *ctyunsdk.CtyunClient) *EcsDestroyInstanceApi
func (*EcsDestroyInstanceApi) Do ¶
func (this *EcsDestroyInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsDestroyInstanceRequest) (*EcsDestroyInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsFlavorListApi ¶
type EcsFlavorListApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsFlavorListApi 查询一个或多个云主机规格资源 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8327&data=87
func NewEcsFlavorListApi ¶
func NewEcsFlavorListApi(client *ctyunsdk.CtyunClient) *EcsFlavorListApi
func (*EcsFlavorListApi) Do ¶
func (this *EcsFlavorListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsFlavorListRequest) (*EcsFlavorListResponse, ctyunsdk.CtyunRequestError)
type EcsFlavorListFlavorListResponse ¶
type EcsFlavorListFlavorListResponse struct { GpuVendor string CpuInfo string BaseBandwidth float64 FlavorName string VideoMemSize int FlavorType string FlavorSeries string FlavorRam int NicMultiQueue int Pps int FlavorCpu int Bandwidth float64 GpuType string FlavorId string GpuCount int Available bool AzList []string FlavorSeriesName string }
type EcsFlavorListRequest ¶
type EcsFlavorListResponse ¶
type EcsFlavorListResponse struct {
FlavorList []EcsFlavorListFlavorListResponse
}
type EcsGetUserdataMonitorApi ¶
type EcsGetUserdataMonitorApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsGetUserdataMonitorApi
func NewEcsGetUserdataMonitorApi ¶
func NewEcsGetUserdataMonitorApi(client *ctyunsdk.CtyunClient) *EcsGetUserdataMonitorApi
func (*EcsGetUserdataMonitorApi) Do ¶
func (this *EcsGetUserdataMonitorApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsGetUserdataMonitorRequest) (*EcsGetUserdataMonitorResponse, ctyunsdk.CtyunRequestError)
type EcsGetUserdataMonitorRealResponse ¶
type EcsGetUserdataMonitorRealResponse struct {
Results []EcsGetUserdataMonitorResultsRealResponse `json:"results,omitempty"`
}
type EcsGetUserdataMonitorResponse ¶
type EcsGetUserdataMonitorResponse struct {
Results []EcsGetUserdataMonitorResultsResponse
}
type EcsInstanceDetailsApi ¶
type EcsInstanceDetailsApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsInstanceDetailsApi 查询一台云主机详细信息 https://www.ctyun.cn/document/10026730/10106322
func NewEcsInstanceDetailsApi ¶
func NewEcsInstanceDetailsApi(client *ctyunsdk.CtyunClient) *EcsInstanceDetailsApi
func (*EcsInstanceDetailsApi) Do ¶
func (this *EcsInstanceDetailsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsInstanceDetailsRequest) (*EcsInstanceDetailsResponse, ctyunsdk.CtyunRequestError)
type EcsInstanceDetailsResponse ¶
type EcsInstanceDetailsResponse struct { ProjectId string AzName string AttachedVolume []string ResourceId string InstanceId string DisplayName string InstanceName string OsType int InstanceStatus string ExpiredTime string AvailableDay int UpdatedTime string CreatedTime string SecGroupList []EcsInstanceDetailsResultsSecGroupListResponse PrivateIp string PrivateIPv6 string NetworkCardList []EcsInstanceDetailsResultsNetworkCardListResponse VipCount int Image EcsInstanceDetailsResultsImageResponse Flavor EcsInstanceDetailsResultsFlavorResponse OnDemand bool VpcName string VpcId string FixedIpList []string FloatingIp string SubnetIdList []string KeypairName string }
type EcsInstanceStatusListApi ¶
type EcsInstanceStatusListApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsInstanceStatusListApi 获取多台云主机状态 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8308&data=87
func NewEcsInstanceStatusListApi ¶
func NewEcsInstanceStatusListApi(client *ctyunsdk.CtyunClient) *EcsInstanceStatusListApi
func (*EcsInstanceStatusListApi) Do ¶
func (this *EcsInstanceStatusListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsInstanceStatusListRequest) (*EcsInstanceStatusListResponse, ctyunsdk.CtyunRequestError)
type EcsInstanceStatusListResponse ¶
type EcsInstanceStatusListResponse struct { CurrentCount int TotalCount int TotalPage int StatusList []EcsInstanceStatusListStatusListResponse }
type EcsJoinSecurityGroupApi ¶
type EcsJoinSecurityGroupApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsJoinSecurityGroupApi 绑定安全组 https://www.ctyun.cn/document/10026730/10040193
func NewEcsJoinSecurityGroupApi ¶
func NewEcsJoinSecurityGroupApi(client *ctyunsdk.CtyunClient) *EcsJoinSecurityGroupApi
func (*EcsJoinSecurityGroupApi) Do ¶
func (this *EcsJoinSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsJoinSecurityGroupRequest) (*EcsJoinSecurityGroupResponse, ctyunsdk.CtyunRequestError)
type EcsJoinSecurityGroupResponse ¶
type EcsJoinSecurityGroupResponse struct { }
type EcsLeaveSecurityGroupApi ¶
type EcsLeaveSecurityGroupApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsLeaveSecurityGroupApi 绑定安全组 https://www.ctyun.cn/document/10026730/10040193
func NewEcsLeaveSecurityGroupApi ¶
func NewEcsLeaveSecurityGroupApi(client *ctyunsdk.CtyunClient) *EcsLeaveSecurityGroupApi
func (*EcsLeaveSecurityGroupApi) Do ¶
func (this *EcsLeaveSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsLeaveSecurityGroupRequest) (*EcsLeaveSecurityGroupResponse, ctyunsdk.CtyunRequestError)
type EcsLeaveSecurityGroupResponse ¶
type EcsLeaveSecurityGroupResponse struct { }
type EcsOrderQueryUuidApi ¶
type EcsOrderQueryUuidApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsOrderQueryUuidApi 根据订单号查询uuid https://www.ctyun.cn/document/10026730/10069118
func NewEcsOrderQueryUuid ¶
func NewEcsOrderQueryUuid(client *ctyunsdk.CtyunClient) *EcsOrderQueryUuidApi
func (*EcsOrderQueryUuidApi) Do ¶
func (this *EcsOrderQueryUuidApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsOrderQueryUuidRequest) (*EcsOrderQueryUuidResponse, ctyunsdk.CtyunRequestError)
type EcsOrderQueryUuidRequest ¶
type EcsOrderQueryUuidRequest struct {
MasterOrderId string
}
type EcsQueryAsyncResultApi ¶
type EcsQueryAsyncResultApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsQueryAsyncResultApi 查询一个异步任务的结果 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=5543&data=87
func NewEcsQueryAsyncResultApi ¶
func NewEcsQueryAsyncResultApi(client *ctyunsdk.CtyunClient) *EcsQueryAsyncResultApi
func (*EcsQueryAsyncResultApi) Do ¶
func (this *EcsQueryAsyncResultApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsQueryAsyncResultRequest) (*EcsQueryAsyncResultResponse, ctyunsdk.CtyunRequestError)
type EcsQueryAsyncResultRealResponse ¶
type EcsQueryAsyncResultRealResponse struct {
JobStatus int `json:"jobStatus"`
}
type EcsQueryAsyncResultResponse ¶
type EcsQueryAsyncResultResponse struct {
JobStatus int
}
type EcsResetPasswordApi ¶
type EcsResetPasswordApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsResetPasswordApi 更新云主机密码 https://www.ctyun.cn/document/10026730/10106390
func NewEcsResetPasswordApi ¶
func NewEcsResetPasswordApi(client *ctyunsdk.CtyunClient) *EcsResetPasswordApi
func (*EcsResetPasswordApi) Do ¶
func (this *EcsResetPasswordApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsResetPasswordRequest) (*EcsResetPasswordResponse, ctyunsdk.CtyunRequestError)
type EcsResetPasswordRealResponse ¶
type EcsResetPasswordRealResponse struct {
InstanceID string `json:"instanceID"`
}
type EcsResetPasswordRequest ¶
type EcsResetPasswordResponse ¶
type EcsResetPasswordResponse struct {
InstanceId string
}
type EcsShelveInstanceApi ¶
type EcsShelveInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsShelveInstanceApi 节省关机一台云主机 https://www.ctyun.cn/document/10026730/10597755
func NewEcsShelveInstanceApi ¶
func NewEcsShelveInstanceApi(client *ctyunsdk.CtyunClient) *EcsShelveInstanceApi
func (*EcsShelveInstanceApi) Do ¶
func (this *EcsShelveInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsShelveInstanceRequest) (*EcsShelveInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsShelveInstanceRealResponse ¶
type EcsShelveInstanceRealResponse struct {
JobID string `json:"jobID,omitempty"`
}
type EcsShelveInstanceResponse ¶
type EcsShelveInstanceResponse struct {
JobID string
}
type EcsStartInstanceApi ¶
type EcsStartInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsStartInstanceApi 开启一台云主机 https://www.ctyun.cn/document/10026730/10106397
func NewEcsStartInstanceApi ¶
func NewEcsStartInstanceApi(client *ctyunsdk.CtyunClient) *EcsStartInstanceApi
func (*EcsStartInstanceApi) Do ¶
func (this *EcsStartInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsStartInstanceRequest) (*EcsStartInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsStartInstanceRealResponse ¶
type EcsStartInstanceRealResponse struct {
JobID string `json:"jobID"`
}
type EcsStartInstanceRequest ¶
type EcsStartInstanceResponse ¶
type EcsStartInstanceResponse struct {
JobId string
}
type EcsStopInstanceApi ¶
type EcsStopInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsStopInstanceApi 关闭一台云主机 https://www.ctyun.cn/document/10026730/10106393
func NewEcsStopInstanceApi ¶
func NewEcsStopInstanceApi(client *ctyunsdk.CtyunClient) *EcsStopInstanceApi
func (*EcsStopInstanceApi) Do ¶
func (this *EcsStopInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsStopInstanceRequest) (*EcsStopInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsStopInstanceRequest ¶
type EcsStopInstanceResponse ¶
type EcsStopInstanceResponse struct {
JobId string
}
type EcsTagOnDemandApi ¶
type EcsTagOnDemandApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsTagOnDemandApi 包周期付费云主机标记到期转按需
func NewEcsTagOnDemandApi ¶
func NewEcsTagOnDemandApi(client *ctyunsdk.CtyunClient) *EcsTagOnDemandApi
func (*EcsTagOnDemandApi) Do ¶
func (this *EcsTagOnDemandApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsTagOnDemandRequest) (*EcsTagOnDemandResponse, ctyunsdk.CtyunRequestError)
type EcsTagOnDemandRequest ¶
type EcsTagOnDemandResponse ¶
type EcsTagOnDemandResponse struct {
OrderInfo []EcsTagOnDemandOrderInfoResponse
}
type EcsTerminateCycleApi ¶
type EcsTerminateCycleApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsTerminateCycleApi 包周期终止
func NewEcsTerminateCycleApi ¶
func NewEcsTerminateCycleApi(client *ctyunsdk.CtyunClient) *EcsTerminateCycleApi
func (*EcsTerminateCycleApi) Do ¶
func (this *EcsTerminateCycleApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsTerminateCycleRequest) (*EcsTerminateCycleResponse, ctyunsdk.CtyunRequestError)
type EcsTerminateCycleResponse ¶
type EcsTerminateCycleResponse struct {
OrderInfo []EcsTerminateCycleOrderInfoResponse
}
type EcsUnsubscribeInstanceApi ¶
type EcsUnsubscribeInstanceApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsUnsubscribeInstanceApi 释放云主机 https://www.ctyun.cn/document/10026730/10106596
func NewEcsUnsubscribeInstanceApi ¶
func NewEcsUnsubscribeInstanceApi(client *ctyunsdk.CtyunClient) *EcsUnsubscribeInstanceApi
func (*EcsUnsubscribeInstanceApi) Do ¶
func (this *EcsUnsubscribeInstanceApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUnsubscribeInstanceRequest) (*EcsUnsubscribeInstanceResponse, ctyunsdk.CtyunRequestError)
type EcsUpdateFlavorSpecApi ¶
type EcsUpdateFlavorSpecApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsUpdateFlavorSpecApi 云主机修改规格 https://www.ctyun.cn/document/10026730/10106612
func NewEcsUpdateFlavorSpecApi ¶
func NewEcsUpdateFlavorSpecApi(client *ctyunsdk.CtyunClient) *EcsUpdateFlavorSpecApi
func (*EcsUpdateFlavorSpecApi) Do ¶
func (this *EcsUpdateFlavorSpecApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUpdateFlavorSpecRequest) (*EcsUpdateFlavorSpecResponse, ctyunsdk.CtyunRequestError)
type EcsUserdataDetailsApi ¶
type EcsUserdataDetailsApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsUserdataDetailsApi
func NewEcsUserdataDetailsApi ¶
func NewEcsUserdataDetailsApi(client *ctyunsdk.CtyunClient) *EcsUserdataDetailsApi
func (*EcsUserdataDetailsApi) Do ¶
func (this *EcsUserdataDetailsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsUserdataDetailsRequest) (*EcsUserdataDetailsResponse, ctyunsdk.CtyunRequestError)
type EcsUserdataDetailsRealResponse ¶
type EcsUserdataDetailsRealResponse struct {
Userdata string `json:"userdata,omitempty"`
}
type EcsUserdataDetailsResponse ¶
type EcsUserdataDetailsResponse struct {
Userdata string
}
type EcsVolumeListApi ¶
type EcsVolumeListApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
EcsVolumeListApi 查询云主机的云硬盘列表 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=25&api=8290&data=87
func NewEcsVolumeListApi ¶
func NewEcsVolumeListApi(client *ctyunsdk.CtyunClient) *EcsVolumeListApi
func (*EcsVolumeListApi) Do ¶
func (this *EcsVolumeListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EcsVolumeListRequest) (*EcsVolumeListResponse, ctyunsdk.CtyunRequestError)
type EcsVolumeListRequest ¶
type EcsVolumeListResponse ¶
type EcsVolumeListResponse struct { CurrentCount int TotalCount int TotalPage int Results []EcsVolumeListResultsResponse }
type JobShowApi ¶
type JobShowApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
JobShowApi 通用任务状态查询 https://www.ctyun.cn/document/10026730/10040594
func NewJobShowApi ¶
func NewJobShowApi(client *ctyunsdk.CtyunClient) *JobShowApi
func (*JobShowApi) Do ¶
func (this *JobShowApi) Do(ctx context.Context, credential ctyunsdk.Credential, t *JobShowRequest) (*JobShowResponse, ctyunsdk.CtyunRequestError)
type JobShowRequest ¶
type JobShowResponse ¶
type KeypairAttachApi ¶
type KeypairAttachApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairAttachApi 绑定SSH密钥对到Linux云主机 https://www.ctyun.cn/document/10026730/10106635
func NewKeypairAttachApi ¶
func NewKeypairAttachApi(client *ctyunsdk.CtyunClient) *KeypairAttachApi
func (*KeypairAttachApi) Do ¶
func (this *KeypairAttachApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairAttachRequest) (*KeypairAttachResponse, ctyunsdk.CtyunRequestError)
type KeypairAttachRequest ¶
type KeypairAttachResponse ¶
type KeypairAttachResponse struct { }
type KeypairCreateApi ¶
type KeypairCreateApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairCreateApi 创建一对SSH密钥对 https://www.ctyun.cn/document/10026730/10106637
func NewKeypairCreateApi ¶
func NewKeypairCreateApi(client *ctyunsdk.CtyunClient) *KeypairCreateApi
func (*KeypairCreateApi) Do ¶
func (this *KeypairCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairCreateRequest) (*KeypairCreateResponse, ctyunsdk.CtyunRequestError)
type KeypairCreateRequest ¶
type KeypairCreateResponse ¶
type KeypairDeleteApi ¶
type KeypairDeleteApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairDeleteApi 删除SSH密钥对 https://www.ctyun.cn/document/10026730/10040173
func NewKeypairDeleteApi ¶
func NewKeypairDeleteApi(client *ctyunsdk.CtyunClient) *KeypairDeleteApi
func (*KeypairDeleteApi) Do ¶
func (this *KeypairDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDeleteRequest) (*KeypairDeleteResponse, ctyunsdk.CtyunRequestError)
type KeypairDeleteRealResponse ¶
type KeypairDeleteRealResponse struct {
KeyPairName string `json:"keyPairName"`
}
type KeypairDeleteRequest ¶
type KeypairDeleteResponse ¶
type KeypairDeleteResponse struct {
KeyPairName string // 密钥对名称
}
type KeypairDetachApi ¶
type KeypairDetachApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairDetachApi 为云主机解绑SSH密钥对 https://www.ctyun.cn/document/10026730/10106639
func NewKeypairDetachApi ¶
func NewKeypairDetachApi(client *ctyunsdk.CtyunClient) *KeypairDetachApi
func (*KeypairDetachApi) Do ¶
func (this *KeypairDetachApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDetachRequest) (*KeypairDetachResponse, ctyunsdk.CtyunRequestError)
type KeypairDetachRequest ¶
type KeypairDetachResponse ¶
type KeypairDetachResponse struct { }
type KeypairDetailApi ¶
type KeypairDetailApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairDetailApi 查询一个或多个密钥对 https://www.ctyun.cn/document/10026730/10106636
func NewKeypairDetailApi ¶
func NewKeypairDetailApi(client *ctyunsdk.CtyunClient) *KeypairDetailApi
func (*KeypairDetailApi) Do ¶
func (this *KeypairDetailApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairDetailRequest) (*KeypairDetailResponse, ctyunsdk.CtyunRequestError)
type KeypairDetailRequest ¶
type KeypairDetailResponse ¶
type KeypairDetailResponse struct { CurrentCount int // 当前页记录数目 TotalCount int // 总记录数 Results []KeypairDetailResults }
type KeypairDetailResults ¶
type KeypairImportApi ¶
type KeypairImportApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
KeypairImportApi 导入RSA密钥对公钥 https://www.ctyun.cn/document/10026730/10106638
func NewKeypairImportApi ¶
func NewKeypairImportApi(client *ctyunsdk.CtyunClient) *KeypairImportApi
func (*KeypairImportApi) Do ¶
func (this *KeypairImportApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *KeypairImportRequest) (*KeypairImportResponse, ctyunsdk.CtyunRequestError)
type KeypairImportRequest ¶
type KeypairImportResponse ¶
type RegionListApi ¶
type RegionListApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
RegionListApi 资源池列表查询 https://www.ctyun.cn/document/10026730/10040588
func NewRegionListApi ¶
func NewRegionListApi(client *ctyunsdk.CtyunClient) *RegionListApi
func (*RegionListApi) Do ¶
func (this *RegionListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *RegionListRequest) (*RegionListResponse, ctyunsdk.CtyunRequestError)
type RegionListRequest ¶
type RegionListRequest struct {
RegionName string
}
type RegionListResponse ¶
type RegionListResponse struct {
RegionList []RegionListRegionListResponse
}
type SecurityGroupRuleEgressCreateApi ¶
type SecurityGroupRuleEgressCreateApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
SecurityGroupRuleEgressCreateApi 创建安全组出向规则 https://www.ctyun.cn/document/10026730/10040197
func NewSecurityGroupRuleEgressCreateApi ¶
func NewSecurityGroupRuleEgressCreateApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleEgressCreateApi
func (*SecurityGroupRuleEgressCreateApi) Do ¶
func (this *SecurityGroupRuleEgressCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleEgressCreateRequest) (*SecurityGroupRuleEgressCreateResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleEgressCreateRequest ¶
type SecurityGroupRuleEgressCreateRequest struct { RegionId string // 区域id SecurityGroupId string // 安全组ID。 ClientToken string // 客户端存根 SecurityGroupRules []SecurityGroupRuleEgressCreateSecurityGroupRulesRequest // 规则信息 }
type SecurityGroupRuleEgressCreateResponse ¶
type SecurityGroupRuleEgressCreateResponse struct {
SgRuleIds []string
}
type SecurityGroupRuleEgressCreateSecurityGroupRulesRequest ¶
type SecurityGroupRuleEgressCreateSecurityGroupRulesRequest struct { Direction string // 规则方向,出方向则填写egress Action string // 授权策略,取值范围:accept(允许),drop(拒绝)。 Priority int // 优先级,取值范围:[1, 100],取值越小优先级越大 Protocol string // 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4) Ethertype string // IP类型,取值范围:IPv4、IPv6 DestCidrIp string // 远端地址:0.0.0.0/0 Description string // 安全组规则描述信息,满足以下规则: ① 长度0-128字符, ② 支持拉丁字母、中文、数字, 特殊字符 !@#¥%……&*()——-+={}《》?:“”【】、;‘',。、 不能以 http: / https: 开头 Range string // 安全组开放的传输层协议相关的源端端口范围 }
type SecurityGroupRuleIngressCreateApi ¶
type SecurityGroupRuleIngressCreateApi struct { ctyunsdk.CtyunRequestBuilder // contains filtered or unexported fields }
SecurityGroupRuleIngressCreateApi 创建安全组入向规则 https://www.ctyun.cn/document/10026730/10040198
func NewSecurityGroupRuleIngressCreateApi ¶
func NewSecurityGroupRuleIngressCreateApi(client *ctyunsdk.CtyunClient) *SecurityGroupRuleIngressCreateApi
func (*SecurityGroupRuleIngressCreateApi) Do ¶
func (this *SecurityGroupRuleIngressCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *SecurityGroupRuleIngressCreateRequest) (*SecurityGroupRuleIngressCreateResponse, ctyunsdk.CtyunRequestError)
type SecurityGroupRuleIngressCreateRequest ¶
type SecurityGroupRuleIngressCreateRequest struct { RegionId string // 区域id SecurityGroupId string // 安全组ID。 ClientToken string // 客户端存根 SecurityGroupRules []SecurityGroupRuleIngressCreateSecurityGroupRulesRequest // 规则信息 }
type SecurityGroupRuleIngressCreateResponse ¶
type SecurityGroupRuleIngressCreateResponse struct {
SgRuleIds []string
}
type SecurityGroupRuleIngressCreateSecurityGroupRulesRequest ¶
type SecurityGroupRuleIngressCreateSecurityGroupRulesRequest struct { Direction string // 规则方向,出方向则填写ingress Action string // 授权策略,取值范围:accept(允许),drop(拒绝)。 Priority int // 优先级,取值范围:[1, 100],取值越小优先级越大 Protocol string // 网络协议,取值范围:ANY(任意)、TCP、UDP、ICMP(v4) Ethertype string // IP类型,取值范围:IPv4、IPv6 DestCidrIp string // 远端地址:0.0.0.0/0 Description string // 安全组规则描述信息,满足以下规则: ① 长度0-128字符, ② 支持拉丁字母、中文、数字, 特殊字符 !@#¥%……&*()——-+={}《》?:“”【】、;‘',。、 不能以 http: / https: 开头 Range string // 安全组开放的传输层协议相关的源端端口范围 }
Source Files
¶
- apis.go
- const.go
- ecs_batch_update_instances.go
- ecs_change_to_cycle.go
- ecs_create_instance.go
- ecs_describe_instances.go
- ecs_destroy_instance.go
- ecs_flavor_list.go
- ecs_get_userdata_monitor.go
- ecs_instance_details.go
- ecs_instance_status_list.go
- ecs_join_security_group.go
- ecs_leave_security_group.go
- ecs_order_query_uuid.go
- ecs_query_async_result.go
- ecs_reset_password.go
- ecs_shelve_instance.go
- ecs_start_instance.go
- ecs_stop_instance.go
- ecs_tag_on_demand.go
- ecs_terminate_cycle.go
- ecs_unsubscribe_instance.go
- ecs_update_flavor_spec.go
- ecs_userdata_details.go
- ecs_volume_list.go
- job_show.go
- keypair_attach_instance.go
- keypair_create.go
- keypair_delete.go
- keypair_detach_instance.go
- keypair_details.go
- keypair_import.go
- region_list.go
- security_group_rule_egress_create.go
- security_group_rule_ingress_create.go