Documentation ¶
Index ¶
- Constants
- type Account
- type AddInstancesRequest
- type AddInstancesResponse
- type Addr
- type BackupFileInfo
- type BillingResourceInfo
- type Client
- func (c *Client) AddInstances(request *AddInstancesRequest) (response *AddInstancesResponse, err error)
- func (c *Client) AddInstancesWithContext(ctx context.Context, request *AddInstancesRequest) (response *AddInstancesResponse, err error)
- func (c *Client) CreateClusters(request *CreateClustersRequest) (response *CreateClustersResponse, err error)
- func (c *Client) CreateClustersWithContext(ctx context.Context, request *CreateClustersRequest) (response *CreateClustersResponse, err error)
- func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
- func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
- func (c *Client) DescribeBackupConfig(request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
- func (c *Client) DescribeBackupConfigWithContext(ctx context.Context, request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
- func (c *Client) DescribeBackupList(request *DescribeBackupListRequest) (response *DescribeBackupListResponse, err error)
- func (c *Client) DescribeBackupListWithContext(ctx context.Context, request *DescribeBackupListRequest) (response *DescribeBackupListResponse, err error)
- func (c *Client) DescribeClusterDetail(request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error)
- func (c *Client) DescribeClusterDetailWithContext(ctx context.Context, request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error)
- func (c *Client) DescribeClusterInstanceGrps(request *DescribeClusterInstanceGrpsRequest) (response *DescribeClusterInstanceGrpsResponse, err error)
- func (c *Client) DescribeClusterInstanceGrpsWithContext(ctx context.Context, request *DescribeClusterInstanceGrpsRequest) (response *DescribeClusterInstanceGrpsResponse, err error)
- func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
- func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
- func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeInstanceDetail(request *DescribeInstanceDetailRequest) (response *DescribeInstanceDetailResponse, err error)
- func (c *Client) DescribeInstanceDetailWithContext(ctx context.Context, request *DescribeInstanceDetailRequest) (response *DescribeInstanceDetailResponse, err error)
- func (c *Client) DescribeInstanceSpecs(request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error)
- func (c *Client) DescribeInstanceSpecsWithContext(ctx context.Context, request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeMaintainPeriod(request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error)
- func (c *Client) DescribeMaintainPeriodWithContext(ctx context.Context, request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error)
- func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeResourcesByDealName(request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)
- func (c *Client) DescribeResourcesByDealNameWithContext(ctx context.Context, request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)
- func (c *Client) DescribeRollbackTimeRange(request *DescribeRollbackTimeRangeRequest) (response *DescribeRollbackTimeRangeResponse, err error)
- func (c *Client) DescribeRollbackTimeRangeWithContext(ctx context.Context, request *DescribeRollbackTimeRangeRequest) (response *DescribeRollbackTimeRangeResponse, err error)
- func (c *Client) DescribeRollbackTimeValidity(request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error)
- func (c *Client) DescribeRollbackTimeValidityWithContext(ctx context.Context, request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error)
- func (c *Client) IsolateCluster(request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)
- func (c *Client) IsolateClusterWithContext(ctx context.Context, request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)
- func (c *Client) IsolateInstance(request *IsolateInstanceRequest) (response *IsolateInstanceResponse, err error)
- func (c *Client) IsolateInstanceWithContext(ctx context.Context, request *IsolateInstanceRequest) (response *IsolateInstanceResponse, err error)
- func (c *Client) ModifyBackupConfig(request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
- func (c *Client) ModifyBackupConfigWithContext(ctx context.Context, request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
- func (c *Client) ModifyClusterParam(request *ModifyClusterParamRequest) (response *ModifyClusterParamResponse, err error)
- func (c *Client) ModifyClusterParamWithContext(ctx context.Context, request *ModifyClusterParamRequest) (response *ModifyClusterParamResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyMaintainPeriodConfig(request *ModifyMaintainPeriodConfigRequest) (response *ModifyMaintainPeriodConfigResponse, err error)
- func (c *Client) ModifyMaintainPeriodConfigWithContext(ctx context.Context, request *ModifyMaintainPeriodConfigRequest) (response *ModifyMaintainPeriodConfigResponse, err error)
- func (c *Client) OfflineCluster(request *OfflineClusterRequest) (response *OfflineClusterResponse, err error)
- func (c *Client) OfflineClusterWithContext(ctx context.Context, request *OfflineClusterRequest) (response *OfflineClusterResponse, err error)
- func (c *Client) OfflineInstance(request *OfflineInstanceRequest) (response *OfflineInstanceResponse, err error)
- func (c *Client) OfflineInstanceWithContext(ctx context.Context, request *OfflineInstanceRequest) (response *OfflineInstanceResponse, err error)
- func (c *Client) SetRenewFlag(request *SetRenewFlagRequest) (response *SetRenewFlagResponse, err error)
- func (c *Client) SetRenewFlagWithContext(ctx context.Context, request *SetRenewFlagRequest) (response *SetRenewFlagResponse, err error)
- func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
- func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
- type ClusterInstanceDetail
- type CreateClustersRequest
- type CreateClustersResponse
- type CynosdbCluster
- type CynosdbClusterDetail
- type CynosdbInstance
- type CynosdbInstanceDetail
- type CynosdbInstanceGrp
- type DescribeAccountsRequest
- type DescribeAccountsResponse
- type DescribeBackupConfigRequest
- type DescribeBackupConfigResponse
- type DescribeBackupListRequest
- type DescribeBackupListResponse
- type DescribeClusterDetailRequest
- type DescribeClusterDetailResponse
- type DescribeClusterInstanceGrpsRequest
- type DescribeClusterInstanceGrpsResponse
- type DescribeClustersRequest
- type DescribeClustersResponse
- type DescribeDBSecurityGroupsRequest
- type DescribeDBSecurityGroupsResponse
- type DescribeInstanceDetailRequest
- type DescribeInstanceDetailResponse
- type DescribeInstanceSpecsRequest
- type DescribeInstanceSpecsResponse
- type DescribeInstancesRequest
- type DescribeInstancesResponse
- type DescribeMaintainPeriodRequest
- type DescribeMaintainPeriodResponse
- type DescribeProjectSecurityGroupsRequest
- type DescribeProjectSecurityGroupsResponse
- type DescribeResourcesByDealNameRequest
- type DescribeResourcesByDealNameResponse
- type DescribeRollbackTimeRangeRequest
- type DescribeRollbackTimeRangeResponse
- type DescribeRollbackTimeValidityRequest
- type DescribeRollbackTimeValidityResponse
- type InstanceSpec
- type IsolateClusterRequest
- type IsolateClusterResponse
- type IsolateInstanceRequest
- type IsolateInstanceResponse
- type ModifyBackupConfigRequest
- type ModifyBackupConfigResponse
- type ModifyClusterParamRequest
- type ModifyClusterParamResponse
- type ModifyDBInstanceSecurityGroupsRequest
- type ModifyDBInstanceSecurityGroupsResponse
- type ModifyMaintainPeriodConfigRequest
- type ModifyMaintainPeriodConfigResponse
- type NetAddr
- type ObjectTask
- type OfflineClusterRequest
- type OfflineClusterResponse
- type OfflineInstanceRequest
- type OfflineInstanceResponse
- type ParamItem
- type PolicyRule
- type QueryFilter
- type SecurityGroup
- type SetRenewFlagRequest
- type SetRenewFlagResponse
- type Tag
- type UpgradeInstanceRequest
- type UpgradeInstanceResponse
Constants ¶
const ( // Failed to get permissions. Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError" // Authentication failed. Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" // Failed to create the order and make a payment. FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder" // Failed to access the database. Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" // Failed to create a task ({{1}}). Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" // Failed to query the backup policy. Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError" // Insufficient account balance. FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" // Operation failed ({{1}}). Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" // Failed to create the order and make a payment. Please try again later. If the problem persists, please contact customer service. FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" // Internal error. INTERNALERROR = "InternalError" // Failed to query the database. INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" // Failed to get the security group information. INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" // Failed to get the subnet. INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" // Failed to get the VPC. INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" // INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" // Failed to query instances by security group. INTERNALERROR_LISTINSTANCEFAILED = "InternalError.ListInstanceFailed" // Unsupported operation. INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport" // Failed to query the database. INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" // Internal system error. INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" // Unknown internal error. INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // The current instance cannot be isolated. INVALIDPARAMETER_ISOLATENOTALLOWED = "InvalidParameter.IsolateNotAllowed" // No cluster found. INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" // Unsupported instance type. INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" // No order ID found. INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound" // The instance name contains invalid characters. INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName" // Invalid sort by field. INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy" // The password does not meet the requirement. INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword" // The instance does not exist. INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" // Invalid instance version. INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion" // Invalid parameter value. INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" // Invalid region ({{1}}). INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError" // Invalid instance specification. INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec" // Invalid availability zone ({{1}}). INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError" // The parameters (`{{1}}` and `{{2}}`) cannot be set at the same time. INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError" // Incorrect parameter. INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" // The selected region and AZ are unavailable. INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" // No related storage pool found. INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" // The selected subnet could not be found. INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" // The selected VPC could not be found. INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound" // The number of instances exceeds the limit. LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit" // This operation is not allowed for the current cluster. Reason: {{1}}. OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" // For the cluster ({{1}}) in this status, the operation is not allowed. OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError" // Insufficient account balance. OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError" // For the serverless cluster in this status ({{1}}), the operation is not allowed. OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied" // For the serverless instance in this status ({{1}}), the operation is not allowed. OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied" // You need to verify your identity to make a purchase. OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError" // The cluster ({{1}}) does not exist. RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" // The instance ({{1}}) does not exist. RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" // Failed to lock the instance, so the operation cannot be performed temporarily. RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" // The instance is exceptional, so the operation cannot be performed temporarily. RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" // Users who haven't completed identity verification cannot make purchases. UNAUTHORIZEDOPERATION_NOTREALNAMEACCOUNT = "UnauthorizedOperation.NotRealNameAccount" // CAM authentication failed. UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" )
const APIVersion = "2019-01-07"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // Database account name AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // Database account description Description *string `json:"Description,omitempty" name:"Description"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Host Host *string `json:"Host,omitempty" name:"Host"` }
type AddInstancesRequest ¶
type AddInstancesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Number of CPU cores Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Memory Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Number of added read-only instances ReadOnlyCount *int64 `json:"ReadOnlyCount,omitempty" name:"ReadOnlyCount"` // Instance group ID, which is used when you add an instance in an existing RO group. If this parameter is left empty, an RO group will be created. InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Port used when adding RO group Port *int64 `json:"Port,omitempty" name:"Port"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` // Order source OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"` // Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order) DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"` }
func NewAddInstancesRequest ¶
func NewAddInstancesRequest() (request *AddInstancesRequest)
func (*AddInstancesRequest) FromJsonString ¶
func (r *AddInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddInstancesRequest) ToJsonString ¶
func (r *AddInstancesRequest) ToJsonString() string
type AddInstancesResponse ¶
type AddInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Freezing transaction. One freezing transaction ID is generated each time an instance is added. // Note: this field may return null, indicating that no valid values can be obtained. TranId *string `json:"TranId,omitempty" name:"TranId"` // Pay-as-You-Go order ID. // Note: this field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // List of IDs of delivered resources // Note: this field may return null, indicating that no valid values can be obtained. ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Big order ID. // Note: this field may return null, indicating that no valid values can be obtained. BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddInstancesResponse ¶
func NewAddInstancesResponse() (response *AddInstancesResponse)
func (*AddInstancesResponse) FromJsonString ¶
func (r *AddInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddInstancesResponse) ToJsonString ¶
func (r *AddInstancesResponse) ToJsonString() string
type BackupFileInfo ¶
type BackupFileInfo struct { // Snapshot file ID used for rollback SnapshotId *uint64 `json:"SnapshotId,omitempty" name:"SnapshotId"` // Snapshot file name FileName *string `json:"FileName,omitempty" name:"FileName"` // Snapshot file size FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"` // Snapshot backup start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Snapshot backup end time FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` // Backup type. snapshot: snapshot backup; timepoint: time point backup BackupType *string `json:"BackupType,omitempty" name:"BackupType"` // Back mode. auto: auto backup; manual: manual backup BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"` // Backup file status. success: backup succeeded; fail: backup failed; creating: creating backup file; deleting: deleting backup file BackupStatus *string `json:"BackupStatus,omitempty" name:"BackupStatus"` // Backup file time SnapshotTime *string `json:"SnapshotTime,omitempty" name:"SnapshotTime"` }
type BillingResourceInfo ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddInstances ¶
func (c *Client) AddInstances(request *AddInstancesRequest) (response *AddInstancesResponse, err error)
AddInstances This API is used to add an instance in a cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword" INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound" LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError" OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError" OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) AddInstancesWithContext ¶
func (c *Client) AddInstancesWithContext(ctx context.Context, request *AddInstancesRequest) (response *AddInstancesResponse, err error)
AddInstances This API is used to add an instance in a cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword" INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound" LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError" OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError" OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateClusters ¶
func (c *Client) CreateClusters(request *CreateClustersRequest) (response *CreateClustersResponse, err error)
CreateClusters This API is used to create a cluster.
error code that may be returned:
FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword" INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec" INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound" LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit" OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError" OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError" UNAUTHORIZEDOPERATION_NOTREALNAMEACCOUNT = "UnauthorizedOperation.NotRealNameAccount" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateClustersWithContext ¶
func (c *Client) CreateClustersWithContext(ctx context.Context, request *CreateClustersRequest) (response *CreateClustersResponse, err error)
CreateClusters This API is used to create a cluster.
error code that may be returned:
FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword" INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec" INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound" LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit" OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError" OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError" UNAUTHORIZEDOPERATION_NOTREALNAMEACCOUNT = "UnauthorizedOperation.NotRealNameAccount" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccounts ¶
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to query database management accounts.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccountsWithContext ¶
func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to query database management accounts.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupConfig ¶
func (c *Client) DescribeBackupConfig(request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
DescribeBackupConfig This API is used to get the backup configuration information of the specified cluster, including the full backup time range and backup file retention period.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupConfigWithContext ¶
func (c *Client) DescribeBackupConfigWithContext(ctx context.Context, request *DescribeBackupConfigRequest) (response *DescribeBackupConfigResponse, err error)
DescribeBackupConfig This API is used to get the backup configuration information of the specified cluster, including the full backup time range and backup file retention period.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupList ¶
func (c *Client) DescribeBackupList(request *DescribeBackupListRequest) (response *DescribeBackupListResponse, err error)
DescribeBackupList This API is used to query the list of backup files.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupListWithContext ¶
func (c *Client) DescribeBackupListWithContext(ctx context.Context, request *DescribeBackupListRequest) (response *DescribeBackupListResponse, err error)
DescribeBackupList This API is used to query the list of backup files.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClusterDetail ¶
func (c *Client) DescribeClusterDetail(request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error)
DescribeClusterDetail This API is used to display cluster details.
error code that may be returned:
FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClusterDetailWithContext ¶
func (c *Client) DescribeClusterDetailWithContext(ctx context.Context, request *DescribeClusterDetailRequest) (response *DescribeClusterDetailResponse, err error)
DescribeClusterDetail This API is used to display cluster details.
error code that may be returned:
FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClusterInstanceGrps ¶
func (c *Client) DescribeClusterInstanceGrps(request *DescribeClusterInstanceGrpsRequest) (response *DescribeClusterInstanceGrpsResponse, err error)
DescribeClusterInstanceGrps This API is used to query instance groups.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClusterInstanceGrpsWithContext ¶
func (c *Client) DescribeClusterInstanceGrpsWithContext(ctx context.Context, request *DescribeClusterInstanceGrpsRequest) (response *DescribeClusterInstanceGrpsResponse, err error)
DescribeClusterInstanceGrps This API is used to query instance groups.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClusters ¶
func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
DescribeClusters This API is used to the list of clusters.
error code that may be returned:
FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeClustersWithContext ¶
func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
DescribeClusters This API is used to the list of clusters.
error code that may be returned:
FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBSecurityGroups ¶
func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API is used to query the security group information of an instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBSecurityGroupsWithContext ¶
func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API is used to query the security group information of an instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceDetail ¶
func (c *Client) DescribeInstanceDetail(request *DescribeInstanceDetailRequest) (response *DescribeInstanceDetailResponse, err error)
DescribeInstanceDetail This API is used to query instance details.
error code that may be returned:
FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceDetailWithContext ¶
func (c *Client) DescribeInstanceDetailWithContext(ctx context.Context, request *DescribeInstanceDetailRequest) (response *DescribeInstanceDetailResponse, err error)
DescribeInstanceDetail This API is used to query instance details.
error code that may be returned:
FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceSpecs ¶
func (c *Client) DescribeInstanceSpecs(request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error)
DescribeInstanceSpecs This API is used to query instance specifications.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceSpecsWithContext ¶
func (c *Client) DescribeInstanceSpecsWithContext(ctx context.Context, request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error)
DescribeInstanceSpecs This API is used to query instance specifications.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the list of instances.
error code that may be returned:
FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError" FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstancesWithContext ¶
func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the list of instances.
error code that may be returned:
FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError" FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMaintainPeriod ¶
func (c *Client) DescribeMaintainPeriod(request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error)
DescribeMaintainPeriod This API is used to query the instance maintenance window.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMaintainPeriodWithContext ¶
func (c *Client) DescribeMaintainPeriodWithContext(ctx context.Context, request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error)
DescribeMaintainPeriod This API is used to query the instance maintenance window.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeProjectSecurityGroups ¶
func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API is used to query the security group information of a project.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR = "InternalError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeProjectSecurityGroupsWithContext ¶
func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API is used to query the security group information of a project.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR = "InternalError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeResourcesByDealName ¶
func (c *Client) DescribeResourcesByDealName(request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)
DescribeResourcesByDealName This API is used to query the list of resources by billing order ID.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeResourcesByDealNameWithContext ¶
func (c *Client) DescribeResourcesByDealNameWithContext(ctx context.Context, request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)
DescribeResourcesByDealName This API is used to query the list of resources by billing order ID.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTimeRange ¶
func (c *Client) DescribeRollbackTimeRange(request *DescribeRollbackTimeRangeRequest) (response *DescribeRollbackTimeRangeResponse, err error)
DescribeRollbackTimeRange This API is used to query the valid rollback time range for the specified cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTimeRangeWithContext ¶
func (c *Client) DescribeRollbackTimeRangeWithContext(ctx context.Context, request *DescribeRollbackTimeRangeRequest) (response *DescribeRollbackTimeRangeResponse, err error)
DescribeRollbackTimeRange This API is used to query the valid rollback time range for the specified cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTimeValidity ¶
func (c *Client) DescribeRollbackTimeValidity(request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error)
DescribeRollbackTimeValidity This API is used to query whether rollback is possible based on the specified time and cluster.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTimeValidityWithContext ¶
func (c *Client) DescribeRollbackTimeValidityWithContext(ctx context.Context, request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error)
DescribeRollbackTimeValidity This API is used to query whether rollback is possible based on the specified time and cluster.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) IsolateCluster ¶
func (c *Client) IsolateCluster(request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)
IsolateCluster This API is used to isolate a cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) IsolateClusterWithContext ¶
func (c *Client) IsolateClusterWithContext(ctx context.Context, request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)
IsolateCluster This API is used to isolate a cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) IsolateInstance ¶
func (c *Client) IsolateInstance(request *IsolateInstanceRequest) (response *IsolateInstanceResponse, err error)
IsolateInstance This API is used to isolate an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INVALIDPARAMETER_ISOLATENOTALLOWED = "InvalidParameter.IsolateNotAllowed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) IsolateInstanceWithContext ¶
func (c *Client) IsolateInstanceWithContext(ctx context.Context, request *IsolateInstanceRequest) (response *IsolateInstanceResponse, err error)
IsolateInstance This API is used to isolate an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError" INVALIDPARAMETER_ISOLATENOTALLOWED = "InvalidParameter.IsolateNotAllowed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupConfig ¶
func (c *Client) ModifyBackupConfig(request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
ModifyBackupConfig This API is used to modify the backup configuration of the specified cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupConfigWithContext ¶
func (c *Client) ModifyBackupConfigWithContext(ctx context.Context, request *ModifyBackupConfigRequest) (response *ModifyBackupConfigResponse, err error)
ModifyBackupConfig This API is used to modify the backup configuration of the specified cluster.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyClusterParam ¶
func (c *Client) ModifyClusterParam(request *ModifyClusterParamRequest) (response *ModifyClusterParamResponse, err error)
ModifyClusterParam This API is used to modify the parameters of a cluster.
error code that may be returned:
FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyClusterParamWithContext ¶
func (c *Client) ModifyClusterParamWithContext(ctx context.Context, request *ModifyClusterParamRequest) (response *ModifyClusterParamResponse, err error)
ModifyClusterParam This API is used to modify the parameters of a cluster.
error code that may be returned:
FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceSecurityGroups ¶
func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API is used to modify the security groups bound to an instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_LISTINSTANCEFAILED = "InternalError.ListInstanceFailed" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceSecurityGroupsWithContext ¶
func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API is used to modify the security groups bound to an instance.
error code that may be returned:
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_LISTINSTANCEFAILED = "InternalError.ListInstanceFailed" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyMaintainPeriodConfig ¶
func (c *Client) ModifyMaintainPeriodConfig(request *ModifyMaintainPeriodConfigRequest) (response *ModifyMaintainPeriodConfigResponse, err error)
ModifyMaintainPeriodConfig This API is used to modify the maintenance time configuration.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyMaintainPeriodConfigWithContext ¶
func (c *Client) ModifyMaintainPeriodConfigWithContext(ctx context.Context, request *ModifyMaintainPeriodConfigRequest) (response *ModifyMaintainPeriodConfigResponse, err error)
ModifyMaintainPeriodConfig This API is used to modify the maintenance time configuration.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) OfflineCluster ¶
func (c *Client) OfflineCluster(request *OfflineClusterRequest) (response *OfflineClusterResponse, err error)
OfflineCluster This API is used to deactivate a cluster.
error code that may be returned:
FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) OfflineClusterWithContext ¶
func (c *Client) OfflineClusterWithContext(ctx context.Context, request *OfflineClusterRequest) (response *OfflineClusterResponse, err error)
OfflineCluster This API is used to deactivate a cluster.
error code that may be returned:
FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) OfflineInstance ¶
func (c *Client) OfflineInstance(request *OfflineInstanceRequest) (response *OfflineInstanceResponse, err error)
OfflineInstance This API is used to deactivate an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) OfflineInstanceWithContext ¶
func (c *Client) OfflineInstanceWithContext(ctx context.Context, request *OfflineInstanceRequest) (response *OfflineInstanceResponse, err error)
OfflineInstance This API is used to deactivate an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError" RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) SetRenewFlag ¶
func (c *Client) SetRenewFlag(request *SetRenewFlagRequest) (response *SetRenewFlagResponse, err error)
SetRenewFlag This API is used to set auto-renewal for an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) SetRenewFlagWithContext ¶
func (c *Client) SetRenewFlagWithContext(ctx context.Context, request *SetRenewFlagRequest) (response *SetRenewFlagResponse, err error)
SetRenewFlag This API is used to set auto-renewal for an instance.
error code that may be returned:
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) UpgradeInstance ¶
func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
UpgradeInstance This API is used to upgrade an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) UpgradeInstanceWithContext ¶
func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
UpgradeInstance This API is used to upgrade an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder" FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError" FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound" INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound" INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError" OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError" RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
type ClusterInstanceDetail ¶
type ClusterInstanceDetail struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Engine type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Instance status InstanceStatus *string `json:"InstanceStatus,omitempty" name:"InstanceStatus"` // Instance status description InstanceStatusDesc *string `json:"InstanceStatusDesc,omitempty" name:"InstanceStatusDesc"` // Number of CPU cores InstanceCpu *int64 `json:"InstanceCpu,omitempty" name:"InstanceCpu"` // Memory InstanceMemory *int64 `json:"InstanceMemory,omitempty" name:"InstanceMemory"` // Disk InstanceStorage *int64 `json:"InstanceStorage,omitempty" name:"InstanceStorage"` }
type CreateClustersRequest ¶
type CreateClustersRequest struct { *tchttp.BaseRequest // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` // Database version. Valid values: // <li> Valid values for `MYSQL`: 5.7 </li> DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Number of CPU cores of normal instance Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Memory of a non-serverless instance in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Account password (it must contain 8-64 characters in at least three of the following four types: uppercase letters, lowercase letters, digits, and symbols (~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/).) AdminPassword *string `json:"AdminPassword,omitempty" name:"AdminPassword"` // Port. Default value: 5432 Port *int64 `json:"Port,omitempty" name:"Port"` // Billing mode. 0: pay-as-you-go; 1: monthly subscription. Default value: 0 PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Number of purchased items. Currently, only 1 can be passed in. If this parameter is left empty, 1 will be used by default. Count *int64 `json:"Count,omitempty" name:"Count"` // Rollback type: // noneRollback: no rollback // snapRollback: rollback by snapshot // timeRollback: rollback by time point RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"` // `snapshotId` for snapshot rollback or `queryId` for time point rollback. 0 indicates to determine whether the time point is valid RollbackId *uint64 `json:"RollbackId,omitempty" name:"RollbackId"` // Pass in the source cluster ID during rollback to find the source `poolId` OriginalClusterId *string `json:"OriginalClusterId,omitempty" name:"OriginalClusterId"` // Specified time for time point rollback or snapshot time for snapshot rollback ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"` // Specified allowed time range for time point rollback ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"` // The maximum storage of a non-serverless instance in GB // If `DbType` is `MYSQL` and the storage billing mode is prepaid, the parameter value cannot exceed the maximum storage corresponding to the CPU and memory specifications. StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"` // Number of instances InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Purchase duration of monthly subscription plan TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // Purchase duration unit of monthly subscription plan TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // Whether auto-renewal is enabled for monthly subscription plan AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` // Number of instances (this parameter has been disused and is retained only for compatibility with existing instances) HaCount *int64 `json:"HaCount,omitempty" name:"HaCount"` // Order source OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"` // Array of tags to be bound to the created cluster ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Database type // Valid values when `DbType` is `MYSQL` (default value: NORMAL): // <li>NORMAL</li> // <li>SERVERLESS</li> DbMode *string `json:"DbMode,omitempty" name:"DbMode"` // This parameter is required if `DbMode` is `SERVERLESS` // Minimum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs` MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"` // This parameter is required if `DbMode` is `SERVERLESS`: // Maximum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs` MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"` // This parameter specifies whether the cluster will be automatically paused if `DbMode` is `SERVERLESS`. Valid values: // <li>yes</li> // <li>no</li> // Default value: yes AutoPause *string `json:"AutoPause,omitempty" name:"AutoPause"` // This parameter specifies the delay for automatic cluster pause in seconds if `DbMode` is `SERVERLESS`. Value range: [600,691200] // Default value: 600 AutoPauseDelay *int64 `json:"AutoPauseDelay,omitempty" name:"AutoPauseDelay"` // The billing mode of cluster storage. Valid values: `0` (postpaid), `1` (prepaid). Default value: `0`. // If `DbType` is `MYSQL` and the billing mode of cluster compute is pay-as-you-go (or the `DbMode` is `SERVERLESS`), the billing mode of cluster storage must be postpaid. // Clusters with storage billed in prepaid mode cannot be cloned or rolled back. StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"` // Array of security group IDs SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Array of alarm policy IDs AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitempty" name:"AlarmPolicyIds"` // Array of parameters ClusterParams []*ParamItem `json:"ClusterParams,omitempty" name:"ClusterParams"` // Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order) DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"` // Parameter template ID ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"` }
func NewCreateClustersRequest ¶
func NewCreateClustersRequest() (request *CreateClustersRequest)
func (*CreateClustersRequest) FromJsonString ¶
func (r *CreateClustersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClustersRequest) ToJsonString ¶
func (r *CreateClustersRequest) ToJsonString() string
type CreateClustersResponse ¶
type CreateClustersResponse struct { *tchttp.BaseResponse Response *struct { // Freezing transaction ID // Note: this field may return null, indicating that no valid values can be obtained. TranId *string `json:"TranId,omitempty" name:"TranId"` // Order ID // Note: this field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // List of resource IDs (This field has been deprecated. Please use `dealNames` in the `DescribeResourcesByDealName` API to get resource IDs.) // Note: this field may return `null`, indicating that no valid values can be obtained. ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // List of cluster IDs (This field has been deprecated. Please use `dealNames` in the `DescribeResourcesByDealName` API to get cluster IDs.) // Note: this field may return `null`, indicating that no valid values can be obtained. ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` // Big order ID. // Note: this field may return null, indicating that no valid values can be obtained. BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClustersResponse ¶
func NewCreateClustersResponse() (response *CreateClustersResponse)
func (*CreateClustersResponse) FromJsonString ¶
func (r *CreateClustersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClustersResponse) ToJsonString ¶
func (r *CreateClustersResponse) ToJsonString() string
type CynosdbCluster ¶
type CynosdbCluster struct { // Cluster status Status *string `json:"Status,omitempty" name:"Status"` // Update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Region Region *string `json:"Region,omitempty" name:"Region"` // Database version DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Number of instances InstanceNum *int64 `json:"InstanceNum,omitempty" name:"InstanceNum"` // User `uin` Uin *string `json:"Uin,omitempty" name:"Uin"` // Engine type DbType *string `json:"DbType,omitempty" name:"DbType"` // User `appid` AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Cluster status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Cluster creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Billing mode. 0: pay-as-you-go; 1: monthly subscription PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // End time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Cluster read-write VIP Vip *string `json:"Vip,omitempty" name:"Vip"` // Cluster read-write vport Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Project ID ProjectID *int64 `json:"ProjectID,omitempty" name:"ProjectID"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // TDSQL-C kernel version CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"` // Storage capacity StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"` // Renewal flag RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"` // Task in progress ProcessingTask *string `json:"ProcessingTask,omitempty" name:"ProcessingTask"` // Array of tasks in cluster Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"` // Array of tags bound to cluster ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Database type (`NORMAL` or `SERVERLESS`) DbMode *string `json:"DbMode,omitempty" name:"DbMode"` // Serverless cluster status when the database type is `SERVERLESS`. Valid values: // resume // pause ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"` // Prepaid cluster storage Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Cluster storage ID used in prepaid storage modification StorageId *string `json:"StorageId,omitempty" name:"StorageId"` // Billing mode of cluster storage. Valid values: `0` (postpaid), `1` (prepaid) StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"` // The minimum storage corresponding to the compute specifications of the cluster MinStorageSize *int64 `json:"MinStorageSize,omitempty" name:"MinStorageSize"` // The maximum storage corresponding to the compute specifications of the cluster MaxStorageSize *int64 `json:"MaxStorageSize,omitempty" name:"MaxStorageSize"` // Network information of the cluster NetAddrs []*NetAddr `json:"NetAddrs,omitempty" name:"NetAddrs"` }
type CynosdbClusterDetail ¶
type CynosdbClusterDetail struct { // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Region Region *string `json:"Region,omitempty" name:"Region"` // Status Status *string `json:"Status,omitempty" name:"Status"` // Status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // VPC name VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // Unique VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet name SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Character set Charset *string `json:"Charset,omitempty" name:"Charset"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Database type DbType *string `json:"DbType,omitempty" name:"DbType"` // Database version DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Used capacity UsedStorage *int64 `json:"UsedStorage,omitempty" name:"UsedStorage"` // vport for read/write separation RoAddr []*Addr `json:"RoAddr,omitempty" name:"RoAddr"` // Instance information InstanceSet []*ClusterInstanceDetail `json:"InstanceSet,omitempty" name:"InstanceSet"` // Billing mode PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // VIP Vip *string `json:"Vip,omitempty" name:"Vip"` // vport Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Project ID ProjectID *int64 `json:"ProjectID,omitempty" name:"ProjectID"` // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // Array of tags bound to instance ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Serverless cluster status when the database type is `SERVERLESS`. Valid values: // resume // resuming // pause // pausing ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"` }
type CynosdbInstance ¶
type CynosdbInstance struct { // User `Uin` Uin *string `json:"Uin,omitempty" name:"Uin"` // User `AppId` AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Region Region *string `json:"Region,omitempty" name:"Region"` // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance status Status *string `json:"Status,omitempty" name:"Status"` // Instance status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Database type DbType *string `json:"DbType,omitempty" name:"DbType"` // Database version DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Number of CPU cores Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Memory in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Current instance role InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` // Update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Private IP of instance Vip *string `json:"Vip,omitempty" name:"Vip"` // Private port of instance Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Billing mode PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Instance expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Termination deadline DestroyDeadlineText *string `json:"DestroyDeadlineText,omitempty" name:"DestroyDeadlineText"` // Isolation time IsolateTime *string `json:"IsolateTime,omitempty" name:"IsolateTime"` // Network type NetType *int64 `json:"NetType,omitempty" name:"NetType"` // Public domain name WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` // Public IP WanIP *string `json:"WanIP,omitempty" name:"WanIP"` // Public port WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"` // Public network status WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"` // Instance termination time DestroyTime *string `json:"DestroyTime,omitempty" name:"DestroyTime"` // TDSQL-C kernel version CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"` // Task in progress ProcessingTask *string `json:"ProcessingTask,omitempty" name:"ProcessingTask"` // Renewal flag RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"` // Minimum number of CPU cores for serverless instance MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"` // Maximum number of CPU cores for serverless instance MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"` // Serverless instance status. Valid values: // resume // pause ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"` // Prepaid storage ID // Note: this field may return `null`, indicating that no valid value can be obtained. StorageId *string `json:"StorageId,omitempty" name:"StorageId"` // Storage billing mode StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"` }
type CynosdbInstanceDetail ¶
type CynosdbInstanceDetail struct { // User `Uin` Uin *string `json:"Uin,omitempty" name:"Uin"` // User `AppId` AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Region Region *string `json:"Region,omitempty" name:"Region"` // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance status Status *string `json:"Status,omitempty" name:"Status"` // Instance status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Database type DbType *string `json:"DbType,omitempty" name:"DbType"` // Database version DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Number of CPU cores Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Memory in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Current instance role InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` // Update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Billing mode PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Instance expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Network type NetType *int64 `json:"NetType,omitempty" name:"NetType"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Private IP of instance Vip *string `json:"Vip,omitempty" name:"Vip"` // Private port of instance Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Public domain name of instance WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` // Character set Charset *string `json:"Charset,omitempty" name:"Charset"` // TDSQL-C kernel version CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"` // Renewal flag RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"` // The minimum number of CPU cores for a serverless instance MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"` // The maximum number of CPU cores for a serverless instance MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"` // Serverless instance status. Valid values: // resume // pause ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"` }
type CynosdbInstanceGrp ¶
type CynosdbInstanceGrp struct { // appId AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Deletion time DeletedTime *string `json:"DeletedTime,omitempty" name:"DeletedTime"` // Instance group ID InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"` // Status Status *string `json:"Status,omitempty" name:"Status"` // Instance group type. ha: HA group; ro: RO group Type *string `json:"Type,omitempty" name:"Type"` // Update time UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"` // Private IP Vip *string `json:"Vip,omitempty" name:"Vip"` // Private port Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Public domain name WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` // Public IP WanIP *string `json:"WanIP,omitempty" name:"WanIP"` // Public port WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"` // Public network status WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"` // Information of instances contained in instance group InstanceSet []*CynosdbInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` }
type DescribeAccountsRequest ¶
type DescribeAccountsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // List of accounts to be filtered AccountNames []*string `json:"AccountNames,omitempty" name:"AccountNames"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` }
func NewDescribeAccountsRequest ¶
func NewDescribeAccountsRequest() (request *DescribeAccountsRequest)
func (*DescribeAccountsRequest) FromJsonString ¶
func (r *DescribeAccountsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsRequest) ToJsonString ¶
func (r *DescribeAccountsRequest) ToJsonString() string
type DescribeAccountsResponse ¶
type DescribeAccountsResponse struct { *tchttp.BaseResponse Response *struct { // Database account list AccountSet []*Account `json:"AccountSet,omitempty" name:"AccountSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAccountsResponse ¶
func NewDescribeAccountsResponse() (response *DescribeAccountsResponse)
func (*DescribeAccountsResponse) FromJsonString ¶
func (r *DescribeAccountsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsResponse) ToJsonString ¶
func (r *DescribeAccountsResponse) ToJsonString() string
type DescribeBackupConfigRequest ¶
type DescribeBackupConfigRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeBackupConfigRequest ¶
func NewDescribeBackupConfigRequest() (request *DescribeBackupConfigRequest)
func (*DescribeBackupConfigRequest) FromJsonString ¶
func (r *DescribeBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupConfigRequest) ToJsonString ¶
func (r *DescribeBackupConfigRequest) ToJsonString() string
type DescribeBackupConfigResponse ¶
type DescribeBackupConfigResponse struct { *tchttp.BaseResponse Response *struct { // Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitempty" name:"BackupTimeBeg"` // Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitempty" name:"BackupTimeEnd"` // Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800 ReserveDuration *uint64 `json:"ReserveDuration,omitempty" name:"ReserveDuration"` // Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup // Note: this field may return null, indicating that no valid values can be obtained. BackupFreq []*string `json:"BackupFreq,omitempty" name:"BackupFreq"` // Backup mode. logic: logic backup; snapshot: snapshot backup // Note: this field may return null, indicating that no valid values can be obtained. BackupType *string `json:"BackupType,omitempty" name:"BackupType"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBackupConfigResponse ¶
func NewDescribeBackupConfigResponse() (response *DescribeBackupConfigResponse)
func (*DescribeBackupConfigResponse) FromJsonString ¶
func (r *DescribeBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupConfigResponse) ToJsonString ¶
func (r *DescribeBackupConfigResponse) ToJsonString() string
type DescribeBackupListRequest ¶
type DescribeBackupListRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Backup file list offset Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Backup file list start Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` }
func NewDescribeBackupListRequest ¶
func NewDescribeBackupListRequest() (request *DescribeBackupListRequest)
func (*DescribeBackupListRequest) FromJsonString ¶
func (r *DescribeBackupListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupListRequest) ToJsonString ¶
func (r *DescribeBackupListRequest) ToJsonString() string
type DescribeBackupListResponse ¶
type DescribeBackupListResponse struct { *tchttp.BaseResponse Response *struct { // Total number of backup files TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Backup file list BackupList []*BackupFileInfo `json:"BackupList,omitempty" name:"BackupList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBackupListResponse ¶
func NewDescribeBackupListResponse() (response *DescribeBackupListResponse)
func (*DescribeBackupListResponse) FromJsonString ¶
func (r *DescribeBackupListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBackupListResponse) ToJsonString ¶
func (r *DescribeBackupListResponse) ToJsonString() string
type DescribeClusterDetailRequest ¶
type DescribeClusterDetailRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterDetailRequest ¶
func NewDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest)
func (*DescribeClusterDetailRequest) FromJsonString ¶
func (r *DescribeClusterDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterDetailRequest) ToJsonString ¶
func (r *DescribeClusterDetailRequest) ToJsonString() string
type DescribeClusterDetailResponse ¶
type DescribeClusterDetailResponse struct { *tchttp.BaseResponse Response *struct { // Cluster details Detail *CynosdbClusterDetail `json:"Detail,omitempty" name:"Detail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterDetailResponse ¶
func NewDescribeClusterDetailResponse() (response *DescribeClusterDetailResponse)
func (*DescribeClusterDetailResponse) FromJsonString ¶
func (r *DescribeClusterDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterDetailResponse) ToJsonString ¶
func (r *DescribeClusterDetailResponse) ToJsonString() string
type DescribeClusterInstanceGrpsRequest ¶
type DescribeClusterInstanceGrpsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterInstanceGrpsRequest ¶
func NewDescribeClusterInstanceGrpsRequest() (request *DescribeClusterInstanceGrpsRequest)
func (*DescribeClusterInstanceGrpsRequest) FromJsonString ¶
func (r *DescribeClusterInstanceGrpsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstanceGrpsRequest) ToJsonString ¶
func (r *DescribeClusterInstanceGrpsRequest) ToJsonString() string
type DescribeClusterInstanceGrpsResponse ¶
type DescribeClusterInstanceGrpsResponse struct { *tchttp.BaseResponse Response *struct { // Number of instance groups TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Instance group list InstanceGrpInfoList []*CynosdbInstanceGrp `json:"InstanceGrpInfoList,omitempty" name:"InstanceGrpInfoList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterInstanceGrpsResponse ¶
func NewDescribeClusterInstanceGrpsResponse() (response *DescribeClusterInstanceGrpsResponse)
func (*DescribeClusterInstanceGrpsResponse) FromJsonString ¶
func (r *DescribeClusterInstanceGrpsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstanceGrpsResponse) ToJsonString ¶
func (r *DescribeClusterInstanceGrpsResponse) ToJsonString() string
type DescribeClustersRequest ¶
type DescribeClustersRequest struct { *tchttp.BaseRequest // Engine type. Valid values: MYSQL, POSTGRESQL DbType *string `json:"DbType,omitempty" name:"DbType"` // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Record offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Sort by field. Valid values: // <li> CREATETIME: creation time</li> // <li> PERIODENDTIME: expiration time</li> OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order. Valid values: // <li> ASC: ascending</li> // <li> DESC: descending</li> OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // Filter. If more than one filter exists, the logical relationship between these filters is `AND`. Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeClustersRequest ¶
func NewDescribeClustersRequest() (request *DescribeClustersRequest)
func (*DescribeClustersRequest) FromJsonString ¶
func (r *DescribeClustersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersRequest) ToJsonString ¶
func (r *DescribeClustersRequest) ToJsonString() string
type DescribeClustersResponse ¶
type DescribeClustersResponse struct { *tchttp.BaseResponse Response *struct { // Number of clusters TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Cluster list ClusterSet []*CynosdbCluster `json:"ClusterSet,omitempty" name:"ClusterSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClustersResponse ¶
func NewDescribeClustersResponse() (response *DescribeClustersResponse)
func (*DescribeClustersResponse) FromJsonString ¶
func (r *DescribeClustersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersResponse) ToJsonString ¶
func (r *DescribeClustersResponse) ToJsonString() string
type DescribeDBSecurityGroupsRequest ¶
type DescribeDBSecurityGroupsRequest struct { *tchttp.BaseRequest // Instance group ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBSecurityGroupsRequest ¶
func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequest)
func (*DescribeDBSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string
type DescribeDBSecurityGroupsResponse ¶
type DescribeDBSecurityGroupsResponse struct { *tchttp.BaseResponse Response *struct { // Security group information Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDBSecurityGroupsResponse ¶
func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse)
func (*DescribeDBSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string
type DescribeInstanceDetailRequest ¶
type DescribeInstanceDetailRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceDetailRequest ¶
func NewDescribeInstanceDetailRequest() (request *DescribeInstanceDetailRequest)
func (*DescribeInstanceDetailRequest) FromJsonString ¶
func (r *DescribeInstanceDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceDetailRequest) ToJsonString ¶
func (r *DescribeInstanceDetailRequest) ToJsonString() string
type DescribeInstanceDetailResponse ¶
type DescribeInstanceDetailResponse struct { *tchttp.BaseResponse Response *struct { // Instance details Detail *CynosdbInstanceDetail `json:"Detail,omitempty" name:"Detail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInstanceDetailResponse ¶
func NewDescribeInstanceDetailResponse() (response *DescribeInstanceDetailResponse)
func (*DescribeInstanceDetailResponse) FromJsonString ¶
func (r *DescribeInstanceDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceDetailResponse) ToJsonString ¶
func (r *DescribeInstanceDetailResponse) ToJsonString() string
type DescribeInstanceSpecsRequest ¶
type DescribeInstanceSpecsRequest struct { *tchttp.BaseRequest // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` }
func NewDescribeInstanceSpecsRequest ¶
func NewDescribeInstanceSpecsRequest() (request *DescribeInstanceSpecsRequest)
func (*DescribeInstanceSpecsRequest) FromJsonString ¶
func (r *DescribeInstanceSpecsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceSpecsRequest) ToJsonString ¶
func (r *DescribeInstanceSpecsRequest) ToJsonString() string
type DescribeInstanceSpecsResponse ¶
type DescribeInstanceSpecsResponse struct { *tchttp.BaseResponse Response *struct { // Specification information InstanceSpecSet []*InstanceSpec `json:"InstanceSpecSet,omitempty" name:"InstanceSpecSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInstanceSpecsResponse ¶
func NewDescribeInstanceSpecsResponse() (response *DescribeInstanceSpecsResponse)
func (*DescribeInstanceSpecsResponse) FromJsonString ¶
func (r *DescribeInstanceSpecsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstanceSpecsResponse) ToJsonString ¶
func (r *DescribeInstanceSpecsResponse) ToJsonString() string
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct { *tchttp.BaseRequest // Number of returned results. Default value: 20. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Record offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Sort by field. Valid values: // <li> CREATETIME: creation time</li> // <li> PERIODENDTIME: expiration time</li> OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order. Valid values: // <li> ASC: ascending</li> // <li> DESC: descending</li> OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // Filter. If more than one filter exists, the logical relationship between these filters is `AND`. Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"` // Engine type. Valid values: MYSQL, POSTGRESQL DbType *string `json:"DbType,omitempty" name:"DbType"` // Instance status Status *string `json:"Status,omitempty" name:"Status"` // Instance ID list InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Number of instances TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Instance list InstanceSet []*CynosdbInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInstancesResponse ¶
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)
func (*DescribeInstancesResponse) FromJsonString ¶
func (r *DescribeInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesResponse) ToJsonString ¶
func (r *DescribeInstancesResponse) ToJsonString() string
type DescribeMaintainPeriodRequest ¶
type DescribeMaintainPeriodRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeMaintainPeriodRequest ¶
func NewDescribeMaintainPeriodRequest() (request *DescribeMaintainPeriodRequest)
func (*DescribeMaintainPeriodRequest) FromJsonString ¶
func (r *DescribeMaintainPeriodRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMaintainPeriodRequest) ToJsonString ¶
func (r *DescribeMaintainPeriodRequest) ToJsonString() string
type DescribeMaintainPeriodResponse ¶
type DescribeMaintainPeriodResponse struct { *tchttp.BaseResponse Response *struct { // Maintenance days of the week MaintainWeekDays []*string `json:"MaintainWeekDays,omitempty" name:"MaintainWeekDays"` // Maintenance start time in seconds MaintainStartTime *int64 `json:"MaintainStartTime,omitempty" name:"MaintainStartTime"` // Maintenance duration in seconds MaintainDuration *int64 `json:"MaintainDuration,omitempty" name:"MaintainDuration"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeMaintainPeriodResponse ¶
func NewDescribeMaintainPeriodResponse() (response *DescribeMaintainPeriodResponse)
func (*DescribeMaintainPeriodResponse) FromJsonString ¶
func (r *DescribeMaintainPeriodResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMaintainPeriodResponse) ToJsonString ¶
func (r *DescribeMaintainPeriodResponse) ToJsonString() string
type DescribeProjectSecurityGroupsRequest ¶
type DescribeProjectSecurityGroupsRequest struct { *tchttp.BaseRequest // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewDescribeProjectSecurityGroupsRequest ¶
func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurityGroupsRequest)
func (*DescribeProjectSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string
type DescribeProjectSecurityGroupsResponse ¶
type DescribeProjectSecurityGroupsResponse struct { *tchttp.BaseResponse Response *struct { // Security group details Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeProjectSecurityGroupsResponse ¶
func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse)
func (*DescribeProjectSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string
type DescribeResourcesByDealNameRequest ¶
type DescribeResourcesByDealNameRequest struct { *tchttp.BaseRequest // Order ID. (If the cluster is not delivered yet, the `DescribeResourcesByDealName` API may return the `InvalidParameterValue.DealNameNotFound` error. Please call the API again until it succeeds.) DealName *string `json:"DealName,omitempty" name:"DealName"` }
func NewDescribeResourcesByDealNameRequest ¶
func NewDescribeResourcesByDealNameRequest() (request *DescribeResourcesByDealNameRequest)
func (*DescribeResourcesByDealNameRequest) FromJsonString ¶
func (r *DescribeResourcesByDealNameRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByDealNameRequest) ToJsonString ¶
func (r *DescribeResourcesByDealNameRequest) ToJsonString() string
type DescribeResourcesByDealNameResponse ¶
type DescribeResourcesByDealNameResponse struct { *tchttp.BaseResponse Response *struct { // Billable resource ID information array BillingResourceInfos []*BillingResourceInfo `json:"BillingResourceInfos,omitempty" name:"BillingResourceInfos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeResourcesByDealNameResponse ¶
func NewDescribeResourcesByDealNameResponse() (response *DescribeResourcesByDealNameResponse)
func (*DescribeResourcesByDealNameResponse) FromJsonString ¶
func (r *DescribeResourcesByDealNameResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourcesByDealNameResponse) ToJsonString ¶
func (r *DescribeResourcesByDealNameResponse) ToJsonString() string
type DescribeRollbackTimeRangeRequest ¶
type DescribeRollbackTimeRangeRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeRollbackTimeRangeRequest ¶
func NewDescribeRollbackTimeRangeRequest() (request *DescribeRollbackTimeRangeRequest)
func (*DescribeRollbackTimeRangeRequest) FromJsonString ¶
func (r *DescribeRollbackTimeRangeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTimeRangeRequest) ToJsonString ¶
func (r *DescribeRollbackTimeRangeRequest) ToJsonString() string
type DescribeRollbackTimeRangeResponse ¶
type DescribeRollbackTimeRangeResponse struct { *tchttp.BaseResponse Response *struct { // Start time point of valid rollback time range TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"` // End time point of valid rollback time range TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRollbackTimeRangeResponse ¶
func NewDescribeRollbackTimeRangeResponse() (response *DescribeRollbackTimeRangeResponse)
func (*DescribeRollbackTimeRangeResponse) FromJsonString ¶
func (r *DescribeRollbackTimeRangeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTimeRangeResponse) ToJsonString ¶
func (r *DescribeRollbackTimeRangeResponse) ToJsonString() string
type DescribeRollbackTimeValidityRequest ¶
type DescribeRollbackTimeValidityRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Expected time point to roll back to ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"` // Error tolerance range for rollback time point ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"` }
func NewDescribeRollbackTimeValidityRequest ¶
func NewDescribeRollbackTimeValidityRequest() (request *DescribeRollbackTimeValidityRequest)
func (*DescribeRollbackTimeValidityRequest) FromJsonString ¶
func (r *DescribeRollbackTimeValidityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTimeValidityRequest) ToJsonString ¶
func (r *DescribeRollbackTimeValidityRequest) ToJsonString() string
type DescribeRollbackTimeValidityResponse ¶
type DescribeRollbackTimeValidityResponse struct { *tchttp.BaseResponse Response *struct { // Storage `poolID` PoolId *uint64 `json:"PoolId,omitempty" name:"PoolId"` // Rollback task ID, which needs to be passed in when rolling back to this time point QueryId *uint64 `json:"QueryId,omitempty" name:"QueryId"` // Whether the time point is valid. pass: check passed; fail: check failed Status *string `json:"Status,omitempty" name:"Status"` // Suggested time point. This value takes effect only if `Status` is `fail` SuggestTime *string `json:"SuggestTime,omitempty" name:"SuggestTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRollbackTimeValidityResponse ¶
func NewDescribeRollbackTimeValidityResponse() (response *DescribeRollbackTimeValidityResponse)
func (*DescribeRollbackTimeValidityResponse) FromJsonString ¶
func (r *DescribeRollbackTimeValidityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRollbackTimeValidityResponse) ToJsonString ¶
func (r *DescribeRollbackTimeValidityResponse) ToJsonString() string
type InstanceSpec ¶
type InstanceSpec struct { // Number of instance CPU cores Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` // Instance memory in GB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // Maximum instance storage capacity GB MaxStorageSize *uint64 `json:"MaxStorageSize,omitempty" name:"MaxStorageSize"` // Minimum instance storage capacity GB MinStorageSize *uint64 `json:"MinStorageSize,omitempty" name:"MinStorageSize"` }
type IsolateClusterRequest ¶
type IsolateClusterRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` }
func NewIsolateClusterRequest ¶
func NewIsolateClusterRequest() (request *IsolateClusterRequest)
func (*IsolateClusterRequest) FromJsonString ¶
func (r *IsolateClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateClusterRequest) ToJsonString ¶
func (r *IsolateClusterRequest) ToJsonString() string
type IsolateClusterResponse ¶
type IsolateClusterResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID // Note: this field may return null, indicating that no valid values can be obtained. FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Refund order ID // Note: this field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewIsolateClusterResponse ¶
func NewIsolateClusterResponse() (response *IsolateClusterResponse)
func (*IsolateClusterResponse) FromJsonString ¶
func (r *IsolateClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateClusterResponse) ToJsonString ¶
func (r *IsolateClusterResponse) ToJsonString() string
type IsolateInstanceRequest ¶
type IsolateInstanceRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Instance ID array InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` }
func NewIsolateInstanceRequest ¶
func NewIsolateInstanceRequest() (request *IsolateInstanceRequest)
func (*IsolateInstanceRequest) FromJsonString ¶
func (r *IsolateInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateInstanceRequest) ToJsonString ¶
func (r *IsolateInstanceRequest) ToJsonString() string
type IsolateInstanceResponse ¶
type IsolateInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Order ID for isolated instance (prepaid instance) // Note: this field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewIsolateInstanceResponse ¶
func NewIsolateInstanceResponse() (response *IsolateInstanceResponse)
func (*IsolateInstanceResponse) FromJsonString ¶
func (r *IsolateInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateInstanceResponse) ToJsonString ¶
func (r *IsolateInstanceResponse) ToJsonString() string
type ModifyBackupConfigRequest ¶
type ModifyBackupConfigRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitempty" name:"BackupTimeBeg"` // Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitempty" name:"BackupTimeEnd"` // Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600*24*7 = 604800 ReserveDuration *uint64 `json:"ReserveDuration,omitempty" name:"ReserveDuration"` // Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup BackupFreq []*string `json:"BackupFreq,omitempty" name:"BackupFreq"` // Backup mode. logic: logic backup; snapshot: snapshot backup BackupType *string `json:"BackupType,omitempty" name:"BackupType"` }
func NewModifyBackupConfigRequest ¶
func NewModifyBackupConfigRequest() (request *ModifyBackupConfigRequest)
func (*ModifyBackupConfigRequest) FromJsonString ¶
func (r *ModifyBackupConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupConfigRequest) ToJsonString ¶
func (r *ModifyBackupConfigRequest) ToJsonString() string
type ModifyBackupConfigResponse ¶
type ModifyBackupConfigResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyBackupConfigResponse ¶
func NewModifyBackupConfigResponse() (response *ModifyBackupConfigResponse)
func (*ModifyBackupConfigResponse) FromJsonString ¶
func (r *ModifyBackupConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBackupConfigResponse) ToJsonString ¶
func (r *ModifyBackupConfigResponse) ToJsonString() string
type ModifyClusterParamRequest ¶
type ModifyClusterParamRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The list of parameters to be modified ParamList []*ParamItem `json:"ParamList,omitempty" name:"ParamList"` }
func NewModifyClusterParamRequest ¶
func NewModifyClusterParamRequest() (request *ModifyClusterParamRequest)
func (*ModifyClusterParamRequest) FromJsonString ¶
func (r *ModifyClusterParamRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterParamRequest) ToJsonString ¶
func (r *ModifyClusterParamRequest) ToJsonString() string
type ModifyClusterParamResponse ¶
type ModifyClusterParamResponse struct { *tchttp.BaseResponse Response *struct { // Async request ID used to query the result AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterParamResponse ¶
func NewModifyClusterParamResponse() (response *ModifyClusterParamResponse)
func (*ModifyClusterParamResponse) FromJsonString ¶
func (r *ModifyClusterParamResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterParamResponse) ToJsonString ¶
func (r *ModifyClusterParamResponse) ToJsonString() string
type ModifyDBInstanceSecurityGroupsRequest ¶
type ModifyDBInstanceSecurityGroupsRequest struct { *tchttp.BaseRequest // Instance group ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of IDs of the security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // AZ Zone *string `json:"Zone,omitempty" name:"Zone"` }
func NewModifyDBInstanceSecurityGroupsRequest ¶
func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecurityGroupsRequest)
func (*ModifyDBInstanceSecurityGroupsRequest) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsRequest) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string
type ModifyDBInstanceSecurityGroupsResponse ¶
type ModifyDBInstanceSecurityGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDBInstanceSecurityGroupsResponse ¶
func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse)
func (*ModifyDBInstanceSecurityGroupsResponse) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsResponse) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string
type ModifyMaintainPeriodConfigRequest ¶
type ModifyMaintainPeriodConfigRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Maintenance start time in seconds. For example, 03:00 AM is represented by 10800 MaintainStartTime *int64 `json:"MaintainStartTime,omitempty" name:"MaintainStartTime"` // Maintenance duration in seconds. For example, one hour is represented by 3600 MaintainDuration *int64 `json:"MaintainDuration,omitempty" name:"MaintainDuration"` // Maintenance days of the week MaintainWeekDays []*string `json:"MaintainWeekDays,omitempty" name:"MaintainWeekDays"` }
func NewModifyMaintainPeriodConfigRequest ¶
func NewModifyMaintainPeriodConfigRequest() (request *ModifyMaintainPeriodConfigRequest)
func (*ModifyMaintainPeriodConfigRequest) FromJsonString ¶
func (r *ModifyMaintainPeriodConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyMaintainPeriodConfigRequest) ToJsonString ¶
func (r *ModifyMaintainPeriodConfigRequest) ToJsonString() string
type ModifyMaintainPeriodConfigResponse ¶
type ModifyMaintainPeriodConfigResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyMaintainPeriodConfigResponse ¶
func NewModifyMaintainPeriodConfigResponse() (response *ModifyMaintainPeriodConfigResponse)
func (*ModifyMaintainPeriodConfigResponse) FromJsonString ¶
func (r *ModifyMaintainPeriodConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyMaintainPeriodConfigResponse) ToJsonString ¶
func (r *ModifyMaintainPeriodConfigResponse) ToJsonString() string
type NetAddr ¶
type NetAddr struct { // Private network IP // Note: this field may return `null`, indicating that no valid values can be obtained. Vip *string `json:"Vip,omitempty" name:"Vip"` // Private network port number // Note: this field may return `null`, indicating that no valid values can be obtained. Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Public network domain name // Note: this field may return `null`, indicating that no valid values can be obtained. WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` // Public network port number // Note: this field may return `null`, indicating that no valid values can be obtained. WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"` // Network type. Valid values: `ro` (read-only), `rw` or `ha` (read-write) // Note: this field may return `null`, indicating that no valid values can be obtained. NetType *string `json:"NetType,omitempty" name:"NetType"` }
type ObjectTask ¶
type ObjectTask struct { // Auto-Incrementing task ID // Note: this field may return null, indicating that no valid values can be obtained. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // Task type // Note: this field may return null, indicating that no valid values can be obtained. TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // Task status // Note: this field may return null, indicating that no valid values can be obtained. TaskStatus *string `json:"TaskStatus,omitempty" name:"TaskStatus"` // Task ID (cluster ID | instance group ID | instance ID) // Note: this field may return null, indicating that no valid values can be obtained. ObjectId *string `json:"ObjectId,omitempty" name:"ObjectId"` // Task type // Note: this field may return null, indicating that no valid values can be obtained. ObjectType *string `json:"ObjectType,omitempty" name:"ObjectType"` }
type OfflineClusterRequest ¶
type OfflineClusterRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewOfflineClusterRequest ¶
func NewOfflineClusterRequest() (request *OfflineClusterRequest)
func (*OfflineClusterRequest) FromJsonString ¶
func (r *OfflineClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineClusterRequest) ToJsonString ¶
func (r *OfflineClusterRequest) ToJsonString() string
type OfflineClusterResponse ¶
type OfflineClusterResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewOfflineClusterResponse ¶
func NewOfflineClusterResponse() (response *OfflineClusterResponse)
func (*OfflineClusterResponse) FromJsonString ¶
func (r *OfflineClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineClusterResponse) ToJsonString ¶
func (r *OfflineClusterResponse) ToJsonString() string
type OfflineInstanceRequest ¶
type OfflineInstanceRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Instance ID array InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"` }
func NewOfflineInstanceRequest ¶
func NewOfflineInstanceRequest() (request *OfflineInstanceRequest)
func (*OfflineInstanceRequest) FromJsonString ¶
func (r *OfflineInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineInstanceRequest) ToJsonString ¶
func (r *OfflineInstanceRequest) ToJsonString() string
type OfflineInstanceResponse ¶
type OfflineInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewOfflineInstanceResponse ¶
func NewOfflineInstanceResponse() (response *OfflineInstanceResponse)
func (*OfflineInstanceResponse) FromJsonString ¶
func (r *OfflineInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OfflineInstanceResponse) ToJsonString ¶
func (r *OfflineInstanceResponse) ToJsonString() string
type PolicyRule ¶
type PolicyRule struct { // Policy, which can be `ACCEPT` or `DROP` Action *string `json:"Action,omitempty" name:"Action"` // Source IP or IP range, such as 192.168.0.0/16 CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` // Port PortRange *string `json:"PortRange,omitempty" name:"PortRange"` // Network protocol, such as UDP and TCP IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` // Protocol port ID or protocol port group ID. ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"` // IP address ID or IP address group ID. AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"` // id Id *string `json:"Id,omitempty" name:"Id"` // Description Desc *string `json:"Desc,omitempty" name:"Desc"` }
type QueryFilter ¶
type QueryFilter struct { // Search field. Valid values: "InstanceId", "ProjectId", "InstanceName", "Vip" Names []*string `json:"Names,omitempty" name:"Names"` // Search string Values []*string `json:"Values,omitempty" name:"Values"` // Whether to use exact match ExactMatch *bool `json:"ExactMatch,omitempty" name:"ExactMatch"` // Search field Name *string `json:"Name,omitempty" name:"Name"` }
type SecurityGroup ¶
type SecurityGroup struct { // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Creation time in the format of yyyy-mm-dd hh:mm:ss CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Inbound rule Inbound []*PolicyRule `json:"Inbound,omitempty" name:"Inbound"` // Outbound rule Outbound []*PolicyRule `json:"Outbound,omitempty" name:"Outbound"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // Security group name SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` // Security group remarks SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` }
type SetRenewFlagRequest ¶
type SetRenewFlagRequest struct { *tchttp.BaseRequest // ID of the instance to be manipulated ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` // Auto-Renewal flag AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` }
func NewSetRenewFlagRequest ¶
func NewSetRenewFlagRequest() (request *SetRenewFlagRequest)
func (*SetRenewFlagRequest) FromJsonString ¶
func (r *SetRenewFlagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetRenewFlagRequest) ToJsonString ¶
func (r *SetRenewFlagRequest) ToJsonString() string
type SetRenewFlagResponse ¶
type SetRenewFlagResponse struct { *tchttp.BaseResponse Response *struct { // Number of successfully manipulated instances Count *int64 `json:"Count,omitempty" name:"Count"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetRenewFlagResponse ¶
func NewSetRenewFlagResponse() (response *SetRenewFlagResponse)
func (*SetRenewFlagResponse) FromJsonString ¶
func (r *SetRenewFlagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetRenewFlagResponse) ToJsonString ¶
func (r *SetRenewFlagResponse) ToJsonString() string
type UpgradeInstanceRequest ¶
type UpgradeInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database CPU Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Database memory Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Upgrade type. Valid values: upgradeImmediate, upgradeInMaintain UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"` // Storage upper limit. 0 indicates to use the standard configuration StorageLimit *uint64 `json:"StorageLimit,omitempty" name:"StorageLimit"` // Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0 AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` // Database type. Valid values: // <li> MYSQL </li> DbType *string `json:"DbType,omitempty" name:"DbType"` // Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order) DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"` }
func NewUpgradeInstanceRequest ¶
func NewUpgradeInstanceRequest() (request *UpgradeInstanceRequest)
func (*UpgradeInstanceRequest) FromJsonString ¶
func (r *UpgradeInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeInstanceRequest) ToJsonString ¶
func (r *UpgradeInstanceRequest) ToJsonString() string
type UpgradeInstanceResponse ¶
type UpgradeInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Freezing transaction ID // Note: this field may return null, indicating that no valid values can be obtained. TranId *string `json:"TranId,omitempty" name:"TranId"` // Big order ID. // Note: this field may return null, indicating that no valid values can be obtained. BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"` // Order ID DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpgradeInstanceResponse ¶
func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse)
func (*UpgradeInstanceResponse) FromJsonString ¶
func (r *UpgradeInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeInstanceResponse) ToJsonString ¶
func (r *UpgradeInstanceResponse) ToJsonString() string