Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudMongodbInstanceBackups() *schema.Resource
- func DataSourceTencentCloudMongodbInstanceConnections() *schema.Resource
- func DataSourceTencentCloudMongodbInstanceCurrentOp() *schema.Resource
- func DataSourceTencentCloudMongodbInstanceParams() *schema.Resource
- func DataSourceTencentCloudMongodbInstanceSlowLog() *schema.Resource
- func DataSourceTencentCloudMongodbInstances() *schema.Resource
- func DataSourceTencentCloudMongodbZoneConfig() *schema.Resource
- func ResourceTencentCloudMongodbInstance() *schema.Resource
- func ResourceTencentCloudMongodbInstanceAccount() *schema.Resource
- func ResourceTencentCloudMongodbInstanceBackup() *schema.Resource
- func ResourceTencentCloudMongodbInstanceBackupDownloadTask() *schema.Resource
- func ResourceTencentCloudMongodbInstanceBackupRule() *schema.Resource
- func ResourceTencentCloudMongodbInstanceTransparentDataEncryption() *schema.Resource
- func ResourceTencentCloudMongodbShardingInstance() *schema.Resource
- func ResourceTencentCloudMongodbStandbyInstance() *schema.Resource
- func TencentMongodbBasicInfo() map[string]*schema.Schema
- type MongodbService
- func (me *MongodbService) DeleteMongodbInstanceAccountById(ctx context.Context, instanceId string, userName string, ...) (errRet error)
- func (me *MongodbService) DescribeAsyncRequestInfo(ctx context.Context, asyncId string, timeout time.Duration) (errRet error)
- func (me *MongodbService) DescribeDBInstanceDeal(ctx context.Context, dealId string) (dealResponseParams *mongodb.DescribeDBInstanceDealResponseParams, errRet error)
- func (me *MongodbService) DescribeDBInstanceNodeProperty(ctx context.Context, instanceId string) (replicateSets []*mongodb.ReplicateSetInfo, errRet error)
- func (me *MongodbService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *mongodb.InstanceDetail, has bool, errRet error)
- func (me *MongodbService) DescribeInstancesByFilter(ctx context.Context, instanceId string, clusterType int) (mongodbs []*mongodb.InstanceDetail, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceAccountById(ctx context.Context, instanceId string, userName string) (instanceAccount *mongodb.UserInfo, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceBackupDownloadTaskById(ctx context.Context, instanceId string, backupName string) (instanceBackupDownloadTask []*mongodb.BackupDownloadTask, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceBackupsByFilter(ctx context.Context, param map[string]interface{}) (instanceBackups []*mongodb.BackupInfo, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceConnectionsByFilter(ctx context.Context, param map[string]interface{}) (instanceConnections []*mongodb.ClientConnection, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceCurrentOpByFilter(ctx context.Context, param map[string]interface{}) (instanceCurrentOp []*mongodb.CurrentOp, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceParams(ctx context.Context, param map[string]interface{}) (instanceParams *mongodb.DescribeInstanceParamsResponseParams, errRet error)
- func (me *MongodbService) DescribeMongodbInstanceSlowLogByFilter(ctx context.Context, param map[string]interface{}) (instanceSlowLog []*string, errRet error)
- func (me *MongodbService) DescribeSecurityGroup(ctx context.Context, instanceId string) (groups []*mongodb.SecurityGroup, errRet error)
- func (me *MongodbService) DescribeSpecInfo(ctx context.Context, zone string) (infos []*mongodb.SpecificationInfo, errRet error)
- func (me *MongodbService) IsolateInstance(ctx context.Context, instanceId string) (errRet error)
- func (me *MongodbService) ModifyAutoRenewFlag(ctx context.Context, instanceId string, period int, renewFlag int) (errRet error)
- func (me *MongodbService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) (errRet error)
- func (me *MongodbService) ModifyNetworkAddress(ctx context.Context, instanceId string, vpcId string, subnetId string) (errRet error)
- func (me *MongodbService) ModifyProjectId(ctx context.Context, instanceId string, projectId int) (errRet error)
- func (me *MongodbService) ModifySecurityGroups(ctx context.Context, instanceId string, securityGroups []*string) (errRet error)
- func (me *MongodbService) OfflineIsolatedDBInstance(ctx context.Context, instanceId string, timeOutTolerant bool) (errRet error)
- func (me *MongodbService) ResetInstancePassword(ctx context.Context, instanceId, accountName, password string) (errRet error)
- func (me *MongodbService) SetInstanceMaintenance(ctx context.Context, instanceId, maintenanceStart, maintenanceEnd string) error
- func (me *MongodbService) TerminateDBInstances(ctx context.Context, instanceId string) (errRet error)
- func (me *MongodbService) UpgradeInstance(ctx context.Context, instanceId string, memory int, volume int, ...) (dealId string, errRet error)
Constants ¶
View Source
const ( MONGODB_INSTANCE_STATUS_INITIAL = 0 MONGODB_INSTANCE_STATUS_PROCESSING = 1 MONGODB_INSTANCE_STATUS_RUNNING = 2 MONGODB_INSTANCE_STATUS_EXPIRED = -2 MONGODB_ENGINE_VERSION_3_WT = "MONGO_3_WT" MONGODB_ENGINE_VERSION_36_WT = "MONGO_36_WT" MONGODB_ENGINE_VERSION_3_ROCKS = "MONGO_3_ROCKS" MONGODB_ENGINE_VERSION_4_WT = "MONGO_40_WT" MONGODB_MACHINE_TYPE_GIO = "GIO" MONGODB_MACHINE_TYPE_TGIO = "TGIO" MONGODB_MACHINE_TYPE_HIO = "HIO" MONGODB_MACHINE_TYPE_HIO10G = "HIO10G" MONGODB_CLUSTER_TYPE_REPLSET = "REPLSET" MONGODB_CLUSTER_TYPE_SHARD = "SHARD" MONGO_INSTANCE_TYPE_FORMAL = 1 MONGO_INSTANCE_TYPE_READONLY = 3 MONGO_INSTANCE_TYPE_STANDBY = 4 )
View Source
const ( MONGODB_DEFAULT_LIMIT = 20 MONGODB_MAX_LIMIT = 100 MONGODB_DEFAULT_OFFSET = 0 )
View Source
const ( MONGODB_CHARGE_TYPE_POSTPAID = svcpostgresql.COMMON_PAYTYPE_POSTPAID MONGODB_CHARGE_TYPE_PREPAID = svcpostgresql.COMMON_PAYTYPE_PREPAID )
View Source
const ( MONGODB_TASK_FAILED = "failed" MONGODB_TASK_PAUSED = "paused" MONGODB_TASK_RUNNING = "running" MONGODB_TASK_SUCCESS = "success" )
View Source
const (
MONGODB_STATUS_DELIVERY_SUCCESS = 4
)
Variables ¶
View Source
var MONGODB_AUTO_RENEW_FLAG = map[int]string{
0: "NOTIFY_AND_MANUAL_RENEW",
1: "NOTIFY_AND_AUTO_RENEW",
2: "DISABLE_NOTIFY_AND_MANUAL_RENEW",
}
View Source
var MONGODB_CHARGE_TYPE = map[uint64]string{ 0: MONGODB_CHARGE_TYPE_POSTPAID, 1: MONGODB_CHARGE_TYPE_PREPAID, }
View Source
var MONGODB_CLUSTER_TYPE = []string{ MONGODB_CLUSTER_TYPE_REPLSET, MONGODB_CLUSTER_TYPE_SHARD, }
View Source
var MONGODB_PREPAID_PERIOD = []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36}
Functions ¶
func ResourceTencentCloudMongodbInstanceBackupRule ¶ added in v1.81.106
func ResourceTencentCloudMongodbInstanceTransparentDataEncryption ¶ added in v1.81.106
func TencentMongodbBasicInfo ¶
Types ¶
type MongodbService ¶
type MongodbService struct {
// contains filtered or unexported fields
}
func NewMongodbService ¶
func NewMongodbService(client *connectivity.TencentCloudClient) MongodbService
func (*MongodbService) DeleteMongodbInstanceAccountById ¶
func (*MongodbService) DescribeAsyncRequestInfo ¶
func (*MongodbService) DescribeDBInstanceDeal ¶ added in v1.81.74
func (me *MongodbService) DescribeDBInstanceDeal(ctx context.Context, dealId string) (dealResponseParams *mongodb.DescribeDBInstanceDealResponseParams, errRet error)
func (*MongodbService) DescribeDBInstanceNodeProperty ¶
func (me *MongodbService) DescribeDBInstanceNodeProperty(ctx context.Context, instanceId string) (replicateSets []*mongodb.ReplicateSetInfo, errRet error)
func (*MongodbService) DescribeInstanceById ¶
func (me *MongodbService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *mongodb.InstanceDetail, has bool, errRet error)
func (*MongodbService) DescribeInstancesByFilter ¶
func (me *MongodbService) DescribeInstancesByFilter(ctx context.Context, instanceId string, clusterType int) (mongodbs []*mongodb.InstanceDetail, errRet error)
func (*MongodbService) DescribeMongodbInstanceAccountById ¶
func (*MongodbService) DescribeMongodbInstanceBackupDownloadTaskById ¶
func (me *MongodbService) DescribeMongodbInstanceBackupDownloadTaskById(ctx context.Context, instanceId string, backupName string) (instanceBackupDownloadTask []*mongodb.BackupDownloadTask, errRet error)
func (*MongodbService) DescribeMongodbInstanceBackupsByFilter ¶
func (me *MongodbService) DescribeMongodbInstanceBackupsByFilter(ctx context.Context, param map[string]interface{}) (instanceBackups []*mongodb.BackupInfo, errRet error)
func (*MongodbService) DescribeMongodbInstanceConnectionsByFilter ¶
func (me *MongodbService) DescribeMongodbInstanceConnectionsByFilter(ctx context.Context, param map[string]interface{}) (instanceConnections []*mongodb.ClientConnection, errRet error)
func (*MongodbService) DescribeMongodbInstanceCurrentOpByFilter ¶
func (*MongodbService) DescribeMongodbInstanceParams ¶
func (me *MongodbService) DescribeMongodbInstanceParams(ctx context.Context, param map[string]interface{}) (instanceParams *mongodb.DescribeInstanceParamsResponseParams, errRet error)
func (*MongodbService) DescribeMongodbInstanceSlowLogByFilter ¶
func (*MongodbService) DescribeSecurityGroup ¶
func (me *MongodbService) DescribeSecurityGroup(ctx context.Context, instanceId string) (groups []*mongodb.SecurityGroup, errRet error)
func (*MongodbService) DescribeSpecInfo ¶
func (me *MongodbService) DescribeSpecInfo(ctx context.Context, zone string) (infos []*mongodb.SpecificationInfo, errRet error)
func (*MongodbService) IsolateInstance ¶
func (me *MongodbService) IsolateInstance(ctx context.Context, instanceId string) (errRet error)
func (*MongodbService) ModifyAutoRenewFlag ¶
func (*MongodbService) ModifyInstanceName ¶
func (me *MongodbService) ModifyInstanceName(ctx context.Context, instanceId, instanceName string) (errRet error)
func (*MongodbService) ModifyNetworkAddress ¶
func (*MongodbService) ModifyProjectId ¶
func (*MongodbService) ModifySecurityGroups ¶
func (*MongodbService) OfflineIsolatedDBInstance ¶
func (*MongodbService) ResetInstancePassword ¶
func (me *MongodbService) ResetInstancePassword(ctx context.Context, instanceId, accountName, password string) (errRet error)
func (*MongodbService) SetInstanceMaintenance ¶ added in v1.81.116
func (me *MongodbService) SetInstanceMaintenance(ctx context.Context, instanceId, maintenanceStart, maintenanceEnd string) error
func (*MongodbService) TerminateDBInstances ¶
func (me *MongodbService) TerminateDBInstances(ctx context.Context, instanceId string) (errRet error)
Source Files ¶
- data_source_tc_mongodb_instance_backups.go
- data_source_tc_mongodb_instance_connections.go
- data_source_tc_mongodb_instance_current_op.go
- data_source_tc_mongodb_instance_params.go
- data_source_tc_mongodb_instance_slow_log.go
- data_source_tc_mongodb_instances.go
- data_source_tc_mongodb_zone_config.go
- extension_mongodb.go
- resource_tc_mongodb_instance.go
- resource_tc_mongodb_instance_account.go
- resource_tc_mongodb_instance_backup.go
- resource_tc_mongodb_instance_backup_download_task.go
- resource_tc_mongodb_instance_backup_rule.go
- resource_tc_mongodb_instance_transparent_data_encryption.go
- resource_tc_mongodb_sharding_instance.go
- resource_tc_mongodb_standby_instance.go
- service_tencentcloud_mongodb.go
Click to show internal directories.
Click to hide internal directories.