Documentation
¶
Index ¶
- Constants
- Variables
- type Apis
- type PgsqlBindEipApi
- type PgsqlBindEipRequest
- type PgsqlBindEipRequestHeader
- type PgsqlBindEipResponse
- type PgsqlBoundEipListApi
- type PgsqlBoundEipListRequest
- type PgsqlBoundEipListRequestHeader
- type PgsqlBoundEipListResponse
- type PgsqlBoundEipListResponseReturnObj
- type PgsqlBoundEipListResponseReturnObjData
- type PgsqlCreateApi
- type PgsqlCreateRequest
- type PgsqlCreateRequestAutoScaleParam
- type PgsqlCreateRequestAvailabilityZoneInfo
- type PgsqlCreateRequestHeader
- type PgsqlCreateRequestMysqlNodeInfoList
- type PgsqlCreateResponse
- type PgsqlCreateResponseReturnObj
- type PgsqlCreateResponseReturnObjData
- type PgsqlDeleteSecurityGroupApi
- type PgsqlDeleteSecurityGroupRequest
- type PgsqlDeleteSecurityGroupRequestHeader
- type PgsqlDeleteSecurityGroupResponse
- type PgsqlDetailApi
- type PgsqlDetailRequest
- type PgsqlDetailRequestHeader
- type PgsqlDetailResponse
- type PgsqlDetailResponseReturnObj
- type PgsqlGetNodeListApi
- type PgsqlGetNodeListHeaders
- type PgsqlGetNodeListRequest
- type PgsqlGetNodeListResponse
- type PgsqlGetNodeListResponseReturnObj
- type PgsqlListApi
- type PgsqlListRequest
- type PgsqlListRequestHeader
- type PgsqlListResponse
- type PgsqlListResponsePageInfo
- type PgsqlListResponseReturnObj
- type PgsqlRefundApi
- type PgsqlRefundRequest
- type PgsqlRefundRequestHeader
- type PgsqlRefundResponse
- type PgsqlRefundResponseReturnObj
- type PgsqlRestartApi
- type PgsqlRestartRequest
- type PgsqlRestartRequestHeader
- type PgsqlRestartResponse
- type PgsqlSecurityGroupListApi
- type PgsqlSecurityGroupListRequest
- type PgsqlSecurityGroupListRequestHeader
- type PgsqlSecurityGroupListResponse
- type PgsqlSecurityGroupListReturnObj
- type PgsqlSecurityGroupListReturnObjData
- type PgsqlSpecsApi
- type PgsqlSpecsHostConfig
- type PgsqlSpecsHostInst
- type PgsqlSpecsInstSpec
- type PgsqlSpecsRequest
- type PgsqlSpecsRequestHeader
- type PgsqlSpecsResponse
- type PgsqlSpecsReturnObj
- type PgsqlStartApi
- type PgsqlStartRequest
- type PgsqlStartRequestHeader
- type PgsqlStartResponse
- type PgsqlStopApi
- type PgsqlStopRequest
- type PgsqlStopRequestHeader
- type PgsqlStopResponse
- type PgsqlUnBindEipApi
- type PgsqlUnBindEipRequest
- type PgsqlUnBindEipRequestHeader
- type PgsqlUnBindEipResponse
- type PgsqlUpdateInstanceNameApi
- type PgsqlUpdateInstanceNameRequest
- type PgsqlUpdateInstanceNameRequestHeader
- type PgsqlUpdateInstanceNameResponse
- type PgsqlUpdateSecurityGroupApi
- type PgsqlUpdateSecurityGroupRequest
- type PgsqlUpdateSecurityGroupRequestHeader
- type PgsqlUpdateSecurityGroupResponse
- type PgsqlUpgradeApi
- type PgsqlUpgradeRequest
- type PgsqlUpgradeRequestAzList
- type PgsqlUpgradeRequestHeader
- type PgsqlUpgradeResponse
- type PgsqlUpgradeResponseReturnObj
- type SecurityGroupRule
- type TeledbDestroyApi
- type TeledbDestroyRequest
- type TeledbDestroyRequestHeader
- type TeledbDestroyResponse
- type TeledbDestroyResponseReturnObj
- type TeledbDestroyResponseReturnObjData
Constants ¶
View Source
const ( EndpointNamePgSql = "pgsql" UrlPordPgSql = "pgsql-global.ctapi.ctyun.cn" UrlTestPgSql = "" )
Variables ¶
View Source
var EndPointPgSqlProd = ctyunsdk.Endpoint{ EndpointName: EndpointNamePgSql, Url: UrlPordPgSql, }
View Source
var EndpointPgSqlTest = ctyunsdk.Endpoint{ EndpointName: EndpointNamePgSql, Url: UrlTestPgSql, }
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct {
PgsqlDestroyApi *TeledbDestroyApi
PgsqlCreateApi *PgsqlCreateApi
PgsqlDetailApi *PgsqlDetailApi
PgsqlListApi *PgsqlListApi
PgsqlRefundApi *PgsqlRefundApi
PgsqlRestartApi *PgsqlRestartApi
PgsqlSecurityGroupListApi *PgsqlSecurityGroupListApi
PgsqlSpecsApi *PgsqlSpecsApi
PgsqlStartApi *PgsqlStartApi
PgsqlStopApi *PgsqlStopApi
PgsqlUpdateInstanceNameApi *PgsqlUpdateInstanceNameApi
PgsqlUpdateSecurityGroupApi *PgsqlUpdateSecurityGroupApi
PgsqlUpgradeApi *PgsqlUpgradeApi
PgsqlBindEipApi *PgsqlBindEipApi
PgsqlUnBindEipApi *PgsqlUnBindEipApi
PgsqlBoundEipListApi *PgsqlBoundEipListApi
PgsqlDeleteSecurityGroupApi *PgsqlDeleteSecurityGroupApi
PgsqlGetNodeListApi *PgsqlGetNodeListApi
}
func NewApis ¶
func NewApis(client *ctyunsdk.CtyunClient) *Apis
type PgsqlBindEipApi ¶
type PgsqlBindEipApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlBindEipApi ¶
func NewPgsqlBindEipApi(client *ctyunsdk.CtyunClient) *PgsqlBindEipApi
func (*PgsqlBindEipApi) Do ¶
func (this *PgsqlBindEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlBindEipRequest, header *PgsqlBindEipRequestHeader) (createResponse *PgsqlBindEipResponse, err error)
type PgsqlBindEipRequest ¶
type PgsqlBindEipRequestHeader ¶
type PgsqlBindEipRequestHeader struct {
ProjectId *string `json:"projectId,omitempty"`
}
type PgsqlBindEipResponse ¶
type PgsqlBoundEipListApi ¶
type PgsqlBoundEipListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlBoundEipListApi ¶
func NewPgsqlBoundEipListApi(client *ctyunsdk.CtyunClient) *PgsqlBoundEipListApi
func (*PgsqlBoundEipListApi) Do ¶
func (this *PgsqlBoundEipListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlBoundEipListRequest, header *PgsqlBoundEipListRequestHeader) (bindResponse *PgsqlBoundEipListResponse, err error)
type PgsqlBoundEipListRequestHeader ¶
type PgsqlBoundEipListRequestHeader struct {
ProjectID *string `json:"project_id"`
}
type PgsqlBoundEipListResponse ¶
type PgsqlBoundEipListResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码
Error string `json:"error"` // 错误码,失败时返回,成功时为空
Message *string `json:"message"` // 描述信息
ReturnObj *PgsqlBoundEipListResponseReturnObj `json:"returnObj"`
}
type PgsqlBoundEipListResponseReturnObj ¶
type PgsqlBoundEipListResponseReturnObj struct {
Data []PgsqlBoundEipListResponseReturnObjData `json:"data"`
}
type PgsqlCreateApi ¶
type PgsqlCreateApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlCreateApi ¶
func NewPgsqlCreateApi(client *ctyunsdk.CtyunClient) *PgsqlCreateApi
func (*PgsqlCreateApi) Do ¶
func (this *PgsqlCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlCreateRequest, header *PgsqlCreateRequestHeader) (createResponse *PgsqlCreateResponse, err error)
type PgsqlCreateRequest ¶
type PgsqlCreateRequest struct {
BillMode string `json:"billMode"` // 计费模式:包周期或按需
RegionId string `json:"regionId"` // 目标资源池ID
ResPoolCode *string `json:"resPoolCode,omitempty"` // 资源池名称
HostType string `json:"hostType"` // 主机类型
ProdVersion string `json:"prodVersion"` // 产品版本
MysqlNodeInfoList []PgsqlCreateRequestMysqlNodeInfoList `json:"mysqlNodeInfoList"` // Mysql节点信息
ProdId int64 `json:"prodId"` // 产品ID
ProjectName *string `json:"projectName,omitempty"` // 企业项目名称,默认为default
AutoScaleParam *PgsqlCreateRequestAutoScaleParam `json:"autoScaleParam,omitempty"` // 自动扩容参数
BackupStorageType *string `json:"backupStorageType,omitempty"` // 备份存储类型
VpcId string `json:"vpcId,omitempty"` // 虚拟私有云ID
SubnetId string `json:"subnetId"` // 子网ID
SecurityGroupId string `json:"securityGroupId"` // 安全组ID
AppointVip *string `json:"appointVip,omitempty"` // 指定VIP
VpcName *string `json:"vpcName,omitempty"` // VPC名称
SubnetName *string `json:"subnetName,omitempty"` // 子网名称
SecurityGroupName *string `json:"securityGroupName,omitempty"` // 安全组名称
Name string `json:"name"` // 集群名称
Password string `json:"password,omitempty"` // 管理员密码(加密)
ParamTemplateId string `json:"paramTemplateId"` // 参数模板ID
Period int32 `json:"period"` // 购买时长(单位:月)
Count int32 `json:"count"` // 购买数量
AutoRenewStatus int32 `json:"autoRenewStatus"` // 自动续订状态
CaseSensitive string `json:"caseSensitive"` // 是否区分大小写
TimeZone string `json:"timeZone"` // 时区
OsType *string `json:"osType,omitempty"` // 操作系统类型
CpuType *string `json:"cpuType,omitempty"` // CPU类型
ProjectId *string `json:"projectId,omitempty"` // 企业项目ID
ProdSpecName *string `json:"prodSpecName,omitempty"` // 产品规格名称
IsMGR *string `json:"isMGR,omitempty"` // 是否开启MRG
VpcCIDR *string `json:"vpcCIDR,omitempty"` // VPC网段
ServerCollation *string `json:"serverCollation,omitempty"` // 数据库字符集
CrossInstanceBackup bool `json:"crossInstanceBackup,omitempty"` // 是否为恢复到新实例工单
SourceInstId *string `json:"sourceInstId,omitempty"` // 源实例ID
BackupId *string `json:"backupId,omitempty"` // 备份集ID
BackupTimePoint *string `json:"backupTimePoint,omitempty"` // 恢复时间点
IsCrossRegionRecovery bool `json:"isCrossRegionRecovery,omitempty"` // 是否跨域恢复
}
type PgsqlCreateRequestAvailabilityZoneInfo ¶
type PgsqlCreateRequestAvailabilityZoneInfo struct {
AvailabilityZoneName string `json:"availabilityZoneName"` // 可用区名称
AvailabilityZoneCount int32 `json:"availabilityZoneCount"` // 资源池可用区总数
NodeType string `json:"nodeType"` // 分布AZ的节点类型,主/从/只读
DisplayName *string `json:"displayName,omitempty"` // 可用区显示名,非必传
SpecId string `json:"specId"` // 规格ID
}
type PgsqlCreateRequestHeader ¶
type PgsqlCreateRequestHeader struct {
ProjectId *string `json:"projectId,omitempty"`
}
type PgsqlCreateRequestMysqlNodeInfoList ¶
type PgsqlCreateRequestMysqlNodeInfoList struct {
NodeType string `json:"nodeType"` // 节点类型,主实例或只读实例
InstSpec string `json:"instSpec"` // 实例规格
StorageType string `json:"storageType"` // 存储类型
StorageSpace int32 `json:"storageSpace"` // 存储空间,单位:GB
ProdPerformanceSpec string `json:"prodPerformanceSpec"` // 产品性能规格
Disks int32 `json:"disks"` // 磁盘数量,默认为1
AvailabilityZoneInfo []PgsqlCreateRequestAvailabilityZoneInfo `json:"availabilityZoneInfo"` // 可用区信息
BackupStorageType *string `json:"backupStorageType,omitempty"` // 备份存储类型
BackupStorageSpace *string `json:"backupStorageSpace,omitempty"` // 备份存储空间大小
}
type PgsqlCreateResponse ¶
type PgsqlCreateResponse struct {
StatusCode int32 `json:"statusCode"`
Error string `json:"error"` //错误码。当接口失败时才返回具体错误编码,成功不返回或者为空
Message string `json:"message"` //描述信息
ReturnObj *PgsqlCreateResponseReturnObj `json:"returnObj"` // 返回对象
}
type PgsqlCreateResponseReturnObj ¶
type PgsqlCreateResponseReturnObj struct {
Data PgsqlCreateResponseReturnObjData `json:"data"`
}
type PgsqlDeleteSecurityGroupApi ¶
type PgsqlDeleteSecurityGroupApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlDeleteSecurityGroupApi ¶
func NewPgsqlDeleteSecurityGroupApi(client *ctyunsdk.CtyunClient) *PgsqlDeleteSecurityGroupApi
func (*PgsqlDeleteSecurityGroupApi) Do ¶
func (this *PgsqlDeleteSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlDeleteSecurityGroupRequest, header *PgsqlDeleteSecurityGroupRequestHeader) (DeleteResp *PgsqlDeleteSecurityGroupResponse, err error)
type PgsqlDeleteSecurityGroupRequestHeader ¶
type PgsqlDeleteSecurityGroupRequestHeader struct {
ProjectID *string `json:"projectId,omitempty"`
}
type PgsqlDetailApi ¶
type PgsqlDetailApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlDetailApi ¶
func NewPgsqlDetailApi(client *ctyunsdk.CtyunClient) *PgsqlDetailApi
func (*PgsqlDetailApi) Do ¶
func (this *PgsqlDetailApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlDetailRequest, header *PgsqlDetailRequestHeader) (detailResp *PgsqlDetailResponse, err error)
type PgsqlDetailRequest ¶
type PgsqlDetailRequest struct {
ProdInstId string `json:"prodInstId"`
}
type PgsqlDetailResponse ¶
type PgsqlDetailResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码,参考下方状态码
Error string `json:"error"` // 错误码
Message string `json:"message"` // 描述信息
ReturnObj *PgsqlDetailResponseReturnObj `json:"returnObj"` // 返回对象,包含具体的返回数据
}
type PgsqlDetailResponseReturnObj ¶
type PgsqlDetailResponseReturnObj struct {
Alive int32 `json:"alive"` // 实例是否存活,0:存活,-1:异常
CreateTime string `json:"createTime"` // 创建时间,格式:yyyy:MM:dd HH:mm:ss
DiskRated int32 `json:"diskRated"` // 磁盘使用率
DiskSize int32 `json:"diskSize"` // 实例数据最大磁盘空间,单位G
DiskTotal string `json:"diskTotal"` // 磁盘总大小
DiskType string `json:"diskType"` // 磁盘类型,例如:SATA,SSD
DiskUsed string `json:"diskUsed"` // 已使用磁盘
ExpireTime string `json:"expireTime"` // 过期时间,格式:yyyy-MM-dd HH:mm:ss
MachineSpec string `json:"machineSpec"` // 实例机器规格
NetName string `json:"netName"` // VPC名称
OrderId int64 `json:"orderId"` // 订单id
OuterProdInstId string `json:"outerProdInstId"` // 对外的实例ID,对应PaaS平台
ProdDbEngine string `json:"prodDbEngine"` // 数据库实例引擎
ProdInstFlag string `json:"prodInstFlag"` // 实例标识
ProdInstId string `json:"prodInstId"` // 实例id
ProdInstName string `json:"prodInstName"` // 实例名称
ProdInstSetName string `json:"prodInstSetName"` // 实例集群名称
ProdOrderStatus int32 `json:"prodOrderStatus"` // 订单状态,0:正常,1:冻结,2:删除,3:操作中,4:失败,2005:扩容中
ProdRunningStatus int32 `json:"prodRunninStatus"` // 实例状态,0:运行中 1:重启中 2:备份中 3:恢复中 1001:已停止 1006:恢复失败 1007:VIP不可用 1008:GATEWAY不可用 1009:主库不可用 1010:备库不可用 1021:实例维护中 2000:开通中 2002:已退订 2005:扩容中 2011:冻结
ProdType int32 `json:"prodType"` // 实例部署方式 0:单机部署,1:主备部署
ReadPort int32 `json:"readPort"` // 读端口
SecurityGroup string `json:"securityGroup"` // 安全组名称
Subnet string `json:"subnet"` // 子网名称
UserId int64 `json:"userId"` // 用户ID
Vip string `json:"vip"` // 虚拟ip地址
Vip6 string `json:"vip6"` // vip6
VpcId string `json:"vpcId"` // VPCID
WritePort string `json:"writePort"` // 写端口
ParameterGroupUsed string `json:"parameterGroupUsed"` // 参数配置所使用的名称,对应PaaS平台
SpuCode string `json:"spuCode"` // 规格id
ToolType int32 `json:"toolType"` // 备份工具类型,1:pg_baseback,2:pgbackrest,3:s3
SubnetId string `json:"subnetId"` // 子网id
SecurityGroupId string `json:"securityGroupId"` // 安全组id
HostSeries string `json:"hostSeries"` // 性能类型
BackupDiskType string `json:"backupDiskType"` // 备份空间类型
BackupDiskSize string `json:"backupDiskSize"` // 备份空间大小,当为对象存储时,不返回值
BackupUsageDiskSize string `json:"backupUsageDiskSize"` // 备份已使用空间
BackupFreeSpace string `json:"backupFreeSpace"` // 备份免费空间
BillMode int32 `json:"billMode"` // 计费模式,1包周期,2按需
}
type PgsqlGetNodeListApi ¶
type PgsqlGetNodeListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
PgsqlGetNodeListApi 查询Pgsql实例节点列表 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=65&api=8917&data=72&isNormal=1&vid=67
func NewPgsqlGetNodeListApi ¶
func NewPgsqlGetNodeListApi(client *ctyunsdk.CtyunClient) *PgsqlGetNodeListApi
func (*PgsqlGetNodeListApi) Do ¶
func (this *PgsqlGetNodeListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlGetNodeListRequest, header *PgsqlGetNodeListHeaders) (*PgsqlGetNodeListResponse, error)
type PgsqlGetNodeListHeaders ¶
type PgsqlGetNodeListRequest ¶
type PgsqlGetNodeListRequest struct {
ProdInstId string `json:"prodInstId"` //实例id
}
type PgsqlGetNodeListResponse ¶
type PgsqlGetNodeListResponse struct {
StatusCode int32 `json:"statusCode"` // 返回码
Message *string `json:"message,omitempty"` // 返回消息
ReturnObj []PgsqlGetNodeListResponseReturnObj `json:"returnObj"` // 分页信息
Error *string `json:"error,omitempty"` // 错误码(失败时才返回)
}
type PgsqlGetNodeListResponseReturnObj ¶
type PgsqlGetNodeListResponseReturnObj struct {
ProdInstId string `json:"prodInstId"`
NodeId int64 `json:"nodeId"`
Host string `json:"host"`
Port int32 `json:"port"`
Primary int32 `json:"primary"` // 是否为主节点,1:是,0:不是
ExpireTime string `json:"expireTime"` //过期时间,格式为:yyyy:MM:dd HH:mm:ss
ProdInstFlag string `json:"prodInstFlag"` //数据库类型
AzId string `json:"azId"` //可用区id
AzName string `json:"azName"` //可用区名称
}
type PgsqlListApi ¶
type PgsqlListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlListApi ¶
func NewPgsqlListApi(client *ctyunsdk.CtyunClient) *PgsqlListApi
func (*PgsqlListApi) Do ¶
func (this *PgsqlListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlListRequest, header *PgsqlListRequestHeader) (listResponse *PgsqlListResponse, err error)
type PgsqlListRequest ¶
type PgsqlListRequest struct {
PageNum int32 `json:"pageNum"` // 当前页
PageSize int32 `json:"pageSize"` // 页大小,范围1-500
ProdInstName *string `json:"prodInstName"` // 实例名称,支持模糊匹配
LabelName *string `json:"labelName"` // 标签名称(一级标签)
LabelValue *string `json:"labelValue"` // 标签值(二级标签)
ProdInstId *string `json:"prodInstId"` // 实例id
InstanceType *string `json:"instanceType"` // 实例类型,primary:主实例,readonly:只读实例,不传则查询全部实例
}
type PgsqlListRequestHeader ¶
type PgsqlListResponse ¶
type PgsqlListResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码,参考下方状态码
Error string `json:"error"` // 错误码
Message *string `json:"message"` // 描述信息
ReturnObj *PgsqlListResponseReturnObj `json:"returnObj"` // 返回对象,包含具体的返回数据
}
type PgsqlListResponsePageInfo ¶
type PgsqlListResponsePageInfo struct {
CreateTime string `json:"createTime"` // 创建时间
ProdDbEngine string `json:"prodDbEngine"` // 数据库实例引擎
ProdInstId string `json:"prodInstId"` // 实例id
ProdInstName string `json:"prodInstName"` // 实例名称
ProdRunningStatus int32 `json:"prodRunningStatus"` // 实例当前的运行状态0:运行中 1:重启中 2:备份中 3:恢复中 1001:已停止 1006:恢复失败 1007:VIP不可用 1008:GATEWAY不可用 1009:主库不可用 1010:备库不可用 1021:实例维护中 2000:开通中 2002:已退订 2005:扩容中 2011:冻结
Alive int32 `json:"alive"` // 实例是否存活, 0:存活,-1:异常
ProdOrderStatus int32 `json:"prodOrderStatus"` // 订单状态,0:正常,1:冻结,2:删除,3:操作中,4:失败, 2005:扩容中
ProdType int32 `json:"prodType"` // 实例部署方式,0:单机部署,1:主备部署
ReadPort int32 `json:"readPort"` // 读端口
Vip string `json:"vip"` // 虚拟ip地址
WritePort int32 `json:"writePort"` // 写端口
ReadonlyInstnaceIds []string `json:"readonlyInstnaceIds"` // 只读实例id列表
InstanceType string `json:"instanceType"` // 实例类型,primary:主实例,readonly:只读实例
ToolType int32 `json:"toolType"` // 备份工具类型,1:pg_baseback,2:pgbackrest,3:s3
}
type PgsqlListResponseReturnObj ¶
type PgsqlListResponseReturnObj struct {
PageNum int32 `json:"pageNum"` // 当前页
PageSize int32 `json:"pageSize"` // 页大小
Total int64 `json:"total"` // 总记录数
PageTotal int32 `json:"pageTotal"` // 总页数
List []PgsqlListResponsePageInfo `json:"list"` // 实例列表
}
type PgsqlRefundApi ¶
type PgsqlRefundApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlRefundApi ¶
func NewPgsqlRefundApi(client *ctyunsdk.CtyunClient) *PgsqlRefundApi
func (*PgsqlRefundApi) Do ¶
func (this *PgsqlRefundApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlRefundRequest, header *PgsqlRefundRequestHeader) (refundResponse *PgsqlRefundResponse, err error)
type PgsqlRefundRequest ¶
type PgsqlRefundRequest struct {
InstId string `json:"instId"` //数据库实例ID
}
type PgsqlRefundRequestHeader ¶
type PgsqlRefundRequestHeader struct {
ProjectID *string `json:"projectId,omitempty"` //项目id
}
type PgsqlRefundResponse ¶
type PgsqlRefundResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码,参考下方状态码
Error string `json:"error"` // 错误码
Message string `json:"message"` // 描述信息
ReturnObj *PgsqlRefundResponseReturnObj `json:"returnObj"` // 返回对象,包含具体的返回数据
}
type PgsqlRestartApi ¶
type PgsqlRestartApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlRestartApi ¶
func NewPgsqlRestartApi(client *ctyunsdk.CtyunClient) *PgsqlRestartApi
func (*PgsqlRestartApi) Do ¶
func (this *PgsqlRestartApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlRestartRequest, header *PgsqlRestartRequestHeader) (PgsqlRestartResp *PgsqlRestartResponse, err error)
type PgsqlRestartRequest ¶
type PgsqlRestartRequest struct {
ProdInstId string `json:"prodInstId"`
}
type PgsqlRestartResponse ¶
type PgsqlSecurityGroupListApi ¶
type PgsqlSecurityGroupListApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlSecurityGroupListApi ¶
func NewPgsqlSecurityGroupListApi(client *ctyunsdk.CtyunClient) *PgsqlSecurityGroupListApi
func (*PgsqlSecurityGroupListApi) Do ¶
func (this *PgsqlSecurityGroupListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlSecurityGroupListRequest, header *PgsqlSecurityGroupListRequestHeader) (updateResp *PgsqlSecurityGroupListResponse, err error)
type PgsqlSecurityGroupListRequestHeader ¶
type PgsqlSecurityGroupListRequestHeader struct {
ProjectID *string `json:"projectId,omitempty"`
}
type PgsqlSecurityGroupListResponse ¶
type PgsqlSecurityGroupListResponse struct {
StatusCode int32 `json:"statusCode"`
Message *string `json:"message"`
Error *string `json:"error"`
ReturnObj *PgsqlSecurityGroupListReturnObj `json:"returnObj"`
}
type PgsqlSecurityGroupListReturnObj ¶
type PgsqlSecurityGroupListReturnObj struct {
TotalCount int32 `json:"totalCount"`
Data []PgsqlSecurityGroupListReturnObjData `json:"data"`
CustomerID string `json:"customerId"`
Cidr string `json:"cidr"`
TalkOrder bool `json:"talkOrder"`
}
type PgsqlSecurityGroupListReturnObjData ¶
type PgsqlSecurityGroupListReturnObjData struct {
SecurityGroupName string `json:"securityGroupName"` // 安全组名称
ID string `json:"id"` // 安全组id
VmNum string `json:"vmNum"` // 相关云主机
Origin string `json:"origin"` // 企业项目
VpcName string `json:"vpcName"` // vpc名称
CreationTime string `json:"creationTime"` // 创建时间
RegionID string `json:"regionId"` // 资源池id
Description string `json:"description"` // 安全组描述信息
VpcID string `json:"vpcId"` // 虚拟私有云网ID
SecurityGroupRules []SecurityGroupRule `json:"securityGroupRules"` // 安全组规则信息
}
type PgsqlSpecsApi ¶
type PgsqlSpecsApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlSpecsApi ¶
func NewPgsqlSpecsApi(client *ctyunsdk.CtyunClient) *PgsqlSpecsApi
func (*PgsqlSpecsApi) Do ¶
func (this *PgsqlSpecsApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlSpecsRequest, header *PgsqlSpecsRequestHeader) (specsResponse *PgsqlSpecsResponse, err error)
type PgsqlSpecsHostConfig ¶
type PgsqlSpecsHostConfig struct {
HostInsts PgsqlSpecsHostInst `json:"hostInsts"`
}
type PgsqlSpecsHostInst ¶
type PgsqlSpecsInstSpec ¶
type PgsqlSpecsInstSpec struct {
SpecId string `json:"specId"` // 废弃
ProdPerformanceSpec string `json:"prodPerformanceSpec"` // 规格名称
AzList []string `json:"azList"` // 该规格支持的AZ列表
SpecName string `json:"specName"` // 主机世代完整名称
CpuType string `json:"cpuType"` // CPU类型
Generation string `json:"generation"` // 主机世代缩写
MinRate string `json:"minRate"` // 带宽下限
MaxRate string `json:"maxRate"` // 带宽上限
}
type PgsqlSpecsRequest ¶
type PgsqlSpecsRequestHeader ¶
type PgsqlSpecsRequestHeader struct {
ProjectID string `json:"projectId"`
}
type PgsqlSpecsResponse ¶
type PgsqlSpecsResponse struct {
StatusCode int32 `json:"statusCode"`
Message string `json:"message"`
Error string `json:"error"`
ReturnObj PgsqlSpecsReturnObj `json:"returnObj"`
}
type PgsqlSpecsReturnObj ¶
type PgsqlSpecsReturnObj struct {
ProdId int64 `json:"prodId"` // 产品id
ProdCode string `json:"prodCode"` // 产品编码
ProdSpecName string `json:"prodSpecName"` // 产品名称
ProdSpecDesc string `json:"prodSpecDesc"` // 产品描述
InstanceDesc string `json:"instanceDesc"` // 实例描述
ProdVersion string `json:"prodVersion"` // 产品版本
HostSpec string `json:"hostSpec"` // 主机规格
LvsSpec string `json:"lvsSpec"` // lvs规格
InstSpecInfoList []PgsqlSpecsInstSpec `json:"instSpecInfoList"` // AZ支持的产品规格信息,以及规格代S6/S7
ProdHostConfig PgsqlSpecsHostConfig `json:"prodHostConfig"` // 主机配置
}
type PgsqlStartApi ¶
type PgsqlStartApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlStartApi ¶
func NewPgsqlStartApi(client *ctyunsdk.CtyunClient) *PgsqlStartApi
func (*PgsqlStartApi) Do ¶
func (this *PgsqlStartApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlStartRequest, header *PgsqlStartRequestHeader) (PgsqlStartResp *PgsqlStartResponse, err error)
type PgsqlStartRequest ¶
type PgsqlStartRequest struct {
ProdInstId string `json:"prodInstId"`
}
type PgsqlStartRequestHeader ¶
type PgsqlStartResponse ¶
type PgsqlStopApi ¶
type PgsqlStopApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlStopApi ¶
func NewPgsqlStopApi(client *ctyunsdk.CtyunClient) *PgsqlStopApi
func (*PgsqlStopApi) Do ¶
func (this *PgsqlStopApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlStopRequest, header *PgsqlStopRequestHeader) (PgsqlStopResp *PgsqlStopResponse, err error)
type PgsqlStopRequest ¶
type PgsqlStopRequest struct {
ProdInstId string `json:"prodInstId"`
}
type PgsqlStopRequestHeader ¶
type PgsqlStopResponse ¶
type PgsqlUnBindEipApi ¶
type PgsqlUnBindEipApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlUnBindEipApi ¶
func NewPgsqlUnBindEipApi(client *ctyunsdk.CtyunClient) *PgsqlUnBindEipApi
func (*PgsqlUnBindEipApi) Do ¶
func (this *PgsqlUnBindEipApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlUnBindEipRequest, header *PgsqlUnBindEipRequestHeader) (createResponse *PgsqlUnBindEipResponse, err error)
type PgsqlUnBindEipRequest ¶
type PgsqlUnBindEipRequestHeader ¶
type PgsqlUnBindEipRequestHeader struct {
ProjectId *string `json:"projectId,omitempty"`
}
type PgsqlUnBindEipResponse ¶
type PgsqlUpdateInstanceNameApi ¶
type PgsqlUpdateInstanceNameApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlUpdateInstanceNameApi ¶
func NewPgsqlUpdateInstanceNameApi(client *ctyunsdk.CtyunClient) *PgsqlUpdateInstanceNameApi
func (*PgsqlUpdateInstanceNameApi) Do ¶
func (this *PgsqlUpdateInstanceNameApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlUpdateInstanceNameRequest, header *PgsqlUpdateInstanceNameRequestHeader) (updatedNameResp *PgsqlUpdateInstanceNameResponse, err error)
type PgsqlUpdateSecurityGroupApi ¶
type PgsqlUpdateSecurityGroupApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlUpdateSecurityGroupApi ¶
func NewPgsqlUpdateSecurityGroupApi(client *ctyunsdk.CtyunClient) *PgsqlUpdateSecurityGroupApi
func (*PgsqlUpdateSecurityGroupApi) Do ¶
func (this *PgsqlUpdateSecurityGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlUpdateSecurityGroupRequest, header *PgsqlUpdateSecurityGroupRequestHeader) (updateResp *PgsqlUpdateSecurityGroupResponse, err error)
type PgsqlUpdateSecurityGroupRequestHeader ¶
type PgsqlUpdateSecurityGroupRequestHeader struct {
ProjectID *string `json:"projectId,omitempty"`
}
type PgsqlUpgradeApi ¶
type PgsqlUpgradeApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewPgsqlUpgradeApi ¶
func NewPgsqlUpgradeApi(client *ctyunsdk.CtyunClient) *PgsqlUpgradeApi
func (*PgsqlUpgradeApi) Do ¶
func (this *PgsqlUpgradeApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PgsqlUpgradeRequest, header *PgsqlUpgradeRequestHeader) (upgrade *PgsqlUpgradeResponse, err error)
type PgsqlUpgradeRequest ¶
type PgsqlUpgradeRequest struct {
InstId string `json:"instId"` // 实例id,必填
NodeType *string `json:"nodeType,omitempty"` // 节点类型,optional, master=主节点, backup=备份节点
ProdId *int64 `json:"prodId,omitempty"` // 产品ID(升级目标的prodId),optional
DiskVolume *int32 `json:"diskVolume,omitempty"` // 升级到的磁盘容量,单位G,范围为[100,32768],optional
ProdPerformanceSpec *string `json:"prodPerformanceSpec,omitempty"` // 产品规格名,类似"4C8G"这种,optional
AzList []PgsqlUpgradeRequestAzList `json:"azList,omitempty"` // 可用区节点相关信息,optional
}
type PgsqlUpgradeRequestHeader ¶
type PgsqlUpgradeRequestHeader struct {
ProjectID *string `json:"projectId,omitempty"` //项目id
}
type PgsqlUpgradeResponse ¶
type PgsqlUpgradeResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码
Error string `json:"error"` // 错误码,失败时返回,成功时为空
Message string `json:"message"` // 描述信息
ReturnObj *PgsqlUpgradeResponseReturnObj `json:"returnObj"` // 返回对象,类型为 DataObject
}
type PgsqlUpgradeResponseReturnObj ¶
type PgsqlUpgradeResponseReturnObj struct {
NewOrderId string `json:"newOrderId"`
}
type SecurityGroupRule ¶
type SecurityGroupRule struct {
Direction string `json:"direction"` // 出方向-egress、入方向-ingress
Priority int32 `json:"priority"` // 优先级:0~100
EtherType string `json:"etherType"` // IP类型:IPv4、IPv6
Protocol string `json:"protocol"` // 协议: ANY、TCP、UDP、ICMP(v4)
Range string `json:"range"` // 协议: ANY、TCP、UDP、ICMP(v4)
DestCidrIp string `json:"destCidrIp"` // 远端地址:0.0.0.0/0
Description string `json:"description"` // 安全组规则描述信息
ID string `json:"id"` // 唯一标识ID
SecurityGroupID string `json:"securityGroupId"` // 安全组ID
Origin string `json:"origin"` // 企业项目
CreateTime string `json:"createTime"` // 创建时间,UTC时间
}
type TeledbDestroyApi ¶
type TeledbDestroyApi struct {
ctyunsdk.CtyunRequestBuilder
// contains filtered or unexported fields
}
func NewTeledbDestroyApi ¶
func NewTeledbDestroyApi(client *ctyunsdk.CtyunClient) *TeledbDestroyApi
func (*TeledbDestroyApi) Do ¶
func (this *TeledbDestroyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *TeledbDestroyRequest, header *TeledbDestroyRequestHeader) (destroyResp *TeledbDestroyResponse, err error)
type TeledbDestroyRequest ¶
type TeledbDestroyRequest struct {
InstId string `json:"instId"` // 实例ID,必填
}
type TeledbDestroyRequestHeader ¶
type TeledbDestroyRequestHeader struct {
ProjectID string `json:"projectID"`
}
type TeledbDestroyResponse ¶
type TeledbDestroyResponse struct {
StatusCode int32 `json:"statusCode"` // 接口状态码
Error *string `json:"error,omitempty"` // 错误码,失败时返回,成功时为空
Message string `json:"message"` // 描述信息
ReturnObj *TeledbDestroyResponseReturnObj `json:"returnObj"` // 返回对象,类型为 DataObject
}
type TeledbDestroyResponseReturnObj ¶
type TeledbDestroyResponseReturnObj struct {
Data *TeledbDestroyResponseReturnObjData `json:"data"`
}
Source Files
¶
- apis.go
- const.go
- pgsql_bind_eip.go
- pgsql_create.go
- pgsql_delete_security_group.go
- pgsql_detail.go
- pgsql_list.go
- pgsql_node_list.go
- pgsql_refund.go
- pgsql_restart.go
- pgsql_security_group_list.go
- pgsql_specs.go
- pgsql_start.go
- pgsql_stop.go
- pgsql_unbind_eip.go
- pgsql_update_name.go
- pgsql_update_security_group.go
- psql_upgrade.go
- teledb_bound_eip_list.go
- teledb_destroy.go
Click to show internal directories.
Click to hide internal directories.