Documentation ¶
Index ¶
- Constants
- type Account
- type AllocateWanAddressRequest
- type AllocateWanAddressRequestParams
- type AllocateWanAddressResponse
- type AllocateWanAddressResponseParams
- type ApplyParamsTemplateRequest
- type ApplyParamsTemplateRequestParams
- type ApplyParamsTemplateResponse
- type ApplyParamsTemplateResponseParams
- type AssociateSecurityGroupsRequest
- type AssociateSecurityGroupsRequestParams
- type AssociateSecurityGroupsResponse
- type AssociateSecurityGroupsResponseParams
- type BackupDownloadInfo
- type BackupLimitVpcItem
- type BigKeyInfo
- type BigKeyTypeInfo
- type ChangeInstanceRoleRequest
- type ChangeInstanceRoleRequestParams
- type ChangeInstanceRoleResponse
- type ChangeInstanceRoleResponseParams
- type ChangeMasterInstanceRequest
- type ChangeMasterInstanceRequestParams
- type ChangeMasterInstanceResponse
- type ChangeMasterInstanceResponseParams
- type ChangeReplicaToMasterRequest
- type ChangeReplicaToMasterRequestParams
- type ChangeReplicaToMasterResponse
- type ChangeReplicaToMasterResponseParams
- type CleanUpInstanceRequest
- type CleanUpInstanceRequestParams
- type CleanUpInstanceResponse
- type CleanUpInstanceResponseParams
- type ClearInstanceRequest
- type ClearInstanceRequestParams
- type ClearInstanceResponse
- type ClearInstanceResponseParams
- type Client
- func (c *Client) AllocateWanAddress(request *AllocateWanAddressRequest) (response *AllocateWanAddressResponse, err error)
- func (c *Client) AllocateWanAddressWithContext(ctx context.Context, request *AllocateWanAddressRequest) (response *AllocateWanAddressResponse, err error)
- func (c *Client) ApplyParamsTemplate(request *ApplyParamsTemplateRequest) (response *ApplyParamsTemplateResponse, err error)
- func (c *Client) ApplyParamsTemplateWithContext(ctx context.Context, request *ApplyParamsTemplateRequest) (response *ApplyParamsTemplateResponse, err error)
- func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
- func (c *Client) ChangeInstanceRole(request *ChangeInstanceRoleRequest) (response *ChangeInstanceRoleResponse, err error)
- func (c *Client) ChangeInstanceRoleWithContext(ctx context.Context, request *ChangeInstanceRoleRequest) (response *ChangeInstanceRoleResponse, err error)
- func (c *Client) ChangeMasterInstance(request *ChangeMasterInstanceRequest) (response *ChangeMasterInstanceResponse, err error)
- func (c *Client) ChangeMasterInstanceWithContext(ctx context.Context, request *ChangeMasterInstanceRequest) (response *ChangeMasterInstanceResponse, err error)
- func (c *Client) ChangeReplicaToMaster(request *ChangeReplicaToMasterRequest) (response *ChangeReplicaToMasterResponse, err error)
- func (c *Client) ChangeReplicaToMasterWithContext(ctx context.Context, request *ChangeReplicaToMasterRequest) (response *ChangeReplicaToMasterResponse, err error)
- func (c *Client) CleanUpInstance(request *CleanUpInstanceRequest) (response *CleanUpInstanceResponse, err error)
- func (c *Client) CleanUpInstanceWithContext(ctx context.Context, request *CleanUpInstanceRequest) (response *CleanUpInstanceResponse, err error)
- func (c *Client) ClearInstance(request *ClearInstanceRequest) (response *ClearInstanceResponse, err error)
- func (c *Client) ClearInstanceWithContext(ctx context.Context, request *ClearInstanceRequest) (response *ClearInstanceResponse, err error)
- func (c *Client) CloneInstances(request *CloneInstancesRequest) (response *CloneInstancesResponse, err error)
- func (c *Client) CloneInstancesWithContext(ctx context.Context, request *CloneInstancesRequest) (response *CloneInstancesResponse, err error)
- func (c *Client) CloseSSL(request *CloseSSLRequest) (response *CloseSSLResponse, err error)
- func (c *Client) CloseSSLWithContext(ctx context.Context, request *CloseSSLRequest) (response *CloseSSLResponse, err error)
- func (c *Client) CreateInstanceAccount(request *CreateInstanceAccountRequest) (response *CreateInstanceAccountResponse, err error)
- func (c *Client) CreateInstanceAccountWithContext(ctx context.Context, request *CreateInstanceAccountRequest) (response *CreateInstanceAccountResponse, err error)
- func (c *Client) CreateInstances(request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
- func (c *Client) CreateInstancesWithContext(ctx context.Context, request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
- func (c *Client) CreateParamTemplate(request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
- func (c *Client) CreateParamTemplateWithContext(ctx context.Context, request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
- func (c *Client) DeleteInstanceAccount(request *DeleteInstanceAccountRequest) (response *DeleteInstanceAccountResponse, err error)
- func (c *Client) DeleteInstanceAccountWithContext(ctx context.Context, request *DeleteInstanceAccountRequest) (response *DeleteInstanceAccountResponse, err error)
- func (c *Client) DeleteParamTemplate(request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
- func (c *Client) DeleteParamTemplateWithContext(ctx context.Context, request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
- func (c *Client) DescribeAutoBackupConfig(request *DescribeAutoBackupConfigRequest) (response *DescribeAutoBackupConfigResponse, err error)
- func (c *Client) DescribeAutoBackupConfigWithContext(ctx context.Context, request *DescribeAutoBackupConfigRequest) (response *DescribeAutoBackupConfigResponse, err error)
- func (c *Client) DescribeBackupDownloadRestriction(request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
- func (c *Client) DescribeBackupDownloadRestrictionWithContext(ctx context.Context, request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
- func (c *Client) DescribeBackupUrl(request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, err error)
- func (c *Client) DescribeBackupUrlWithContext(ctx context.Context, request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, err error)
- func (c *Client) DescribeBandwidthRange(request *DescribeBandwidthRangeRequest) (response *DescribeBandwidthRangeResponse, err error)
- func (c *Client) DescribeBandwidthRangeWithContext(ctx context.Context, request *DescribeBandwidthRangeRequest) (response *DescribeBandwidthRangeResponse, err error)
- func (c *Client) DescribeCommonDBInstances(request *DescribeCommonDBInstancesRequest) (response *DescribeCommonDBInstancesResponse, err error)
- func (c *Client) DescribeCommonDBInstancesWithContext(ctx context.Context, request *DescribeCommonDBInstancesRequest) (response *DescribeCommonDBInstancesResponse, err error)
- func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
- func (c *Client) DescribeInstanceAccount(request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)
- func (c *Client) DescribeInstanceAccountWithContext(ctx context.Context, request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)
- func (c *Client) DescribeInstanceBackups(request *DescribeInstanceBackupsRequest) (response *DescribeInstanceBackupsResponse, err error)
- func (c *Client) DescribeInstanceBackupsWithContext(ctx context.Context, request *DescribeInstanceBackupsRequest) (response *DescribeInstanceBackupsResponse, err error)
- func (c *Client) DescribeInstanceDTSInfo(request *DescribeInstanceDTSInfoRequest) (response *DescribeInstanceDTSInfoResponse, err error)
- func (c *Client) DescribeInstanceDTSInfoWithContext(ctx context.Context, request *DescribeInstanceDTSInfoRequest) (response *DescribeInstanceDTSInfoResponse, err error)
- func (c *Client) DescribeInstanceDealDetail(request *DescribeInstanceDealDetailRequest) (response *DescribeInstanceDealDetailResponse, err error)
- func (c *Client) DescribeInstanceDealDetailWithContext(ctx context.Context, request *DescribeInstanceDealDetailRequest) (response *DescribeInstanceDealDetailResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKey(request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKeySizeDist(request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKeySizeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKeyTypeDist(request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKeyTypeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorBigKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)
- func (c *Client) DescribeInstanceMonitorHotKey(request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)
- func (c *Client) DescribeInstanceMonitorHotKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)
- func (c *Client) DescribeInstanceMonitorSIP(request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)
- func (c *Client) DescribeInstanceMonitorSIPWithContext(ctx context.Context, request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)
- func (c *Client) DescribeInstanceMonitorTookDist(request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorTookDistWithContext(ctx context.Context, request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)
- func (c *Client) DescribeInstanceMonitorTopNCmd(request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)
- func (c *Client) DescribeInstanceMonitorTopNCmdTook(request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)
- func (c *Client) DescribeInstanceMonitorTopNCmdTookWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)
- func (c *Client) DescribeInstanceMonitorTopNCmdWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)
- func (c *Client) DescribeInstanceNodeInfo(request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, err error)
- func (c *Client) DescribeInstanceNodeInfoWithContext(ctx context.Context, request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, 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) DescribeInstanceSecurityGroup(request *DescribeInstanceSecurityGroupRequest) (response *DescribeInstanceSecurityGroupResponse, err error)
- func (c *Client) DescribeInstanceSecurityGroupWithContext(ctx context.Context, request *DescribeInstanceSecurityGroupRequest) (response *DescribeInstanceSecurityGroupResponse, err error)
- func (c *Client) DescribeInstanceShards(request *DescribeInstanceShardsRequest) (response *DescribeInstanceShardsResponse, err error)
- func (c *Client) DescribeInstanceShardsWithContext(ctx context.Context, request *DescribeInstanceShardsRequest) (response *DescribeInstanceShardsResponse, err error)
- func (c *Client) DescribeInstanceZoneInfo(request *DescribeInstanceZoneInfoRequest) (response *DescribeInstanceZoneInfoResponse, err error)
- func (c *Client) DescribeInstanceZoneInfoWithContext(ctx context.Context, request *DescribeInstanceZoneInfoRequest) (response *DescribeInstanceZoneInfoResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeMaintenanceWindow(request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)
- func (c *Client) DescribeMaintenanceWindowWithContext(ctx context.Context, request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)
- func (c *Client) DescribeParamTemplateInfo(request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
- func (c *Client) DescribeParamTemplateInfoWithContext(ctx context.Context, request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
- func (c *Client) DescribeParamTemplates(request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
- func (c *Client) DescribeParamTemplatesWithContext(ctx context.Context, request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
- func (c *Client) DescribeProductInfo(request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)
- func (c *Client) DescribeProductInfoWithContext(ctx context.Context, request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)
- func (c *Client) DescribeProjectSecurityGroup(request *DescribeProjectSecurityGroupRequest) (response *DescribeProjectSecurityGroupResponse, err error)
- func (c *Client) DescribeProjectSecurityGroupWithContext(ctx context.Context, request *DescribeProjectSecurityGroupRequest) (response *DescribeProjectSecurityGroupResponse, err error)
- func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
- func (c *Client) DescribeProxySlowLog(request *DescribeProxySlowLogRequest) (response *DescribeProxySlowLogResponse, err error)
- func (c *Client) DescribeProxySlowLogWithContext(ctx context.Context, request *DescribeProxySlowLogRequest) (response *DescribeProxySlowLogResponse, err error)
- func (c *Client) DescribeReplicationGroup(request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)
- func (c *Client) DescribeReplicationGroupWithContext(ctx context.Context, request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)
- func (c *Client) DescribeSSLStatus(request *DescribeSSLStatusRequest) (response *DescribeSSLStatusResponse, err error)
- func (c *Client) DescribeSSLStatusWithContext(ctx context.Context, request *DescribeSSLStatusRequest) (response *DescribeSSLStatusResponse, err error)
- func (c *Client) DescribeSlowLog(request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)
- func (c *Client) DescribeSlowLogWithContext(ctx context.Context, request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)
- func (c *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
- func (c *Client) DescribeTaskInfoWithContext(ctx context.Context, request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
- func (c *Client) DescribeTaskList(request *DescribeTaskListRequest) (response *DescribeTaskListResponse, err error)
- func (c *Client) DescribeTaskListWithContext(ctx context.Context, request *DescribeTaskListRequest) (response *DescribeTaskListResponse, err error)
- func (c *Client) DescribeTendisSlowLog(request *DescribeTendisSlowLogRequest) (response *DescribeTendisSlowLogResponse, err error)
- func (c *Client) DescribeTendisSlowLogWithContext(ctx context.Context, request *DescribeTendisSlowLogRequest) (response *DescribeTendisSlowLogResponse, err error)
- func (c *Client) DestroyPostpaidInstance(request *DestroyPostpaidInstanceRequest) (response *DestroyPostpaidInstanceResponse, err error)
- func (c *Client) DestroyPostpaidInstanceWithContext(ctx context.Context, request *DestroyPostpaidInstanceRequest) (response *DestroyPostpaidInstanceResponse, err error)
- func (c *Client) DestroyPrepaidInstance(request *DestroyPrepaidInstanceRequest) (response *DestroyPrepaidInstanceResponse, err error)
- func (c *Client) DestroyPrepaidInstanceWithContext(ctx context.Context, request *DestroyPrepaidInstanceRequest) (response *DestroyPrepaidInstanceResponse, err error)
- func (c *Client) DisableReplicaReadonly(request *DisableReplicaReadonlyRequest) (response *DisableReplicaReadonlyResponse, err error)
- func (c *Client) DisableReplicaReadonlyWithContext(ctx context.Context, request *DisableReplicaReadonlyRequest) (response *DisableReplicaReadonlyResponse, err error)
- func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
- func (c *Client) EnableReplicaReadonly(request *EnableReplicaReadonlyRequest) (response *EnableReplicaReadonlyResponse, err error)
- func (c *Client) EnableReplicaReadonlyWithContext(ctx context.Context, request *EnableReplicaReadonlyRequest) (response *EnableReplicaReadonlyResponse, err error)
- func (c *Client) InquiryPriceCreateInstance(request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
- func (c *Client) InquiryPriceCreateInstanceWithContext(ctx context.Context, request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
- func (c *Client) InquiryPriceUpgradeInstance(request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)
- func (c *Client) InquiryPriceUpgradeInstanceWithContext(ctx context.Context, request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)
- func (c *Client) KillMasterGroup(request *KillMasterGroupRequest) (response *KillMasterGroupResponse, err error)
- func (c *Client) KillMasterGroupWithContext(ctx context.Context, request *KillMasterGroupRequest) (response *KillMasterGroupResponse, err error)
- func (c *Client) ManualBackupInstance(request *ManualBackupInstanceRequest) (response *ManualBackupInstanceResponse, err error)
- func (c *Client) ManualBackupInstanceWithContext(ctx context.Context, request *ManualBackupInstanceRequest) (response *ManualBackupInstanceResponse, err error)
- func (c *Client) ModfiyInstancePassword(request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)
- func (c *Client) ModfiyInstancePasswordWithContext(ctx context.Context, request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)
- func (c *Client) ModifyAutoBackupConfig(request *ModifyAutoBackupConfigRequest) (response *ModifyAutoBackupConfigResponse, err error)
- func (c *Client) ModifyAutoBackupConfigWithContext(ctx context.Context, request *ModifyAutoBackupConfigRequest) (response *ModifyAutoBackupConfigResponse, err error)
- func (c *Client) ModifyBackupDownloadRestriction(request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
- func (c *Client) ModifyBackupDownloadRestrictionWithContext(ctx context.Context, request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
- func (c *Client) ModifyInstance(request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error)
- func (c *Client) ModifyInstanceAccount(request *ModifyInstanceAccountRequest) (response *ModifyInstanceAccountResponse, err error)
- func (c *Client) ModifyInstanceAccountWithContext(ctx context.Context, request *ModifyInstanceAccountRequest) (response *ModifyInstanceAccountResponse, err error)
- func (c *Client) ModifyInstanceParams(request *ModifyInstanceParamsRequest) (response *ModifyInstanceParamsResponse, err error)
- func (c *Client) ModifyInstanceParamsWithContext(ctx context.Context, request *ModifyInstanceParamsRequest) (response *ModifyInstanceParamsResponse, err error)
- func (c *Client) ModifyInstanceReadOnly(request *ModifyInstanceReadOnlyRequest) (response *ModifyInstanceReadOnlyResponse, err error)
- func (c *Client) ModifyInstanceReadOnlyWithContext(ctx context.Context, request *ModifyInstanceReadOnlyRequest) (response *ModifyInstanceReadOnlyResponse, err error)
- func (c *Client) ModifyInstanceWithContext(ctx context.Context, request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error)
- func (c *Client) ModifyMaintenanceWindow(request *ModifyMaintenanceWindowRequest) (response *ModifyMaintenanceWindowResponse, err error)
- func (c *Client) ModifyMaintenanceWindowWithContext(ctx context.Context, request *ModifyMaintenanceWindowRequest) (response *ModifyMaintenanceWindowResponse, err error)
- func (c *Client) ModifyNetworkConfig(request *ModifyNetworkConfigRequest) (response *ModifyNetworkConfigResponse, err error)
- func (c *Client) ModifyNetworkConfigWithContext(ctx context.Context, request *ModifyNetworkConfigRequest) (response *ModifyNetworkConfigResponse, err error)
- func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
- func (c *Client) ModifyParamTemplateWithContext(ctx context.Context, request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
- func (c *Client) OpenSSL(request *OpenSSLRequest) (response *OpenSSLResponse, err error)
- func (c *Client) OpenSSLWithContext(ctx context.Context, request *OpenSSLRequest) (response *OpenSSLResponse, err error)
- func (c *Client) ReleaseWanAddress(request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, err error)
- func (c *Client) ReleaseWanAddressWithContext(ctx context.Context, request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, err error)
- func (c *Client) RemoveReplicationInstance(request *RemoveReplicationInstanceRequest) (response *RemoveReplicationInstanceResponse, err error)
- func (c *Client) RemoveReplicationInstanceWithContext(ctx context.Context, request *RemoveReplicationInstanceRequest) (response *RemoveReplicationInstanceResponse, err error)
- func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
- func (c *Client) RenewInstanceWithContext(ctx context.Context, request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
- func (c *Client) ResetPassword(request *ResetPasswordRequest) (response *ResetPasswordResponse, err error)
- func (c *Client) ResetPasswordWithContext(ctx context.Context, request *ResetPasswordRequest) (response *ResetPasswordResponse, 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) StartupInstance(request *StartupInstanceRequest) (response *StartupInstanceResponse, err error)
- func (c *Client) StartupInstanceWithContext(ctx context.Context, request *StartupInstanceRequest) (response *StartupInstanceResponse, err error)
- func (c *Client) SwitchInstanceVip(request *SwitchInstanceVipRequest) (response *SwitchInstanceVipResponse, err error)
- func (c *Client) SwitchInstanceVipWithContext(ctx context.Context, request *SwitchInstanceVipRequest) (response *SwitchInstanceVipResponse, err error)
- func (c *Client) SwitchProxy(request *SwitchProxyRequest) (response *SwitchProxyResponse, err error)
- func (c *Client) SwitchProxyWithContext(ctx context.Context, request *SwitchProxyRequest) (response *SwitchProxyResponse, err error)
- func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
- func (c *Client) UpgradeInstanceVersion(request *UpgradeInstanceVersionRequest) (response *UpgradeInstanceVersionResponse, err error)
- func (c *Client) UpgradeInstanceVersionWithContext(ctx context.Context, request *UpgradeInstanceVersionRequest) (response *UpgradeInstanceVersionResponse, err error)
- func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
- func (c *Client) UpgradeProxyVersion(request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error)
- func (c *Client) UpgradeProxyVersionWithContext(ctx context.Context, request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error)
- func (c *Client) UpgradeSmallVersion(request *UpgradeSmallVersionRequest) (response *UpgradeSmallVersionResponse, err error)
- func (c *Client) UpgradeSmallVersionWithContext(ctx context.Context, request *UpgradeSmallVersionRequest) (response *UpgradeSmallVersionResponse, err error)
- func (c *Client) UpgradeVersionToMultiAvailabilityZones(request *UpgradeVersionToMultiAvailabilityZonesRequest) (response *UpgradeVersionToMultiAvailabilityZonesResponse, err error)
- func (c *Client) UpgradeVersionToMultiAvailabilityZonesWithContext(ctx context.Context, request *UpgradeVersionToMultiAvailabilityZonesRequest) (response *UpgradeVersionToMultiAvailabilityZonesResponse, err error)
- type CloneInstancesRequest
- type CloneInstancesRequestParams
- type CloneInstancesResponse
- type CloneInstancesResponseParams
- type CloseSSLRequest
- type CloseSSLRequestParams
- type CloseSSLResponse
- type CloseSSLResponseParams
- type CommandTake
- type CreateInstanceAccountRequest
- type CreateInstanceAccountRequestParams
- type CreateInstanceAccountResponse
- type CreateInstanceAccountResponseParams
- type CreateInstancesRequest
- type CreateInstancesRequestParams
- type CreateInstancesResponse
- type CreateInstancesResponseParams
- type CreateParamTemplateRequest
- type CreateParamTemplateRequestParams
- type CreateParamTemplateResponse
- type CreateParamTemplateResponseParams
- type DelayDistribution
- type DeleteInstanceAccountRequest
- type DeleteInstanceAccountRequestParams
- type DeleteInstanceAccountResponse
- type DeleteInstanceAccountResponseParams
- type DeleteParamTemplateRequest
- type DeleteParamTemplateRequestParams
- type DeleteParamTemplateResponse
- type DeleteParamTemplateResponseParams
- type DescribeAutoBackupConfigRequest
- type DescribeAutoBackupConfigRequestParams
- type DescribeAutoBackupConfigResponse
- type DescribeAutoBackupConfigResponseParams
- type DescribeBackupDownloadRestrictionRequest
- type DescribeBackupDownloadRestrictionRequestParams
- type DescribeBackupDownloadRestrictionResponse
- type DescribeBackupDownloadRestrictionResponseParams
- type DescribeBackupUrlRequest
- type DescribeBackupUrlRequestParams
- type DescribeBackupUrlResponse
- type DescribeBackupUrlResponseParams
- type DescribeBandwidthRangeRequest
- type DescribeBandwidthRangeRequestParams
- type DescribeBandwidthRangeResponse
- type DescribeBandwidthRangeResponseParams
- type DescribeCommonDBInstancesRequest
- type DescribeCommonDBInstancesRequestParams
- type DescribeCommonDBInstancesResponse
- type DescribeCommonDBInstancesResponseParams
- type DescribeDBSecurityGroupsRequest
- type DescribeDBSecurityGroupsRequestParams
- type DescribeDBSecurityGroupsResponse
- type DescribeDBSecurityGroupsResponseParams
- type DescribeInstanceAccountRequest
- type DescribeInstanceAccountRequestParams
- type DescribeInstanceAccountResponse
- type DescribeInstanceAccountResponseParams
- type DescribeInstanceBackupsRequest
- type DescribeInstanceBackupsRequestParams
- type DescribeInstanceBackupsResponse
- type DescribeInstanceBackupsResponseParams
- type DescribeInstanceDTSInfoRequest
- type DescribeInstanceDTSInfoRequestParams
- type DescribeInstanceDTSInfoResponse
- type DescribeInstanceDTSInfoResponseParams
- type DescribeInstanceDTSInstanceInfo
- type DescribeInstanceDealDetailRequest
- type DescribeInstanceDealDetailRequestParams
- type DescribeInstanceDealDetailResponse
- type DescribeInstanceDealDetailResponseParams
- type DescribeInstanceMonitorBigKeyRequest
- type DescribeInstanceMonitorBigKeyRequestParams
- type DescribeInstanceMonitorBigKeyResponse
- type DescribeInstanceMonitorBigKeyResponseParams
- type DescribeInstanceMonitorBigKeySizeDistRequest
- type DescribeInstanceMonitorBigKeySizeDistRequestParams
- type DescribeInstanceMonitorBigKeySizeDistResponse
- type DescribeInstanceMonitorBigKeySizeDistResponseParams
- type DescribeInstanceMonitorBigKeyTypeDistRequest
- type DescribeInstanceMonitorBigKeyTypeDistRequestParams
- type DescribeInstanceMonitorBigKeyTypeDistResponse
- type DescribeInstanceMonitorBigKeyTypeDistResponseParams
- type DescribeInstanceMonitorHotKeyRequest
- type DescribeInstanceMonitorHotKeyRequestParams
- type DescribeInstanceMonitorHotKeyResponse
- type DescribeInstanceMonitorHotKeyResponseParams
- type DescribeInstanceMonitorSIPRequest
- type DescribeInstanceMonitorSIPRequestParams
- type DescribeInstanceMonitorSIPResponse
- type DescribeInstanceMonitorSIPResponseParams
- type DescribeInstanceMonitorTookDistRequest
- type DescribeInstanceMonitorTookDistRequestParams
- type DescribeInstanceMonitorTookDistResponse
- type DescribeInstanceMonitorTookDistResponseParams
- type DescribeInstanceMonitorTopNCmdRequest
- type DescribeInstanceMonitorTopNCmdRequestParams
- type DescribeInstanceMonitorTopNCmdResponse
- type DescribeInstanceMonitorTopNCmdResponseParams
- type DescribeInstanceMonitorTopNCmdTookRequest
- type DescribeInstanceMonitorTopNCmdTookRequestParams
- type DescribeInstanceMonitorTopNCmdTookResponse
- type DescribeInstanceMonitorTopNCmdTookResponseParams
- type DescribeInstanceNodeInfoRequest
- type DescribeInstanceNodeInfoRequestParams
- type DescribeInstanceNodeInfoResponse
- type DescribeInstanceNodeInfoResponseParams
- type DescribeInstanceParamRecordsRequest
- type DescribeInstanceParamRecordsRequestParams
- type DescribeInstanceParamRecordsResponse
- type DescribeInstanceParamRecordsResponseParams
- type DescribeInstanceParamsRequest
- type DescribeInstanceParamsRequestParams
- type DescribeInstanceParamsResponse
- type DescribeInstanceParamsResponseParams
- type DescribeInstanceSecurityGroupRequest
- type DescribeInstanceSecurityGroupRequestParams
- type DescribeInstanceSecurityGroupResponse
- type DescribeInstanceSecurityGroupResponseParams
- type DescribeInstanceShardsRequest
- type DescribeInstanceShardsRequestParams
- type DescribeInstanceShardsResponse
- type DescribeInstanceShardsResponseParams
- type DescribeInstanceZoneInfoRequest
- type DescribeInstanceZoneInfoRequestParams
- type DescribeInstanceZoneInfoResponse
- type DescribeInstanceZoneInfoResponseParams
- type DescribeInstancesRequest
- type DescribeInstancesRequestParams
- type DescribeInstancesResponse
- type DescribeInstancesResponseParams
- type DescribeMaintenanceWindowRequest
- type DescribeMaintenanceWindowRequestParams
- type DescribeMaintenanceWindowResponse
- type DescribeMaintenanceWindowResponseParams
- type DescribeParamTemplateInfoRequest
- type DescribeParamTemplateInfoRequestParams
- type DescribeParamTemplateInfoResponse
- type DescribeParamTemplateInfoResponseParams
- type DescribeParamTemplatesRequest
- type DescribeParamTemplatesRequestParams
- type DescribeParamTemplatesResponse
- type DescribeParamTemplatesResponseParams
- type DescribeProductInfoRequest
- type DescribeProductInfoRequestParams
- type DescribeProductInfoResponse
- type DescribeProductInfoResponseParams
- type DescribeProjectSecurityGroupRequest
- type DescribeProjectSecurityGroupRequestParams
- type DescribeProjectSecurityGroupResponse
- type DescribeProjectSecurityGroupResponseParams
- type DescribeProjectSecurityGroupsRequest
- type DescribeProjectSecurityGroupsRequestParams
- type DescribeProjectSecurityGroupsResponse
- type DescribeProjectSecurityGroupsResponseParams
- type DescribeProxySlowLogRequest
- type DescribeProxySlowLogRequestParams
- type DescribeProxySlowLogResponse
- type DescribeProxySlowLogResponseParams
- type DescribeReplicationGroupRequest
- type DescribeReplicationGroupRequestParams
- type DescribeReplicationGroupResponse
- type DescribeReplicationGroupResponseParams
- type DescribeSSLStatusRequest
- type DescribeSSLStatusRequestParams
- type DescribeSSLStatusResponse
- type DescribeSSLStatusResponseParams
- type DescribeSlowLogRequest
- type DescribeSlowLogRequestParams
- type DescribeSlowLogResponse
- type DescribeSlowLogResponseParams
- type DescribeTaskInfoRequest
- type DescribeTaskInfoRequestParams
- type DescribeTaskInfoResponse
- type DescribeTaskInfoResponseParams
- type DescribeTaskListRequest
- type DescribeTaskListRequestParams
- type DescribeTaskListResponse
- type DescribeTaskListResponseParams
- type DescribeTendisSlowLogRequest
- type DescribeTendisSlowLogRequestParams
- type DescribeTendisSlowLogResponse
- type DescribeTendisSlowLogResponseParams
- type DestroyPostpaidInstanceRequest
- type DestroyPostpaidInstanceRequestParams
- type DestroyPostpaidInstanceResponse
- type DestroyPostpaidInstanceResponseParams
- type DestroyPrepaidInstanceRequest
- type DestroyPrepaidInstanceRequestParams
- type DestroyPrepaidInstanceResponse
- type DestroyPrepaidInstanceResponseParams
- type DisableReplicaReadonlyRequest
- type DisableReplicaReadonlyRequestParams
- type DisableReplicaReadonlyResponse
- type DisableReplicaReadonlyResponseParams
- type DisassociateSecurityGroupsRequest
- type DisassociateSecurityGroupsRequestParams
- type DisassociateSecurityGroupsResponse
- type DisassociateSecurityGroupsResponseParams
- type EnableReplicaReadonlyRequest
- type EnableReplicaReadonlyRequestParams
- type EnableReplicaReadonlyResponse
- type EnableReplicaReadonlyResponseParams
- type Groups
- type HotKeyInfo
- type Inbound
- type InquiryPriceCreateInstanceRequest
- type InquiryPriceCreateInstanceRequestParams
- type InquiryPriceCreateInstanceResponse
- type InquiryPriceCreateInstanceResponseParams
- type InquiryPriceUpgradeInstanceRequest
- type InquiryPriceUpgradeInstanceRequestParams
- type InquiryPriceUpgradeInstanceResponse
- type InquiryPriceUpgradeInstanceResponseParams
- type InstanceClusterNode
- type InstanceClusterShard
- type InstanceEnumParam
- type InstanceIntegerParam
- type InstanceMultiParam
- type InstanceNode
- type InstanceParam
- type InstanceParamHistory
- type InstanceProxySlowlogDetail
- type InstanceSecurityGroupDetail
- type InstanceSet
- type InstanceSlowlogDetail
- type InstanceTagInfo
- type InstanceTextParam
- type Instances
- type KillMasterGroupRequest
- type KillMasterGroupRequestParams
- type KillMasterGroupResponse
- type KillMasterGroupResponseParams
- type ManualBackupInstanceRequest
- type ManualBackupInstanceRequestParams
- type ManualBackupInstanceResponse
- type ManualBackupInstanceResponseParams
- type ModfiyInstancePasswordRequest
- type ModfiyInstancePasswordRequestParams
- type ModfiyInstancePasswordResponse
- type ModfiyInstancePasswordResponseParams
- type ModifyAutoBackupConfigRequest
- type ModifyAutoBackupConfigRequestParams
- type ModifyAutoBackupConfigResponse
- type ModifyAutoBackupConfigResponseParams
- type ModifyBackupDownloadRestrictionRequest
- type ModifyBackupDownloadRestrictionRequestParams
- type ModifyBackupDownloadRestrictionResponse
- type ModifyBackupDownloadRestrictionResponseParams
- type ModifyDBInstanceSecurityGroupsRequest
- type ModifyDBInstanceSecurityGroupsRequestParams
- type ModifyDBInstanceSecurityGroupsResponse
- type ModifyDBInstanceSecurityGroupsResponseParams
- type ModifyInstanceAccountRequest
- type ModifyInstanceAccountRequestParams
- type ModifyInstanceAccountResponse
- type ModifyInstanceAccountResponseParams
- type ModifyInstanceParamsRequest
- type ModifyInstanceParamsRequestParams
- type ModifyInstanceParamsResponse
- type ModifyInstanceParamsResponseParams
- type ModifyInstanceReadOnlyRequest
- type ModifyInstanceReadOnlyRequestParams
- type ModifyInstanceReadOnlyResponse
- type ModifyInstanceReadOnlyResponseParams
- type ModifyInstanceRequest
- type ModifyInstanceRequestParams
- type ModifyInstanceResponse
- type ModifyInstanceResponseParams
- type ModifyMaintenanceWindowRequest
- type ModifyMaintenanceWindowRequestParams
- type ModifyMaintenanceWindowResponse
- type ModifyMaintenanceWindowResponseParams
- type ModifyNetworkConfigRequest
- type ModifyNetworkConfigRequestParams
- type ModifyNetworkConfigResponse
- type ModifyNetworkConfigResponseParams
- type ModifyParamTemplateRequest
- type ModifyParamTemplateRequestParams
- type ModifyParamTemplateResponse
- type ModifyParamTemplateResponseParams
- type OpenSSLRequest
- type OpenSSLRequestParams
- type OpenSSLResponse
- type OpenSSLResponseParams
- type Outbound
- type ParamTemplateInfo
- type ParameterDetail
- type ProductConf
- type ProxyNodes
- type RedisBackupSet
- type RedisCommonInstanceList
- type RedisNode
- type RedisNodeInfo
- type RedisNodes
- type RegionConf
- type ReleaseWanAddressRequest
- type ReleaseWanAddressRequestParams
- type ReleaseWanAddressResponse
- type ReleaseWanAddressResponseParams
- type RemoveReplicationInstanceRequest
- type RemoveReplicationInstanceRequestParams
- type RemoveReplicationInstanceResponse
- type RemoveReplicationInstanceResponseParams
- type RenewInstanceRequest
- type RenewInstanceRequestParams
- type RenewInstanceResponse
- type RenewInstanceResponseParams
- type ReplicaGroup
- type ResetPasswordRequest
- type ResetPasswordRequestParams
- type ResetPasswordResponse
- type ResetPasswordResponseParams
- type ResourceTag
- type RestoreInstanceRequest
- type RestoreInstanceRequestParams
- type RestoreInstanceResponse
- type RestoreInstanceResponseParams
- type SecurityGroup
- type SecurityGroupDetail
- type SecurityGroupsInboundAndOutbound
- type SourceCommand
- type SourceInfo
- type StartupInstanceRequest
- type StartupInstanceRequestParams
- type StartupInstanceResponse
- type StartupInstanceResponseParams
- type SwitchInstanceVipRequest
- type SwitchInstanceVipRequestParams
- type SwitchInstanceVipResponse
- type SwitchInstanceVipResponseParams
- type SwitchProxyRequest
- type SwitchProxyRequestParams
- type SwitchProxyResponse
- type SwitchProxyResponseParams
- type TaskInfoDetail
- type TendisNodes
- type TendisSlowLogDetail
- type TradeDealDetail
- type UpgradeInstanceRequest
- type UpgradeInstanceRequestParams
- type UpgradeInstanceResponse
- type UpgradeInstanceResponseParams
- type UpgradeInstanceVersionRequest
- type UpgradeInstanceVersionRequestParams
- type UpgradeInstanceVersionResponse
- type UpgradeInstanceVersionResponseParams
- type UpgradeProxyVersionRequest
- type UpgradeProxyVersionRequestParams
- type UpgradeProxyVersionResponse
- type UpgradeProxyVersionResponseParams
- type UpgradeSmallVersionRequest
- type UpgradeSmallVersionRequestParams
- type UpgradeSmallVersionResponse
- type UpgradeSmallVersionResponseParams
- type UpgradeVersionToMultiAvailabilityZonesRequest
- type UpgradeVersionToMultiAvailabilityZonesRequestParams
- type UpgradeVersionToMultiAvailabilityZonesResponse
- type UpgradeVersionToMultiAvailabilityZonesResponseParams
- type ZoneCapacityConf
Constants ¶
const ( // CAM signature/authentication error. AUTHFAILURE = "AuthFailure" // Invalid authorization. AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" // Failed to add the security group information of the instance. FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" // Failed to associate the security group. FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" // Failed to clear the security group information of the instance. FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" // Failed to submit the task. FAILEDOPERATION_COMMITFLOWERROR = "FailedOperation.CommitFlowError" // Failed to unbind the security group. FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" // This operation is not allowed under the current DTS status. FAILEDOPERATION_DTSSTATUSABNORMAL = "FailedOperation.DtsStatusAbnormal" // No process exists. FAILEDOPERATION_FLOWNOTEXISTS = "FailedOperation.FlowNotExists" // Failed to query the security group details. Try again later. FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed" // Payment failed. FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" // No exact description for this error code for the time being. FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed" // Failed to set the rule. FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" // Internal system error, which is irrelevant to the business. FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" // The instance does not support this API. FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" // Invalid data is entered for weekday. FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" // Failed to update the security group information of the instance. FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" // Failed to update the security group. FAILEDOPERATION_UPDATESECURITYGROUPSFAILED = "FailedOperation.UpdateSecurityGroupsFailed" // Internal error. INTERNALERROR = "InternalError" // A CAM authentication error occurred. INTERNALERROR_CAMAUTHOSSRESPONSERETURNCODEERROR = "InternalError.CamAuthOssResponseReturnCodeError" // Internal system error with the database operation, which may be update, insert, select, etc. INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" // Failed to execute the HTTP request. Try again later. INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" // You do not have the operation permission. INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" // Internal error. INTERNALERROR_INTERNALERROR = "InternalError.InternalError" // An error occurred while obtaining the list of instances. Try again later. INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" // A network error occurred. INTERNALERROR_NETWORKERR = "InternalError.NetWorkErr" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // The corresponding API was not found. INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" // The parameter is empty. INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" // Invalid parameter. INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" // The security groups of the instance exceeds the limit. INVALIDPARAMETER_INSTANCESGOVERLIMITERROR = "InvalidParameter.InstanceSGOverLimitError" // Invalid service parameter. INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" // The instance is not in a VPC. INVALIDPARAMETER_ISNOTVPCINSTANCE = "InvalidParameter.IsNotVpcInstance" // The operation is unsupported due to incorrect parameters. INVALIDPARAMETER_NOTSUPPORTED = "InvalidParameter.NotSupported" // Only VPCs are provided in the Shanghai Finance AZ. INVALIDPARAMETER_ONLYVPCONSPECZONEID = "InvalidParameter.OnlyVPCOnSpecZoneId" // The time format or time range is invalid. INVALIDPARAMETER_PERIOD = "InvalidParameter.Period" // The API has no CAM permissions. INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" // Incorrect parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // The backup does not exist. INVALIDPARAMETERVALUE_BACKUPNOTEXISTS = "InvalidParameterValue.BackupNotExists" // The instance is not in a VPC. INVALIDPARAMETERVALUE_BASENETWORKACCESSDENY = "InvalidParameterValue.BaseNetWorkAccessDeny" // Business verification failed INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" // The type of instances requested for purchase is incorrect (TypeId - 1: Cluster Edition; 2: Master-Replica Edition, i.e., the legacy Master-Replica Edition). INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEID = "InvalidParameterValue.InvalidInstanceTypeId" // The `vpcid` or subnet ID in the VPC is invalid. INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" // The requested capacity is out of the purchasable capacity range. INVALIDPARAMETERVALUE_MEMSIZENOTINRANGE = "InvalidParameterValue.MemSizeNotInRange" // The password is empty. INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" // Password verification error due to incorrect password. INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" // Tencent internal accounts are not allowed to use password-free instances. INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" // When the password is set, the old password passed in by MC does not match the previously set password. INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" // The request capacity is too small. Capacity reduction is not supported. INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" // The global replication group doesn’t exist. INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" // The request parameter or security group ID is incorrect. INVALIDPARAMETERVALUE_SECURITYGROUPIDSNOTEXISTS = "InvalidParameterValue.SecurityGroupIdsNotExists" // The instance specification doesn’t exist. INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" // The instance type is not supported. INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" // The `uniqVpcId` or subnet ID in the VPC is invalid. INVALIDPARAMETERVALUE_UNVPCIDNOTEXISTS = "InvalidParameterValue.UnVpcIdNotExists" // Invalid data is entered for `weekday`. INVALIDPARAMETERVALUE_WEEKDAYSISINVALID = "InvalidParameterValue.WeekDaysIsInvalid" // The quota limit has been reached. LIMITEXCEEDED = "LimitExceeded" // The requested capacity is out of the purchasable specification range (`memSize` should be an integer multiple of 1,024 in MB). LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" // The number of instances requested for purchase at a time is out of the purchasable quantity range. LIMITEXCEEDED_INVALIDPARAMETERGOODSNUMNOTINRANGE = "LimitExceeded.InvalidParameterGoodsNumNotInRange" // The requested capacity is out of the purchasable capacity range. LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange" // The requested length of purchase is more than three years and exceeds the maximum value. LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = "LimitExceeded.PeriodExceedMaxLimit" // The length of purchase is invalid. It must be at least one month. LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" // The quantity of requested TencentDB for Redis instances falls out of the limit range. LIMITEXCEEDED_REACHTHEAMOUNTLIMIT = "LimitExceeded.ReachTheAmountLimit" // Replication group locked LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" // The instance is locked by another process. RESOURCEINUSE_INSTANCEBEENLOCKED = "ResourceInUse.InstanceBeenLocked" // The resource is insufficient. RESOURCEINSUFFICIENT = "ResourceInsufficient" // The resource doesn’t exist. RESOURCENOTFOUND = "ResourceNotFound" // The UIN value is empty. RESOURCENOTFOUND_ACCOUNTDOESNOTEXISTS = "ResourceNotFound.AccountDoesNotExists" // No Redis instance is found by the serialId. RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" // The instance was not found. RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" // The request order number does not exist. RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" // The backup has been locked by another task, and the operation cannot be performed temporarily. RESOURCEUNAVAILABLE_BACKUPLOCKEDERROR = "ResourceUnavailable.BackupLockedError" // Backup status exception. The operation cannot be performed temporarily. The backup may have expired or been deleted. RESOURCEUNAVAILABLE_BACKUPSTATUSABNORMAL = "ResourceUnavailable.BackupStatusAbnormal" // Backup is not supported when the instance is not in the “Running” status. RESOURCEUNAVAILABLE_BACKUPSTATUSINVALID = "ResourceUnavailable.BackupStatusInvalid" // Failed to call the backend API. RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" // Failed to get the security group information. RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" // An instance configuration error occurred. RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError" // The instance has already been repossessed. RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" // The instance has expired. RESOURCEUNAVAILABLE_INSTANCEISOLATED = "ResourceUnavailable.InstanceIsolated" // Redis has been locked by another process. RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" // The order does not exist. RESOURCEUNAVAILABLE_INSTANCENODEAL = "ResourceUnavailable.InstanceNoDeal" // Instances in this status do not support the operation. RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTOPERATION = "ResourceUnavailable.InstanceNotSupportOperation" // Instance status error. RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" // The Redis status is exceptional, and the corresponding process cannot be executed. RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" // Operation unsupported: the instance is exceptional. RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" // The instance has been locked by another process. RESOURCEUNAVAILABLE_INSTANCEUNLOCKEDERROR = "ResourceUnavailable.InstanceUnLockedError" // The IP resources in the VPC are insufficient. RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = "ResourceUnavailable.NoEnoughVipInVPC" // The requested region currently does not provide the Redis service. RESOURCEUNAVAILABLE_NOREDISSERVICE = "ResourceUnavailable.NoRedisService" // The requested `zoneId` doesn’t provide Redis service. RESOURCEUNAVAILABLE_NOSERVICEAVAILABLEFORTHISZONEID = "ResourceUnavailable.NoServiceAvailableForThisZoneId" // The requested region currently does not provide the requested type of Redis service. RESOURCEUNAVAILABLE_NOTYPEIDREDISSERVICE = "ResourceUnavailable.NoTypeIdRedisService" // Resources of the specified type in the region are sold out. RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" // The product has not been connected to any security group. RESOURCEUNAVAILABLE_SECURITYGROUPNOTSUPPORTED = "ResourceUnavailable.SecurityGroupNotSupported" // The operation is unauthorized. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // No CAM permissions. UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" // The user is not in the allowlist. UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" // The operation is not supported. UNSUPPORTEDOPERATION = "UnsupportedOperation" // The Redis cluster edition is not allowed to connect to a security group. UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" // Inspecting replication group UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" // Unsupported operation UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" // There is an error with the auto-renewal flag. UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError" // The instance version is too low. UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion" // Only Cluster Edition instances support backup exporting. UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = "UnsupportedOperation.OnlyClusterInstanceCanExportBackup" )
const APIVersion = "2018-04-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // Instance ID // Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Account name // Note: This field may return null, indicating that no valid values can be obtained. AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // Account description information // Note: This field may return null, indicating that no valid values can be obtained. Remark *string `json:"Remark,omitempty" name:"Remark"` // Read/write permission policy. Valid values: `r` (read-only), `w` (write-only), `rw` (read/write). // Note: This field may return null, indicating that no valid values can be obtained. Privilege *string `json:"Privilege,omitempty" name:"Privilege"` // Read-only routing policy. Valid values: `master` (master node), `replication` (replica node). // Note: This field may return null, indicating that no valid values can be obtained. ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` // Sub-account status. Valid values: `1` (being changed), `2` (valid). `4` (deleted). // Note: This field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitempty" name:"Status"` }
type AllocateWanAddressRequest ¶
type AllocateWanAddressRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewAllocateWanAddressRequest ¶
func NewAllocateWanAddressRequest() (request *AllocateWanAddressRequest)
func (*AllocateWanAddressRequest) FromJsonString ¶
func (r *AllocateWanAddressRequest) 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 (*AllocateWanAddressRequest) ToJsonString ¶
func (r *AllocateWanAddressRequest) ToJsonString() string
type AllocateWanAddressRequestParams ¶
type AllocateWanAddressRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type AllocateWanAddressResponse ¶
type AllocateWanAddressResponse struct { *tchttp.BaseResponse Response *AllocateWanAddressResponseParams `json:"Response"` }
func NewAllocateWanAddressResponse ¶
func NewAllocateWanAddressResponse() (response *AllocateWanAddressResponse)
func (*AllocateWanAddressResponse) FromJsonString ¶
func (r *AllocateWanAddressResponse) 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 (*AllocateWanAddressResponse) ToJsonString ¶
func (r *AllocateWanAddressResponse) ToJsonString() string
type AllocateWanAddressResponseParams ¶
type AllocateWanAddressResponseParams struct { // Async task ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Status of enabling public network access WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ApplyParamsTemplateRequest ¶
type ApplyParamsTemplateRequest struct { *tchttp.BaseRequest // List of instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // ID of the parameter template to be applied TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewApplyParamsTemplateRequest ¶
func NewApplyParamsTemplateRequest() (request *ApplyParamsTemplateRequest)
func (*ApplyParamsTemplateRequest) FromJsonString ¶
func (r *ApplyParamsTemplateRequest) 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 (*ApplyParamsTemplateRequest) ToJsonString ¶
func (r *ApplyParamsTemplateRequest) ToJsonString() string
type ApplyParamsTemplateRequestParams ¶
type ApplyParamsTemplateRequestParams struct { // List of instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // ID of the parameter template to be applied TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
Predefined struct for user
type ApplyParamsTemplateResponse ¶
type ApplyParamsTemplateResponse struct { *tchttp.BaseResponse Response *ApplyParamsTemplateResponseParams `json:"Response"` }
func NewApplyParamsTemplateResponse ¶
func NewApplyParamsTemplateResponse() (response *ApplyParamsTemplateResponse)
func (*ApplyParamsTemplateResponse) FromJsonString ¶
func (r *ApplyParamsTemplateResponse) 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 (*ApplyParamsTemplateResponse) ToJsonString ¶
func (r *ApplyParamsTemplateResponse) ToJsonString() string
type ApplyParamsTemplateResponseParams ¶
type ApplyParamsTemplateResponseParams struct { // Task ID TaskIds []*int64 `json:"TaskIds,omitempty" name:"TaskIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AssociateSecurityGroupsRequest ¶
type AssociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // ID of the security group to be associated in the format of sg-efil73jd. SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // ID(s) of the instance(s) to be associated in the format of ins-lesecurk. You can specify multiple instances. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAssociateSecurityGroupsRequest ¶
func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest)
func (*AssociateSecurityGroupsRequest) FromJsonString ¶
func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateSecurityGroupsRequest) ToJsonString ¶
func (r *AssociateSecurityGroupsRequest) ToJsonString() string
type AssociateSecurityGroupsRequestParams ¶
type AssociateSecurityGroupsRequestParams struct { // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // ID of the security group to be associated in the format of sg-efil73jd. SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // ID(s) of the instance(s) to be associated in the format of ins-lesecurk. You can specify multiple instances. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type AssociateSecurityGroupsResponse ¶
type AssociateSecurityGroupsResponse struct { *tchttp.BaseResponse Response *AssociateSecurityGroupsResponseParams `json:"Response"` }
func NewAssociateSecurityGroupsResponse ¶
func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse)
func (*AssociateSecurityGroupsResponse) FromJsonString ¶
func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateSecurityGroupsResponse) ToJsonString ¶
func (r *AssociateSecurityGroupsResponse) ToJsonString() string
type AssociateSecurityGroupsResponseParams ¶
type AssociateSecurityGroupsResponseParams 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"` }
Predefined struct for user
type BackupDownloadInfo ¶
type BackupDownloadInfo struct { // Backup file name FileName *string `json:"FileName,omitempty" name:"FileName"` // Backup file size in bytes. If the parameter value is `0`, the backup file size is unknown. FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"` // Address (valid for six hours) used to download the backup file over the public network DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"` // Address (valid for six hours) used to download the backup file over the private network InnerDownloadUrl *string `json:"InnerDownloadUrl,omitempty" name:"InnerDownloadUrl"` }
type BackupLimitVpcItem ¶
type BackupLimitVpcItem struct { // The region of the VPC that corresponds to the download address of the backup file Region *string `json:"Region,omitempty" name:"Region"` // The list of VPCs that correspond to the download addresses of the backup files VpcList []*string `json:"VpcList,omitempty" name:"VpcList"` }
type BigKeyInfo ¶
type BigKeyInfo struct { // Database DB *int64 `json:"DB,omitempty" name:"DB"` // Big key Key *string `json:"Key,omitempty" name:"Key"` // Type Type *string `json:"Type,omitempty" name:"Type"` // Size Size *int64 `json:"Size,omitempty" name:"Size"` // Data timestamp Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"` }
type BigKeyTypeInfo ¶
type ChangeInstanceRoleRequest ¶
type ChangeInstanceRoleRequest struct { *tchttp.BaseRequest // Replication group ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance role. Valid values: `rw` (read-write), `r`( read-only). InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` }
func NewChangeInstanceRoleRequest ¶
func NewChangeInstanceRoleRequest() (request *ChangeInstanceRoleRequest)
func (*ChangeInstanceRoleRequest) FromJsonString ¶
func (r *ChangeInstanceRoleRequest) 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 (*ChangeInstanceRoleRequest) ToJsonString ¶
func (r *ChangeInstanceRoleRequest) ToJsonString() string
type ChangeInstanceRoleRequestParams ¶
type ChangeInstanceRoleRequestParams struct { // Replication group ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance role. Valid values: `rw` (read-write), `r`( read-only). InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` }
Predefined struct for user
type ChangeInstanceRoleResponse ¶
type ChangeInstanceRoleResponse struct { *tchttp.BaseResponse Response *ChangeInstanceRoleResponseParams `json:"Response"` }
func NewChangeInstanceRoleResponse ¶
func NewChangeInstanceRoleResponse() (response *ChangeInstanceRoleResponse)
func (*ChangeInstanceRoleResponse) FromJsonString ¶
func (r *ChangeInstanceRoleResponse) 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 (*ChangeInstanceRoleResponse) ToJsonString ¶
func (r *ChangeInstanceRoleResponse) ToJsonString() string
type ChangeInstanceRoleResponseParams ¶
type ChangeInstanceRoleResponseParams struct { // Async task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ChangeMasterInstanceRequest ¶
type ChangeMasterInstanceRequest struct { *tchttp.BaseRequest // Replication group ID, such as `crs-rpl-m3zt****`. It is the unique identifier automatically assigned by the system when creating a replication group. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get it in the global replication list. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // ID of the read-only instance to be promoted to the master instance, such as `crs-xjhsdj****`. Log in to the the [TencentDB for Redis console](https://console.cloud.tencent.com/redis), and copy it in the instance list. // InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to promote the read-only instance to the master instance forcibly. Valid values: // - `true`: Yes // - `false`: No ForceSwitch *bool `json:"ForceSwitch,omitempty" name:"ForceSwitch"` }
func NewChangeMasterInstanceRequest ¶
func NewChangeMasterInstanceRequest() (request *ChangeMasterInstanceRequest)
func (*ChangeMasterInstanceRequest) FromJsonString ¶
func (r *ChangeMasterInstanceRequest) 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 (*ChangeMasterInstanceRequest) ToJsonString ¶
func (r *ChangeMasterInstanceRequest) ToJsonString() string
type ChangeMasterInstanceRequestParams ¶
type ChangeMasterInstanceRequestParams struct { // Replication group ID, such as `crs-rpl-m3zt****`. It is the unique identifier automatically assigned by the system when creating a replication group. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get it in the global replication list. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // ID of the read-only instance to be promoted to the master instance, such as `crs-xjhsdj****`. Log in to the the [TencentDB for Redis console](https://console.cloud.tencent.com/redis), and copy it in the instance list. // InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to promote the read-only instance to the master instance forcibly. Valid values: // - `true`: Yes // - `false`: No ForceSwitch *bool `json:"ForceSwitch,omitempty" name:"ForceSwitch"` }
Predefined struct for user
type ChangeMasterInstanceResponse ¶
type ChangeMasterInstanceResponse struct { *tchttp.BaseResponse Response *ChangeMasterInstanceResponseParams `json:"Response"` }
func NewChangeMasterInstanceResponse ¶
func NewChangeMasterInstanceResponse() (response *ChangeMasterInstanceResponse)
func (*ChangeMasterInstanceResponse) FromJsonString ¶
func (r *ChangeMasterInstanceResponse) 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 (*ChangeMasterInstanceResponse) ToJsonString ¶
func (r *ChangeMasterInstanceResponse) ToJsonString() string
type ChangeMasterInstanceResponseParams ¶
type ChangeMasterInstanceResponseParams struct { // Async task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ChangeReplicaToMasterRequest ¶
type ChangeReplicaToMasterRequest struct { *tchttp.BaseRequest // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of the replica node group. You can get more ID information of the multi-AZ replica node group though the [DescribeInstanceZoneInfo](https://intl.cloud.tencent.com/document/product/239/50312?from_cn_redirect=1) API. This parameter is not required for a single-AZ replica node group. GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` }
func NewChangeReplicaToMasterRequest ¶
func NewChangeReplicaToMasterRequest() (request *ChangeReplicaToMasterRequest)
func (*ChangeReplicaToMasterRequest) FromJsonString ¶
func (r *ChangeReplicaToMasterRequest) 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 (*ChangeReplicaToMasterRequest) ToJsonString ¶
func (r *ChangeReplicaToMasterRequest) ToJsonString() string
type ChangeReplicaToMasterRequestParams ¶
type ChangeReplicaToMasterRequestParams struct { // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of the replica node group. You can get more ID information of the multi-AZ replica node group though the [DescribeInstanceZoneInfo](https://intl.cloud.tencent.com/document/product/239/50312?from_cn_redirect=1) API. This parameter is not required for a single-AZ replica node group. GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` }
Predefined struct for user
type ChangeReplicaToMasterResponse ¶
type ChangeReplicaToMasterResponse struct { *tchttp.BaseResponse Response *ChangeReplicaToMasterResponseParams `json:"Response"` }
func NewChangeReplicaToMasterResponse ¶
func NewChangeReplicaToMasterResponse() (response *ChangeReplicaToMasterResponse)
func (*ChangeReplicaToMasterResponse) FromJsonString ¶
func (r *ChangeReplicaToMasterResponse) 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 (*ChangeReplicaToMasterResponse) ToJsonString ¶
func (r *ChangeReplicaToMasterResponse) ToJsonString() string
type ChangeReplicaToMasterResponseParams ¶
type ChangeReplicaToMasterResponseParams struct { // Async task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CleanUpInstanceRequest ¶
type CleanUpInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewCleanUpInstanceRequest ¶
func NewCleanUpInstanceRequest() (request *CleanUpInstanceRequest)
func (*CleanUpInstanceRequest) FromJsonString ¶
func (r *CleanUpInstanceRequest) 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 (*CleanUpInstanceRequest) ToJsonString ¶
func (r *CleanUpInstanceRequest) ToJsonString() string
type CleanUpInstanceRequestParams ¶
type CleanUpInstanceRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type CleanUpInstanceResponse ¶
type CleanUpInstanceResponse struct { *tchttp.BaseResponse Response *CleanUpInstanceResponseParams `json:"Response"` }
func NewCleanUpInstanceResponse ¶
func NewCleanUpInstanceResponse() (response *CleanUpInstanceResponse)
func (*CleanUpInstanceResponse) FromJsonString ¶
func (r *CleanUpInstanceResponse) 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 (*CleanUpInstanceResponse) ToJsonString ¶
func (r *CleanUpInstanceResponse) ToJsonString() string
type CleanUpInstanceResponseParams ¶
type CleanUpInstanceResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ClearInstanceRequest ¶
type ClearInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Redis instance password (this parameter is required for password-enabled instances but not for password-free instances) Password *string `json:"Password,omitempty" name:"Password"` }
func NewClearInstanceRequest ¶
func NewClearInstanceRequest() (request *ClearInstanceRequest)
func (*ClearInstanceRequest) FromJsonString ¶
func (r *ClearInstanceRequest) 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 (*ClearInstanceRequest) ToJsonString ¶
func (r *ClearInstanceRequest) ToJsonString() string
type ClearInstanceRequestParams ¶
type ClearInstanceRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Redis instance password (this parameter is required for password-enabled instances but not for password-free instances) Password *string `json:"Password,omitempty" name:"Password"` }
Predefined struct for user
type ClearInstanceResponse ¶
type ClearInstanceResponse struct { *tchttp.BaseResponse Response *ClearInstanceResponseParams `json:"Response"` }
func NewClearInstanceResponse ¶
func NewClearInstanceResponse() (response *ClearInstanceResponse)
func (*ClearInstanceResponse) FromJsonString ¶
func (r *ClearInstanceResponse) 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 (*ClearInstanceResponse) ToJsonString ¶
func (r *ClearInstanceResponse) ToJsonString() string
type ClearInstanceResponseParams ¶
type ClearInstanceResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AllocateWanAddress ¶
func (c *Client) AllocateWanAddress(request *AllocateWanAddressRequest) (response *AllocateWanAddressResponse, err error)
AllocateWanAddress This API is used to enable public network access.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_ISNOTVPCINSTANCE = "InvalidParameter.IsNotVpcInstance" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCEUNLOCKEDERROR = "ResourceUnavailable.InstanceUnLockedError"
func (*Client) AllocateWanAddressWithContext ¶
func (c *Client) AllocateWanAddressWithContext(ctx context.Context, request *AllocateWanAddressRequest) (response *AllocateWanAddressResponse, err error)
AllocateWanAddress This API is used to enable public network access.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_ISNOTVPCINSTANCE = "InvalidParameter.IsNotVpcInstance" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCEUNLOCKEDERROR = "ResourceUnavailable.InstanceUnLockedError"
func (*Client) ApplyParamsTemplate ¶
func (c *Client) ApplyParamsTemplate(request *ApplyParamsTemplateRequest) (response *ApplyParamsTemplateResponse, err error)
ApplyParamsTemplate This API is used to apply a parameter template to instances.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ApplyParamsTemplateWithContext ¶
func (c *Client) ApplyParamsTemplateWithContext(ctx context.Context, request *ApplyParamsTemplateRequest) (response *ApplyParamsTemplateResponse, err error)
ApplyParamsTemplate This API is used to apply a parameter template to instances.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) AssociateSecurityGroups ¶
func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API is used to bind a security group to instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_UPDATESECURITYGROUPSFAILED = "FailedOperation.UpdateSecurityGroupsFailed" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) AssociateSecurityGroupsWithContext ¶
func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)
AssociateSecurityGroups This API is used to bind a security group to instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_UPDATESECURITYGROUPSFAILED = "FailedOperation.UpdateSecurityGroupsFailed" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) ChangeInstanceRole ¶
func (c *Client) ChangeInstanceRole(request *ChangeInstanceRoleRequest) (response *ChangeInstanceRoleResponse, err error)
ChangeInstanceRole This API is used to modify the role of an instance in a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) ChangeInstanceRoleWithContext ¶
func (c *Client) ChangeInstanceRoleWithContext(ctx context.Context, request *ChangeInstanceRoleRequest) (response *ChangeInstanceRoleResponse, err error)
ChangeInstanceRole This API is used to modify the role of an instance in a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) ChangeMasterInstance ¶
func (c *Client) ChangeMasterInstance(request *ChangeMasterInstanceRequest) (response *ChangeMasterInstanceResponse, err error)
ChangeMasterInstance This API is used to set a read-only instance in a replication group as a master instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) ChangeMasterInstanceWithContext ¶
func (c *Client) ChangeMasterInstanceWithContext(ctx context.Context, request *ChangeMasterInstanceRequest) (response *ChangeMasterInstanceResponse, err error)
ChangeMasterInstance This API is used to set a read-only instance in a replication group as a master instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) ChangeReplicaToMaster ¶
func (c *Client) ChangeReplicaToMaster(request *ChangeReplicaToMasterRequest) (response *ChangeReplicaToMasterResponse, err error)
ChangeReplicaToMaster This API is used to promote a replica node group to a master node group or a replica node to a master node for an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) ChangeReplicaToMasterWithContext ¶
func (c *Client) ChangeReplicaToMasterWithContext(ctx context.Context, request *ChangeReplicaToMasterRequest) (response *ChangeReplicaToMasterResponse, err error)
ChangeReplicaToMaster This API is used to promote a replica node group to a master node group or a replica node to a master node for an instance.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) CleanUpInstance ¶
func (c *Client) CleanUpInstance(request *CleanUpInstanceRequest) (response *CleanUpInstanceResponse, err error)
CleanUpInstance This API is used to eliminate an instance in the recycle bin immediately.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) CleanUpInstanceWithContext ¶
func (c *Client) CleanUpInstanceWithContext(ctx context.Context, request *CleanUpInstanceRequest) (response *CleanUpInstanceResponse, err error)
CleanUpInstance This API is used to eliminate an instance in the recycle bin immediately.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) ClearInstance ¶
func (c *Client) ClearInstance(request *ClearInstanceRequest) (response *ClearInstanceResponse, err error)
ClearInstance This API is used to clear the data of a Redis instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ClearInstanceWithContext ¶
func (c *Client) ClearInstanceWithContext(ctx context.Context, request *ClearInstanceRequest) (response *ClearInstanceResponse, err error)
ClearInstance This API is used to clear the data of a Redis instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) CloneInstances ¶
func (c *Client) CloneInstances(request *CloneInstancesRequest) (response *CloneInstancesResponse, err error)
CloneInstances This API is used to clone a complete new instance based on the current instance backup file.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_ONLYVPCONSPECZONEID = "InvalidParameter.OnlyVPCOnSpecZoneId" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BASENETWORKACCESSDENY = "InvalidParameterValue.BaseNetWorkAccessDeny" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEID = "InvalidParameterValue.InvalidInstanceTypeId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" INVALIDPARAMETERVALUE_SECURITYGROUPIDSNOTEXISTS = "InvalidParameterValue.SecurityGroupIdsNotExists" INVALIDPARAMETERVALUE_UNVPCIDNOTEXISTS = "InvalidParameterValue.UnVpcIdNotExists" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" LIMITEXCEEDED_INVALIDPARAMETERGOODSNUMNOTINRANGE = "LimitExceeded.InvalidParameterGoodsNumNotInRange" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" LIMITEXCEEDED_REACHTHEAMOUNTLIMIT = "LimitExceeded.ReachTheAmountLimit" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_ACCOUNTDOESNOTEXISTS = "ResourceNotFound.AccountDoesNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = "ResourceUnavailable.NoEnoughVipInVPC" RESOURCEUNAVAILABLE_NOREDISSERVICE = "ResourceUnavailable.NoRedisService" RESOURCEUNAVAILABLE_NOSERVICEAVAILABLEFORTHISZONEID = "ResourceUnavailable.NoServiceAvailableForThisZoneId" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CloneInstancesWithContext ¶
func (c *Client) CloneInstancesWithContext(ctx context.Context, request *CloneInstancesRequest) (response *CloneInstancesResponse, err error)
CloneInstances This API is used to clone a complete new instance based on the current instance backup file.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_ONLYVPCONSPECZONEID = "InvalidParameter.OnlyVPCOnSpecZoneId" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BASENETWORKACCESSDENY = "InvalidParameterValue.BaseNetWorkAccessDeny" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEID = "InvalidParameterValue.InvalidInstanceTypeId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" INVALIDPARAMETERVALUE_SECURITYGROUPIDSNOTEXISTS = "InvalidParameterValue.SecurityGroupIdsNotExists" INVALIDPARAMETERVALUE_UNVPCIDNOTEXISTS = "InvalidParameterValue.UnVpcIdNotExists" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" LIMITEXCEEDED_INVALIDPARAMETERGOODSNUMNOTINRANGE = "LimitExceeded.InvalidParameterGoodsNumNotInRange" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" LIMITEXCEEDED_REACHTHEAMOUNTLIMIT = "LimitExceeded.ReachTheAmountLimit" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_ACCOUNTDOESNOTEXISTS = "ResourceNotFound.AccountDoesNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = "ResourceUnavailable.NoEnoughVipInVPC" RESOURCEUNAVAILABLE_NOREDISSERVICE = "ResourceUnavailable.NoRedisService" RESOURCEUNAVAILABLE_NOSERVICEAVAILABLEFORTHISZONEID = "ResourceUnavailable.NoServiceAvailableForThisZoneId" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CloseSSL ¶
func (c *Client) CloseSSL(request *CloseSSLRequest) (response *CloseSSLResponse, err error)
CloseSSL This API is used to disable SSL.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
func (*Client) CloseSSLWithContext ¶
func (c *Client) CloseSSLWithContext(ctx context.Context, request *CloseSSLRequest) (response *CloseSSLResponse, err error)
CloseSSL This API is used to disable SSL.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
func (*Client) CreateInstanceAccount ¶
func (c *Client) CreateInstanceAccount(request *CreateInstanceAccountRequest) (response *CreateInstanceAccountResponse, err error)
CreateInstanceAccount This API is used to create an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) CreateInstanceAccountWithContext ¶
func (c *Client) CreateInstanceAccountWithContext(ctx context.Context, request *CreateInstanceAccountRequest) (response *CreateInstanceAccountResponse, err error)
CreateInstanceAccount This API is used to create an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) CreateInstances ¶
func (c *Client) CreateInstances(request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
CreateInstances This API is used to create an TencentDB or Redis instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_ONLYVPCONSPECZONEID = "InvalidParameter.OnlyVPCOnSpecZoneId" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BASENETWORKACCESSDENY = "InvalidParameterValue.BaseNetWorkAccessDeny" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEID = "InvalidParameterValue.InvalidInstanceTypeId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" INVALIDPARAMETERVALUE_SECURITYGROUPIDSNOTEXISTS = "InvalidParameterValue.SecurityGroupIdsNotExists" INVALIDPARAMETERVALUE_UNVPCIDNOTEXISTS = "InvalidParameterValue.UnVpcIdNotExists" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" LIMITEXCEEDED_INVALIDPARAMETERGOODSNUMNOTINRANGE = "LimitExceeded.InvalidParameterGoodsNumNotInRange" LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = "LimitExceeded.PeriodExceedMaxLimit" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_ACCOUNTDOESNOTEXISTS = "ResourceNotFound.AccountDoesNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = "ResourceUnavailable.NoEnoughVipInVPC" RESOURCEUNAVAILABLE_NOREDISSERVICE = "ResourceUnavailable.NoRedisService" RESOURCEUNAVAILABLE_NOTYPEIDREDISSERVICE = "ResourceUnavailable.NoTypeIdRedisService" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateInstancesWithContext ¶
func (c *Client) CreateInstancesWithContext(ctx context.Context, request *CreateInstancesRequest) (response *CreateInstancesResponse, err error)
CreateInstances This API is used to create an TencentDB or Redis instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_ONLYVPCONSPECZONEID = "InvalidParameter.OnlyVPCOnSpecZoneId" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BASENETWORKACCESSDENY = "InvalidParameterValue.BaseNetWorkAccessDeny" INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEID = "InvalidParameterValue.InvalidInstanceTypeId" INVALIDPARAMETERVALUE_INVALIDSUBNETID = "InvalidParameterValue.InvalidSubnetId" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" INVALIDPARAMETERVALUE_SECURITYGROUPIDSNOTEXISTS = "InvalidParameterValue.SecurityGroupIdsNotExists" INVALIDPARAMETERVALUE_UNVPCIDNOTEXISTS = "InvalidParameterValue.UnVpcIdNotExists" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" LIMITEXCEEDED_INVALIDPARAMETERGOODSNUMNOTINRANGE = "LimitExceeded.InvalidParameterGoodsNumNotInRange" LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = "LimitExceeded.PeriodExceedMaxLimit" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_ACCOUNTDOESNOTEXISTS = "ResourceNotFound.AccountDoesNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = "ResourceUnavailable.NoEnoughVipInVPC" RESOURCEUNAVAILABLE_NOREDISSERVICE = "ResourceUnavailable.NoRedisService" RESOURCEUNAVAILABLE_NOTYPEIDREDISSERVICE = "ResourceUnavailable.NoTypeIdRedisService" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateParamTemplate ¶
func (c *Client) CreateParamTemplate(request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
CreateParamTemplate This API is used to create a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) CreateParamTemplateWithContext ¶
func (c *Client) CreateParamTemplateWithContext(ctx context.Context, request *CreateParamTemplateRequest) (response *CreateParamTemplateResponse, err error)
CreateParamTemplate This API is used to create a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DeleteInstanceAccount ¶
func (c *Client) DeleteInstanceAccount(request *DeleteInstanceAccountRequest) (response *DeleteInstanceAccountResponse, err error)
DeleteInstanceAccount This API is used to delete an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DeleteInstanceAccountWithContext ¶
func (c *Client) DeleteInstanceAccountWithContext(ctx context.Context, request *DeleteInstanceAccountRequest) (response *DeleteInstanceAccountResponse, err error)
DeleteInstanceAccount This API is used to delete an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DeleteParamTemplate ¶
func (c *Client) DeleteParamTemplate(request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
DeleteParamTemplate This API is used to delete a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DeleteParamTemplateWithContext ¶
func (c *Client) DeleteParamTemplateWithContext(ctx context.Context, request *DeleteParamTemplateRequest) (response *DeleteParamTemplateResponse, err error)
DeleteParamTemplate This API is used to delete a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeAutoBackupConfig ¶
func (c *Client) DescribeAutoBackupConfig(request *DescribeAutoBackupConfigRequest) (response *DescribeAutoBackupConfigResponse, err error)
DescribeAutoBackupConfig This API is used to get the configuration rules for an automatic backup.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeAutoBackupConfigWithContext ¶
func (c *Client) DescribeAutoBackupConfigWithContext(ctx context.Context, request *DescribeAutoBackupConfigRequest) (response *DescribeAutoBackupConfigResponse, err error)
DescribeAutoBackupConfig This API is used to get the configuration rules for an automatic backup.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeBackupDownloadRestriction ¶
func (c *Client) DescribeBackupDownloadRestriction(request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
DescribeBackupDownloadRestriction This API is used to query the download address for a database backup file in the current region.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeBackupDownloadRestrictionWithContext ¶
func (c *Client) DescribeBackupDownloadRestrictionWithContext(ctx context.Context, request *DescribeBackupDownloadRestrictionRequest) (response *DescribeBackupDownloadRestrictionResponse, err error)
DescribeBackupDownloadRestriction This API is used to query the download address for a database backup file in the current region.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeBackupUrl ¶
func (c *Client) DescribeBackupUrl(request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, err error)
DescribeBackupUrl This API is used to query the download address of a backup RDB file.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BACKUPNOTEXISTS = "InvalidParameterValue.BackupNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_BACKUPSTATUSINVALID = "ResourceUnavailable.BackupStatusInvalid" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError" UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = "UnsupportedOperation.OnlyClusterInstanceCanExportBackup"
func (*Client) DescribeBackupUrlWithContext ¶
func (c *Client) DescribeBackupUrlWithContext(ctx context.Context, request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, err error)
DescribeBackupUrl This API is used to query the download address of a backup RDB file.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BACKUPNOTEXISTS = "InvalidParameterValue.BackupNotExists" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_BACKUPSTATUSINVALID = "ResourceUnavailable.BackupStatusInvalid" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError" UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = "UnsupportedOperation.OnlyClusterInstanceCanExportBackup"
func (*Client) DescribeBandwidthRange ¶
func (c *Client) DescribeBandwidthRange(request *DescribeBandwidthRangeRequest) (response *DescribeBandwidthRangeResponse, err error)
DescribeBandwidthRange This API is used to query the information of instance bandwidth.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR = "InternalError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) DescribeBandwidthRangeWithContext ¶
func (c *Client) DescribeBandwidthRangeWithContext(ctx context.Context, request *DescribeBandwidthRangeRequest) (response *DescribeBandwidthRangeResponse, err error)
DescribeBandwidthRange This API is used to query the information of instance bandwidth.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR = "InternalError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) DescribeCommonDBInstances ¶
func (c *Client) DescribeCommonDBInstances(request *DescribeCommonDBInstancesRequest) (response *DescribeCommonDBInstancesResponse, err error)
DescribeCommonDBInstances This API has been disused. It was used to query the list of Redis instance information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeCommonDBInstancesWithContext ¶
func (c *Client) DescribeCommonDBInstancesWithContext(ctx context.Context, request *DescribeCommonDBInstancesRequest) (response *DescribeCommonDBInstancesResponse, err error)
DescribeCommonDBInstances This API has been disused. It was used to query the list of Redis instance information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeDBSecurityGroups ¶
func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API is used to query the security group details of an instance.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed" INTERNALERROR_CAMAUTHOSSRESPONSERETURNCODEERROR = "InternalError.CamAuthOssResponseReturnCodeError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_NETWORKERR = "InternalError.NetWorkErr" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeDBSecurityGroupsWithContext ¶
func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)
DescribeDBSecurityGroups This API is used to query the security group details of an instance.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed" INTERNALERROR_CAMAUTHOSSRESPONSERETURNCODEERROR = "InternalError.CamAuthOssResponseReturnCodeError" INTERNALERROR_EXECHTTPREQUESTERROR = "InternalError.ExecHttpRequestError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INTERNALERROR_NETWORKERR = "InternalError.NetWorkErr" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeInstanceAccount ¶
func (c *Client) DescribeInstanceAccount(request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)
DescribeInstanceAccount This API is used to query the information of an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeInstanceAccountWithContext ¶
func (c *Client) DescribeInstanceAccountWithContext(ctx context.Context, request *DescribeInstanceAccountRequest) (response *DescribeInstanceAccountResponse, err error)
DescribeInstanceAccount This API is used to query the information of an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeInstanceBackups ¶
func (c *Client) DescribeInstanceBackups(request *DescribeInstanceBackupsRequest) (response *DescribeInstanceBackupsResponse, err error)
DescribeInstanceBackups This API is used to query the backup list of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstanceBackupsWithContext ¶
func (c *Client) DescribeInstanceBackupsWithContext(ctx context.Context, request *DescribeInstanceBackupsRequest) (response *DescribeInstanceBackupsResponse, err error)
DescribeInstanceBackups This API is used to query the backup list of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstanceDTSInfo ¶
func (c *Client) DescribeInstanceDTSInfo(request *DescribeInstanceDTSInfoRequest) (response *DescribeInstanceDTSInfoResponse, err error)
DescribeInstanceDTSInfo This API is used to query the DTS task details of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeInstanceDTSInfoWithContext ¶
func (c *Client) DescribeInstanceDTSInfoWithContext(ctx context.Context, request *DescribeInstanceDTSInfoRequest) (response *DescribeInstanceDTSInfoResponse, err error)
DescribeInstanceDTSInfo This API is used to query the DTS task details of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeInstanceDealDetail ¶
func (c *Client) DescribeInstanceDealDetail(request *DescribeInstanceDealDetailRequest) (response *DescribeInstanceDealDetailResponse, err error)
DescribeInstanceDealDetail This API is used to query the order information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError"
func (*Client) DescribeInstanceDealDetailWithContext ¶
func (c *Client) DescribeInstanceDealDetailWithContext(ctx context.Context, request *DescribeInstanceDealDetailRequest) (response *DescribeInstanceDealDetailResponse, err error)
DescribeInstanceDealDetail This API is used to query the order information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError"
func (*Client) DescribeInstanceMonitorBigKey ¶
func (c *Client) DescribeInstanceMonitorBigKey(request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)
DescribeInstanceMonitorBigKey The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeySizeDist ¶
func (c *Client) DescribeInstanceMonitorBigKeySizeDist(request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)
DescribeInstanceMonitorBigKeySizeDist The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeySizeDistWithContext ¶
func (c *Client) DescribeInstanceMonitorBigKeySizeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)
DescribeInstanceMonitorBigKeySizeDist The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeyTypeDist ¶
func (c *Client) DescribeInstanceMonitorBigKeyTypeDist(request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)
DescribeInstanceMonitorBigKeyTypeDist The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeyTypeDistWithContext ¶
func (c *Client) DescribeInstanceMonitorBigKeyTypeDistWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)
DescribeInstanceMonitorBigKeyTypeDist The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeyWithContext ¶
func (c *Client) DescribeInstanceMonitorBigKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorBigKeyRequest) (response *DescribeInstanceMonitorBigKeyResponse, err error)
DescribeInstanceMonitorBigKey The API for querying big keys of a TencentDB for Redis instance was disused on October 31, 2022. For more information, see [API for Querying Instance Big Key Will Be Disused](https://intl.cloud.tencent.com/document/product/239/81005?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorHotKey ¶
func (c *Client) DescribeInstanceMonitorHotKey(request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)
DescribeInstanceMonitorHotKey This API is used to query the hot key of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorHotKeyWithContext ¶
func (c *Client) DescribeInstanceMonitorHotKeyWithContext(ctx context.Context, request *DescribeInstanceMonitorHotKeyRequest) (response *DescribeInstanceMonitorHotKeyResponse, err error)
DescribeInstanceMonitorHotKey This API is used to query the hot key of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorSIP ¶
func (c *Client) DescribeInstanceMonitorSIP(request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)
DescribeInstanceMonitorSIP This API is used to query the access source information of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorSIPWithContext ¶
func (c *Client) DescribeInstanceMonitorSIPWithContext(ctx context.Context, request *DescribeInstanceMonitorSIPRequest) (response *DescribeInstanceMonitorSIPResponse, err error)
DescribeInstanceMonitorSIP This API is used to query the access source information of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTookDist ¶
func (c *Client) DescribeInstanceMonitorTookDist(request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)
DescribeInstanceMonitorTookDist This API is used to query the distribution of instance access duration.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTookDistWithContext ¶
func (c *Client) DescribeInstanceMonitorTookDistWithContext(ctx context.Context, request *DescribeInstanceMonitorTookDistRequest) (response *DescribeInstanceMonitorTookDistResponse, err error)
DescribeInstanceMonitorTookDist This API is used to query the distribution of instance access duration.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTopNCmd ¶
func (c *Client) DescribeInstanceMonitorTopNCmd(request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)
DescribeInstanceMonitorTopNCmd This API is used to query an instance access command.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTopNCmdTook ¶
func (c *Client) DescribeInstanceMonitorTopNCmdTook(request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)
DescribeInstanceMonitorTopNCmdTook This API is used to query the instance CPU time.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTopNCmdTookWithContext ¶
func (c *Client) DescribeInstanceMonitorTopNCmdTookWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdTookRequest) (response *DescribeInstanceMonitorTopNCmdTookResponse, err error)
DescribeInstanceMonitorTopNCmdTook This API is used to query the instance CPU time.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorTopNCmdWithContext ¶
func (c *Client) DescribeInstanceMonitorTopNCmdWithContext(ctx context.Context, request *DescribeInstanceMonitorTopNCmdRequest) (response *DescribeInstanceMonitorTopNCmdResponse, err error)
DescribeInstanceMonitorTopNCmd This API is used to query an instance access command.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceNodeInfo ¶
func (c *Client) DescribeInstanceNodeInfo(request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, err error)
DescribeInstanceNodeInfo This API is used to query the information of an instance node.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) DescribeInstanceNodeInfoWithContext ¶
func (c *Client) DescribeInstanceNodeInfoWithContext(ctx context.Context, request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, err error)
DescribeInstanceNodeInfo This API is used to query the information of an instance node.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) DescribeInstanceParamRecords ¶
func (c *Client) DescribeInstanceParamRecords(request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API is used to query the list of parameter modifications.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeInstanceParamRecordsWithContext ¶
func (c *Client) DescribeInstanceParamRecordsWithContext(ctx context.Context, request *DescribeInstanceParamRecordsRequest) (response *DescribeInstanceParamRecordsResponse, err error)
DescribeInstanceParamRecords This API is used to query the list of parameter modifications.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
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:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
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:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeInstanceSecurityGroup ¶
func (c *Client) DescribeInstanceSecurityGroup(request *DescribeInstanceSecurityGroupRequest) (response *DescribeInstanceSecurityGroupResponse, err error)
DescribeInstanceSecurityGroup This API is used to query the security group information of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstanceSecurityGroupWithContext ¶
func (c *Client) DescribeInstanceSecurityGroupWithContext(ctx context.Context, request *DescribeInstanceSecurityGroupRequest) (response *DescribeInstanceSecurityGroupResponse, err error)
DescribeInstanceSecurityGroup This API is used to query the security group information of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstanceShards ¶
func (c *Client) DescribeInstanceShards(request *DescribeInstanceShardsRequest) (response *DescribeInstanceShardsResponse, err error)
DescribeInstanceShards This API is used to get the shard information of the instance on cluster architecture.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType"
func (*Client) DescribeInstanceShardsWithContext ¶
func (c *Client) DescribeInstanceShardsWithContext(ctx context.Context, request *DescribeInstanceShardsRequest) (response *DescribeInstanceShardsResponse, err error)
DescribeInstanceShards This API is used to get the shard information of the instance on cluster architecture.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType"
func (*Client) DescribeInstanceZoneInfo ¶
func (c *Client) DescribeInstanceZoneInfo(request *DescribeInstanceZoneInfoRequest) (response *DescribeInstanceZoneInfoResponse, err error)
DescribeInstanceZoneInfo This API is used to query the details of a Redis node.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeInstanceZoneInfoWithContext ¶
func (c *Client) DescribeInstanceZoneInfoWithContext(ctx context.Context, request *DescribeInstanceZoneInfoRequest) (response *DescribeInstanceZoneInfoResponse, err error)
DescribeInstanceZoneInfo This API is used to query the details of a Redis node.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the list of Redis instances.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstancesWithContext ¶
func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the list of Redis instances.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeMaintenanceWindow ¶
func (c *Client) DescribeMaintenanceWindow(request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)
DescribeMaintenanceWindow This API is used to query instance maintenance window. The maintenance window specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeMaintenanceWindowWithContext ¶
func (c *Client) DescribeMaintenanceWindowWithContext(ctx context.Context, request *DescribeMaintenanceWindowRequest) (response *DescribeMaintenanceWindowResponse, err error)
DescribeMaintenanceWindow This API is used to query instance maintenance window. The maintenance window specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeParamTemplateInfo ¶
func (c *Client) DescribeParamTemplateInfo(request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
DescribeParamTemplateInfo This API is used to query the details of a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeParamTemplateInfoWithContext ¶
func (c *Client) DescribeParamTemplateInfoWithContext(ctx context.Context, request *DescribeParamTemplateInfoRequest) (response *DescribeParamTemplateInfoResponse, err error)
DescribeParamTemplateInfo This API is used to query the details of a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny"
func (*Client) DescribeParamTemplates ¶
func (c *Client) DescribeParamTemplates(request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
DescribeParamTemplates This API is used to query the list of parameter templates.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeParamTemplatesWithContext ¶
func (c *Client) DescribeParamTemplatesWithContext(ctx context.Context, request *DescribeParamTemplatesRequest) (response *DescribeParamTemplatesResponse, err error)
DescribeParamTemplates This API is used to query the list of parameter templates.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeProductInfo ¶
func (c *Client) DescribeProductInfo(request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)
DescribeProductInfo This API is used to query purchasable TencentDB for Redis specifications in all regions.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeProductInfoWithContext ¶
func (c *Client) DescribeProductInfoWithContext(ctx context.Context, request *DescribeProductInfoRequest) (response *DescribeProductInfoResponse, err error)
DescribeProductInfo This API is used to query purchasable TencentDB for Redis specifications in all regions.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeProjectSecurityGroup ¶
func (c *Client) DescribeProjectSecurityGroup(request *DescribeProjectSecurityGroupRequest) (response *DescribeProjectSecurityGroupResponse, err error)
DescribeProjectSecurityGroup This API is used to query the security group information of a project.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" RESOURCEUNAVAILABLE_SECURITYGROUPNOTSUPPORTED = "ResourceUnavailable.SecurityGroupNotSupported" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeProjectSecurityGroupWithContext ¶
func (c *Client) DescribeProjectSecurityGroupWithContext(ctx context.Context, request *DescribeProjectSecurityGroupRequest) (response *DescribeProjectSecurityGroupResponse, err error)
DescribeProjectSecurityGroup This API is used to query the security group information of a project.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" RESOURCEUNAVAILABLE_SECURITYGROUPNOTSUPPORTED = "ResourceUnavailable.SecurityGroupNotSupported" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DescribeProjectSecurityGroups ¶
func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API is used to query the security group details of a project.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_DTSSTATUSABNORMAL = "FailedOperation.DtsStatusAbnormal" FAILEDOPERATION_FLOWNOTEXISTS = "FailedOperation.FlowNotExists" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeProjectSecurityGroupsWithContext ¶
func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API is used to query the security group details of a project.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_DTSSTATUSABNORMAL = "FailedOperation.DtsStatusAbnormal" FAILEDOPERATION_FLOWNOTEXISTS = "FailedOperation.FlowNotExists" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeProxySlowLog ¶
func (c *Client) DescribeProxySlowLog(request *DescribeProxySlowLogRequest) (response *DescribeProxySlowLogResponse, err error)
DescribeProxySlowLog This API is used to query the slow queries of the proxy.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeProxySlowLogWithContext ¶
func (c *Client) DescribeProxySlowLogWithContext(ctx context.Context, request *DescribeProxySlowLogRequest) (response *DescribeProxySlowLogResponse, err error)
DescribeProxySlowLog This API is used to query the slow queries of the proxy.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeReplicationGroup ¶
func (c *Client) DescribeReplicationGroup(request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)
DescribeReplicationGroup This API is used to query a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"
func (*Client) DescribeReplicationGroupWithContext ¶
func (c *Client) DescribeReplicationGroupWithContext(ctx context.Context, request *DescribeReplicationGroupRequest) (response *DescribeReplicationGroupResponse, err error)
DescribeReplicationGroup This API is used to query a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"
func (*Client) DescribeSSLStatus ¶
func (c *Client) DescribeSSLStatus(request *DescribeSSLStatusRequest) (response *DescribeSSLStatusResponse, err error)
DescribeSSLStatus This API is used to query the SSL authentication information of an instance, such as enablement status, configuration status, and certificate address.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeSSLStatusWithContext ¶
func (c *Client) DescribeSSLStatusWithContext(ctx context.Context, request *DescribeSSLStatusRequest) (response *DescribeSSLStatusResponse, err error)
DescribeSSLStatus This API is used to query the SSL authentication information of an instance, such as enablement status, configuration status, and certificate address.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeSlowLog ¶
func (c *Client) DescribeSlowLog(request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)
DescribeSlowLog This API is used to query the records of slow query.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeSlowLogWithContext ¶
func (c *Client) DescribeSlowLogWithContext(ctx context.Context, request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)
DescribeSlowLog This API is used to query the records of slow query.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeTaskInfo ¶
func (c *Client) DescribeTaskInfo(request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
DescribeTaskInfo This API is used to get the execution of a specified task.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeTaskInfoWithContext ¶
func (c *Client) DescribeTaskInfoWithContext(ctx context.Context, request *DescribeTaskInfoRequest) (response *DescribeTaskInfoResponse, err error)
DescribeTaskInfo This API is used to get the execution of a specified task.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeTaskList ¶
func (c *Client) DescribeTaskList(request *DescribeTaskListRequest) (response *DescribeTaskListResponse, err error)
DescribeTaskList This API is used to query the task list information of a specified instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeTaskListWithContext ¶
func (c *Client) DescribeTaskListWithContext(ctx context.Context, request *DescribeTaskListRequest) (response *DescribeTaskListResponse, err error)
DescribeTaskList This API is used to query the task list information of a specified instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) DescribeTendisSlowLog ¶
func (c *Client) DescribeTendisSlowLog(request *DescribeTendisSlowLogRequest) (response *DescribeTendisSlowLogResponse, err error)
DescribeTendisSlowLog This API is used to query slow queries of a Tendis instance.
error code that may be returned:
FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DescribeTendisSlowLogWithContext ¶
func (c *Client) DescribeTendisSlowLogWithContext(ctx context.Context, request *DescribeTendisSlowLogRequest) (response *DescribeTendisSlowLogResponse, err error)
DescribeTendisSlowLog This API is used to query slow queries of a Tendis instance.
error code that may be returned:
FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) DestroyPostpaidInstance ¶
func (c *Client) DestroyPostpaidInstance(request *DestroyPostpaidInstanceRequest) (response *DestroyPostpaidInstanceResponse, err error)
DestroyPostpaidInstance This API is used to terminate a pay-as-you-go instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DestroyPostpaidInstanceWithContext ¶
func (c *Client) DestroyPostpaidInstanceWithContext(ctx context.Context, request *DestroyPostpaidInstanceRequest) (response *DestroyPostpaidInstanceResponse, err error)
DestroyPostpaidInstance This API is used to terminate a pay-as-you-go instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) DestroyPrepaidInstance ¶
func (c *Client) DestroyPrepaidInstance(request *DestroyPrepaidInstanceRequest) (response *DestroyPrepaidInstanceResponse, err error)
DestroyPrepaidInstance This API is used to return a monthly subscribed instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_INSTANCEISOLATED = "ResourceUnavailable.InstanceIsolated" RESOURCEUNAVAILABLE_INSTANCENODEAL = "ResourceUnavailable.InstanceNoDeal" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DestroyPrepaidInstanceWithContext ¶
func (c *Client) DestroyPrepaidInstanceWithContext(ctx context.Context, request *DestroyPrepaidInstanceRequest) (response *DestroyPrepaidInstanceResponse, err error)
DestroyPrepaidInstance This API is used to return a monthly subscribed instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted" RESOURCEUNAVAILABLE_INSTANCEISOLATED = "ResourceUnavailable.InstanceIsolated" RESOURCEUNAVAILABLE_INSTANCENODEAL = "ResourceUnavailable.InstanceNoDeal" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) DisableReplicaReadonly ¶
func (c *Client) DisableReplicaReadonly(request *DisableReplicaReadonlyRequest) (response *DisableReplicaReadonlyResponse, err error)
DisableReplicaReadonly This API is used to disable read/write separation.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError"
func (*Client) DisableReplicaReadonlyWithContext ¶
func (c *Client) DisableReplicaReadonlyWithContext(ctx context.Context, request *DisableReplicaReadonlyRequest) (response *DisableReplicaReadonlyResponse, err error)
DisableReplicaReadonly This API is used to disable read/write separation.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError"
func (*Client) DisassociateSecurityGroups ¶
func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API is used to unbind a security group from instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DisassociateSecurityGroupsWithContext ¶
func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)
DisassociateSecurityGroups This API is used to unbind a security group from instances in batches.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) EnableReplicaReadonly ¶
func (c *Client) EnableReplicaReadonly(request *EnableReplicaReadonlyRequest) (response *EnableReplicaReadonlyResponse, err error)
EnableReplicaReadonly This API is used to enable read/write separation.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError"
func (*Client) EnableReplicaReadonlyWithContext ¶
func (c *Client) EnableReplicaReadonlyWithContext(ctx context.Context, request *EnableReplicaReadonlyRequest) (response *EnableReplicaReadonlyResponse, err error)
EnableReplicaReadonly This API is used to enable read/write separation.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError"
func (*Client) InquiryPriceCreateInstance ¶
func (c *Client) InquiryPriceCreateInstance(request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
InquiryPriceCreateInstance This API is used to query the price for purchasing an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) InquiryPriceCreateInstanceWithContext ¶
func (c *Client) InquiryPriceCreateInstanceWithContext(ctx context.Context, request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
InquiryPriceCreateInstance This API is used to query the price for purchasing an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) InquiryPriceUpgradeInstance ¶
func (c *Client) InquiryPriceUpgradeInstance(request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)
InquiryPriceUpgradeInstance This API is used to query the price for scaling an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) InquiryPriceUpgradeInstanceWithContext ¶
func (c *Client) InquiryPriceUpgradeInstanceWithContext(ctx context.Context, request *InquiryPriceUpgradeInstanceRequest) (response *InquiryPriceUpgradeInstanceResponse, err error)
InquiryPriceUpgradeInstance This API is used to query the price for scaling an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED_MEMSIZENOTINRANGE = "LimitExceeded.MemSizeNotInRange" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) KillMasterGroup ¶
func (c *Client) KillMasterGroup(request *KillMasterGroupRequest) (response *KillMasterGroupResponse, err error)
KillMasterGroup This API is used to simulate the failure.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTOPERATION = "ResourceUnavailable.InstanceNotSupportOperation" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) KillMasterGroupWithContext ¶
func (c *Client) KillMasterGroupWithContext(ctx context.Context, request *KillMasterGroupRequest) (response *KillMasterGroupResponse, err error)
KillMasterGroup This API is used to simulate the failure.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDEMPTY = "InvalidParameterValue.PasswordEmpty" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCENOTSUPPORTOPERATION = "ResourceUnavailable.InstanceNotSupportOperation" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError"
func (*Client) ManualBackupInstance ¶
func (c *Client) ManualBackupInstance(request *ManualBackupInstanceRequest) (response *ManualBackupInstanceResponse, err error)
ManualBackupInstance This API is used to manually back up a Redis instance.
error code that may be returned:
FAILEDOPERATION_COMMITFLOWERROR = "FailedOperation.CommitFlowError" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ManualBackupInstanceWithContext ¶
func (c *Client) ManualBackupInstanceWithContext(ctx context.Context, request *ManualBackupInstanceRequest) (response *ManualBackupInstanceResponse, err error)
ManualBackupInstance This API is used to manually back up a Redis instance.
error code that may be returned:
FAILEDOPERATION_COMMITFLOWERROR = "FailedOperation.CommitFlowError" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModfiyInstancePassword ¶
func (c *Client) ModfiyInstancePassword(request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)
ModfiyInstancePassword This API is used to modify the access password for an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModfiyInstancePasswordWithContext ¶
func (c *Client) ModfiyInstancePasswordWithContext(ctx context.Context, request *ModfiyInstancePasswordRequest) (response *ModfiyInstancePasswordResponse, err error)
ModfiyInstancePassword This API is used to modify the access password for an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModifyAutoBackupConfig ¶
func (c *Client) ModifyAutoBackupConfig(request *ModifyAutoBackupConfigRequest) (response *ModifyAutoBackupConfigResponse, err error)
ModifyAutoBackupConfig This API is used to set the configuration for an automatic backup.
error code that may be returned:
FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_NOTSUPPORTED = "InvalidParameter.NotSupported" INVALIDPARAMETER_PERIOD = "InvalidParameter.Period" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_WEEKDAYSISINVALID = "InvalidParameterValue.WeekDaysIsInvalid" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModifyAutoBackupConfigWithContext ¶
func (c *Client) ModifyAutoBackupConfigWithContext(ctx context.Context, request *ModifyAutoBackupConfigRequest) (response *ModifyAutoBackupConfigResponse, err error)
ModifyAutoBackupConfig This API is used to set the configuration for an automatic backup.
error code that may be returned:
FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_NOTSUPPORTED = "InvalidParameter.NotSupported" INVALIDPARAMETER_PERIOD = "InvalidParameter.Period" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_WEEKDAYSISINVALID = "InvalidParameterValue.WeekDaysIsInvalid" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModifyBackupDownloadRestriction ¶
func (c *Client) ModifyBackupDownloadRestriction(request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
ModifyBackupDownloadRestriction This API is used to modify the network information and address for downloading a backup file.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModifyBackupDownloadRestrictionWithContext ¶
func (c *Client) ModifyBackupDownloadRestrictionWithContext(ctx context.Context, request *ModifyBackupDownloadRestrictionRequest) (response *ModifyBackupDownloadRestrictionResponse, err error)
ModifyBackupDownloadRestriction This API is used to modify the network information and address for downloading a backup file.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ModifyDBInstanceSecurityGroups ¶
func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API is used to modify the security groups bound to an instance.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" FAILEDOPERATION_UPDATESECURITYGROUPSFAILED = "FailedOperation.UpdateSecurityGroupsFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_INSTANCESGOVERLIMITERROR = "InvalidParameter.InstanceSGOverLimitError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) ModifyDBInstanceSecurityGroupsWithContext ¶
func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)
ModifyDBInstanceSecurityGroups This API is used to modify the security groups bound to an instance.
error code that may be returned:
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed" FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed" FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed" FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed" FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed" FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed" FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed" FAILEDOPERATION_UPDATESECURITYGROUPSFAILED = "FailedOperation.UpdateSecurityGroupsFailed" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_INSTANCESGOVERLIMITERROR = "InvalidParameter.InstanceSGOverLimitError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) ModifyInstance ¶
func (c *Client) ModifyInstance(request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error)
ModifyInstance This API is used to modify instance information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError" UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = "UnsupportedOperation.OnlyClusterInstanceCanExportBackup"
func (*Client) ModifyInstanceAccount ¶
func (c *Client) ModifyInstanceAccount(request *ModifyInstanceAccountRequest) (response *ModifyInstanceAccountResponse, err error)
ModifyInstanceAccount This API is used to modify an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyInstanceAccountWithContext ¶
func (c *Client) ModifyInstanceAccountWithContext(ctx context.Context, request *ModifyInstanceAccountRequest) (response *ModifyInstanceAccountResponse, err error)
ModifyInstanceAccount This API is used to modify an instance sub-account.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyInstanceParams ¶
func (c *Client) ModifyInstanceParams(request *ModifyInstanceParamsRequest) (response *ModifyInstanceParamsResponse, err error)
ModifyInstanceParams This API is used to modify the parameters of TencentDB for Redis instances
error code that may be returned:
FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyInstanceParamsWithContext ¶
func (c *Client) ModifyInstanceParamsWithContext(ctx context.Context, request *ModifyInstanceParamsRequest) (response *ModifyInstanceParamsResponse, err error)
ModifyInstanceParams This API is used to modify the parameters of TencentDB for Redis instances
error code that may be returned:
FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_CALLOSSERROR = "ResourceUnavailable.CallOssError" RESOURCEUNAVAILABLE_INSTANCECONFERROR = "ResourceUnavailable.InstanceConfError" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyInstanceReadOnly ¶
func (c *Client) ModifyInstanceReadOnly(request *ModifyInstanceReadOnlyRequest) (response *ModifyInstanceReadOnlyResponse, err error)
ModifyInstanceReadOnly This API is used to set instance input mode.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) ModifyInstanceReadOnlyWithContext ¶
func (c *Client) ModifyInstanceReadOnlyWithContext(ctx context.Context, request *ModifyInstanceReadOnlyRequest) (response *ModifyInstanceReadOnlyResponse, err error)
ModifyInstanceReadOnly This API is used to set instance input mode.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) ModifyInstanceWithContext ¶
func (c *Client) ModifyInstanceWithContext(ctx context.Context, request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error)
ModifyInstance This API is used to modify instance information.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError" UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = "UnsupportedOperation.OnlyClusterInstanceCanExportBackup"
func (*Client) ModifyMaintenanceWindow ¶
func (c *Client) ModifyMaintenanceWindow(request *ModifyMaintenanceWindowRequest) (response *ModifyMaintenanceWindowResponse, err error)
ModifyMaintenanceWindow This API is used to modify the instance maintenance time. The maintenance time specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business. Note: if the compatible version upgrade or architecture upgrade task has been initiated for an instance, its maintenance time cannot be modified.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError"
func (*Client) ModifyMaintenanceWindowWithContext ¶
func (c *Client) ModifyMaintenanceWindowWithContext(ctx context.Context, request *ModifyMaintenanceWindowRequest) (response *ModifyMaintenanceWindowResponse, err error)
ModifyMaintenanceWindow This API is used to modify the instance maintenance time. The maintenance time specifies a time period during which compatible version upgrade, architecture upgrade, backend maintenance, and other operations can be performed to avoid affecting business. Note: if the compatible version upgrade or architecture upgrade task has been initiated for an instance, its maintenance time cannot be modified.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList" UNSUPPORTEDOPERATION_CLUSTERINSTANCEACCESSEDDENY = "UnsupportedOperation.ClusterInstanceAccessedDeny" UNSUPPORTEDOPERATION_ISAUTORENEWERROR = "UnsupportedOperation.IsAutoRenewError"
func (*Client) ModifyNetworkConfig ¶
func (c *Client) ModifyNetworkConfig(request *ModifyNetworkConfigRequest) (response *ModifyNetworkConfigResponse, err error)
ModifyNetworkConfig This API is used to modify the network configuration of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_NOTSUPPORTED = "InvalidParameter.NotSupported" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" RESOURCEUNAVAILABLE_INSTANCEUNLOCKEDERROR = "ResourceUnavailable.InstanceUnLockedError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyNetworkConfigWithContext ¶
func (c *Client) ModifyNetworkConfigWithContext(ctx context.Context, request *ModifyNetworkConfigRequest) (response *ModifyNetworkConfigResponse, err error)
ModifyNetworkConfig This API is used to modify the network configuration of an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_NOTSUPPORTED = "InvalidParameter.NotSupported" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" RESOURCEUNAVAILABLE_INSTANCEUNLOCKEDERROR = "ResourceUnavailable.InstanceUnLockedError" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyParamTemplate ¶
func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
ModifyParamTemplate This API is used to modify a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) ModifyParamTemplateWithContext ¶
func (c *Client) ModifyParamTemplateWithContext(ctx context.Context, request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error)
ModifyParamTemplate This API is used to modify a parameter template.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) OpenSSL ¶
func (c *Client) OpenSSL(request *OpenSSLRequest) (response *OpenSSLResponse, err error)
OpenSSL This API is used to enable SSL.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
func (*Client) OpenSSLWithContext ¶
func (c *Client) OpenSSLWithContext(ctx context.Context, request *OpenSSLRequest) (response *OpenSSLResponse, err error)
OpenSSL This API is used to enable SSL.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
func (*Client) ReleaseWanAddress ¶
func (c *Client) ReleaseWanAddress(request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, err error)
ReleaseWanAddress This API is used to disable public network access.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) ReleaseWanAddressWithContext ¶
func (c *Client) ReleaseWanAddressWithContext(ctx context.Context, request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, err error)
ReleaseWanAddress This API is used to disable public network access.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) RemoveReplicationInstance ¶
func (c *Client) RemoveReplicationInstance(request *RemoveReplicationInstanceRequest) (response *RemoveReplicationInstanceResponse, err error)
RemoveReplicationInstance This API is used to remove a member from a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) RemoveReplicationInstanceWithContext ¶
func (c *Client) RemoveReplicationInstanceWithContext(ctx context.Context, request *RemoveReplicationInstanceRequest) (response *RemoveReplicationInstanceResponse, err error)
RemoveReplicationInstance This API is used to remove a member from a replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETERVALUE_CHECKNOTPASS = "InvalidParameterValue.CheckNotPass" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists" LIMITEXCEEDED_REPLICATIONGROUPLOCKED = "LimitExceeded.ReplicationGroupLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNSUPPORTEDOPERATION_INSPECTION = "UnsupportedOperation.Inspection" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) RenewInstance ¶
func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
RenewInstance This API is used to renew an instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = "LimitExceeded.PeriodExceedMaxLimit" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" RESOURCEINUSE_INSTANCEBEENLOCKED = "ResourceInUse.InstanceBeenLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted"
func (*Client) RenewInstanceWithContext ¶
func (c *Client) RenewInstanceWithContext(ctx context.Context, request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
RenewInstance This API is used to renew an instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = "LimitExceeded.PeriodExceedMaxLimit" LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = "LimitExceeded.PeriodLessThanMinLimit" RESOURCEINUSE_INSTANCEBEENLOCKED = "ResourceInUse.InstanceBeenLocked" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCEDELETED = "ResourceUnavailable.InstanceDeleted"
func (*Client) ResetPassword ¶
func (c *Client) ResetPassword(request *ResetPasswordRequest) (response *ResetPasswordResponse, err error)
ResetPassword This API is used to reset a password.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) ResetPasswordWithContext ¶
func (c *Client) ResetPasswordWithContext(ctx context.Context, request *ResetPasswordRequest) (response *ResetPasswordResponse, err error)
ResetPassword This API is used to reset a password.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_PASSWORDFREEDENIED = "InvalidParameterValue.PasswordFreeDenied" INVALIDPARAMETERVALUE_PASSWORDRULEERROR = "InvalidParameterValue.PasswordRuleError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) RestoreInstance ¶
func (c *Client) RestoreInstance(request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
RestoreInstance This API is used to restore a Redis instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BACKUPNOTEXISTS = "InvalidParameterValue.BackupNotExists" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_BACKUPLOCKEDERROR = "ResourceUnavailable.BackupLockedError" RESOURCEUNAVAILABLE_BACKUPSTATUSABNORMAL = "ResourceUnavailable.BackupStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) RestoreInstanceWithContext ¶
func (c *Client) RestoreInstanceWithContext(ctx context.Context, request *RestoreInstanceRequest) (response *RestoreInstanceResponse, err error)
RestoreInstance This API is used to restore a Redis instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_BACKUPNOTEXISTS = "InvalidParameterValue.BackupNotExists" INVALIDPARAMETERVALUE_PASSWORDERROR = "InvalidParameterValue.PasswordError" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_BACKUPLOCKEDERROR = "ResourceUnavailable.BackupLockedError" RESOURCEUNAVAILABLE_BACKUPSTATUSABNORMAL = "ResourceUnavailable.BackupStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) StartupInstance ¶
func (c *Client) StartupInstance(request *StartupInstanceRequest) (response *StartupInstanceResponse, err error)
StartupInstance This API is used to deisolate an instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) StartupInstanceWithContext ¶
func (c *Client) StartupInstanceWithContext(ctx context.Context, request *StartupInstanceRequest) (response *StartupInstanceResponse, err error)
StartupInstance This API is used to deisolate an instance.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_EMPTYPARAM = "InvalidParameter.EmptyParam" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_INSTANCELOCKEDERROR = "ResourceUnavailable.InstanceLockedError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) SwitchInstanceVip ¶
func (c *Client) SwitchInstanceVip(request *SwitchInstanceVipRequest) (response *SwitchInstanceVipResponse, err error)
SwitchInstanceVip This API is used to swap the VIPs of instances for instance disaster recovery switch in scenarios where cross-AZ disaster recovery is supported through DTS. After the VIPs of the source and target instances are swapped, the target instance can be written into and the DTS sync task between them will be disconnected.
error code that may be returned:
FAILEDOPERATION_DTSSTATUSABNORMAL = "FailedOperation.DtsStatusAbnormal" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) SwitchInstanceVipWithContext ¶
func (c *Client) SwitchInstanceVipWithContext(ctx context.Context, request *SwitchInstanceVipRequest) (response *SwitchInstanceVipResponse, err error)
SwitchInstanceVip This API is used to swap the VIPs of instances for instance disaster recovery switch in scenarios where cross-AZ disaster recovery is supported through DTS. After the VIPs of the source and target instances are swapped, the target instance can be written into and the DTS sync task between them will be disconnected.
error code that may be returned:
FAILEDOPERATION_DTSSTATUSABNORMAL = "FailedOperation.DtsStatusAbnormal" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETERVALUE_UNSUPPORTEDTYPE = "InvalidParameterValue.UnSupportedType" RESOURCEUNAVAILABLE_INSTANCESTATEERROR = "ResourceUnavailable.InstanceStateError" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (*Client) SwitchProxy ¶
func (c *Client) SwitchProxy(request *SwitchProxyRequest) (response *SwitchProxyResponse, err error)
SwitchProxy This API is used to simulate the failure of a proxy node.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) SwitchProxyWithContext ¶
func (c *Client) SwitchProxyWithContext(ctx context.Context, request *SwitchProxyRequest) (response *SwitchProxyResponse, err error)
SwitchProxy This API is used to simulate the failure of a proxy node.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) UpgradeInstance ¶
func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
UpgradeInstance This API is used to modify the instance configuration.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_MEMSIZENOTINRANGE = "InvalidParameterValue.MemSizeNotInRange" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) UpgradeInstanceVersion ¶
func (c *Client) UpgradeInstanceVersion(request *UpgradeInstanceVersionRequest) (response *UpgradeInstanceVersionResponse, err error)
UpgradeInstanceVersion This API is used to upgrade the instance to a later version or to upgrade the current standard architecture to the cluster architecture.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) UpgradeInstanceVersionWithContext ¶
func (c *Client) UpgradeInstanceVersionWithContext(ctx context.Context, request *UpgradeInstanceVersionRequest) (response *UpgradeInstanceVersionResponse, err error)
UpgradeInstanceVersion This API is used to upgrade the instance to a later version or to upgrade the current standard architecture to the cluster architecture.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed" UNAUTHORIZEDOPERATION_USERNOTINWHITELIST = "UnauthorizedOperation.UserNotInWhiteList"
func (*Client) UpgradeInstanceWithContext ¶
func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
UpgradeInstance This API is used to modify the instance configuration.
error code that may be returned:
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed" FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_MEMSIZENOTINRANGE = "InvalidParameterValue.MemSizeNotInRange" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" RESOURCEUNAVAILABLE_SALEOUT = "ResourceUnavailable.SaleOut" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) UpgradeProxyVersion ¶
func (c *Client) UpgradeProxyVersion(request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error)
UpgradeProxyVersion This API is used to upgrade instance proxy version.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) UpgradeProxyVersionWithContext ¶
func (c *Client) UpgradeProxyVersionWithContext(ctx context.Context, request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error)
UpgradeProxyVersion This API is used to upgrade instance proxy version.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
func (*Client) UpgradeSmallVersion ¶
func (c *Client) UpgradeSmallVersion(request *UpgradeSmallVersionRequest) (response *UpgradeSmallVersionResponse, err error)
UpgradeSmallVersion This API is used to upgrade instance minor version.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) UpgradeSmallVersionWithContext ¶
func (c *Client) UpgradeSmallVersionWithContext(ctx context.Context, request *UpgradeSmallVersionRequest) (response *UpgradeSmallVersionResponse, err error)
UpgradeSmallVersion This API is used to upgrade instance minor version.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation"
func (*Client) UpgradeVersionToMultiAvailabilityZones ¶
func (c *Client) UpgradeVersionToMultiAvailabilityZones(request *UpgradeVersionToMultiAvailabilityZonesRequest) (response *UpgradeVersionToMultiAvailabilityZonesResponse, err error)
UpgradeVersionToMultiAvailabilityZones This API is used to upgrade an instance to support multi-AZ deployment.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
func (*Client) UpgradeVersionToMultiAvailabilityZonesWithContext ¶
func (c *Client) UpgradeVersionToMultiAvailabilityZonesWithContext(ctx context.Context, request *UpgradeVersionToMultiAvailabilityZonesRequest) (response *UpgradeVersionToMultiAvailabilityZonesResponse, err error)
UpgradeVersionToMultiAvailabilityZones This API is used to upgrade an instance to support multi-AZ deployment.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_INVALIDPARAMETER = "InvalidParameter.InvalidParameter" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" UNSUPPORTEDOPERATION_INSTANCENOTOPERATION = "UnsupportedOperation.InstanceNotOperation" UNSUPPORTEDOPERATION_LIMITPROXYVERSION = "UnsupportedOperation.LimitProxyVersion"
type CloneInstancesRequest ¶
type CloneInstancesRequest struct { *tchttp.BaseRequest // The ID of the source instance to be cloned, such as "crs-xjhsdj****". Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The number of clone instances at a time // - The maximum number of monthly subscribed instances is 100 for each purchase. // - The maximum number of pay-as-you-go instances is 30 for each purchase. GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // ID of the AZ where the clone instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Billing mode. Valid values: <ul><li>`0` (Pay-as-you-go) </li><li>`1` (Monthly subscription) </li></ul> BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // Purchase duration of an instance. <ul><li>Unit: Month</li><li>Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60` (for monthly subscription mode).</li><li> Valid value: `1` (for pay-as-you-go mode).</li></ul> Period *uint64 `json:"Period,omitempty" name:"Period"` // Security group ID, which can be obtained on the <b>Security Group</b> page in the console. SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"` // Backup ID of the clone instance, which can be obtained through the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Whether the clone instance supports password-free access. Valid values: <ul><li>`true` (Yes)</li><li>`false` (No. When SSL or public network is enabled). Default value: `false`.</li></ul> NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` // The VPC ID of the clone instance. If this parameter is not passed in, the classic network will be selected by default. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // The VPC subnet ID to which the clone instance belongs, which is not required for the classic network. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Name of the clone instance. <br>Enter up to 60 letters, digits, hyphens, and underscores.</br> InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // The access password of the clone instance. <ul><li>When the input parameter <b>NoAuth</b> is <b>true</b>, this parameter is not required. </li><li>When the instance is Redis 2.8, 4.0, or 5.0, the password must contain 8–30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and special characters `()`~!@#$%^&*-+=_|{}[]:;<>,.?/` and cannot start with `/`.</li><li>When the instance is CKV 3.2, the password must and can only contain 8–30 letters and digits.</li></ul> Password *string `json:"Password,omitempty" name:"Password"` // The auto-renewal flag. Valid values <ul><li>`0`: Manual renewal (default). </li><li>`1`: Auto-renewal. </li><li>`2`: Not auto-renewal (set by user).</ul> AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Customized port. Valid range: 1024-65535. Default value: `6379`. VPort *uint64 `json:"VPort,omitempty" name:"VPort"` // Node information of an instance. <ul><li>Currently supported type and AZ information of a node to be configured (master node or replica node) For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1#RedisNodeInfo).</li><li>This parameter is not required for single-AZ deployment.</li></ul> NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` // Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and find the project ID in <b>Account Center</b> > <b>Project Management</b> in the top-right corner. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Tag to be bound for the clone instance ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` // The parameter template ID associated with the clone instance // - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. // - You can query the parameter template list of the instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // The alarm policy ID of the instance to be cloned. Log in to the [Tencent Cloud Observable Platform console](https://console.cloud.tencent.com/monitor/alarm2/policy), and get the policy ID in <b>Alarm Management</b> > <b>Policy Management</b>. AlarmPolicyList []*string `json:"AlarmPolicyList,omitempty" name:"AlarmPolicyList"` }
func NewCloneInstancesRequest ¶
func NewCloneInstancesRequest() (request *CloneInstancesRequest)
func (*CloneInstancesRequest) FromJsonString ¶
func (r *CloneInstancesRequest) 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 (*CloneInstancesRequest) ToJsonString ¶
func (r *CloneInstancesRequest) ToJsonString() string
type CloneInstancesRequestParams ¶
type CloneInstancesRequestParams struct { // The ID of the source instance to be cloned, such as "crs-xjhsdj****". Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The number of clone instances at a time // - The maximum number of monthly subscribed instances is 100 for each purchase. // - The maximum number of pay-as-you-go instances is 30 for each purchase. GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // ID of the AZ where the clone instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Billing mode. Valid values: <ul><li>`0` (Pay-as-you-go) </li><li>`1` (Monthly subscription) </li></ul> BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // Purchase duration of an instance. <ul><li>Unit: Month</li><li>Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60` (for monthly subscription mode).</li><li> Valid value: `1` (for pay-as-you-go mode).</li></ul> Period *uint64 `json:"Period,omitempty" name:"Period"` // Security group ID, which can be obtained on the <b>Security Group</b> page in the console. SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"` // Backup ID of the clone instance, which can be obtained through the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Whether the clone instance supports password-free access. Valid values: <ul><li>`true` (Yes)</li><li>`false` (No. When SSL or public network is enabled). Default value: `false`.</li></ul> NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` // The VPC ID of the clone instance. If this parameter is not passed in, the classic network will be selected by default. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // The VPC subnet ID to which the clone instance belongs, which is not required for the classic network. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Name of the clone instance. <br>Enter up to 60 letters, digits, hyphens, and underscores.</br> InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // The access password of the clone instance. <ul><li>When the input parameter <b>NoAuth</b> is <b>true</b>, this parameter is not required. </li><li>When the instance is Redis 2.8, 4.0, or 5.0, the password must contain 8–30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and special characters `()`~!@#$%^&*-+=_|{}[]:;<>,.?/` and cannot start with `/`.</li><li>When the instance is CKV 3.2, the password must and can only contain 8–30 letters and digits.</li></ul> Password *string `json:"Password,omitempty" name:"Password"` // The auto-renewal flag. Valid values <ul><li>`0`: Manual renewal (default). </li><li>`1`: Auto-renewal. </li><li>`2`: Not auto-renewal (set by user).</ul> AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Customized port. Valid range: 1024-65535. Default value: `6379`. VPort *uint64 `json:"VPort,omitempty" name:"VPort"` // Node information of an instance. <ul><li>Currently supported type and AZ information of a node to be configured (master node or replica node) For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1#RedisNodeInfo).</li><li>This parameter is not required for single-AZ deployment.</li></ul> NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` // Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and find the project ID in <b>Account Center</b> > <b>Project Management</b> in the top-right corner. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Tag to be bound for the clone instance ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` // The parameter template ID associated with the clone instance // - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. // - You can query the parameter template list of the instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // The alarm policy ID of the instance to be cloned. Log in to the [Tencent Cloud Observable Platform console](https://console.cloud.tencent.com/monitor/alarm2/policy), and get the policy ID in <b>Alarm Management</b> > <b>Policy Management</b>. AlarmPolicyList []*string `json:"AlarmPolicyList,omitempty" name:"AlarmPolicyList"` }
Predefined struct for user
type CloneInstancesResponse ¶
type CloneInstancesResponse struct { *tchttp.BaseResponse Response *CloneInstancesResponseParams `json:"Response"` }
func NewCloneInstancesResponse ¶
func NewCloneInstancesResponse() (response *CloneInstancesResponse)
func (*CloneInstancesResponse) FromJsonString ¶
func (r *CloneInstancesResponse) 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 (*CloneInstancesResponse) ToJsonString ¶
func (r *CloneInstancesResponse) ToJsonString() string
type CloneInstancesResponseParams ¶
type CloneInstancesResponseParams struct { // Request task ID DealId *string `json:"DealId,omitempty" name:"DealId"` // Clone instance ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CloseSSLRequest ¶
type CloseSSLRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewCloseSSLRequest ¶
func NewCloseSSLRequest() (request *CloseSSLRequest)
func (*CloseSSLRequest) FromJsonString ¶
func (r *CloseSSLRequest) 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 (*CloseSSLRequest) ToJsonString ¶
func (r *CloseSSLRequest) ToJsonString() string
type CloseSSLRequestParams ¶
type CloseSSLRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type CloseSSLResponse ¶
type CloseSSLResponse struct { *tchttp.BaseResponse Response *CloseSSLResponseParams `json:"Response"` }
func NewCloseSSLResponse ¶
func NewCloseSSLResponse() (response *CloseSSLResponse)
func (*CloseSSLResponse) FromJsonString ¶
func (r *CloseSSLResponse) 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 (*CloseSSLResponse) ToJsonString ¶
func (r *CloseSSLResponse) ToJsonString() string
type CloseSSLResponseParams ¶
type CloseSSLResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CommandTake ¶
type CreateInstanceAccountRequest ¶
type CreateInstanceAccountRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // 1. The password must contain 8–30 characters. A password of 12 or more characters is recommended. // 2. It cannot start with a slash (/). // 3. It must contain characters in at least two of the following types: // a. Lowercase letters (a–z) // b. Uppercase letters (A–Z) // c. Digits (0–9) // d. ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` // Routing policy. Valid values: master (master node); replication (replica node) ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` // Read/Write policy. Valid values: r (read-only); rw (read/write). Privilege *string `json:"Privilege,omitempty" name:"Privilege"` // Sub-account description information Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewCreateInstanceAccountRequest ¶
func NewCreateInstanceAccountRequest() (request *CreateInstanceAccountRequest)
func (*CreateInstanceAccountRequest) FromJsonString ¶
func (r *CreateInstanceAccountRequest) 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 (*CreateInstanceAccountRequest) ToJsonString ¶
func (r *CreateInstanceAccountRequest) ToJsonString() string
type CreateInstanceAccountRequestParams ¶
type CreateInstanceAccountRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // 1. The password must contain 8–30 characters. A password of 12 or more characters is recommended. // 2. It cannot start with a slash (/). // 3. It must contain characters in at least two of the following types: // a. Lowercase letters (a–z) // b. Uppercase letters (A–Z) // c. Digits (0–9) // d. ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` // Routing policy. Valid values: master (master node); replication (replica node) ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` // Read/Write policy. Valid values: r (read-only); rw (read/write). Privilege *string `json:"Privilege,omitempty" name:"Privilege"` // Sub-account description information Remark *string `json:"Remark,omitempty" name:"Remark"` }
Predefined struct for user
type CreateInstanceAccountResponse ¶
type CreateInstanceAccountResponse struct { *tchttp.BaseResponse Response *CreateInstanceAccountResponseParams `json:"Response"` }
func NewCreateInstanceAccountResponse ¶
func NewCreateInstanceAccountResponse() (response *CreateInstanceAccountResponse)
func (*CreateInstanceAccountResponse) FromJsonString ¶
func (r *CreateInstanceAccountResponse) 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 (*CreateInstanceAccountResponse) ToJsonString ¶
func (r *CreateInstanceAccountResponse) ToJsonString() string
type CreateInstanceAccountResponseParams ¶
type CreateInstanceAccountResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateInstancesRequest ¶
type CreateInstancesRequest struct { *tchttp.BaseRequest // Instance type // <ul><li>`2`: Redis 2.8 Memory Edition (Standard Architecture). </li><li>`3`: CKV 3.2 Memory Edition (Standard Architecture). </li><li>`4`: CKV 3.2 Memory Edition (Cluster Architecture). </li><li>`6`: Redis 4.0 Memory Edition (Standard Architecture). </li><li>`7`: Redis 4.0 Memory Edition (Cluster Architecture). </li><li>`8`: Redis 5.0 Memory Edition (Standard Architecture). </li><li>`9`: Redis 5.0 Memory Edition (Cluster Architecture). </li><li>`15`: Redis 6.2 Memory Edition (Standard Architecture). </li><li>`16`: Redis 6.2 Memory Edition (Cluster Architecture).</li></ul> TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` // Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. // - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; // - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // The purchase duration of an instance // - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. // - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. Period *uint64 `json:"Period,omitempty" name:"Period"` // Billing mode. 0: pay-as-you-go BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance access password // - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. // - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). // - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. Password *string `json:"Password,omitempty" name:"Password"` // VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Auto-renewal flag // - `0`: Manual renewal (default). // - `1`: Auto-renewal. // - `2`: Not auto-renewal (set by user). AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"` // User-defined network port. Default value: `6379`. Range: [1024,65535]. VPort *uint64 `json:"VPort,omitempty" name:"VPort"` // Quantity of instance shards // - This parameter is not required for instances of Standard Edition. // - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Quantity of instance replicas // - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. // - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Whether to support read-only replicas. // - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. // - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. // - To enable read-only replicas, we recommend that you create two or more replicas. ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` // Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Whether to support password-free access for an instance // - `true`: The instance access is password-free. // - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` // The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). // Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` // The tag for an instance ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // The parameter template ID associated with the instance // - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. // - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // An internal parameter used to indicate whether to check when creating an instance. // - `false`: Default value. Send a normal request and create an instance if all the requirements are met. // - `true`: Send a check request and create no instance. DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` // The product edition of the instance // - `local`: Local Disk Edition. // - `cloud`: Cloud Disk Edition. // - `cdc`: Dedicated Cluster Edition. Default value: `local`. ProductVersion *string `json:"ProductVersion,omitempty" name:"ProductVersion"` // Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. RedisClusterId *string `json:"RedisClusterId,omitempty" name:"RedisClusterId"` }
func NewCreateInstancesRequest ¶
func NewCreateInstancesRequest() (request *CreateInstancesRequest)
func (*CreateInstancesRequest) FromJsonString ¶
func (r *CreateInstancesRequest) 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 (*CreateInstancesRequest) ToJsonString ¶
func (r *CreateInstancesRequest) ToJsonString() string
type CreateInstancesRequestParams ¶
type CreateInstancesRequestParams struct { // Instance type // <ul><li>`2`: Redis 2.8 Memory Edition (Standard Architecture). </li><li>`3`: CKV 3.2 Memory Edition (Standard Architecture). </li><li>`4`: CKV 3.2 Memory Edition (Cluster Architecture). </li><li>`6`: Redis 4.0 Memory Edition (Standard Architecture). </li><li>`7`: Redis 4.0 Memory Edition (Cluster Architecture). </li><li>`8`: Redis 5.0 Memory Edition (Standard Architecture). </li><li>`9`: Redis 5.0 Memory Edition (Cluster Architecture). </li><li>`15`: Redis 6.2 Memory Edition (Standard Architecture). </li><li>`16`: Redis 6.2 Memory Edition (Cluster Architecture).</li></ul> TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` // Memory capacity in MB, which must be an integer multiple of 1024. For specific specifications, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. // - When **TypeId** is a standard architecture, **MemSize** is the total memory capacity of the instance; // - When **TypeId** is a cluster architecture, **MemSize** is the single-shard memory capacity. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // The number of instances for each purchase. For details, query the sales specifications in all regions through the [DescribeProductInfo](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1) API. GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // The purchase duration of an instance // - If `BillingMode` is `1`, that is, when the billing mode is monthly subscription, you need to set this parameter to specify the duration of the purchased instance. Unit: month. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. // - If `BillingMode` is `0`, that is, when the billing mode is pay-as-you-go, you need to set this parameter to `1`. Period *uint64 `json:"Period,omitempty" name:"Period"` // Billing mode. 0: pay-as-you-go BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance access password // - When the input parameter `NoAuth` is `true`, it means that the instance access is set to be password-free, and the `Password` field does not need to be configured; otherwise, `Password` is a required parameter. // - When the instance type `TypeId` is Redis 2.8 Memory Edition (Standard Architecture), Redis 4.0, 5.0, 6.0 (regardless of architecture), the password must contains 8-30 characters in at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). // - When the instance type **TypeId** is CKV 3.2 Memory Edition (regardless of architecture), the password contains 8-30 letters and digits and excludes other characters. Password *string `json:"Password,omitempty" name:"Password"` // VPC ID. If this parameter is not passed in, the classic network will be selected by default. You can query the specific VPC ID in the [VPC console](https://console.cloud.tencent.com/vpc). VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID. This parameter is not required for the classic network. You can get the specific subnet ID by querying the subnet list in the [VPC console](https://console.cloud.tencent.com/vpc). SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Project ID. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Auto-renewal flag // - `0`: Manual renewal (default). // - `1`: Auto-renewal. // - `2`: Not auto-renewal (set by user). AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Array of security group IDs. Get the security group ID of the instance through the [DescribeInstanceSecurityGroup](https://intl.cloud.tencent.com/document/product/239/34447?from_cn_redirect=1) API. SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"` // User-defined network port. Default value: `6379`. Range: [1024,65535]. VPort *uint64 `json:"VPort,omitempty" name:"VPort"` // Quantity of instance shards // - This parameter is not required for instances of Standard Edition. // - For instances of Cluster Edition, the range of shard quantity is [1, 3, 5, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128]. RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Quantity of instance replicas // - For Redis Memory Edition 4.0, 5.0, 6.2 (regardless of architecture), the range of replica quantity is [1,5]. // - For Redis 2.8 Standard Edition and CKV Standard Edition, the replica quantity is `1`. RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Whether to support read-only replicas. // - Redis 2.8 Standard Edition and CKV Standard Edition don’t support read-only replicas. // - If read-only replicas are enabled, read/write separation will be automatically enabled for an instance, with write requests routed to the master node and read requests to the replica node. // - To enable read-only replicas, we recommend that you create two or more replicas. ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` // Instance name, which can contain up to 60 letters, digits, hyphens, and underscores. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Whether to support password-free access for an instance // - `true`: The instance access is password-free. // - `false`: The instance access is password-enabled. Default value: `false`. Only instances in a VPC support the password-free access. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` // The node information of the instance, including node ID, type, and AZ. For more information, see [RedisNodeInfo](https://intl.cloud.tencent.com/document/product/239/20022?from_cn_redirect=1). // Node information of an instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for instances deployed in a single AZ. NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` // The tag for an instance ResourceTags []*ResourceTag `json:"ResourceTags,omitempty" name:"ResourceTags"` // Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // The parameter template ID associated with the instance // - If this parameter is not configured, the system will automatically adapt the corresponding default template based on the selected compatible version and architecture. // - Query the list of parameter templates of an instance to get the template ID through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // An internal parameter used to indicate whether to check when creating an instance. // - `false`: Default value. Send a normal request and create an instance if all the requirements are met. // - `true`: Send a check request and create no instance. DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` // The product edition of the instance // - `local`: Local Disk Edition. // - `cloud`: Cloud Disk Edition. // - `cdc`: Dedicated Cluster Edition. Default value: `local`. ProductVersion *string `json:"ProductVersion,omitempty" name:"ProductVersion"` // Exclusive cluster ID. When `ProductVersion` is set to `cdc`, this parameter is required. RedisClusterId *string `json:"RedisClusterId,omitempty" name:"RedisClusterId"` }
Predefined struct for user
type CreateInstancesResponse ¶
type CreateInstancesResponse struct { *tchttp.BaseResponse Response *CreateInstancesResponseParams `json:"Response"` }
func NewCreateInstancesResponse ¶
func NewCreateInstancesResponse() (response *CreateInstancesResponse)
func (*CreateInstancesResponse) FromJsonString ¶
func (r *CreateInstancesResponse) 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 (*CreateInstancesResponse) ToJsonString ¶
func (r *CreateInstancesResponse) ToJsonString() string
type CreateInstancesResponseParams ¶
type CreateInstancesResponseParams struct { // Transaction ID DealId *string `json:"DealId,omitempty" name:"DealId"` // Instance ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateParamTemplateRequest ¶
type CreateParamTemplateRequest struct { *tchttp.BaseRequest // Parameter template name. Name *string `json:"Name,omitempty" name:"Name"` // Parameter template description. Description *string `json:"Description,omitempty" name:"Description"` // Instance type. Valid values: `1` (Redis 2.8 Memory Edition in cluster architecture), `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `5` (Redis 2.8 Memory Edition in standalone architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture). If `TempateId` is specified, this parameter can be left blank; otherwise, it is required. ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"` // ID of the source parameter template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // Parameter list. ParamList []*InstanceParam `json:"ParamList,omitempty" name:"ParamList"` }
func NewCreateParamTemplateRequest ¶
func NewCreateParamTemplateRequest() (request *CreateParamTemplateRequest)
func (*CreateParamTemplateRequest) FromJsonString ¶
func (r *CreateParamTemplateRequest) 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 (*CreateParamTemplateRequest) ToJsonString ¶
func (r *CreateParamTemplateRequest) ToJsonString() string
type CreateParamTemplateRequestParams ¶
type CreateParamTemplateRequestParams struct { // Parameter template name. Name *string `json:"Name,omitempty" name:"Name"` // Parameter template description. Description *string `json:"Description,omitempty" name:"Description"` // Instance type. Valid values: `1` (Redis 2.8 Memory Edition in cluster architecture), `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `5` (Redis 2.8 Memory Edition in standalone architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture). If `TempateId` is specified, this parameter can be left blank; otherwise, it is required. ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"` // ID of the source parameter template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // Parameter list. ParamList []*InstanceParam `json:"ParamList,omitempty" name:"ParamList"` }
Predefined struct for user
type CreateParamTemplateResponse ¶
type CreateParamTemplateResponse struct { *tchttp.BaseResponse Response *CreateParamTemplateResponseParams `json:"Response"` }
func NewCreateParamTemplateResponse ¶
func NewCreateParamTemplateResponse() (response *CreateParamTemplateResponse)
func (*CreateParamTemplateResponse) FromJsonString ¶
func (r *CreateParamTemplateResponse) 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 (*CreateParamTemplateResponse) ToJsonString ¶
func (r *CreateParamTemplateResponse) ToJsonString() string
type CreateParamTemplateResponseParams ¶
type CreateParamTemplateResponseParams struct { // Parameter template ID. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DelayDistribution ¶
type DelayDistribution struct { // The delay distribution. The mapping between delay range and `Ladder` value is as follows: - `1`: [0ms,1ms]. - `5`: [1ms,5ms]. - `10`: [5ms,10ms]. - `50`: [10ms,50ms]. - `200`: [50ms,200ms]. - `-1`: [200ms,∞]. Ladder *int64 `json:"Ladder,omitempty" name:"Ladder"` // The number of commands with delay falling within the current delay range - Size *int64 `json:"Size,omitempty" name:"Size"` // Modification time Updatetime *int64 `json:"Updatetime,omitempty" name:"Updatetime"` }
type DeleteInstanceAccountRequest ¶
type DeleteInstanceAccountRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name AccountName *string `json:"AccountName,omitempty" name:"AccountName"` }
func NewDeleteInstanceAccountRequest ¶
func NewDeleteInstanceAccountRequest() (request *DeleteInstanceAccountRequest)
func (*DeleteInstanceAccountRequest) FromJsonString ¶
func (r *DeleteInstanceAccountRequest) 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 (*DeleteInstanceAccountRequest) ToJsonString ¶
func (r *DeleteInstanceAccountRequest) ToJsonString() string
type DeleteInstanceAccountRequestParams ¶
type DeleteInstanceAccountRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name AccountName *string `json:"AccountName,omitempty" name:"AccountName"` }
Predefined struct for user
type DeleteInstanceAccountResponse ¶
type DeleteInstanceAccountResponse struct { *tchttp.BaseResponse Response *DeleteInstanceAccountResponseParams `json:"Response"` }
func NewDeleteInstanceAccountResponse ¶
func NewDeleteInstanceAccountResponse() (response *DeleteInstanceAccountResponse)
func (*DeleteInstanceAccountResponse) FromJsonString ¶
func (r *DeleteInstanceAccountResponse) 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 (*DeleteInstanceAccountResponse) ToJsonString ¶
func (r *DeleteInstanceAccountResponse) ToJsonString() string
type DeleteInstanceAccountResponseParams ¶
type DeleteInstanceAccountResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteParamTemplateRequest ¶
type DeleteParamTemplateRequest struct { *tchttp.BaseRequest // Parameter template ID. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewDeleteParamTemplateRequest ¶
func NewDeleteParamTemplateRequest() (request *DeleteParamTemplateRequest)
func (*DeleteParamTemplateRequest) FromJsonString ¶
func (r *DeleteParamTemplateRequest) 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 (*DeleteParamTemplateRequest) ToJsonString ¶
func (r *DeleteParamTemplateRequest) ToJsonString() string
type DeleteParamTemplateRequestParams ¶
type DeleteParamTemplateRequestParams struct { // Parameter template ID. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
Predefined struct for user
type DeleteParamTemplateResponse ¶
type DeleteParamTemplateResponse struct { *tchttp.BaseResponse Response *DeleteParamTemplateResponseParams `json:"Response"` }
func NewDeleteParamTemplateResponse ¶
func NewDeleteParamTemplateResponse() (response *DeleteParamTemplateResponse)
func (*DeleteParamTemplateResponse) FromJsonString ¶
func (r *DeleteParamTemplateResponse) 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 (*DeleteParamTemplateResponse) ToJsonString ¶
func (r *DeleteParamTemplateResponse) ToJsonString() string
type DeleteParamTemplateResponseParams ¶
type DeleteParamTemplateResponseParams 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"` }
Predefined struct for user
type DescribeAutoBackupConfigRequest ¶
type DescribeAutoBackupConfigRequest struct { *tchttp.BaseRequest // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeAutoBackupConfigRequest ¶
func NewDescribeAutoBackupConfigRequest() (request *DescribeAutoBackupConfigRequest)
func (*DescribeAutoBackupConfigRequest) FromJsonString ¶
func (r *DescribeAutoBackupConfigRequest) 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 (*DescribeAutoBackupConfigRequest) ToJsonString ¶
func (r *DescribeAutoBackupConfigRequest) ToJsonString() string
type DescribeAutoBackupConfigRequestParams ¶
type DescribeAutoBackupConfigRequestParams struct { // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeAutoBackupConfigResponse ¶
type DescribeAutoBackupConfigResponse struct { *tchttp.BaseResponse Response *DescribeAutoBackupConfigResponseParams `json:"Response"` }
func NewDescribeAutoBackupConfigResponse ¶
func NewDescribeAutoBackupConfigResponse() (response *DescribeAutoBackupConfigResponse)
func (*DescribeAutoBackupConfigResponse) FromJsonString ¶
func (r *DescribeAutoBackupConfigResponse) 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 (*DescribeAutoBackupConfigResponse) ToJsonString ¶
func (r *DescribeAutoBackupConfigResponse) ToJsonString() string
type DescribeAutoBackupConfigResponseParams ¶
type DescribeAutoBackupConfigResponseParams struct { // This parameter is retained due to compatibility and can be ignored. AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` // Backup cycle, which will be daily by default. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"` // Time period for backup task initialization TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` // Retention time of full backup files in days. Default value: `7`. To retain the files for more days, [submit a ticket](https://console.cloud.tencent.com/workorder/category) for application. BackupStorageDays *int64 `json:"BackupStorageDays,omitempty" name:"BackupStorageDays"` // This parameter has been disused. BinlogStorageDays *int64 `json:"BinlogStorageDays,omitempty" name:"BinlogStorageDays"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBackupDownloadRestrictionRequest ¶
type DescribeBackupDownloadRestrictionRequest struct {
*tchttp.BaseRequest
}
func NewDescribeBackupDownloadRestrictionRequest ¶
func NewDescribeBackupDownloadRestrictionRequest() (request *DescribeBackupDownloadRestrictionRequest)
func (*DescribeBackupDownloadRestrictionRequest) FromJsonString ¶
func (r *DescribeBackupDownloadRestrictionRequest) 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 (*DescribeBackupDownloadRestrictionRequest) ToJsonString ¶
func (r *DescribeBackupDownloadRestrictionRequest) ToJsonString() string
type DescribeBackupDownloadRestrictionRequestParams ¶
type DescribeBackupDownloadRestrictionRequestParams struct { }
Predefined struct for user
type DescribeBackupDownloadRestrictionResponse ¶
type DescribeBackupDownloadRestrictionResponse struct { *tchttp.BaseResponse Response *DescribeBackupDownloadRestrictionResponseParams `json:"Response"` }
func NewDescribeBackupDownloadRestrictionResponse ¶
func NewDescribeBackupDownloadRestrictionResponse() (response *DescribeBackupDownloadRestrictionResponse)
func (*DescribeBackupDownloadRestrictionResponse) FromJsonString ¶
func (r *DescribeBackupDownloadRestrictionResponse) 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 (*DescribeBackupDownloadRestrictionResponse) ToJsonString ¶
func (r *DescribeBackupDownloadRestrictionResponse) ToJsonString() string
type DescribeBackupDownloadRestrictionResponseParams ¶
type DescribeBackupDownloadRestrictionResponseParams struct { // Type of the network restrictions for downloading backup files. Valid values: // // - `NoLimit`: Backup files can be downloaded over both public and private networks. // - `LimitOnlyIntranet`: Backup files can be downloaded only at private network addresses auto-assigned by Tencent Cloud. // - `Customize`: Backup files can be downloaded only in the customized VPC. LimitType *string `json:"LimitType,omitempty" name:"LimitType"` // Only `In` can be passed in for this parameter, indicating that backup files can be downloaded in the custom `LimitVpc`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitempty" name:"VpcComparisonSymbol"` // Whether backups can be downloaded at the custom `LimitIp` address. // // - `In`: Download is allowed for the custom IP. // - `NotIn`: Download is not allowed for the custom IP. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitempty" name:"IpComparisonSymbol"` // VPC ID of the custom backup file download address, which will be displayed if `LimitType` is `Customize`. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitempty" name:"LimitVpc"` // VPC ID of the custom backup file download address, which will be displayed if `LimitType` is `Customize`. LimitIp []*string `json:"LimitIp,omitempty" name:"LimitIp"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBackupUrlRequest ¶
type DescribeBackupUrlRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup ID, which can be obtained through the `RedisBackupSet` parameter returned by the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Type of the network restriction for downloading backup files. If this parameter is not configured, the user-defined configuration will be used. // // - `NoLimit`: Backup files can be downloaded over both public and private networks. // - `LimitOnlyIntranet`: Backup files can be downloaded only at private network addresses auto-assigned by Tencent Cloud. // - `Customize`: Backup files can be downloaded only in the customized VPC. LimitType *string `json:"LimitType,omitempty" name:"LimitType"` // Only `In` can be passed in for this parameter, indicating that backup files can be downloaded in the custom `LimitVpc`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitempty" name:"VpcComparisonSymbol"` // Whether backups can be downloaded at the custom `LimitIp` address. // // - `In` (default value): Download is allowed for the custom IP. // - `NotIn`: Download is not allowed for the custom IP. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitempty" name:"IpComparisonSymbol"` // VPC ID of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitempty" name:"LimitVpc"` // VPC IP of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitIp []*string `json:"LimitIp,omitempty" name:"LimitIp"` }
func NewDescribeBackupUrlRequest ¶
func NewDescribeBackupUrlRequest() (request *DescribeBackupUrlRequest)
func (*DescribeBackupUrlRequest) FromJsonString ¶
func (r *DescribeBackupUrlRequest) 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 (*DescribeBackupUrlRequest) ToJsonString ¶
func (r *DescribeBackupUrlRequest) ToJsonString() string
type DescribeBackupUrlRequestParams ¶
type DescribeBackupUrlRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup ID, which can be obtained through the `RedisBackupSet` parameter returned by the [DescribeInstanceBackups](https://intl.cloud.tencent.com/document/product/239/20011?from_cn_redirect=1) API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Type of the network restriction for downloading backup files. If this parameter is not configured, the user-defined configuration will be used. // // - `NoLimit`: Backup files can be downloaded over both public and private networks. // - `LimitOnlyIntranet`: Backup files can be downloaded only at private network addresses auto-assigned by Tencent Cloud. // - `Customize`: Backup files can be downloaded only in the customized VPC. LimitType *string `json:"LimitType,omitempty" name:"LimitType"` // Only `In` can be passed in for this parameter, indicating that backup files can be downloaded in the custom `LimitVpc`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitempty" name:"VpcComparisonSymbol"` // Whether backups can be downloaded at the custom `LimitIp` address. // // - `In` (default value): Download is allowed for the custom IP. // - `NotIn`: Download is not allowed for the custom IP. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitempty" name:"IpComparisonSymbol"` // VPC ID of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitempty" name:"LimitVpc"` // VPC IP of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitIp []*string `json:"LimitIp,omitempty" name:"LimitIp"` }
Predefined struct for user
type DescribeBackupUrlResponse ¶
type DescribeBackupUrlResponse struct { *tchttp.BaseResponse Response *DescribeBackupUrlResponseParams `json:"Response"` }
func NewDescribeBackupUrlResponse ¶
func NewDescribeBackupUrlResponse() (response *DescribeBackupUrlResponse)
func (*DescribeBackupUrlResponse) FromJsonString ¶
func (r *DescribeBackupUrlResponse) 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 (*DescribeBackupUrlResponse) ToJsonString ¶
func (r *DescribeBackupUrlResponse) ToJsonString() string
type DescribeBackupUrlResponseParams ¶
type DescribeBackupUrlResponseParams struct { // Public network download address (valid for six hours). This field will be disused soon. DownloadUrl []*string `json:"DownloadUrl,omitempty" name:"DownloadUrl"` // Private network download address (valid for six hours). This field will be disused soon. InnerDownloadUrl []*string `json:"InnerDownloadUrl,omitempty" name:"InnerDownloadUrl"` // Filename. This field will be disused soon. // Note: This field may return null, indicating that no valid values can be obtained. Filenames []*string `json:"Filenames,omitempty" name:"Filenames"` // List of backup file information. // Note: This field may return null, indicating that no valid values can be obtained. BackupInfos []*BackupDownloadInfo `json:"BackupInfos,omitempty" name:"BackupInfos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeBandwidthRangeRequest ¶
type DescribeBandwidthRangeRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeBandwidthRangeRequest ¶
func NewDescribeBandwidthRangeRequest() (request *DescribeBandwidthRangeRequest)
func (*DescribeBandwidthRangeRequest) FromJsonString ¶
func (r *DescribeBandwidthRangeRequest) 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 (*DescribeBandwidthRangeRequest) ToJsonString ¶
func (r *DescribeBandwidthRangeRequest) ToJsonString() string
type DescribeBandwidthRangeRequestParams ¶
type DescribeBandwidthRangeRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeBandwidthRangeResponse ¶
type DescribeBandwidthRangeResponse struct { *tchttp.BaseResponse Response *DescribeBandwidthRangeResponseParams `json:"Response"` }
func NewDescribeBandwidthRangeResponse ¶
func NewDescribeBandwidthRangeResponse() (response *DescribeBandwidthRangeResponse)
func (*DescribeBandwidthRangeResponse) FromJsonString ¶
func (r *DescribeBandwidthRangeResponse) 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 (*DescribeBandwidthRangeResponse) ToJsonString ¶
func (r *DescribeBandwidthRangeResponse) ToJsonString() string
type DescribeBandwidthRangeResponseParams ¶
type DescribeBandwidthRangeResponseParams struct { // Standard bandwidth, which is the bandwidth allocated by the system to each node when an instance is purchased. BaseBandwidth *int64 `json:"BaseBandwidth,omitempty" name:"BaseBandwidth"` // The additional bandwidth of the instance. If the standard bandwidth does not meet your needs, you can increase the bandwidth on your own. <ul><li>If read-only replica is enabled, the total instance bandwidth = additional bandwidth * shard quantity + standard bandwidth * shard quantity * Max ([read-only replica quantity, 1]). The shard quantity in the standard architecture is 1. </li><li>If read-only replica is not enabled, the total instance bandwidth = additional bandwidth * shard quantity + standard bandwidth * shard quantity. The shard quantity in the standard architecture is 1.</li></ul> AddBandwidth *int64 `json:"AddBandwidth,omitempty" name:"AddBandwidth"` // The lower limit for additional bandwidth MinAddBandwidth *int64 `json:"MinAddBandwidth,omitempty" name:"MinAddBandwidth"` // The upper limit for additional bandwidth MaxAddBandwidth *int64 `json:"MaxAddBandwidth,omitempty" name:"MaxAddBandwidth"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeCommonDBInstancesRequest ¶
type DescribeCommonDBInstancesRequest struct { *tchttp.BaseRequest // List of VPC IDs VpcIds []*int64 `json:"VpcIds,omitempty" name:"VpcIds"` // List of subnet IDs SubnetIds []*int64 `json:"SubnetIds,omitempty" name:"SubnetIds"` // List of billing modes. 0: monthly subscription; 1: pay-as-you-go PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // List of instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // List of instance names InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` // List of instance status Status []*string `json:"Status,omitempty" name:"Status"` // Sorting field OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // List of instance VIPs Vips []*string `json:"Vips,omitempty" name:"Vips"` // List of VPC IDs UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"` // List of unique subnet IDs UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"` // Quantity limit. Recommended default value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeCommonDBInstancesRequest ¶
func NewDescribeCommonDBInstancesRequest() (request *DescribeCommonDBInstancesRequest)
func (*DescribeCommonDBInstancesRequest) FromJsonString ¶
func (r *DescribeCommonDBInstancesRequest) 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 (*DescribeCommonDBInstancesRequest) ToJsonString ¶
func (r *DescribeCommonDBInstancesRequest) ToJsonString() string
type DescribeCommonDBInstancesRequestParams ¶
type DescribeCommonDBInstancesRequestParams struct { // List of VPC IDs VpcIds []*int64 `json:"VpcIds,omitempty" name:"VpcIds"` // List of subnet IDs SubnetIds []*int64 `json:"SubnetIds,omitempty" name:"SubnetIds"` // List of billing modes. 0: monthly subscription; 1: pay-as-you-go PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // List of instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // List of instance names InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` // List of instance status Status []*string `json:"Status,omitempty" name:"Status"` // Sorting field OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Sorting order OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` // List of instance VIPs Vips []*string `json:"Vips,omitempty" name:"Vips"` // List of VPC IDs UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"` // List of unique subnet IDs UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"` // Quantity limit. Recommended default value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeCommonDBInstancesResponse ¶
type DescribeCommonDBInstancesResponse struct { *tchttp.BaseResponse Response *DescribeCommonDBInstancesResponseParams `json:"Response"` }
func NewDescribeCommonDBInstancesResponse ¶
func NewDescribeCommonDBInstancesResponse() (response *DescribeCommonDBInstancesResponse)
func (*DescribeCommonDBInstancesResponse) FromJsonString ¶
func (r *DescribeCommonDBInstancesResponse) 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 (*DescribeCommonDBInstancesResponse) ToJsonString ¶
func (r *DescribeCommonDBInstancesResponse) ToJsonString() string
type DescribeCommonDBInstancesResponseParams ¶
type DescribeCommonDBInstancesResponseParams struct { // Number of instances TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Instance information InstanceDetails []*RedisCommonInstanceList `json:"InstanceDetails,omitempty" name:"InstanceDetails"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeDBSecurityGroupsRequest ¶
type DescribeDBSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeDBSecurityGroupsRequest ¶
func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequest)
func (*DescribeDBSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string
type DescribeDBSecurityGroupsRequestParams ¶
type DescribeDBSecurityGroupsRequestParams struct { // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // ID of the specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeDBSecurityGroupsResponse ¶
type DescribeDBSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DescribeDBSecurityGroupsResponseParams `json:"Response"` }
func NewDescribeDBSecurityGroupsResponse ¶
func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse)
func (*DescribeDBSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string
type DescribeDBSecurityGroupsResponseParams ¶
type DescribeDBSecurityGroupsResponseParams struct { // Security group rules Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` // Private IPv4 address of an instance VIP *string `json:"VIP,omitempty" name:"VIP"` // Private network port VPort *string `json:"VPort,omitempty" name:"VPort"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceAccountRequest ¶
type DescribeInstanceAccountRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of entries per page Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeInstanceAccountRequest ¶
func NewDescribeInstanceAccountRequest() (request *DescribeInstanceAccountRequest)
func (*DescribeInstanceAccountRequest) FromJsonString ¶
func (r *DescribeInstanceAccountRequest) 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 (*DescribeInstanceAccountRequest) ToJsonString ¶
func (r *DescribeInstanceAccountRequest) ToJsonString() string
type DescribeInstanceAccountRequestParams ¶
type DescribeInstanceAccountRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of entries per page Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeInstanceAccountResponse ¶
type DescribeInstanceAccountResponse struct { *tchttp.BaseResponse Response *DescribeInstanceAccountResponseParams `json:"Response"` }
func NewDescribeInstanceAccountResponse ¶
func NewDescribeInstanceAccountResponse() (response *DescribeInstanceAccountResponse)
func (*DescribeInstanceAccountResponse) FromJsonString ¶
func (r *DescribeInstanceAccountResponse) 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 (*DescribeInstanceAccountResponse) ToJsonString ¶
func (r *DescribeInstanceAccountResponse) ToJsonString() string
type DescribeInstanceAccountResponseParams ¶
type DescribeInstanceAccountResponseParams struct { // Account details // Note: This field may return null, indicating that no valid values can be obtained. Accounts []*Account `json:"Accounts,omitempty" name:"Accounts"` // Number of accounts // Note: This field may return null, indicating that no valid values can be obtained. 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"` }
Predefined struct for user
type DescribeInstanceBackupsRequest ¶
type DescribeInstanceBackupsRequest struct { *tchttp.BaseRequest // Number of backups returned per page. Default value: `20`. Maximum value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // ID of the instance to be operated on, which can be obtained through the `InstanceId` field in the return value of the `DescribeInstance` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 16:46:34. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 19:09:26. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Backup task status: // `1`: The backup is in the process. // `2`: The backup is normal. // `3`: The backup is being converted to an RDB file. // `4`: Conversion to RDB has been completed. // `-1`: The backup expired. // `-2`: The backup has been deleted. Status []*int64 `json:"Status,omitempty" name:"Status"` // Instance name, which can be fuzzily searched. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
func NewDescribeInstanceBackupsRequest ¶
func NewDescribeInstanceBackupsRequest() (request *DescribeInstanceBackupsRequest)
func (*DescribeInstanceBackupsRequest) FromJsonString ¶
func (r *DescribeInstanceBackupsRequest) 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 (*DescribeInstanceBackupsRequest) ToJsonString ¶
func (r *DescribeInstanceBackupsRequest) ToJsonString() string
type DescribeInstanceBackupsRequestParams ¶
type DescribeInstanceBackupsRequestParams struct { // Number of backups returned per page. Default value: `20`. Maximum value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // ID of the instance to be operated on, which can be obtained through the `InstanceId` field in the return value of the `DescribeInstance` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 16:46:34. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 19:09:26. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Backup task status: // `1`: The backup is in the process. // `2`: The backup is normal. // `3`: The backup is being converted to an RDB file. // `4`: Conversion to RDB has been completed. // `-1`: The backup expired. // `-2`: The backup has been deleted. Status []*int64 `json:"Status,omitempty" name:"Status"` // Instance name, which can be fuzzily searched. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` }
Predefined struct for user
type DescribeInstanceBackupsResponse ¶
type DescribeInstanceBackupsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceBackupsResponseParams `json:"Response"` }
func NewDescribeInstanceBackupsResponse ¶
func NewDescribeInstanceBackupsResponse() (response *DescribeInstanceBackupsResponse)
func (*DescribeInstanceBackupsResponse) FromJsonString ¶
func (r *DescribeInstanceBackupsResponse) 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 (*DescribeInstanceBackupsResponse) ToJsonString ¶
func (r *DescribeInstanceBackupsResponse) ToJsonString() string
type DescribeInstanceBackupsResponseParams ¶
type DescribeInstanceBackupsResponseParams struct { // Total number of backups. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Array of instance backups. BackupSet []*RedisBackupSet `json:"BackupSet,omitempty" name:"BackupSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceDTSInfoRequest ¶
type DescribeInstanceDTSInfoRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceDTSInfoRequest ¶
func NewDescribeInstanceDTSInfoRequest() (request *DescribeInstanceDTSInfoRequest)
func (*DescribeInstanceDTSInfoRequest) FromJsonString ¶
func (r *DescribeInstanceDTSInfoRequest) 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 (*DescribeInstanceDTSInfoRequest) ToJsonString ¶
func (r *DescribeInstanceDTSInfoRequest) ToJsonString() string
type DescribeInstanceDTSInfoRequestParams ¶
type DescribeInstanceDTSInfoRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceDTSInfoResponse ¶
type DescribeInstanceDTSInfoResponse struct { *tchttp.BaseResponse Response *DescribeInstanceDTSInfoResponseParams `json:"Response"` }
func NewDescribeInstanceDTSInfoResponse ¶
func NewDescribeInstanceDTSInfoResponse() (response *DescribeInstanceDTSInfoResponse)
func (*DescribeInstanceDTSInfoResponse) FromJsonString ¶
func (r *DescribeInstanceDTSInfoResponse) 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 (*DescribeInstanceDTSInfoResponse) ToJsonString ¶
func (r *DescribeInstanceDTSInfoResponse) ToJsonString() string
type DescribeInstanceDTSInfoResponseParams ¶
type DescribeInstanceDTSInfoResponseParams struct { // DTS task ID // Note: This field may return null, indicating that no valid values can be obtained. JobId *string `json:"JobId,omitempty" name:"JobId"` // DTS task name // Note: This field may return null, indicating that no valid values can be obtained. JobName *string `json:"JobName,omitempty" name:"JobName"` // Task status. Valid values: 1 (Creating), 3 (Checking), 4 (CheckPass), 5 (CheckNotPass), 7 (Running), 8 (ReadyComplete), 9 (Success), 10 (Failed), 11 (Stopping), 12 (Completing) // Note: This field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitempty" name:"Status"` // Status description // Note: This field may return null, indicating that no valid values can be obtained. StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Sync latency in bytes // Note: This field may return null, indicating that no valid values can be obtained. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Disconnection time // Note: This field may return null, indicating that no valid values can be obtained. CutDownTime *string `json:"CutDownTime,omitempty" name:"CutDownTime"` // Source instance information // Note: This field may return null, indicating that no valid values can be obtained. SrcInfo *DescribeInstanceDTSInstanceInfo `json:"SrcInfo,omitempty" name:"SrcInfo"` // Target instance information // Note: This field may return null, indicating that no valid values can be obtained. DstInfo *DescribeInstanceDTSInstanceInfo `json:"DstInfo,omitempty" name:"DstInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceDTSInstanceInfo ¶
type DescribeInstanceDTSInstanceInfo struct { // Region ID // Note: This field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Instance ID // Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Repository ID // Note: This field may return null, indicating that no valid values can be obtained. SetId *int64 `json:"SetId,omitempty" name:"SetId"` // AZ ID // Note: This field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance type // Note: This field may return null, indicating that no valid values can be obtained. Type *int64 `json:"Type,omitempty" name:"Type"` // Instance name // Note: This field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Instance access address // Note: This field may return null, indicating that no valid values can be obtained. Vip *string `json:"Vip,omitempty" name:"Vip"` // Status // Note: This field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitempty" name:"Status"` }
type DescribeInstanceDealDetailRequest ¶
type DescribeInstanceDealDetailRequest struct { *tchttp.BaseRequest // Array of order transaction IDs, i.e., the `DealId` output parameter of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API. DealIds []*string `json:"DealIds,omitempty" name:"DealIds"` }
func NewDescribeInstanceDealDetailRequest ¶
func NewDescribeInstanceDealDetailRequest() (request *DescribeInstanceDealDetailRequest)
func (*DescribeInstanceDealDetailRequest) FromJsonString ¶
func (r *DescribeInstanceDealDetailRequest) 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 (*DescribeInstanceDealDetailRequest) ToJsonString ¶
func (r *DescribeInstanceDealDetailRequest) ToJsonString() string
type DescribeInstanceDealDetailRequestParams ¶
type DescribeInstanceDealDetailRequestParams struct { // Array of order transaction IDs, i.e., the `DealId` output parameter of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API. DealIds []*string `json:"DealIds,omitempty" name:"DealIds"` }
Predefined struct for user
type DescribeInstanceDealDetailResponse ¶
type DescribeInstanceDealDetailResponse struct { *tchttp.BaseResponse Response *DescribeInstanceDealDetailResponseParams `json:"Response"` }
func NewDescribeInstanceDealDetailResponse ¶
func NewDescribeInstanceDealDetailResponse() (response *DescribeInstanceDealDetailResponse)
func (*DescribeInstanceDealDetailResponse) FromJsonString ¶
func (r *DescribeInstanceDealDetailResponse) 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 (*DescribeInstanceDealDetailResponse) ToJsonString ¶
func (r *DescribeInstanceDealDetailResponse) ToJsonString() string
type DescribeInstanceDealDetailResponseParams ¶
type DescribeInstanceDealDetailResponseParams struct { // Order details DealDetails []*TradeDealDetail `json:"DealDetails,omitempty" name:"DealDetails"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeyRequest ¶
type DescribeInstanceMonitorBigKeyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Request type. 1: string type; 2: all types ReqType *int64 `json:"ReqType,omitempty" name:"ReqType"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
func NewDescribeInstanceMonitorBigKeyRequest ¶
func NewDescribeInstanceMonitorBigKeyRequest() (request *DescribeInstanceMonitorBigKeyRequest)
func (*DescribeInstanceMonitorBigKeyRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeyRequest) 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 (*DescribeInstanceMonitorBigKeyRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeyRequest) ToJsonString() string
type DescribeInstanceMonitorBigKeyRequestParams ¶
type DescribeInstanceMonitorBigKeyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Request type. 1: string type; 2: all types ReqType *int64 `json:"ReqType,omitempty" name:"ReqType"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeyResponse ¶
type DescribeInstanceMonitorBigKeyResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorBigKeyResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorBigKeyResponse ¶
func NewDescribeInstanceMonitorBigKeyResponse() (response *DescribeInstanceMonitorBigKeyResponse)
func (*DescribeInstanceMonitorBigKeyResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeyResponse) 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 (*DescribeInstanceMonitorBigKeyResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeyResponse) ToJsonString() string
type DescribeInstanceMonitorBigKeyResponseParams ¶
type DescribeInstanceMonitorBigKeyResponseParams struct { // Big key details Data []*BigKeyInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeySizeDistRequest ¶
type DescribeInstanceMonitorBigKeySizeDistRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
func NewDescribeInstanceMonitorBigKeySizeDistRequest ¶
func NewDescribeInstanceMonitorBigKeySizeDistRequest() (request *DescribeInstanceMonitorBigKeySizeDistRequest)
func (*DescribeInstanceMonitorBigKeySizeDistRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeySizeDistRequest) 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 (*DescribeInstanceMonitorBigKeySizeDistRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeySizeDistRequest) ToJsonString() string
type DescribeInstanceMonitorBigKeySizeDistRequestParams ¶
type DescribeInstanceMonitorBigKeySizeDistRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeySizeDistResponse ¶
type DescribeInstanceMonitorBigKeySizeDistResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorBigKeySizeDistResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorBigKeySizeDistResponse ¶
func NewDescribeInstanceMonitorBigKeySizeDistResponse() (response *DescribeInstanceMonitorBigKeySizeDistResponse)
func (*DescribeInstanceMonitorBigKeySizeDistResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeySizeDistResponse) 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 (*DescribeInstanceMonitorBigKeySizeDistResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeySizeDistResponse) ToJsonString() string
type DescribeInstanceMonitorBigKeySizeDistResponseParams ¶
type DescribeInstanceMonitorBigKeySizeDistResponseParams struct { // Big key size distribution details Data []*DelayDistribution `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeyTypeDistRequest ¶
type DescribeInstanceMonitorBigKeyTypeDistRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
func NewDescribeInstanceMonitorBigKeyTypeDistRequest ¶
func NewDescribeInstanceMonitorBigKeyTypeDistRequest() (request *DescribeInstanceMonitorBigKeyTypeDistRequest)
func (*DescribeInstanceMonitorBigKeyTypeDistRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeyTypeDistRequest) 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 (*DescribeInstanceMonitorBigKeyTypeDistRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeyTypeDistRequest) ToJsonString() string
type DescribeInstanceMonitorBigKeyTypeDistRequestParams ¶
type DescribeInstanceMonitorBigKeyTypeDistRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` }
Predefined struct for user
type DescribeInstanceMonitorBigKeyTypeDistResponse ¶
type DescribeInstanceMonitorBigKeyTypeDistResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorBigKeyTypeDistResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorBigKeyTypeDistResponse ¶
func NewDescribeInstanceMonitorBigKeyTypeDistResponse() (response *DescribeInstanceMonitorBigKeyTypeDistResponse)
func (*DescribeInstanceMonitorBigKeyTypeDistResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorBigKeyTypeDistResponse) 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 (*DescribeInstanceMonitorBigKeyTypeDistResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorBigKeyTypeDistResponse) ToJsonString() string
type DescribeInstanceMonitorBigKeyTypeDistResponseParams ¶
type DescribeInstanceMonitorBigKeyTypeDistResponseParams struct { // Big key type distribution details Data []*BigKeyTypeInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorHotKeyRequest ¶
type DescribeInstanceMonitorHotKeyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: past 30 minutes; 3: past 6 hours; 4: past 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
func NewDescribeInstanceMonitorHotKeyRequest ¶
func NewDescribeInstanceMonitorHotKeyRequest() (request *DescribeInstanceMonitorHotKeyRequest)
func (*DescribeInstanceMonitorHotKeyRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorHotKeyRequest) 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 (*DescribeInstanceMonitorHotKeyRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorHotKeyRequest) ToJsonString() string
type DescribeInstanceMonitorHotKeyRequestParams ¶
type DescribeInstanceMonitorHotKeyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: past 30 minutes; 3: past 6 hours; 4: past 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
Predefined struct for user
type DescribeInstanceMonitorHotKeyResponse ¶
type DescribeInstanceMonitorHotKeyResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorHotKeyResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorHotKeyResponse ¶
func NewDescribeInstanceMonitorHotKeyResponse() (response *DescribeInstanceMonitorHotKeyResponse)
func (*DescribeInstanceMonitorHotKeyResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorHotKeyResponse) 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 (*DescribeInstanceMonitorHotKeyResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorHotKeyResponse) ToJsonString() string
type DescribeInstanceMonitorHotKeyResponseParams ¶
type DescribeInstanceMonitorHotKeyResponseParams struct { // Hot key details Data []*HotKeyInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorSIPRequest ¶
type DescribeInstanceMonitorSIPRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceMonitorSIPRequest ¶
func NewDescribeInstanceMonitorSIPRequest() (request *DescribeInstanceMonitorSIPRequest)
func (*DescribeInstanceMonitorSIPRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorSIPRequest) 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 (*DescribeInstanceMonitorSIPRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorSIPRequest) ToJsonString() string
type DescribeInstanceMonitorSIPRequestParams ¶
type DescribeInstanceMonitorSIPRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceMonitorSIPResponse ¶
type DescribeInstanceMonitorSIPResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorSIPResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorSIPResponse ¶
func NewDescribeInstanceMonitorSIPResponse() (response *DescribeInstanceMonitorSIPResponse)
func (*DescribeInstanceMonitorSIPResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorSIPResponse) 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 (*DescribeInstanceMonitorSIPResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorSIPResponse) ToJsonString() string
type DescribeInstanceMonitorSIPResponseParams ¶
type DescribeInstanceMonitorSIPResponseParams struct { // Access source information Data []*SourceInfo `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorTookDistRequest ¶
type DescribeInstanceMonitorTookDistRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
func NewDescribeInstanceMonitorTookDistRequest ¶
func NewDescribeInstanceMonitorTookDistRequest() (request *DescribeInstanceMonitorTookDistRequest)
func (*DescribeInstanceMonitorTookDistRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorTookDistRequest) 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 (*DescribeInstanceMonitorTookDistRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorTookDistRequest) ToJsonString() string
type DescribeInstanceMonitorTookDistRequestParams ¶
type DescribeInstanceMonitorTookDistRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time, such as "20190219" Date *string `json:"Date,omitempty" name:"Date"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
Predefined struct for user
type DescribeInstanceMonitorTookDistResponse ¶
type DescribeInstanceMonitorTookDistResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorTookDistResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorTookDistResponse ¶
func NewDescribeInstanceMonitorTookDistResponse() (response *DescribeInstanceMonitorTookDistResponse)
func (*DescribeInstanceMonitorTookDistResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorTookDistResponse) 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 (*DescribeInstanceMonitorTookDistResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorTookDistResponse) ToJsonString() string
type DescribeInstanceMonitorTookDistResponseParams ¶
type DescribeInstanceMonitorTookDistResponseParams struct { // Latency distribution information Data []*DelayDistribution `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorTopNCmdRequest ¶
type DescribeInstanceMonitorTopNCmdRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
func NewDescribeInstanceMonitorTopNCmdRequest ¶
func NewDescribeInstanceMonitorTopNCmdRequest() (request *DescribeInstanceMonitorTopNCmdRequest)
func (*DescribeInstanceMonitorTopNCmdRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdRequest) 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 (*DescribeInstanceMonitorTopNCmdRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdRequest) ToJsonString() string
type DescribeInstanceMonitorTopNCmdRequestParams ¶
type DescribeInstanceMonitorTopNCmdRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
Predefined struct for user
type DescribeInstanceMonitorTopNCmdResponse ¶
type DescribeInstanceMonitorTopNCmdResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorTopNCmdResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorTopNCmdResponse ¶
func NewDescribeInstanceMonitorTopNCmdResponse() (response *DescribeInstanceMonitorTopNCmdResponse)
func (*DescribeInstanceMonitorTopNCmdResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdResponse) 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 (*DescribeInstanceMonitorTopNCmdResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdResponse) ToJsonString() string
type DescribeInstanceMonitorTopNCmdResponseParams ¶
type DescribeInstanceMonitorTopNCmdResponseParams struct { // Access command information Data []*SourceCommand `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceMonitorTopNCmdTookRequest ¶
type DescribeInstanceMonitorTopNCmdTookRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
func NewDescribeInstanceMonitorTopNCmdTookRequest ¶
func NewDescribeInstanceMonitorTopNCmdTookRequest() (request *DescribeInstanceMonitorTopNCmdTookRequest)
func (*DescribeInstanceMonitorTopNCmdTookRequest) FromJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdTookRequest) 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 (*DescribeInstanceMonitorTopNCmdTookRequest) ToJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdTookRequest) ToJsonString() string
type DescribeInstanceMonitorTopNCmdTookRequestParams ¶
type DescribeInstanceMonitorTopNCmdTookRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Time span. 1: real time; 2: last 30 minutes; 3: last 6 hours; 4: last 24 hours SpanType *int64 `json:"SpanType,omitempty" name:"SpanType"` }
Predefined struct for user
type DescribeInstanceMonitorTopNCmdTookResponse ¶
type DescribeInstanceMonitorTopNCmdTookResponse struct { *tchttp.BaseResponse Response *DescribeInstanceMonitorTopNCmdTookResponseParams `json:"Response"` }
func NewDescribeInstanceMonitorTopNCmdTookResponse ¶
func NewDescribeInstanceMonitorTopNCmdTookResponse() (response *DescribeInstanceMonitorTopNCmdTookResponse)
func (*DescribeInstanceMonitorTopNCmdTookResponse) FromJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdTookResponse) 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 (*DescribeInstanceMonitorTopNCmdTookResponse) ToJsonString ¶
func (r *DescribeInstanceMonitorTopNCmdTookResponse) ToJsonString() string
type DescribeInstanceMonitorTopNCmdTookResponseParams ¶
type DescribeInstanceMonitorTopNCmdTookResponseParams struct { // Duration details Data []*CommandTake `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceNodeInfoRequest ¶
type DescribeInstanceNodeInfoRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List size Size of node information returned per page. Default value: `20`. Maximum value: `1000`. This field has been disused. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). This field has been disused. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeInstanceNodeInfoRequest ¶
func NewDescribeInstanceNodeInfoRequest() (request *DescribeInstanceNodeInfoRequest)
func (*DescribeInstanceNodeInfoRequest) FromJsonString ¶
func (r *DescribeInstanceNodeInfoRequest) 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 (*DescribeInstanceNodeInfoRequest) ToJsonString ¶
func (r *DescribeInstanceNodeInfoRequest) ToJsonString() string
type DescribeInstanceNodeInfoRequestParams ¶
type DescribeInstanceNodeInfoRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List size Size of node information returned per page. Default value: `20`. Maximum value: `1000`. This field has been disused. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). This field has been disused. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeInstanceNodeInfoResponse ¶
type DescribeInstanceNodeInfoResponse struct { *tchttp.BaseResponse Response *DescribeInstanceNodeInfoResponseParams `json:"Response"` }
func NewDescribeInstanceNodeInfoResponse ¶
func NewDescribeInstanceNodeInfoResponse() (response *DescribeInstanceNodeInfoResponse)
func (*DescribeInstanceNodeInfoResponse) FromJsonString ¶
func (r *DescribeInstanceNodeInfoResponse) 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 (*DescribeInstanceNodeInfoResponse) ToJsonString ¶
func (r *DescribeInstanceNodeInfoResponse) ToJsonString() string
type DescribeInstanceNodeInfoResponseParams ¶
type DescribeInstanceNodeInfoResponseParams struct { // The number of proxy nodes ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"` // Proxy node information // Note: This field may return null, indicating that no valid values can be obtained. Proxy []*ProxyNodes `json:"Proxy,omitempty" name:"Proxy"` // The number of Redis nodes RedisCount *int64 `json:"RedisCount,omitempty" name:"RedisCount"` // Redis node information // Note: This field may return null, indicating that no valid values can be obtained. Redis []*RedisNodes `json:"Redis,omitempty" name:"Redis"` // This parameter has been disused. TendisCount *int64 `json:"TendisCount,omitempty" name:"TendisCount"` // This parameter has been disused. // Note: This field may return null, indicating that no valid values can be obtained. Tendis []*TendisNodes `json:"Tendis,omitempty" name:"Tendis"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceParamRecordsRequest ¶
type DescribeInstanceParamRecordsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Maximum number of results returned per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
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 DescribeInstanceParamRecordsRequestParams ¶
type DescribeInstanceParamRecordsRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Maximum number of results returned per page Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeInstanceParamRecordsResponse ¶
type DescribeInstanceParamRecordsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceParamRecordsResponseParams `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 DescribeInstanceParamRecordsResponseParams ¶
type DescribeInstanceParamRecordsResponseParams struct { // Total number of modifications. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information of modifications. InstanceParamHistory []*InstanceParamHistory `json:"InstanceParamHistory,omitempty" name:"InstanceParamHistory"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceParamsRequest ¶
type DescribeInstanceParamsRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. 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 DescribeInstanceParamsRequestParams ¶
type DescribeInstanceParamsRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceParamsResponse ¶
type DescribeInstanceParamsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceParamsResponseParams `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 DescribeInstanceParamsResponseParams ¶
type DescribeInstanceParamsResponseParams struct { // Total number of the parameter lists TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Instance parameter in Enum type InstanceEnumParam []*InstanceEnumParam `json:"InstanceEnumParam,omitempty" name:"InstanceEnumParam"` // Instance parameter in Integer type InstanceIntegerParam []*InstanceIntegerParam `json:"InstanceIntegerParam,omitempty" name:"InstanceIntegerParam"` // Instance parameter in Char type InstanceTextParam []*InstanceTextParam `json:"InstanceTextParam,omitempty" name:"InstanceTextParam"` // Instance parameter in Multi type InstanceMultiParam []*InstanceMultiParam `json:"InstanceMultiParam,omitempty" name:"InstanceMultiParam"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceSecurityGroupRequest ¶
type DescribeInstanceSecurityGroupRequest struct { *tchttp.BaseRequest // List of instance IDs, such as "crs-f2ho5rsz\n". InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeInstanceSecurityGroupRequest ¶
func NewDescribeInstanceSecurityGroupRequest() (request *DescribeInstanceSecurityGroupRequest)
func (*DescribeInstanceSecurityGroupRequest) FromJsonString ¶
func (r *DescribeInstanceSecurityGroupRequest) 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 (*DescribeInstanceSecurityGroupRequest) ToJsonString ¶
func (r *DescribeInstanceSecurityGroupRequest) ToJsonString() string
type DescribeInstanceSecurityGroupRequestParams ¶
type DescribeInstanceSecurityGroupRequestParams struct { // List of instance IDs, such as "crs-f2ho5rsz\n". InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DescribeInstanceSecurityGroupResponse ¶
type DescribeInstanceSecurityGroupResponse struct { *tchttp.BaseResponse Response *DescribeInstanceSecurityGroupResponseParams `json:"Response"` }
func NewDescribeInstanceSecurityGroupResponse ¶
func NewDescribeInstanceSecurityGroupResponse() (response *DescribeInstanceSecurityGroupResponse)
func (*DescribeInstanceSecurityGroupResponse) FromJsonString ¶
func (r *DescribeInstanceSecurityGroupResponse) 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 (*DescribeInstanceSecurityGroupResponse) ToJsonString ¶
func (r *DescribeInstanceSecurityGroupResponse) ToJsonString() string
type DescribeInstanceSecurityGroupResponseParams ¶
type DescribeInstanceSecurityGroupResponseParams struct { // Security group information of an instance InstanceSecurityGroupsDetail []*InstanceSecurityGroupDetail `json:"InstanceSecurityGroupsDetail,omitempty" name:"InstanceSecurityGroupsDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstanceShardsRequest ¶
type DescribeInstanceShardsRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to filter out the replica node information. Valid values: `true` (yes), `false` (no). FilterSlave *bool `json:"FilterSlave,omitempty" name:"FilterSlave"` }
func NewDescribeInstanceShardsRequest ¶
func NewDescribeInstanceShardsRequest() (request *DescribeInstanceShardsRequest)
func (*DescribeInstanceShardsRequest) FromJsonString ¶
func (r *DescribeInstanceShardsRequest) 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 (*DescribeInstanceShardsRequest) ToJsonString ¶
func (r *DescribeInstanceShardsRequest) ToJsonString() string
type DescribeInstanceShardsRequestParams ¶
type DescribeInstanceShardsRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to filter out the replica node information. Valid values: `true` (yes), `false` (no). FilterSlave *bool `json:"FilterSlave,omitempty" name:"FilterSlave"` }
Predefined struct for user
type DescribeInstanceShardsResponse ¶
type DescribeInstanceShardsResponse struct { *tchttp.BaseResponse Response *DescribeInstanceShardsResponseParams `json:"Response"` }
func NewDescribeInstanceShardsResponse ¶
func NewDescribeInstanceShardsResponse() (response *DescribeInstanceShardsResponse)
func (*DescribeInstanceShardsResponse) FromJsonString ¶
func (r *DescribeInstanceShardsResponse) 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 (*DescribeInstanceShardsResponse) ToJsonString ¶
func (r *DescribeInstanceShardsResponse) ToJsonString() string
type DescribeInstanceShardsResponseParams ¶
type DescribeInstanceShardsResponseParams struct { // List information of the instance shards, which includes node information, node ID, key count, used capacity, and capacity slope. InstanceShards []*InstanceClusterShard `json:"InstanceShards,omitempty" name:"InstanceShards"` // Number of instance shard nodes 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"` }
Predefined struct for user
type DescribeInstanceZoneInfoRequest ¶
type DescribeInstanceZoneInfoRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeInstanceZoneInfoRequest ¶
func NewDescribeInstanceZoneInfoRequest() (request *DescribeInstanceZoneInfoRequest)
func (*DescribeInstanceZoneInfoRequest) FromJsonString ¶
func (r *DescribeInstanceZoneInfoRequest) 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 (*DescribeInstanceZoneInfoRequest) ToJsonString ¶
func (r *DescribeInstanceZoneInfoRequest) ToJsonString() string
type DescribeInstanceZoneInfoRequestParams ¶
type DescribeInstanceZoneInfoRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeInstanceZoneInfoResponse ¶
type DescribeInstanceZoneInfoResponse struct { *tchttp.BaseResponse Response *DescribeInstanceZoneInfoResponseParams `json:"Response"` }
func NewDescribeInstanceZoneInfoResponse ¶
func NewDescribeInstanceZoneInfoResponse() (response *DescribeInstanceZoneInfoResponse)
func (*DescribeInstanceZoneInfoResponse) FromJsonString ¶
func (r *DescribeInstanceZoneInfoResponse) 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 (*DescribeInstanceZoneInfoResponse) ToJsonString ¶
func (r *DescribeInstanceZoneInfoResponse) ToJsonString() string
type DescribeInstanceZoneInfoResponseParams ¶
type DescribeInstanceZoneInfoResponseParams struct { // Number of instance node groups TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance node groups ReplicaGroups []*ReplicaGroup `json:"ReplicaGroups,omitempty" name:"ReplicaGroups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct { *tchttp.BaseRequest // Number of instances returned per page. Default value: `20`. Maximum value: `1000`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. // InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance list sorting criteria. The enumerated values are as listed below: <ul><li>`projectId`: Project ID. </li><li>`createtime`: Instance creation time. </li><li>`instancename`: Instance name. </li><li>`type`: Instance type. </li><li>`curDeadline`: Instance expiration time. </li></ul> OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Instance sorting order. <ul><li>`1`: Descending. </li><li>`0`: Ascending. Default value: `1`.</li></ul> OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"` // Array of VPC IDs such as 47525. If this parameter is not passed in or the array is empty, the classic network will be selected by default. This parameter is retained and can be ignored. It is set based on `UniqVpcIds` parameter format. VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` // Array of VPC subnet IDs such as 56854. This parameter is retained and can be ignored. It is set based on `UniqSubnetIds` parameter format. SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Keywords for fuzzy query. which can be used to fuzzy query an instance by its ID or name. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // Array of project IDs ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Array of VPC IDs such as vpc-sad23jfdfk. If this parameter is not passed in or or the array is empty, the classic network will be selected by default. UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"` // Array of VPC subnet IDs such as subnet-fdj24n34j2 UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"` // Array of region IDs (disused). The corresponding region can be queried through the common parameter `Region`. RegionIds []*int64 `json:"RegionIds,omitempty" name:"RegionIds"` // Instance status. <ul><li>`0`: Uninitialized. </li><li>`1`: In the process. </li><li>`2`: Running. </li><li>`-2`: Isolated. </li><li>`-3`: To be deleted. </li></ul> Status []*int64 `json:"Status,omitempty" name:"Status"` // Instance architecture. <ul><li>`1`: Standalone edition. </li><li>`2`: Master-replica edition. </li><li>`3`: Cluster edition. </li></ul> TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"` // Storage engine information. Valid values: `Redis-2.8`, `Redis-4.0`, `Redis-5.0`, `Redis-6.0` or `CKV`. EngineName *string `json:"EngineName,omitempty" name:"EngineName"` // Renewal mode. Valid values: <ul><li>`0`: Manual renewal </li><li>`1`: Auto-renewal </li><li>`2`: No renewal upon expiration </ul> AutoRenew []*int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Billing mode. Only pay-as-you-go billing is supported. BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"` // Instance type. Valid values: - `2`: Redis 2.8 Memory Edition (Standard Architecture). - `3`: CKV 3.2 Memory Edition (Standard Architecture). - `4`: CKV 3.2 Memory Edition (Cluster Architecture). - `5`: Redis 2.8 Memory Edition (Standalone). - `6`: Redis 4.0 Memory Edition (Standard Architecture). - `7`: Redis 4.0 Memory Edition (Cluster Architecture). - `8`: Redis 5.0 Memory Edition (Standard Architecture). - `9`: Redis 5.0 Memory Edition (Cluster Architecture). - `15`: Redis 6.2 Memory Edition (Standard Architecture). - `16`: Redis 6.2 Memory Edition (Cluster Architecture). Type *int64 `json:"Type,omitempty" name:"Type"` // Array of the search keywords, which can query the instance by its ID, name, IP address. SearchKeys []*string `json:"SearchKeys,omitempty" name:"SearchKeys"` // Internal parameter, which can be ignored. TypeList []*int64 `json:"TypeList,omitempty" name:"TypeList"` // Internal parameter, which can be ignored. MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"` // Resources filter by tag key and value. If this parameter is not specified or is an empty array, resources will not be filtered. InstanceTags []*InstanceTagInfo `json:"InstanceTags,omitempty" name:"InstanceTags"` // Resources filter by tag key. If this parameter is not specified or is an empty array, resources will not be filtered. TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Instance product version. If this parameter is not passed in or the array is empty, the instances will not be filtered based this parameter by default. <ul><li>`local`: Local disk edition. </li><li>`cdc`: Dedicated cluster edition. </li></ul> ProductVersions []*string `json:"ProductVersions,omitempty" name:"ProductVersions"` // Batch query of the specified instances ID. The number of results returned is based on `Limit`. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // AZ deployment mode. <ul><li>`singleaz`: Single-AZ. </li><li>`1`: Multi-AZ. </li></ul> AzMode *string `json:"AzMode,omitempty" name:"AzMode"` }
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesRequestParams ¶
type DescribeInstancesRequestParams struct { // Number of instances returned per page. Default value: `20`. Maximum value: `1000`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. // InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance list sorting criteria. The enumerated values are as listed below: <ul><li>`projectId`: Project ID. </li><li>`createtime`: Instance creation time. </li><li>`instancename`: Instance name. </li><li>`type`: Instance type. </li><li>`curDeadline`: Instance expiration time. </li></ul> OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Instance sorting order. <ul><li>`1`: Descending. </li><li>`0`: Ascending. Default value: `1`.</li></ul> OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"` // Array of VPC IDs such as 47525. If this parameter is not passed in or the array is empty, the classic network will be selected by default. This parameter is retained and can be ignored. It is set based on `UniqVpcIds` parameter format. VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` // Array of VPC subnet IDs such as 56854. This parameter is retained and can be ignored. It is set based on `UniqSubnetIds` parameter format. SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // Keywords for fuzzy query. which can be used to fuzzy query an instance by its ID or name. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // Array of project IDs ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Array of VPC IDs such as vpc-sad23jfdfk. If this parameter is not passed in or or the array is empty, the classic network will be selected by default. UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"` // Array of VPC subnet IDs such as subnet-fdj24n34j2 UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"` // Array of region IDs (disused). The corresponding region can be queried through the common parameter `Region`. RegionIds []*int64 `json:"RegionIds,omitempty" name:"RegionIds"` // Instance status. <ul><li>`0`: Uninitialized. </li><li>`1`: In the process. </li><li>`2`: Running. </li><li>`-2`: Isolated. </li><li>`-3`: To be deleted. </li></ul> Status []*int64 `json:"Status,omitempty" name:"Status"` // Instance architecture. <ul><li>`1`: Standalone edition. </li><li>`2`: Master-replica edition. </li><li>`3`: Cluster edition. </li></ul> TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"` // Storage engine information. Valid values: `Redis-2.8`, `Redis-4.0`, `Redis-5.0`, `Redis-6.0` or `CKV`. EngineName *string `json:"EngineName,omitempty" name:"EngineName"` // Renewal mode. Valid values: <ul><li>`0`: Manual renewal </li><li>`1`: Auto-renewal </li><li>`2`: No renewal upon expiration </ul> AutoRenew []*int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` // Billing mode. Only pay-as-you-go billing is supported. BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"` // Instance type. Valid values: - `2`: Redis 2.8 Memory Edition (Standard Architecture). - `3`: CKV 3.2 Memory Edition (Standard Architecture). - `4`: CKV 3.2 Memory Edition (Cluster Architecture). - `5`: Redis 2.8 Memory Edition (Standalone). - `6`: Redis 4.0 Memory Edition (Standard Architecture). - `7`: Redis 4.0 Memory Edition (Cluster Architecture). - `8`: Redis 5.0 Memory Edition (Standard Architecture). - `9`: Redis 5.0 Memory Edition (Cluster Architecture). - `15`: Redis 6.2 Memory Edition (Standard Architecture). - `16`: Redis 6.2 Memory Edition (Cluster Architecture). Type *int64 `json:"Type,omitempty" name:"Type"` // Array of the search keywords, which can query the instance by its ID, name, IP address. SearchKeys []*string `json:"SearchKeys,omitempty" name:"SearchKeys"` // Internal parameter, which can be ignored. TypeList []*int64 `json:"TypeList,omitempty" name:"TypeList"` // Internal parameter, which can be ignored. MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"` // Resources filter by tag key and value. If this parameter is not specified or is an empty array, resources will not be filtered. InstanceTags []*InstanceTagInfo `json:"InstanceTags,omitempty" name:"InstanceTags"` // Resources filter by tag key. If this parameter is not specified or is an empty array, resources will not be filtered. TagKeys []*string `json:"TagKeys,omitempty" name:"TagKeys"` // Instance product version. If this parameter is not passed in or the array is empty, the instances will not be filtered based this parameter by default. <ul><li>`local`: Local disk edition. </li><li>`cdc`: Dedicated cluster edition. </li></ul> ProductVersions []*string `json:"ProductVersions,omitempty" name:"ProductVersions"` // Batch query of the specified instances ID. The number of results returned is based on `Limit`. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // AZ deployment mode. <ul><li>`singleaz`: Single-AZ. </li><li>`1`: Multi-AZ. </li></ul> AzMode *string `json:"AzMode,omitempty" name:"AzMode"` }
Predefined struct for user
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { *tchttp.BaseResponse Response *DescribeInstancesResponseParams `json:"Response"` }
func NewDescribeInstancesResponse ¶
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)
func (*DescribeInstancesResponse) FromJsonString ¶
func (r *DescribeInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesResponse) ToJsonString ¶
func (r *DescribeInstancesResponse) ToJsonString() string
type DescribeInstancesResponseParams ¶
type DescribeInstancesResponseParams struct { // Total number of instances TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instance details InstanceSet []*InstanceSet `json:"InstanceSet,omitempty" name:"InstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeMaintenanceWindowRequest ¶
type DescribeMaintenanceWindowRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeMaintenanceWindowRequest ¶
func NewDescribeMaintenanceWindowRequest() (request *DescribeMaintenanceWindowRequest)
func (*DescribeMaintenanceWindowRequest) FromJsonString ¶
func (r *DescribeMaintenanceWindowRequest) 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 (*DescribeMaintenanceWindowRequest) ToJsonString ¶
func (r *DescribeMaintenanceWindowRequest) ToJsonString() string
type DescribeMaintenanceWindowRequestParams ¶
type DescribeMaintenanceWindowRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeMaintenanceWindowResponse ¶
type DescribeMaintenanceWindowResponse struct { *tchttp.BaseResponse Response *DescribeMaintenanceWindowResponseParams `json:"Response"` }
func NewDescribeMaintenanceWindowResponse ¶
func NewDescribeMaintenanceWindowResponse() (response *DescribeMaintenanceWindowResponse)
func (*DescribeMaintenanceWindowResponse) FromJsonString ¶
func (r *DescribeMaintenanceWindowResponse) 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 (*DescribeMaintenanceWindowResponse) ToJsonString ¶
func (r *DescribeMaintenanceWindowResponse) ToJsonString() string
type DescribeMaintenanceWindowResponseParams ¶
type DescribeMaintenanceWindowResponseParams struct { // Start time of the maintenance window, such as 17:00. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the maintenance window, such as 19:00. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeParamTemplateInfoRequest ¶
type DescribeParamTemplateInfoRequest struct { *tchttp.BaseRequest // The parameter template ID for query. Get parameter template list information through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewDescribeParamTemplateInfoRequest ¶
func NewDescribeParamTemplateInfoRequest() (request *DescribeParamTemplateInfoRequest)
func (*DescribeParamTemplateInfoRequest) FromJsonString ¶
func (r *DescribeParamTemplateInfoRequest) 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 (*DescribeParamTemplateInfoRequest) ToJsonString ¶
func (r *DescribeParamTemplateInfoRequest) ToJsonString() string
type DescribeParamTemplateInfoRequestParams ¶
type DescribeParamTemplateInfoRequestParams struct { // The parameter template ID for query. Get parameter template list information through the [DescribeParamTemplates](https://intl.cloud.tencent.com/document/product/239/58750?from_cn_redirect=1) API. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
Predefined struct for user
type DescribeParamTemplateInfoResponse ¶
type DescribeParamTemplateInfoResponse struct { *tchttp.BaseResponse Response *DescribeParamTemplateInfoResponseParams `json:"Response"` }
func NewDescribeParamTemplateInfoResponse ¶
func NewDescribeParamTemplateInfoResponse() (response *DescribeParamTemplateInfoResponse)
func (*DescribeParamTemplateInfoResponse) FromJsonString ¶
func (r *DescribeParamTemplateInfoResponse) 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 (*DescribeParamTemplateInfoResponse) ToJsonString ¶
func (r *DescribeParamTemplateInfoResponse) ToJsonString() string
type DescribeParamTemplateInfoResponseParams ¶
type DescribeParamTemplateInfoResponseParams struct { // Quantity of parameters in the parameter template TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Parameter template ID. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // Parameter template name. Name *string `json:"Name,omitempty" name:"Name"` // Product type // - `2`: Redis 2.8 Memory Edition (Standard Architecture). // - `3`: CKV 3.2 Memory Edition (Standard Architecture). // - `4`: CKV 3.2 Memory Edition (Cluster Architecture). // - `5`: Redis 2.8 Memory Edition (Standalone). // - `6`: Redis 4.0 Memory Edition (Standard Architecture). // - `7`: Redis 4.0 Memory Edition (Cluster Architecture). // - `8`: Redis 5.0 Memory Edition (Standard Architecture). // - `9`: Redis 5.0 Memory Edition (Cluster Architecture). // - `15`: Redis 6.2 Memory Edition (Standard Architecture). // - `16`: Redis 6.2 Memory Edition (Cluster Architecture). ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"` // Parameter template description Description *string `json:"Description,omitempty" name:"Description"` // Parameter details, including parameter name, current value, default value, maximum value, minimum value, enumeration value and other information. 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"` }
Predefined struct for user
type DescribeParamTemplatesRequest ¶
type DescribeParamTemplatesRequest struct { *tchttp.BaseRequest // Array of instance types. Valid values: `1` (Redis 2.8 Memory Edition in cluster architecture), `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `5` (Redis 2.8 Memory Edition in standalone architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture). ProductTypes []*int64 `json:"ProductTypes,omitempty" name:"ProductTypes"` // Array of template names. TemplateNames []*string `json:"TemplateNames,omitempty" name:"TemplateNames"` // Array of template IDs. TemplateIds []*string `json:"TemplateIds,omitempty" name:"TemplateIds"` }
func NewDescribeParamTemplatesRequest ¶
func NewDescribeParamTemplatesRequest() (request *DescribeParamTemplatesRequest)
func (*DescribeParamTemplatesRequest) FromJsonString ¶
func (r *DescribeParamTemplatesRequest) 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 (*DescribeParamTemplatesRequest) ToJsonString ¶
func (r *DescribeParamTemplatesRequest) ToJsonString() string
type DescribeParamTemplatesRequestParams ¶
type DescribeParamTemplatesRequestParams struct { // Array of instance types. Valid values: `1` (Redis 2.8 Memory Edition in cluster architecture), `2` (Redis 2.8 Memory Edition in standard architecture), `3` (CKV 3.2 Memory Edition in standard architecture), `4` (CKV 3.2 Memory Edition in cluster architecture), `5` (Redis 2.8 Memory Edition in standalone architecture), `6` (Redis 4.0 Memory Edition in standard architecture), `7` (Redis 4.0 Memory Edition in cluster architecture), `8` (Redis 5.0 Memory Edition in standard architecture), `9` (Redis 5.0 Memory Edition in cluster architecture). ProductTypes []*int64 `json:"ProductTypes,omitempty" name:"ProductTypes"` // Array of template names. TemplateNames []*string `json:"TemplateNames,omitempty" name:"TemplateNames"` // Array of template IDs. TemplateIds []*string `json:"TemplateIds,omitempty" name:"TemplateIds"` }
Predefined struct for user
type DescribeParamTemplatesResponse ¶
type DescribeParamTemplatesResponse struct { *tchttp.BaseResponse Response *DescribeParamTemplatesResponseParams `json:"Response"` }
func NewDescribeParamTemplatesResponse ¶
func NewDescribeParamTemplatesResponse() (response *DescribeParamTemplatesResponse)
func (*DescribeParamTemplatesResponse) FromJsonString ¶
func (r *DescribeParamTemplatesResponse) 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 (*DescribeParamTemplatesResponse) ToJsonString ¶
func (r *DescribeParamTemplatesResponse) ToJsonString() string
type DescribeParamTemplatesResponseParams ¶
type DescribeParamTemplatesResponseParams struct { // Number of parameter templates of the user. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Parameter template details. Items []*ParamTemplateInfo `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"` }
Predefined struct for user
type DescribeProductInfoRequest ¶
type DescribeProductInfoRequest struct {
*tchttp.BaseRequest
}
func NewDescribeProductInfoRequest ¶
func NewDescribeProductInfoRequest() (request *DescribeProductInfoRequest)
func (*DescribeProductInfoRequest) FromJsonString ¶
func (r *DescribeProductInfoRequest) 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 (*DescribeProductInfoRequest) ToJsonString ¶
func (r *DescribeProductInfoRequest) ToJsonString() string
type DescribeProductInfoRequestParams ¶
type DescribeProductInfoRequestParams struct { }
Predefined struct for user
type DescribeProductInfoResponse ¶
type DescribeProductInfoResponse struct { *tchttp.BaseResponse Response *DescribeProductInfoResponseParams `json:"Response"` }
func NewDescribeProductInfoResponse ¶
func NewDescribeProductInfoResponse() (response *DescribeProductInfoResponse)
func (*DescribeProductInfoResponse) FromJsonString ¶
func (r *DescribeProductInfoResponse) 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 (*DescribeProductInfoResponse) ToJsonString ¶
func (r *DescribeProductInfoResponse) ToJsonString() string
type DescribeProductInfoResponseParams ¶
type DescribeProductInfoResponseParams struct { // Sale information of a region. RegionSet []*RegionConf `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"` }
Predefined struct for user
type DescribeProjectSecurityGroupRequest ¶
type DescribeProjectSecurityGroupRequest struct { *tchttp.BaseRequest // 0: default project; -1: all projects; >0: specified project ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` }
func NewDescribeProjectSecurityGroupRequest ¶
func NewDescribeProjectSecurityGroupRequest() (request *DescribeProjectSecurityGroupRequest)
func (*DescribeProjectSecurityGroupRequest) FromJsonString ¶
func (r *DescribeProjectSecurityGroupRequest) 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 (*DescribeProjectSecurityGroupRequest) ToJsonString ¶
func (r *DescribeProjectSecurityGroupRequest) ToJsonString() string
type DescribeProjectSecurityGroupRequestParams ¶
type DescribeProjectSecurityGroupRequestParams struct { // 0: default project; -1: all projects; >0: specified project ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` }
Predefined struct for user
type DescribeProjectSecurityGroupResponse ¶
type DescribeProjectSecurityGroupResponse struct { *tchttp.BaseResponse Response *DescribeProjectSecurityGroupResponseParams `json:"Response"` }
func NewDescribeProjectSecurityGroupResponse ¶
func NewDescribeProjectSecurityGroupResponse() (response *DescribeProjectSecurityGroupResponse)
func (*DescribeProjectSecurityGroupResponse) FromJsonString ¶
func (r *DescribeProjectSecurityGroupResponse) 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 (*DescribeProjectSecurityGroupResponse) ToJsonString ¶
func (r *DescribeProjectSecurityGroupResponse) ToJsonString() string
type DescribeProjectSecurityGroupResponseParams ¶
type DescribeProjectSecurityGroupResponseParams struct { // Security group of the project SecurityGroupDetails []*SecurityGroupDetail `json:"SecurityGroupDetails,omitempty" name:"SecurityGroupDetails"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeProjectSecurityGroupsRequest ¶
type DescribeProjectSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Offset, which is an integral multiple of `Limit`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The number of security groups to be pulled. Default value: `20`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Search criteria. You can enter a security group ID or name. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
func NewDescribeProjectSecurityGroupsRequest ¶
func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurityGroupsRequest)
func (*DescribeProjectSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string
type DescribeProjectSecurityGroupsRequestParams ¶
type DescribeProjectSecurityGroupsRequestParams struct { // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // Project ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Offset, which is an integral multiple of `Limit`. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // The number of security groups to be pulled. Default value: `20`. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Search criteria. You can enter a security group ID or name. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
Predefined struct for user
type DescribeProjectSecurityGroupsResponse ¶
type DescribeProjectSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DescribeProjectSecurityGroupsResponseParams `json:"Response"` }
func NewDescribeProjectSecurityGroupsResponse ¶
func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse)
func (*DescribeProjectSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProjectSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeProjectSecurityGroupsResponse) ToJsonString() string
type DescribeProjectSecurityGroupsResponseParams ¶
type DescribeProjectSecurityGroupsResponseParams struct { // Security group rules. Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"` // Total number of eligible security groups. Total *uint64 `json:"Total,omitempty" name:"Total"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeProxySlowLogRequest ¶
type DescribeProxySlowLogRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time of slow query BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time of slow query EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Slow query threshold in milliseconds MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Number of results per page. Default value: `20`. Value range: [20,1000]. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeProxySlowLogRequest ¶
func NewDescribeProxySlowLogRequest() (request *DescribeProxySlowLogRequest)
func (*DescribeProxySlowLogRequest) FromJsonString ¶
func (r *DescribeProxySlowLogRequest) 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 (*DescribeProxySlowLogRequest) ToJsonString ¶
func (r *DescribeProxySlowLogRequest) ToJsonString() string
type DescribeProxySlowLogRequestParams ¶
type DescribeProxySlowLogRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time of slow query BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time of slow query EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Slow query threshold in milliseconds MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Number of results per page. Default value: `20`. Value range: [20,1000]. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeProxySlowLogResponse ¶
type DescribeProxySlowLogResponse struct { *tchttp.BaseResponse Response *DescribeProxySlowLogResponseParams `json:"Response"` }
func NewDescribeProxySlowLogResponse ¶
func NewDescribeProxySlowLogResponse() (response *DescribeProxySlowLogResponse)
func (*DescribeProxySlowLogResponse) FromJsonString ¶
func (r *DescribeProxySlowLogResponse) 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 (*DescribeProxySlowLogResponse) ToJsonString ¶
func (r *DescribeProxySlowLogResponse) ToJsonString() string
type DescribeProxySlowLogResponseParams ¶
type DescribeProxySlowLogResponseParams struct { // Total number of slow queries TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Slow query details InstanceProxySlowLogDetail []*InstanceProxySlowlogDetail `json:"InstanceProxySlowLogDetail,omitempty" name:"InstanceProxySlowLogDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeReplicationGroupRequest ¶
type DescribeReplicationGroupRequest struct { *tchttp.BaseRequest // Number of instances returned per page. Default value: `20`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // ID of the specified replication group, such as `crs-rpl-m3zt****`. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get it in the global replication group list. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Keyword for fuzzy query, which can be a replication group ID or name. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get them in the global replication group list. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
func NewDescribeReplicationGroupRequest ¶
func NewDescribeReplicationGroupRequest() (request *DescribeReplicationGroupRequest)
func (*DescribeReplicationGroupRequest) FromJsonString ¶
func (r *DescribeReplicationGroupRequest) 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 (*DescribeReplicationGroupRequest) ToJsonString ¶
func (r *DescribeReplicationGroupRequest) ToJsonString() string
type DescribeReplicationGroupRequestParams ¶
type DescribeReplicationGroupRequestParams struct { // Number of instances returned per page. Default value: `20`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // ID of the specified replication group, such as `crs-rpl-m3zt****`. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get it in the global replication group list. GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Keyword for fuzzy query, which can be a replication group ID or name. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis/replication), and get them in the global replication group list. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` }
Predefined struct for user
type DescribeReplicationGroupResponse ¶
type DescribeReplicationGroupResponse struct { *tchttp.BaseResponse Response *DescribeReplicationGroupResponseParams `json:"Response"` }
func NewDescribeReplicationGroupResponse ¶
func NewDescribeReplicationGroupResponse() (response *DescribeReplicationGroupResponse)
func (*DescribeReplicationGroupResponse) FromJsonString ¶
func (r *DescribeReplicationGroupResponse) 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 (*DescribeReplicationGroupResponse) ToJsonString ¶
func (r *DescribeReplicationGroupResponse) ToJsonString() string
type DescribeReplicationGroupResponseParams ¶
type DescribeReplicationGroupResponseParams struct { // Number of replication groups TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Replication group information Groups []*Groups `json:"Groups,omitempty" name:"Groups"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeSSLStatusRequest ¶
type DescribeSSLStatusRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribeSSLStatusRequest ¶
func NewDescribeSSLStatusRequest() (request *DescribeSSLStatusRequest)
func (*DescribeSSLStatusRequest) FromJsonString ¶
func (r *DescribeSSLStatusRequest) 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 (*DescribeSSLStatusRequest) ToJsonString ¶
func (r *DescribeSSLStatusRequest) ToJsonString() string
type DescribeSSLStatusRequestParams ¶
type DescribeSSLStatusRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DescribeSSLStatusResponse ¶
type DescribeSSLStatusResponse struct { *tchttp.BaseResponse Response *DescribeSSLStatusResponseParams `json:"Response"` }
func NewDescribeSSLStatusResponse ¶
func NewDescribeSSLStatusResponse() (response *DescribeSSLStatusResponse)
func (*DescribeSSLStatusResponse) FromJsonString ¶
func (r *DescribeSSLStatusResponse) 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 (*DescribeSSLStatusResponse) ToJsonString ¶
func (r *DescribeSSLStatusResponse) ToJsonString() string
type DescribeSSLStatusResponseParams ¶
type DescribeSSLStatusResponseParams struct { // Download address for SSL certificate CertDownloadUrl *string `json:"CertDownloadUrl,omitempty" name:"CertDownloadUrl"` // Expiration time of the certificate download address UrlExpiredTime *string `json:"UrlExpiredTime,omitempty" name:"UrlExpiredTime"` // Whether the SSL is enabled for the identified instance. // - `true`: Enabled // - `false`: Disabled SSLConfig *bool `json:"SSLConfig,omitempty" name:"SSLConfig"` // Whether SSL is supported for the identified instance. // -`true`: Supported // -`false`: Not supported FeatureSupport *bool `json:"FeatureSupport,omitempty" name:"FeatureSupport"` // Status of SSL configuration // - `1`: Configuring // - `2`: Configured successfully 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"` }
Predefined struct for user
type DescribeSlowLogRequest ¶
type DescribeSlowLogRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time for prequerying a slow log BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time for prequerying a slow log EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The average execution time threshold of slow query in microseconds MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Number of slow queries displayed per page. Default value: `20`. Value range: [20,1000]. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Slow query offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Node role. <ul><li>`Master`: Master node</li><li>`Slave`: Replica node</li></ul> Role *string `json:"Role,omitempty" name:"Role"` }
func NewDescribeSlowLogRequest ¶
func NewDescribeSlowLogRequest() (request *DescribeSlowLogRequest)
func (*DescribeSlowLogRequest) FromJsonString ¶
func (r *DescribeSlowLogRequest) 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 (*DescribeSlowLogRequest) ToJsonString ¶
func (r *DescribeSlowLogRequest) ToJsonString() string
type DescribeSlowLogRequestParams ¶
type DescribeSlowLogRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time for prequerying a slow log BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time for prequerying a slow log EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The average execution time threshold of slow query in microseconds MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Number of slow queries displayed per page. Default value: `20`. Value range: [20,1000]. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Slow query offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Node role. <ul><li>`Master`: Master node</li><li>`Slave`: Replica node</li></ul> Role *string `json:"Role,omitempty" name:"Role"` }
Predefined struct for user
type DescribeSlowLogResponse ¶
type DescribeSlowLogResponse struct { *tchttp.BaseResponse Response *DescribeSlowLogResponseParams `json:"Response"` }
func NewDescribeSlowLogResponse ¶
func NewDescribeSlowLogResponse() (response *DescribeSlowLogResponse)
func (*DescribeSlowLogResponse) FromJsonString ¶
func (r *DescribeSlowLogResponse) 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 (*DescribeSlowLogResponse) ToJsonString ¶
func (r *DescribeSlowLogResponse) ToJsonString() string
type DescribeSlowLogResponseParams ¶
type DescribeSlowLogResponseParams struct { // Total number of slow queries TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Slow query details InstanceSlowlogDetail []*InstanceSlowlogDetail `json:"InstanceSlowlogDetail,omitempty" name:"InstanceSlowlogDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTaskInfoRequest ¶
type DescribeTaskInfoRequest struct { *tchttp.BaseRequest // Task ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeTaskInfoRequest ¶
func NewDescribeTaskInfoRequest() (request *DescribeTaskInfoRequest)
func (*DescribeTaskInfoRequest) FromJsonString ¶
func (r *DescribeTaskInfoRequest) 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 (*DescribeTaskInfoRequest) ToJsonString ¶
func (r *DescribeTaskInfoRequest) ToJsonString() string
type DescribeTaskInfoRequestParams ¶
type DescribeTaskInfoRequestParams struct { // Task ID TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` }
Predefined struct for user
type DescribeTaskInfoResponse ¶
type DescribeTaskInfoResponse struct { *tchttp.BaseResponse Response *DescribeTaskInfoResponseParams `json:"Response"` }
func NewDescribeTaskInfoResponse ¶
func NewDescribeTaskInfoResponse() (response *DescribeTaskInfoResponse)
func (*DescribeTaskInfoResponse) FromJsonString ¶
func (r *DescribeTaskInfoResponse) 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 (*DescribeTaskInfoResponse) ToJsonString ¶
func (r *DescribeTaskInfoResponse) ToJsonString() string
type DescribeTaskInfoResponseParams ¶
type DescribeTaskInfoResponseParams struct { // Task status. Valid values: // - `preparing`: To be run // - `running`: Running // - `succeed`: Succeeded // - `failed`: Failed // - `Error`: Error occurred while running Status *string `json:"Status,omitempty" name:"Status"` // Task start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Task type, including `Create`, `Configure`, `Disable Instance`, `Clear Instance`, `Reset Password`, `Upgrade Version`, `Back up Instance`, `Modify Network`, `Migrate to New AZ` and `Promote to Master`. TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Message returned by task execution, which will be an error message when execution fails or be empty when the status is `running `or `succeed-`. TaskMessage *string `json:"TaskMessage,omitempty" name:"TaskMessage"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTaskListRequest ¶
type DescribeTaskListRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Number of taskss returned per page. Default value: `20`. Maximum value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` // Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance. TaskTypes []*string `json:"TaskTypes,omitempty" name:"TaskTypes"` // Start time for executing a task, in the format of “2020-10-12 00:00:00”. BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time for executing a task, in the format of “2021-12-30 20:59:35”. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // This parameter is only for internal use and can be ignored. TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed) Result []*int64 `json:"Result,omitempty" name:"Result"` // The field `OperatorUin` has been disused and replaced by `OperateUin`. OperatorUin []*int64 `json:"OperatorUin,omitempty" name:"OperatorUin"` // Operator account ID or UIN OperateUin []*string `json:"OperateUin,omitempty" name:"OperateUin"` }
func NewDescribeTaskListRequest ¶
func NewDescribeTaskListRequest() (request *DescribeTaskListRequest)
func (*DescribeTaskListRequest) FromJsonString ¶
func (r *DescribeTaskListRequest) 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 (*DescribeTaskListRequest) ToJsonString ¶
func (r *DescribeTaskListRequest) ToJsonString() string
type DescribeTaskListRequestParams ¶
type DescribeTaskListRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Number of taskss returned per page. Default value: `20`. Maximum value: `100`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Pagination offset, which is an integral multiple of `Limit`. Calculation formula: `offset` = `limit` * (page number - 1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Project ID Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), go to the account information menu in the top-right corner, and select **Project Management** to query the project ID. ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"` // Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. - `FLOW_BACKUPINSTANCE`: Back up an instance. TaskTypes []*string `json:"TaskTypes,omitempty" name:"TaskTypes"` // Start time for executing a task, in the format of “2020-10-12 00:00:00”. BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time for executing a task, in the format of “2021-12-30 20:59:35”. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // This parameter is only for internal use and can be ignored. TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed) Result []*int64 `json:"Result,omitempty" name:"Result"` // The field `OperatorUin` has been disused and replaced by `OperateUin`. OperatorUin []*int64 `json:"OperatorUin,omitempty" name:"OperatorUin"` // Operator account ID or UIN OperateUin []*string `json:"OperateUin,omitempty" name:"OperateUin"` }
Predefined struct for user
type DescribeTaskListResponse ¶
type DescribeTaskListResponse struct { *tchttp.BaseResponse Response *DescribeTaskListResponseParams `json:"Response"` }
func NewDescribeTaskListResponse ¶
func NewDescribeTaskListResponse() (response *DescribeTaskListResponse)
func (*DescribeTaskListResponse) FromJsonString ¶
func (r *DescribeTaskListResponse) 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 (*DescribeTaskListResponse) ToJsonString ¶
func (r *DescribeTaskListResponse) ToJsonString() string
type DescribeTaskListResponseParams ¶
type DescribeTaskListResponseParams struct { // Total number of tasks TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Task details Tasks []*TaskInfoDetail `json:"Tasks,omitempty" name:"Tasks"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTendisSlowLogRequest ¶
type DescribeTendisSlowLogRequest struct { *tchttp.BaseRequest // Instance ID in the format of crs-ngvou0i1 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time in the format of 2019-09-08 12:12:41 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of 2019-09-09 12:12:41 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Slow query threshold in ms MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Maximum number of results returned per page. Default value: 20. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeTendisSlowLogRequest ¶
func NewDescribeTendisSlowLogRequest() (request *DescribeTendisSlowLogRequest)
func (*DescribeTendisSlowLogRequest) FromJsonString ¶
func (r *DescribeTendisSlowLogRequest) 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 (*DescribeTendisSlowLogRequest) ToJsonString ¶
func (r *DescribeTendisSlowLogRequest) ToJsonString() string
type DescribeTendisSlowLogRequestParams ¶
type DescribeTendisSlowLogRequestParams struct { // Instance ID in the format of crs-ngvou0i1 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time in the format of 2019-09-08 12:12:41 BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of 2019-09-09 12:12:41 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Slow query threshold in ms MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"` // Maximum number of results returned per page. Default value: 20. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Offset, which is an integral multiple of `Limit`. Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeTendisSlowLogResponse ¶
type DescribeTendisSlowLogResponse struct { *tchttp.BaseResponse Response *DescribeTendisSlowLogResponseParams `json:"Response"` }
func NewDescribeTendisSlowLogResponse ¶
func NewDescribeTendisSlowLogResponse() (response *DescribeTendisSlowLogResponse)
func (*DescribeTendisSlowLogResponse) FromJsonString ¶
func (r *DescribeTendisSlowLogResponse) 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 (*DescribeTendisSlowLogResponse) ToJsonString ¶
func (r *DescribeTendisSlowLogResponse) ToJsonString() string
type DescribeTendisSlowLogResponseParams ¶
type DescribeTendisSlowLogResponseParams struct { // Total number of slow queries TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Slow query details TendisSlowLogDetail []*TendisSlowLogDetail `json:"TendisSlowLogDetail,omitempty" name:"TendisSlowLogDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DestroyPostpaidInstanceRequest ¶
type DestroyPostpaidInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDestroyPostpaidInstanceRequest ¶
func NewDestroyPostpaidInstanceRequest() (request *DestroyPostpaidInstanceRequest)
func (*DestroyPostpaidInstanceRequest) FromJsonString ¶
func (r *DestroyPostpaidInstanceRequest) 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 (*DestroyPostpaidInstanceRequest) ToJsonString ¶
func (r *DestroyPostpaidInstanceRequest) ToJsonString() string
type DestroyPostpaidInstanceRequestParams ¶
type DestroyPostpaidInstanceRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DestroyPostpaidInstanceResponse ¶
type DestroyPostpaidInstanceResponse struct { *tchttp.BaseResponse Response *DestroyPostpaidInstanceResponseParams `json:"Response"` }
func NewDestroyPostpaidInstanceResponse ¶
func NewDestroyPostpaidInstanceResponse() (response *DestroyPostpaidInstanceResponse)
func (*DestroyPostpaidInstanceResponse) FromJsonString ¶
func (r *DestroyPostpaidInstanceResponse) 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 (*DestroyPostpaidInstanceResponse) ToJsonString ¶
func (r *DestroyPostpaidInstanceResponse) ToJsonString() string
type DestroyPostpaidInstanceResponseParams ¶
type DestroyPostpaidInstanceResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DestroyPrepaidInstanceRequest ¶
type DestroyPrepaidInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDestroyPrepaidInstanceRequest ¶
func NewDestroyPrepaidInstanceRequest() (request *DestroyPrepaidInstanceRequest)
func (*DestroyPrepaidInstanceRequest) FromJsonString ¶
func (r *DestroyPrepaidInstanceRequest) 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 (*DestroyPrepaidInstanceRequest) ToJsonString ¶
func (r *DestroyPrepaidInstanceRequest) ToJsonString() string
type DestroyPrepaidInstanceRequestParams ¶
type DestroyPrepaidInstanceRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DestroyPrepaidInstanceResponse ¶
type DestroyPrepaidInstanceResponse struct { *tchttp.BaseResponse Response *DestroyPrepaidInstanceResponseParams `json:"Response"` }
func NewDestroyPrepaidInstanceResponse ¶
func NewDestroyPrepaidInstanceResponse() (response *DestroyPrepaidInstanceResponse)
func (*DestroyPrepaidInstanceResponse) FromJsonString ¶
func (r *DestroyPrepaidInstanceResponse) 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 (*DestroyPrepaidInstanceResponse) ToJsonString ¶
func (r *DestroyPrepaidInstanceResponse) ToJsonString() string
type DestroyPrepaidInstanceResponseParams ¶
type DestroyPrepaidInstanceResponseParams struct { // Order ID DealId *string `json:"DealId,omitempty" name:"DealId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DisableReplicaReadonlyRequest ¶
type DisableReplicaReadonlyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDisableReplicaReadonlyRequest ¶
func NewDisableReplicaReadonlyRequest() (request *DisableReplicaReadonlyRequest)
func (*DisableReplicaReadonlyRequest) FromJsonString ¶
func (r *DisableReplicaReadonlyRequest) 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 (*DisableReplicaReadonlyRequest) ToJsonString ¶
func (r *DisableReplicaReadonlyRequest) ToJsonString() string
type DisableReplicaReadonlyRequestParams ¶
type DisableReplicaReadonlyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type DisableReplicaReadonlyResponse ¶
type DisableReplicaReadonlyResponse struct { *tchttp.BaseResponse Response *DisableReplicaReadonlyResponseParams `json:"Response"` }
func NewDisableReplicaReadonlyResponse ¶
func NewDisableReplicaReadonlyResponse() (response *DisableReplicaReadonlyResponse)
func (*DisableReplicaReadonlyResponse) FromJsonString ¶
func (r *DisableReplicaReadonlyResponse) 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 (*DisableReplicaReadonlyResponse) ToJsonString ¶
func (r *DisableReplicaReadonlyResponse) ToJsonString() string
type DisableReplicaReadonlyResponseParams ¶
type DisableReplicaReadonlyResponseParams struct { // Task ID // Note: This field may return null, indicating that no valid values can be obtained. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DisassociateSecurityGroupsRequest ¶
type DisassociateSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDisassociateSecurityGroupsRequest ¶
func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest)
func (*DisassociateSecurityGroupsRequest) FromJsonString ¶
func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateSecurityGroupsRequest) ToJsonString ¶
func (r *DisassociateSecurityGroupsRequest) ToJsonString() string
type DisassociateSecurityGroupsRequestParams ¶
type DisassociateSecurityGroupsRequestParams struct { // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // List of instance IDs, which is an array of one or more instance IDs. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
Predefined struct for user
type DisassociateSecurityGroupsResponse ¶
type DisassociateSecurityGroupsResponse struct { *tchttp.BaseResponse Response *DisassociateSecurityGroupsResponseParams `json:"Response"` }
func NewDisassociateSecurityGroupsResponse ¶
func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse)
func (*DisassociateSecurityGroupsResponse) FromJsonString ¶
func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateSecurityGroupsResponse) ToJsonString ¶
func (r *DisassociateSecurityGroupsResponse) ToJsonString() string
type DisassociateSecurityGroupsResponseParams ¶
type DisassociateSecurityGroupsResponseParams 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"` }
Predefined struct for user
type EnableReplicaReadonlyRequest ¶
type EnableReplicaReadonlyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Account routing policy. If `master` or `replication` is entered, it means to route to the master or replica node; if this parameter is left empty, it means to write into the master node and read from the replica node by default. ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` }
func NewEnableReplicaReadonlyRequest ¶
func NewEnableReplicaReadonlyRequest() (request *EnableReplicaReadonlyRequest)
func (*EnableReplicaReadonlyRequest) FromJsonString ¶
func (r *EnableReplicaReadonlyRequest) 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 (*EnableReplicaReadonlyRequest) ToJsonString ¶
func (r *EnableReplicaReadonlyRequest) ToJsonString() string
type EnableReplicaReadonlyRequestParams ¶
type EnableReplicaReadonlyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Account routing policy. If `master` or `replication` is entered, it means to route to the master or replica node; if this parameter is left empty, it means to write into the master node and read from the replica node by default. ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` }
Predefined struct for user
type EnableReplicaReadonlyResponse ¶
type EnableReplicaReadonlyResponse struct { *tchttp.BaseResponse Response *EnableReplicaReadonlyResponseParams `json:"Response"` }
func NewEnableReplicaReadonlyResponse ¶
func NewEnableReplicaReadonlyResponse() (response *EnableReplicaReadonlyResponse)
func (*EnableReplicaReadonlyResponse) FromJsonString ¶
func (r *EnableReplicaReadonlyResponse) 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 (*EnableReplicaReadonlyResponse) ToJsonString ¶
func (r *EnableReplicaReadonlyResponse) ToJsonString() string
type EnableReplicaReadonlyResponseParams ¶
type EnableReplicaReadonlyResponseParams struct { // Valid values: `ERROR`, `OK`. This field has been disused. // Note: This field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitempty" name:"Status"` // Task ID // Note: This field may return null, indicating that no valid values can be obtained. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Groups ¶
type Groups struct { // User APPID, which is the unique application ID that matches an account. Some Tencent Cloud products use this APPID. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Region ID. Valid values: // - `1`: Guangzhou // - `4`: Shanghai // - `5`: Hong Kong (China) // - `6`: Toronto // - `7`: Shanghai Finance // - `8`: Beijing // - `9`: Singapore // - `11`: Shenzhen Finance // - `15`: Silicon Valley (West US) // - `16`: Chengdu // - `17`: Germany // - `18`: South Korea // - `19`: Chongqing // - `21`: India // - `22`: Virginia (East US) // - `23`: Thailand // - `25`: Japan RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Replication group ID in the format of "crs-rpl-deind****" GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Replication group name // Note: This field may return null, indicating that no valid values can be obtained. GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // Status of replication group // - `37`: Associating replication group // - `38`: Reconnecting to replication group // - `51`: Disassociating replication group // - `52`: Switching with master instance in replication group // - `53`: Modifying the roles Status *int64 `json:"Status,omitempty" name:"Status"` // Number of replication groups InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"` // Instance information in replication groups // Note: This field may return null, indicating that no valid values can be obtained. Instances []*Instances `json:"Instances,omitempty" name:"Instances"` // Remarks // Note: This field may return null, indicating that no valid values can be obtained. Remark *string `json:"Remark,omitempty" name:"Remark"` }
type HotKeyInfo ¶
type Inbound ¶
type Inbound struct { // Policy. Valid values: ACCEPT, DROP. Action *string `json:"Action,omitempty" name:"Action"` // All the addresses that the address group ID represents. AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"` // Source IP or IP address range, such as 192.168.0.0/16. CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` // Description. Desc *string `json:"Desc,omitempty" name:"Desc"` // Network protocol, such as UDP and TCP. IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` // Port. PortRange *string `json:"PortRange,omitempty" name:"PortRange"` // All the protocols and ports that the service group ID represents. ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"` // All the addresses that the security group ID represents. Id *string `json:"Id,omitempty" name:"Id"` }
type InquiryPriceCreateInstanceRequest ¶
type InquiryPriceCreateInstanceRequest struct { *tchttp.BaseRequest // Instance type. Valid values: `2` (Redis 2.8 memory edition in standard architecture), `3` (CKV 3.2 memory edition in standard architecture), `4` (CKV 3.2 memory edition in cluster architecture), `6` (Redis 4.0 memory edition in standard architecture), `7` (Redis 4.0 memory edition in cluster architecture), `8` (Redis 5.0 memory edition in standard architecture), `9` (Redis 5.0 memory edition in cluster architecture). TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` // Memory capacity in MB, which must be a multiple of 1,024. It is subject to the purchasable specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1). // If `TypeId` indicates the standard architecture, `MemSize` indicates the total memory capacity of an instance; if `TypeId` indicates the cluster architecture, `MemSize` indicates the memory capacity per shard. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // Number of instances. The actual quantity purchasable at a time is subject to the specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1). GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // Length of purchase in months, which is required when creating a monthly-subscribed instance. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. For pay-as-you-go instances, set the parameter to `1`. Period *uint64 `json:"Period,omitempty" name:"Period"` // Billing mode. Valid values: `0` (pay-as-you-go), `1` (monthly subscription). BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance shard quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, Redis 2.8 standalone edition, and Redis 4.0 standard architecture. RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Instance replica quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition. RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Whether to support read-only replicas. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition. ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` // Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // Valid values: `local` (local disk edition), `cloud` (cloud disk edition), `cdc` (dedicated cluster edition). Default value: `local` (local disk edition) ProductVersion *string `json:"ProductVersion,omitempty" name:"ProductVersion"` }
func NewInquiryPriceCreateInstanceRequest ¶
func NewInquiryPriceCreateInstanceRequest() (request *InquiryPriceCreateInstanceRequest)
func (*InquiryPriceCreateInstanceRequest) FromJsonString ¶
func (r *InquiryPriceCreateInstanceRequest) 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 (*InquiryPriceCreateInstanceRequest) ToJsonString ¶
func (r *InquiryPriceCreateInstanceRequest) ToJsonString() string
type InquiryPriceCreateInstanceRequestParams ¶
type InquiryPriceCreateInstanceRequestParams struct { // Instance type. Valid values: `2` (Redis 2.8 memory edition in standard architecture), `3` (CKV 3.2 memory edition in standard architecture), `4` (CKV 3.2 memory edition in cluster architecture), `6` (Redis 4.0 memory edition in standard architecture), `7` (Redis 4.0 memory edition in cluster architecture), `8` (Redis 5.0 memory edition in standard architecture), `9` (Redis 5.0 memory edition in cluster architecture). TypeId *uint64 `json:"TypeId,omitempty" name:"TypeId"` // Memory capacity in MB, which must be a multiple of 1,024. It is subject to the purchasable specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1). // If `TypeId` indicates the standard architecture, `MemSize` indicates the total memory capacity of an instance; if `TypeId` indicates the cluster architecture, `MemSize` indicates the memory capacity per shard. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // Number of instances. The actual quantity purchasable at a time is subject to the specifications returned by the [DescribeProductInfo API](https://intl.cloud.tencent.com/document/api/239/30600?from_cn_redirect=1). GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // Length of purchase in months, which is required when creating a monthly-subscribed instance. Value range: [1,2,3,4,5,6,7,8,9,10,11,12,24,36]. For pay-as-you-go instances, set the parameter to `1`. Period *uint64 `json:"Period,omitempty" name:"Period"` // Billing mode. Valid values: `0` (pay-as-you-go), `1` (monthly subscription). BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // ID of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance shard quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, Redis 2.8 standalone edition, and Redis 4.0 standard architecture. RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Instance replica quantity. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition. RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Whether to support read-only replicas. This field is not required by Redis 2.8 standard architecture, CKV standard architecture, and Redis 2.8 standalone edition. ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` // Name of the AZ where the instance resides. For more information, see [Regions and AZs](https://intl.cloud.tencent.com/document/product/239/4106?from_cn_redirect=1). ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // Valid values: `local` (local disk edition), `cloud` (cloud disk edition), `cdc` (dedicated cluster edition). Default value: `local` (local disk edition) ProductVersion *string `json:"ProductVersion,omitempty" name:"ProductVersion"` }
Predefined struct for user
type InquiryPriceCreateInstanceResponse ¶
type InquiryPriceCreateInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceCreateInstanceResponseParams `json:"Response"` }
func NewInquiryPriceCreateInstanceResponse ¶
func NewInquiryPriceCreateInstanceResponse() (response *InquiryPriceCreateInstanceResponse)
func (*InquiryPriceCreateInstanceResponse) FromJsonString ¶
func (r *InquiryPriceCreateInstanceResponse) 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 (*InquiryPriceCreateInstanceResponse) ToJsonString ¶
func (r *InquiryPriceCreateInstanceResponse) ToJsonString() string
type InquiryPriceCreateInstanceResponseParams ¶
type InquiryPriceCreateInstanceResponseParams struct { // Price. Unit: USD (accurate down to the cent) // Note: This field may return `null`, indicating that no valid values can be obtained. Price *float64 `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"` }
Predefined struct for user
type InquiryPriceUpgradeInstanceRequest ¶
type InquiryPriceUpgradeInstanceRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Shard size in MB. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // Number of shards. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Number of replicas. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` }
func NewInquiryPriceUpgradeInstanceRequest ¶
func NewInquiryPriceUpgradeInstanceRequest() (request *InquiryPriceUpgradeInstanceRequest)
func (*InquiryPriceUpgradeInstanceRequest) FromJsonString ¶
func (r *InquiryPriceUpgradeInstanceRequest) 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 (*InquiryPriceUpgradeInstanceRequest) ToJsonString ¶
func (r *InquiryPriceUpgradeInstanceRequest) ToJsonString() string
type InquiryPriceUpgradeInstanceRequestParams ¶
type InquiryPriceUpgradeInstanceRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Shard size in MB. MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // Number of shards. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Number of replicas. This parameter can be left blank for Redis 2.8 in standard architecture, CKV in standard architecture, and Redis 2.8 in standalone architecture. RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` }
Predefined struct for user
type InquiryPriceUpgradeInstanceResponse ¶
type InquiryPriceUpgradeInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceUpgradeInstanceResponseParams `json:"Response"` }
func NewInquiryPriceUpgradeInstanceResponse ¶
func NewInquiryPriceUpgradeInstanceResponse() (response *InquiryPriceUpgradeInstanceResponse)
func (*InquiryPriceUpgradeInstanceResponse) FromJsonString ¶
func (r *InquiryPriceUpgradeInstanceResponse) 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 (*InquiryPriceUpgradeInstanceResponse) ToJsonString ¶
func (r *InquiryPriceUpgradeInstanceResponse) ToJsonString() string
type InquiryPriceUpgradeInstanceResponseParams ¶
type InquiryPriceUpgradeInstanceResponseParams struct { // Price. Unit: USD // Note: this field may return `null`, indicating that no valid values can be obtained. Price *float64 `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"` }
Predefined struct for user
type InstanceClusterNode ¶
type InstanceClusterNode struct { // Node name Name *string `json:"Name,omitempty" name:"Name"` // ID of the runtime node of an instance RunId *string `json:"RunId,omitempty" name:"RunId"` // Cluster role. Valid values: - `0` (master) - `1` (replica) Role *int64 `json:"Role,omitempty" name:"Role"` // Node status. Valid values: - `0` (read/write) - `1` (read) - `2` (backup) Status *int64 `json:"Status,omitempty" name:"Status"` // Service status. Valid values: `0` (down), `1` (on). Connected *int64 `json:"Connected,omitempty" name:"Connected"` // Node creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Node elimination time DownTime *string `json:"DownTime,omitempty" name:"DownTime"` // Node slot distribution range Slots *string `json:"Slots,omitempty" name:"Slots"` // Distribution of node keys Keys *int64 `json:"Keys,omitempty" name:"Keys"` // Node QPS Number of executions per second on sharded nodes Unit: Counts/sec Qps *int64 `json:"Qps,omitempty" name:"Qps"` // QPS slope of a node QpsSlope *float64 `json:"QpsSlope,omitempty" name:"QpsSlope"` // Node storage Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Node storage slope StorageSlope *float64 `json:"StorageSlope,omitempty" name:"StorageSlope"` }
type InstanceClusterShard ¶
type InstanceClusterShard struct { // The name of a shard node ShardName *string `json:"ShardName,omitempty" name:"ShardName"` // The serial number of a shard node ShardId *string `json:"ShardId,omitempty" name:"ShardId"` // The role of a shard node // - `0`: Master node. // - `1`: Replica node. Role *int64 `json:"Role,omitempty" name:"Role"` // Number of keys Keys *int64 `json:"Keys,omitempty" name:"Keys"` // Slot information Slots *string `json:"Slots,omitempty" name:"Slots"` // Used Capacity Storage *int64 `json:"Storage,omitempty" name:"Storage"` // Capacity slope StorageSlope *float64 `json:"StorageSlope,omitempty" name:"StorageSlope"` // Instance runtime node ID Runid *string `json:"Runid,omitempty" name:"Runid"` // Service status // - `0`: Down. // - `1`: On. Connected *int64 `json:"Connected,omitempty" name:"Connected"` }
type InstanceEnumParam ¶
type InstanceEnumParam struct { // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // Parameter type, such as `Enum`. ValueType *string `json:"ValueType,omitempty" name:"ValueType"` // Whether to restart the database after modifying the parameters. Valid values: - `true` (required) - `false` (not required) NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` // Default value of the parameter DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` // Current value CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Description Tips *string `json:"Tips,omitempty" name:"Tips"` // Acceptable values for the parameter EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"` // Parameter modification status. Valid values: - `1` (modifying) - `2` (modified) Status *int64 `json:"Status,omitempty" name:"Status"` }
type InstanceIntegerParam ¶
type InstanceIntegerParam struct { // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // Parameter type: Integer ValueType *string `json:"ValueType,omitempty" name:"ValueType"` // Whether restart is required after a modification is made. Valid values: true, false NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` // Default value of the parameter DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` // Current value CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Parameter description Tips *string `json:"Tips,omitempty" name:"Tips"` // Minimum value of the parameter Min *string `json:"Min,omitempty" name:"Min"` // Maximum value of the parameter Max *string `json:"Max,omitempty" name:"Max"` // Parameter status. 1: modifying; 2: modified Status *int64 `json:"Status,omitempty" name:"Status"` // Parameter unit // Note: This field may return null, indicating that no valid values can be obtained. Unit *string `json:"Unit,omitempty" name:"Unit"` }
type InstanceMultiParam ¶
type InstanceMultiParam struct { // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // Parameter Type such as `MULTI` ValueType *string `json:"ValueType,omitempty" name:"ValueType"` // Whether to restart the database after modifying the parameter. Valid values: - `true` (required) - `false` (not required) NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` // Default value of the parameter DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` // Current value CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Description Tips *string `json:"Tips,omitempty" name:"Tips"` // Description EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"` // Parameter modification status. Valid values: - `1` (modifying) - `2` (modified) Status *int64 `json:"Status,omitempty" name:"Status"` }
type InstanceNode ¶
type InstanceNode struct { // Instance ID Id *int64 `json:"Id,omitempty" name:"Id"` // Node details InstanceClusterNode []*InstanceClusterNode `json:"InstanceClusterNode,omitempty" name:"InstanceClusterNode"` }
type InstanceParam ¶
type InstanceParam struct { // Parameter name, such as “timeout”. For supported custom parameters, see <a href="https://www.tencentcloud.com/document/product/239/39796">Setting Instance Parameters</a> Key *string `json:"Key,omitempty" name:"Key"` // Current parameter value. For example, if you set the current value of “timeout” to 120 (in seconds), the client connections that remain idle longer than 120 seconds will be closed. For more information on parameter values, see <a href="https://www.tencentcloud.com/document/product/239/39796">Setting Instance Parameters</a> Value *string `json:"Value,omitempty" name:"Value"` }
type InstanceParamHistory ¶
type InstanceParamHistory struct { // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // The value of the parameter before modification PreValue *string `json:"PreValue,omitempty" name:"PreValue"` // The value of the parameter after modification NewValue *string `json:"NewValue,omitempty" name:"NewValue"` // Parameter configuration status // - `1`: The parameter configuration is being modified. // - `2`: The parameter configuration has been modified successfully. // - `3`: Failed to modify the parameter configuration. Status *int64 `json:"Status,omitempty" name:"Status"` // Modification time ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` }
type InstanceProxySlowlogDetail ¶
type InstanceProxySlowlogDetail struct { // Slow query duration in milliseconds Duration *int64 `json:"Duration,omitempty" name:"Duration"` // Client address Client *string `json:"Client,omitempty" name:"Client"` // Slow query command Command *string `json:"Command,omitempty" name:"Command"` // Detailed command line information of slow query CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` // Execution time ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` }
type InstanceSecurityGroupDetail ¶
type InstanceSecurityGroupDetail struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Security group information, which includes security group ID, name, outbound and inbound rules. SecurityGroupDetails []*SecurityGroupDetail `json:"SecurityGroupDetails,omitempty" name:"SecurityGroupDetails"` }
type InstanceSet ¶
type InstanceSet struct { // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // User APPID, which is the unique application ID that matches an account. Some Tencent Cloud products use this APPID. Appid *int64 `json:"Appid,omitempty" name:"Appid"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Region ID. <ul><li>`1`: Guangzhou. </li><li>`4`: Shanghai. </li><li>`5`: Hong Kong (China). </li><li>`6`: Toronto. </li> <li>`7`: Shanghai Finance. </li> <li>`8`: Beijing. </li> <li>`9`: Singapore. </li> <li>`11`: Shenzhen Finance. </li> <li>`15`: West US (Silicon Valley). </li><li>`16`: Chengdu. </li><li>`17`: Frankfurt. </li><li>`18`: Seoul. </li><li>`19`: Chongqing. </li><li>`21`: Mumbai. </li><li>`22`: East US (Virginia). </li><li>`23`: Bangkok. </li><li>`24`: Moscow. </li><li>`25`: Tokyo. </li></ul> RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Region ID ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // VPC ID, such as `75101`. VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID, such as `46315`. SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` // Current instance status. <ul><li>`0`: To be initialized. </li><li>`1`: In the process. </li><li>`2`: Running. </li><li>`-2`: Isolated. </li><li>`-3`: To be deleted. </li></ul> Status *int64 `json:"Status,omitempty" name:"Status"` // Instance VIP WanIp *string `json:"WanIp,omitempty" name:"WanIp"` // Port number of an instance Port *int64 `json:"Port,omitempty" name:"Port"` // Instance creation time in the format of "2020-01-15 10:20:00" Createtime *string `json:"Createtime,omitempty" name:"Createtime"` // Instance memory capacity in MB (1 MB = 1024 KB) Size *float64 `json:"Size,omitempty" name:"Size"` // This field has been disused. You can use the TCOP’s [GetMonitorData](https://intl.cloud.tencent.com/document/product/248/31014?from_cn_redirect=1) API to query the capacity used by the instance. SizeUsed *float64 `json:"SizeUsed,omitempty" name:"SizeUsed"` // Instance type // - `2`: Redis 2.8 Memory Edition (Standard Architecture). // - `3`: CKV 3.2 Memory Edition (Standard Architecture). // - `4`: CKV 3.2 Memory Edition (Cluster Architecture). // - `5`: Redis 2.8 Memory Edition (Standalone). // - `6`: Redis 4.0 Memory Edition (Standard Architecture). // - `7`: Redis 4.0 Memory Edition (Cluster Architecture). // - `8`: Redis 5.0 Memory Edition (Standard Architecture). // - `9`: Redis 5.0 Memory Edition (Cluster Architecture). // - `15`: Redis 6.2 Memory Edition (Standard Architecture). // - `16`: Redis 6.2 Memory Edition (Cluster Architecture). Type *int64 `json:"Type,omitempty" name:"Type"` // Whether to set the auto-renewal flag for an instance. <ul><li>`1`: Auto-renewal set. </li><li>`0`: Auto-renewal not set.</li></ul> AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` // The time when a monthly subscribed instance expires DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` // Engine: Redis community edition, Tencent Cloud CKV Engine *string `json:"Engine,omitempty" name:"Engine"` // Product type. <ul><li>`standalone`: Standard edition. </li><li>`cluster`: Cluster edition. </li></ul> ProductType *string `json:"ProductType,omitempty" name:"ProductType"` // VPC ID, such as vpc-fk33jsf43kgv. UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` // VPC subnet ID, such as subnet-fd3j6l35mm0. UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` // Billing mode. Only pay-as-you-go billing is supported. BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"` // Description of an instance status, such as "Running". InstanceTitle *string `json:"InstanceTitle,omitempty" name:"InstanceTitle"` // The default termination time for isolated instances in the format of "2020-02-15 10:20:00". By default, a pay-as-you-go instance will be terminated after two hours of isolation, and a monthly subscribed instance will be terminated after seven days by default. OfflineTime *string `json:"OfflineTime,omitempty" name:"OfflineTime"` // Sub-status returned for an instance in process SubStatus *int64 `json:"SubStatus,omitempty" name:"SubStatus"` // Anti-affinity tag Tags []*string `json:"Tags,omitempty" name:"Tags"` // Instance node information InstanceNode []*InstanceNode `json:"InstanceNode,omitempty" name:"InstanceNode"` // Shard size RedisShardSize *int64 `json:"RedisShardSize,omitempty" name:"RedisShardSize"` // Number of shards RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Number of replicas RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Billing ID PriceId *int64 `json:"PriceId,omitempty" name:"PriceId"` // The time when an instance start to be isolated CloseTime *string `json:"CloseTime,omitempty" name:"CloseTime"` // Read weight of a replica node SlaveReadWeight *int64 `json:"SlaveReadWeight,omitempty" name:"SlaveReadWeight"` // Instance tag information // Note: This field may return null, indicating that no valid value can be obtained. InstanceTags []*InstanceTagInfo `json:"InstanceTags,omitempty" name:"InstanceTags"` // Project name // Note: This field may return null, indicating that no valid value can be obtained. ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"` // Whether an instance is password-free. <ul><li>`true`: Yes. </li><li>`false`: No. </li></ul> // Note: This field may return null, indicating that no valid value can be obtained. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` // Number of client connections // Note: This field may return null, indicating that no valid value can be obtained. ClientLimit *int64 `json:"ClientLimit,omitempty" name:"ClientLimit"` // DTS status (internal parameter, which can be ignored) // Note: This field may return null, indicating that no valid value can be obtained. DtsStatus *int64 `json:"DtsStatus,omitempty" name:"DtsStatus"` // Upper shard bandwidth limit in MB // Note: This field may return null, indicating that no valid value can be obtained. NetLimit *int64 `json:"NetLimit,omitempty" name:"NetLimit"` // Password-free instance flag (internal parameter, which can be ignored) // Note: This field may return null, indicating that no valid value can be obtained. PasswordFree *int64 `json:"PasswordFree,omitempty" name:"PasswordFree"` // Internal parameter, which can be ignored. // Note: This field may return null, indicating that no valid value can be obtained. Vip6 *string `json:"Vip6,omitempty" name:"Vip6"` // Read-only instance flag (internal parameter, which can be ignored) // Note: This field may return null, indicating that no valid value can be obtained. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // Internal parameter, which can be ignored. // Note: This field may return null, indicating that no valid value can be obtained. RemainBandwidthDuration *string `json:"RemainBandwidthDuration,omitempty" name:"RemainBandwidthDuration"` // This parameter can be ignored for Redis instance. // Note: This field may return null, indicating that no valid value can be obtained. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Monitoring granularity. <ul><li>`1m`: Monitoring at one-minute granularity. This granularity has been disused. For more information, see [1-Minute Granularity Will Be Disused](https://www.tencentcloud.com/document/product/239/50440).</li><li>`5s`: Monitoring at five-second granularity.</li></ul> // Note: This field may return null, indicating that no valid values can be obtained. MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"` // The minimum number of max client connections // Note: This field may return null, indicating that no valid value can be obtained. ClientLimitMin *int64 `json:"ClientLimitMin,omitempty" name:"ClientLimitMin"` // The maximum number of max client connections // Note: This field may return null, indicating that no valid value can be obtained. ClientLimitMax *int64 `json:"ClientLimitMax,omitempty" name:"ClientLimitMax"` // Instance node details // Note: This field may return null, indicating that no valid value can be obtained. NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` // Information of the region where the instance is deployed, such as `ap-guangzhou`. // Note: This field may return null, indicating that no valid value can be obtained. Region *string `json:"Region,omitempty" name:"Region"` // Public IP // Note: This field may return null, indicating that no valid value can be obtained. WanAddress *string `json:"WanAddress,omitempty" name:"WanAddress"` // Polaris service address, which is for internal use. // Note: This field may return null, indicating that no valid values can be obtained. PolarisServer *string `json:"PolarisServer,omitempty" name:"PolarisServer"` // The current proxy version of an instance // Note: This field may return null, indicating that no valid value can be obtained. CurrentProxyVersion *string `json:"CurrentProxyVersion,omitempty" name:"CurrentProxyVersion"` // The current cache minor version of an instance // Note: This field may return null, indicating that no valid value can be obtained. CurrentRedisVersion *string `json:"CurrentRedisVersion,omitempty" name:"CurrentRedisVersion"` // Proxy version, which can be upgraded for the instance // Note: This field may return null, indicating that no valid value can be obtained. UpgradeProxyVersion *string `json:"UpgradeProxyVersion,omitempty" name:"UpgradeProxyVersion"` // Cache minor version, which can be upgraded for the instance // Note: This field may return null, indicating that no valid value can be obtained. UpgradeRedisVersion *string `json:"UpgradeRedisVersion,omitempty" name:"UpgradeRedisVersion"` }
type InstanceSlowlogDetail ¶
type InstanceSlowlogDetail struct { // Slow log duration Duration *int64 `json:"Duration,omitempty" name:"Duration"` // Client address Client *string `json:"Client,omitempty" name:"Client"` // Command Command *string `json:"Command,omitempty" name:"Command"` // Command line details CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` // Execution duration ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` // Node ID Node *string `json:"Node,omitempty" name:"Node"` }
type InstanceTagInfo ¶
type InstanceTextParam ¶
type InstanceTextParam struct { // Parameter name ParamName *string `json:"ParamName,omitempty" name:"ParamName"` // Parameter type such as `Text`. ValueType *string `json:"ValueType,omitempty" name:"ValueType"` // Whether to restart the database after modifying the parameter. Valid values: - `true` (required) - `false` (not required) NeedRestart *string `json:"NeedRestart,omitempty" name:"NeedRestart"` // Default value of the parameter DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` // Current value CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"` // Description Tips *string `json:"Tips,omitempty" name:"Tips"` // Acceptable values of the parameter TextValue []*string `json:"TextValue,omitempty" name:"TextValue"` // Parameter modification status. Valid values: - `1` (modifying) - `2` (modified) Status *int64 `json:"Status,omitempty" name:"Status"` }
type Instances ¶
type Instances struct { // User APPID, which is the unique application ID that matches an account. Some Tencent Cloud products use this APPID. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Region ID. <ul><li>`1`: Guangzhou. </li><li>`4`: Shanghai. </li><li>`5`: Hong Kong (China). </li> <li>`6`: Toronto. </li> <li>`7`: Shanghai Finance. </li> <li>`8`: Beijing. </li> <li>`9`: Singapore. </li> <li>`11`: Shenzhen Finance. </li> <li>`15`: West US (Silicon Valley). </li> </ul> RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` // Region ID ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Number of replicas RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Number of shards RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // Shard memory size. RedisShardSize *int64 `json:"RedisShardSize,omitempty" name:"RedisShardSize"` // Instance disk size // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Engine: Redis Community Edition, Tencent Cloud CKV. Engine *string `json:"Engine,omitempty" name:"Engine"` // Read-write permission of the instance. <ul><li>`rw`: Read/Write. </li><li>`r`: Read-only. </li></ul> Role *string `json:"Role,omitempty" name:"Role"` // Instance VIP Vip *string `json:"Vip,omitempty" name:"Vip"` // Internal parameter, which can be ignored. // Note: This field may return null, indicating that no valid values can be obtained. Vip6 *string `json:"Vip6,omitempty" name:"Vip6"` // VPC ID, such as `75101`. VpcID *int64 `json:"VpcID,omitempty" name:"VpcID"` // Instance port VPort *int64 `json:"VPort,omitempty" name:"VPort"` // Instance status. <ul><li>`0`: Uninitialized. </li><li>`1`: In the process. </li><li>`2`: Running. </li><li>`-2`: Isolated. </li><li>`-3`: To be deleted. </li></ul> Status *int64 `json:"Status,omitempty" name:"Status"` // Repository ID GrocerySysId *int64 `json:"GrocerySysId,omitempty" name:"GrocerySysId"` // Instance type // - `2`: Redis 2.8 Memory Edition (Standard Architecture). // - `3`: CKV 3.2 Memory Edition (Standard Architecture). // - `4`: CKV 3.2 Memory Edition (Cluster Architecture) // - `5`: Redis 2.8 Memory Edition (Standalone) // - `6`: Redis 4.0 Memory Edition (Standard Architecture). // - `7`: Redis 4.0 Memory Edition (Cluster Architecture) // - `8`: Redis 5.0 Memory Edition (Standard Architecture). // - `9`: Redis 5.0 Memory Edition (Cluster Architecture) // - `15`: Redis 6.2 Memory Edition (Standard Architecture). // - `16`: Redis 6.2 Memory Edition (Cluster Architecture) ProductType *int64 `json:"ProductType,omitempty" name:"ProductType"` // The time when the instance was added to the replication group. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // The time when instances in the replication group were updated. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type KillMasterGroupRequest ¶
type KillMasterGroupRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // A parameter used to configure the access password for a specified instance. If password-free authentication is enabled, this parameter will not be required. Required password strength. - It must contains 8-30 characters. We recommend that you use a password of more than 12 characters. - It must contain at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). Password *string `json:"Password,omitempty" name:"Password"` // Shard ID of a sharded cluster ShardIds []*int64 `json:"ShardIds,omitempty" name:"ShardIds"` }
func NewKillMasterGroupRequest ¶
func NewKillMasterGroupRequest() (request *KillMasterGroupRequest)
func (*KillMasterGroupRequest) FromJsonString ¶
func (r *KillMasterGroupRequest) 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 (*KillMasterGroupRequest) ToJsonString ¶
func (r *KillMasterGroupRequest) ToJsonString() string
type KillMasterGroupRequestParams ¶
type KillMasterGroupRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // A parameter used to configure the access password for a specified instance. If password-free authentication is enabled, this parameter will not be required. Required password strength. - It must contains 8-30 characters. We recommend that you use a password of more than 12 characters. - It must contain at least two of the following types: lowercase letters, uppercase letters, digits, and symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/), and it cannot start with a slash (/). Password *string `json:"Password,omitempty" name:"Password"` // Shard ID of a sharded cluster ShardIds []*int64 `json:"ShardIds,omitempty" name:"ShardIds"` }
Predefined struct for user
type KillMasterGroupResponse ¶
type KillMasterGroupResponse struct { *tchttp.BaseResponse Response *KillMasterGroupResponseParams `json:"Response"` }
func NewKillMasterGroupResponse ¶
func NewKillMasterGroupResponse() (response *KillMasterGroupResponse)
func (*KillMasterGroupResponse) FromJsonString ¶
func (r *KillMasterGroupResponse) 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 (*KillMasterGroupResponse) ToJsonString ¶
func (r *KillMasterGroupResponse) ToJsonString() string
type KillMasterGroupResponseParams ¶
type KillMasterGroupResponseParams struct { // Async task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ManualBackupInstanceRequest ¶
type ManualBackupInstanceRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Remarks for manual backup task Remark *string `json:"Remark,omitempty" name:"Remark"` // Retention period of backup data in days. Default value: 7 days. Value range: [0,1825]. If the value exceeds 7 days, [submit a ticket](https://console.cloud.tencent.com/workorder/category) for application. - If this parameter is not configured, it will set to be the same as the period of automatic backup retention. - If automatic backup is not set, the default value will be 7 days. StorageDays *int64 `json:"StorageDays,omitempty" name:"StorageDays"` }
func NewManualBackupInstanceRequest ¶
func NewManualBackupInstanceRequest() (request *ManualBackupInstanceRequest)
func (*ManualBackupInstanceRequest) FromJsonString ¶
func (r *ManualBackupInstanceRequest) 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 (*ManualBackupInstanceRequest) ToJsonString ¶
func (r *ManualBackupInstanceRequest) ToJsonString() string
type ManualBackupInstanceRequestParams ¶
type ManualBackupInstanceRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Remarks for manual backup task Remark *string `json:"Remark,omitempty" name:"Remark"` // Retention period of backup data in days. Default value: 7 days. Value range: [0,1825]. If the value exceeds 7 days, [submit a ticket](https://console.cloud.tencent.com/workorder/category) for application. - If this parameter is not configured, it will set to be the same as the period of automatic backup retention. - If automatic backup is not set, the default value will be 7 days. StorageDays *int64 `json:"StorageDays,omitempty" name:"StorageDays"` }
Predefined struct for user
type ManualBackupInstanceResponse ¶
type ManualBackupInstanceResponse struct { *tchttp.BaseResponse Response *ManualBackupInstanceResponseParams `json:"Response"` }
func NewManualBackupInstanceResponse ¶
func NewManualBackupInstanceResponse() (response *ManualBackupInstanceResponse)
func (*ManualBackupInstanceResponse) FromJsonString ¶
func (r *ManualBackupInstanceResponse) 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 (*ManualBackupInstanceResponse) ToJsonString ¶
func (r *ManualBackupInstanceResponse) ToJsonString() string
type ManualBackupInstanceResponseParams ¶
type ManualBackupInstanceResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModfiyInstancePasswordRequest ¶
type ModfiyInstancePasswordRequest struct { *tchttp.BaseRequest // Instance ID, such as "crs-xjhsdj****". Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Old password of an instance OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"` // New instance password, which has the following requirements: // - It must contain 8-30 characters, preferably 12 or more. // - It cannot start with a slash (/) // - It must contain two of the following three types: lowercase letters, uppercase letters, and symbols (()~!@#$%^&*-+=_|{}[]:;<>,.?/) Password *string `json:"Password,omitempty" name:"Password"` }
func NewModfiyInstancePasswordRequest ¶
func NewModfiyInstancePasswordRequest() (request *ModfiyInstancePasswordRequest)
func (*ModfiyInstancePasswordRequest) FromJsonString ¶
func (r *ModfiyInstancePasswordRequest) 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 (*ModfiyInstancePasswordRequest) ToJsonString ¶
func (r *ModfiyInstancePasswordRequest) ToJsonString() string
type ModfiyInstancePasswordRequestParams ¶
type ModfiyInstancePasswordRequestParams struct { // Instance ID, such as "crs-xjhsdj****". Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Old password of an instance OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"` // New instance password, which has the following requirements: // - It must contain 8-30 characters, preferably 12 or more. // - It cannot start with a slash (/) // - It must contain two of the following three types: lowercase letters, uppercase letters, and symbols (()~!@#$%^&*-+=_|{}[]:;<>,.?/) Password *string `json:"Password,omitempty" name:"Password"` }
Predefined struct for user
type ModfiyInstancePasswordResponse ¶
type ModfiyInstancePasswordResponse struct { *tchttp.BaseResponse Response *ModfiyInstancePasswordResponseParams `json:"Response"` }
func NewModfiyInstancePasswordResponse ¶
func NewModfiyInstancePasswordResponse() (response *ModfiyInstancePasswordResponse)
func (*ModfiyInstancePasswordResponse) FromJsonString ¶
func (r *ModfiyInstancePasswordResponse) 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 (*ModfiyInstancePasswordResponse) ToJsonString ¶
func (r *ModfiyInstancePasswordResponse) ToJsonString() string
type ModfiyInstancePasswordResponseParams ¶
type ModfiyInstancePasswordResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyAutoBackupConfigRequest ¶
type ModifyAutoBackupConfigRequest struct { *tchttp.BaseRequest // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Automatic backup cycle. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. This parameter currently cannot be modified. WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"` // Automatic backup time in the format of 00:00-01:00, 01:00-02:00... 23:00-00:00. TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` // Automatic backup type. Valid value: `1` (scheduled backup). AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` }
func NewModifyAutoBackupConfigRequest ¶
func NewModifyAutoBackupConfigRequest() (request *ModifyAutoBackupConfigRequest)
func (*ModifyAutoBackupConfigRequest) FromJsonString ¶
func (r *ModifyAutoBackupConfigRequest) 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 (*ModifyAutoBackupConfigRequest) ToJsonString ¶
func (r *ModifyAutoBackupConfigRequest) ToJsonString() string
type ModifyAutoBackupConfigRequestParams ¶
type ModifyAutoBackupConfigRequestParams struct { // ID of a specified instance, such as "crs-xjhsdj****" Log in to the [Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Automatic backup cycle. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. This parameter currently cannot be modified. WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"` // Automatic backup time in the format of 00:00-01:00, 01:00-02:00... 23:00-00:00. TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` // Automatic backup type. Valid value: `1` (scheduled backup). AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` }
Predefined struct for user
type ModifyAutoBackupConfigResponse ¶
type ModifyAutoBackupConfigResponse struct { *tchttp.BaseResponse Response *ModifyAutoBackupConfigResponseParams `json:"Response"` }
func NewModifyAutoBackupConfigResponse ¶
func NewModifyAutoBackupConfigResponse() (response *ModifyAutoBackupConfigResponse)
func (*ModifyAutoBackupConfigResponse) FromJsonString ¶
func (r *ModifyAutoBackupConfigResponse) 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 (*ModifyAutoBackupConfigResponse) ToJsonString ¶
func (r *ModifyAutoBackupConfigResponse) ToJsonString() string
type ModifyAutoBackupConfigResponseParams ¶
type ModifyAutoBackupConfigResponseParams struct { // Automatic backup type. Valid value: `1` (scheduled backup). AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"` // Automatic backup cycle. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"` // Time period for automatic scheduled backup in the format of “00:00-01:00, 01:00-02:00...... 23:00-00:00”. TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"` // Retention time of full backup files in days BackupStorageDays *int64 `json:"BackupStorageDays,omitempty" name:"BackupStorageDays"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyBackupDownloadRestrictionRequest ¶
type ModifyBackupDownloadRestrictionRequest struct { *tchttp.BaseRequest // Type of the network restrictions for downloading backup files. Valid values: // // - `NoLimit`: Backup files can be downloaded over both public and private networks. // - `LimitOnlyIntranet`: Backup files can be downloaded only at private network addresses auto-assigned by Tencent Cloud. // - `Customize`: Backup files can be downloaded only in the customized VPC. LimitType *string `json:"LimitType,omitempty" name:"LimitType"` // Only `In` can be passed in for this parameter, indicating that backup files can be downloaded in the custom `LimitVpc`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitempty" name:"VpcComparisonSymbol"` // Whether backups can be downloaded at the custom `LimitIp` address. // // - `In`: Download is allowed for the custom IP. // - `NotIn`: Download is not allowed for the custom IP. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitempty" name:"IpComparisonSymbol"` // VPC ID of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitempty" name:"LimitVpc"` // VPC IP of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitIp []*string `json:"LimitIp,omitempty" name:"LimitIp"` }
func NewModifyBackupDownloadRestrictionRequest ¶
func NewModifyBackupDownloadRestrictionRequest() (request *ModifyBackupDownloadRestrictionRequest)
func (*ModifyBackupDownloadRestrictionRequest) FromJsonString ¶
func (r *ModifyBackupDownloadRestrictionRequest) 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 (*ModifyBackupDownloadRestrictionRequest) ToJsonString ¶
func (r *ModifyBackupDownloadRestrictionRequest) ToJsonString() string
type ModifyBackupDownloadRestrictionRequestParams ¶
type ModifyBackupDownloadRestrictionRequestParams struct { // Type of the network restrictions for downloading backup files. Valid values: // // - `NoLimit`: Backup files can be downloaded over both public and private networks. // - `LimitOnlyIntranet`: Backup files can be downloaded only at private network addresses auto-assigned by Tencent Cloud. // - `Customize`: Backup files can be downloaded only in the customized VPC. LimitType *string `json:"LimitType,omitempty" name:"LimitType"` // Only `In` can be passed in for this parameter, indicating that backup files can be downloaded in the custom `LimitVpc`. VpcComparisonSymbol *string `json:"VpcComparisonSymbol,omitempty" name:"VpcComparisonSymbol"` // Whether backups can be downloaded at the custom `LimitIp` address. // // - `In`: Download is allowed for the custom IP. // - `NotIn`: Download is not allowed for the custom IP. IpComparisonSymbol *string `json:"IpComparisonSymbol,omitempty" name:"IpComparisonSymbol"` // VPC ID of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitVpc []*BackupLimitVpcItem `json:"LimitVpc,omitempty" name:"LimitVpc"` // VPC IP of the custom backup file download address, which is required if `LimitType` is `Customize`. LimitIp []*string `json:"LimitIp,omitempty" name:"LimitIp"` }
Predefined struct for user
type ModifyBackupDownloadRestrictionResponse ¶
type ModifyBackupDownloadRestrictionResponse struct { *tchttp.BaseResponse Response *ModifyBackupDownloadRestrictionResponseParams `json:"Response"` }
func NewModifyBackupDownloadRestrictionResponse ¶
func NewModifyBackupDownloadRestrictionResponse() (response *ModifyBackupDownloadRestrictionResponse)
func (*ModifyBackupDownloadRestrictionResponse) FromJsonString ¶
func (r *ModifyBackupDownloadRestrictionResponse) 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 (*ModifyBackupDownloadRestrictionResponse) ToJsonString ¶
func (r *ModifyBackupDownloadRestrictionResponse) ToJsonString() string
type ModifyBackupDownloadRestrictionResponseParams ¶
type ModifyBackupDownloadRestrictionResponseParams 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"` }
Predefined struct for user
type ModifyDBInstanceSecurityGroupsRequest ¶
type ModifyDBInstanceSecurityGroupsRequest struct { *tchttp.BaseRequest // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // List of IDs of security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewModifyDBInstanceSecurityGroupsRequest ¶
func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecurityGroupsRequest)
func (*ModifyDBInstanceSecurityGroupsRequest) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsRequest) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string
type ModifyDBInstanceSecurityGroupsRequestParams ¶
type ModifyDBInstanceSecurityGroupsRequestParams struct { // Database engine name, which is `redis` for this API. Product *string `json:"Product,omitempty" name:"Product"` // List of IDs of security groups to be modified, which is an array of one or more security group IDs. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type ModifyDBInstanceSecurityGroupsResponse ¶
type ModifyDBInstanceSecurityGroupsResponse struct { *tchttp.BaseResponse Response *ModifyDBInstanceSecurityGroupsResponseParams `json:"Response"` }
func NewModifyDBInstanceSecurityGroupsResponse ¶
func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse)
func (*ModifyDBInstanceSecurityGroupsResponse) FromJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceSecurityGroupsResponse) ToJsonString ¶
func (r *ModifyDBInstanceSecurityGroupsResponse) ToJsonString() string
type ModifyDBInstanceSecurityGroupsResponseParams ¶
type ModifyDBInstanceSecurityGroupsResponseParams 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"` }
Predefined struct for user
type ModifyInstanceAccountRequest ¶
type ModifyInstanceAccountRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name. If the root account is to be modified, enter `root`. AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // Sub-account password AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` // Sub-account description information Remark *string `json:"Remark,omitempty" name:"Remark"` // Routing policy. Valid values: master (master node); replication (replica node) ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` // Sub-account read/write policy. Valid values: r (read-only); w (write-only); rw (read/write). Privilege *string `json:"Privilege,omitempty" name:"Privilege"` // true: make the root account password-free. This is applicable to root accounts only. Sub-accounts cannot be made password-free. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` }
func NewModifyInstanceAccountRequest ¶
func NewModifyInstanceAccountRequest() (request *ModifyInstanceAccountRequest)
func (*ModifyInstanceAccountRequest) FromJsonString ¶
func (r *ModifyInstanceAccountRequest) 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 (*ModifyInstanceAccountRequest) ToJsonString ¶
func (r *ModifyInstanceAccountRequest) ToJsonString() string
type ModifyInstanceAccountRequestParams ¶
type ModifyInstanceAccountRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Sub-account name. If the root account is to be modified, enter `root`. AccountName *string `json:"AccountName,omitempty" name:"AccountName"` // Sub-account password AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` // Sub-account description information Remark *string `json:"Remark,omitempty" name:"Remark"` // Routing policy. Valid values: master (master node); replication (replica node) ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy"` // Sub-account read/write policy. Valid values: r (read-only); w (write-only); rw (read/write). Privilege *string `json:"Privilege,omitempty" name:"Privilege"` // true: make the root account password-free. This is applicable to root accounts only. Sub-accounts cannot be made password-free. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` }
Predefined struct for user
type ModifyInstanceAccountResponse ¶
type ModifyInstanceAccountResponse struct { *tchttp.BaseResponse Response *ModifyInstanceAccountResponseParams `json:"Response"` }
func NewModifyInstanceAccountResponse ¶
func NewModifyInstanceAccountResponse() (response *ModifyInstanceAccountResponse)
func (*ModifyInstanceAccountResponse) FromJsonString ¶
func (r *ModifyInstanceAccountResponse) 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 (*ModifyInstanceAccountResponse) ToJsonString ¶
func (r *ModifyInstanceAccountResponse) ToJsonString() string
type ModifyInstanceAccountResponseParams ¶
type ModifyInstanceAccountResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstanceParamsRequest ¶
type ModifyInstanceParamsRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of instance parameters modified InstanceParams []*InstanceParam `json:"InstanceParams,omitempty" name:"InstanceParams"` }
func NewModifyInstanceParamsRequest ¶
func NewModifyInstanceParamsRequest() (request *ModifyInstanceParamsRequest)
func (*ModifyInstanceParamsRequest) FromJsonString ¶
func (r *ModifyInstanceParamsRequest) 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 (*ModifyInstanceParamsRequest) ToJsonString ¶
func (r *ModifyInstanceParamsRequest) ToJsonString() string
type ModifyInstanceParamsRequestParams ¶
type ModifyInstanceParamsRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of instance parameters modified InstanceParams []*InstanceParam `json:"InstanceParams,omitempty" name:"InstanceParams"` }
Predefined struct for user
type ModifyInstanceParamsResponse ¶
type ModifyInstanceParamsResponse struct { *tchttp.BaseResponse Response *ModifyInstanceParamsResponseParams `json:"Response"` }
func NewModifyInstanceParamsResponse ¶
func NewModifyInstanceParamsResponse() (response *ModifyInstanceParamsResponse)
func (*ModifyInstanceParamsResponse) FromJsonString ¶
func (r *ModifyInstanceParamsResponse) 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 (*ModifyInstanceParamsResponse) ToJsonString ¶
func (r *ModifyInstanceParamsResponse) ToJsonString() string
type ModifyInstanceParamsResponseParams ¶
type ModifyInstanceParamsResponseParams struct { // Whether the parameter is modified successfully. <br><li>`True`: Yes<br><li>`False`: No<br> Changed *bool `json:"Changed,omitempty" name:"Changed"` // ID of the task TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstanceReadOnlyRequest ¶
type ModifyInstanceReadOnlyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance input mode. Valid values: `0` (read/write), `1` (read-only) InputMode *string `json:"InputMode,omitempty" name:"InputMode"` }
func NewModifyInstanceReadOnlyRequest ¶
func NewModifyInstanceReadOnlyRequest() (request *ModifyInstanceReadOnlyRequest)
func (*ModifyInstanceReadOnlyRequest) FromJsonString ¶
func (r *ModifyInstanceReadOnlyRequest) 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 (*ModifyInstanceReadOnlyRequest) ToJsonString ¶
func (r *ModifyInstanceReadOnlyRequest) ToJsonString() string
type ModifyInstanceReadOnlyRequestParams ¶
type ModifyInstanceReadOnlyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance input mode. Valid values: `0` (read/write), `1` (read-only) InputMode *string `json:"InputMode,omitempty" name:"InputMode"` }
Predefined struct for user
type ModifyInstanceReadOnlyResponse ¶
type ModifyInstanceReadOnlyResponse struct { *tchttp.BaseResponse Response *ModifyInstanceReadOnlyResponseParams `json:"Response"` }
func NewModifyInstanceReadOnlyResponse ¶
func NewModifyInstanceReadOnlyResponse() (response *ModifyInstanceReadOnlyResponse)
func (*ModifyInstanceReadOnlyResponse) FromJsonString ¶
func (r *ModifyInstanceReadOnlyResponse) 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 (*ModifyInstanceReadOnlyResponse) ToJsonString ¶
func (r *ModifyInstanceReadOnlyResponse) ToJsonString() string
type ModifyInstanceReadOnlyResponseParams ¶
type ModifyInstanceReadOnlyResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyInstanceRequest ¶
type ModifyInstanceRequest struct { *tchttp.BaseRequest // Instance modification type. rename: rename an instance; modifyProject: modify the project of an instance; modifyAutoRenew: modify the auto-renewal flag of an instance. Operation *string `json:"Operation,omitempty" name:"Operation"` // Instance ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // New name of the instance InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Auto-renewal flag. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled AutoRenews []*int64 `json:"AutoRenews,omitempty" name:"AutoRenews"` // Disused InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Disused InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Disused AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` }
func NewModifyInstanceRequest ¶
func NewModifyInstanceRequest() (request *ModifyInstanceRequest)
func (*ModifyInstanceRequest) FromJsonString ¶
func (r *ModifyInstanceRequest) 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 (*ModifyInstanceRequest) ToJsonString ¶
func (r *ModifyInstanceRequest) ToJsonString() string
type ModifyInstanceRequestParams ¶
type ModifyInstanceRequestParams struct { // Instance modification type. rename: rename an instance; modifyProject: modify the project of an instance; modifyAutoRenew: modify the auto-renewal flag of an instance. Operation *string `json:"Operation,omitempty" name:"Operation"` // Instance ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // New name of the instance InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Auto-renewal flag. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled AutoRenews []*int64 `json:"AutoRenews,omitempty" name:"AutoRenews"` // Disused InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Disused InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Disused AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"` }
Predefined struct for user
type ModifyInstanceResponse ¶
type ModifyInstanceResponse struct { *tchttp.BaseResponse Response *ModifyInstanceResponseParams `json:"Response"` }
func NewModifyInstanceResponse ¶
func NewModifyInstanceResponse() (response *ModifyInstanceResponse)
func (*ModifyInstanceResponse) FromJsonString ¶
func (r *ModifyInstanceResponse) 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 (*ModifyInstanceResponse) ToJsonString ¶
func (r *ModifyInstanceResponse) ToJsonString() string
type ModifyInstanceResponseParams ¶
type ModifyInstanceResponseParams 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"` }
Predefined struct for user
type ModifyMaintenanceWindowRequest ¶
type ModifyMaintenanceWindowRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Maintenance start time, such as 17:00 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Maintenance end time, such as 19:00 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewModifyMaintenanceWindowRequest ¶
func NewModifyMaintenanceWindowRequest() (request *ModifyMaintenanceWindowRequest)
func (*ModifyMaintenanceWindowRequest) FromJsonString ¶
func (r *ModifyMaintenanceWindowRequest) 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 (*ModifyMaintenanceWindowRequest) ToJsonString ¶
func (r *ModifyMaintenanceWindowRequest) ToJsonString() string
type ModifyMaintenanceWindowRequestParams ¶
type ModifyMaintenanceWindowRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Maintenance start time, such as 17:00 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Maintenance end time, such as 19:00 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
Predefined struct for user
type ModifyMaintenanceWindowResponse ¶
type ModifyMaintenanceWindowResponse struct { *tchttp.BaseResponse Response *ModifyMaintenanceWindowResponseParams `json:"Response"` }
func NewModifyMaintenanceWindowResponse ¶
func NewModifyMaintenanceWindowResponse() (response *ModifyMaintenanceWindowResponse)
func (*ModifyMaintenanceWindowResponse) FromJsonString ¶
func (r *ModifyMaintenanceWindowResponse) 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 (*ModifyMaintenanceWindowResponse) ToJsonString ¶
func (r *ModifyMaintenanceWindowResponse) ToJsonString() string
type ModifyMaintenanceWindowResponseParams ¶
type ModifyMaintenanceWindowResponseParams struct { // Modification status. Valid values: success, failed. Status *string `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"` }
Predefined struct for user
type ModifyNetworkConfigRequest ¶
type ModifyNetworkConfigRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Network change type. Valid values: // - `changeVip`: VPC change, including the private IPv4 address and port. // - `changeVpc`: Subnet change. // - `changeBaseToVpc`: Change from classic network to VPC. // - `changeVPort`: Port change. Operation *string `json:"Operation,omitempty" name:"Operation"` // Private IPv4 address of the instance, which is required if `Operation` is `changeVip`. Vip *string `json:"Vip,omitempty" name:"Vip"` // VPC ID after the change, which is required if `Operation` is `changeVpc` or `changeBaseToVpc`. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID after the change, which is required if `Operation` is `changeVpc` or `changeBaseToVpc`. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Retention period of the original private IPv4 address // - Unit: Days. // - Valid values: `0`, `1`, `2`, `3`, `7`, `15`. // // **Note**: You can set the retention period of the original address only in the latest SDK. In earlier SDKs, the original address is released immediately. To view the SDK version, go to [SDK Center](https://intl.cloud.tencent.com/document/sdk?from_cn_redirect=1). Recycle *int64 `json:"Recycle,omitempty" name:"Recycle"` // Network port after the change, which is required if `Operation` is `changeVPort` or `changeVip`. Value range: [1024,65535]. VPort *int64 `json:"VPort,omitempty" name:"VPort"` }
func NewModifyNetworkConfigRequest ¶
func NewModifyNetworkConfigRequest() (request *ModifyNetworkConfigRequest)
func (*ModifyNetworkConfigRequest) FromJsonString ¶
func (r *ModifyNetworkConfigRequest) 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 (*ModifyNetworkConfigRequest) ToJsonString ¶
func (r *ModifyNetworkConfigRequest) ToJsonString() string
type ModifyNetworkConfigRequestParams ¶
type ModifyNetworkConfigRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Network change type. Valid values: // - `changeVip`: VPC change, including the private IPv4 address and port. // - `changeVpc`: Subnet change. // - `changeBaseToVpc`: Change from classic network to VPC. // - `changeVPort`: Port change. Operation *string `json:"Operation,omitempty" name:"Operation"` // Private IPv4 address of the instance, which is required if `Operation` is `changeVip`. Vip *string `json:"Vip,omitempty" name:"Vip"` // VPC ID after the change, which is required if `Operation` is `changeVpc` or `changeBaseToVpc`. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID after the change, which is required if `Operation` is `changeVpc` or `changeBaseToVpc`. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Retention period of the original private IPv4 address // - Unit: Days. // - Valid values: `0`, `1`, `2`, `3`, `7`, `15`. // // **Note**: You can set the retention period of the original address only in the latest SDK. In earlier SDKs, the original address is released immediately. To view the SDK version, go to [SDK Center](https://intl.cloud.tencent.com/document/sdk?from_cn_redirect=1). Recycle *int64 `json:"Recycle,omitempty" name:"Recycle"` // Network port after the change, which is required if `Operation` is `changeVPort` or `changeVip`. Value range: [1024,65535]. VPort *int64 `json:"VPort,omitempty" name:"VPort"` }
Predefined struct for user
type ModifyNetworkConfigResponse ¶
type ModifyNetworkConfigResponse struct { *tchttp.BaseResponse Response *ModifyNetworkConfigResponseParams `json:"Response"` }
func NewModifyNetworkConfigResponse ¶
func NewModifyNetworkConfigResponse() (response *ModifyNetworkConfigResponse)
func (*ModifyNetworkConfigResponse) FromJsonString ¶
func (r *ModifyNetworkConfigResponse) 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 (*ModifyNetworkConfigResponse) ToJsonString ¶
func (r *ModifyNetworkConfigResponse) ToJsonString() string
type ModifyNetworkConfigResponseParams ¶
type ModifyNetworkConfigResponseParams struct { // Execution status. Ignore this parameter. Status *bool `json:"Status,omitempty" name:"Status"` // New subnet ID of the instance SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // New VPC ID of the instance VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // New private IPv4 address of the instance Vip *string `json:"Vip,omitempty" name:"Vip"` // Task ID, which can be used to query the task execution status through the `DescribeTaskInfo` API. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyParamTemplateRequest ¶
type ModifyParamTemplateRequest struct { *tchttp.BaseRequest // ID of the source parameter template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // New name after the parameter template is modified. Name *string `json:"Name,omitempty" name:"Name"` // New description after the parameter template is modified. Description *string `json:"Description,omitempty" name:"Description"` // New parameter list after the parameter template is modified. ParamList []*InstanceParam `json:"ParamList,omitempty" name:"ParamList"` }
func NewModifyParamTemplateRequest ¶
func NewModifyParamTemplateRequest() (request *ModifyParamTemplateRequest)
func (*ModifyParamTemplateRequest) FromJsonString ¶
func (r *ModifyParamTemplateRequest) 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 (*ModifyParamTemplateRequest) ToJsonString ¶
func (r *ModifyParamTemplateRequest) ToJsonString() string
type ModifyParamTemplateRequestParams ¶
type ModifyParamTemplateRequestParams struct { // ID of the source parameter template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // New name after the parameter template is modified. Name *string `json:"Name,omitempty" name:"Name"` // New description after the parameter template is modified. Description *string `json:"Description,omitempty" name:"Description"` // New parameter list after the parameter template is modified. ParamList []*InstanceParam `json:"ParamList,omitempty" name:"ParamList"` }
Predefined struct for user
type ModifyParamTemplateResponse ¶
type ModifyParamTemplateResponse struct { *tchttp.BaseResponse Response *ModifyParamTemplateResponseParams `json:"Response"` }
func NewModifyParamTemplateResponse ¶
func NewModifyParamTemplateResponse() (response *ModifyParamTemplateResponse)
func (*ModifyParamTemplateResponse) FromJsonString ¶
func (r *ModifyParamTemplateResponse) 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 (*ModifyParamTemplateResponse) ToJsonString ¶
func (r *ModifyParamTemplateResponse) ToJsonString() string
type ModifyParamTemplateResponseParams ¶
type ModifyParamTemplateResponseParams 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"` }
Predefined struct for user
type OpenSSLRequest ¶
type OpenSSLRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewOpenSSLRequest ¶
func NewOpenSSLRequest() (request *OpenSSLRequest)
func (*OpenSSLRequest) FromJsonString ¶
func (r *OpenSSLRequest) 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 (*OpenSSLRequest) ToJsonString ¶
func (r *OpenSSLRequest) ToJsonString() string
type OpenSSLRequestParams ¶
type OpenSSLRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type OpenSSLResponse ¶
type OpenSSLResponse struct { *tchttp.BaseResponse Response *OpenSSLResponseParams `json:"Response"` }
func NewOpenSSLResponse ¶
func NewOpenSSLResponse() (response *OpenSSLResponse)
func (*OpenSSLResponse) FromJsonString ¶
func (r *OpenSSLResponse) 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 (*OpenSSLResponse) ToJsonString ¶
func (r *OpenSSLResponse) ToJsonString() string
type OpenSSLResponseParams ¶
type OpenSSLResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Outbound ¶
type Outbound struct { // Policy. Valid values: ACCEPT, DROP. Action *string `json:"Action,omitempty" name:"Action"` // All the addresses that the address group ID represents. AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"` // Source IP or IP address range, such as 192.168.0.0/16. CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"` // Description. Desc *string `json:"Desc,omitempty" name:"Desc"` // Network protocol, such as UDP and TCP. IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` // Port. PortRange *string `json:"PortRange,omitempty" name:"PortRange"` // All the protocols and ports that the service group ID represents. ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"` // All the addresses that the security group ID represents. Id *string `json:"Id,omitempty" name:"Id"` }
type ParamTemplateInfo ¶
type ParamTemplateInfo struct { // Parameter template ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // Parameter template name Name *string `json:"Name,omitempty" name:"Name"` // Parameter template description Description *string `json:"Description,omitempty" name:"Description"` // Instance type // - `2`: Redis 2.8 Memory Edition (Standard Architecture). // - `3`: CKV 3.2 Memory Edition (Standard Architecture). // - `4`: CKV 3.2 Memory Edition (Cluster Architecture). // - `5`: Redis 2.8 Memory Edition (Standalone). // - `6`: Redis 4.0 Memory Edition (Standard Architecture). // - `7`: Redis 4.0 Memory Edition (Cluster Architecture). // - `8`: Redis 5.0 Memory Edition (Standard Architecture). // - `9`: Redis 5.0 Memory Edition (Cluster Architecture). // - `15`: Redis 6.2 Memory Edition (Standard Architecture). // - `16`: Redis 6.2 Memory Edition (Cluster Architecture). ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"` }
type ParameterDetail ¶
type ParameterDetail struct { // Parameter name Name *string `json:"Name,omitempty" name:"Name"` // Parameter Type 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 to restart the database for the modified parameters to take effect // - `0`: No restart. // - `1`: Restart required. NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"` // Maximum value of the parameter // Note: This field may return null, indicating that no valid values can be obtained. Max *string `json:"Max,omitempty" name:"Max"` // Minimum value of the parameter // Note: This field may return null, indicating that no valid values can be obtained. Min *string `json:"Min,omitempty" name:"Min"` // Enumerated values of the parameter. It is null if the parameter is non-enumerated // Note: This field may return null, indicating that no valid values can be obtained. EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"` }
type ProductConf ¶
type ProductConf struct { // Product type // - `2`: Redis 2.8 Memory Edition (Standard Architecture). // - `3`: CKV 3.2 Memory Edition (Standard Architecture). // - `4`: CKV 3.2 Memory Edition (Cluster Architecture). // - `5`: Redis 2.8 Memory Edition (Standalone). // - `6`: Redis 4.0 Memory Edition (Standard Architecture). // - `7`: Redis 4.0 Memory Edition (Cluster Architecture). // - `8`: Redis 5.0 Memory Edition (Standard Architecture). // - `9`: Redis 5.0 Memory Edition (Cluster Architecture). // - `15`: Redis 6.2 Memory Edition (Standard Architecture). // - `16`: Redis 6.2 Memory Edition (Cluster Architecture). Type *int64 `json:"Type,omitempty" name:"Type"` // Product names, including Redis Master-Replica Edition, Redis Standalone Edition, Redis 4.0 Cluster Edition, CKV Master-Replica Edition, and CKV Standalone Edition. TypeName *string `json:"TypeName,omitempty" name:"TypeName"` // Minimum purchasable quantity MinBuyNum *int64 `json:"MinBuyNum,omitempty" name:"MinBuyNum"` // Maximum purchasable quantity MaxBuyNum *int64 `json:"MaxBuyNum,omitempty" name:"MaxBuyNum"` // Whether a product is sold out // - `true`: Sold out. // - `false`: Not sold out. Saleout *bool `json:"Saleout,omitempty" name:"Saleout"` // Product engines, including Tencent Cloud CKV and Redis Community Edition. Engine *string `json:"Engine,omitempty" name:"Engine"` // Compatible versions, including Redis 2.8, 3.2, 4.0, 5.0, and 6.2. Version *string `json:"Version,omitempty" name:"Version"` // Total capacity in GB TotalSize []*string `json:"TotalSize,omitempty" name:"TotalSize"` // Shard size in GB ShardSize []*string `json:"ShardSize,omitempty" name:"ShardSize"` // Quantity of replicas ReplicaNum []*string `json:"ReplicaNum,omitempty" name:"ReplicaNum"` // Quantity of shards ShardNum []*string `json:"ShardNum,omitempty" name:"ShardNum"` // Supported billing modes // - `1`: Monthly subscription. // - `0`: Pay-as-you-go. PayMode *string `json:"PayMode,omitempty" name:"PayMode"` // Whether to support read-only replicas // - `true`: Supported. // -`false`: Not supported. EnableRepicaReadOnly *bool `json:"EnableRepicaReadOnly,omitempty" name:"EnableRepicaReadOnly"` }
type ProxyNodes ¶
type ProxyNodes struct { // Node ID // Note: This field may return null, indicating that no valid values can be obtained. NodeId *string `json:"NodeId,omitempty" name:"NodeId"` // AZ ID // Note: This field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` }
type RedisBackupSet ¶
type RedisBackupSet struct { // Backup start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Backup task ID BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Backup type. Valid values: `1` (Automatic backup in the early morning initiated by the system.) `0`: Manual backup initiated by the user. BackupType *string `json:"BackupType,omitempty" name:"BackupType"` // Backup status. Valid values: - `1`: The backup is locked by another process. - `2`: The backup is normal and not locked by any process. - `-1`: The backup is expired. - `3`: The backup is being exported. - `4`: Exported the backup successfully. Status *int64 `json:"Status,omitempty" name:"Status"` // Backup remarks Remark *string `json:"Remark,omitempty" name:"Remark"` // Whether the backup is locked. Valid values: - `0` (no) - `1` (yes) Locked *int64 `json:"Locked,omitempty" name:"Locked"` // Internal field, which can be ignored. // Note: This field may return null, indicating that no valid values can be obtained. BackupSize *int64 `json:"BackupSize,omitempty" name:"BackupSize"` // Internal field, which can be ignored. // Note: This field may return null, indicating that no valid values can be obtained. FullBackup *int64 `json:"FullBackup,omitempty" name:"FullBackup"` // Internal field, which can be ignored. // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // The region where the local backup resides. Region *string `json:"Region,omitempty" name:"Region"` // Backup end time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Backup file type FileType *string `json:"FileType,omitempty" name:"FileType"` // Backup file expiration time ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` }
type RedisCommonInstanceList ¶
type RedisCommonInstanceList struct { // Instance name InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // User APPID, which is the unique application ID that matches an account. Some Tencent Cloud products use this APPID. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Project ID of the instance ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Instance region Region *string `json:"Region,omitempty" name:"Region"` // Instance AZ Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // VPC subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Instance status information // - `1`: Task running. // - `2`: Instance running. // - `-2`: Instance isolated. // - `-3`: Instance being eliminated. // - `-4`: Instance eliminated. Status *string `json:"Status,omitempty" name:"Status"` // Private network IP address of an instance Vips []*string `json:"Vips,omitempty" name:"Vips"` // Instance network port Vport *int64 `json:"Vport,omitempty" name:"Vport"` // Instance creation time Createtime *string `json:"Createtime,omitempty" name:"Createtime"` // Billing type // - `0`: Pay-as-you-go. // - `1`: Monthly subscription. PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Network Type // - `0`: Classic network. // - `1`: VPC. NetType *int64 `json:"NetType,omitempty" name:"NetType"` }
type RedisNode ¶
type RedisNode struct { // Number of keys on Redis nodes Keys *int64 `json:"Keys,omitempty" name:"Keys"` // Slot distribution range for Redis node. Value range: 0-5460. Slot *string `json:"Slot,omitempty" name:"Slot"` // Node sequence ID NodeId *string `json:"NodeId,omitempty" name:"NodeId"` // Node status Status *string `json:"Status,omitempty" name:"Status"` // Node role Role *string `json:"Role,omitempty" name:"Role"` }
type RedisNodeInfo ¶
type RedisNodeInfo struct { // Node type. <ul><li>`0`: Master node.</li><li>`1`: Replica node.</li></ul> NodeType *int64 `json:"NodeType,omitempty" name:"NodeType"` // ID of the master or replica node <ul><li>This parameter is optional when the [CreateInstances](https://intl.cloud.tencent.com/document/product/239/20026?from_cn_redirect=1) API is used to create a TencentDB for Redis instance, but it is required when the [UpgradeInstance](https://intl.cloud.tencent.com/document/product/239/20013?from_cn_redirect=1) API is used to adjust the configuration of an instance by deleting a replica. </li><li>You can use the [DescribeInstances](https://intl.cloud.tencent.com/document/product/239/20018?from_cn_redirect=1) API to get the node ID of integer type. </li></ul> </li></ul> NodeId *int64 `json:"NodeId,omitempty" name:"NodeId"` // ID of the AZ of the master or replica node ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Name of the AZ of the master or replica node ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` }
type RedisNodes ¶
type RedisNodes struct { // Node ID NodeId *string `json:"NodeId,omitempty" name:"NodeId"` // Node role NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` // Shard ID ClusterId *int64 `json:"ClusterId,omitempty" name:"ClusterId"` // AZ ID ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` }
type RegionConf ¶
type RegionConf struct { // Region ID RegionId *string `json:"RegionId,omitempty" name:"RegionId"` // Region name RegionName *string `json:"RegionName,omitempty" name:"RegionName"` // Region abbreviation RegionShortName *string `json:"RegionShortName,omitempty" name:"RegionShortName"` // Name of the area where a region is located Area *string `json:"Area,omitempty" name:"Area"` // AZ information ZoneSet []*ZoneCapacityConf `json:"ZoneSet,omitempty" name:"ZoneSet"` }
type ReleaseWanAddressRequest ¶
type ReleaseWanAddressRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewReleaseWanAddressRequest ¶
func NewReleaseWanAddressRequest() (request *ReleaseWanAddressRequest)
func (*ReleaseWanAddressRequest) FromJsonString ¶
func (r *ReleaseWanAddressRequest) 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 (*ReleaseWanAddressRequest) ToJsonString ¶
func (r *ReleaseWanAddressRequest) ToJsonString() string
type ReleaseWanAddressRequestParams ¶
type ReleaseWanAddressRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type ReleaseWanAddressResponse ¶
type ReleaseWanAddressResponse struct { *tchttp.BaseResponse Response *ReleaseWanAddressResponseParams `json:"Response"` }
func NewReleaseWanAddressResponse ¶
func NewReleaseWanAddressResponse() (response *ReleaseWanAddressResponse)
func (*ReleaseWanAddressResponse) FromJsonString ¶
func (r *ReleaseWanAddressResponse) 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 (*ReleaseWanAddressResponse) ToJsonString ¶
func (r *ReleaseWanAddressResponse) ToJsonString() string
type ReleaseWanAddressResponseParams ¶
type ReleaseWanAddressResponseParams struct { // Async task ID FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Status of disabling public network access WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type RemoveReplicationInstanceRequest ¶
type RemoveReplicationInstanceRequest struct { *tchttp.BaseRequest // Replication group ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Data sync type. Valid values: `true` (strong sync is required), `false` (strong sync is not required, only the master instance can be deleted). SyncType *bool `json:"SyncType,omitempty" name:"SyncType"` }
func NewRemoveReplicationInstanceRequest ¶
func NewRemoveReplicationInstanceRequest() (request *RemoveReplicationInstanceRequest)
func (*RemoveReplicationInstanceRequest) FromJsonString ¶
func (r *RemoveReplicationInstanceRequest) 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 (*RemoveReplicationInstanceRequest) ToJsonString ¶
func (r *RemoveReplicationInstanceRequest) ToJsonString() string
type RemoveReplicationInstanceRequestParams ¶
type RemoveReplicationInstanceRequestParams struct { // Replication group ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Data sync type. Valid values: `true` (strong sync is required), `false` (strong sync is not required, only the master instance can be deleted). SyncType *bool `json:"SyncType,omitempty" name:"SyncType"` }
Predefined struct for user
type RemoveReplicationInstanceResponse ¶
type RemoveReplicationInstanceResponse struct { *tchttp.BaseResponse Response *RemoveReplicationInstanceResponseParams `json:"Response"` }
func NewRemoveReplicationInstanceResponse ¶
func NewRemoveReplicationInstanceResponse() (response *RemoveReplicationInstanceResponse)
func (*RemoveReplicationInstanceResponse) FromJsonString ¶
func (r *RemoveReplicationInstanceResponse) 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 (*RemoveReplicationInstanceResponse) ToJsonString ¶
func (r *RemoveReplicationInstanceResponse) ToJsonString() string
type RemoveReplicationInstanceResponseParams ¶
type RemoveReplicationInstanceResponseParams struct { // Async task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type RenewInstanceRequest ¶
type RenewInstanceRequest struct { *tchttp.BaseRequest // Validity period in months Period *uint64 `json:"Period,omitempty" name:"Period"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The parameter used to determine whether to modify the billing mode. <ul><li>If you want to change the billing mode from pay-as-you-go to monthly subscription, specify this parameter as <b>prepaid</b>. </li><li>If the current instance is monthly subscribed, this parameter is not required. </li></ul> ModifyPayMode *string `json:"ModifyPayMode,omitempty" name:"ModifyPayMode"` }
func NewRenewInstanceRequest ¶
func NewRenewInstanceRequest() (request *RenewInstanceRequest)
func (*RenewInstanceRequest) FromJsonString ¶
func (r *RenewInstanceRequest) 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 (*RenewInstanceRequest) ToJsonString ¶
func (r *RenewInstanceRequest) ToJsonString() string
type RenewInstanceRequestParams ¶
type RenewInstanceRequestParams struct { // Validity period in months Period *uint64 `json:"Period,omitempty" name:"Period"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The parameter used to determine whether to modify the billing mode. <ul><li>If you want to change the billing mode from pay-as-you-go to monthly subscription, specify this parameter as <b>prepaid</b>. </li><li>If the current instance is monthly subscribed, this parameter is not required. </li></ul> ModifyPayMode *string `json:"ModifyPayMode,omitempty" name:"ModifyPayMode"` }
Predefined struct for user
type RenewInstanceResponse ¶
type RenewInstanceResponse struct { *tchttp.BaseResponse Response *RenewInstanceResponseParams `json:"Response"` }
func NewRenewInstanceResponse ¶
func NewRenewInstanceResponse() (response *RenewInstanceResponse)
func (*RenewInstanceResponse) FromJsonString ¶
func (r *RenewInstanceResponse) 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 (*RenewInstanceResponse) ToJsonString ¶
func (r *RenewInstanceResponse) ToJsonString() string
type RenewInstanceResponseParams ¶
type RenewInstanceResponseParams struct { // Transaction ID DealId *string `json:"DealId,omitempty" name:"DealId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ReplicaGroup ¶
type ReplicaGroup struct { // Node group ID GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` // Node group name, which is empty for the master node GroupName *string `json:"GroupName,omitempty" name:"GroupName"` // Node AZ ID, such as ap-guangzhou-1 ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"` // Node group type. Valid values: master (master node group); replica (replica node group) Role *string `json:"Role,omitempty" name:"Role"` // List of nodes in the node group RedisNodes []*RedisNode `json:"RedisNodes,omitempty" name:"RedisNodes"` }
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { *tchttp.BaseRequest // Redis instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Password reset (this parameter can be left blank when switching to password-free instance mode and is required in other cases) Password *string `json:"Password,omitempty" name:"Password"` // Whether to switch to password-free instance mode. false: switch to password-enabled instance mode; true: switch to password-free instance mode. Default value: false. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` }
func NewResetPasswordRequest ¶
func NewResetPasswordRequest() (request *ResetPasswordRequest)
func (*ResetPasswordRequest) FromJsonString ¶
func (r *ResetPasswordRequest) 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 (*ResetPasswordRequest) ToJsonString ¶
func (r *ResetPasswordRequest) ToJsonString() string
type ResetPasswordRequestParams ¶
type ResetPasswordRequestParams struct { // Redis instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Password reset (this parameter can be left blank when switching to password-free instance mode and is required in other cases) Password *string `json:"Password,omitempty" name:"Password"` // Whether to switch to password-free instance mode. false: switch to password-enabled instance mode; true: switch to password-free instance mode. Default value: false. NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"` }
Predefined struct for user
type ResetPasswordResponse ¶
type ResetPasswordResponse struct { *tchttp.BaseResponse Response *ResetPasswordResponseParams `json:"Response"` }
func NewResetPasswordResponse ¶
func NewResetPasswordResponse() (response *ResetPasswordResponse)
func (*ResetPasswordResponse) FromJsonString ¶
func (r *ResetPasswordResponse) 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 (*ResetPasswordResponse) ToJsonString ¶
func (r *ResetPasswordResponse) ToJsonString() string
type ResetPasswordResponseParams ¶
type ResetPasswordResponseParams struct { // Task ID (this parameter is the task ID when changing a password. If you are switching between password-free and password-enabled instance mode, you can leave this parameter alone) TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ResourceTag ¶
type RestoreInstanceRequest ¶
type RestoreInstanceRequest struct { *tchttp.BaseRequest // ID of the instance to be operated on, which can be obtained through the `InstanceId` field in the return value of the `DescribeInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup ID, which can be obtained through the `backupId` field in the return value of the `GetRedisBackupList` API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Instance password, which needs to be validated during instance restoration (this parameter is not required for password-free instances) Password *string `json:"Password,omitempty" name:"Password"` }
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 RestoreInstanceRequestParams ¶
type RestoreInstanceRequestParams struct { // ID of the instance to be operated on, which can be obtained through the `InstanceId` field in the return value of the `DescribeInstances` API. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Backup ID, which can be obtained through the `backupId` field in the return value of the `GetRedisBackupList` API. BackupId *string `json:"BackupId,omitempty" name:"BackupId"` // Instance password, which needs to be validated during instance restoration (this parameter is not required for password-free instances) Password *string `json:"Password,omitempty" name:"Password"` }
Predefined struct for user
type RestoreInstanceResponse ¶
type RestoreInstanceResponse struct { *tchttp.BaseResponse Response *RestoreInstanceResponseParams `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 RestoreInstanceResponseParams ¶
type RestoreInstanceResponseParams struct { // Task ID, which can be used to query the task execution status through the `DescribeTaskInfo` API. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SecurityGroup ¶
type SecurityGroup struct { // Creation time in the format of yyyy-mm-dd hh:mm:ss. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Project ID. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // Security group name. SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` // Security group remarks. SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` // Outbound rule. Outbound []*Outbound `json:"Outbound,omitempty" name:"Outbound"` // Inbound rule. Inbound []*Inbound `json:"Inbound,omitempty" name:"Inbound"` }
type SecurityGroupDetail ¶
type SecurityGroupDetail struct { // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Security group creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Security group ID SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` // Security group name SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` // Security group remarks SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"` // Inbound rules of the security group, which control the access source to the database. InboundRule []*SecurityGroupsInboundAndOutbound `json:"InboundRule,omitempty" name:"InboundRule"` // Security group outbound rule OutboundRule []*SecurityGroupsInboundAndOutbound `json:"OutboundRule,omitempty" name:"OutboundRule"` }
type SecurityGroupsInboundAndOutbound ¶
type SecurityGroupsInboundAndOutbound struct { // Identify whether the IP and port for accessing the database are allowed Action *string `json:"Action,omitempty" name:"Action"` // IP address for accessing the database Ip *string `json:"Ip,omitempty" name:"Ip"` // Port number Port *string `json:"Port,omitempty" name:"Port"` // Protocol type Proto *string `json:"Proto,omitempty" name:"Proto"` }
type SourceCommand ¶
type SourceInfo ¶
type StartupInstanceRequest ¶
type StartupInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewStartupInstanceRequest ¶
func NewStartupInstanceRequest() (request *StartupInstanceRequest)
func (*StartupInstanceRequest) FromJsonString ¶
func (r *StartupInstanceRequest) 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 (*StartupInstanceRequest) ToJsonString ¶
func (r *StartupInstanceRequest) ToJsonString() string
type StartupInstanceRequestParams ¶
type StartupInstanceRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type StartupInstanceResponse ¶
type StartupInstanceResponse struct { *tchttp.BaseResponse Response *StartupInstanceResponseParams `json:"Response"` }
func NewStartupInstanceResponse ¶
func NewStartupInstanceResponse() (response *StartupInstanceResponse)
func (*StartupInstanceResponse) FromJsonString ¶
func (r *StartupInstanceResponse) 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 (*StartupInstanceResponse) ToJsonString ¶
func (r *StartupInstanceResponse) ToJsonString() string
type StartupInstanceResponseParams ¶
type StartupInstanceResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SwitchInstanceVipRequest ¶
type SwitchInstanceVipRequest struct { *tchttp.BaseRequest // Source instance ID SrcInstanceId *string `json:"SrcInstanceId,omitempty" name:"SrcInstanceId"` // Target instance ID DstInstanceId *string `json:"DstInstanceId,omitempty" name:"DstInstanceId"` // The time that lapses in seconds since DTS is disconnected between the source instance and the target instance. If the DTS disconnection time period is greater than TimeDelay, the VIP will not be switched. We recommend you set an acceptable value based on the actual business conditions. TimeDelay *int64 `json:"TimeDelay,omitempty" name:"TimeDelay"` // Whether to force the switch when DTS is disconnected. 1: yes; 0: no. ForceSwitch *int64 `json:"ForceSwitch,omitempty" name:"ForceSwitch"` // now: switch now; syncComplete: switch after sync is completed SwitchTime *string `json:"SwitchTime,omitempty" name:"SwitchTime"` }
func NewSwitchInstanceVipRequest ¶
func NewSwitchInstanceVipRequest() (request *SwitchInstanceVipRequest)
func (*SwitchInstanceVipRequest) FromJsonString ¶
func (r *SwitchInstanceVipRequest) 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 (*SwitchInstanceVipRequest) ToJsonString ¶
func (r *SwitchInstanceVipRequest) ToJsonString() string
type SwitchInstanceVipRequestParams ¶
type SwitchInstanceVipRequestParams struct { // Source instance ID SrcInstanceId *string `json:"SrcInstanceId,omitempty" name:"SrcInstanceId"` // Target instance ID DstInstanceId *string `json:"DstInstanceId,omitempty" name:"DstInstanceId"` // The time that lapses in seconds since DTS is disconnected between the source instance and the target instance. If the DTS disconnection time period is greater than TimeDelay, the VIP will not be switched. We recommend you set an acceptable value based on the actual business conditions. TimeDelay *int64 `json:"TimeDelay,omitempty" name:"TimeDelay"` // Whether to force the switch when DTS is disconnected. 1: yes; 0: no. ForceSwitch *int64 `json:"ForceSwitch,omitempty" name:"ForceSwitch"` // now: switch now; syncComplete: switch after sync is completed SwitchTime *string `json:"SwitchTime,omitempty" name:"SwitchTime"` }
Predefined struct for user
type SwitchInstanceVipResponse ¶
type SwitchInstanceVipResponse struct { *tchttp.BaseResponse Response *SwitchInstanceVipResponseParams `json:"Response"` }
func NewSwitchInstanceVipResponse ¶
func NewSwitchInstanceVipResponse() (response *SwitchInstanceVipResponse)
func (*SwitchInstanceVipResponse) FromJsonString ¶
func (r *SwitchInstanceVipResponse) 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 (*SwitchInstanceVipResponse) ToJsonString ¶
func (r *SwitchInstanceVipResponse) ToJsonString() string
type SwitchInstanceVipResponseParams ¶
type SwitchInstanceVipResponseParams struct { // Task ID TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SwitchProxyRequest ¶
type SwitchProxyRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance ProxyID ProxyID *string `json:"ProxyID,omitempty" name:"ProxyID"` }
func NewSwitchProxyRequest ¶
func NewSwitchProxyRequest() (request *SwitchProxyRequest)
func (*SwitchProxyRequest) FromJsonString ¶
func (r *SwitchProxyRequest) 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 (*SwitchProxyRequest) ToJsonString ¶
func (r *SwitchProxyRequest) ToJsonString() string
type SwitchProxyRequestParams ¶
type SwitchProxyRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance ProxyID ProxyID *string `json:"ProxyID,omitempty" name:"ProxyID"` }
Predefined struct for user
type SwitchProxyResponse ¶
type SwitchProxyResponse struct { *tchttp.BaseResponse Response *SwitchProxyResponseParams `json:"Response"` }
func NewSwitchProxyResponse ¶
func NewSwitchProxyResponse() (response *SwitchProxyResponse)
func (*SwitchProxyResponse) FromJsonString ¶
func (r *SwitchProxyResponse) 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 (*SwitchProxyResponse) ToJsonString ¶
func (r *SwitchProxyResponse) ToJsonString() string
type SwitchProxyResponseParams ¶
type SwitchProxyResponseParams 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"` }
Predefined struct for user
type TaskInfoDetail ¶
type TaskInfoDetail struct { // Task ID // Note: This field may return null, indicating that no valid values can be obtained. TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` // Task start time // Note: This field may return null, indicating that no valid values can be obtained. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Task type. Valid values: - `FLOW_CREATE`: Create an instance. - `FLOW_MODIFYCONNECTIONCONFIG`: Adjust the number of bandwidth connections. - `FLOW_MODIFYINSTANCEPASSWORDFREE`: Modify the process of password-free access. - `FLOW_CLEARNETWORK`: Returning VPC - `FLOW_SETPWD`: Set the access password. - `FLOW_EXPORSHR`: Expand or reduce the capacity. - `FLOW_UpgradeArch`: Upgrade the instance architecture. - `FLOW_MODIFYINSTANCEPARAMS`: Modify the instance parameters. - `FLOW_MODIFYINSTACEREADONLY`: Modify read-only process. - `FLOW_CLOSE`: Disable the instance. - `FLOW_DELETE`: Delete the instance. - `FLOW_OPEN_WAN`: Enable the public network. - `FLOW_FLOW_CLEAN`: Clear the instance. - `FLOW_MODIFYINSTANCEACCOUNT`: Modify the instance account. - `FLOW_ENABLEINSTANCE_REPLICATE`: Enable the replica read-only feature. - `FLOW_DISABLEINSTANCE_REPLICATE`: Disable the replica read-only feature. - `FLOW_SWITCHINSTANCEVIP`: Swap the VIPs of instances. - FLOW_CHANGE_REPLICA_TO_MSTER: Promote the replica node to the mater node. Backup instance // Note: This field may return null, indicating that no valid values can be obtained. TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // Instance name // Note: This field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // Instance ID // Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Project ID // Note: This field may return null, indicating that no valid values can be obtained. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Task progress // Note: This field may return null, indicating that no valid values can be obtained. Progress *float64 `json:"Progress,omitempty" name:"Progress"` // Task end time // Note: This field may return null, indicating that no valid values can be obtained. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Task execution status. Valid values: - `0` (initilized) - `1` (executing) - `2` (completed) - `4` (failed) // Note: This field may return null, indicating that no valid values can be obtained. Result *int64 `json:"Result,omitempty" name:"Result"` }
type TendisNodes ¶
type TendisSlowLogDetail ¶
type TendisSlowLogDetail struct { // Execution time ExecuteTime *string `json:"ExecuteTime,omitempty" name:"ExecuteTime"` // Duration of the slow query (ms) Duration *int64 `json:"Duration,omitempty" name:"Duration"` // Command Command *string `json:"Command,omitempty" name:"Command"` // Command line details CommandLine *string `json:"CommandLine,omitempty" name:"CommandLine"` // Node ID Node *string `json:"Node,omitempty" name:"Node"` }
type TradeDealDetail ¶
type TradeDealDetail struct { // Order ID, which is used when a TencentCloud API is called. DealId *string `json:"DealId,omitempty" name:"DealId"` // Long order ID, which is used when an order issue is submitted for assistance. DealName *string `json:"DealName,omitempty" name:"DealName"` // AZ ID ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Number of instances associated with the order GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"` // Creator UIN Creater *string `json:"Creater,omitempty" name:"Creater"` // Order creation time CreatTime *string `json:"CreatTime,omitempty" name:"CreatTime"` // Order timeout period OverdueTime *string `json:"OverdueTime,omitempty" name:"OverdueTime"` // Order completion time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Order status. 1: unpaid; 2: paid but not delivered; 3: In delivery; 4: successfully delivered; 5: delivery failed; 6: refunded; 7: order closed; 8: order expired; 9: order invalidated; 10: product invalidated; 11: requested payment rejected; 12: paying Status *int64 `json:"Status,omitempty" name:"Status"` // Order status description Description *string `json:"Description,omitempty" name:"Description"` // Actual total price of the order in 0.01 CNY Price *int64 `json:"Price,omitempty" name:"Price"` // Instance ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
type UpgradeInstanceRequest ¶
type UpgradeInstanceRequest struct { *tchttp.BaseRequest // The ID of instance to be modified. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // New memory size of an instance shard. <ul><li>Unit: MB. </li><li>You can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li><li>In case of capacity reduction, the new specification must be at least 1.3 times the used capacity; otherwise, the operation will fail.</li></ul> MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // New number of instance shards. <ul><li>This parameter is not required for standard architecture instances, but for cluster architecture instances. </li><li>For cluster architecture, you can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li></ul> RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // New replica quantity. <ul><li>You can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li></ul>To modify the number of replicas in a multi-AZ instance, `NodeSet` must be passed in.</li></ul> RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Additional information for adding replicas for multi-AZ instances, including replica AZ and type (`NodeType` is `1`). This parameter is not required for single-AZ instances. NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` }
func NewUpgradeInstanceRequest ¶
func NewUpgradeInstanceRequest() (request *UpgradeInstanceRequest)
func (*UpgradeInstanceRequest) FromJsonString ¶
func (r *UpgradeInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeInstanceRequest) ToJsonString ¶
func (r *UpgradeInstanceRequest) ToJsonString() string
type UpgradeInstanceRequestParams ¶
type UpgradeInstanceRequestParams struct { // The ID of instance to be modified. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // New memory size of an instance shard. <ul><li>Unit: MB. </li><li>You can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li><li>In case of capacity reduction, the new specification must be at least 1.3 times the used capacity; otherwise, the operation will fail.</li></ul> MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` // New number of instance shards. <ul><li>This parameter is not required for standard architecture instances, but for cluster architecture instances. </li><li>For cluster architecture, you can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li></ul> RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` // New replica quantity. <ul><li>You can only modify one of the three parameters at a time: `MemSize`, `RedisShardNum`, and `RedisReplicasNum`. To modify one of them, you need to enter the other two, which are consistent with the original configuration specifications of the instance. </li></ul>To modify the number of replicas in a multi-AZ instance, `NodeSet` must be passed in.</li></ul> RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` // Additional information for adding replicas for multi-AZ instances, including replica AZ and type (`NodeType` is `1`). This parameter is not required for single-AZ instances. NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"` }
Predefined struct for user
type UpgradeInstanceResponse ¶
type UpgradeInstanceResponse struct { *tchttp.BaseResponse Response *UpgradeInstanceResponseParams `json:"Response"` }
func NewUpgradeInstanceResponse ¶
func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse)
func (*UpgradeInstanceResponse) FromJsonString ¶
func (r *UpgradeInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeInstanceResponse) ToJsonString ¶
func (r *UpgradeInstanceResponse) ToJsonString() string
type UpgradeInstanceResponseParams ¶
type UpgradeInstanceResponseParams struct { // Order ID DealId *string `json:"DealId,omitempty" name:"DealId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type UpgradeInstanceVersionRequest ¶
type UpgradeInstanceVersionRequest struct { *tchttp.BaseRequest // Target instance type after the change, which is the same as the `TypeId` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API. // - For Redis 4.0 or later, a standard architecture instance can be upgraded to a cluster architecture instance on the same version; for example, you can upgrade from Redis 4.0 Standard Architecture to Redis 4.0 Cluster Architecture. // - Cross-version architecture upgrade is not supported; for example, you cannot upgrade from Redis 4.0 Standard Architecture to Redis 5.0 Cluster Architecture. // - The architecture of Redis 2.8 cannot be upgraded. // - Cluster architecture cannot be downgraded to standard architecture. TargetInstanceType *string `json:"TargetInstanceType,omitempty" name:"TargetInstanceType"` // Switch time. Valid values: // - `1`: Switch in the maintenance time. // - `2` (default value): Switch now. SwitchOption *int64 `json:"SwitchOption,omitempty" name:"SwitchOption"` // ID of the specified instance, such as `crs-xjhsdj****`. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and copy it in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewUpgradeInstanceVersionRequest ¶
func NewUpgradeInstanceVersionRequest() (request *UpgradeInstanceVersionRequest)
func (*UpgradeInstanceVersionRequest) FromJsonString ¶
func (r *UpgradeInstanceVersionRequest) 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 (*UpgradeInstanceVersionRequest) ToJsonString ¶
func (r *UpgradeInstanceVersionRequest) ToJsonString() string
type UpgradeInstanceVersionRequestParams ¶
type UpgradeInstanceVersionRequestParams struct { // Target instance type after the change, which is the same as the `TypeId` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API. // - For Redis 4.0 or later, a standard architecture instance can be upgraded to a cluster architecture instance on the same version; for example, you can upgrade from Redis 4.0 Standard Architecture to Redis 4.0 Cluster Architecture. // - Cross-version architecture upgrade is not supported; for example, you cannot upgrade from Redis 4.0 Standard Architecture to Redis 5.0 Cluster Architecture. // - The architecture of Redis 2.8 cannot be upgraded. // - Cluster architecture cannot be downgraded to standard architecture. TargetInstanceType *string `json:"TargetInstanceType,omitempty" name:"TargetInstanceType"` // Switch time. Valid values: // - `1`: Switch in the maintenance time. // - `2` (default value): Switch now. SwitchOption *int64 `json:"SwitchOption,omitempty" name:"SwitchOption"` // ID of the specified instance, such as `crs-xjhsdj****`. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and copy it in the instance list. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
Predefined struct for user
type UpgradeInstanceVersionResponse ¶
type UpgradeInstanceVersionResponse struct { *tchttp.BaseResponse Response *UpgradeInstanceVersionResponseParams `json:"Response"` }
func NewUpgradeInstanceVersionResponse ¶
func NewUpgradeInstanceVersionResponse() (response *UpgradeInstanceVersionResponse)
func (*UpgradeInstanceVersionResponse) FromJsonString ¶
func (r *UpgradeInstanceVersionResponse) 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 (*UpgradeInstanceVersionResponse) ToJsonString ¶
func (r *UpgradeInstanceVersionResponse) ToJsonString() string
type UpgradeInstanceVersionResponseParams ¶
type UpgradeInstanceVersionResponseParams struct { // Order ID DealId *string `json:"DealId,omitempty" name:"DealId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type UpgradeProxyVersionRequest ¶
type UpgradeProxyVersionRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The current proxy version CurrentProxyVersion *string `json:"CurrentProxyVersion,omitempty" name:"CurrentProxyVersion"` // Upgradeable redis version UpgradeProxyVersion *string `json:"UpgradeProxyVersion,omitempty" name:"UpgradeProxyVersion"` // `1` (upgrade immediately), `0` (upgrade during maintenance time) InstanceTypeUpgradeNow *int64 `json:"InstanceTypeUpgradeNow,omitempty" name:"InstanceTypeUpgradeNow"` }
func NewUpgradeProxyVersionRequest ¶
func NewUpgradeProxyVersionRequest() (request *UpgradeProxyVersionRequest)
func (*UpgradeProxyVersionRequest) FromJsonString ¶
func (r *UpgradeProxyVersionRequest) 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 (*UpgradeProxyVersionRequest) ToJsonString ¶
func (r *UpgradeProxyVersionRequest) ToJsonString() string
type UpgradeProxyVersionRequestParams ¶
type UpgradeProxyVersionRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The current proxy version CurrentProxyVersion *string `json:"CurrentProxyVersion,omitempty" name:"CurrentProxyVersion"` // Upgradeable redis version UpgradeProxyVersion *string `json:"UpgradeProxyVersion,omitempty" name:"UpgradeProxyVersion"` // `1` (upgrade immediately), `0` (upgrade during maintenance time) InstanceTypeUpgradeNow *int64 `json:"InstanceTypeUpgradeNow,omitempty" name:"InstanceTypeUpgradeNow"` }
Predefined struct for user
type UpgradeProxyVersionResponse ¶
type UpgradeProxyVersionResponse struct { *tchttp.BaseResponse Response *UpgradeProxyVersionResponseParams `json:"Response"` }
func NewUpgradeProxyVersionResponse ¶
func NewUpgradeProxyVersionResponse() (response *UpgradeProxyVersionResponse)
func (*UpgradeProxyVersionResponse) FromJsonString ¶
func (r *UpgradeProxyVersionResponse) 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 (*UpgradeProxyVersionResponse) ToJsonString ¶
func (r *UpgradeProxyVersionResponse) ToJsonString() string
type UpgradeProxyVersionResponseParams ¶
type UpgradeProxyVersionResponseParams struct { // Async 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"` }
Predefined struct for user
type UpgradeSmallVersionRequest ¶
type UpgradeSmallVersionRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The current redis version CurrentRedisVersion *string `json:"CurrentRedisVersion,omitempty" name:"CurrentRedisVersion"` // Upgradeable redis version UpgradeRedisVersion *string `json:"UpgradeRedisVersion,omitempty" name:"UpgradeRedisVersion"` // `1` (upgrade immediately), `0` (upgrade during maintenance time) InstanceTypeUpgradeNow *int64 `json:"InstanceTypeUpgradeNow,omitempty" name:"InstanceTypeUpgradeNow"` }
func NewUpgradeSmallVersionRequest ¶
func NewUpgradeSmallVersionRequest() (request *UpgradeSmallVersionRequest)
func (*UpgradeSmallVersionRequest) FromJsonString ¶
func (r *UpgradeSmallVersionRequest) 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 (*UpgradeSmallVersionRequest) ToJsonString ¶
func (r *UpgradeSmallVersionRequest) ToJsonString() string
type UpgradeSmallVersionRequestParams ¶
type UpgradeSmallVersionRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The current redis version CurrentRedisVersion *string `json:"CurrentRedisVersion,omitempty" name:"CurrentRedisVersion"` // Upgradeable redis version UpgradeRedisVersion *string `json:"UpgradeRedisVersion,omitempty" name:"UpgradeRedisVersion"` // `1` (upgrade immediately), `0` (upgrade during maintenance time) InstanceTypeUpgradeNow *int64 `json:"InstanceTypeUpgradeNow,omitempty" name:"InstanceTypeUpgradeNow"` }
Predefined struct for user
type UpgradeSmallVersionResponse ¶
type UpgradeSmallVersionResponse struct { *tchttp.BaseResponse Response *UpgradeSmallVersionResponseParams `json:"Response"` }
func NewUpgradeSmallVersionResponse ¶
func NewUpgradeSmallVersionResponse() (response *UpgradeSmallVersionResponse)
func (*UpgradeSmallVersionResponse) FromJsonString ¶
func (r *UpgradeSmallVersionResponse) 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 (*UpgradeSmallVersionResponse) ToJsonString ¶
func (r *UpgradeSmallVersionResponse) ToJsonString() string
type UpgradeSmallVersionResponseParams ¶
type UpgradeSmallVersionResponseParams struct { // Async 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"` }
Predefined struct for user
type UpgradeVersionToMultiAvailabilityZonesRequest ¶
type UpgradeVersionToMultiAvailabilityZonesRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to support “Reading Local Nodes Only” feature after upgrading to multi-AZ deployment. // ul><li>`true`: The “Read Local Nodes Only” feature is supported. During the upgrade, you need to upgrade the proxy version and Redis kernel minor version simultaneously, which will involve data migration and may take hours to complete. </li><li>`false`: The “Read Local Nodes Only” feature is not supported. Upgrading to multi-AZ deployment will involve metadata migration only without affecting the service, which generally take less than three minutes to complete.</li></ul> UpgradeProxyAndRedisServer *bool `json:"UpgradeProxyAndRedisServer,omitempty" name:"UpgradeProxyAndRedisServer"` }
func NewUpgradeVersionToMultiAvailabilityZonesRequest ¶
func NewUpgradeVersionToMultiAvailabilityZonesRequest() (request *UpgradeVersionToMultiAvailabilityZonesRequest)
func (*UpgradeVersionToMultiAvailabilityZonesRequest) FromJsonString ¶
func (r *UpgradeVersionToMultiAvailabilityZonesRequest) 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 (*UpgradeVersionToMultiAvailabilityZonesRequest) ToJsonString ¶
func (r *UpgradeVersionToMultiAvailabilityZonesRequest) ToJsonString() string
type UpgradeVersionToMultiAvailabilityZonesRequestParams ¶
type UpgradeVersionToMultiAvailabilityZonesRequestParams struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Whether to support “Reading Local Nodes Only” feature after upgrading to multi-AZ deployment. // ul><li>`true`: The “Read Local Nodes Only” feature is supported. During the upgrade, you need to upgrade the proxy version and Redis kernel minor version simultaneously, which will involve data migration and may take hours to complete. </li><li>`false`: The “Read Local Nodes Only” feature is not supported. Upgrading to multi-AZ deployment will involve metadata migration only without affecting the service, which generally take less than three minutes to complete.</li></ul> UpgradeProxyAndRedisServer *bool `json:"UpgradeProxyAndRedisServer,omitempty" name:"UpgradeProxyAndRedisServer"` }
Predefined struct for user
type UpgradeVersionToMultiAvailabilityZonesResponse ¶
type UpgradeVersionToMultiAvailabilityZonesResponse struct { *tchttp.BaseResponse Response *UpgradeVersionToMultiAvailabilityZonesResponseParams `json:"Response"` }
func NewUpgradeVersionToMultiAvailabilityZonesResponse ¶
func NewUpgradeVersionToMultiAvailabilityZonesResponse() (response *UpgradeVersionToMultiAvailabilityZonesResponse)
func (*UpgradeVersionToMultiAvailabilityZonesResponse) FromJsonString ¶
func (r *UpgradeVersionToMultiAvailabilityZonesResponse) 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 (*UpgradeVersionToMultiAvailabilityZonesResponse) ToJsonString ¶
func (r *UpgradeVersionToMultiAvailabilityZonesResponse) ToJsonString() string
type UpgradeVersionToMultiAvailabilityZonesResponseParams ¶
type UpgradeVersionToMultiAvailabilityZonesResponseParams 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"` }
Predefined struct for user
type ZoneCapacityConf ¶
type ZoneCapacityConf struct { // AZ ID, such as ap-guangzhou-3 ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"` // AZ name ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // Whether a product is sold out in an AZ IsSaleout *bool `json:"IsSaleout,omitempty" name:"IsSaleout"` // Whether it is a default AZ IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` // Network type. basenet: basic network; vpcnet: VPC NetWorkType []*string `json:"NetWorkType,omitempty" name:"NetWorkType"` // Information of an AZ, such as product specifications in it ProductSet []*ProductConf `json:"ProductSet,omitempty" name:"ProductSet"` // AZ ID, such as 100003 OldZoneId *int64 `json:"OldZoneId,omitempty" name:"OldZoneId"` }