Documentation ¶
Index ¶
- Constants
- type AssociateSecurityGroupsRequest
- type AssociateSecurityGroupsResponse
- type BriefNodeInfo
- type CancelDcnJobRequest
- type CancelDcnJobResponse
- type Client
- func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) CancelDcnJob(request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)
- func (c *Client) CancelDcnJobWithContext(ctx context.Context, request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)
- func (c *Client) CloneAccount(request *CloneAccountRequest) (response *CloneAccountResponse, err error)
- func (c *Client) CloneAccountWithContext(ctx context.Context, request *CloneAccountRequest) (response *CloneAccountResponse, err error)
- func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
- func (c *Client) CloseDBExtranetAccessWithContext(ctx context.Context, request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
- func (c *Client) CopyAccountPrivileges(request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)
- func (c *Client) CopyAccountPrivilegesWithContext(ctx context.Context, request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)
- func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)
- func (c *Client) CreateAccountWithContext(ctx context.Context, request *CreateAccountRequest) (response *CreateAccountResponse, err error)
- func (c *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)
- func (c *Client) DeleteAccountWithContext(ctx context.Context, request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)
- func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
- func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, 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) DescribeDBLogFiles(request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)
- func (c *Client) DescribeDBLogFilesWithContext(ctx context.Context, request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)
- func (c *Client) DescribeDBParameters(request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error)
- func (c *Client) DescribeDBParametersWithContext(ctx context.Context, request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, 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) DescribeDBSyncMode(request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)
- func (c *Client) DescribeDBSyncModeWithContext(ctx context.Context, request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)
- func (c *Client) DescribeDCDBInstanceNodeInfo(request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)
- func (c *Client) DescribeDCDBInstanceNodeInfoWithContext(ctx context.Context, request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)
- func (c *Client) DescribeDCDBInstances(request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)
- func (c *Client) DescribeDCDBInstancesWithContext(ctx context.Context, request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)
- func (c *Client) DescribeDCDBShards(request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)
- func (c *Client) DescribeDCDBShardsWithContext(ctx context.Context, request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)
- func (c *Client) DescribeDatabaseObjects(request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)
- func (c *Client) DescribeDatabaseObjectsWithContext(ctx context.Context, request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)
- func (c *Client) DescribeDatabaseTable(request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)
- func (c *Client) DescribeDatabaseTableWithContext(ctx context.Context, request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)
- func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeDcnDetail(request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)
- func (c *Client) DescribeDcnDetailWithContext(ctx context.Context, request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)
- func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeFlowResponse, err error)
- func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, 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) DescribeProjects(request *DescribeProjectsRequest) (response *DescribeProjectsResponse, err error)
- func (c *Client) DescribeProjectsWithContext(ctx context.Context, request *DescribeProjectsRequest) (response *DescribeProjectsResponse, err error)
- func (c *Client) DestroyDCDBInstance(request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)
- func (c *Client) DestroyDCDBInstanceWithContext(ctx context.Context, request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)
- func (c *Client) DestroyHourDCDBInstance(request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)
- func (c *Client) DestroyHourDCDBInstanceWithContext(ctx context.Context, request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)
- func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) GrantAccountPrivileges(request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)
- func (c *Client) GrantAccountPrivilegesWithContext(ctx context.Context, request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)
- func (c *Client) InitDCDBInstances(request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)
- func (c *Client) InitDCDBInstancesWithContext(ctx context.Context, request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)
- func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
- func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, 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) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
- func (c *Client) ModifyDBInstancesProjectWithContext(ctx context.Context, request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
- func (c *Client) ModifyDBParameters(request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)
- func (c *Client) ModifyDBParametersWithContext(ctx context.Context, request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)
- func (c *Client) ModifyDBSyncMode(request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)
- func (c *Client) ModifyDBSyncModeWithContext(ctx context.Context, request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)
- func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
- func (c *Client) OpenDBExtranetAccessWithContext(ctx context.Context, request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
- func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
- func (c *Client) ResetAccountPasswordWithContext(ctx context.Context, request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
- type CloneAccountRequest
- type CloneAccountResponse
- type CloseDBExtranetAccessRequest
- type CloseDBExtranetAccessResponse
- type ConstraintRange
- type CopyAccountPrivilegesRequest
- type CopyAccountPrivilegesResponse
- type CreateAccountRequest
- type CreateAccountResponse
- type DBAccount
- type DBParamValue
- type DCDBInstanceInfo
- type DCDBShardInfo
- type Database
- type DatabaseFunction
- type DatabaseProcedure
- type DatabaseTable
- type DatabaseView
- type DcnDetailItem
- type DeleteAccountRequest
- type DeleteAccountResponse
- type DescribeAccountPrivilegesRequest
- type DescribeAccountPrivilegesResponse
- type DescribeAccountsRequest
- type DescribeAccountsResponse
- type DescribeDBLogFilesRequest
- type DescribeDBLogFilesResponse
- type DescribeDBParametersRequest
- type DescribeDBParametersResponse
- type DescribeDBSecurityGroupsRequest
- type DescribeDBSecurityGroupsResponse
- type DescribeDBSyncModeRequest
- type DescribeDBSyncModeResponse
- type DescribeDCDBInstanceNodeInfoRequest
- type DescribeDCDBInstanceNodeInfoResponse
- type DescribeDCDBInstancesRequest
- type DescribeDCDBInstancesResponse
- type DescribeDCDBShardsRequest
- type DescribeDCDBShardsResponse
- type DescribeDatabaseObjectsRequest
- type DescribeDatabaseObjectsResponse
- type DescribeDatabaseTableRequest
- type DescribeDatabaseTableResponse
- type DescribeDatabasesRequest
- type DescribeDatabasesResponse
- type DescribeDcnDetailRequest
- type DescribeDcnDetailResponse
- type DescribeFlowRequest
- type DescribeFlowResponse
- type DescribeProjectSecurityGroupsRequest
- type DescribeProjectSecurityGroupsResponse
- type DescribeProjectsRequest
- type DescribeProjectsResponse
- type DestroyDCDBInstanceRequest
- type DestroyDCDBInstanceResponse
- type DestroyHourDCDBInstanceRequest
- type DestroyHourDCDBInstanceResponse
- type DisassociateSecurityGroupsRequest
- type DisassociateSecurityGroupsResponse
- type GrantAccountPrivilegesRequest
- type GrantAccountPrivilegesResponse
- type InitDCDBInstancesRequest
- type InitDCDBInstancesResponse
- type LogFileInfo
- type ModifyAccountDescriptionRequest
- type ModifyAccountDescriptionResponse
- type ModifyDBInstanceSecurityGroupsRequest
- type ModifyDBInstanceSecurityGroupsResponse
- type ModifyDBInstancesProjectRequest
- type ModifyDBInstancesProjectResponse
- type ModifyDBParametersRequest
- type ModifyDBParametersResponse
- type ModifyDBSyncModeRequest
- type ModifyDBSyncModeResponse
- type OpenDBExtranetAccessRequest
- type OpenDBExtranetAccessResponse
- type ParamConstraint
- type ParamDesc
- type ParamModifyResult
- type Project
- type ResetAccountPasswordRequest
- type ResetAccountPasswordResponse
- type SecurityGroup
- type SecurityGroupBound
- type ShardInfo
- type TableColumn
Constants ¶
const ( // CAM signature/authentication error AUTHFAILURE = "AuthFailure" // Failed to add the security group information of an instance. FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" // Failed to associate the security group. FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" // Authentication failed. FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" // Failed to clear the security group information of an instance. FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" // Error copying account permissions. FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError" // Failed to create the flow. FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" // Failed to create the account. FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed" // Failed to delete the account. FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed" // Failed to unassociate the security group. FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" // Failed to modify account permissions. FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed" // Failed to request the backend API. FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" // Failed to reset the account password. FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed" // Failed to set a rule. FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" // Failed to update the security group information of an instance. FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" // Internal error. INTERNALERROR = "InternalError" // CAM authentication request failed. INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" // Invalid COS instance address configuration. INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration" // Backup filename signature failed. INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl" // No database data has changed. INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError" // Failed to query the database. INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" // Failed to query the information of a dedicated cluster. INTERNALERROR_FENCEERROR = "InternalError.FenceError" // Failed to get database instance parameters. INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed" // Failed to get the list of databases. INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed" // Failed to get the database objects. INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed" // Failed to get the instance details. INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed" // Failed to get the instance information. INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" // Failed to get the current permissions of the account. INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed" // Failed to query security group details. INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" // Failed to query the VPC subnet information. INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" // Failed to get the table information. INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed" // Failed to get the list of accounts. INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" // Failed to query the security group quota of the user. INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError" // Failed to query the VPC information. INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" // Internal system error. INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" // Failed to insert data into the database. INTERNALERROR_INSERTFAIL = "InternalError.InsertFail" // You have no permission to operate this instance. INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" // The maximum number of security groups with which a single instance can associate has been reached. INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError" // The number of resources returned is inconsistent with the number specified in the request of querying instance information. INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" // An error occurred when querying instance information. INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" // Failed to pull the project list. INTERNALERROR_LISTPROJECTFAILED = "InternalError.ListProjectFailed" // Database operation failed. INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" // An error occurred when reading data from the database. INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" // An error occurred when reading data from the database. INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" // Route not found. INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound" // The security group policy of the resource failed to take effect. INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed" // Failed to update the database. INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // The password contains invalid characters. INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError" // The specified task information was not found. INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound" // An error occurred while verifying parameter validity. INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" // Invalid parameters. INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" // Failed to find the requested instance. INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" // You have no permission to manipulate this API or resource. INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" // Security group validity test failed. INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail" // The specified VPC subnet was not found. INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound" // The account to be created already exists. INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists" // The instance does not support this sync mode. INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode" // The specified permission could not be granted to this account. INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight" // Invalid account type. INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType" // The dedicated cluster to which the database instance belongs was not found. INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID" // An error occurred while initializing database instance parameters. INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam" // Incorrect permission parameter INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam" // The specification information of the database instance was not found. INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal" // Operations by a system user are not allowed. INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" // The specified account does not exist. RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist" // The specified database instance was not found. RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" // Failed to find the configuration of the product associated with the security group. RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" // Incorrect instance status. Unable to initialize. RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus" // An error occurred while calling COS APIs. RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed" // The database instance has been dropped. RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" // The database instance has been locked. Operations are not allowed. RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" // Incorrect database instance status. Operations are not allowed. RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" // You have no permission to manipulate this API or resource. UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" // Unsupported operation. UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation" // The proxy program is too old. Please contact customer service for upgrade and try again. UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion" )
const APIVersion = "2018-04-11"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateSecurityGroupsRequest ¶
type AssociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name. Valid value: `dcdb`. Product *string `json:"Product,omitempty" name:"Product"` // ID of the security group to be associated in the format of sg-efil73jd. SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // ID(s) of the instance(s) to be associated in the format of tdsqlshard-lesecurk. You can specify multiple instances. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAssociateSecurityGroupsRequest ¶
func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest)
func (*AssociateSecurityGroupsRequest) FromJsonString ¶
func (r *AssociateSecurityGroupsRequest) 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 (*AssociateSecurityGroupsRequest) ToJsonString ¶
func (r *AssociateSecurityGroupsRequest) ToJsonString() string
type AssociateSecurityGroupsResponse ¶
type AssociateSecurityGroupsResponse 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 NewAssociateSecurityGroupsResponse ¶
func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse)
func (*AssociateSecurityGroupsResponse) FromJsonString ¶
func (r *AssociateSecurityGroupsResponse) 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 (*AssociateSecurityGroupsResponse) ToJsonString ¶
func (r *AssociateSecurityGroupsResponse) ToJsonString() string
type BriefNodeInfo ¶
type CancelDcnJobRequest ¶
type CancelDcnJobRequest struct { *tchttp.BaseRequest // Disaster recovery instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewCancelDcnJobRequest ¶
func NewCancelDcnJobRequest() (request *CancelDcnJobRequest)
func (*CancelDcnJobRequest) FromJsonString ¶
func (r *CancelDcnJobRequest) 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 (*CancelDcnJobRequest) ToJsonString ¶
func (r *CancelDcnJobRequest) ToJsonString() string
type CancelDcnJobResponse ¶
type CancelDcnJobResponse struct { *tchttp.BaseResponse Response *struct { // Task 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 NewCancelDcnJobResponse ¶
func NewCancelDcnJobResponse() (response *CancelDcnJobResponse)
func (*CancelDcnJobResponse) FromJsonString ¶
func (r *CancelDcnJobResponse) 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 (*CancelDcnJobResponse) ToJsonString ¶
func (r *CancelDcnJobResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AssociateSecurityGroups ¶
func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API is used to associate security groups with Tencent Cloud resources in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError" INTERNALERROR_INSERTFAIL = "InternalError.InsertFail" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed" INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) AssociateSecurityGroupsWithContext ¶
func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API is used to associate security groups with Tencent Cloud resources in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError" INTERNALERROR_INSERTFAIL = "InternalError.InsertFail" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed" INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CancelDcnJob ¶
func (c *Client) CancelDcnJob(request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)
CancelDcnJob This API is used to cancel DCN synchronization.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR = "InternalError" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) CancelDcnJobWithContext ¶
func (c *Client) CancelDcnJobWithContext(ctx context.Context, request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)
CancelDcnJob This API is used to cancel DCN synchronization.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR = "InternalError" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) CloneAccount ¶
func (c *Client) CloneAccount(request *CloneAccountRequest) (response *CloneAccountResponse, err error)
CloneAccount This API is used to clone an instance account.
error code that may be returned:
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (*Client) CloneAccountWithContext ¶
func (c *Client) CloneAccountWithContext(ctx context.Context, request *CloneAccountRequest) (response *CloneAccountResponse, err error)
CloneAccount This API is used to clone an instance account.
error code that may be returned:
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (*Client) CloseDBExtranetAccess ¶
func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
CloseDBExtranetAccess This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CloseDBExtranetAccessWithContext ¶
func (c *Client) CloseDBExtranetAccessWithContext(ctx context.Context, request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
CloseDBExtranetAccess This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CopyAccountPrivileges ¶
func (c *Client) CopyAccountPrivileges(request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)
CopyAccountPrivileges This API is used to copy the permissions of a TencentDB account.
Note: Accounts with the same username but different hosts are different accounts. Permissions can only be copied between accounts with the same `Readonly` attribute.
error code that may be returned:
FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CopyAccountPrivilegesWithContext ¶
func (c *Client) CopyAccountPrivilegesWithContext(ctx context.Context, request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)
CopyAccountPrivileges This API is used to copy the permissions of a TencentDB account.
Note: Accounts with the same username but different hosts are different accounts. Permissions can only be copied between accounts with the same `Readonly` attribute.
error code that may be returned:
FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)
CreateAccount This API is used to create a TencentDB account. Multiple accounts can be created for one instance. Accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed" FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"
func (*Client) CreateAccountWithContext ¶
func (c *Client) CreateAccountWithContext(ctx context.Context, request *CreateAccountRequest) (response *CreateAccountResponse, err error)
CreateAccount This API is used to create a TencentDB account. Multiple accounts can be created for one instance. Accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed" FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"
func (*Client) DeleteAccount ¶
func (c *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)
DeleteAccount This API is used to delete a TencentDB account, which is uniquely identified by username and host.
error code that may be returned:
FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteAccountWithContext ¶
func (c *Client) DeleteAccountWithContext(ctx context.Context, request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)
DeleteAccount This API is used to delete a TencentDB account, which is uniquely identified by username and host.
error code that may be returned:
FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccountPrivileges ¶
func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
DescribeAccountPrivileges This API is used to query the permissions of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccountPrivilegesWithContext ¶
func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)
DescribeAccountPrivileges This API is used to query the permissions of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccounts ¶
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to query the list of accounts of a specified TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" 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 the list of accounts of a specified TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBLogFiles ¶
func (c *Client) DescribeDBLogFiles(request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)
DescribeDBLogFiles This API is used to get the list of various logs of a database, including cold backups, binlogs, errlogs, and slowlogs.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration" INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBLogFilesWithContext ¶
func (c *Client) DescribeDBLogFilesWithContext(ctx context.Context, request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)
DescribeDBLogFiles This API is used to get the list of various logs of a database, including cold backups, binlogs, errlogs, and slowlogs.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration" INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBParameters ¶
func (c *Client) DescribeDBParameters(request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error)
DescribeDBParameters This API is used to get the current parameter settings of a database.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBParametersWithContext ¶
func (c *Client) DescribeDBParametersWithContext(ctx context.Context, request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error)
DescribeDBParameters This API is used to get the current parameter settings of a database.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" 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 details of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" 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 details of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBSyncMode ¶
func (c *Client) DescribeDBSyncMode(request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)
DescribeDBSyncMode This API is used to query the sync mode of a TencentDB instance.
error code that may be returned:
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBSyncModeWithContext ¶
func (c *Client) DescribeDBSyncModeWithContext(ctx context.Context, request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)
DescribeDBSyncMode This API is used to query the sync mode of a TencentDB instance.
error code that may be returned:
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDCDBInstanceNodeInfo ¶
func (c *Client) DescribeDCDBInstanceNodeInfo(request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)
DescribeDCDBInstanceNodeInfo This API is used to query the information of instance nodes.
error code that may be returned:
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeDCDBInstanceNodeInfoWithContext ¶
func (c *Client) DescribeDCDBInstanceNodeInfoWithContext(ctx context.Context, request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)
DescribeDCDBInstanceNodeInfo This API is used to query the information of instance nodes.
error code that may be returned:
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeDCDBInstances ¶
func (c *Client) DescribeDCDBInstances(request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)
DescribeDCDBInstances This API is used to query the list of TencentDB instances. It supports filtering instances by project ID, instance ID, private network address, and instance name.
If no filter is specified, 10 instances will be returned by default. Up to 100 instances can be returned for a single request.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_FENCEERROR = "InternalError.FenceError" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound" INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID" INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDCDBInstancesWithContext ¶
func (c *Client) DescribeDCDBInstancesWithContext(ctx context.Context, request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)
DescribeDCDBInstances This API is used to query the list of TencentDB instances. It supports filtering instances by project ID, instance ID, private network address, and instance name.
If no filter is specified, 10 instances will be returned by default. Up to 100 instances can be returned for a single request.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_FENCEERROR = "InternalError.FenceError" INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound" INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID" INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDCDBShards ¶
func (c *Client) DescribeDCDBShards(request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)
DescribeDCDBShards This API is used to query the information of shards of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_FENCEERROR = "InternalError.FenceError" INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID" INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDCDBShardsWithContext ¶
func (c *Client) DescribeDCDBShardsWithContext(ctx context.Context, request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)
DescribeDCDBShards This API is used to query the information of shards of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_FENCEERROR = "InternalError.FenceError" INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID" INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabaseObjects ¶
func (c *Client) DescribeDatabaseObjects(request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)
DescribeDatabaseObjects This API is used to query the list of database objects in a TencentDB instance, including tables, stored procedures, views, and functions.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabaseObjectsWithContext ¶
func (c *Client) DescribeDatabaseObjectsWithContext(ctx context.Context, request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)
DescribeDatabaseObjects This API is used to query the list of database objects in a TencentDB instance, including tables, stored procedures, views, and functions.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabaseTable ¶
func (c *Client) DescribeDatabaseTable(request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)
DescribeDatabaseTable This API is used to query the table information of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabaseTableWithContext ¶
func (c *Client) DescribeDatabaseTableWithContext(ctx context.Context, request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)
DescribeDatabaseTable This API is used to query the table information of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabases ¶
func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases This API is used to query the list of databases of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDatabasesWithContext ¶
func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases This API is used to query the list of databases of a TencentDB instance.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDcnDetail ¶
func (c *Client) DescribeDcnDetail(request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)
DescribeDcnDetail This API is used to query the disaster recovery details of an instance.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeDcnDetailWithContext ¶
func (c *Client) DescribeDcnDetailWithContext(ctx context.Context, request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)
DescribeDcnDetail This API is used to query the disaster recovery details of an instance.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (*Client) DescribeFlow ¶
func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeFlowResponse, err error)
DescribeFlow This API is used to query task status.
error code that may be returned:
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeFlowWithContext ¶
func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, err error)
DescribeFlow This API is used to query task status.
error code that may be returned:
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound" 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 details of a project.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
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 details of a project.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
func (*Client) DescribeProjects ¶
func (c *Client) DescribeProjects(request *DescribeProjectsRequest) (response *DescribeProjectsResponse, err error)
DescribeProjects This API is used to query the project list.
error code that may be returned:
INTERNALERROR_LISTPROJECTFAILED = "InternalError.ListProjectFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeProjectsWithContext ¶
func (c *Client) DescribeProjectsWithContext(ctx context.Context, request *DescribeProjectsRequest) (response *DescribeProjectsResponse, err error)
DescribeProjects This API is used to query the project list.
error code that may be returned:
INTERNALERROR_LISTPROJECTFAILED = "InternalError.ListProjectFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DestroyDCDBInstance ¶
func (c *Client) DestroyDCDBInstance(request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)
DestroyDCDBInstance This API is used to terminate an isolated monthly-subscribed instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
func (*Client) DestroyDCDBInstanceWithContext ¶
func (c *Client) DestroyDCDBInstanceWithContext(ctx context.Context, request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)
DestroyDCDBInstance This API is used to terminate an isolated monthly-subscribed instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
func (*Client) DestroyHourDCDBInstance ¶
func (c *Client) DestroyHourDCDBInstance(request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)
DestroyHourDCDBInstance This API is used to terminate a pay-as-you-go instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
func (*Client) DestroyHourDCDBInstanceWithContext ¶
func (c *Client) DestroyHourDCDBInstanceWithContext(ctx context.Context, request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)
DestroyHourDCDBInstance This API is used to terminate a pay-as-you-go instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
func (*Client) DisassociateSecurityGroups ¶
func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API is used to unassociate security groups from instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DisassociateSecurityGroupsWithContext ¶
func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API is used to unassociate security groups from instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) GrantAccountPrivileges ¶
func (c *Client) GrantAccountPrivileges(request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)
GrantAccountPrivileges This API is used to grant permissions to a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed" FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight" INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) GrantAccountPrivilegesWithContext ¶
func (c *Client) GrantAccountPrivilegesWithContext(ctx context.Context, request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)
GrantAccountPrivileges This API is used to grant permissions to a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed" FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight" INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam" INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InitDCDBInstances ¶
func (c *Client) InitDCDBInstances(request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)
InitDCDBInstances This API is used to initialize instances, including setting the default character set and table name case sensitivity.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam" RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InitDCDBInstancesWithContext ¶
func (c *Client) InitDCDBInstancesWithContext(ctx context.Context, request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)
InitDCDBInstances This API is used to initialize instances, including setting the default character set and table name case sensitivity.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam" RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountDescription ¶
func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
ModifyAccountDescription This API is used to modify the remarks of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountDescriptionWithContext ¶
func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)
ModifyAccountDescription This API is used to modify the remarks of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist" 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 associated with TencentDB.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" 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 associated with TencentDB.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError" INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed" INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed" INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstancesProject ¶
func (c *Client) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
ModifyDBInstancesProject This API is used to modify the project to which TencentDB instances belong.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstancesProjectWithContext ¶
func (c *Client) ModifyDBInstancesProjectWithContext(ctx context.Context, request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
ModifyDBInstancesProject This API is used to modify the project to which TencentDB instances belong.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBParameters ¶
func (c *Client) ModifyDBParameters(request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)
ModifyDBParameters This API is used to modify database parameters.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBParametersWithContext ¶
func (c *Client) ModifyDBParametersWithContext(ctx context.Context, request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)
ModifyDBParameters This API is used to modify database parameters.
error code that may be returned:
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBSyncMode ¶
func (c *Client) ModifyDBSyncMode(request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)
ModifyDBSyncMode This API is used to modify the sync mode of a TencentDB instance.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (*Client) ModifyDBSyncModeWithContext ¶
func (c *Client) ModifyDBSyncModeWithContext(ctx context.Context, request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)
ModifyDBSyncMode This API is used to modify the sync mode of a TencentDB instance.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound" INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (*Client) OpenDBExtranetAccess ¶
func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
OpenDBExtranetAccess This API is used to enable public network access for a TencentDB instance. After that, you can access the instance with the public domain name and port obtained through the `DescribeDCDBInstances` API.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) OpenDBExtranetAccessWithContext ¶
func (c *Client) OpenDBExtranetAccessWithContext(ctx context.Context, request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
OpenDBExtranetAccess This API is used to enable public network access for a TencentDB instance. After that, you can access the instance with the public domain name and port obtained through the `DescribeDCDBInstances` API.
error code that may be returned:
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ResetAccountPassword ¶
func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
ResetAccountPassword This API is used to reset the password of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ResetAccountPasswordWithContext ¶
func (c *Client) ResetAccountPasswordWithContext(ctx context.Context, request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
ResetAccountPassword This API is used to reset the password of a TencentDB account.
Note: accounts with the same username but different hosts are different accounts.
error code that may be returned:
FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError" INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError" RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted" RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
type CloneAccountRequest ¶
type CloneAccountRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Source user account name SrcUser *string `json:"SrcUser,omitempty" name:"SrcUser"` // Source user host SrcHost *string `json:"SrcHost,omitempty" name:"SrcHost"` // Target user account name DstUser *string `json:"DstUser,omitempty" name:"DstUser"` // Target user host DstHost *string `json:"DstHost,omitempty" name:"DstHost"` // Description of a target account DstDesc *string `json:"DstDesc,omitempty" name:"DstDesc"` }
func NewCloneAccountRequest ¶
func NewCloneAccountRequest() (request *CloneAccountRequest)
func (*CloneAccountRequest) FromJsonString ¶
func (r *CloneAccountRequest) 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 (*CloneAccountRequest) ToJsonString ¶
func (r *CloneAccountRequest) ToJsonString() string
type CloneAccountResponse ¶
type CloneAccountResponse struct { *tchttp.BaseResponse Response *struct { // Async 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 NewCloneAccountResponse ¶
func NewCloneAccountResponse() (response *CloneAccountResponse)
func (*CloneAccountResponse) FromJsonString ¶
func (r *CloneAccountResponse) 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 (*CloneAccountResponse) ToJsonString ¶
func (r *CloneAccountResponse) ToJsonString() string
type CloseDBExtranetAccessRequest ¶
type CloseDBExtranetAccessRequest struct { *tchttp.BaseRequest // ID of an instance for which to disable public network access. The ID is in the format of dcdbt-ow728lmc and can be obtained through the `DescribeDCDBInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether IPv6 is used. Default value: 0 Ipv6Flag *int64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"` }
func NewCloseDBExtranetAccessRequest ¶
func NewCloseDBExtranetAccessRequest() (request *CloseDBExtranetAccessRequest)
func (*CloseDBExtranetAccessRequest) FromJsonString ¶
func (r *CloseDBExtranetAccessRequest) 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 (*CloseDBExtranetAccessRequest) ToJsonString ¶
func (r *CloseDBExtranetAccessRequest) ToJsonString() string
type CloseDBExtranetAccessResponse ¶
type CloseDBExtranetAccessResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID. The task status can be queried through the `DescribeFlow` API. 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 NewCloseDBExtranetAccessResponse ¶
func NewCloseDBExtranetAccessResponse() (response *CloseDBExtranetAccessResponse)
func (*CloseDBExtranetAccessResponse) FromJsonString ¶
func (r *CloseDBExtranetAccessResponse) 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 (*CloseDBExtranetAccessResponse) ToJsonString ¶
func (r *CloseDBExtranetAccessResponse) ToJsonString() string
type ConstraintRange ¶
type CopyAccountPrivilegesRequest ¶
type CopyAccountPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Source username SrcUserName *string `json:"SrcUserName,omitempty" name:"SrcUserName"` // Access host allowed for a source user SrcHost *string `json:"SrcHost,omitempty" name:"SrcHost"` // Target username DstUserName *string `json:"DstUserName,omitempty" name:"DstUserName"` // Access host allowed for a target user DstHost *string `json:"DstHost,omitempty" name:"DstHost"` // `ReadOnly` attribute of a source account SrcReadOnly *string `json:"SrcReadOnly,omitempty" name:"SrcReadOnly"` // `ReadOnly` attribute of a target account DstReadOnly *string `json:"DstReadOnly,omitempty" name:"DstReadOnly"` }
func NewCopyAccountPrivilegesRequest ¶
func NewCopyAccountPrivilegesRequest() (request *CopyAccountPrivilegesRequest)
func (*CopyAccountPrivilegesRequest) FromJsonString ¶
func (r *CopyAccountPrivilegesRequest) 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 (*CopyAccountPrivilegesRequest) ToJsonString ¶
func (r *CopyAccountPrivilegesRequest) ToJsonString() string
type CopyAccountPrivilegesResponse ¶
type CopyAccountPrivilegesResponse 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 NewCopyAccountPrivilegesResponse ¶
func NewCopyAccountPrivilegesResponse() (response *CopyAccountPrivilegesResponse)
func (*CopyAccountPrivilegesResponse) FromJsonString ¶
func (r *CopyAccountPrivilegesResponse) 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 (*CopyAccountPrivilegesResponse) ToJsonString ¶
func (r *CopyAccountPrivilegesResponse) ToJsonString() string
type CreateAccountRequest ¶
type CreateAccountRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // AccountName UserName *string `json:"UserName,omitempty" name:"UserName"` // Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%. Host *string `json:"Host,omitempty" name:"Host"` // Account password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks. Password *string `json:"Password,omitempty" name:"Password"` // Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the secondary will be used first, and if it is unavailable, the primary will be used; 2: the secondary will be used first, and if it is unavailable, the operation will fail; 3: only the secondary will be read from. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // Account remarks, which can contain 0-256 letters, digits, and common symbols. Description *string `json:"Description,omitempty" name:"Description"` // If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed. // It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2. DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` }
func NewCreateAccountRequest ¶
func NewCreateAccountRequest() (request *CreateAccountRequest)
func (*CreateAccountRequest) FromJsonString ¶
func (r *CreateAccountRequest) 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 (*CreateAccountRequest) ToJsonString ¶
func (r *CreateAccountRequest) ToJsonString() string
type CreateAccountResponse ¶
type CreateAccountResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID, which is passed through from the input parameters. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Username, which is passed through from the input parameters. UserName *string `json:"UserName,omitempty" name:"UserName"` // Host allowed for access, which is passed through from the input parameters. Host *string `json:"Host,omitempty" name:"Host"` // Passed through from the input parameters. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // 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 NewCreateAccountResponse ¶
func NewCreateAccountResponse() (response *CreateAccountResponse)
func (*CreateAccountResponse) FromJsonString ¶
func (r *CreateAccountResponse) 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 (*CreateAccountResponse) ToJsonString ¶
func (r *CreateAccountResponse) ToJsonString() string
type DBAccount ¶
type DBAccount struct { // Username UserName *string `json:"UserName,omitempty" name:"UserName"` // Host from which a user can log in (corresponding to the `host` field for a MySQL user; a user is uniquely identified by username and host; this parameter is in IP format and ends with % for IP range; % can be entered; if this parameter is left empty, % will be used by default) Host *string `json:"Host,omitempty" name:"Host"` // User remarks Description *string `json:"Description,omitempty" name:"Description"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Last updated time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Read-only flag. 0: no; 1: for the account's SQL requests, the secondary will be used first, and if it is unavailable, the primary will be used; 2: the secondary will be used first, and if it is unavailable, the operation will fail. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed. // It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2. DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` }
type DBParamValue ¶
type DCDBInstanceInfo ¶
type DCDBInstanceInfo struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Application ID AppId *int64 `json:"AppId,omitempty" name:"AppId"` // 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"` // Numeric ID of a VPC VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` // Subnet Digital ID SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` // Status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Instance status. Valid values: `0` (creating), `1` (running task), `2` (running), `3` (uninitialized), `-1` (isolated), `4` (initializing), `5` (eliminating), `6` (restarting), `7` (migrating data) Status *int64 `json:"Status,omitempty" name:"Status"` // Private IP Vip *string `json:"Vip,omitempty" name:"Vip"` // Private network port Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Auto-renewal flag AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // Memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Number of shards ShardCount *int64 `json:"ShardCount,omitempty" name:"ShardCount"` // Expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Isolation time IsolatedTimestamp *string `json:"IsolatedTimestamp,omitempty" name:"IsolatedTimestamp"` // Account ID Uin *string `json:"Uin,omitempty" name:"Uin"` // Shard details ShardDetail []*ShardInfo `json:"ShardDetail,omitempty" name:"ShardDetail"` // Number of nodes. 2: one master and one slave; 3: one master and two slaves NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Temporary instance flag. 0: non-temporary instance IsTmp *int64 `json:"IsTmp,omitempty" name:"IsTmp"` // Dedicated cluster ID. If this parameter is empty, the instance is a non-dedicated cluster instance ExclusterId *string `json:"ExclusterId,omitempty" name:"ExclusterId"` // VPC ID in string type UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"` // VPC subnet ID in string type UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"` // Numeric ID of instance (this field is obsolete and should not be depended on) Id *uint64 `json:"Id,omitempty" name:"Id"` // Domain name for public network access, which can be resolved by the public network WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"` // Public IP address, which can be accessed over the public network WanVip *string `json:"WanVip,omitempty" name:"WanVip"` // Public network port WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"` // Product type ID (this field is obsolete and should not be depended on) Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Last updated time of an instance in the format of 2006-01-02 15:04:05 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Database engine DbEngine *string `json:"DbEngine,omitempty" name:"DbEngine"` // Database engine version DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"` // Billing mode Paymode *string `json:"Paymode,omitempty" name:"Paymode"` // Async task flow ID when an async task is in progress on an instance // Note: this field may return null, indicating that no valid values can be obtained. Locker *int64 `json:"Locker,omitempty" name:"Locker"` // Public network access status. 0: not enabled; 1: enabled; 2: disabled; 3: enabling WanStatus *int64 `json:"WanStatus,omitempty" name:"WanStatus"` // Whether the instance supports audit. 1: yes; 0: no IsAuditSupported *uint64 `json:"IsAuditSupported,omitempty" name:"IsAuditSupported"` // Number of CPU cores Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` // Indicates whether the instance uses IPv6 // Note: this field may return null, indicating that no valid values can be obtained. Ipv6Flag *uint64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"` // Private network IPv6 address // Note: this field may return null, indicating that no valid values can be obtained. Vipv6 *string `json:"Vipv6,omitempty" name:"Vipv6"` // Public network IPv6 address // Note: this field may return null, indicating that no valid values can be obtained. WanVipv6 *string `json:"WanVipv6,omitempty" name:"WanVipv6"` // Public network IPv6 port // Note: this field may return null, indicating that no valid values can be obtained. WanPortIpv6 *uint64 `json:"WanPortIpv6,omitempty" name:"WanPortIpv6"` // Public network IPv6 status // Note: this field may return null, indicating that no valid values can be obtained. WanStatusIpv6 *uint64 `json:"WanStatusIpv6,omitempty" name:"WanStatusIpv6"` // DCN type. Valid values: 0 (null), 1 (primary instance), 2 (disaster recovery instance) // Note: this field may return null, indicating that no valid values can be obtained. DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"` // DCN status. Valid values: 0 (null), 1 (creating), 2 (syncing), 3 (disconnected) // Note: this field may return null, indicating that no valid values can be obtained. DcnStatus *int64 `json:"DcnStatus,omitempty" name:"DcnStatus"` // The number of DCN disaster recovery instances // Note: this field may return null, indicating that no valid values can be obtained. DcnDstNum *int64 `json:"DcnDstNum,omitempty" name:"DcnDstNum"` // Instance type. Valid values: `1` (dedicated primary instance), `2` (standard primary instance), `3` (standard disaster recovery instance), `4` (dedicated disaster recovery instance) // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` }
type DCDBShardInfo ¶
type DCDBShardInfo struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Shard SQL passthrough ID, which is used to pass through SQL statements to the specified shard for execution ShardSerialId *string `json:"ShardSerialId,omitempty" name:"ShardSerialId"` // Globally unique shard ID ShardInstanceId *string `json:"ShardInstanceId,omitempty" name:"ShardInstanceId"` // Status. 0: creating; 1: processing; 2: running; 3: shard not initialized Status *int64 `json:"Status,omitempty" name:"Status"` // Status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // VPC ID in string format VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID in string format SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 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"` // Memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Number of nodes. 2: one primary and one secondary; 3: one primary and two secondaries NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Storage utilization in % StorageUsage *float64 `json:"StorageUsage,omitempty" name:"StorageUsage"` // Memory utilization in % MemoryUsage *float64 `json:"MemoryUsage,omitempty" name:"MemoryUsage"` // Numeric ID of a shard (this field is obsolete and should not be depended on) ShardId *int64 `json:"ShardId,omitempty" name:"ShardId"` // ProductID Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Proxy version ProxyVersion *string `json:"ProxyVersion,omitempty" name:"ProxyVersion"` // Billing mode // Note: this field may return null, indicating that no valid values can be obtained. Paymode *string `json:"Paymode,omitempty" name:"Paymode"` // Master AZ of a shard // Note: this field may return null, indicating that no valid values can be obtained. ShardMasterZone *string `json:"ShardMasterZone,omitempty" name:"ShardMasterZone"` // List of secondary AZs of a shard // Note: this field may return null, indicating that no valid values can be obtained. ShardSlaveZones []*string `json:"ShardSlaveZones,omitempty" name:"ShardSlaveZones"` // Number of CPU cores Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // The value range of shardkey, which includes 64 hash values, such as 0-31, 32-63. Range *string `json:"Range,omitempty" name:"Range"` }
type Database ¶
type Database struct { // Database name DbName *string `json:"DbName,omitempty" name:"DbName"` }
type DatabaseFunction ¶
type DatabaseFunction struct { // Function name Func *string `json:"Func,omitempty" name:"Func"` }
type DatabaseProcedure ¶
type DatabaseProcedure struct { // Stored procedure name Proc *string `json:"Proc,omitempty" name:"Proc"` }
type DatabaseTable ¶
type DatabaseTable struct { // Table name Table *string `json:"Table,omitempty" name:"Table"` }
type DatabaseView ¶
type DatabaseView struct { // View name View *string `json:"View,omitempty" name:"View"` }
type DcnDetailItem ¶
type DcnDetailItem struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Region where the instance resides Region *string `json:"Region,omitempty" name:"Region"` // Availability zone where the instance resides Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance IP address Vip *string `json:"Vip,omitempty" name:"Vip"` // Instance IPv6 address Vipv6 *string `json:"Vipv6,omitempty" name:"Vipv6"` // Instance port Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Instance status Status *int64 `json:"Status,omitempty" name:"Status"` // Instance status description StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // DCN flag. Valid values: `1` (primary), `2` (disaster recovery) DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"` // DCN status. Valid values: `0` (none), `1` (creating), `2` (syncing), `3` (disconnected) DcnStatus *int64 `json:"DcnStatus,omitempty" name:"DcnStatus"` // Number of CPU cores of the instance Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Instance memory capacity in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Instance storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Billing mode PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Creation time of the instance in the format of 2006-01-02 15:04:05 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Expiration time of the instance in the format of 2006-01-02 15:04:05 PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` // Instance type. Valid values: `1` (dedicated primary instance), `2` (non-dedicated primary instance), `3` (non-dedicated disaster recovery instance), and `4` (dedicated disaster recovery instance). InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` }
type DeleteAccountRequest ¶
type DeleteAccountRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Username UserName *string `json:"UserName,omitempty" name:"UserName"` // Access host allowed for a user Host *string `json:"Host,omitempty" name:"Host"` }
func NewDeleteAccountRequest ¶
func NewDeleteAccountRequest() (request *DeleteAccountRequest)
func (*DeleteAccountRequest) FromJsonString ¶
func (r *DeleteAccountRequest) 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 (*DeleteAccountRequest) ToJsonString ¶
func (r *DeleteAccountRequest) ToJsonString() string
type DeleteAccountResponse ¶
type DeleteAccountResponse 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 NewDeleteAccountResponse ¶
func NewDeleteAccountResponse() (response *DeleteAccountResponse)
func (*DeleteAccountResponse) FromJsonString ¶
func (r *DeleteAccountResponse) 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 (*DeleteAccountResponse) ToJsonString ¶
func (r *DeleteAccountResponse) ToJsonString() string
type DescribeAccountPrivilegesRequest ¶
type DescribeAccountPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Login username. UserName *string `json:"UserName,omitempty" name:"UserName"` // Access host allowed for a user. An account is uniquely identified by username and host. Host *string `json:"Host,omitempty" name:"Host"` // Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored DbName *string `json:"DbName,omitempty" name:"DbName"` // Type. Valid values: table; view; proc; func; \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored Type *string `json:"Type,omitempty" name:"Type"` // Type name. For example, if `Type` is table, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty Object *string `json:"Object,omitempty" name:"Object"` // If `Type` = table and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried ColName *string `json:"ColName,omitempty" name:"ColName"` }
func NewDescribeAccountPrivilegesRequest ¶
func NewDescribeAccountPrivilegesRequest() (request *DescribeAccountPrivilegesRequest)
func (*DescribeAccountPrivilegesRequest) FromJsonString ¶
func (r *DescribeAccountPrivilegesRequest) 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 (*DescribeAccountPrivilegesRequest) ToJsonString ¶
func (r *DescribeAccountPrivilegesRequest) ToJsonString() string
type DescribeAccountPrivilegesResponse ¶
type DescribeAccountPrivilegesResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of permissions. Privileges []*string `json:"Privileges,omitempty" name:"Privileges"` // Database account username UserName *string `json:"UserName,omitempty" name:"UserName"` // Database account host Host *string `json:"Host,omitempty" name:"Host"` // 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 NewDescribeAccountPrivilegesResponse ¶
func NewDescribeAccountPrivilegesResponse() (response *DescribeAccountPrivilegesResponse)
func (*DescribeAccountPrivilegesResponse) FromJsonString ¶
func (r *DescribeAccountPrivilegesResponse) 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 (*DescribeAccountPrivilegesResponse) ToJsonString ¶
func (r *DescribeAccountPrivilegesResponse) ToJsonString() string
type DescribeAccountsRequest ¶
type DescribeAccountsRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
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 { // Instance ID, which is passed through from the input parameters. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of instance users. // Note: this field may return null, indicating that no valid values can be obtained. Users []*DBAccount `json:"Users,omitempty" name:"Users"` // 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 DescribeDBLogFilesRequest ¶
type DescribeDBLogFilesRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Shard ID in the format of shard-7noic7tv ShardId *string `json:"ShardId,omitempty" name:"ShardId"` // Requested log type. Valid values: 1 (binlog); 2 (cold backup); 3 (errlog); 4 (slowlog). Type *int64 `json:"Type,omitempty" name:"Type"` }
func NewDescribeDBLogFilesRequest ¶
func NewDescribeDBLogFilesRequest() (request *DescribeDBLogFilesRequest)
func (*DescribeDBLogFilesRequest) FromJsonString ¶
func (r *DescribeDBLogFilesRequest) 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 (*DescribeDBLogFilesRequest) ToJsonString ¶
func (r *DescribeDBLogFilesRequest) ToJsonString() string
type DescribeDBLogFilesResponse ¶
type DescribeDBLogFilesResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Requested log type. Valid values: 1 (binlog); 2 (cold backup); 3 (errlog); 4 (slowlog). Type *uint64 `json:"Type,omitempty" name:"Type"` // Total number of requested logs Total *uint64 `json:"Total,omitempty" name:"Total"` // List of log files Files []*LogFileInfo `json:"Files,omitempty" name:"Files"` // For an instance in a VPC, this prefix plus URI can be used as the download address VpcPrefix *string `json:"VpcPrefix,omitempty" name:"VpcPrefix"` // For an instance in a common network, this prefix plus URI can be used as the download address NormalPrefix *string `json:"NormalPrefix,omitempty" name:"NormalPrefix"` // Shard ID in the format of shard-7noic7tv ShardId *string `json:"ShardId,omitempty" name:"ShardId"` // 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 NewDescribeDBLogFilesResponse ¶
func NewDescribeDBLogFilesResponse() (response *DescribeDBLogFilesResponse)
func (*DescribeDBLogFilesResponse) FromJsonString ¶
func (r *DescribeDBLogFilesResponse) 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 (*DescribeDBLogFilesResponse) ToJsonString ¶
func (r *DescribeDBLogFilesResponse) ToJsonString() string
type DescribeDBParametersRequest ¶
type DescribeDBParametersRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBParametersRequest ¶
func NewDescribeDBParametersRequest() (request *DescribeDBParametersRequest)
func (*DescribeDBParametersRequest) FromJsonString ¶
func (r *DescribeDBParametersRequest) 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 (*DescribeDBParametersRequest) ToJsonString ¶
func (r *DescribeDBParametersRequest) ToJsonString() string
type DescribeDBParametersResponse ¶
type DescribeDBParametersResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Requests the current parameter values of a DB Params []*ParamDesc `json:"Params,omitempty" name:"Params"` // 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 NewDescribeDBParametersResponse ¶
func NewDescribeDBParametersResponse() (response *DescribeDBParametersResponse)
func (*DescribeDBParametersResponse) FromJsonString ¶
func (r *DescribeDBParametersResponse) 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 (*DescribeDBParametersResponse) ToJsonString ¶
func (r *DescribeDBParametersResponse) ToJsonString() string
type DescribeDBSecurityGroupsRequest ¶
type DescribeDBSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name. Valid value: `dcdb`. Product *string `json:"Product,omitempty" name:"Product"` // Instance 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 details Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` // Instance VIP // Note: this field may return `null`, indicating that no valid values can be obtained. VIP *string `json:"VIP,omitempty" name:"VIP"` // Instance port // Note: this field may return `null`, indicating that no valid values can be obtained. VPort *int64 `json:"VPort,omitempty" name:"VPort"` // 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 DescribeDBSyncModeRequest ¶
type DescribeDBSyncModeRequest struct { *tchttp.BaseRequest // ID of an instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBSyncModeRequest ¶
func NewDescribeDBSyncModeRequest() (request *DescribeDBSyncModeRequest)
func (*DescribeDBSyncModeRequest) FromJsonString ¶
func (r *DescribeDBSyncModeRequest) 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 (*DescribeDBSyncModeRequest) ToJsonString ¶
func (r *DescribeDBSyncModeRequest) ToJsonString() string
type DescribeDBSyncModeResponse ¶
type DescribeDBSyncModeResponse struct { *tchttp.BaseResponse Response *struct { // Sync mode. 0: async; 1: strong sync; 2: downgradable strong sync SyncMode *int64 `json:"SyncMode,omitempty" name:"SyncMode"` // Whether a modification is in progress. 1: yes; 0: no. IsModifying *int64 `json:"IsModifying,omitempty" name:"IsModifying"` // Current sync mode. Valid values: `0` (async), `1` (sync). CurrentSyncMode *int64 `json:"CurrentSyncMode,omitempty" name:"CurrentSyncMode"` // 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 NewDescribeDBSyncModeResponse ¶
func NewDescribeDBSyncModeResponse() (response *DescribeDBSyncModeResponse)
func (*DescribeDBSyncModeResponse) FromJsonString ¶
func (r *DescribeDBSyncModeResponse) 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 (*DescribeDBSyncModeResponse) ToJsonString ¶
func (r *DescribeDBSyncModeResponse) ToJsonString() string
type DescribeDCDBInstanceNodeInfoRequest ¶
type DescribeDCDBInstanceNodeInfoRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The maximum number of results returned at a time. Value range: (0-100]. Default value: `100`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset of the returned results. Default value: `0`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeDCDBInstanceNodeInfoRequest ¶
func NewDescribeDCDBInstanceNodeInfoRequest() (request *DescribeDCDBInstanceNodeInfoRequest)
func (*DescribeDCDBInstanceNodeInfoRequest) FromJsonString ¶
func (r *DescribeDCDBInstanceNodeInfoRequest) 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 (*DescribeDCDBInstanceNodeInfoRequest) ToJsonString ¶
func (r *DescribeDCDBInstanceNodeInfoRequest) ToJsonString() string
type DescribeDCDBInstanceNodeInfoResponse ¶
type DescribeDCDBInstanceNodeInfoResponse struct { *tchttp.BaseResponse Response *struct { // Total number of nodes TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Node information NodesInfo []*BriefNodeInfo `json:"NodesInfo,omitempty" name:"NodesInfo"` // 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 NewDescribeDCDBInstanceNodeInfoResponse ¶
func NewDescribeDCDBInstanceNodeInfoResponse() (response *DescribeDCDBInstanceNodeInfoResponse)
func (*DescribeDCDBInstanceNodeInfoResponse) FromJsonString ¶
func (r *DescribeDCDBInstanceNodeInfoResponse) 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 (*DescribeDCDBInstanceNodeInfoResponse) ToJsonString ¶
func (r *DescribeDCDBInstanceNodeInfoResponse) ToJsonString() string
type DescribeDCDBInstancesRequest ¶
type DescribeDCDBInstancesRequest struct { *tchttp.BaseRequest // Query by instance ID or IDs. Instance ID is in the format of dcdbt-2t4cf98d InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Search field name. Valid values: instancename (search by instance name); vip (search by private IP); all (search by instance ID, instance name, and private IP). SearchName *string `json:"SearchName,omitempty" name:"SearchName"` // Search keyword. Fuzzy search is supported. Multiple keywords should be separated by line breaks (`\n`). SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // Query by project ID ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` // Whether to search by VPC IsFilterVpc *bool `json:"IsFilterVpc,omitempty" name:"IsFilterVpc"` // VPC ID, which is valid when `IsFilterVpc` is 1 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID, which is valid when `IsFilterVpc` is 1 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Sort by field. Valid values: projectId; createtime; instancename OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sort by type. Valid values: desc; asc OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 10. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 1: non-dedicated cluster; 2: dedicated cluster; 0: all ExclusterType *int64 `json:"ExclusterType,omitempty" name:"ExclusterType"` // Identifies whether to use the `ExclusterType` field. false: no; true: yes IsFilterExcluster *bool `json:"IsFilterExcluster,omitempty" name:"IsFilterExcluster"` // Dedicated cluster ID ExclusterIds []*string `json:"ExclusterIds,omitempty" name:"ExclusterIds"` // Tag key used in queries TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Instance types used in filtering. Valid values: 1 (dedicated instance), 2 (primary instance), 3 (disaster recovery instance). Multiple values should be separated by commas. FilterInstanceType *string `json:"FilterInstanceType,omitempty" name:"FilterInstanceType"` // Use this filter to include instances in specific statuses Status []*int64 `json:"Status,omitempty" name:"Status"` // Use this filter to exclude instances in specific statuses ExcludeStatus []*int64 `json:"ExcludeStatus,omitempty" name:"ExcludeStatus"` }
func NewDescribeDCDBInstancesRequest ¶
func NewDescribeDCDBInstancesRequest() (request *DescribeDCDBInstancesRequest)
func (*DescribeDCDBInstancesRequest) FromJsonString ¶
func (r *DescribeDCDBInstancesRequest) 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 (*DescribeDCDBInstancesRequest) ToJsonString ¶
func (r *DescribeDCDBInstancesRequest) ToJsonString() string
type DescribeDCDBInstancesResponse ¶
type DescribeDCDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible instances TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance details Instances []*DCDBInstanceInfo `json:"Instances,omitempty" name:"Instances"` // 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 NewDescribeDCDBInstancesResponse ¶
func NewDescribeDCDBInstancesResponse() (response *DescribeDCDBInstancesResponse)
func (*DescribeDCDBInstancesResponse) FromJsonString ¶
func (r *DescribeDCDBInstancesResponse) 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 (*DescribeDCDBInstancesResponse) ToJsonString ¶
func (r *DescribeDCDBInstancesResponse) ToJsonString() string
type DescribeDCDBShardsRequest ¶
type DescribeDCDBShardsRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Shard ID list. ShardInstanceIds []*string `json:"ShardInstanceIds,omitempty" name:"ShardInstanceIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Sort by field. Only `createtime` is supported currently OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sort by type. Valid values: desc; asc OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` }
func NewDescribeDCDBShardsRequest ¶
func NewDescribeDCDBShardsRequest() (request *DescribeDCDBShardsRequest)
func (*DescribeDCDBShardsRequest) FromJsonString ¶
func (r *DescribeDCDBShardsRequest) 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 (*DescribeDCDBShardsRequest) ToJsonString ¶
func (r *DescribeDCDBShardsRequest) ToJsonString() string
type DescribeDCDBShardsResponse ¶
type DescribeDCDBShardsResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible shards TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Shard information list Shards []*DCDBShardInfo `json:"Shards,omitempty" name:"Shards"` // DCN type. Valid values: 0 (null), 1 (primary instance), 2 (disaster recovery instance) // Note: this field may return null, indicating that no valid values can be obtained. DcnFlag *int64 `json:"DcnFlag,omitempty" name:"DcnFlag"` // 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 NewDescribeDCDBShardsResponse ¶
func NewDescribeDCDBShardsResponse() (response *DescribeDCDBShardsResponse)
func (*DescribeDCDBShardsResponse) FromJsonString ¶
func (r *DescribeDCDBShardsResponse) 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 (*DescribeDCDBShardsResponse) ToJsonString ¶
func (r *DescribeDCDBShardsResponse) ToJsonString() string
type DescribeDatabaseObjectsRequest ¶
type DescribeDatabaseObjectsRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database name, which can be obtained through the `DescribeDatabases` API. DbName *string `json:"DbName,omitempty" name:"DbName"` }
func NewDescribeDatabaseObjectsRequest ¶
func NewDescribeDatabaseObjectsRequest() (request *DescribeDatabaseObjectsRequest)
func (*DescribeDatabaseObjectsRequest) FromJsonString ¶
func (r *DescribeDatabaseObjectsRequest) 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 (*DescribeDatabaseObjectsRequest) ToJsonString ¶
func (r *DescribeDatabaseObjectsRequest) ToJsonString() string
type DescribeDatabaseObjectsResponse ¶
type DescribeDatabaseObjectsResponse struct { *tchttp.BaseResponse Response *struct { // Passed through from the input parameters. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database name. DbName *string `json:"DbName,omitempty" name:"DbName"` // List of tables. Tables []*DatabaseTable `json:"Tables,omitempty" name:"Tables"` // List of views. Views []*DatabaseView `json:"Views,omitempty" name:"Views"` // List of stored procedures. Procs []*DatabaseProcedure `json:"Procs,omitempty" name:"Procs"` // List of functions. Funcs []*DatabaseFunction `json:"Funcs,omitempty" name:"Funcs"` // 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 NewDescribeDatabaseObjectsResponse ¶
func NewDescribeDatabaseObjectsResponse() (response *DescribeDatabaseObjectsResponse)
func (*DescribeDatabaseObjectsResponse) FromJsonString ¶
func (r *DescribeDatabaseObjectsResponse) 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 (*DescribeDatabaseObjectsResponse) ToJsonString ¶
func (r *DescribeDatabaseObjectsResponse) ToJsonString() string
type DescribeDatabaseTableRequest ¶
type DescribeDatabaseTableRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database name, which can be obtained through the `DescribeDatabases` API. DbName *string `json:"DbName,omitempty" name:"DbName"` // Table name, which can be obtained through the `DescribeDatabaseObjects` API. Table *string `json:"Table,omitempty" name:"Table"` }
func NewDescribeDatabaseTableRequest ¶
func NewDescribeDatabaseTableRequest() (request *DescribeDatabaseTableRequest)
func (*DescribeDatabaseTableRequest) FromJsonString ¶
func (r *DescribeDatabaseTableRequest) 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 (*DescribeDatabaseTableRequest) ToJsonString ¶
func (r *DescribeDatabaseTableRequest) ToJsonString() string
type DescribeDatabaseTableResponse ¶
type DescribeDatabaseTableResponse struct { *tchttp.BaseResponse Response *struct { // Instance name. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database name. DbName *string `json:"DbName,omitempty" name:"DbName"` // Table name. Table *string `json:"Table,omitempty" name:"Table"` // Column information. Cols []*TableColumn `json:"Cols,omitempty" name:"Cols"` // 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 NewDescribeDatabaseTableResponse ¶
func NewDescribeDatabaseTableResponse() (response *DescribeDatabaseTableResponse)
func (*DescribeDatabaseTableResponse) FromJsonString ¶
func (r *DescribeDatabaseTableResponse) 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 (*DescribeDatabaseTableResponse) ToJsonString ¶
func (r *DescribeDatabaseTableResponse) ToJsonString() string
type DescribeDatabasesRequest ¶
type DescribeDatabasesRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow7t8lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDatabasesRequest ¶
func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest)
func (*DescribeDatabasesRequest) FromJsonString ¶
func (r *DescribeDatabasesRequest) 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 (*DescribeDatabasesRequest) ToJsonString ¶
func (r *DescribeDatabasesRequest) ToJsonString() string
type DescribeDatabasesResponse ¶
type DescribeDatabasesResponse struct { *tchttp.BaseResponse Response *struct { // List of databases on an instance. Databases []*Database `json:"Databases,omitempty" name:"Databases"` // Passed through from the input parameters. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 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 NewDescribeDatabasesResponse ¶
func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse)
func (*DescribeDatabasesResponse) FromJsonString ¶
func (r *DescribeDatabasesResponse) 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 (*DescribeDatabasesResponse) ToJsonString ¶
func (r *DescribeDatabasesResponse) ToJsonString() string
type DescribeDcnDetailRequest ¶
type DescribeDcnDetailRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDcnDetailRequest ¶
func NewDescribeDcnDetailRequest() (request *DescribeDcnDetailRequest)
func (*DescribeDcnDetailRequest) FromJsonString ¶
func (r *DescribeDcnDetailRequest) 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 (*DescribeDcnDetailRequest) ToJsonString ¶
func (r *DescribeDcnDetailRequest) ToJsonString() string
type DescribeDcnDetailResponse ¶
type DescribeDcnDetailResponse struct { *tchttp.BaseResponse Response *struct { // DCN synchronization details DcnDetails []*DcnDetailItem `json:"DcnDetails,omitempty" name:"DcnDetails"` // 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 NewDescribeDcnDetailResponse ¶
func NewDescribeDcnDetailResponse() (response *DescribeDcnDetailResponse)
func (*DescribeDcnDetailResponse) FromJsonString ¶
func (r *DescribeDcnDetailResponse) 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 (*DescribeDcnDetailResponse) ToJsonString ¶
func (r *DescribeDcnDetailResponse) ToJsonString() string
type DescribeFlowRequest ¶
type DescribeFlowRequest struct { *tchttp.BaseRequest // Task ID returned by an async request API. FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` }
func NewDescribeFlowRequest ¶
func NewDescribeFlowRequest() (request *DescribeFlowRequest)
func (*DescribeFlowRequest) FromJsonString ¶
func (r *DescribeFlowRequest) 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 (*DescribeFlowRequest) ToJsonString ¶
func (r *DescribeFlowRequest) ToJsonString() string
type DescribeFlowResponse ¶
type DescribeFlowResponse struct { *tchttp.BaseResponse Response *struct { // Task status. Valid values: `0` (succeeded), `1` (failed), `2` (running) Status *int64 `json:"Status,omitempty" name:"Status"` // 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 NewDescribeFlowResponse ¶
func NewDescribeFlowResponse() (response *DescribeFlowResponse)
func (*DescribeFlowResponse) FromJsonString ¶
func (r *DescribeFlowResponse) 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 (*DescribeFlowResponse) ToJsonString ¶
func (r *DescribeFlowResponse) ToJsonString() string
type DescribeProjectSecurityGroupsRequest ¶
type DescribeProjectSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name. Valid value: `dcdb`. Product *string `json:"Product,omitempty" name:"Product"` // 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 DescribeProjectsRequest ¶
type DescribeProjectsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeProjectsRequest ¶
func NewDescribeProjectsRequest() (request *DescribeProjectsRequest)
func (*DescribeProjectsRequest) FromJsonString ¶
func (r *DescribeProjectsRequest) 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 (*DescribeProjectsRequest) ToJsonString ¶
func (r *DescribeProjectsRequest) ToJsonString() string
type DescribeProjectsResponse ¶
type DescribeProjectsResponse struct { *tchttp.BaseResponse Response *struct { // Project list Projects []*Project `json:"Projects,omitempty" name:"Projects"` // 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 NewDescribeProjectsResponse ¶
func NewDescribeProjectsResponse() (response *DescribeProjectsResponse)
func (*DescribeProjectsResponse) FromJsonString ¶
func (r *DescribeProjectsResponse) 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 (*DescribeProjectsResponse) ToJsonString ¶
func (r *DescribeProjectsResponse) ToJsonString() string
type DestroyDCDBInstanceRequest ¶
type DestroyDCDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDestroyDCDBInstanceRequest ¶
func NewDestroyDCDBInstanceRequest() (request *DestroyDCDBInstanceRequest)
func (*DestroyDCDBInstanceRequest) FromJsonString ¶
func (r *DestroyDCDBInstanceRequest) 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 (*DestroyDCDBInstanceRequest) ToJsonString ¶
func (r *DestroyDCDBInstanceRequest) ToJsonString() string
type DestroyDCDBInstanceResponse ¶
type DestroyDCDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID, which is the same as the request parameter `InstanceId`. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Async task ID, which can be used in the [DescribeFlow](https://intl.cloud.tencent.com/document/product/557/56485?from_cn_redirect=1) API to query the async task result. 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 NewDestroyDCDBInstanceResponse ¶
func NewDestroyDCDBInstanceResponse() (response *DestroyDCDBInstanceResponse)
func (*DestroyDCDBInstanceResponse) FromJsonString ¶
func (r *DestroyDCDBInstanceResponse) 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 (*DestroyDCDBInstanceResponse) ToJsonString ¶
func (r *DestroyDCDBInstanceResponse) ToJsonString() string
type DestroyHourDCDBInstanceRequest ¶
type DestroyHourDCDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDestroyHourDCDBInstanceRequest ¶
func NewDestroyHourDCDBInstanceRequest() (request *DestroyHourDCDBInstanceRequest)
func (*DestroyHourDCDBInstanceRequest) FromJsonString ¶
func (r *DestroyHourDCDBInstanceRequest) 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 (*DestroyHourDCDBInstanceRequest) ToJsonString ¶
func (r *DestroyHourDCDBInstanceRequest) ToJsonString() string
type DestroyHourDCDBInstanceResponse ¶
type DestroyHourDCDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID, which can be used in the [DescribeFlow](https://intl.cloud.tencent.com/document/product/557/56485?from_cn_redirect=1) API to query the async task result. FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Instance ID, which is the same as the request parameter `InstanceId`. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 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 NewDestroyHourDCDBInstanceResponse ¶
func NewDestroyHourDCDBInstanceResponse() (response *DestroyHourDCDBInstanceResponse)
func (*DestroyHourDCDBInstanceResponse) FromJsonString ¶
func (r *DestroyHourDCDBInstanceResponse) 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 (*DestroyHourDCDBInstanceResponse) ToJsonString ¶
func (r *DestroyHourDCDBInstanceResponse) ToJsonString() string
type DisassociateSecurityGroupsRequest ¶
type DisassociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name. Valid value: `dcdb`. Product *string `json:"Product,omitempty" name:"Product"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // Instance ID list, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDisassociateSecurityGroupsRequest ¶
func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest)
func (*DisassociateSecurityGroupsRequest) FromJsonString ¶
func (r *DisassociateSecurityGroupsRequest) 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 (*DisassociateSecurityGroupsRequest) ToJsonString ¶
func (r *DisassociateSecurityGroupsRequest) ToJsonString() string
type DisassociateSecurityGroupsResponse ¶
type DisassociateSecurityGroupsResponse 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 NewDisassociateSecurityGroupsResponse ¶
func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse)
func (*DisassociateSecurityGroupsResponse) FromJsonString ¶
func (r *DisassociateSecurityGroupsResponse) 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 (*DisassociateSecurityGroupsResponse) ToJsonString ¶
func (r *DisassociateSecurityGroupsResponse) ToJsonString() string
type GrantAccountPrivilegesRequest ¶
type GrantAccountPrivilegesRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Login username. UserName *string `json:"UserName,omitempty" name:"UserName"` // Access host allowed for a user. An account is uniquely identified by username and host. Host *string `json:"Host,omitempty" name:"Host"` // Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored DbName *string `json:"DbName,omitempty" name:"DbName"` // Global permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE TEMPORARY TABLES; LOCK TABLES; EXECUTE; CREATE VIEW; SHOW VIEW; CREATE ROUTINE; ALTER ROUTINE; EVENT; TRIGGER; SHOW DATABASES // Database permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE TEMPORARY TABLES; LOCK TABLES; EXECUTE; CREATE VIEW; SHOW VIEW; CREATE ROUTINE; ALTER ROUTINE; EVENT; TRIGGER // Table/view permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE VIEW; SHOW VIEW; TRIGGER // Stored procedure/function permission. Valid values: ALTER ROUTINE; EXECUTE // Field permission. Valid values: INSERT; REFERENCES; SELECT; UPDATE Privileges []*string `json:"Privileges,omitempty" name:"Privileges"` // Type. Valid values: table; view; proc; func; \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be set (i.e., `db.\*`), in which case the `Object` parameter will be ignored Type *string `json:"Type,omitempty" name:"Type"` // Type name. For example, if `Type` is table, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty Object *string `json:"Object,omitempty" name:"Object"` // If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the field ColName *string `json:"ColName,omitempty" name:"ColName"` }
func NewGrantAccountPrivilegesRequest ¶
func NewGrantAccountPrivilegesRequest() (request *GrantAccountPrivilegesRequest)
func (*GrantAccountPrivilegesRequest) FromJsonString ¶
func (r *GrantAccountPrivilegesRequest) 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 (*GrantAccountPrivilegesRequest) ToJsonString ¶
func (r *GrantAccountPrivilegesRequest) ToJsonString() string
type GrantAccountPrivilegesResponse ¶
type GrantAccountPrivilegesResponse 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 NewGrantAccountPrivilegesResponse ¶
func NewGrantAccountPrivilegesResponse() (response *GrantAccountPrivilegesResponse)
func (*GrantAccountPrivilegesResponse) FromJsonString ¶
func (r *GrantAccountPrivilegesResponse) 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 (*GrantAccountPrivilegesResponse) ToJsonString ¶
func (r *GrantAccountPrivilegesResponse) ToJsonString() string
type InitDCDBInstancesRequest ¶
type InitDCDBInstancesRequest struct { *tchttp.BaseRequest // List of IDs of instances to be initialized. The ID is in the format of `dcdbt-ow728lmc` and can be obtained through the `DescribeDCDBInstances` API. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // List of parameters. Valid values: character_set_server (character set; required); lower_case_table_names (table name case sensitivity; required; 0: case-sensitive; 1: case-insensitive); innodb_page_size (InnoDB data page; default size: 16 KB); sync_mode (sync mode; 0: async; 1: strong sync; 2: downgradable strong sync; default value: strong sync). Params []*DBParamValue `json:"Params,omitempty" name:"Params"` }
func NewInitDCDBInstancesRequest ¶
func NewInitDCDBInstancesRequest() (request *InitDCDBInstancesRequest)
func (*InitDCDBInstancesRequest) FromJsonString ¶
func (r *InitDCDBInstancesRequest) 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 (*InitDCDBInstancesRequest) ToJsonString ¶
func (r *InitDCDBInstancesRequest) ToJsonString() string
type InitDCDBInstancesResponse ¶
type InitDCDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID. The task status can be queried through the `DescribeFlow` API. FlowIds []*uint64 `json:"FlowIds,omitempty" name:"FlowIds"` // Passed through from the input parameters. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // 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 NewInitDCDBInstancesResponse ¶
func NewInitDCDBInstancesResponse() (response *InitDCDBInstancesResponse)
func (*InitDCDBInstancesResponse) FromJsonString ¶
func (r *InitDCDBInstancesResponse) 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 (*InitDCDBInstancesResponse) ToJsonString ¶
func (r *InitDCDBInstancesResponse) ToJsonString() string
type LogFileInfo ¶
type LogFileInfo struct { // Last modified time of a log Mtime *uint64 `json:"Mtime,omitempty" name:"Mtime"` // File length Length *uint64 `json:"Length,omitempty" name:"Length"` // Uniform resource identifier (URI) used during log download Uri *string `json:"Uri,omitempty" name:"Uri"` // Filename FileName *string `json:"FileName,omitempty" name:"FileName"` }
type ModifyAccountDescriptionRequest ¶
type ModifyAccountDescriptionRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Login username. UserName *string `json:"UserName,omitempty" name:"UserName"` // Access host allowed for a user. An account is uniquely identified by username and host. Host *string `json:"Host,omitempty" name:"Host"` // New account remarks, which can contain 0-256 characters. Description *string `json:"Description,omitempty" name:"Description"` }
func NewModifyAccountDescriptionRequest ¶
func NewModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequest)
func (*ModifyAccountDescriptionRequest) FromJsonString ¶
func (r *ModifyAccountDescriptionRequest) 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 (*ModifyAccountDescriptionRequest) ToJsonString ¶
func (r *ModifyAccountDescriptionRequest) ToJsonString() string
type ModifyAccountDescriptionResponse ¶
type ModifyAccountDescriptionResponse 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 NewModifyAccountDescriptionResponse ¶
func NewModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse)
func (*ModifyAccountDescriptionResponse) FromJsonString ¶
func (r *ModifyAccountDescriptionResponse) 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 (*ModifyAccountDescriptionResponse) ToJsonString ¶
func (r *ModifyAccountDescriptionResponse) ToJsonString() string
type ModifyDBInstanceSecurityGroupsRequest ¶
type ModifyDBInstanceSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name. Valid value: `dcdb`. Product *string `json:"Product,omitempty" name:"Product"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of IDs of security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` }
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 ModifyDBInstancesProjectRequest ¶
type ModifyDBInstancesProjectRequest struct { *tchttp.BaseRequest // List of IDs of instances to be modified. Instance ID is in the format of dcdbt-ow728lmc. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // ID of the project to be assigned, which can be obtained through the `DescribeProjects` API. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewModifyDBInstancesProjectRequest ¶
func NewModifyDBInstancesProjectRequest() (request *ModifyDBInstancesProjectRequest)
func (*ModifyDBInstancesProjectRequest) FromJsonString ¶
func (r *ModifyDBInstancesProjectRequest) 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 (*ModifyDBInstancesProjectRequest) ToJsonString ¶
func (r *ModifyDBInstancesProjectRequest) ToJsonString() string
type ModifyDBInstancesProjectResponse ¶
type ModifyDBInstancesProjectResponse 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 NewModifyDBInstancesProjectResponse ¶
func NewModifyDBInstancesProjectResponse() (response *ModifyDBInstancesProjectResponse)
func (*ModifyDBInstancesProjectResponse) FromJsonString ¶
func (r *ModifyDBInstancesProjectResponse) 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 (*ModifyDBInstancesProjectResponse) ToJsonString ¶
func (r *ModifyDBInstancesProjectResponse) ToJsonString() string
type ModifyDBParametersRequest ¶
type ModifyDBParametersRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of parameters. Every element is a combination of `Param` and `Value`. Params []*DBParamValue `json:"Params,omitempty" name:"Params"` }
func NewModifyDBParametersRequest ¶
func NewModifyDBParametersRequest() (request *ModifyDBParametersRequest)
func (*ModifyDBParametersRequest) FromJsonString ¶
func (r *ModifyDBParametersRequest) 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 (*ModifyDBParametersRequest) ToJsonString ¶
func (r *ModifyDBParametersRequest) ToJsonString() string
type ModifyDBParametersResponse ¶
type ModifyDBParametersResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Parameter modification results Result []*ParamModifyResult `json:"Result,omitempty" name:"Result"` // 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 NewModifyDBParametersResponse ¶
func NewModifyDBParametersResponse() (response *ModifyDBParametersResponse)
func (*ModifyDBParametersResponse) FromJsonString ¶
func (r *ModifyDBParametersResponse) 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 (*ModifyDBParametersResponse) ToJsonString ¶
func (r *ModifyDBParametersResponse) ToJsonString() string
type ModifyDBSyncModeRequest ¶
type ModifyDBSyncModeRequest struct { *tchttp.BaseRequest // ID of an instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sync mode. 0: async; 1: strong sync; 2: downgradable strong sync SyncMode *int64 `json:"SyncMode,omitempty" name:"SyncMode"` }
func NewModifyDBSyncModeRequest ¶
func NewModifyDBSyncModeRequest() (request *ModifyDBSyncModeRequest)
func (*ModifyDBSyncModeRequest) FromJsonString ¶
func (r *ModifyDBSyncModeRequest) 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 (*ModifyDBSyncModeRequest) ToJsonString ¶
func (r *ModifyDBSyncModeRequest) ToJsonString() string
type ModifyDBSyncModeResponse ¶
type ModifyDBSyncModeResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID. The task status can be queried through the `DescribeFlow` API. 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 NewModifyDBSyncModeResponse ¶
func NewModifyDBSyncModeResponse() (response *ModifyDBSyncModeResponse)
func (*ModifyDBSyncModeResponse) FromJsonString ¶
func (r *ModifyDBSyncModeResponse) 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 (*ModifyDBSyncModeResponse) ToJsonString ¶
func (r *ModifyDBSyncModeResponse) ToJsonString() string
type OpenDBExtranetAccessRequest ¶
type OpenDBExtranetAccessRequest struct { *tchttp.BaseRequest // ID of an instance for which to enable public network access. The ID is in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether IPv6 is used. Default value: 0 Ipv6Flag *int64 `json:"Ipv6Flag,omitempty" name:"Ipv6Flag"` }
func NewOpenDBExtranetAccessRequest ¶
func NewOpenDBExtranetAccessRequest() (request *OpenDBExtranetAccessRequest)
func (*OpenDBExtranetAccessRequest) FromJsonString ¶
func (r *OpenDBExtranetAccessRequest) 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 (*OpenDBExtranetAccessRequest) ToJsonString ¶
func (r *OpenDBExtranetAccessRequest) ToJsonString() string
type OpenDBExtranetAccessResponse ¶
type OpenDBExtranetAccessResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID. The task status can be queried through the `DescribeFlow` API. 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 NewOpenDBExtranetAccessResponse ¶
func NewOpenDBExtranetAccessResponse() (response *OpenDBExtranetAccessResponse)
func (*OpenDBExtranetAccessResponse) FromJsonString ¶
func (r *OpenDBExtranetAccessResponse) 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 (*OpenDBExtranetAccessResponse) ToJsonString ¶
func (r *OpenDBExtranetAccessResponse) ToJsonString() string
type ParamConstraint ¶
type ParamConstraint struct { // Constraint type, such as enum and section Type *string `json:"Type,omitempty" name:"Type"` // List of valid values when constraint type is `enum` Enum *string `json:"Enum,omitempty" name:"Enum"` // Range when constraint type is `section` // Note: this field may return null, indicating that no valid values can be obtained. Range *ConstraintRange `json:"Range,omitempty" name:"Range"` // List of valid values when constraint type is `string` String *string `json:"String,omitempty" name:"String"` }
type ParamDesc ¶
type ParamDesc struct { // Parameter name Param *string `json:"Param,omitempty" name:"Param"` // Current parameter value Value *string `json:"Value,omitempty" name:"Value"` // Previously set value, which is the same as `value` after the parameter takes effect. If no value has been set, this field will not be returned. // Note: this field may return null, indicating that no valid values can be obtained. SetValue *string `json:"SetValue,omitempty" name:"SetValue"` // Default value Default *string `json:"Default,omitempty" name:"Default"` // Parameter constraint Constraint *ParamConstraint `json:"Constraint,omitempty" name:"Constraint"` // Whether a value has been set. false: no, true: yes HaveSetValue *bool `json:"HaveSetValue,omitempty" name:"HaveSetValue"` }
type ParamModifyResult ¶
type Project ¶
type Project struct { // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // The UIN of the resource owner (root account) OwnerUin *int64 `json:"OwnerUin,omitempty" name:"OwnerUin"` // Application ID AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Project name Name *string `json:"Name,omitempty" name:"Name"` // Creator UIN CreatorUin *int64 `json:"CreatorUin,omitempty" name:"CreatorUin"` // Source platform SrcPlat *string `json:"SrcPlat,omitempty" name:"SrcPlat"` // Source APPID SrcAppId *int64 `json:"SrcAppId,omitempty" name:"SrcAppId"` // Project status. Valid values: `0` (normal), `-1` (disabled), `3` (default project). Status *int64 `json:"Status,omitempty" name:"Status"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Whether it is the default project. Valid values: `1` (yes), `0` (no). IsDefault *int64 `json:"IsDefault,omitempty" name:"IsDefault"` // Description Info *string `json:"Info,omitempty" name:"Info"` }
type ResetAccountPasswordRequest ¶
type ResetAccountPasswordRequest struct { *tchttp.BaseRequest // Instance ID in the format of dcdbt-ow728lmc. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Login username. UserName *string `json:"UserName,omitempty" name:"UserName"` // Access host allowed for a user. An account is uniquely identified by username and host. Host *string `json:"Host,omitempty" name:"Host"` // New password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks. Password *string `json:"Password,omitempty" name:"Password"` }
func NewResetAccountPasswordRequest ¶
func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest)
func (*ResetAccountPasswordRequest) FromJsonString ¶
func (r *ResetAccountPasswordRequest) 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 (*ResetAccountPasswordRequest) ToJsonString ¶
func (r *ResetAccountPasswordRequest) ToJsonString() string
type ResetAccountPasswordResponse ¶
type ResetAccountPasswordResponse 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 NewResetAccountPasswordResponse ¶
func NewResetAccountPasswordResponse() (response *ResetAccountPasswordResponse)
func (*ResetAccountPasswordResponse) FromJsonString ¶
func (r *ResetAccountPasswordResponse) 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 (*ResetAccountPasswordResponse) ToJsonString ¶
func (r *ResetAccountPasswordResponse) ToJsonString() string
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"` // 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"` // Inbound rule Inbound []*SecurityGroupBound `json:"Inbound,omitempty" name:"Inbound"` // Outbound rule Outbound []*SecurityGroupBound `json:"Outbound,omitempty" name:"Outbound"` }
type SecurityGroupBound ¶
type SecurityGroupBound struct { // Policy, which can be `ACCEPT` or `DROP` Action *string `json:"Action,omitempty" name:"Action"` // Source IP or source 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. UDP and TCP are supported. IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` }
type ShardInfo ¶
type ShardInfo struct { // Shard ID ShardInstanceId *string `json:"ShardInstanceId,omitempty" name:"ShardInstanceId"` // Shard set ID ShardSerialId *string `json:"ShardSerialId,omitempty" name:"ShardSerialId"` // Status. 0: creating; 1: processing; 2: running; 3: shard not initialized; -2: shard deleted Status *int64 `json:"Status,omitempty" name:"Status"` // Creation time Createtime *string `json:"Createtime,omitempty" name:"Createtime"` // Memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Numeric ID of a shard ShardId *int64 `json:"ShardId,omitempty" name:"ShardId"` // Number of nodes. 2: one primary and one secondary; 3: one primary and two secondaries NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Product type ID (this field is obsolete and should not be depended on) Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Number of CPU cores Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` }