Documentation ¶
Index ¶
- Constants
- type AccountCreateInfo
- type AccountDetail
- type AccountPassword
- type AccountPrivilege
- type AccountPrivilegeModifyInfo
- type AccountRemark
- type Backup
- type BackupFile
- type Client
- func (c *Client) CloneDB(request *CloneDBRequest) (response *CloneDBResponse, err error)
- func (c *Client) CloneDBWithContext(ctx context.Context, request *CloneDBRequest) (response *CloneDBResponse, 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) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error)
- func (c *Client) CreateBackupMigration(request *CreateBackupMigrationRequest) (response *CreateBackupMigrationResponse, err error)
- func (c *Client) CreateBackupMigrationWithContext(ctx context.Context, request *CreateBackupMigrationRequest) (response *CreateBackupMigrationResponse, err error)
- func (c *Client) CreateBackupWithContext(ctx context.Context, request *CreateBackupRequest) (response *CreateBackupResponse, err error)
- func (c *Client) CreateDB(request *CreateDBRequest) (response *CreateDBResponse, err error)
- func (c *Client) CreateDBInstances(request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
- func (c *Client) CreateDBInstancesWithContext(ctx context.Context, request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
- func (c *Client) CreateDBWithContext(ctx context.Context, request *CreateDBRequest) (response *CreateDBResponse, err error)
- func (c *Client) CreateIncrementalMigration(request *CreateIncrementalMigrationRequest) (response *CreateIncrementalMigrationResponse, err error)
- func (c *Client) CreateIncrementalMigrationWithContext(ctx context.Context, request *CreateIncrementalMigrationRequest) (response *CreateIncrementalMigrationResponse, err error)
- func (c *Client) CreateMigration(request *CreateMigrationRequest) (response *CreateMigrationResponse, err error)
- func (c *Client) CreateMigrationWithContext(ctx context.Context, request *CreateMigrationRequest) (response *CreateMigrationResponse, 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) DeleteBackupMigration(request *DeleteBackupMigrationRequest) (response *DeleteBackupMigrationResponse, err error)
- func (c *Client) DeleteBackupMigrationWithContext(ctx context.Context, request *DeleteBackupMigrationRequest) (response *DeleteBackupMigrationResponse, err error)
- func (c *Client) DeleteDB(request *DeleteDBRequest) (response *DeleteDBResponse, err error)
- func (c *Client) DeleteDBWithContext(ctx context.Context, request *DeleteDBRequest) (response *DeleteDBResponse, err error)
- func (c *Client) DeleteIncrementalMigration(request *DeleteIncrementalMigrationRequest) (response *DeleteIncrementalMigrationResponse, err error)
- func (c *Client) DeleteIncrementalMigrationWithContext(ctx context.Context, request *DeleteIncrementalMigrationRequest) (response *DeleteIncrementalMigrationResponse, err error)
- func (c *Client) DeleteMigration(request *DeleteMigrationRequest) (response *DeleteMigrationResponse, err error)
- func (c *Client) DeleteMigrationWithContext(ctx context.Context, request *DeleteMigrationRequest) (response *DeleteMigrationResponse, 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) DescribeBackupCommand(request *DescribeBackupCommandRequest) (response *DescribeBackupCommandResponse, err error)
- func (c *Client) DescribeBackupCommandWithContext(ctx context.Context, request *DescribeBackupCommandRequest) (response *DescribeBackupCommandResponse, err error)
- func (c *Client) DescribeBackupFiles(request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)
- func (c *Client) DescribeBackupFilesWithContext(ctx context.Context, request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)
- func (c *Client) DescribeBackupMigration(request *DescribeBackupMigrationRequest) (response *DescribeBackupMigrationResponse, err error)
- func (c *Client) DescribeBackupMigrationWithContext(ctx context.Context, request *DescribeBackupMigrationRequest) (response *DescribeBackupMigrationResponse, err error)
- func (c *Client) DescribeBackupUploadSize(request *DescribeBackupUploadSizeRequest) (response *DescribeBackupUploadSizeResponse, err error)
- func (c *Client) DescribeBackupUploadSizeWithContext(ctx context.Context, request *DescribeBackupUploadSizeRequest) (response *DescribeBackupUploadSizeResponse, err error)
- func (c *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
- func (c *Client) DescribeBackupsWithContext(ctx context.Context, request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
- func (c *Client) DescribeDBCharsets(request *DescribeDBCharsetsRequest) (response *DescribeDBCharsetsResponse, err error)
- func (c *Client) DescribeDBCharsetsWithContext(ctx context.Context, request *DescribeDBCharsetsRequest) (response *DescribeDBCharsetsResponse, err error)
- func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeDBInstancesWithContext(ctx context.Context, request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeDBs(request *DescribeDBsRequest) (response *DescribeDBsResponse, err error)
- func (c *Client) DescribeDBsNormal(request *DescribeDBsNormalRequest) (response *DescribeDBsNormalResponse, err error)
- func (c *Client) DescribeDBsNormalWithContext(ctx context.Context, request *DescribeDBsNormalRequest) (response *DescribeDBsNormalResponse, err error)
- func (c *Client) DescribeDBsWithContext(ctx context.Context, request *DescribeDBsRequest) (response *DescribeDBsResponse, err error)
- func (c *Client) DescribeFlowStatus(request *DescribeFlowStatusRequest) (response *DescribeFlowStatusResponse, err error)
- func (c *Client) DescribeFlowStatusWithContext(ctx context.Context, request *DescribeFlowStatusRequest) (response *DescribeFlowStatusResponse, err error)
- func (c *Client) DescribeIncrementalMigration(request *DescribeIncrementalMigrationRequest) (response *DescribeIncrementalMigrationResponse, err error)
- func (c *Client) DescribeIncrementalMigrationWithContext(ctx context.Context, request *DescribeIncrementalMigrationRequest) (response *DescribeIncrementalMigrationResponse, err error)
- func (c *Client) DescribeInstanceParamRecords(request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
- func (c *Client) DescribeInstanceParamRecordsWithContext(ctx context.Context, request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
- func (c *Client) DescribeInstanceParams(request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
- func (c *Client) DescribeInstanceParamsWithContext(ctx context.Context, request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
- func (c *Client) DescribeMigrationDetail(request *DescribeMigrationDetailRequest) (response *DescribeMigrationDetailResponse, err error)
- func (c *Client) DescribeMigrationDetailWithContext(ctx context.Context, request *DescribeMigrationDetailRequest) (response *DescribeMigrationDetailResponse, err error)
- func (c *Client) DescribeMigrations(request *DescribeMigrationsRequest) (response *DescribeMigrationsResponse, err error)
- func (c *Client) DescribeMigrationsWithContext(ctx context.Context, request *DescribeMigrationsRequest) (response *DescribeMigrationsResponse, err error)
- func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
- func (c *Client) DescribeOrdersWithContext(ctx context.Context, request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
- func (c *Client) DescribeProductConfig(request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
- func (c *Client) DescribeProductConfigWithContext(ctx context.Context, request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
- func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeRollbackTime(request *DescribeRollbackTimeRequest) (response *DescribeRollbackTimeResponse, err error)
- func (c *Client) DescribeRollbackTimeWithContext(ctx context.Context, request *DescribeRollbackTimeRequest) (response *DescribeRollbackTimeResponse, err error)
- func (c *Client) DescribeSlowlogs(request *DescribeSlowlogsRequest) (response *DescribeSlowlogsResponse, err error)
- func (c *Client) DescribeSlowlogsWithContext(ctx context.Context, request *DescribeSlowlogsRequest) (response *DescribeSlowlogsResponse, err error)
- func (c *Client) DescribeUploadBackupInfo(request *DescribeUploadBackupInfoRequest) (response *DescribeUploadBackupInfoResponse, err error)
- func (c *Client) DescribeUploadBackupInfoWithContext(ctx context.Context, request *DescribeUploadBackupInfoRequest) (response *DescribeUploadBackupInfoResponse, err error)
- func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
- func (c *Client) DescribeZonesWithContext(ctx context.Context, request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
- func (c *Client) InquiryPriceCreateDBInstances(request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
- func (c *Client) InquiryPriceCreateDBInstancesWithContext(ctx context.Context, request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
- func (c *Client) InquiryPriceUpgradeDBInstance(request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
- func (c *Client) InquiryPriceUpgradeDBInstanceWithContext(ctx context.Context, request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
- func (c *Client) ModifyAccountPrivilege(request *ModifyAccountPrivilegeRequest) (response *ModifyAccountPrivilegeResponse, err error)
- func (c *Client) ModifyAccountPrivilegeWithContext(ctx context.Context, request *ModifyAccountPrivilegeRequest) (response *ModifyAccountPrivilegeResponse, err error)
- func (c *Client) ModifyAccountRemark(request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
- func (c *Client) ModifyAccountRemarkWithContext(ctx context.Context, request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
- func (c *Client) ModifyBackupMigration(request *ModifyBackupMigrationRequest) (response *ModifyBackupMigrationResponse, err error)
- func (c *Client) ModifyBackupMigrationWithContext(ctx context.Context, request *ModifyBackupMigrationRequest) (response *ModifyBackupMigrationResponse, err error)
- func (c *Client) ModifyBackupStrategy(request *ModifyBackupStrategyRequest) (response *ModifyBackupStrategyResponse, err error)
- func (c *Client) ModifyBackupStrategyWithContext(ctx context.Context, request *ModifyBackupStrategyRequest) (response *ModifyBackupStrategyResponse, err error)
- func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
- func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
- func (c *Client) ModifyDBInstanceNetwork(request *ModifyDBInstanceNetworkRequest) (response *ModifyDBInstanceNetworkResponse, err error)
- func (c *Client) ModifyDBInstanceNetworkWithContext(ctx context.Context, request *ModifyDBInstanceNetworkRequest) (response *ModifyDBInstanceNetworkResponse, err error)
- func (c *Client) ModifyDBInstanceProject(request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
- func (c *Client) ModifyDBInstanceProjectWithContext(ctx context.Context, request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
- func (c *Client) ModifyDBName(request *ModifyDBNameRequest) (response *ModifyDBNameResponse, err error)
- func (c *Client) ModifyDBNameWithContext(ctx context.Context, request *ModifyDBNameRequest) (response *ModifyDBNameResponse, err error)
- func (c *Client) ModifyDBRemark(request *ModifyDBRemarkRequest) (response *ModifyDBRemarkResponse, err error)
- func (c *Client) ModifyDBRemarkWithContext(ctx context.Context, request *ModifyDBRemarkRequest) (response *ModifyDBRemarkResponse, err error)
- func (c *Client) ModifyDatabaseCDC(request *ModifyDatabaseCDCRequest) (response *ModifyDatabaseCDCResponse, err error)
- func (c *Client) ModifyDatabaseCDCWithContext(ctx context.Context, request *ModifyDatabaseCDCRequest) (response *ModifyDatabaseCDCResponse, err error)
- func (c *Client) ModifyDatabaseCT(request *ModifyDatabaseCTRequest) (response *ModifyDatabaseCTResponse, err error)
- func (c *Client) ModifyDatabaseCTWithContext(ctx context.Context, request *ModifyDatabaseCTRequest) (response *ModifyDatabaseCTResponse, err error)
- func (c *Client) ModifyDatabaseMdf(request *ModifyDatabaseMdfRequest) (response *ModifyDatabaseMdfResponse, err error)
- func (c *Client) ModifyDatabaseMdfWithContext(ctx context.Context, request *ModifyDatabaseMdfRequest) (response *ModifyDatabaseMdfResponse, err error)
- func (c *Client) ModifyIncrementalMigration(request *ModifyIncrementalMigrationRequest) (response *ModifyIncrementalMigrationResponse, err error)
- func (c *Client) ModifyIncrementalMigrationWithContext(ctx context.Context, request *ModifyIncrementalMigrationRequest) (response *ModifyIncrementalMigrationResponse, err error)
- func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
- func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
- func (c *Client) ModifyMigration(request *ModifyMigrationRequest) (response *ModifyMigrationResponse, err error)
- func (c *Client) ModifyMigrationWithContext(ctx context.Context, request *ModifyMigrationRequest) (response *ModifyMigrationResponse, err error)
- func (c *Client) RecycleDBInstance(request *RecycleDBInstanceRequest) (response *RecycleDBInstanceResponse, err error)
- func (c *Client) RecycleDBInstanceWithContext(ctx context.Context, request *RecycleDBInstanceRequest) (response *RecycleDBInstanceResponse, 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)
- func (c *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
- func (c *Client) RestartDBInstanceWithContext(ctx context.Context, request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
- func (c *Client) RestoreInstance(request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
- func (c *Client) RestoreInstanceWithContext(ctx context.Context, request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
- func (c *Client) RollbackInstance(request *RollbackInstanceRequest) (response *RollbackInstanceResponse, err error)
- func (c *Client) RollbackInstanceWithContext(ctx context.Context, request *RollbackInstanceRequest) (response *RollbackInstanceResponse, err error)
- func (c *Client) RunMigration(request *RunMigrationRequest) (response *RunMigrationResponse, err error)
- func (c *Client) RunMigrationWithContext(ctx context.Context, request *RunMigrationRequest) (response *RunMigrationResponse, err error)
- func (c *Client) StartBackupMigration(request *StartBackupMigrationRequest) (response *StartBackupMigrationResponse, err error)
- func (c *Client) StartBackupMigrationWithContext(ctx context.Context, request *StartBackupMigrationRequest) (response *StartBackupMigrationResponse, err error)
- func (c *Client) StartIncrementalMigration(request *StartIncrementalMigrationRequest) (response *StartIncrementalMigrationResponse, err error)
- func (c *Client) StartIncrementalMigrationWithContext(ctx context.Context, request *StartIncrementalMigrationRequest) (response *StartIncrementalMigrationResponse, err error)
- func (c *Client) TerminateDBInstance(request *TerminateDBInstanceRequest) (response *TerminateDBInstanceResponse, err error)
- func (c *Client) TerminateDBInstanceWithContext(ctx context.Context, request *TerminateDBInstanceRequest) (response *TerminateDBInstanceResponse, err error)
- func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
- func (c *Client) UpgradeDBInstanceWithContext(ctx context.Context, request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
- type CloneDBRequest
- type CloneDBResponse
- type CosUploadBackupFile
- type CreateAccountRequest
- type CreateAccountResponse
- type CreateBackupMigrationRequest
- type CreateBackupMigrationResponse
- type CreateBackupRequest
- type CreateBackupResponse
- type CreateDBInstancesRequest
- type CreateDBInstancesResponse
- type CreateDBRequest
- type CreateDBResponse
- type CreateIncrementalMigrationRequest
- type CreateIncrementalMigrationResponse
- type CreateMigrationRequest
- type CreateMigrationResponse
- type DBCreateInfo
- type DBDetail
- type DBInstance
- type DBPrivilege
- type DBPrivilegeModifyInfo
- type DBRemark
- type DbNormalDetail
- type DbRollbackTimeInfo
- type DealInfo
- type DeleteAccountRequest
- type DeleteAccountResponse
- type DeleteBackupMigrationRequest
- type DeleteBackupMigrationResponse
- type DeleteDBRequest
- type DeleteDBResponse
- type DeleteIncrementalMigrationRequest
- type DeleteIncrementalMigrationResponse
- type DeleteMigrationRequest
- type DeleteMigrationResponse
- type DescribeAccountsRequest
- type DescribeAccountsResponse
- type DescribeBackupCommandRequest
- type DescribeBackupCommandResponse
- type DescribeBackupFilesRequest
- type DescribeBackupFilesResponse
- type DescribeBackupMigrationRequest
- type DescribeBackupMigrationResponse
- type DescribeBackupUploadSizeRequest
- type DescribeBackupUploadSizeResponse
- type DescribeBackupsRequest
- type DescribeBackupsResponse
- type DescribeDBCharsetsRequest
- type DescribeDBCharsetsResponse
- type DescribeDBInstancesRequest
- type DescribeDBInstancesResponse
- type DescribeDBsNormalRequest
- type DescribeDBsNormalResponse
- type DescribeDBsRequest
- type DescribeDBsResponse
- type DescribeFlowStatusRequest
- type DescribeFlowStatusResponse
- type DescribeIncrementalMigrationRequest
- type DescribeIncrementalMigrationResponse
- type DescribeInstanceParamRecordsRequest
- type DescribeInstanceParamRecordsResponse
- type DescribeInstanceParamsRequest
- type DescribeInstanceParamsResponse
- type DescribeMigrationDetailRequest
- type DescribeMigrationDetailResponse
- type DescribeMigrationsRequest
- type DescribeMigrationsResponse
- type DescribeOrdersRequest
- type DescribeOrdersResponse
- type DescribeProductConfigRequest
- type DescribeProductConfigResponse
- type DescribeRegionsRequest
- type DescribeRegionsResponse
- type DescribeRollbackTimeRequest
- type DescribeRollbackTimeResponse
- type DescribeSlowlogsRequest
- type DescribeSlowlogsResponse
- type DescribeUploadBackupInfoRequest
- type DescribeUploadBackupInfoResponse
- type DescribeZonesRequest
- type DescribeZonesResponse
- type InquiryPriceCreateDBInstancesRequest
- type InquiryPriceCreateDBInstancesResponse
- type InquiryPriceUpgradeDBInstanceRequest
- type InquiryPriceUpgradeDBInstanceResponse
- type InstanceDBDetail
- type MigrateDB
- type MigrateDetail
- type MigrateSource
- type MigrateTarget
- type MigrateTask
- type Migration
- type MigrationAction
- type MigrationDetail
- type MigrationStep
- type ModifyAccountPrivilegeRequest
- type ModifyAccountPrivilegeResponse
- type ModifyAccountRemarkRequest
- type ModifyAccountRemarkResponse
- type ModifyBackupMigrationRequest
- type ModifyBackupMigrationResponse
- type ModifyBackupStrategyRequest
- type ModifyBackupStrategyResponse
- type ModifyDBInstanceNameRequest
- type ModifyDBInstanceNameResponse
- type ModifyDBInstanceNetworkRequest
- type ModifyDBInstanceNetworkResponse
- type ModifyDBInstanceProjectRequest
- type ModifyDBInstanceProjectResponse
- type ModifyDBNameRequest
- type ModifyDBNameResponse
- type ModifyDBRemarkRequest
- type ModifyDBRemarkResponse
- type ModifyDatabaseCDCRequest
- type ModifyDatabaseCDCResponse
- type ModifyDatabaseCTRequest
- type ModifyDatabaseCTResponse
- type ModifyDatabaseMdfRequest
- type ModifyDatabaseMdfResponse
- type ModifyIncrementalMigrationRequest
- type ModifyIncrementalMigrationResponse
- type ModifyInstanceParamRequest
- type ModifyInstanceParamResponse
- type ModifyMigrationRequest
- type ModifyMigrationResponse
- type ParamRecord
- type Parameter
- type ParameterDetail
- type RecycleDBInstanceRequest
- type RecycleDBInstanceResponse
- type RegionInfo
- type RenameRestoreDatabase
- type ResetAccountPasswordRequest
- type ResetAccountPasswordResponse
- type ResourceTag
- type RestartDBInstanceRequest
- type RestartDBInstanceResponse
- type RestoreInstanceRequest
- type RestoreInstanceResponse
- type RollbackInstanceRequest
- type RollbackInstanceResponse
- type RunMigrationRequest
- type RunMigrationResponse
- type SlowlogInfo
- type SpecInfo
- type StartBackupMigrationRequest
- type StartBackupMigrationResponse
- type StartIncrementalMigrationRequest
- type StartIncrementalMigrationResponse
- type TerminateDBInstanceRequest
- type TerminateDBInstanceResponse
- type UpgradeDBInstanceRequest
- type UpgradeDBInstanceResponse
- type ZoneInfo
Constants ¶
const ( // CAM signature/authentication error AUTHFAILURE = "AuthFailure" // Failed to access COS. FAILEDOPERATION_COSERROR = "FailedOperation.CosError" // Errors occurred while acquiring uploaded configuration information. FAILEDOPERATION_COSPROPERTIESERROR = "FailedOperation.CosPropertiesError" // Failed to create order. FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed" // Database error. FAILEDOPERATION_DBERROR = "FailedOperation.DBError" // The operation failed or the network timed out. FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" // Failed to get VPC information. FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed" // Locking the backup import task failed. FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" // Failed to query order. FAILEDOPERATION_QUERYORDERFAILED = "FailedOperation.QueryOrderFailed" // Billing error. Failed to query price. FAILEDOPERATION_QUERYPRICEFAILED = "FailedOperation.QueryPriceFailed" // Failed to operate the network or the session timed out. FAILEDOPERATION_VPCERROR = "FailedOperation.VPCError" // Internal error. INTERNALERROR = "InternalError" // CAM authentication request failed. INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" // COS API error. INTERNALERROR_COSERROR = "InternalError.CosError" // Failed to create flow. INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" // Database connection error. INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" // Database error INTERNALERROR_DBERROR = "InternalError.DBError" // GCS API error. INTERNALERROR_GCSERROR = "InternalError.GcsError" // Errors occurred while acquiring temporary keys. INTERNALERROR_STSERROR = "InternalError.StsError" // System error. INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" // Unknown error. INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // VPC error INTERNALERROR_VPCERROR = "InternalError.VPCError" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Input error. INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" // The API does not exist. INVALIDPARAMETER_INTERFACENAMENOTFOUND = "InvalidParameter.InterfaceNameNotFound" // An error occurred while converting parameter assertion. INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" // Failed to make order payment. INVALIDPARAMETER_PAYORDERFAILED = "InvalidParameter.PayOrderFailed" // The parameter value is invalid. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Account already exists. INVALIDPARAMETERVALUE_ACCOUNTEXIST = "InvalidParameterValue.AccountExist" // The account name is invalid. INVALIDPARAMETERVALUE_ACCOUNTNAMEISILLEGAL = "InvalidParameterValue.AccountNameIsIllegal" // The account name includes restricted contents. INVALIDPARAMETERVALUE_ACCOUNTNAMEISKEYWORDS = "InvalidParameterValue.AccountNameIsKeyWords" // The account remarks are invalid. INVALIDPARAMETERVALUE_ACCOUNTREMARKISILLEGAL = "InvalidParameterValue.AccountRemarkIsIllegal" // You can only apply for one admin account. INVALIDPARAMETERVALUE_ADMINACCOUNTNOTUNIQUE = "InvalidParameterValue.AdminAccountNotUnique" // The backup name contains invalid characters. INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" // Invalid number of purchased instances. INVALIDPARAMETERVALUE_BADGOODSNUM = "InvalidParameterValue.BadGoodsNum" // The database character set is incorrectly set. INVALIDPARAMETERVALUE_CHARSETISILLEGAL = "InvalidParameterValue.CharsetIsIllegal" // Wrong upload path. INVALIDPARAMETERVALUE_COSPATHERROR = "InvalidParameterValue.CosPathError" // Billing type error. INVALIDPARAMETERVALUE_COSTTYPENOTSUPPORTED = "InvalidParameterValue.CostTypeNotSupported" // The database name contains invalid characters. INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" // The database already exists. INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" // The database name cannot contain reserved words. INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" // The database name is required. INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" // The new database name is the same as the old one. INVALIDPARAMETERVALUE_DBNAMESAME = "InvalidParameterValue.DBNameSame" // The database remarks are invalid. INVALIDPARAMETERVALUE_DATABASEREMARKISILLEGAL = "InvalidParameterValue.DataBaseRemarkIsIllegal" // Invalid parameter. The value of `GRANT` is invalid. INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" // Invalid region. INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" // Incorrect instance specification information. INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" // Incorrect AZ ID. INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" // The expansion capacity of the instance is lower than the current capacity. INVALIDPARAMETERVALUE_INSTANCEEXPANDVOLUMELOW = "InvalidParameterValue.InstanceExpandVolumeLow" // The instance name contains invalid characters. INVALIDPARAMETERVALUE_INSTANCENAMEISILLEGAL = "InvalidParameterValue.InstanceNameIsIllegal" // The migration name contains invalid characters. INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" // Only `enable` and `disable` are valid values. INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" // Basic edition instances are not supported. INVALIDPARAMETERVALUE_ONCVMTYPENOTSUPPORTED = "InvalidParameterValue.OnCvmTypeNotSupported" // Incorrect parameter type. INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" // The account and password are invalid. INVALIDPARAMETERVALUE_PASSWORDISILLEGAL = "InvalidParameterValue.PasswordIsIllegal" // Incorrect database permission settings. INVALIDPARAMETERVALUE_PRIVILEGEISILLEGAL = "InvalidParameterValue.PrivilegeIsIllegal" // Invalid security group ID. INVALIDPARAMETERVALUE_SECURITYGROUPIDISILLEGAL = "InvalidParameterValue.SecurityGroupIdIsIllegal" // The database limit is exceeded. LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" // An incremental backup import task to be started already exists. RESOURCEINUSE_INCREMENTALMIGRATIONEXIST = "ResourceInUse.IncrementalMigrationExist" // Resource not found. RESOURCENOTFOUND = "ResourceNotFound" // The account does not exist. RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" // The backup does not exist. RESOURCENOTFOUND_BACKUPNOTFOUND = "ResourceNotFound.BackupNotFound" // The database does not exist. RESOURCENOTFOUND_DBNOTEXIT = "ResourceNotFound.DBNotExit" // The database does not exist. RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" // The full backup import task does not exist. RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" // The incremental backup import task does not exist. RESOURCENOTFOUND_INCREBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.IncreBackupMigrationNotExist" // The instance does not exist. RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" // Parameter not found. RESOURCENOTFOUND_PARAMSNOTFOUND = "ResourceNotFound.ParamsNotFound" // The VPC does not exist. RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" // Invalid account status. RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" // The restoration type does not support incremental backup import. RESOURCEUNAVAILABLE_BACKUPMIGRATIONRECOVERYTYPEERR = "ResourceUnavailable.BackupMigrationRecoveryTypeErr" // A wrong status of offline restoration tasks. RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" // Invalid database status. RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" // Invalid instance migration region. RESOURCEUNAVAILABLE_INSTANCEMIGRATEREGIONILLEGAL = "ResourceUnavailable.InstanceMigrateRegionIllegal" // Invalid instance migration status. RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" // Invalid instance status. RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" // Read-Only instances are not supported. RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance" // VPC not found. RESOURCEUNAVAILABLE_VPCNOTEXIST = "ResourceUnavailable.VpcNotExist" // The operation is unauthorized. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // CAM authentication error. UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" // Unknown parameter error UNKNOWNPARAMETER = "UnknownParameter" // Repeated operations are not supported. UNSUPPORTEDOPERATION_NOTSUPPORTREPEAT = "UnsupportedOperation.NotSupportRepeat" // A wrong upload type. UNSUPPORTEDOPERATION_UPLOADTYPEERROR = "UnsupportedOperation.UploadTypeError" )
const APIVersion = "2018-03-28"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCreateInfo ¶
type AccountCreateInfo struct { // Instance username UserName *string `json:"UserName,omitempty" name:"UserName"` // Instance password Password *string `json:"Password,omitempty" name:"Password"` // List of database permissions DBPrivileges []*DBPrivilege `json:"DBPrivileges,omitempty" name:"DBPrivileges"` // Account remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Whether it is an admin account. Default value: no IsAdmin *bool `json:"IsAdmin,omitempty" name:"IsAdmin"` // Valid values: `win-windows authentication`, `sql-sqlserver authentication`. Default value: `sql-sqlserver authentication`. Authentication *string `json:"Authentication,omitempty" name:"Authentication"` }
type AccountDetail ¶
type AccountDetail struct { // Account name Name *string `json:"Name,omitempty" name:"Name"` // Account remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Account creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Account status. 1: creating, 2: normal, 3: modifying, 4: resetting password, -1: deleting Status *int64 `json:"Status,omitempty" name:"Status"` // Account update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Password update time PassTime *string `json:"PassTime,omitempty" name:"PassTime"` // Internal account status, which should be `enable` normally InternalStatus *string `json:"InternalStatus,omitempty" name:"InternalStatus"` // Information of read and write permissions of this account on relevant databases Dbs []*DBPrivilege `json:"Dbs,omitempty" name:"Dbs"` // Whether it is an admin account IsAdmin *bool `json:"IsAdmin,omitempty" name:"IsAdmin"` // Valid values: `win-windows authentication`, `sql-sqlserver authentication`. Authentication *string `json:"Authentication,omitempty" name:"Authentication"` // The host required for `win-windows authentication` account Host *string `json:"Host,omitempty" name:"Host"` }
type AccountPassword ¶
type AccountPrivilege ¶
type AccountPrivilegeModifyInfo ¶
type AccountPrivilegeModifyInfo struct { // Database username UserName *string `json:"UserName,omitempty" name:"UserName"` // Account permission change information DBPrivileges []*DBPrivilegeModifyInfo `json:"DBPrivileges,omitempty" name:"DBPrivileges"` // Whether it is an admin account IsAdmin *bool `json:"IsAdmin,omitempty" name:"IsAdmin"` }
type AccountRemark ¶
type Backup ¶
type Backup struct { // File name. The name of an unarchived backup file is returned by the `DescribeBackupFiles` API instead of this parameter. FileName *string `json:"FileName,omitempty" name:"FileName"` // File size in KB. The size of an unarchived backup file is returned by the `DescribeBackupFiles` API instead of this parameter. Size *int64 `json:"Size,omitempty" name:"Size"` // Backup start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Backup end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Private network download address. The download address of an unarchived backup file is returned by the `DescribeBackupFiles` API instead of this parameter. InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"` // Public network download address. The download address of an unarchived backup file is returned by the `DescribeBackupFiles` API instead of this parameter. ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"` // Unique ID of a backup file, which is used by the `RestoreInstance` API. The unique ID of an unarchived backup file is returned by the `DescribeBackupFiles` API instead of this parameter. Id *uint64 `json:"Id,omitempty" name:"Id"` // Backup file status (0: creating, 1: succeeded, 2: failed) Status *uint64 `json:"Status,omitempty" name:"Status"` // List of databases for multi-database backup DBs []*string `json:"DBs,omitempty" name:"DBs"` // Backup policy (0: instance backup, 1: multi-database backup) Strategy *int64 `json:"Strategy,omitempty" name:"Strategy"` // Backup mode. 0: scheduled, 1: manual BackupWay *int64 `json:"BackupWay,omitempty" name:"BackupWay"` // Backup task name (customizable) BackupName *string `json:"BackupName,omitempty" name:"BackupName"` // Group ID of unarchived backup files, which can be used as a request parameter in the `DescribeBackupFiles` API to get details of unarchived backup files in the specified group. This parameter is invalid for archived backup files. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Backup file format. Valid values:`pkg` (archive file), `single` (unarchived files). BackupFormat *string `json:"BackupFormat,omitempty" name:"BackupFormat"` }
type BackupFile ¶
type BackupFile struct { // Unique ID of a backup file Id *uint64 `json:"Id,omitempty" name:"Id"` // Backup file name FileName *string `json:"FileName,omitempty" name:"FileName"` // File size in KB Size *uint64 `json:"Size,omitempty" name:"Size"` // Name of the database corresponding to the backup file DBs []*string `json:"DBs,omitempty" name:"DBs"` // Download address DownloadLink *string `json:"DownloadLink,omitempty" name:"DownloadLink"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CloneDB ¶
func (c *Client) CloneDB(request *CloneDBRequest) (response *CloneDBResponse, err error)
CloneDB This API is used to clone and rename databases of an instance. The clones are still in the instance from which they are cloned.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DBNAMESAME = "InvalidParameterValue.DBNameSame" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_DBNOTEXIT = "ResourceNotFound.DBNotExit" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) CloneDBWithContext ¶
func (c *Client) CloneDBWithContext(ctx context.Context, request *CloneDBRequest) (response *CloneDBResponse, err error)
CloneDB This API is used to clone and rename databases of an instance. The clones are still in the instance from which they are cloned.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DBNAMESAME = "InvalidParameterValue.DBNameSame" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_DBNOTEXIT = "ResourceNotFound.DBNotExit" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)
CreateAccount This API is used to create an instance account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ACCOUNTEXIST = "InvalidParameterValue.AccountExist" INVALIDPARAMETERVALUE_ACCOUNTNAMEISILLEGAL = "InvalidParameterValue.AccountNameIsIllegal" INVALIDPARAMETERVALUE_ACCOUNTNAMEISKEYWORDS = "InvalidParameterValue.AccountNameIsKeyWords" INVALIDPARAMETERVALUE_ACCOUNTREMARKISILLEGAL = "InvalidParameterValue.AccountRemarkIsIllegal" INVALIDPARAMETERVALUE_ADMINACCOUNTNOTUNIQUE = "InvalidParameterValue.AdminAccountNotUnique" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" INVALIDPARAMETERVALUE_PASSWORDISILLEGAL = "InvalidParameterValue.PasswordIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateAccountWithContext ¶
func (c *Client) CreateAccountWithContext(ctx context.Context, request *CreateAccountRequest) (response *CreateAccountResponse, err error)
CreateAccount This API is used to create an instance account.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ACCOUNTEXIST = "InvalidParameterValue.AccountExist" INVALIDPARAMETERVALUE_ACCOUNTNAMEISILLEGAL = "InvalidParameterValue.AccountNameIsIllegal" INVALIDPARAMETERVALUE_ACCOUNTNAMEISKEYWORDS = "InvalidParameterValue.AccountNameIsKeyWords" INVALIDPARAMETERVALUE_ACCOUNTREMARKISILLEGAL = "InvalidParameterValue.AccountRemarkIsIllegal" INVALIDPARAMETERVALUE_ADMINACCOUNTNOTUNIQUE = "InvalidParameterValue.AdminAccountNotUnique" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" INVALIDPARAMETERVALUE_PASSWORDISILLEGAL = "InvalidParameterValue.PasswordIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateBackup ¶
func (c *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBackupResponse, err error)
CreateBackup This API is used to create a backup.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateBackupMigration ¶
func (c *Client) CreateBackupMigration(request *CreateBackupMigrationRequest) (response *CreateBackupMigrationResponse, err error)
CreateBackupMigration This API is used to create a backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateBackupMigrationWithContext ¶
func (c *Client) CreateBackupMigrationWithContext(ctx context.Context, request *CreateBackupMigrationRequest) (response *CreateBackupMigrationResponse, err error)
CreateBackupMigration This API is used to create a backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateBackupWithContext ¶
func (c *Client) CreateBackupWithContext(ctx context.Context, request *CreateBackupRequest) (response *CreateBackupResponse, err error)
CreateBackup This API is used to create a backup.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateDB ¶
func (c *Client) CreateDB(request *CreateDBRequest) (response *CreateDBResponse, err error)
CreateDB This API is used to create a database.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_CHARSETISILLEGAL = "InvalidParameterValue.CharsetIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DATABASEREMARKISILLEGAL = "InvalidParameterValue.DataBaseRemarkIsIllegal" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" INVALIDPARAMETERVALUE_PRIVILEGEISILLEGAL = "InvalidParameterValue.PrivilegeIsIllegal" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateDBInstances ¶
func (c *Client) CreateDBInstances(request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
CreateDBInstances This API is used to create an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed" FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETER_PAYORDERFAILED = "InvalidParameter.PayOrderFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" INVALIDPARAMETERVALUE_SECURITYGROUPIDISILLEGAL = "InvalidParameterValue.SecurityGroupIdIsIllegal" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" RESOURCEUNAVAILABLE_VPCNOTEXIST = "ResourceUnavailable.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateDBInstancesWithContext ¶
func (c *Client) CreateDBInstancesWithContext(ctx context.Context, request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
CreateDBInstances This API is used to create an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed" FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETER_PAYORDERFAILED = "InvalidParameter.PayOrderFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" INVALIDPARAMETERVALUE_SECURITYGROUPIDISILLEGAL = "InvalidParameterValue.SecurityGroupIdIsIllegal" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" RESOURCEUNAVAILABLE_VPCNOTEXIST = "ResourceUnavailable.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateDBWithContext ¶
func (c *Client) CreateDBWithContext(ctx context.Context, request *CreateDBRequest) (response *CreateDBResponse, err error)
CreateDB This API is used to create a database.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_CHARSETISILLEGAL = "InvalidParameterValue.CharsetIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DATABASEREMARKISILLEGAL = "InvalidParameterValue.DataBaseRemarkIsIllegal" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" INVALIDPARAMETERVALUE_PRIVILEGEISILLEGAL = "InvalidParameterValue.PrivilegeIsIllegal" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateIncrementalMigration ¶
func (c *Client) CreateIncrementalMigration(request *CreateIncrementalMigrationRequest) (response *CreateIncrementalMigrationResponse, err error)
CreateIncrementalMigration This API is used to create an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCEINUSE_INCREMENTALMIGRATIONEXIST = "ResourceInUse.IncrementalMigrationExist" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_BACKUPMIGRATIONRECOVERYTYPEERR = "ResourceUnavailable.BackupMigrationRecoveryTypeErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateIncrementalMigrationWithContext ¶
func (c *Client) CreateIncrementalMigrationWithContext(ctx context.Context, request *CreateIncrementalMigrationRequest) (response *CreateIncrementalMigrationResponse, err error)
CreateIncrementalMigration This API is used to create an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCEINUSE_INCREMENTALMIGRATIONEXIST = "ResourceInUse.IncrementalMigrationExist" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_BACKUPMIGRATIONRECOVERYTYPEERR = "ResourceUnavailable.BackupMigrationRecoveryTypeErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateMigration ¶
func (c *Client) CreateMigration(request *CreateMigrationRequest) (response *CreateMigrationResponse, err error)
CreateMigration This API is used to create a migration task.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" INVALIDPARAMETERVALUE_ONCVMTYPENOTSUPPORTED = "InvalidParameterValue.OnCvmTypeNotSupported" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEMIGRATEREGIONILLEGAL = "ResourceUnavailable.InstanceMigrateRegionIllegal" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) CreateMigrationWithContext ¶
func (c *Client) CreateMigrationWithContext(ctx context.Context, request *CreateMigrationRequest) (response *CreateMigrationResponse, err error)
CreateMigration This API is used to create a migration task.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" INVALIDPARAMETERVALUE_ONCVMTYPENOTSUPPORTED = "InvalidParameterValue.OnCvmTypeNotSupported" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEMIGRATEREGIONILLEGAL = "ResourceUnavailable.InstanceMigrateRegionIllegal" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteAccount ¶
func (c *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)
DeleteAccount This API is used to delete an instance account.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" 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 an instance account.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteBackupMigration ¶
func (c *Client) DeleteBackupMigration(request *DeleteBackupMigrationRequest) (response *DeleteBackupMigrationResponse, err error)
DeleteBackupMigration This API is used to delete a backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr"
func (*Client) DeleteBackupMigrationWithContext ¶
func (c *Client) DeleteBackupMigrationWithContext(ctx context.Context, request *DeleteBackupMigrationRequest) (response *DeleteBackupMigrationResponse, err error)
DeleteBackupMigration This API is used to delete a backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr"
func (*Client) DeleteDB ¶
func (c *Client) DeleteDB(request *DeleteDBRequest) (response *DeleteDBResponse, err error)
DeleteDB This API is used to drop a database.
error code that may be returned:
FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteDBWithContext ¶
func (c *Client) DeleteDBWithContext(ctx context.Context, request *DeleteDBRequest) (response *DeleteDBResponse, err error)
DeleteDB This API is used to drop a database.
error code that may be returned:
FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteIncrementalMigration ¶
func (c *Client) DeleteIncrementalMigration(request *DeleteIncrementalMigrationRequest) (response *DeleteIncrementalMigrationResponse, err error)
DeleteIncrementalMigration This API is used to delete an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INCREBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.IncreBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteIncrementalMigrationWithContext ¶
func (c *Client) DeleteIncrementalMigrationWithContext(ctx context.Context, request *DeleteIncrementalMigrationRequest) (response *DeleteIncrementalMigrationResponse, err error)
DeleteIncrementalMigration This API is used to delete an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INCREBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.IncreBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteMigration ¶
func (c *Client) DeleteMigration(request *DeleteMigrationRequest) (response *DeleteMigrationResponse, err error)
DeleteMigration This API is used to delete a migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DeleteMigrationWithContext ¶
func (c *Client) DeleteMigrationWithContext(ctx context.Context, request *DeleteMigrationRequest) (response *DeleteMigrationResponse, err error)
DeleteMigration This API is used to delete a migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeAccounts ¶
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
DescribeAccounts This API is used to pull the list of instance accounts.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" 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 pull the list of instance accounts.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupCommand ¶
func (c *Client) DescribeBackupCommand(request *DescribeBackupCommandRequest) (response *DescribeBackupCommandResponse, err error)
DescribeBackupCommand This API is used to query the commands of creating backups canonically.
error code that may be returned:
INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupCommandWithContext ¶
func (c *Client) DescribeBackupCommandWithContext(ctx context.Context, request *DescribeBackupCommandRequest) (response *DescribeBackupCommandResponse, err error)
DescribeBackupCommand This API is used to query the commands of creating backups canonically.
error code that may be returned:
INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupFiles ¶
func (c *Client) DescribeBackupFiles(request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)
DescribeBackupFiles This API is used to query the list of unarchived database backup files.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupFilesWithContext ¶
func (c *Client) DescribeBackupFilesWithContext(ctx context.Context, request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)
DescribeBackupFiles This API is used to query the list of unarchived database backup files.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupMigration ¶
func (c *Client) DescribeBackupMigration(request *DescribeBackupMigrationRequest) (response *DescribeBackupMigrationResponse, err error)
DescribeBackupMigration This API is used to create an incremental backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupMigrationWithContext ¶
func (c *Client) DescribeBackupMigrationWithContext(ctx context.Context, request *DescribeBackupMigrationRequest) (response *DescribeBackupMigrationResponse, err error)
DescribeBackupMigration This API is used to create an incremental backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupUploadSize ¶
func (c *Client) DescribeBackupUploadSize(request *DescribeBackupUploadSizeRequest) (response *DescribeBackupUploadSizeResponse, err error)
DescribeBackupUploadSize This API is used to query the size of uploaded backup files. It is valid if the backup file type is `COS_UPLOAD` (the file is stored in COS).
error code that may be returned:
INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSPATHERROR = "InvalidParameterValue.CosPathError" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INCREBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.IncreBackupMigrationNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupUploadSizeWithContext ¶
func (c *Client) DescribeBackupUploadSizeWithContext(ctx context.Context, request *DescribeBackupUploadSizeRequest) (response *DescribeBackupUploadSizeResponse, err error)
DescribeBackupUploadSize This API is used to query the size of uploaded backup files. It is valid if the backup file type is `COS_UPLOAD` (the file is stored in COS).
error code that may be returned:
INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSPATHERROR = "InvalidParameterValue.CosPathError" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INCREBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.IncreBackupMigrationNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackups ¶
func (c *Client) DescribeBackups(request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
DescribeBackups This API is used to query the list of backups.
error code that may be returned:
FAILEDOPERATION_COSERROR = "FailedOperation.CosError" FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeBackupsWithContext ¶
func (c *Client) DescribeBackupsWithContext(ctx context.Context, request *DescribeBackupsRequest) (response *DescribeBackupsResponse, err error)
DescribeBackups This API is used to query the list of backups.
error code that may be returned:
FAILEDOPERATION_COSERROR = "FailedOperation.CosError" FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBCharsets ¶
func (c *Client) DescribeDBCharsets(request *DescribeDBCharsetsRequest) (response *DescribeDBCharsetsResponse, err error)
DescribeDBCharsets This API is used to query the database character sets supported by an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_INTERFACENAMENOTFOUND = "InvalidParameter.InterfaceNameNotFound" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeDBCharsetsWithContext ¶
func (c *Client) DescribeDBCharsetsWithContext(ctx context.Context, request *DescribeDBCharsetsRequest) (response *DescribeDBCharsetsResponse, err error)
DescribeDBCharsets This API is used to query the database character sets supported by an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_INTERFACENAMENOTFOUND = "InvalidParameter.InterfaceNameNotFound" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DescribeDBInstances ¶
func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
DescribeDBInstances This API is used to query the list of instances.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBInstancesWithContext ¶
func (c *Client) DescribeDBInstancesWithContext(ctx context.Context, request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
DescribeDBInstances This API is used to query the list of instances.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBs ¶
func (c *Client) DescribeDBs(request *DescribeDBsRequest) (response *DescribeDBsResponse, err error)
DescribeDBs This API is used to query the list of databases
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBsNormal ¶
func (c *Client) DescribeDBsNormal(request *DescribeDBsNormalRequest) (response *DescribeDBsNormalResponse, err error)
DescribeDBsNormal This API is used to query database configurations. It does not return information of the accounts that have permissions to operate the database.
error code that may be returned:
FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_INTERFACENAMENOTFOUND = "InvalidParameter.InterfaceNameNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBsNormalWithContext ¶
func (c *Client) DescribeDBsNormalWithContext(ctx context.Context, request *DescribeDBsNormalRequest) (response *DescribeDBsNormalResponse, err error)
DescribeDBsNormal This API is used to query database configurations. It does not return information of the accounts that have permissions to operate the database.
error code that may be returned:
FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_INTERFACENAMENOTFOUND = "InvalidParameter.InterfaceNameNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeDBsWithContext ¶
func (c *Client) DescribeDBsWithContext(ctx context.Context, request *DescribeDBsRequest) (response *DescribeDBsResponse, err error)
DescribeDBs This API is used to query the list of databases
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeFlowStatus ¶
func (c *Client) DescribeFlowStatus(request *DescribeFlowStatusRequest) (response *DescribeFlowStatusResponse, err error)
DescribeFlowStatus This API is used to query flow status.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeFlowStatusWithContext ¶
func (c *Client) DescribeFlowStatusWithContext(ctx context.Context, request *DescribeFlowStatusRequest) (response *DescribeFlowStatusResponse, err error)
DescribeFlowStatus This API is used to query flow status.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeIncrementalMigration ¶
func (c *Client) DescribeIncrementalMigration(request *DescribeIncrementalMigrationRequest) (response *DescribeIncrementalMigrationResponse, err error)
DescribeIncrementalMigration This API is used to query an incremental backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeIncrementalMigrationWithContext ¶
func (c *Client) DescribeIncrementalMigrationWithContext(ctx context.Context, request *DescribeIncrementalMigrationRequest) (response *DescribeIncrementalMigrationResponse, err error)
DescribeIncrementalMigration This API is used to query an incremental backup import task.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceParamRecords ¶
func (c *Client) DescribeInstanceParamRecords(request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API is used to query the parameter modification records of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceParamRecordsWithContext ¶
func (c *Client) DescribeInstanceParamRecordsWithContext(ctx context.Context, request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API is used to query the parameter modification records of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceParams ¶
func (c *Client) DescribeInstanceParams(request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
DescribeInstanceParams This API is used to query the parameter list of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_PARAMSNOTFOUND = "ResourceNotFound.ParamsNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeInstanceParamsWithContext ¶
func (c *Client) DescribeInstanceParamsWithContext(ctx context.Context, request *DescribeInstanceParamsRequest) (response *DescribeInstanceParamsResponse, err error)
DescribeInstanceParams This API is used to query the parameter list of an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_PARAMSNOTFOUND = "ResourceNotFound.ParamsNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMigrationDetail ¶
func (c *Client) DescribeMigrationDetail(request *DescribeMigrationDetailRequest) (response *DescribeMigrationDetailResponse, err error)
DescribeMigrationDetail This API is used to query migration task details.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMigrationDetailWithContext ¶
func (c *Client) DescribeMigrationDetailWithContext(ctx context.Context, request *DescribeMigrationDetailRequest) (response *DescribeMigrationDetailResponse, err error)
DescribeMigrationDetail This API is used to query migration task details.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMigrations ¶
func (c *Client) DescribeMigrations(request *DescribeMigrationsRequest) (response *DescribeMigrationsResponse, err error)
DescribeMigrations This API is used to query the list of eligible migration tasks based on the entered criteria.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeMigrationsWithContext ¶
func (c *Client) DescribeMigrationsWithContext(ctx context.Context, request *DescribeMigrationsRequest) (response *DescribeMigrationsResponse, err error)
DescribeMigrations This API is used to query the list of eligible migration tasks based on the entered criteria.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeOrders ¶
func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
DescribeOrders This API is used to query order information.
error code that may be returned:
FAILEDOPERATION_QUERYORDERFAILED = "FailedOperation.QueryOrderFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeOrdersWithContext ¶
func (c *Client) DescribeOrdersWithContext(ctx context.Context, request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
DescribeOrders This API is used to query order information.
error code that may be returned:
FAILEDOPERATION_QUERYORDERFAILED = "FailedOperation.QueryOrderFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeProductConfig ¶
func (c *Client) DescribeProductConfig(request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
DescribeProductConfig This API is used to query purchasable specification configuration.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeProductConfigWithContext ¶
func (c *Client) DescribeProductConfigWithContext(ctx context.Context, request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
DescribeProductConfig This API is used to query purchasable specification configuration.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
DescribeRegions This API is used to query purchasable regions.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRegionsWithContext ¶
func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
DescribeRegions This API is used to query purchasable regions.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTime ¶
func (c *Client) DescribeRollbackTime(request *DescribeRollbackTimeRequest) (response *DescribeRollbackTimeResponse, err error)
DescribeRollbackTime This API is used to query the time range available for instance rollback.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeRollbackTimeWithContext ¶
func (c *Client) DescribeRollbackTimeWithContext(ctx context.Context, request *DescribeRollbackTimeRequest) (response *DescribeRollbackTimeResponse, err error)
DescribeRollbackTime This API is used to query the time range available for instance rollback.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeSlowlogs ¶
func (c *Client) DescribeSlowlogs(request *DescribeSlowlogsRequest) (response *DescribeSlowlogsResponse, err error)
DescribeSlowlogs This API is used to get file information of slow query logs.
error code that may be returned:
INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeSlowlogsWithContext ¶
func (c *Client) DescribeSlowlogsWithContext(ctx context.Context, request *DescribeSlowlogsRequest) (response *DescribeSlowlogsResponse, err error)
DescribeSlowlogs This API is used to get file information of slow query logs.
error code that may be returned:
INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeUploadBackupInfo ¶
func (c *Client) DescribeUploadBackupInfo(request *DescribeUploadBackupInfoRequest) (response *DescribeUploadBackupInfoResponse, err error)
DescribeUploadBackupInfo This API is used to query a backup upload permission.
error code that may be returned:
FAILEDOPERATION_COSPROPERTIESERROR = "FailedOperation.CosPropertiesError" FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_STSERROR = "InternalError.StsError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSPATHERROR = "InvalidParameterValue.CosPathError" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_UPLOADTYPEERROR = "UnsupportedOperation.UploadTypeError"
func (*Client) DescribeUploadBackupInfoWithContext ¶
func (c *Client) DescribeUploadBackupInfoWithContext(ctx context.Context, request *DescribeUploadBackupInfoRequest) (response *DescribeUploadBackupInfoResponse, err error)
DescribeUploadBackupInfo This API is used to query a backup upload permission.
error code that may be returned:
FAILEDOPERATION_COSPROPERTIESERROR = "FailedOperation.CosPropertiesError" FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_STSERROR = "InternalError.StsError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSPATHERROR = "InvalidParameterValue.CosPathError" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNSUPPORTEDOPERATION_UPLOADTYPEERROR = "UnsupportedOperation.UploadTypeError"
func (*Client) DescribeZones ¶
func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
DescribeZones This API is used to query currently purchasable AZs.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) DescribeZonesWithContext ¶
func (c *Client) DescribeZonesWithContext(ctx context.Context, request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
DescribeZones This API is used to query currently purchasable AZs.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InquiryPriceCreateDBInstances ¶
func (c *Client) InquiryPriceCreateDBInstances(request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
InquiryPriceCreateDBInstances This API is used to query the price of requested instances.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_QUERYPRICEFAILED = "FailedOperation.QueryPriceFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BADGOODSNUM = "InvalidParameterValue.BadGoodsNum" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InquiryPriceCreateDBInstancesWithContext ¶
func (c *Client) InquiryPriceCreateDBInstancesWithContext(ctx context.Context, request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
InquiryPriceCreateDBInstances This API is used to query the price of requested instances.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_QUERYPRICEFAILED = "FailedOperation.QueryPriceFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BADGOODSNUM = "InvalidParameterValue.BadGoodsNum" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InquiryPriceUpgradeDBInstance ¶
func (c *Client) InquiryPriceUpgradeDBInstance(request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
InquiryPriceUpgradeDBInstance This API is used to query the upgrade price of an instance.
error code that may be returned:
FAILEDOPERATION_QUERYPRICEFAILED = "FailedOperation.QueryPriceFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSTTYPENOTSUPPORTED = "InvalidParameterValue.CostTypeNotSupported" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_INSTANCEEXPANDVOLUMELOW = "InvalidParameterValue.InstanceExpandVolumeLow" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) InquiryPriceUpgradeDBInstanceWithContext ¶
func (c *Client) InquiryPriceUpgradeDBInstanceWithContext(ctx context.Context, request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
InquiryPriceUpgradeDBInstance This API is used to query the upgrade price of an instance.
error code that may be returned:
FAILEDOPERATION_QUERYPRICEFAILED = "FailedOperation.QueryPriceFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_COSTTYPENOTSUPPORTED = "InvalidParameterValue.CostTypeNotSupported" INVALIDPARAMETERVALUE_ILLEGALREGION = "InvalidParameterValue.IllegalRegion" INVALIDPARAMETERVALUE_INSTANCEEXPANDVOLUMELOW = "InvalidParameterValue.InstanceExpandVolumeLow" INVALIDPARAMETERVALUE_PARAMETERTYPEERROR = "InvalidParameterValue.ParameterTypeError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountPrivilege ¶
func (c *Client) ModifyAccountPrivilege(request *ModifyAccountPrivilegeRequest) (response *ModifyAccountPrivilegeResponse, err error)
ModifyAccountPrivilege This API is used to modify instance account permissions.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ADMINACCOUNTNOTUNIQUE = "InvalidParameterValue.AdminAccountNotUnique" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_DBNOTEXIT = "ResourceNotFound.DBNotExit" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountPrivilegeWithContext ¶
func (c *Client) ModifyAccountPrivilegeWithContext(ctx context.Context, request *ModifyAccountPrivilegeRequest) (response *ModifyAccountPrivilegeResponse, err error)
ModifyAccountPrivilege This API is used to modify instance account permissions.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ADMINACCOUNTNOTUNIQUE = "InvalidParameterValue.AdminAccountNotUnique" INVALIDPARAMETERVALUE_GRANTISILLEGAL = "InvalidParameterValue.GrantIsIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_DBNOTEXIT = "ResourceNotFound.DBNotExit" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountRemark ¶
func (c *Client) ModifyAccountRemark(request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
ModifyAccountRemark This API is used to modify account remarks.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ACCOUNTREMARKISILLEGAL = "InvalidParameterValue.AccountRemarkIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyAccountRemarkWithContext ¶
func (c *Client) ModifyAccountRemarkWithContext(ctx context.Context, request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
ModifyAccountRemark This API is used to modify account remarks.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_ACCOUNTREMARKISILLEGAL = "InvalidParameterValue.AccountRemarkIsIllegal" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupMigration ¶
func (c *Client) ModifyBackupMigration(request *ModifyBackupMigrationRequest) (response *ModifyBackupMigrationResponse, err error)
ModifyBackupMigration This API is used to modify a backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupMigrationWithContext ¶
func (c *Client) ModifyBackupMigrationWithContext(ctx context.Context, request *ModifyBackupMigrationRequest) (response *ModifyBackupMigrationResponse, err error)
ModifyBackupMigration This API is used to modify a backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupStrategy ¶
func (c *Client) ModifyBackupStrategy(request *ModifyBackupStrategyRequest) (response *ModifyBackupStrategyResponse, err error)
ModifyBackupStrategy This API is used to modify the backup policy.
error code that may be returned:
INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyBackupStrategyWithContext ¶
func (c *Client) ModifyBackupStrategyWithContext(ctx context.Context, request *ModifyBackupStrategyRequest) (response *ModifyBackupStrategyResponse, err error)
ModifyBackupStrategy This API is used to modify the backup policy.
error code that may be returned:
INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceName ¶
func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
ModifyDBInstanceName This API is used to rename an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_INSTANCENAMEISILLEGAL = "InvalidParameterValue.InstanceNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceNameWithContext ¶
func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
ModifyDBInstanceName This API is used to rename an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_INSTANCENAMEISILLEGAL = "InvalidParameterValue.InstanceNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceNetwork ¶
func (c *Client) ModifyDBInstanceNetwork(request *ModifyDBInstanceNetworkRequest) (response *ModifyDBInstanceNetworkResponse, err error)
ModifyDBInstanceNetwork This API is used to switch a running instance from a VPC to another.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed" FAILEDOPERATION_VPCERROR = "FailedOperation.VPCError" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INTERNALERROR_VPCERROR = "InternalError.VPCError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_VPCNOTEXIST = "ResourceUnavailable.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_NOTSUPPORTREPEAT = "UnsupportedOperation.NotSupportRepeat"
func (*Client) ModifyDBInstanceNetworkWithContext ¶
func (c *Client) ModifyDBInstanceNetworkWithContext(ctx context.Context, request *ModifyDBInstanceNetworkRequest) (response *ModifyDBInstanceNetworkResponse, err error)
ModifyDBInstanceNetwork This API is used to switch a running instance from a VPC to another.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_GCSERROR = "FailedOperation.GcsError" FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed" FAILEDOPERATION_VPCERROR = "FailedOperation.VPCError" INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INTERNALERROR_VPCERROR = "InternalError.VPCError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_VPCNOTEXIST = "ResourceNotFound.VpcNotExist" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_VPCNOTEXIST = "ResourceUnavailable.VpcNotExist" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_NOTSUPPORTREPEAT = "UnsupportedOperation.NotSupportRepeat"
func (*Client) ModifyDBInstanceProject ¶
func (c *Client) ModifyDBInstanceProject(request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
ModifyDBInstanceProject This API is used to modify the project to which a database instance belongs.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBInstanceProjectWithContext ¶
func (c *Client) ModifyDBInstanceProjectWithContext(ctx context.Context, request *ModifyDBInstanceProjectRequest) (response *ModifyDBInstanceProjectResponse, err error)
ModifyDBInstanceProject This API is used to modify the project to which a database instance belongs.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBName ¶
func (c *Client) ModifyDBName(request *ModifyDBNameRequest) (response *ModifyDBNameResponse, err error)
ModifyDBName This API is used to rename a database.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DBNAMESAME = "InvalidParameterValue.DBNameSame" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBNameWithContext ¶
func (c *Client) ModifyDBNameWithContext(ctx context.Context, request *ModifyDBNameRequest) (response *ModifyDBNameResponse, err error)
ModifyDBName This API is used to rename a database.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBCHARILLEGAL = "InvalidParameterValue.DBCharIllegal" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" INVALIDPARAMETERVALUE_DBNAMEISKEYWRODS = "InvalidParameterValue.DBNameIsKeyWrods" INVALIDPARAMETERVALUE_DBNAMESAME = "InvalidParameterValue.DBNameSame" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBRemark ¶
func (c *Client) ModifyDBRemark(request *ModifyDBRemarkRequest) (response *ModifyDBRemarkResponse, err error)
ModifyDBRemark This API is used to modify database remarks.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETERVALUE_DATABASEREMARKISILLEGAL = "InvalidParameterValue.DataBaseRemarkIsIllegal" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDBRemarkWithContext ¶
func (c *Client) ModifyDBRemarkWithContext(ctx context.Context, request *ModifyDBRemarkRequest) (response *ModifyDBRemarkResponse, err error)
ModifyDBRemark This API is used to modify database remarks.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETERVALUE_DATABASEREMARKISILLEGAL = "InvalidParameterValue.DataBaseRemarkIsIllegal" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDatabaseCDC ¶
func (c *Client) ModifyDatabaseCDC(request *ModifyDatabaseCDCRequest) (response *ModifyDatabaseCDCResponse, err error)
ModifyDatabaseCDC This API is used to enable or disable the change data capture (CDC) feature.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDatabaseCDCWithContext ¶
func (c *Client) ModifyDatabaseCDCWithContext(ctx context.Context, request *ModifyDatabaseCDCRequest) (response *ModifyDatabaseCDCResponse, err error)
ModifyDatabaseCDC This API is used to enable or disable the change data capture (CDC) feature.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyDatabaseCT ¶
func (c *Client) ModifyDatabaseCT(request *ModifyDatabaseCTRequest) (response *ModifyDatabaseCTResponse, err error)
ModifyDatabaseCT This API is used to enable or disable the change tracking (CT) feature.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance" UNSUPPORTEDOPERATION_NOTSUPPORTREPEAT = "UnsupportedOperation.NotSupportRepeat"
func (*Client) ModifyDatabaseCTWithContext ¶
func (c *Client) ModifyDatabaseCTWithContext(ctx context.Context, request *ModifyDatabaseCTRequest) (response *ModifyDatabaseCTResponse, err error)
ModifyDatabaseCT This API is used to enable or disable the change tracking (CT) feature.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance" UNSUPPORTEDOPERATION_NOTSUPPORTREPEAT = "UnsupportedOperation.NotSupportRepeat"
func (*Client) ModifyDatabaseMdf ¶
func (c *Client) ModifyDatabaseMdf(request *ModifyDatabaseMdfRequest) (response *ModifyDatabaseMdfResponse, err error)
ModifyDatabaseMdf This API is used to shrink database MDF files.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance"
func (*Client) ModifyDatabaseMdfWithContext ¶
func (c *Client) ModifyDatabaseMdfWithContext(ctx context.Context, request *ModifyDatabaseMdfRequest) (response *ModifyDatabaseMdfResponse, err error)
ModifyDatabaseMdf This API is used to shrink database MDF files.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETERVALUE_DBNAMENOTNULL = "InvalidParameterValue.DBNameNotNull" INVALIDPARAMETERVALUE_MODIFYTYPEVALUEINVALID = "InvalidParameterValue.ModifyTypeValueInvalid" RESOURCENOTFOUND_DBNOTFOUND = "ResourceNotFound.DBNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" RESOURCEUNAVAILABLE_NOTSUPPORTROINSTANCE = "ResourceUnavailable.NotSupportRoInstance"
func (*Client) ModifyIncrementalMigration ¶
func (c *Client) ModifyIncrementalMigration(request *ModifyIncrementalMigrationRequest) (response *ModifyIncrementalMigrationResponse, err error)
ModifyIncrementalMigration This API is used to modify an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyIncrementalMigrationWithContext ¶
func (c *Client) ModifyIncrementalMigrationWithContext(ctx context.Context, request *ModifyIncrementalMigrationRequest) (response *ModifyIncrementalMigrationResponse, err error)
ModifyIncrementalMigration This API is used to modify an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyInstanceParam ¶
func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
ModifyInstanceParam This API is used to modify instance parameters.
<b>Note</b>: if <b>the instance needs to be restarted</b> for the modified parameter to take effect, <b>it will be restarted</b> immediately or during the maintenance time according to the `WaitSwitch` parameter.
Before you modify a parameter, you can use the `DescribeInstanceParams` API to query whether the instance needs to be restarted.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyInstanceParamWithContext ¶
func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error)
ModifyInstanceParam This API is used to modify instance parameters.
<b>Note</b>: if <b>the instance needs to be restarted</b> for the modified parameter to take effect, <b>it will be restarted</b> immediately or during the maintenance time according to the `WaitSwitch` parameter.
Before you modify a parameter, you can use the `DescribeInstanceParams` API to query whether the instance needs to be restarted.
error code that may be returned:
AUTHFAILURE = "AuthFailure" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) ModifyMigration ¶
func (c *Client) ModifyMigration(request *ModifyMigrationRequest) (response *ModifyMigrationResponse, err error)
ModifyMigration This API is used to modify an existing migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEMIGRATEREGIONILLEGAL = "ResourceUnavailable.InstanceMigrateRegionIllegal" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) ModifyMigrationWithContext ¶
func (c *Client) ModifyMigrationWithContext(ctx context.Context, request *ModifyMigrationRequest) (response *ModifyMigrationResponse, err error)
ModifyMigration This API is used to modify an existing migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed" INTERNALERROR_DBCONNECTERROR = "InternalError.DBConnectError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_MIGRATIONNAMEISILLEGAL = "InvalidParameterValue.MigrationNameIsIllegal" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCEMIGRATEREGIONILLEGAL = "ResourceUnavailable.InstanceMigrateRegionIllegal" RESOURCEUNAVAILABLE_INSTANCEMIGRATESTATUSINVALID = "ResourceUnavailable.InstanceMigrateStatusInvalid" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RecycleDBInstance ¶
func (c *Client) RecycleDBInstance(request *RecycleDBInstanceRequest) (response *RecycleDBInstanceResponse, err error)
RecycleDBInstance This API is used to return a deactivated SQL Server instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RecycleDBInstanceWithContext ¶
func (c *Client) RecycleDBInstanceWithContext(ctx context.Context, request *RecycleDBInstanceRequest) (response *RecycleDBInstanceResponse, err error)
RecycleDBInstance This API is used to return a deactivated SQL Server instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" 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 account password of an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_PASSWORDISILLEGAL = "InvalidParameterValue.PasswordIsIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid"
func (*Client) ResetAccountPasswordWithContext ¶
func (c *Client) ResetAccountPasswordWithContext(ctx context.Context, request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
ResetAccountPassword This API is used to reset the account password of an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_PASSWORDISILLEGAL = "InvalidParameterValue.PasswordIsIllegal" RESOURCENOTFOUND_ACCOUNTNOTEXIST = "ResourceNotFound.AccountNotExist" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_ACCOUNTINVALIDSTATUS = "ResourceUnavailable.AccountInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid"
func (*Client) RestartDBInstance ¶
func (c *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
RestartDBInstance This API is used to restart a database instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RestartDBInstanceWithContext ¶
func (c *Client) RestartDBInstanceWithContext(ctx context.Context, request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
RestartDBInstance This API is used to restart a database instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RestoreInstance ¶
func (c *Client) RestoreInstance(request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
RestoreInstance This API is used to restore an instance from a backup file.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RestoreInstanceWithContext ¶
func (c *Client) RestoreInstanceWithContext(ctx context.Context, request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
RestoreInstance This API is used to restore an instance from a backup file.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_DBEXIST = "InvalidParameterValue.DBExist" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_DBINVALIDSTATUS = "ResourceUnavailable.DBInvalidStatus" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RollbackInstance ¶
func (c *Client) RollbackInstance(request *RollbackInstanceRequest) (response *RollbackInstanceResponse, err error)
RollbackInstance This API is used to roll back an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RollbackInstanceWithContext ¶
func (c *Client) RollbackInstanceWithContext(ctx context.Context, request *RollbackInstanceRequest) (response *RollbackInstanceResponse, err error)
RollbackInstance This API is used to roll back an instance.
error code that may be returned:
INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_GCSERROR = "InternalError.GcsError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RunMigration ¶
func (c *Client) RunMigration(request *RunMigrationRequest) (response *RunMigrationResponse, err error)
RunMigration This API is used to start running a migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) RunMigrationWithContext ¶
func (c *Client) RunMigrationWithContext(ctx context.Context, request *RunMigrationRequest) (response *RunMigrationResponse, err error)
RunMigration This API is used to start running a migration task.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" LIMITEXCEEDED_TOOMANYDB = "LimitExceeded.TooManyDB" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) StartBackupMigration ¶
func (c *Client) StartBackupMigration(request *StartBackupMigrationRequest) (response *StartBackupMigrationResponse, err error)
StartBackupMigration This API is used to start a backup import task.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCENOTFOUND_BACKUPNOTFOUND = "ResourceNotFound.BackupNotFound" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) StartBackupMigrationWithContext ¶
func (c *Client) StartBackupMigrationWithContext(ctx context.Context, request *StartBackupMigrationRequest) (response *StartBackupMigrationResponse, err error)
StartBackupMigration This API is used to start a backup import task.
error code that may be returned:
FAILEDOPERATION_DBERROR = "FailedOperation.DBError" FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCENOTFOUND_BACKUPNOTFOUND = "ResourceNotFound.BackupNotFound" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) StartIncrementalMigration ¶
func (c *Client) StartIncrementalMigration(request *StartIncrementalMigrationRequest) (response *StartIncrementalMigrationResponse, err error)
StartIncrementalMigration This API is used to start an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCENOTFOUND_BACKUPNOTFOUND = "ResourceNotFound.BackupNotFound" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) StartIncrementalMigrationWithContext ¶
func (c *Client) StartIncrementalMigrationWithContext(ctx context.Context, request *StartIncrementalMigrationRequest) (response *StartIncrementalMigrationResponse, err error)
StartIncrementalMigration This API is used to start an incremental backup import task.
error code that may be returned:
FAILEDOPERATION_MIGRATIONLOCKERROR = "FailedOperation.MigrationLockError" INTERNALERROR_COSERROR = "InternalError.CosError" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETERVALUE_BACKUPNAMEISILLEGAL = "InvalidParameterValue.BackupNameIsIllegal" RESOURCENOTFOUND_BACKUPNOTFOUND = "ResourceNotFound.BackupNotFound" RESOURCENOTFOUND_FULLBACKUPMIGRATIONNOTEXIST = "ResourceNotFound.FullBackupMigrationNotExist" RESOURCEUNAVAILABLE_COSSTATUSERR = "ResourceUnavailable.CosStatusErr" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) TerminateDBInstance ¶
func (c *Client) TerminateDBInstance(request *TerminateDBInstanceRequest) (response *TerminateDBInstanceResponse, err error)
TerminateDBInstance This API is used to isolate an instance to move it into a recycle bin.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) TerminateDBInstanceWithContext ¶
func (c *Client) TerminateDBInstanceWithContext(ctx context.Context, request *TerminateDBInstanceRequest) (response *TerminateDBInstanceResponse, err error)
TerminateDBInstance This API is used to isolate an instance to move it into a recycle bin.
error code that may be returned:
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" RESOURCEUNAVAILABLE_INSTANCESTATUSINVALID = "ResourceUnavailable.InstanceStatusInvalid" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) UpgradeDBInstance ¶
func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
UpgradeDBInstance This API is used to upgrade an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETER_PAYORDERFAILED = "InvalidParameter.PayOrderFailed" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (*Client) UpgradeDBInstanceWithContext ¶
func (c *Client) UpgradeDBInstanceWithContext(ctx context.Context, request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
UpgradeDBInstance This API is used to upgrade an instance.
error code that may be returned:
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed" INTERNALERROR_DBERROR = "InternalError.DBError" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_INPUTILLEGAL = "InvalidParameter.InputIllegal" INVALIDPARAMETER_PARAMSASSERTFAILED = "InvalidParameter.ParamsAssertFailed" INVALIDPARAMETER_PAYORDERFAILED = "InvalidParameter.PayOrderFailed" INVALIDPARAMETERVALUE_ILLEGALSPEC = "InvalidParameterValue.IllegalSpec" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
type CloneDBRequest ¶
type CloneDBRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-j8kv137v InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Clone and rename the databases specified in `ReNameRestoreDatabase`. Please note that the clones must be renamed. RenameRestore []*RenameRestoreDatabase `json:"RenameRestore,omitempty" name:"RenameRestore"` }
func NewCloneDBRequest ¶
func NewCloneDBRequest() (request *CloneDBRequest)
func (*CloneDBRequest) FromJsonString ¶
func (r *CloneDBRequest) 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 (*CloneDBRequest) ToJsonString ¶
func (r *CloneDBRequest) ToJsonString() string
type CloneDBResponse ¶
type CloneDBResponse struct { *tchttp.BaseResponse Response *struct { // Async task request ID, which can be used in the `DescribeFlowStatus` API to query the execution result of an async task 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 NewCloneDBResponse ¶
func NewCloneDBResponse() (response *CloneDBResponse)
func (*CloneDBResponse) FromJsonString ¶
func (r *CloneDBResponse) 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 (*CloneDBResponse) ToJsonString ¶
func (r *CloneDBResponse) ToJsonString() string
type CosUploadBackupFile ¶
type CreateAccountRequest ¶
type CreateAccountRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database instance account information Accounts []*AccountCreateInfo `json:"Accounts,omitempty" name:"Accounts"` }
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 { // 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 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 CreateBackupMigrationRequest ¶
type CreateBackupMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration RecoveryType *string `json:"RecoveryType,omitempty" name:"RecoveryType"` // Backup upload type. COS_URL: the backup is stored in user’s Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the application’s Cloud Object Storage and needs to be uploaded by the user. UploadType *string `json:"UploadType,omitempty" name:"UploadType"` // Task name MigrationName *string `json:"MigrationName,omitempty" name:"MigrationName"` // If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. BackupFiles []*string `json:"BackupFiles,omitempty" name:"BackupFiles"` }
func NewCreateBackupMigrationRequest ¶
func NewCreateBackupMigrationRequest() (request *CreateBackupMigrationRequest)
func (*CreateBackupMigrationRequest) FromJsonString ¶
func (r *CreateBackupMigrationRequest) 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 (*CreateBackupMigrationRequest) ToJsonString ¶
func (r *CreateBackupMigrationRequest) ToJsonString() string
type CreateBackupMigrationResponse ¶
type CreateBackupMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Backup import task ID BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // 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 NewCreateBackupMigrationResponse ¶
func NewCreateBackupMigrationResponse() (response *CreateBackupMigrationResponse)
func (*CreateBackupMigrationResponse) FromJsonString ¶
func (r *CreateBackupMigrationResponse) 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 (*CreateBackupMigrationResponse) ToJsonString ¶
func (r *CreateBackupMigrationResponse) ToJsonString() string
type CreateBackupRequest ¶
type CreateBackupRequest struct { *tchttp.BaseRequest // Backup policy (0: instance backup, 1: multi-database backup) Strategy *int64 `json:"Strategy,omitempty" name:"Strategy"` // List of names of databases to be backed up (required only for multi-database backup) DBNames []*string `json:"DBNames,omitempty" name:"DBNames"` // Instance ID in the format of mssql-i1z41iwd InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup name. If this parameter is left empty, a backup name in the format of "[Instance ID]_[Backup start timestamp]" will be automatically generated. BackupName *string `json:"BackupName,omitempty" name:"BackupName"` }
func NewCreateBackupRequest ¶
func NewCreateBackupRequest() (request *CreateBackupRequest)
func (*CreateBackupRequest) FromJsonString ¶
func (r *CreateBackupRequest) 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 (*CreateBackupRequest) ToJsonString ¶
func (r *CreateBackupRequest) ToJsonString() string
type CreateBackupResponse ¶
type CreateBackupResponse struct { *tchttp.BaseResponse Response *struct { // The async job 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 NewCreateBackupResponse ¶
func NewCreateBackupResponse() (response *CreateBackupResponse)
func (*CreateBackupResponse) FromJsonString ¶
func (r *CreateBackupResponse) 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 (*CreateBackupResponse) ToJsonString ¶
func (r *CreateBackupResponse) ToJsonString() string
type CreateDBInstancesRequest ¶
type CreateDBInstancesRequest struct { *tchttp.BaseRequest // Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Instance storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Billing mode. Valid value: POSTPAID (pay-as-you-go). InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Number of instances purchased this time. Default value: 1. Maximum value: 10 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48 Period *int64 `json:"Period,omitempty" name:"Period"` // Whether to automatically use voucher. 0: no, 1: yes. Default value: no AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` // Array of voucher IDs (currently, only one voucher can be used per order) VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` // SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). The version purchasable varies by region and can be queried by calling the `DescribeProductConfig` API. If this parameter is left empty, 2008R2 will be used by default. DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"` // Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1. AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // Security group list, which contains security group IDs in the format of sg-xxx. SecurityGroupList []*string `json:"SecurityGroupList,omitempty" name:"SecurityGroupList"` // Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). Weekly []*int64 `json:"Weekly,omitempty" name:"Weekly"` // Configuration of the maintenance window, which specifies the start time of daily maintenance. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Configuration of the maintenance window, which specifies the maintenance duration in hours. Span *int64 `json:"Span,omitempty" name:"Span"` // The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL. HAType *string `json:"HAType,omitempty" name:"HAType"` // Whether to deploy across availability zones. Default value: false. MultiZones *bool `json:"MultiZones,omitempty" name:"MultiZones"` // Tags associated with the instances to be created ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` }
func NewCreateDBInstancesRequest ¶
func NewCreateDBInstancesRequest() (request *CreateDBInstancesRequest)
func (*CreateDBInstancesRequest) FromJsonString ¶
func (r *CreateDBInstancesRequest) 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 (*CreateDBInstancesRequest) ToJsonString ¶
func (r *CreateDBInstancesRequest) ToJsonString() string
type CreateDBInstancesResponse ¶
type CreateDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Order name DealName *string `json:"DealName,omitempty" name:"DealName"` // Order name array DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDBInstancesResponse ¶
func NewCreateDBInstancesResponse() (response *CreateDBInstancesResponse)
func (*CreateDBInstancesResponse) FromJsonString ¶
func (r *CreateDBInstancesResponse) 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 (*CreateDBInstancesResponse) ToJsonString ¶
func (r *CreateDBInstancesResponse) ToJsonString() string
type CreateDBRequest ¶
type CreateDBRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Database creation information DBs []*DBCreateInfo `json:"DBs,omitempty" name:"DBs"` }
func NewCreateDBRequest ¶
func NewCreateDBRequest() (request *CreateDBRequest)
func (*CreateDBRequest) FromJsonString ¶
func (r *CreateDBRequest) 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 (*CreateDBRequest) ToJsonString ¶
func (r *CreateDBRequest) ToJsonString() string
type CreateDBResponse ¶
type CreateDBResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDBResponse ¶
func NewCreateDBResponse() (response *CreateDBResponse)
func (*CreateDBResponse) FromJsonString ¶
func (r *CreateDBResponse) 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 (*CreateDBResponse) ToJsonString ¶
func (r *CreateDBResponse) ToJsonString() string
type CreateIncrementalMigrationRequest ¶
type CreateIncrementalMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration. BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. BackupFiles []*string `json:"BackupFiles,omitempty" name:"BackupFiles"` // Whether restoration is required. No: not required. Yes: required. Not required by default. IsRecovery *string `json:"IsRecovery,omitempty" name:"IsRecovery"` }
func NewCreateIncrementalMigrationRequest ¶
func NewCreateIncrementalMigrationRequest() (request *CreateIncrementalMigrationRequest)
func (*CreateIncrementalMigrationRequest) FromJsonString ¶
func (r *CreateIncrementalMigrationRequest) 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 (*CreateIncrementalMigrationRequest) ToJsonString ¶
func (r *CreateIncrementalMigrationRequest) ToJsonString() string
type CreateIncrementalMigrationResponse ¶
type CreateIncrementalMigrationResponse struct { *tchttp.BaseResponse Response *struct { // ID of an incremental backup import task IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` // 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 NewCreateIncrementalMigrationResponse ¶
func NewCreateIncrementalMigrationResponse() (response *CreateIncrementalMigrationResponse)
func (*CreateIncrementalMigrationResponse) FromJsonString ¶
func (r *CreateIncrementalMigrationResponse) 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 (*CreateIncrementalMigrationResponse) ToJsonString ¶
func (r *CreateIncrementalMigrationResponse) ToJsonString() string
type CreateMigrationRequest ¶
type CreateMigrationRequest struct { *tchttp.BaseRequest // Migration task name MigrateName *string `json:"MigrateName,omitempty" name:"MigrateName"` // Migration type (1: structure migration, 2: data migration, 3: incremental sync) MigrateType *uint64 `json:"MigrateType,omitempty" name:"MigrateType"` // Migration source type. 1: TencentDB for SQL Server, 2: CVM-based self-created SQL Server database; 3: SQL Server backup restoration, 4: SQL Server backup restoration (in COS mode) SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"` // Migration source Source *MigrateSource `json:"Source,omitempty" name:"Source"` // Migration target Target *MigrateTarget `json:"Target,omitempty" name:"Target"` // Database objects to be migrated. This parameter is not used for offline migration (SourceType=4 or SourceType=5) MigrateDBSet []*MigrateDB `json:"MigrateDBSet,omitempty" name:"MigrateDBSet"` // Restore and rename the databases listed in `ReNameRestoreDatabase`. If this parameter is left empty, all restored databases will be renamed in the default format. This parameter takes effect only when `SourceType=5`. RenameRestore []*RenameRestoreDatabase `json:"RenameRestore,omitempty" name:"RenameRestore"` }
func NewCreateMigrationRequest ¶
func NewCreateMigrationRequest() (request *CreateMigrationRequest)
func (*CreateMigrationRequest) FromJsonString ¶
func (r *CreateMigrationRequest) 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 (*CreateMigrationRequest) ToJsonString ¶
func (r *CreateMigrationRequest) ToJsonString() string
type CreateMigrationResponse ¶
type CreateMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Migration task ID MigrateId *int64 `json:"MigrateId,omitempty" name:"MigrateId"` // 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 NewCreateMigrationResponse ¶
func NewCreateMigrationResponse() (response *CreateMigrationResponse)
func (*CreateMigrationResponse) FromJsonString ¶
func (r *CreateMigrationResponse) 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 (*CreateMigrationResponse) ToJsonString ¶
func (r *CreateMigrationResponse) ToJsonString() string
type DBCreateInfo ¶
type DBCreateInfo struct { // Database name DBName *string `json:"DBName,omitempty" name:"DBName"` // Character set, which can be queried by the `DescribeDBCharsets` API. Default value: `Chinese_PRC_CI_AS`. Charset *string `json:"Charset,omitempty" name:"Charset"` // Database account permission information Accounts []*AccountPrivilege `json:"Accounts,omitempty" name:"Accounts"` // Remarks Remark *string `json:"Remark,omitempty" name:"Remark"` }
type DBDetail ¶
type DBDetail struct { // Database name Name *string `json:"Name,omitempty" name:"Name"` // Character set Charset *string `json:"Charset,omitempty" name:"Charset"` // Remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Database creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Database status. 1: creating, 2: running, 3: modifying, -1: dropping Status *int64 `json:"Status,omitempty" name:"Status"` // Database account permission information Accounts []*AccountPrivilege `json:"Accounts,omitempty" name:"Accounts"` // Internal status. ONLINE: running InternalStatus *string `json:"InternalStatus,omitempty" name:"InternalStatus"` }
type DBInstance ¶
type DBInstance struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name Name *string `json:"Name,omitempty" name:"Name"` // Project ID of instance ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance region ID RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Instance AZ ID ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance VPC ID, which will be 0 if the basic network is used VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` // Instance VPC subnet ID, which will be 0 if the basic network is used SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` // Instance status. Valid values: <li>1: creating</li> <li>2: running</li> <li>3: instance operations restricted (due to the ongoing primary-replica switch)</li> <li>4: isolated</li> <li>5: repossessing</li> <li>6: repossessed</li> <li>7: running tasks (such as backup and rollback tasks)</li> <li>8: eliminated</li> <li>9: expanding capacity</li> <li>10: migrating</li> <li>11: read-only</li> <li>12: restarting</li> <li>13: modifying configuration and waiting for switch</li> <li>14: implementing pub/sub</li> <li>15: modifying pub/sub configuration</li> <li>16: modifying configuration and switching</li> <li>17: creating read-only instances</li> Status *int64 `json:"Status,omitempty" name:"Status"` // Instance access IP Vip *string `json:"Vip,omitempty" name:"Vip"` // Instance access port Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Instance creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Instance update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Instance billing start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Instance billing end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Instance isolation time IsolateTime *string `json:"IsolateTime,omitempty" name:"IsolateTime"` // Instance memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Used storage capacity of instance in GB UsedStorage *int64 `json:"UsedStorage,omitempty" name:"UsedStorage"` // Instance storage capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Instance version VersionName *string `json:"VersionName,omitempty" name:"VersionName"` // Instance renewal flag RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"` // High-availability instance type. Valid values: 1 (dual-server high-availability), 2 (standalone), 3 (multi-AZ), 4 (multi-AZ cluster), 5 (cluster), 9 (private consumption) Model *int64 `json:"Model,omitempty" name:"Model"` // Instance region name, such as ap-guangzhou Region *string `json:"Region,omitempty" name:"Region"` // Instance AZ name, such as ap-guangzhou-1 Zone *string `json:"Zone,omitempty" name:"Zone"` // Backup time point BackupTime *string `json:"BackupTime,omitempty" name:"BackupTime"` // Instance billing mode. 0: pay-as-you-go PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Instance UID Uid *string `json:"Uid,omitempty" name:"Uid"` // Number of CPU cores of instance Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Instance version code Version *string `json:"Version,omitempty" name:"Version"` // Physical server code Type *string `json:"Type,omitempty" name:"Type"` // Billing ID Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Unique string-type ID of instance VPC in the format of `vpc-xxx`, which is an empty string if the basic network is used UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` // Unique string-type ID of instance subnet in the format of `subnet-xxx`, which is an empty string if the basic network is used UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` // Instance isolation. // Note: this field may return null, indicating that no valid values can be obtained. IsolateOperator *string `json:"IsolateOperator,omitempty" name:"IsolateOperator"` // Pub/sub flag. Valid values: SUB (subscribe instance), PUB (publish instance). If it is left empty, it refers to a regular instance without a pub/sub design. // Note: this field may return null, indicating that no valid values can be obtained. SubFlag *string `json:"SubFlag,omitempty" name:"SubFlag"` // Read-only flag. Valid values: RO (read-only instance), MASTER (primary instance with read-only instances). If it is left empty, it refers to an instance which is not read-only and has no RO group. // Note: this field may return null, indicating that no valid values can be obtained. ROFlag *string `json:"ROFlag,omitempty" name:"ROFlag"` // Disaster recovery type. Valid values: MIRROR (image), ALWAYSON (AlwaysOn), SINGLE (singleton). // Note: this field may return null, indicating that no valid values can be obtained. HAFlag *string `json:"HAFlag,omitempty" name:"HAFlag"` // The list of tags associated with the instance // Note: this field may return `null`, indicating that no valid values can be obtained. ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Backup mode. Valid values: `master_pkg` (archive the backup files of the primary node (default value)), `master_no_pkg` (do not archive the backup files of the primary node), `slave_pkg` (archive the backup files of the replica node (valid for Always On clusters)), `slave_no_pkg` (do not archive the backup files of the replica node (valid for Always On clusters)). This parameter is invalid for read-only instances. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupModel *string `json:"BackupModel,omitempty" name:"BackupModel"` // Instance backup info // Note: This field may return `null`, indicating that no valid values can be obtained. InstanceNote *string `json:"InstanceNote,omitempty" name:"InstanceNote"` // Backup cycle BackupCycle []*int64 `json:"BackupCycle,omitempty" name:"BackupCycle"` // Backup cycle type. Valid values: `daily`, `weekly`, `monthly`. BackupCycleType *string `json:"BackupCycleType,omitempty" name:"BackupCycleType"` // Data (log) backup retention period BackupSaveDays *int64 `json:"BackupSaveDays,omitempty" name:"BackupSaveDays"` // Instance type. Valid values: `HA` (high-availability), `RO` (read-only), `SI` (basic edition), `BI` (business intelligence service). InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
type DBPrivilege ¶
type DBPrivilegeModifyInfo ¶
type DBPrivilegeModifyInfo struct { // Database name DBName *string `json:"DBName,omitempty" name:"DBName"` // Permission change information. ReadWrite: read/write, ReadOnly: read-only, Delete: the account has the permission to delete this database Privilege *string `json:"Privilege,omitempty" name:"Privilege"` }
type DbNormalDetail ¶
type DbNormalDetail struct { // Whether it is subscribed. Valid values: `0` (no), `1` (yes) IsSubscribed *string `json:"IsSubscribed,omitempty" name:"IsSubscribed"` // Database collation CollationName *string `json:"CollationName,omitempty" name:"CollationName"` // Whether the cleanup task is enabled to automatically remove old change tracking information when CT is enabled. Valid values: `0` (no), `1` (yes) IsAutoCleanupOn *string `json:"IsAutoCleanupOn,omitempty" name:"IsAutoCleanupOn"` // Whether SQL Server Service Broker is enabled. Valid values: `0` (no), `1` (yes) IsBrokerEnabled *string `json:"IsBrokerEnabled,omitempty" name:"IsBrokerEnabled"` // Whether CDC is enabled. Valid values: `0` (disabled), `1` (enabled) IsCdcEnabled *string `json:"IsCdcEnabled,omitempty" name:"IsCdcEnabled"` // Whether CT is enabled. Valid values: `0` (disabled), `1` (enabled) IsDbChainingOn *string `json:"IsDbChainingOn,omitempty" name:"IsDbChainingOn"` // Whether it is encrypted. Valid values: `0` (no), `1` (yes) IsEncrypted *string `json:"IsEncrypted,omitempty" name:"IsEncrypted"` // Whether full-text indexes are enabled. Valid values: `0` (no), `1` (yes) IsFulltextEnabled *string `json:"IsFulltextEnabled,omitempty" name:"IsFulltextEnabled"` // Whether it is a mirror database. Valid values: `0` (no), `1` (yes) IsMirroring *string `json:"IsMirroring,omitempty" name:"IsMirroring"` // Whether it is published. Valid values: `0` (no), `1` (yes) IsPublished *string `json:"IsPublished,omitempty" name:"IsPublished"` // Whether snapshots are enabled. Valid values: `0` (no), `1` (yes) IsReadCommittedSnapshotOn *string `json:"IsReadCommittedSnapshotOn,omitempty" name:"IsReadCommittedSnapshotOn"` // Whether it is trustworthy. Valid values: `0` (no), `1` (yes) IsTrustworthyOn *string `json:"IsTrustworthyOn,omitempty" name:"IsTrustworthyOn"` // Mirroring state MirroringState *string `json:"MirroringState,omitempty" name:"MirroringState"` // Database name Name *string `json:"Name,omitempty" name:"Name"` // Recovery model RecoveryModelDesc *string `json:"RecoveryModelDesc,omitempty" name:"RecoveryModelDesc"` // Retention period (in days) of change tracking information RetentionPeriod *string `json:"RetentionPeriod,omitempty" name:"RetentionPeriod"` // Database status StateDesc *string `json:"StateDesc,omitempty" name:"StateDesc"` // User type UserAccessDesc *string `json:"UserAccessDesc,omitempty" name:"UserAccessDesc"` }
type DbRollbackTimeInfo ¶
type DbRollbackTimeInfo struct { // Database name DBName *string `json:"DBName,omitempty" name:"DBName"` // Start time of time range available for rollback StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of time range available for rollback EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
type DealInfo ¶
type DealInfo struct { // Order name DealName *string `json:"DealName,omitempty" name:"DealName"` // Number of items Count *uint64 `json:"Count,omitempty" name:"Count"` // ID of associated flow, which can be used to query the flow execution status FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // This field is required only for an order that creates an instance, indicating the ID of the instance created by the order InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // Account OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"` // Instance billing type InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` }
type DeleteAccountRequest ¶
type DeleteAccountRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Array of instance usernames UserNames []*string `json:"UserNames,omitempty" name:"UserNames"` }
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 { // 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 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 DeleteBackupMigrationRequest ¶
type DeleteBackupMigrationRequest struct { *tchttp.BaseRequest // Target instance ID, which is returned through the API DescribeBackupMigration. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API DescribeBackupMigration. BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` }
func NewDeleteBackupMigrationRequest ¶
func NewDeleteBackupMigrationRequest() (request *DeleteBackupMigrationRequest)
func (*DeleteBackupMigrationRequest) FromJsonString ¶
func (r *DeleteBackupMigrationRequest) 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 (*DeleteBackupMigrationRequest) ToJsonString ¶
func (r *DeleteBackupMigrationRequest) ToJsonString() string
type DeleteBackupMigrationResponse ¶
type DeleteBackupMigrationResponse 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 NewDeleteBackupMigrationResponse ¶
func NewDeleteBackupMigrationResponse() (response *DeleteBackupMigrationResponse)
func (*DeleteBackupMigrationResponse) FromJsonString ¶
func (r *DeleteBackupMigrationResponse) 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 (*DeleteBackupMigrationResponse) ToJsonString ¶
func (r *DeleteBackupMigrationResponse) ToJsonString() string
type DeleteDBRequest ¶
type DeleteDBRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-rljoi3bf InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Array of database names Names []*string `json:"Names,omitempty" name:"Names"` }
func NewDeleteDBRequest ¶
func NewDeleteDBRequest() (request *DeleteDBRequest)
func (*DeleteDBRequest) FromJsonString ¶
func (r *DeleteDBRequest) 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 (*DeleteDBRequest) ToJsonString ¶
func (r *DeleteDBRequest) ToJsonString() string
type DeleteDBResponse ¶
type DeleteDBResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteDBResponse ¶
func NewDeleteDBResponse() (response *DeleteDBResponse)
func (*DeleteDBResponse) FromJsonString ¶
func (r *DeleteDBResponse) 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 (*DeleteDBResponse) ToJsonString ¶
func (r *DeleteDBResponse) ToJsonString() string
type DeleteIncrementalMigrationRequest ¶
type DeleteIncrementalMigrationRequest struct { *tchttp.BaseRequest // Target instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the `CreateBackupMigration` API BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Incremental backup import task ID, which is returned through the `CreateIncrementalMigration` API IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` }
func NewDeleteIncrementalMigrationRequest ¶
func NewDeleteIncrementalMigrationRequest() (request *DeleteIncrementalMigrationRequest)
func (*DeleteIncrementalMigrationRequest) FromJsonString ¶
func (r *DeleteIncrementalMigrationRequest) 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 (*DeleteIncrementalMigrationRequest) ToJsonString ¶
func (r *DeleteIncrementalMigrationRequest) ToJsonString() string
type DeleteIncrementalMigrationResponse ¶
type DeleteIncrementalMigrationResponse 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 NewDeleteIncrementalMigrationResponse ¶
func NewDeleteIncrementalMigrationResponse() (response *DeleteIncrementalMigrationResponse)
func (*DeleteIncrementalMigrationResponse) FromJsonString ¶
func (r *DeleteIncrementalMigrationResponse) 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 (*DeleteIncrementalMigrationResponse) ToJsonString ¶
func (r *DeleteIncrementalMigrationResponse) ToJsonString() string
type DeleteMigrationRequest ¶
type DeleteMigrationRequest struct { *tchttp.BaseRequest // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` }
func NewDeleteMigrationRequest ¶
func NewDeleteMigrationRequest() (request *DeleteMigrationRequest)
func (*DeleteMigrationRequest) FromJsonString ¶
func (r *DeleteMigrationRequest) 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 (*DeleteMigrationRequest) ToJsonString ¶
func (r *DeleteMigrationRequest) ToJsonString() string
type DeleteMigrationResponse ¶
type DeleteMigrationResponse 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 NewDeleteMigrationResponse ¶
func NewDeleteMigrationResponse() (response *DeleteMigrationResponse)
func (*DeleteMigrationResponse) FromJsonString ¶
func (r *DeleteMigrationResponse) 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 (*DeleteMigrationResponse) ToJsonString ¶
func (r *DeleteMigrationResponse) ToJsonString() string
type DescribeAccountsRequest ¶
type DescribeAccountsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of results per page. Value range: 1-100. Default value: 20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: 0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
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 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Account information list Accounts []*AccountDetail `json:"Accounts,omitempty" name:"Accounts"` // Total number TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 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 DescribeBackupCommandRequest ¶
type DescribeBackupCommandRequest struct { *tchttp.BaseRequest // Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup. BackupFileType *string `json:"BackupFileType,omitempty" name:"BackupFileType"` // Database name DataBaseName *string `json:"DataBaseName,omitempty" name:"DataBaseName"` // Whether restoration is required. No: not required. Yes: required. IsRecovery *string `json:"IsRecovery,omitempty" name:"IsRecovery"` // Storage path of backup files. If this parameter is left empty, the default storage path will be D:\\. LocalPath *string `json:"LocalPath,omitempty" name:"LocalPath"` }
func NewDescribeBackupCommandRequest ¶
func NewDescribeBackupCommandRequest() (request *DescribeBackupCommandRequest)
func (*DescribeBackupCommandRequest) FromJsonString ¶
func (r *DescribeBackupCommandRequest) 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 (*DescribeBackupCommandRequest) ToJsonString ¶
func (r *DescribeBackupCommandRequest) ToJsonString() string
type DescribeBackupCommandResponse ¶
type DescribeBackupCommandResponse struct { *tchttp.BaseResponse Response *struct { // Create a backup command Command *string `json:"Command,omitempty" name:"Command"` // 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 NewDescribeBackupCommandResponse ¶
func NewDescribeBackupCommandResponse() (response *DescribeBackupCommandResponse)
func (*DescribeBackupCommandResponse) FromJsonString ¶
func (r *DescribeBackupCommandResponse) 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 (*DescribeBackupCommandResponse) ToJsonString ¶
func (r *DescribeBackupCommandResponse) ToJsonString() string
type DescribeBackupFilesRequest ¶
type DescribeBackupFilesRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Group ID of unarchived backup files, which can be obtained by the `DescribeBackups` API GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Number of entries to be returned per page. Value range: 1-100. Default value: `20` Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: `0` Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Filter backups by database name. If the parameter is left empty, this filter criterion will not take effect. DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // List items sorting by backup size. Valid values: `desc`(descending order), `asc` (ascending order). Default value: `desc`. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` }
func NewDescribeBackupFilesRequest ¶
func NewDescribeBackupFilesRequest() (request *DescribeBackupFilesRequest)
func (*DescribeBackupFilesRequest) FromJsonString ¶
func (r *DescribeBackupFilesRequest) 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 (*DescribeBackupFilesRequest) ToJsonString ¶
func (r *DescribeBackupFilesRequest) ToJsonString() string
type DescribeBackupFilesResponse ¶
type DescribeBackupFilesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of backups TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of backup file details BackupFiles []*BackupFile `json:"BackupFiles,omitempty" name:"BackupFiles"` // 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 NewDescribeBackupFilesResponse ¶
func NewDescribeBackupFilesResponse() (response *DescribeBackupFilesResponse)
func (*DescribeBackupFilesResponse) FromJsonString ¶
func (r *DescribeBackupFilesResponse) 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 (*DescribeBackupFilesResponse) ToJsonString ¶
func (r *DescribeBackupFilesResponse) ToJsonString() string
type DescribeBackupMigrationRequest ¶
type DescribeBackupMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration. BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Import task name MigrationName *string `json:"MigrationName,omitempty" name:"MigrationName"` // Backup file name BackupFileName *string `json:"BackupFileName,omitempty" name:"BackupFileName"` // Status set of import tasks StatusSet []*int64 `json:"StatusSet,omitempty" name:"StatusSet"` // Import task restoration type: FULL,FULL_LOG,FULL_DIFF RecoveryType *string `json:"RecoveryType,omitempty" name:"RecoveryType"` // COS_URL: the backup is stored in user’s Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the application’s Cloud Object Storage and needs to be uploaded by the user. UploadType *string `json:"UploadType,omitempty" name:"UploadType"` // The maximum number of results returned per page. Default value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: `0`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Sort by field. Valid values: `name`, `createTime`, `startTime`, `endTime`. By default, the results returned are sorted by `createTime` in the ascending order. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order which is valid only when `OrderBy` is specified. Valid values: `asc` (ascending), `desc` (descending). Default value: `asc`. OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` }
func NewDescribeBackupMigrationRequest ¶
func NewDescribeBackupMigrationRequest() (request *DescribeBackupMigrationRequest)
func (*DescribeBackupMigrationRequest) FromJsonString ¶
func (r *DescribeBackupMigrationRequest) 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 (*DescribeBackupMigrationRequest) ToJsonString ¶
func (r *DescribeBackupMigrationRequest) ToJsonString() string
type DescribeBackupMigrationResponse ¶
type DescribeBackupMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Total number of tasks TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Migration task set BackupMigrationSet []*Migration `json:"BackupMigrationSet,omitempty" name:"BackupMigrationSet"` // 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 NewDescribeBackupMigrationResponse ¶
func NewDescribeBackupMigrationResponse() (response *DescribeBackupMigrationResponse)
func (*DescribeBackupMigrationResponse) FromJsonString ¶
func (r *DescribeBackupMigrationResponse) 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 (*DescribeBackupMigrationResponse) ToJsonString ¶
func (r *DescribeBackupMigrationResponse) ToJsonString() string
type DescribeBackupUploadSizeRequest ¶
type DescribeBackupUploadSizeRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Incremental import task ID IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` }
func NewDescribeBackupUploadSizeRequest ¶
func NewDescribeBackupUploadSizeRequest() (request *DescribeBackupUploadSizeRequest)
func (*DescribeBackupUploadSizeRequest) FromJsonString ¶
func (r *DescribeBackupUploadSizeRequest) 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 (*DescribeBackupUploadSizeRequest) ToJsonString ¶
func (r *DescribeBackupUploadSizeRequest) ToJsonString() string
type DescribeBackupUploadSizeResponse ¶
type DescribeBackupUploadSizeResponse struct { *tchttp.BaseResponse Response *struct { // Information of uploaded backups CosUploadBackupFileSet []*CosUploadBackupFile `json:"CosUploadBackupFileSet,omitempty" name:"CosUploadBackupFileSet"` // 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 NewDescribeBackupUploadSizeResponse ¶
func NewDescribeBackupUploadSizeResponse() (response *DescribeBackupUploadSizeResponse)
func (*DescribeBackupUploadSizeResponse) FromJsonString ¶
func (r *DescribeBackupUploadSizeResponse) 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 (*DescribeBackupUploadSizeResponse) ToJsonString ¶
func (r *DescribeBackupUploadSizeResponse) ToJsonString() string
type DescribeBackupsRequest ¶
type DescribeBackupsRequest struct { *tchttp.BaseRequest // Start name (yyyy-MM-dd HH:mm:ss) StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time (yyyy-MM-dd HH:mm:ss) EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of results per page. Value range: 1-100. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Filter by backup name. If this parameter is left empty, backup name will not be used in filtering. BackupName *string `json:"BackupName,omitempty" name:"BackupName"` // Filter by backup policy. Valid values: 0 (instance backup), 1 (multi-database backup). If this parameter is left empty, backup policy will not be used in filtering. Strategy *int64 `json:"Strategy,omitempty" name:"Strategy"` // Filter by backup mode. Valid values: 0 (automatic backup on a regular basis), 1 (manual backup performed by the user at any time). If this parameter is left empty, backup mode will not be used in filtering. BackupWay *int64 `json:"BackupWay,omitempty" name:"BackupWay"` // Filter by backup ID. If this parameter is left empty, backup ID will not be used in filtering. BackupId *uint64 `json:"BackupId,omitempty" name:"BackupId"` // Filter backups by the database name. If the parameter is left empty, this filter criteria will not take effect. DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // Whether to group backup files by backup task. Valid value: `0` (no), `1` (yes). Default value: `0`. This parameter is valid only for unarchived backup files. Group *int64 `json:"Group,omitempty" name:"Group"` // Backup type. Valid values: `1` (data backup), `2` (log backup). Default value: `1`. Type *int64 `json:"Type,omitempty" name:"Type"` // Filter by backup file format. Valid values: `pkg` (archive file), `single` (Unarchived files). BackupFormat *string `json:"BackupFormat,omitempty" name:"BackupFormat"` }
func NewDescribeBackupsRequest ¶
func NewDescribeBackupsRequest() (request *DescribeBackupsRequest)
func (*DescribeBackupsRequest) FromJsonString ¶
func (r *DescribeBackupsRequest) 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 (*DescribeBackupsRequest) ToJsonString ¶
func (r *DescribeBackupsRequest) ToJsonString() string
type DescribeBackupsResponse ¶
type DescribeBackupsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of backups TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Backup list details Backups []*Backup `json:"Backups,omitempty" name:"Backups"` // 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 NewDescribeBackupsResponse ¶
func NewDescribeBackupsResponse() (response *DescribeBackupsResponse)
func (*DescribeBackupsResponse) FromJsonString ¶
func (r *DescribeBackupsResponse) 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 (*DescribeBackupsResponse) ToJsonString ¶
func (r *DescribeBackupsResponse) ToJsonString() string
type DescribeDBCharsetsRequest ¶
type DescribeDBCharsetsRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-j8kv137v InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBCharsetsRequest ¶
func NewDescribeDBCharsetsRequest() (request *DescribeDBCharsetsRequest)
func (*DescribeDBCharsetsRequest) FromJsonString ¶
func (r *DescribeDBCharsetsRequest) 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 (*DescribeDBCharsetsRequest) ToJsonString ¶
func (r *DescribeDBCharsetsRequest) ToJsonString() string
type DescribeDBCharsetsResponse ¶
type DescribeDBCharsetsResponse struct { *tchttp.BaseResponse Response *struct { // Database character set list DatabaseCharsets []*string `json:"DatabaseCharsets,omitempty" name:"DatabaseCharsets"` // 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 NewDescribeDBCharsetsResponse ¶
func NewDescribeDBCharsetsResponse() (response *DescribeDBCharsetsResponse)
func (*DescribeDBCharsetsResponse) FromJsonString ¶
func (r *DescribeDBCharsetsResponse) 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 (*DescribeDBCharsetsResponse) ToJsonString ¶
func (r *DescribeDBCharsetsResponse) ToJsonString() string
type DescribeDBInstancesRequest ¶
type DescribeDBInstancesRequest struct { *tchttp.BaseRequest // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance status. Valid values: // <li>1: applying</li> // <li>2: running</li> // <li>3: running restrictedly (primary/secondary switching)</li> // <li>4: isolated</li> // <li>5: repossessing</li> // <li>6: repossessed</li> // <li>7: executing task (e.g., backing up or rolling back instance)</li> // <li>8: deactivated</li> // <li>9: scaling out instance</li> // <li>10: migrating instance</li> // <li>11: read-only</li> // <li>12: restarting</li> Status *int64 `json:"Status,omitempty" name:"Status"` // Page number. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of results per page. Value range: 1-100. Default value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // One or more instance IDs in the format of mssql-si2823jyl InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // Retrieves billing type. 0: pay-as-you-go PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Unique string-type ID of instance VPC in the format of `vpc-xxx`. If an empty string ("") is passed in, filtering will be made by basic network. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Unique string-type ID of instance subnet in the format of `subnet-xxx`. If an empty string ("") is passed in, filtering will be made by basic network. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // The list of instance private IPs, such as 172.1.0.12 VipSet []*string `json:"VipSet,omitempty" name:"VipSet"` // The list of instance names used for fuzzy match InstanceNameSet []*string `json:"InstanceNameSet,omitempty" name:"InstanceNameSet"` // The list of instance version numbers, such as 2008R2, 2012SP3 VersionSet []*string `json:"VersionSet,omitempty" name:"VersionSet"` // Instance availability zone, such as ap-guangzhou-2 Zone *string `json:"Zone,omitempty" name:"Zone"` // The list of instance tags TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Keyword used for fuzzy match, including instance ID, instance name, and instance private IP SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // Unique Uid of an instance UidSet []*string `json:"UidSet,omitempty" name:"UidSet"` // Instance type. Valid values: `HA` (high-availability), `RO` (read-only), `SI` (basic edition), `BI` (business intelligence service). InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
func NewDescribeDBInstancesRequest ¶
func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest)
func (*DescribeDBInstancesRequest) FromJsonString ¶
func (r *DescribeDBInstancesRequest) 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 (*DescribeDBInstancesRequest) ToJsonString ¶
func (r *DescribeDBInstancesRequest) ToJsonString() string
type DescribeDBInstancesResponse ¶
type DescribeDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of eligible instances. If the results are returned in multiple pages, this value will be the number of all eligible instances but not the number of instances returned according to the current values of `Limit` and `Offset` TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Instance list DBInstances []*DBInstance `json:"DBInstances,omitempty" name:"DBInstances"` // 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 NewDescribeDBInstancesResponse ¶
func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse)
func (*DescribeDBInstancesResponse) FromJsonString ¶
func (r *DescribeDBInstancesResponse) 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 (*DescribeDBInstancesResponse) ToJsonString ¶
func (r *DescribeDBInstancesResponse) ToJsonString() string
type DescribeDBsNormalRequest ¶
type DescribeDBsNormalRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-7vfv3rk3 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBsNormalRequest ¶
func NewDescribeDBsNormalRequest() (request *DescribeDBsNormalRequest)
func (*DescribeDBsNormalRequest) FromJsonString ¶
func (r *DescribeDBsNormalRequest) 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 (*DescribeDBsNormalRequest) ToJsonString ¶
func (r *DescribeDBsNormalRequest) ToJsonString() string
type DescribeDBsNormalResponse ¶
type DescribeDBsNormalResponse struct { *tchttp.BaseResponse Response *struct { // Total number of databases of the instance TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Detailed database configurations, such as whether CDC or CT is enabled for the database DBList []*DbNormalDetail `json:"DBList,omitempty" name:"DBList"` // 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 NewDescribeDBsNormalResponse ¶
func NewDescribeDBsNormalResponse() (response *DescribeDBsNormalResponse)
func (*DescribeDBsNormalResponse) FromJsonString ¶
func (r *DescribeDBsNormalResponse) 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 (*DescribeDBsNormalResponse) ToJsonString ¶
func (r *DescribeDBsNormalResponse) ToJsonString() string
type DescribeDBsRequest ¶
type DescribeDBsRequest struct { *tchttp.BaseRequest // Instance ID InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // Number of results per page. Value range: 1-100. Default value: 20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: 0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeDBsRequest ¶
func NewDescribeDBsRequest() (request *DescribeDBsRequest)
func (*DescribeDBsRequest) FromJsonString ¶
func (r *DescribeDBsRequest) 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 (*DescribeDBsRequest) ToJsonString ¶
func (r *DescribeDBsRequest) ToJsonString() string
type DescribeDBsResponse ¶
type DescribeDBsResponse struct { *tchttp.BaseResponse Response *struct { // Number of databases TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance databases DBInstances []*InstanceDBDetail `json:"DBInstances,omitempty" name:"DBInstances"` // 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 NewDescribeDBsResponse ¶
func NewDescribeDBsResponse() (response *DescribeDBsResponse)
func (*DescribeDBsResponse) FromJsonString ¶
func (r *DescribeDBsResponse) 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 (*DescribeDBsResponse) ToJsonString ¶
func (r *DescribeDBsResponse) ToJsonString() string
type DescribeFlowStatusRequest ¶
type DescribeFlowStatusRequest struct { *tchttp.BaseRequest // Flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` }
func NewDescribeFlowStatusRequest ¶
func NewDescribeFlowStatusRequest() (request *DescribeFlowStatusRequest)
func (*DescribeFlowStatusRequest) FromJsonString ¶
func (r *DescribeFlowStatusRequest) 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 (*DescribeFlowStatusRequest) ToJsonString ¶
func (r *DescribeFlowStatusRequest) ToJsonString() string
type DescribeFlowStatusResponse ¶
type DescribeFlowStatusResponse struct { *tchttp.BaseResponse Response *struct { // Flow status. 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 NewDescribeFlowStatusResponse ¶
func NewDescribeFlowStatusResponse() (response *DescribeFlowStatusResponse)
func (*DescribeFlowStatusResponse) FromJsonString ¶
func (r *DescribeFlowStatusResponse) 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 (*DescribeFlowStatusResponse) ToJsonString ¶
func (r *DescribeFlowStatusResponse) ToJsonString() string
type DescribeIncrementalMigrationRequest ¶
type DescribeIncrementalMigrationRequest struct { *tchttp.BaseRequest // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup file name BackupFileName *string `json:"BackupFileName,omitempty" name:"BackupFileName"` // Status set of import tasks StatusSet []*int64 `json:"StatusSet,omitempty" name:"StatusSet"` // The maximum number of results returned per page. Default value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: `0`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Sort by field. Valid values: `name`, `createTime`, `startTime`, `endTime`. By default, the results returned are sorted by `createTime` in the ascending order. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order which is valid only when `OrderBy` is specified. Valid values: `asc` (ascending), `desc` (descending). Default value: `asc`. OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // Incremental backup import task ID, which is returned through the `CreateIncrementalMigration` API. IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` }
func NewDescribeIncrementalMigrationRequest ¶
func NewDescribeIncrementalMigrationRequest() (request *DescribeIncrementalMigrationRequest)
func (*DescribeIncrementalMigrationRequest) FromJsonString ¶
func (r *DescribeIncrementalMigrationRequest) 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 (*DescribeIncrementalMigrationRequest) ToJsonString ¶
func (r *DescribeIncrementalMigrationRequest) ToJsonString() string
type DescribeIncrementalMigrationResponse ¶
type DescribeIncrementalMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Total number of import tasks TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Incremental import task set IncrementalMigrationSet []*Migration `json:"IncrementalMigrationSet,omitempty" name:"IncrementalMigrationSet"` // 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 NewDescribeIncrementalMigrationResponse ¶
func NewDescribeIncrementalMigrationResponse() (response *DescribeIncrementalMigrationResponse)
func (*DescribeIncrementalMigrationResponse) FromJsonString ¶
func (r *DescribeIncrementalMigrationResponse) 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 (*DescribeIncrementalMigrationResponse) ToJsonString ¶
func (r *DescribeIncrementalMigrationResponse) ToJsonString() string
type DescribeInstanceParamRecordsRequest ¶
type DescribeInstanceParamRecordsRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-dj5i29c5n. It is the same as the instance ID displayed in the TencentDB console and the response parameter `InstanceId` of the `DescribeDBInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Page number. Default value: `0`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The maximum number of results returned per page. Maximum value: `100`. Default value: `20`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeInstanceParamRecordsRequest ¶
func NewDescribeInstanceParamRecordsRequest() (request *DescribeInstanceParamRecordsRequest)
func (*DescribeInstanceParamRecordsRequest) FromJsonString ¶
func (r *DescribeInstanceParamRecordsRequest) 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 (*DescribeInstanceParamRecordsRequest) ToJsonString ¶
func (r *DescribeInstanceParamRecordsRequest) ToJsonString() string
type DescribeInstanceParamRecordsResponse ¶
type DescribeInstanceParamRecordsResponse struct { *tchttp.BaseResponse Response *struct { // Number of eligible records TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Parameter modification records Items []*ParamRecord `json:"Items,omitempty" name:"Items"` // 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 NewDescribeInstanceParamRecordsResponse ¶
func NewDescribeInstanceParamRecordsResponse() (response *DescribeInstanceParamRecordsResponse)
func (*DescribeInstanceParamRecordsResponse) FromJsonString ¶
func (r *DescribeInstanceParamRecordsResponse) 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 (*DescribeInstanceParamRecordsResponse) ToJsonString ¶
func (r *DescribeInstanceParamRecordsResponse) ToJsonString() string
type DescribeInstanceParamsRequest ¶
type DescribeInstanceParamsRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-dj5i29c5n. It is the same as the instance ID displayed in the TencentDB console and the response parameter `InstanceId` of the `DescribeDBInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceParamsRequest ¶
func NewDescribeInstanceParamsRequest() (request *DescribeInstanceParamsRequest)
func (*DescribeInstanceParamsRequest) FromJsonString ¶
func (r *DescribeInstanceParamsRequest) 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 (*DescribeInstanceParamsRequest) ToJsonString ¶
func (r *DescribeInstanceParamsRequest) ToJsonString() string
type DescribeInstanceParamsResponse ¶
type DescribeInstanceParamsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of instance parameters TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Parameter details Items []*ParameterDetail `json:"Items,omitempty" name:"Items"` // 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 NewDescribeInstanceParamsResponse ¶
func NewDescribeInstanceParamsResponse() (response *DescribeInstanceParamsResponse)
func (*DescribeInstanceParamsResponse) FromJsonString ¶
func (r *DescribeInstanceParamsResponse) 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 (*DescribeInstanceParamsResponse) ToJsonString ¶
func (r *DescribeInstanceParamsResponse) ToJsonString() string
type DescribeMigrationDetailRequest ¶
type DescribeMigrationDetailRequest struct { *tchttp.BaseRequest // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` }
func NewDescribeMigrationDetailRequest ¶
func NewDescribeMigrationDetailRequest() (request *DescribeMigrationDetailRequest)
func (*DescribeMigrationDetailRequest) FromJsonString ¶
func (r *DescribeMigrationDetailRequest) 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 (*DescribeMigrationDetailRequest) ToJsonString ¶
func (r *DescribeMigrationDetailRequest) ToJsonString() string
type DescribeMigrationDetailResponse ¶
type DescribeMigrationDetailResponse struct { *tchttp.BaseResponse Response *struct { // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` // Migration task name MigrateName *string `json:"MigrateName,omitempty" name:"MigrateName"` // User ID of migration task AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Migration task region Region *string `json:"Region,omitempty" name:"Region"` // Migration source type. 1: TencentDB for SQL Server, 2: CVM-based self-created SQL Server database; 3: SQL Server backup restoration, 4: SQL Server backup restoration (in COS mode) SourceType *int64 `json:"SourceType,omitempty" name:"SourceType"` // Migration task creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Migration task start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Migration task end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Migration task status (1: initializing, 4: migrating, 5: migration failed, 6: migration succeeded) Status *uint64 `json:"Status,omitempty" name:"Status"` // Migration task progress Progress *int64 `json:"Progress,omitempty" name:"Progress"` // Migration type (1: structure migration, 2: data migration, 3: incremental sync) MigrateType *int64 `json:"MigrateType,omitempty" name:"MigrateType"` // Migration source Source *MigrateSource `json:"Source,omitempty" name:"Source"` // Migration target Target *MigrateTarget `json:"Target,omitempty" name:"Target"` // Database objects to be migrated. This parameter is not used for offline migration (SourceType=4 or SourceType=5) MigrateDBSet []*MigrateDB `json:"MigrateDBSet,omitempty" name:"MigrateDBSet"` // 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 NewDescribeMigrationDetailResponse ¶
func NewDescribeMigrationDetailResponse() (response *DescribeMigrationDetailResponse)
func (*DescribeMigrationDetailResponse) FromJsonString ¶
func (r *DescribeMigrationDetailResponse) 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 (*DescribeMigrationDetailResponse) ToJsonString ¶
func (r *DescribeMigrationDetailResponse) ToJsonString() string
type DescribeMigrationsRequest ¶
type DescribeMigrationsRequest struct { *tchttp.BaseRequest // Status set. As long as a migration task is in a status therein, it will be listed StatusSet []*int64 `json:"StatusSet,omitempty" name:"StatusSet"` // Migration task name (fuzzy match) MigrateName *string `json:"MigrateName,omitempty" name:"MigrateName"` // Number of results per page. Value range: 1-100. Default value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // The query results are sorted by keyword. Valid values: name, createTime, startTime, endTime, status OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order. Valid values: desc, asc OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` }
func NewDescribeMigrationsRequest ¶
func NewDescribeMigrationsRequest() (request *DescribeMigrationsRequest)
func (*DescribeMigrationsRequest) FromJsonString ¶
func (r *DescribeMigrationsRequest) 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 (*DescribeMigrationsRequest) ToJsonString ¶
func (r *DescribeMigrationsRequest) ToJsonString() string
type DescribeMigrationsResponse ¶
type DescribeMigrationsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of query results TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of query results MigrateTaskSet []*MigrateTask `json:"MigrateTaskSet,omitempty" name:"MigrateTaskSet"` // 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 NewDescribeMigrationsResponse ¶
func NewDescribeMigrationsResponse() (response *DescribeMigrationsResponse)
func (*DescribeMigrationsResponse) FromJsonString ¶
func (r *DescribeMigrationsResponse) 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 (*DescribeMigrationsResponse) ToJsonString ¶
func (r *DescribeMigrationsResponse) ToJsonString() string
type DescribeOrdersRequest ¶
type DescribeOrdersRequest struct { *tchttp.BaseRequest // Order array. The order name will be returned upon shipping, which can be used to call the `DescribeOrders` API to query shipment status DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` }
func NewDescribeOrdersRequest ¶
func NewDescribeOrdersRequest() (request *DescribeOrdersRequest)
func (*DescribeOrdersRequest) FromJsonString ¶
func (r *DescribeOrdersRequest) 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 (*DescribeOrdersRequest) ToJsonString ¶
func (r *DescribeOrdersRequest) ToJsonString() string
type DescribeOrdersResponse ¶
type DescribeOrdersResponse struct { *tchttp.BaseResponse Response *struct { // Order information array Deals []*DealInfo `json:"Deals,omitempty" name:"Deals"` // Number of orders returned TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 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 NewDescribeOrdersResponse ¶
func NewDescribeOrdersResponse() (response *DescribeOrdersResponse)
func (*DescribeOrdersResponse) FromJsonString ¶
func (r *DescribeOrdersResponse) 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 (*DescribeOrdersResponse) ToJsonString ¶
func (r *DescribeOrdersResponse) ToJsonString() string
type DescribeProductConfigRequest ¶
type DescribeProductConfigRequest struct { *tchttp.BaseRequest // AZ ID in the format of ap-guangzhou-1 Zone *string `json:"Zone,omitempty" name:"Zone"` // The type of instances to be purchased. Valid values: HA (High-Availability Edition, including dual-server high availability and AlwaysOn cluster), RO (read-only replica), SI (Basic Edition) InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
func NewDescribeProductConfigRequest ¶
func NewDescribeProductConfigRequest() (request *DescribeProductConfigRequest)
func (*DescribeProductConfigRequest) FromJsonString ¶
func (r *DescribeProductConfigRequest) 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 (*DescribeProductConfigRequest) ToJsonString ¶
func (r *DescribeProductConfigRequest) ToJsonString() string
type DescribeProductConfigResponse ¶
type DescribeProductConfigResponse struct { *tchttp.BaseResponse Response *struct { // Specification information array SpecInfoList []*SpecInfo `json:"SpecInfoList,omitempty" name:"SpecInfoList"` // Number of date entries returned TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 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 NewDescribeProductConfigResponse ¶
func NewDescribeProductConfigResponse() (response *DescribeProductConfigResponse)
func (*DescribeProductConfigResponse) FromJsonString ¶
func (r *DescribeProductConfigResponse) 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 (*DescribeProductConfigResponse) ToJsonString ¶
func (r *DescribeProductConfigResponse) ToJsonString() string
type DescribeRegionsRequest ¶
type DescribeRegionsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeRegionsRequest ¶
func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)
func (*DescribeRegionsRequest) FromJsonString ¶
func (r *DescribeRegionsRequest) 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 (*DescribeRegionsRequest) ToJsonString ¶
func (r *DescribeRegionsRequest) ToJsonString() string
type DescribeRegionsResponse ¶
type DescribeRegionsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of regions returned TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Region information array RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet"` // 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 NewDescribeRegionsResponse ¶
func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)
func (*DescribeRegionsResponse) FromJsonString ¶
func (r *DescribeRegionsResponse) 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 (*DescribeRegionsResponse) ToJsonString ¶
func (r *DescribeRegionsResponse) ToJsonString() string
type DescribeRollbackTimeRequest ¶
type DescribeRollbackTimeRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of databases to be queried DBs []*string `json:"DBs,omitempty" name:"DBs"` }
func NewDescribeRollbackTimeRequest ¶
func NewDescribeRollbackTimeRequest() (request *DescribeRollbackTimeRequest)
func (*DescribeRollbackTimeRequest) FromJsonString ¶
func (r *DescribeRollbackTimeRequest) 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 (*DescribeRollbackTimeRequest) ToJsonString ¶
func (r *DescribeRollbackTimeRequest) ToJsonString() string
type DescribeRollbackTimeResponse ¶
type DescribeRollbackTimeResponse struct { *tchttp.BaseResponse Response *struct { // Information of time range available for database rollback Details []*DbRollbackTimeInfo `json:"Details,omitempty" name:"Details"` // 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 NewDescribeRollbackTimeResponse ¶
func NewDescribeRollbackTimeResponse() (response *DescribeRollbackTimeResponse)
func (*DescribeRollbackTimeResponse) FromJsonString ¶
func (r *DescribeRollbackTimeResponse) 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 (*DescribeRollbackTimeResponse) ToJsonString ¶
func (r *DescribeRollbackTimeResponse) ToJsonString() string
type DescribeSlowlogsRequest ¶
type DescribeSlowlogsRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-k8voqdlz InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Query start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Number of results per page. Value range: 1-100. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Page number. Default value: 0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeSlowlogsRequest ¶
func NewDescribeSlowlogsRequest() (request *DescribeSlowlogsRequest)
func (*DescribeSlowlogsRequest) FromJsonString ¶
func (r *DescribeSlowlogsRequest) 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 (*DescribeSlowlogsRequest) ToJsonString ¶
func (r *DescribeSlowlogsRequest) ToJsonString() string
type DescribeSlowlogsResponse ¶
type DescribeSlowlogsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of queries TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information list of slow query logs Slowlogs []*SlowlogInfo `json:"Slowlogs,omitempty" name:"Slowlogs"` // 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 NewDescribeSlowlogsResponse ¶
func NewDescribeSlowlogsResponse() (response *DescribeSlowlogsResponse)
func (*DescribeSlowlogsResponse) FromJsonString ¶
func (r *DescribeSlowlogsResponse) 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 (*DescribeSlowlogsResponse) ToJsonString ¶
func (r *DescribeSlowlogsResponse) ToJsonString() string
type DescribeUploadBackupInfoRequest ¶
type DescribeUploadBackupInfoRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` }
func NewDescribeUploadBackupInfoRequest ¶
func NewDescribeUploadBackupInfoRequest() (request *DescribeUploadBackupInfoRequest)
func (*DescribeUploadBackupInfoRequest) FromJsonString ¶
func (r *DescribeUploadBackupInfoRequest) 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 (*DescribeUploadBackupInfoRequest) ToJsonString ¶
func (r *DescribeUploadBackupInfoRequest) ToJsonString() string
type DescribeUploadBackupInfoResponse ¶
type DescribeUploadBackupInfoResponse struct { *tchttp.BaseResponse Response *struct { // Bucket name BucketName *string `json:"BucketName,omitempty" name:"BucketName"` // Bucket location information Region *string `json:"Region,omitempty" name:"Region"` // Storage path Path *string `json:"Path,omitempty" name:"Path"` // Temporary key ID TmpSecretId *string `json:"TmpSecretId,omitempty" name:"TmpSecretId"` // Temporary key (Key) TmpSecretKey *string `json:"TmpSecretKey,omitempty" name:"TmpSecretKey"` // Temporary key (Token) XCosSecurityToken *string `json:"XCosSecurityToken,omitempty" name:"XCosSecurityToken"` // Temporary key start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Temporary key expiration time ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"` // 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 NewDescribeUploadBackupInfoResponse ¶
func NewDescribeUploadBackupInfoResponse() (response *DescribeUploadBackupInfoResponse)
func (*DescribeUploadBackupInfoResponse) FromJsonString ¶
func (r *DescribeUploadBackupInfoResponse) 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 (*DescribeUploadBackupInfoResponse) ToJsonString ¶
func (r *DescribeUploadBackupInfoResponse) ToJsonString() string
type DescribeZonesRequest ¶
type DescribeZonesRequest struct {
*tchttp.BaseRequest
}
func NewDescribeZonesRequest ¶
func NewDescribeZonesRequest() (request *DescribeZonesRequest)
func (*DescribeZonesRequest) FromJsonString ¶
func (r *DescribeZonesRequest) 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 (*DescribeZonesRequest) ToJsonString ¶
func (r *DescribeZonesRequest) ToJsonString() string
type DescribeZonesResponse ¶
type DescribeZonesResponse struct { *tchttp.BaseResponse Response *struct { // Number of AZs returned TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Array of AZs ZoneSet []*ZoneInfo `json:"ZoneSet,omitempty" name:"ZoneSet"` // 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 NewDescribeZonesResponse ¶
func NewDescribeZonesResponse() (response *DescribeZonesResponse)
func (*DescribeZonesResponse) FromJsonString ¶
func (r *DescribeZonesResponse) 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 (*DescribeZonesResponse) ToJsonString ¶
func (r *DescribeZonesResponse) ToJsonString() string
type InquiryPriceCreateDBInstancesRequest ¶
type InquiryPriceCreateDBInstancesRequest struct { *tchttp.BaseRequest // AZ ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API Zone *string `json:"Zone,omitempty" name:"Zone"` // Memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Instance capacity in GB Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Billing type. Valid value: POSTPAID. InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // Length of purchase in months. Value range: 1-48. Default value: 1 Period *int64 `json:"Period,omitempty" name:"Period"` // Number of instances purchased at a time. Value range: 1-100. Default value: 1 GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // SQL Server version. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise). Default value: 2008R2. DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"` // The number of CPU cores of the instance you want to purchase. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // The type of purchased instance. Valid values: HA (high-availability edition, including dual-server high availability and AlwaysOn cluster), RO (read-only replica), SI (basic edition). Default value: HA. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // The host type of purchased instance. Valid values: PM (physical machine), CLOUD_PREMIUM (physical machine with premium cloud disk), CLOUD_SSD (physical machine with SSD). Default value: PM. MachineType *string `json:"MachineType,omitempty" name:"MachineType"` }
func NewInquiryPriceCreateDBInstancesRequest ¶
func NewInquiryPriceCreateDBInstancesRequest() (request *InquiryPriceCreateDBInstancesRequest)
func (*InquiryPriceCreateDBInstancesRequest) FromJsonString ¶
func (r *InquiryPriceCreateDBInstancesRequest) 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 (*InquiryPriceCreateDBInstancesRequest) ToJsonString ¶
func (r *InquiryPriceCreateDBInstancesRequest) ToJsonString() string
type InquiryPriceCreateDBInstancesResponse ¶
type InquiryPriceCreateDBInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Price before discount. This value divided by 100 indicates the price; for example, 10010 means 100.10 USD OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // The actual price to be paid. This value divided by 100 indicates the price; for example, 10010 means 100.10 USD Price *int64 `json:"Price,omitempty" name:"Price"` // 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 NewInquiryPriceCreateDBInstancesResponse ¶
func NewInquiryPriceCreateDBInstancesResponse() (response *InquiryPriceCreateDBInstancesResponse)
func (*InquiryPriceCreateDBInstancesResponse) FromJsonString ¶
func (r *InquiryPriceCreateDBInstancesResponse) 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 (*InquiryPriceCreateDBInstancesResponse) ToJsonString ¶
func (r *InquiryPriceCreateDBInstancesResponse) ToJsonString() string
type InquiryPriceUpgradeDBInstanceRequest ¶
type InquiryPriceUpgradeDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity Storage *int64 `json:"Storage,omitempty" name:"Storage"` // The number of CUP cores after the instance is upgraded, which cannot be smaller than that of the current cores. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` }
func NewInquiryPriceUpgradeDBInstanceRequest ¶
func NewInquiryPriceUpgradeDBInstanceRequest() (request *InquiryPriceUpgradeDBInstanceRequest)
func (*InquiryPriceUpgradeDBInstanceRequest) FromJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceRequest) 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 (*InquiryPriceUpgradeDBInstanceRequest) ToJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceRequest) ToJsonString() string
type InquiryPriceUpgradeDBInstanceResponse ¶
type InquiryPriceUpgradeDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Price before discount. This value divided by 100 indicates the price; for example, 10094 means 100.94 USD OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // The actual price to be paid. This value divided by 100 indicates the price; for example, 10094 means 100.94 USD Price *int64 `json:"Price,omitempty" name:"Price"` // 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 NewInquiryPriceUpgradeDBInstanceResponse ¶
func NewInquiryPriceUpgradeDBInstanceResponse() (response *InquiryPriceUpgradeDBInstanceResponse)
func (*InquiryPriceUpgradeDBInstanceResponse) FromJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceResponse) 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 (*InquiryPriceUpgradeDBInstanceResponse) ToJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceResponse) ToJsonString() string
type InstanceDBDetail ¶
type MigrateDB ¶
type MigrateDB struct { // Name of migrated database DBName *string `json:"DBName,omitempty" name:"DBName"` }
type MigrateDetail ¶
type MigrateSource ¶
type MigrateSource struct { // Source instance ID in the format of `mssql-si2823jyl`, which is used when `MigrateType` is 1 (TencentDB for SQL Server) InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of source CVM instance, which is used when `MigrateType` is 2 (CVM-based self-created SQL Server database) CvmId *string `json:"CvmId,omitempty" name:"CvmId"` // VPC ID of source CVM instance in the format of vpc-6ys9ont9, which is used when `MigrateType` is 2 (CVM-based self-created SQL Server database) VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID of source CVM instance in the format of subnet-h9extioi, which is used when `MigrateType` is 2 (CVM-based self-created SQL Server database) SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Username, which is used when `MigrateType` is 1 or 2 UserName *string `json:"UserName,omitempty" name:"UserName"` // Password, which is used when `MigrateType` is 1 or 2 Password *string `json:"Password,omitempty" name:"Password"` // Private IP of source CVM database, which is used when `MigrateType` is 2 (CVM-based self-created SQL Server database) Ip *string `json:"Ip,omitempty" name:"Ip"` // Port number of source CVM database, which is used when `MigrateType` is 2 (CVM-based self-created SQL Server database) Port *uint64 `json:"Port,omitempty" name:"Port"` // Source backup address for offline migration, which is used when `MigrateType` is 4 or 5 Url []*string `json:"Url,omitempty" name:"Url"` // Source backup password for offline migration, which is used when `MigrateType` is 4 or 5 UrlPassword *string `json:"UrlPassword,omitempty" name:"UrlPassword"` }
type MigrateTarget ¶
type MigrateTarget struct { // ID of target instance in the format of mssql-si2823jyl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Username of migration target instance UserName *string `json:"UserName,omitempty" name:"UserName"` // Password of migration target instance Password *string `json:"Password,omitempty" name:"Password"` }
type MigrateTask ¶
type MigrateTask struct { // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` // Migration task name MigrateName *string `json:"MigrateName,omitempty" name:"MigrateName"` // User ID of migration task AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Migration task region Region *string `json:"Region,omitempty" name:"Region"` // Migration source type. 1: TencentDB for SQL Server, 2: CVM-based self-created SQL Server database; 3: SQL Server backup restoration, 4: SQL Server backup restoration (in COS mode) SourceType *int64 `json:"SourceType,omitempty" name:"SourceType"` // Migration task creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Migration task start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Migration task end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Migration task status (1: initializing, 4: migrating, 5: migration failed, 6: migration succeeded, 7: suspended, 8: deleted, 9: suspending, 10: completing, 11: suspension failed, 12: completion failed) Status *uint64 `json:"Status,omitempty" name:"Status"` // Information Message *string `json:"Message,omitempty" name:"Message"` // Whether migration task has been checked (0: not checked, 1: check succeeded, 2: check failed, 3: checking) CheckFlag *uint64 `json:"CheckFlag,omitempty" name:"CheckFlag"` // Migration task progress in % Progress *int64 `json:"Progress,omitempty" name:"Progress"` // Migration task progress details MigrateDetail *MigrateDetail `json:"MigrateDetail,omitempty" name:"MigrateDetail"` }
type Migration ¶
type Migration struct { // Backup import task ID or incremental import task ID MigrationId *string `json:"MigrationId,omitempty" name:"MigrationId"` // Backup import task name. For an incremental import task, this field will be left empty. // Note: this field may return ‘null’, indicating that no valid values can be obtained. MigrationName *string `json:"MigrationName,omitempty" name:"MigrationName"` // Application ID AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Region Region *string `json:"Region,omitempty" name:"Region"` // ID of migrated target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Migration task restoration type RecoveryType *string `json:"RecoveryType,omitempty" name:"RecoveryType"` // Backup user upload type. COS_URL: the backup is stored in user’s Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the application’s Cloud Object Storage and needs to be uploaded by the user. UploadType *string `json:"UploadType,omitempty" name:"UploadType"` // Backup file list, which is determined by UploadType. If the upload type is COS_URL, URL will be saved. If the upload type is COS_UPLOAD, the backup name will be saved. BackupFiles []*string `json:"BackupFiles,omitempty" name:"BackupFiles"` // Migration task status. Valid values: `2` (Creation completed), `7` (Importing full backups), `8` (Waiting for incremental backups), `9` (Import success), `10` (Import failure), `12` (Importing incremental backups). Status *int64 `json:"Status,omitempty" name:"Status"` // Migration task creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Migration task start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Migration task end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // More information Message *string `json:"Message,omitempty" name:"Message"` // Migration detail Detail *MigrationDetail `json:"Detail,omitempty" name:"Detail"` // Operation allowed in the current status Action *MigrationAction `json:"Action,omitempty" name:"Action"` // Whether this is the final restoration. For a full import task, this field will be left empty. // Note: this field may return ‘null’, indicating that no valid values can be obtained. IsRecovery *string `json:"IsRecovery,omitempty" name:"IsRecovery"` }
type MigrationAction ¶
type MigrationAction struct { // All the allowed operations. Values include: view (viewing a task), modify (modifying a task), start (starting a task), incremental (creating an incremental task), delete (deleting a task), and upload (obtaining the upload permission). AllAction []*string `json:"AllAction,omitempty" name:"AllAction"` // Operation allowed in the current status. If the subset of AllAction is left empty, no operations will be allowed. AllowedAction []*string `json:"AllowedAction,omitempty" name:"AllowedAction"` }
type MigrationDetail ¶
type MigrationDetail struct { // Total number of steps StepAll *int64 `json:"StepAll,omitempty" name:"StepAll"` // Current step StepNow *int64 `json:"StepNow,omitempty" name:"StepNow"` // Overall progress. For example, “30” means 30%. Progress *int64 `json:"Progress,omitempty" name:"Progress"` // Step information. ‘null’ means the migration has not started // Note: this field may return ‘null’, indicating that no valid values can be obtained. StepInfo []*MigrationStep `json:"StepInfo,omitempty" name:"StepInfo"` }
type MigrationStep ¶
type MigrationStep struct { // Step sequence StepNo *int64 `json:"StepNo,omitempty" name:"StepNo"` // Step name StepName *string `json:"StepName,omitempty" name:"StepName"` // Step ID in English StepId *string `json:"StepId,omitempty" name:"StepId"` // Step status: 0 (default value), 1 (succeeded), 2 (failed), 3 (in progress), 4 (not started) Status *int64 `json:"Status,omitempty" name:"Status"` }
type ModifyAccountPrivilegeRequest ¶
type ModifyAccountPrivilegeRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Account permission change information Accounts []*AccountPrivilegeModifyInfo `json:"Accounts,omitempty" name:"Accounts"` }
func NewModifyAccountPrivilegeRequest ¶
func NewModifyAccountPrivilegeRequest() (request *ModifyAccountPrivilegeRequest)
func (*ModifyAccountPrivilegeRequest) FromJsonString ¶
func (r *ModifyAccountPrivilegeRequest) 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 (*ModifyAccountPrivilegeRequest) ToJsonString ¶
func (r *ModifyAccountPrivilegeRequest) ToJsonString() string
type ModifyAccountPrivilegeResponse ¶
type ModifyAccountPrivilegeResponse struct { *tchttp.BaseResponse Response *struct { // Async task flow ID FlowId *uint64 `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 NewModifyAccountPrivilegeResponse ¶
func NewModifyAccountPrivilegeResponse() (response *ModifyAccountPrivilegeResponse)
func (*ModifyAccountPrivilegeResponse) FromJsonString ¶
func (r *ModifyAccountPrivilegeResponse) 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 (*ModifyAccountPrivilegeResponse) ToJsonString ¶
func (r *ModifyAccountPrivilegeResponse) ToJsonString() string
type ModifyAccountRemarkRequest ¶
type ModifyAccountRemarkRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-j8kv137v InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Information of account for which to modify remarks Accounts []*AccountRemark `json:"Accounts,omitempty" name:"Accounts"` }
func NewModifyAccountRemarkRequest ¶
func NewModifyAccountRemarkRequest() (request *ModifyAccountRemarkRequest)
func (*ModifyAccountRemarkRequest) FromJsonString ¶
func (r *ModifyAccountRemarkRequest) 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 (*ModifyAccountRemarkRequest) ToJsonString ¶
func (r *ModifyAccountRemarkRequest) ToJsonString() string
type ModifyAccountRemarkResponse ¶
type ModifyAccountRemarkResponse 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 NewModifyAccountRemarkResponse ¶
func NewModifyAccountRemarkResponse() (response *ModifyAccountRemarkResponse)
func (*ModifyAccountRemarkResponse) FromJsonString ¶
func (r *ModifyAccountRemarkResponse) 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 (*ModifyAccountRemarkResponse) ToJsonString ¶
func (r *ModifyAccountRemarkResponse) ToJsonString() string
type ModifyBackupMigrationRequest ¶
type ModifyBackupMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Task name MigrationName *string `json:"MigrationName,omitempty" name:"MigrationName"` // Migration task restoration type: FULL,FULL_LOG,FULL_DIFF RecoveryType *string `json:"RecoveryType,omitempty" name:"RecoveryType"` // COS_URL: the backup is stored in user’s Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the application’s Cloud Object Storage and needs to be uploaded by the user. UploadType *string `json:"UploadType,omitempty" name:"UploadType"` // If the UploadType is COS_URL, fill in URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. BackupFiles []*string `json:"BackupFiles,omitempty" name:"BackupFiles"` }
func NewModifyBackupMigrationRequest ¶
func NewModifyBackupMigrationRequest() (request *ModifyBackupMigrationRequest)
func (*ModifyBackupMigrationRequest) FromJsonString ¶
func (r *ModifyBackupMigrationRequest) 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 (*ModifyBackupMigrationRequest) ToJsonString ¶
func (r *ModifyBackupMigrationRequest) ToJsonString() string
type ModifyBackupMigrationResponse ¶
type ModifyBackupMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Backup import task ID BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // 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 NewModifyBackupMigrationResponse ¶
func NewModifyBackupMigrationResponse() (response *ModifyBackupMigrationResponse)
func (*ModifyBackupMigrationResponse) FromJsonString ¶
func (r *ModifyBackupMigrationResponse) 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 (*ModifyBackupMigrationResponse) ToJsonString ¶
func (r *ModifyBackupMigrationResponse) ToJsonString() string
type ModifyBackupStrategyRequest ¶
type ModifyBackupStrategyRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup type. Valid values: `weekly` (when length(BackupDay) <=7 && length(BackupDay) >=2), `daily` (when length(BackupDay)=1). Default value: `daily`. BackupType *string `json:"BackupType,omitempty" name:"BackupType"` // Backup time. Value range: an integer from 0 to 23. BackupTime *uint64 `json:"BackupTime,omitempty" name:"BackupTime"` // Backup interval in days when the `BackupType` is `daily`. Valid value: 1. BackupDay *uint64 `json:"BackupDay,omitempty" name:"BackupDay"` // Backup mode. Valid values: `master_pkg` (archive the backup files of the primary node), `master_no_pkg` (do not archive the backup files of the primary node), `slave_pkg` (archive the backup files of the replica node), `slave_no_pkg` (do not archive the backup files of the replica node). Backup files of the replica node are supported only when Always On disaster recovery is enabled. BackupModel *string `json:"BackupModel,omitempty" name:"BackupModel"` // The days of the week on which backup will be performed when “BackupType” is `weekly`. If data backup retention period is less than 7 days, the values will be 1-7, indicating that backup will be performed everyday by default; if data backup retention period is greater than or equal to 7 days, the values will be at least any two days, indicating that backup will be performed at least twice in a week by default. BackupCycle []*uint64 `json:"BackupCycle,omitempty" name:"BackupCycle"` // Data (log) backup retention period. Value range: 3-1830 days, default value: 7 days. BackupSaveDays *uint64 `json:"BackupSaveDays,omitempty" name:"BackupSaveDays"` }
func NewModifyBackupStrategyRequest ¶
func NewModifyBackupStrategyRequest() (request *ModifyBackupStrategyRequest)
func (*ModifyBackupStrategyRequest) FromJsonString ¶
func (r *ModifyBackupStrategyRequest) 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 (*ModifyBackupStrategyRequest) ToJsonString ¶
func (r *ModifyBackupStrategyRequest) ToJsonString() string
type ModifyBackupStrategyResponse ¶
type ModifyBackupStrategyResponse struct { *tchttp.BaseResponse Response *struct { // Returned error code. Errno *int64 `json:"Errno,omitempty" name:"Errno"` // Returned error message. Msg *string `json:"Msg,omitempty" name:"Msg"` // 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 NewModifyBackupStrategyResponse ¶
func NewModifyBackupStrategyResponse() (response *ModifyBackupStrategyResponse)
func (*ModifyBackupStrategyResponse) FromJsonString ¶
func (r *ModifyBackupStrategyResponse) 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 (*ModifyBackupStrategyResponse) ToJsonString ¶
func (r *ModifyBackupStrategyResponse) ToJsonString() string
type ModifyDBInstanceNameRequest ¶
type ModifyDBInstanceNameRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // New name of database instance InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewModifyDBInstanceNameRequest ¶
func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest)
func (*ModifyDBInstanceNameRequest) FromJsonString ¶
func (r *ModifyDBInstanceNameRequest) 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 (*ModifyDBInstanceNameRequest) ToJsonString ¶
func (r *ModifyDBInstanceNameRequest) ToJsonString() string
type ModifyDBInstanceNameResponse ¶
type ModifyDBInstanceNameResponse 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 NewModifyDBInstanceNameResponse ¶
func NewModifyDBInstanceNameResponse() (response *ModifyDBInstanceNameResponse)
func (*ModifyDBInstanceNameResponse) FromJsonString ¶
func (r *ModifyDBInstanceNameResponse) 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 (*ModifyDBInstanceNameResponse) ToJsonString ¶
func (r *ModifyDBInstanceNameResponse) ToJsonString() string
type ModifyDBInstanceNetworkRequest ¶
type ModifyDBInstanceNetworkRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of the new VPC NewVpcId *string `json:"NewVpcId,omitempty" name:"NewVpcId"` // ID of the new subnet NewSubnetId *string `json:"NewSubnetId,omitempty" name:"NewSubnetId"` // Retention period (in hours) of the original VIP. Value range: `0-168`. Default value: `0`, indicating the original VIP is released immediately. OldIpRetainTime *int64 `json:"OldIpRetainTime,omitempty" name:"OldIpRetainTime"` // New VIP Vip *string `json:"Vip,omitempty" name:"Vip"` }
func NewModifyDBInstanceNetworkRequest ¶
func NewModifyDBInstanceNetworkRequest() (request *ModifyDBInstanceNetworkRequest)
func (*ModifyDBInstanceNetworkRequest) FromJsonString ¶
func (r *ModifyDBInstanceNetworkRequest) 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 (*ModifyDBInstanceNetworkRequest) ToJsonString ¶
func (r *ModifyDBInstanceNetworkRequest) ToJsonString() string
type ModifyDBInstanceNetworkResponse ¶
type ModifyDBInstanceNetworkResponse struct { *tchttp.BaseResponse Response *struct { // ID of the instance network changing task. You can use the [DescribeFlowStatus](https://intl.cloud.tencent.com/document/product/238/19967?from_cn_redirect=1) API to query the task status. 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 NewModifyDBInstanceNetworkResponse ¶
func NewModifyDBInstanceNetworkResponse() (response *ModifyDBInstanceNetworkResponse)
func (*ModifyDBInstanceNetworkResponse) FromJsonString ¶
func (r *ModifyDBInstanceNetworkResponse) 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 (*ModifyDBInstanceNetworkResponse) ToJsonString ¶
func (r *ModifyDBInstanceNetworkResponse) ToJsonString() string
type ModifyDBInstanceProjectRequest ¶
type ModifyDBInstanceProjectRequest struct { *tchttp.BaseRequest // Array of instance IDs in the format of mssql-j8kv137v InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // Project ID. If this parameter is 0, the default project will be used ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewModifyDBInstanceProjectRequest ¶
func NewModifyDBInstanceProjectRequest() (request *ModifyDBInstanceProjectRequest)
func (*ModifyDBInstanceProjectRequest) FromJsonString ¶
func (r *ModifyDBInstanceProjectRequest) 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 (*ModifyDBInstanceProjectRequest) ToJsonString ¶
func (r *ModifyDBInstanceProjectRequest) ToJsonString() string
type ModifyDBInstanceProjectResponse ¶
type ModifyDBInstanceProjectResponse struct { *tchttp.BaseResponse Response *struct { // Number of successfully modified instances Count *int64 `json:"Count,omitempty" name:"Count"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDBInstanceProjectResponse ¶
func NewModifyDBInstanceProjectResponse() (response *ModifyDBInstanceProjectResponse)
func (*ModifyDBInstanceProjectResponse) FromJsonString ¶
func (r *ModifyDBInstanceProjectResponse) 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 (*ModifyDBInstanceProjectResponse) ToJsonString ¶
func (r *ModifyDBInstanceProjectResponse) ToJsonString() string
type ModifyDBNameRequest ¶
type ModifyDBNameRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Old database name OldDBName *string `json:"OldDBName,omitempty" name:"OldDBName"` // New name of database NewDBName *string `json:"NewDBName,omitempty" name:"NewDBName"` }
func NewModifyDBNameRequest ¶
func NewModifyDBNameRequest() (request *ModifyDBNameRequest)
func (*ModifyDBNameRequest) FromJsonString ¶
func (r *ModifyDBNameRequest) 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 (*ModifyDBNameRequest) ToJsonString ¶
func (r *ModifyDBNameRequest) ToJsonString() string
type ModifyDBNameResponse ¶
type ModifyDBNameResponse struct { *tchttp.BaseResponse Response *struct { // Task flow ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDBNameResponse ¶
func NewModifyDBNameResponse() (response *ModifyDBNameResponse)
func (*ModifyDBNameResponse) FromJsonString ¶
func (r *ModifyDBNameResponse) 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 (*ModifyDBNameResponse) ToJsonString ¶
func (r *ModifyDBNameResponse) ToJsonString() string
type ModifyDBRemarkRequest ¶
type ModifyDBRemarkRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-rljoi3bf InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Array of database names and remarks, where each element contains a database name and the corresponding remarks DBRemarks []*DBRemark `json:"DBRemarks,omitempty" name:"DBRemarks"` }
func NewModifyDBRemarkRequest ¶
func NewModifyDBRemarkRequest() (request *ModifyDBRemarkRequest)
func (*ModifyDBRemarkRequest) FromJsonString ¶
func (r *ModifyDBRemarkRequest) 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 (*ModifyDBRemarkRequest) ToJsonString ¶
func (r *ModifyDBRemarkRequest) ToJsonString() string
type ModifyDBRemarkResponse ¶
type ModifyDBRemarkResponse 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 NewModifyDBRemarkResponse ¶
func NewModifyDBRemarkResponse() (response *ModifyDBRemarkResponse)
func (*ModifyDBRemarkResponse) FromJsonString ¶
func (r *ModifyDBRemarkResponse) 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 (*ModifyDBRemarkResponse) ToJsonString ¶
func (r *ModifyDBRemarkResponse) ToJsonString() string
type ModifyDatabaseCDCRequest ¶
type ModifyDatabaseCDCRequest struct { *tchttp.BaseRequest // Array of database names DBNames []*string `json:"DBNames,omitempty" name:"DBNames"` // Enable or disable CDC. Valid values: `enable`, `disable` ModifyType *string `json:"ModifyType,omitempty" name:"ModifyType"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewModifyDatabaseCDCRequest ¶
func NewModifyDatabaseCDCRequest() (request *ModifyDatabaseCDCRequest)
func (*ModifyDatabaseCDCRequest) FromJsonString ¶
func (r *ModifyDatabaseCDCRequest) 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 (*ModifyDatabaseCDCRequest) ToJsonString ¶
func (r *ModifyDatabaseCDCRequest) ToJsonString() string
type ModifyDatabaseCDCResponse ¶
type ModifyDatabaseCDCResponse 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 NewModifyDatabaseCDCResponse ¶
func NewModifyDatabaseCDCResponse() (response *ModifyDatabaseCDCResponse)
func (*ModifyDatabaseCDCResponse) FromJsonString ¶
func (r *ModifyDatabaseCDCResponse) 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 (*ModifyDatabaseCDCResponse) ToJsonString ¶
func (r *ModifyDatabaseCDCResponse) ToJsonString() string
type ModifyDatabaseCTRequest ¶
type ModifyDatabaseCTRequest struct { *tchttp.BaseRequest // Array of database names DBNames []*string `json:"DBNames,omitempty" name:"DBNames"` // Enable or disable CT. Valid values: `enable`, `disable` ModifyType *string `json:"ModifyType,omitempty" name:"ModifyType"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Retention period (in days) of change tracking information when CT is enabled. Value range: 3-30. Default value: `3` ChangeRetentionDay *int64 `json:"ChangeRetentionDay,omitempty" name:"ChangeRetentionDay"` }
func NewModifyDatabaseCTRequest ¶
func NewModifyDatabaseCTRequest() (request *ModifyDatabaseCTRequest)
func (*ModifyDatabaseCTRequest) FromJsonString ¶
func (r *ModifyDatabaseCTRequest) 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 (*ModifyDatabaseCTRequest) ToJsonString ¶
func (r *ModifyDatabaseCTRequest) ToJsonString() string
type ModifyDatabaseCTResponse ¶
type ModifyDatabaseCTResponse 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 NewModifyDatabaseCTResponse ¶
func NewModifyDatabaseCTResponse() (response *ModifyDatabaseCTResponse)
func (*ModifyDatabaseCTResponse) FromJsonString ¶
func (r *ModifyDatabaseCTResponse) 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 (*ModifyDatabaseCTResponse) ToJsonString ¶
func (r *ModifyDatabaseCTResponse) ToJsonString() string
type ModifyDatabaseMdfRequest ¶
type ModifyDatabaseMdfRequest struct { *tchttp.BaseRequest // Array of database names DBNames []*string `json:"DBNames,omitempty" name:"DBNames"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewModifyDatabaseMdfRequest ¶
func NewModifyDatabaseMdfRequest() (request *ModifyDatabaseMdfRequest)
func (*ModifyDatabaseMdfRequest) FromJsonString ¶
func (r *ModifyDatabaseMdfRequest) 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 (*ModifyDatabaseMdfRequest) ToJsonString ¶
func (r *ModifyDatabaseMdfRequest) ToJsonString() string
type ModifyDatabaseMdfResponse ¶
type ModifyDatabaseMdfResponse 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 NewModifyDatabaseMdfResponse ¶
func NewModifyDatabaseMdfResponse() (response *ModifyDatabaseMdfResponse)
func (*ModifyDatabaseMdfResponse) FromJsonString ¶
func (r *ModifyDatabaseMdfResponse) 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 (*ModifyDatabaseMdfResponse) ToJsonString ¶
func (r *ModifyDatabaseMdfResponse) ToJsonString() string
type ModifyIncrementalMigrationRequest ¶
type ModifyIncrementalMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // Incremental backup import task ID, which is returned through the `CreateIncrementalMigration` API. IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` // Whether to restore backups. Valid values: `NO`, `YES`. If this parameter is not specified, current settings will be applied. IsRecovery *string `json:"IsRecovery,omitempty" name:"IsRecovery"` // If the UploadType is COS_URL, fill in URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. BackupFiles []*string `json:"BackupFiles,omitempty" name:"BackupFiles"` }
func NewModifyIncrementalMigrationRequest ¶
func NewModifyIncrementalMigrationRequest() (request *ModifyIncrementalMigrationRequest)
func (*ModifyIncrementalMigrationRequest) FromJsonString ¶
func (r *ModifyIncrementalMigrationRequest) 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 (*ModifyIncrementalMigrationRequest) ToJsonString ¶
func (r *ModifyIncrementalMigrationRequest) ToJsonString() string
type ModifyIncrementalMigrationResponse ¶
type ModifyIncrementalMigrationResponse struct { *tchttp.BaseResponse Response *struct { // ID of an incremental backup import task IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` // 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 NewModifyIncrementalMigrationResponse ¶
func NewModifyIncrementalMigrationResponse() (response *ModifyIncrementalMigrationResponse)
func (*ModifyIncrementalMigrationResponse) FromJsonString ¶
func (r *ModifyIncrementalMigrationResponse) 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 (*ModifyIncrementalMigrationResponse) ToJsonString ¶
func (r *ModifyIncrementalMigrationResponse) ToJsonString() string
type ModifyInstanceParamRequest ¶
type ModifyInstanceParamRequest struct { *tchttp.BaseRequest // Instance ID list. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // List of modified parameters. Each list element has two fields: `Name` and `CurrentValue`. Set `Name` to the parameter name and `CurrentValue` to the new value after modification. <b>Note</b>: if the instance needs to be <b>restarted</b> for the modified parameter to take effect, it will be <b>restarted</b> immediately or during the maintenance time. Before you modify a parameter, you can use the `DescribeInstanceParams` API to query whether the instance needs to be restarted. ParamList []*Parameter `json:"ParamList,omitempty" name:"ParamList"` // When to execute the parameter modification task. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `0`. WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` }
func NewModifyInstanceParamRequest ¶
func NewModifyInstanceParamRequest() (request *ModifyInstanceParamRequest)
func (*ModifyInstanceParamRequest) FromJsonString ¶
func (r *ModifyInstanceParamRequest) 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 (*ModifyInstanceParamRequest) ToJsonString ¶
func (r *ModifyInstanceParamRequest) ToJsonString() string
type ModifyInstanceParamResponse ¶
type ModifyInstanceParamResponse 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 NewModifyInstanceParamResponse ¶
func NewModifyInstanceParamResponse() (response *ModifyInstanceParamResponse)
func (*ModifyInstanceParamResponse) FromJsonString ¶
func (r *ModifyInstanceParamResponse) 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 (*ModifyInstanceParamResponse) ToJsonString ¶
func (r *ModifyInstanceParamResponse) ToJsonString() string
type ModifyMigrationRequest ¶
type ModifyMigrationRequest struct { *tchttp.BaseRequest // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` // New name of migration task. If this parameter is left empty, no modification will be made MigrateName *string `json:"MigrateName,omitempty" name:"MigrateName"` // New migration type (1: structure migration, 2: data migration, 3: incremental sync). If this parameter is left empty, no modification will be made MigrateType *uint64 `json:"MigrateType,omitempty" name:"MigrateType"` // Migration source type. 1: TencentDB for SQL Server, 2: CVM-based self-created SQL Server database; 3: SQL Server backup restoration, 4: SQL Server backup restoration (in COS mode). If this parameter is left empty, no modification will be made SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"` // Migration source. If this parameter is left empty, no modification will be made Source *MigrateSource `json:"Source,omitempty" name:"Source"` // Migration target. If this parameter is left empty, no modification will be made Target *MigrateTarget `json:"Target,omitempty" name:"Target"` // Database objects to be migrated. This parameter is not used for offline migration (SourceType=4 or SourceType=5). If it left empty, no modification will be made MigrateDBSet []*MigrateDB `json:"MigrateDBSet,omitempty" name:"MigrateDBSet"` }
func NewModifyMigrationRequest ¶
func NewModifyMigrationRequest() (request *ModifyMigrationRequest)
func (*ModifyMigrationRequest) FromJsonString ¶
func (r *ModifyMigrationRequest) 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 (*ModifyMigrationRequest) ToJsonString ¶
func (r *ModifyMigrationRequest) ToJsonString() string
type ModifyMigrationResponse ¶
type ModifyMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` // 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 NewModifyMigrationResponse ¶
func NewModifyMigrationResponse() (response *ModifyMigrationResponse)
func (*ModifyMigrationResponse) FromJsonString ¶
func (r *ModifyMigrationResponse) 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 (*ModifyMigrationResponse) ToJsonString ¶
func (r *ModifyMigrationResponse) ToJsonString() string
type ParamRecord ¶
type ParamRecord struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // Parameter value before modification OldValue *string `json:"OldValue,omitempty" name:"OldValue"` // Parameter value after modification NewValue *string `json:"NewValue,omitempty" name:"NewValue"` // Parameter modification status. Valid values: `1` (initializing and waiting for modification), `2` (modification succeed), `3` (modification failed), `4` (modifying) Status *int64 `json:"Status,omitempty" name:"Status"` // Modification time ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` }
type ParameterDetail ¶
type ParameterDetail struct { // Parameter name Name *string `json:"Name,omitempty" name:"Name"` // Data type of the parameter. Valid values: `integer`, `enum` ParamType *string `json:"ParamType,omitempty" name:"ParamType"` // Default value of the parameter Default *string `json:"Default,omitempty" name:"Default"` // Parameter description Description *string `json:"Description,omitempty" name:"Description"` // Current value of the parameter CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Whether the database needs to be restarted for the modified parameter to take effect. Valid values: `0` (no),`1` (yes) NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"` // Maximum value of the parameter Max *int64 `json:"Max,omitempty" name:"Max"` // Minimum value of the parameter Min *int64 `json:"Min,omitempty" name:"Min"` // Enumerated values of the parameter EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"` // Parameter status. Valid values: `0` (normal), `1` (modifying) Status *int64 `json:"Status,omitempty" name:"Status"` }
type RecycleDBInstanceRequest ¶
type RecycleDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewRecycleDBInstanceRequest ¶
func NewRecycleDBInstanceRequest() (request *RecycleDBInstanceRequest)
func (*RecycleDBInstanceRequest) FromJsonString ¶
func (r *RecycleDBInstanceRequest) 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 (*RecycleDBInstanceRequest) ToJsonString ¶
func (r *RecycleDBInstanceRequest) ToJsonString() string
type RecycleDBInstanceResponse ¶
type RecycleDBInstanceResponse 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 NewRecycleDBInstanceResponse ¶
func NewRecycleDBInstanceResponse() (response *RecycleDBInstanceResponse)
func (*RecycleDBInstanceResponse) FromJsonString ¶
func (r *RecycleDBInstanceResponse) 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 (*RecycleDBInstanceResponse) ToJsonString ¶
func (r *RecycleDBInstanceResponse) ToJsonString() string
type RegionInfo ¶
type RegionInfo struct { // Region ID in the format of ap-guangzhou Region *string `json:"Region,omitempty" name:"Region"` // Region name RegionName *string `json:"RegionName,omitempty" name:"RegionName"` // Numeric ID of region RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Current purchasability of this region. UNAVAILABLE: not purchasable, AVAILABLE: purchasable RegionState *string `json:"RegionState,omitempty" name:"RegionState"` }
type RenameRestoreDatabase ¶
type RenameRestoreDatabase struct { // Database name. If the `OldName` database does not exist, a failure will be returned. // It can be left empty in offline migration tasks. OldName *string `json:"OldName,omitempty" name:"OldName"` // New database name. In offline migration, `OldName` will be used if `NewName` is left empty (`OldName` and `NewName` cannot be both empty). In database cloning, `OldName` and `NewName` must be both specified and cannot have the same value. NewName *string `json:"NewName,omitempty" name:"NewName"` }
type ResetAccountPasswordRequest ¶
type ResetAccountPasswordRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Updated account password information array Accounts []*AccountPassword `json:"Accounts,omitempty" name:"Accounts"` }
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 { // ID of async task flow for account password change 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 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 ResourceTag ¶
type RestartDBInstanceRequest ¶
type RestartDBInstanceRequest struct { *tchttp.BaseRequest // Database instance ID in the format of mssql-njj2mtpl InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewRestartDBInstanceRequest ¶
func NewRestartDBInstanceRequest() (request *RestartDBInstanceRequest)
func (*RestartDBInstanceRequest) FromJsonString ¶
func (r *RestartDBInstanceRequest) 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 (*RestartDBInstanceRequest) ToJsonString ¶
func (r *RestartDBInstanceRequest) ToJsonString() string
type RestartDBInstanceResponse ¶
type RestartDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Async task flow ID FlowId *uint64 `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 NewRestartDBInstanceResponse ¶
func NewRestartDBInstanceResponse() (response *RestartDBInstanceResponse)
func (*RestartDBInstanceResponse) FromJsonString ¶
func (r *RestartDBInstanceResponse) 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 (*RestartDBInstanceResponse) ToJsonString ¶
func (r *RestartDBInstanceResponse) ToJsonString() string
type RestoreInstanceRequest ¶
type RestoreInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-j8kv137v InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup file ID, which can be obtained through the `Id` field in the returned value of the `DescribeBackups` API BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"` // ID of the target instance to which the backup is restored. The target instance should be under the same `APPID`. If this parameter is left empty, ID of the source instance will be used. TargetInstanceId *string `json:"TargetInstanceId,omitempty" name:"TargetInstanceId"` // Restore the databases listed in `ReNameRestoreDatabase` and rename them after restoration. If this parameter is left empty, all databases will be restored and renamed in the default format. RenameRestore []*RenameRestoreDatabase `json:"RenameRestore,omitempty" name:"RenameRestore"` // Group ID of unarchived backup files grouped by backup task. This parameter is returned by the [DescribeBackups](https://intl.cloud.tencent.com/document/product/238/19943?from_cn_redirect=1) API. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` }
func NewRestoreInstanceRequest ¶
func NewRestoreInstanceRequest() (request *RestoreInstanceRequest)
func (*RestoreInstanceRequest) FromJsonString ¶
func (r *RestoreInstanceRequest) 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 (*RestoreInstanceRequest) ToJsonString ¶
func (r *RestoreInstanceRequest) ToJsonString() string
type RestoreInstanceResponse ¶
type RestoreInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Async flow task ID, which can be used to call the `DescribeFlowStatus` API to get the task execution status 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 NewRestoreInstanceResponse ¶
func NewRestoreInstanceResponse() (response *RestoreInstanceResponse)
func (*RestoreInstanceResponse) FromJsonString ¶
func (r *RestoreInstanceResponse) 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 (*RestoreInstanceResponse) ToJsonString ¶
func (r *RestoreInstanceResponse) ToJsonString() string
type RollbackInstanceRequest ¶
type RollbackInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Rollback type. 0: the database rolled back overwrites the original database; 1: the database rolled back is renamed and does not overwrite the original database Type *uint64 `json:"Type,omitempty" name:"Type"` // Database to be rolled back DBs []*string `json:"DBs,omitempty" name:"DBs"` // Target time point for rollback Time *string `json:"Time,omitempty" name:"Time"` // ID of the target instance to which the backup is restored. The target instance should be under the same `APPID`. If this parameter is left empty, ID of the source instance will be used. TargetInstanceId *string `json:"TargetInstanceId,omitempty" name:"TargetInstanceId"` // Rename the databases listed in `ReNameRestoreDatabase`. This parameter takes effect only when `Type = 1` which indicates that backup rollback supports renaming databases. If it is left empty, databases will be renamed in the default format and the `DBs` parameter specifies the databases to be restored. RenameRestore []*RenameRestoreDatabase `json:"RenameRestore,omitempty" name:"RenameRestore"` }
func NewRollbackInstanceRequest ¶
func NewRollbackInstanceRequest() (request *RollbackInstanceRequest)
func (*RollbackInstanceRequest) FromJsonString ¶
func (r *RollbackInstanceRequest) 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 (*RollbackInstanceRequest) ToJsonString ¶
func (r *RollbackInstanceRequest) ToJsonString() string
type RollbackInstanceResponse ¶
type RollbackInstanceResponse struct { *tchttp.BaseResponse Response *struct { // The async job ID FlowId *uint64 `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 NewRollbackInstanceResponse ¶
func NewRollbackInstanceResponse() (response *RollbackInstanceResponse)
func (*RollbackInstanceResponse) FromJsonString ¶
func (r *RollbackInstanceResponse) 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 (*RollbackInstanceResponse) ToJsonString ¶
func (r *RollbackInstanceResponse) ToJsonString() string
type RunMigrationRequest ¶
type RunMigrationRequest struct { *tchttp.BaseRequest // Migration task ID MigrateId *uint64 `json:"MigrateId,omitempty" name:"MigrateId"` }
func NewRunMigrationRequest ¶
func NewRunMigrationRequest() (request *RunMigrationRequest)
func (*RunMigrationRequest) FromJsonString ¶
func (r *RunMigrationRequest) 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 (*RunMigrationRequest) ToJsonString ¶
func (r *RunMigrationRequest) ToJsonString() string
type RunMigrationResponse ¶
type RunMigrationResponse struct { *tchttp.BaseResponse Response *struct { // After the migration task starts, the flow ID will be returned 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 NewRunMigrationResponse ¶
func NewRunMigrationResponse() (response *RunMigrationResponse)
func (*RunMigrationResponse) FromJsonString ¶
func (r *RunMigrationResponse) 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 (*RunMigrationResponse) ToJsonString ¶
func (r *RunMigrationResponse) ToJsonString() string
type SlowlogInfo ¶
type SlowlogInfo struct { // Unique ID of slow query log file Id *int64 `json:"Id,omitempty" name:"Id"` // File generation start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // File generation end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // File size in KB Size *int64 `json:"Size,omitempty" name:"Size"` // Number of logs in file Count *int64 `json:"Count,omitempty" name:"Count"` // Download address for private network InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"` // Download address for public network ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"` // Status (1: success, 2: failure) // Note: this field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitempty" name:"Status"` }
type SpecInfo ¶
type SpecInfo struct { // Instance specification ID. The `SpecId` returned by `DescribeZones` together with the purchasable specification information returned by `DescribeProductConfig` can be used to find out what specifications can be purchased in a specified AZ SpecId *int64 `json:"SpecId,omitempty" name:"SpecId"` // Model ID MachineType *string `json:"MachineType,omitempty" name:"MachineType"` // Model name MachineTypeName *string `json:"MachineTypeName,omitempty" name:"MachineTypeName"` // Database version information. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise) Version *string `json:"Version,omitempty" name:"Version"` // Version name corresponding to the `Version` field VersionName *string `json:"VersionName,omitempty" name:"VersionName"` // Memory size in GB Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Number of CPU cores CPU *int64 `json:"CPU,omitempty" name:"CPU"` // Minimum disk size under this specification in GB MinStorage *int64 `json:"MinStorage,omitempty" name:"MinStorage"` // Maximum disk size under this specification in GB MaxStorage *int64 `json:"MaxStorage,omitempty" name:"MaxStorage"` // QPS of this specification QPS *int64 `json:"QPS,omitempty" name:"QPS"` // Description of this specification SuitInfo *string `json:"SuitInfo,omitempty" name:"SuitInfo"` // Pid of this specification Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Pay-as-you-go Pid list corresponding to this specification // Note: this field may return null, indicating that no valid values can be obtained. PostPid []*int64 `json:"PostPid,omitempty" name:"PostPid"` // Billing mode under this specification. POST: pay-as-you-go PayModeStatus *string `json:"PayModeStatus,omitempty" name:"PayModeStatus"` // Instance type. Valid values: HA (High-Availability Edition, including dual-server high availability and AlwaysOn cluster), RO (read-only replica), SI (Basic Edition) InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Whether multi-AZ deployment is supported. Valid values: MultiZones (only multi-AZ deployment is supported), SameZones (only single-AZ deployment is supported), ALL (both deployments are supported) MultiZonesStatus *string `json:"MultiZonesStatus,omitempty" name:"MultiZonesStatus"` }
type StartBackupMigrationRequest ¶
type StartBackupMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` }
func NewStartBackupMigrationRequest ¶
func NewStartBackupMigrationRequest() (request *StartBackupMigrationRequest)
func (*StartBackupMigrationRequest) FromJsonString ¶
func (r *StartBackupMigrationRequest) 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 (*StartBackupMigrationRequest) ToJsonString ¶
func (r *StartBackupMigrationRequest) ToJsonString() string
type StartBackupMigrationResponse ¶
type StartBackupMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Task ID FlowId *uint64 `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 NewStartBackupMigrationResponse ¶
func NewStartBackupMigrationResponse() (response *StartBackupMigrationResponse)
func (*StartBackupMigrationResponse) FromJsonString ¶
func (r *StartBackupMigrationResponse) 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 (*StartBackupMigrationResponse) ToJsonString ¶
func (r *StartBackupMigrationResponse) ToJsonString() string
type StartIncrementalMigrationRequest ¶
type StartIncrementalMigrationRequest struct { *tchttp.BaseRequest // ID of imported target instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup import task ID, which is returned through the API CreateBackupMigration BackupMigrationId *string `json:"BackupMigrationId,omitempty" name:"BackupMigrationId"` // ID of an incremental backup import task IncrementalMigrationId *string `json:"IncrementalMigrationId,omitempty" name:"IncrementalMigrationId"` }
func NewStartIncrementalMigrationRequest ¶
func NewStartIncrementalMigrationRequest() (request *StartIncrementalMigrationRequest)
func (*StartIncrementalMigrationRequest) FromJsonString ¶
func (r *StartIncrementalMigrationRequest) 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 (*StartIncrementalMigrationRequest) ToJsonString ¶
func (r *StartIncrementalMigrationRequest) ToJsonString() string
type StartIncrementalMigrationResponse ¶
type StartIncrementalMigrationResponse struct { *tchttp.BaseResponse Response *struct { // Task ID FlowId *uint64 `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 NewStartIncrementalMigrationResponse ¶
func NewStartIncrementalMigrationResponse() (response *StartIncrementalMigrationResponse)
func (*StartIncrementalMigrationResponse) FromJsonString ¶
func (r *StartIncrementalMigrationResponse) 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 (*StartIncrementalMigrationResponse) ToJsonString ¶
func (r *StartIncrementalMigrationResponse) ToJsonString() string
type TerminateDBInstanceRequest ¶
type TerminateDBInstanceRequest struct { *tchttp.BaseRequest // List of instance IDs manually terminated in the format of [mssql-3l3fgqn7], which are the same as the instance IDs displayed on the TencentDB Console page InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` }
func NewTerminateDBInstanceRequest ¶
func NewTerminateDBInstanceRequest() (request *TerminateDBInstanceRequest)
func (*TerminateDBInstanceRequest) FromJsonString ¶
func (r *TerminateDBInstanceRequest) 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 (*TerminateDBInstanceRequest) ToJsonString ¶
func (r *TerminateDBInstanceRequest) ToJsonString() string
type TerminateDBInstanceResponse ¶
type TerminateDBInstanceResponse 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 NewTerminateDBInstanceResponse ¶
func NewTerminateDBInstanceResponse() (response *TerminateDBInstanceResponse)
func (*TerminateDBInstanceResponse) FromJsonString ¶
func (r *TerminateDBInstanceResponse) 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 (*TerminateDBInstanceResponse) ToJsonString ¶
func (r *TerminateDBInstanceResponse) ToJsonString() string
type UpgradeDBInstanceRequest ¶
type UpgradeDBInstanceRequest struct { *tchttp.BaseRequest // Instance ID in the format of mssql-j8kv137v InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size Memory *int64 `json:"Memory,omitempty" name:"Memory"` // Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0 AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` // Voucher ID (currently, only one voucher can be used per order) VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` // The number of CUP cores after the instance is upgraded. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Upgrade the SQL Server version. Supported versions include SQL Server 2008 Enterprise (`2008R2`), SQL Server 2012 Enterprise (`2012SP3`), etc. As the purchasable versions are region-specific, you can use the `DescribeProductConfig` API to query the information of purchasable versions in each region. Downgrading is unsupported. If this parameter is left empty, the SQL Server version will not be changed. DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"` // Upgrade the high availability architecture from image-based disaster recovery to Always On cluster disaster recovery. This parameter is valid only for instances which support Always On high availability and run SQL Server 2017 or later. Neither downgrading to image-based disaster recovery nor upgrading from cluster disaster recovery to Always On disaster recovery is supported. If this parameter is left empty, the high availability architecture will not be changed. HAType *string `json:"HAType,omitempty" name:"HAType"` // Change the instance deployment scheme. Valid values: `SameZones` (change to single-AZ deployment, which does not support cross-AZ disaster recovery), `MultiZones` (change to multi-AZ deployment, which supports cross-AZ disaster recovery). MultiZones *string `json:"MultiZones,omitempty" name:"MultiZones"` // The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`. WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` }
func NewUpgradeDBInstanceRequest ¶
func NewUpgradeDBInstanceRequest() (request *UpgradeDBInstanceRequest)
func (*UpgradeDBInstanceRequest) FromJsonString ¶
func (r *UpgradeDBInstanceRequest) 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 (*UpgradeDBInstanceRequest) ToJsonString ¶
func (r *UpgradeDBInstanceRequest) ToJsonString() string
type UpgradeDBInstanceResponse ¶
type UpgradeDBInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Order name DealName *string `json:"DealName,omitempty" name:"DealName"` // 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 NewUpgradeDBInstanceResponse ¶
func NewUpgradeDBInstanceResponse() (response *UpgradeDBInstanceResponse)
func (*UpgradeDBInstanceResponse) FromJsonString ¶
func (r *UpgradeDBInstanceResponse) 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 (*UpgradeDBInstanceResponse) ToJsonString ¶
func (r *UpgradeDBInstanceResponse) ToJsonString() string
type ZoneInfo ¶
type ZoneInfo struct { // AZ ID in the format of ap-guangzhou-1 (i.e., Guangzhou Zone 1) Zone *string `json:"Zone,omitempty" name:"Zone"` // AZ name ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // Numeric ID of AZ ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // ID of specification purchasable in this AZ, which, together with the returned value of the `DescribeProductConfig` API, can be used to find out the specifications currently purchasable in the AZ SpecId *int64 `json:"SpecId,omitempty" name:"SpecId"` // Information of database versions purchasable under the current AZ and specification. Valid values: 2008R2 (SQL Server 2008 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise) Version *string `json:"Version,omitempty" name:"Version"` }