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 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) 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) DescribeBackupUrl(request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, err error)
- func (c *Client) DescribeBackupUrlWithContext(ctx context.Context, request *DescribeBackupUrlRequest) (response *DescribeBackupUrlResponse, 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) 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) 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) ReleaseWanAddress(request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, err error)
- func (c *Client) ReleaseWanAddressWithContext(ctx context.Context, request *ReleaseWanAddressRequest) (response *ReleaseWanAddressResponse, 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 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 DescribeBackupUrlRequest
- type DescribeBackupUrlRequestParams
- type DescribeBackupUrlResponse
- type DescribeBackupUrlResponseParams
- 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 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 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 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 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 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" // 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" // 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 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" // 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 (`root` for a root account)
// 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 policy. 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"`
// Routing policy. master: master node; replication: secondary 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. 1: account is being changed; 2: account is valid; -4: account has been 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: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
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: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
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 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
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}
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
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}
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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Replica group ID, which is required for multi-AZ instances.
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Replica group ID, which is required for multi-AZ instances.
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_UNKNOWN = "FailedOperation.Unknown" 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_UNKNOWN = "FailedOperation.Unknown" 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" 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" 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 switch with master 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) ChangeMasterInstanceWithContext ¶
func (c *Client) ChangeMasterInstanceWithContext(ctx context.Context, request *ChangeMasterInstanceRequest) (response *ChangeMasterInstanceResponse, err error)
ChangeMasterInstance This API is used to switch with master 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) ChangeReplicaToMaster ¶
func (c *Client) ChangeReplicaToMaster(request *ChangeReplicaToMasterRequest) (response *ChangeReplicaToMasterResponse, err error)
ChangeReplicaToMaster This API is used to promote a replica node group of a multi-AZ deployed instance to master node group or a replica node of a single-AZ deployed instance to master node.
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 of a multi-AZ deployed instance to master node group or a replica node of a single-AZ deployed instance to master node.
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) 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" 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" 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 a 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 a 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 backup configuration.
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 backup configuration.
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) 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 (it is in beta test and can be used only after you apply for the eligibility).
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 (it is in beta test and can be used only after you apply for the eligibility).
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) 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 view instance sub-account information.
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 view instance sub-account information.
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 list of Redis instance backups.
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 list of Redis instance backups.
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 This API is used to query the big key of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeySizeDist ¶
func (c *Client) DescribeInstanceMonitorBigKeySizeDist(request *DescribeInstanceMonitorBigKeySizeDistRequest) (response *DescribeInstanceMonitorBigKeySizeDistResponse, err error)
DescribeInstanceMonitorBigKeySizeDist This API is used to query the big key size distribution of an instance.
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 This API is used to query the big key size distribution of an instance.
error code that may be returned:
FAILEDOPERATION_REDOFLOWFAILED = "FailedOperation.RedoFlowFailed"
func (*Client) DescribeInstanceMonitorBigKeyTypeDist ¶
func (c *Client) DescribeInstanceMonitorBigKeyTypeDist(request *DescribeInstanceMonitorBigKeyTypeDistRequest) (response *DescribeInstanceMonitorBigKeyTypeDistResponse, err error)
DescribeInstanceMonitorBigKeyTypeDist This API is used to query the big key type distribution of an instance
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 This API is used to query the big key type distribution of an instance
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 This API is used to query the big key of an instance.
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 instance node information.
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 instance node information.
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" 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" 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 list of instance parameters.
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 list of instance parameters.
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"
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"
func (*Client) DescribeInstanceShards ¶
func (c *Client) DescribeInstanceShards(request *DescribeInstanceShardsRequest) (response *DescribeInstanceShardsResponse, err error)
DescribeInstanceShards This API is used to get the information of Cluster Edition instance shards.
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 information of Cluster Edition instance shards.
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 Redis node details.
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 Redis node details.
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 parameter template details.
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 parameter template details.
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 the purchasable capacity specifications of Redis instances in the specified AZ and instance type. If you are not in the allowlist for the AZ or instance type, you cannot view the details of the capacity specifications. To apply for the eligibility, please submit a ticket.
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 the purchasable capacity specifications of Redis instances in the specified AZ and instance type. If you are not in the allowlist for the AZ or instance type, you cannot view the details of the capacity specifications. To apply for the eligibility, please submit a ticket.
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:
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:
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_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
func (*Client) DescribeProjectSecurityGroupsWithContext ¶
func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)
DescribeProjectSecurityGroups This API is used to query the security group details of a project.
error code that may be returned:
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_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
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 the global 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 the global replication group.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" INVALIDPARAMETERVALUE_REPLICATIONGROUPNOTEXISTS = "InvalidParameterValue.ReplicationGroupNotExists"
func (*Client) DescribeSlowLog ¶
func (c *Client) DescribeSlowLog(request *DescribeSlowLogRequest) (response *DescribeSlowLogResponse, err error)
DescribeSlowLog This API is used to query the slow log.
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 slow log.
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 query the task result.
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 query the task result.
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 list of tasks.
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 list of tasks.
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" 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" 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 perform a failure simulation.
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 perform a failure simulation.
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 change the Redis password.
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 change the Redis password.
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 configure 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 configure 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) 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" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_INSTANCESGOVERLIMITERROR = "InvalidParameter.InstanceSGOverLimitError"
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" INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError" INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError" INVALIDPARAMETER_INSTANCESGOVERLIMITERROR = "InvalidParameter.InstanceSGOverLimitError"
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" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" 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" INTERNALERROR_INTERNALERROR = "InternalError.InternalError" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" RESOURCEUNAVAILABLE_GETSECURITYERROR = "ResourceUnavailable.GetSecurityError" 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 instance parameters.
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 instance parameters.
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_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" 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_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" 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) 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" 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" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
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_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_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_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_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_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" 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_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNSUPPORTERROR = "FailedOperation.UnSupportError" 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" 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" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists"
func (*Client) UpgradeInstance ¶
func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error)
UpgradeInstance This API is used to upgrade an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_MEMSIZENOTINRANGE = "InvalidParameterValue.MemSizeNotInRange" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" UNAUTHORIZEDOPERATION_NOCAMAUTHED = "UnauthorizedOperation.NoCAMAuthed"
func (*Client) UpgradeInstanceVersion ¶
func (c *Client) UpgradeInstanceVersion(request *UpgradeInstanceVersionRequest) (response *UpgradeInstanceVersionResponse, err error)
UpgradeInstanceVersion This API is used to upgrade compatible instance version (for example, from Redis 2.8 to 4.0), or upgrade instance architecture (for example, from standard architecture to cluster architecture).
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" 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 compatible instance version (for example, from Redis 2.8 to 4.0), or upgrade instance architecture (for example, from standard architecture to cluster architecture).
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" 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 upgrade an instance.
error code that may be returned:
FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError" FAILEDOPERATION_UNKNOWN = "FailedOperation.Unknown" INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied" INVALIDPARAMETERVALUE_MEMSIZENOTINRANGE = "InvalidParameterValue.MemSizeNotInRange" INVALIDPARAMETERVALUE_REDUCECAPACITYNOTALLOWED = "InvalidParameterValue.ReduceCapacityNotAllowed" INVALIDPARAMETERVALUE_SPECNOTEXIST = "InvalidParameterValue.SpecNotExist" LIMITEXCEEDED_INVALIDMEMSIZE = "LimitExceeded.InvalidMemSize" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_INSTANCENOTEXISTS = "ResourceNotFound.InstanceNotExists" RESOURCEUNAVAILABLE_ACCOUNTBALANCENOTENOUGH = "ResourceUnavailable.AccountBalanceNotEnough" RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal" RESOURCEUNAVAILABLE_INSTANCESTATUSERROR = "ResourceUnavailable.InstanceStatusError" 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"
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"
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"
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"
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"
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"
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. 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` is the standard architecture, `MemSize` indicates the total memory capacity of the instance; if `TypeId` is 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. Valid values: [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. 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 password. If the input parameter `NoAuth` is `true` and a VPC is used, the `Password` is optional; otherwise, it is required.
// If the instance `TypeId` is Redis 2.8, 4.0, or 5.0, the password cannot start with "/" and must contain 8–30 characters in at least two of the following character types: lowercase letters, uppercase letters, digits, and special symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/).
// If the instance `TypeId` is CKV 3.2, the password can contain 8–30 letters and digits.
Password *string `json:"Password,omitempty" name:"Password"`
// VPC ID such as vpc-sad23jfdfk. If this parameter is not passed in, the classic network will be selected by default. Use the VPC list querying API to query.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// In the classic network, `subnetId` is invalid. In a VPC subnet, the value is the subnet ID, such as subnet-fdj24n34j2.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Project ID. The value is subject to the `projectId` returned by user account > user account querying APIs > project list.
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Auto-renewal flag. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled
AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// Array of security group IDs.
SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"`
// User-defined port. If this parameter is left empty, 6379 will be used by default. Value range: [1024,65535].
VPort *uint64 `json:"VPort,omitempty" name:"VPort"`
// Number of shards in an instance. This parameter is required for Cluster Edition instances. Valid values: [3,5,8,12,16,24,32,64,96,128].
RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`
// Number of replicas in the instance. Redis 2.8 Standard Edition and CKV Standard Edition support 1 replica. Standard/Cluster Edition 4.0 and 5.0 support 1–5 replicas.
RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`
// Whether to support read-only replicas. Neither Redis 2.8 Standard Edition nor CKV Standard Edition supports read-only replicas. Read/write separation will be automatically enabled for an instance after it enables read-only replicas. Write requests will be directed to the master node and read requests will be distributed to replica nodes. To enable read-only replicas, we recommend you create two or more replicas.
ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"`
// Instance name, which can contain up to 60 letters, digits, underscores, or hyphens.
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Whether to support the password-free feature. Valid values: true (password-free instance), false (password-enabled instance). Default value: false. Only instances in a VPC support the password-free access.
NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"`
// Node information of the instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for single-AZ deployed instances.
NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"`
// Tag bound to the instance to be purchased
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"`
// ID of the parameter template applied to the created instance. If this parameter is left blank, the default parameter template will be applied.
TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
// false: send a normal request and create an instance directly after the check is passed (default value); true: send a check request without creating an instance.
DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`
// 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"`
// Dedicated cluster ID, which is required when `ProductVersion` is "cdc".
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. 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` is the standard architecture, `MemSize` indicates the total memory capacity of the instance; if `TypeId` is 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. Valid values: [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. 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 password. If the input parameter `NoAuth` is `true` and a VPC is used, the `Password` is optional; otherwise, it is required.
// If the instance `TypeId` is Redis 2.8, 4.0, or 5.0, the password cannot start with "/" and must contain 8–30 characters in at least two of the following character types: lowercase letters, uppercase letters, digits, and special symbols (()`~!@#$%^&*-+=_|{}[]:;<>,.?/).
// If the instance `TypeId` is CKV 3.2, the password can contain 8–30 letters and digits.
Password *string `json:"Password,omitempty" name:"Password"`
// VPC ID such as vpc-sad23jfdfk. If this parameter is not passed in, the classic network will be selected by default. Use the VPC list querying API to query.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// In the classic network, `subnetId` is invalid. In a VPC subnet, the value is the subnet ID, such as subnet-fdj24n34j2.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Project ID. The value is subject to the `projectId` returned by user account > user account querying APIs > project list.
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Auto-renewal flag. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled
AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// Array of security group IDs.
SecurityGroupIdList []*string `json:"SecurityGroupIdList,omitempty" name:"SecurityGroupIdList"`
// User-defined port. If this parameter is left empty, 6379 will be used by default. Value range: [1024,65535].
VPort *uint64 `json:"VPort,omitempty" name:"VPort"`
// Number of shards in an instance. This parameter is required for Cluster Edition instances. Valid values: [3,5,8,12,16,24,32,64,96,128].
RedisShardNum *int64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`
// Number of replicas in the instance. Redis 2.8 Standard Edition and CKV Standard Edition support 1 replica. Standard/Cluster Edition 4.0 and 5.0 support 1–5 replicas.
RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`
// Whether to support read-only replicas. Neither Redis 2.8 Standard Edition nor CKV Standard Edition supports read-only replicas. Read/write separation will be automatically enabled for an instance after it enables read-only replicas. Write requests will be directed to the master node and read requests will be distributed to replica nodes. To enable read-only replicas, we recommend you create two or more replicas.
ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"`
// Instance name, which can contain up to 60 letters, digits, underscores, or hyphens.
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Whether to support the password-free feature. Valid values: true (password-free instance), false (password-enabled instance). Default value: false. Only instances in a VPC support the password-free access.
NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"`
// Node information of the instance. Currently, information about the node type (master or replica) and node AZ can be passed in. This parameter is not required for single-AZ deployed instances.
NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"`
// Tag bound to the instance to be purchased
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"`
// ID of the parameter template applied to the created instance. If this parameter is left blank, the default parameter template will be applied.
TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
// false: send a normal request and create an instance directly after the check is passed (default value); true: send a check request without creating an instance.
DryRun *bool `json:"DryRun,omitempty" name:"DryRun"`
// 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"`
// Dedicated cluster ID, which is required when `ProductVersion` is "cdc".
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 {
// Delay distribution. The mapping between delay range and `Ladder` value is as follows:
// [0ms,1ms]: 1;
// [1ms,5ms]: 5;
// [5ms,10ms]: 10;
// [10ms,50ms]: 50;
// [50ms,200ms]: 200;
// [200ms,∞]: -1.
Ladder *int64 `json:"Ladder,omitempty" name:"Ladder"`
// The number of commands whose delay falls 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
// Instance ID
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 {
// Instance ID
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 {
// Backup type. Automatic backup type: 1 (scheduled rollback)
AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"`
// Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"`
// Time period.
TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"`
// Number of days to retain full backup files
BackupStorageDays *int64 `json:"BackupStorageDays,omitempty" name:"BackupStorageDays"`
// Number of days to retain Tendis binlog backup files
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 DescribeBackupUrlRequest ¶
type DescribeBackupUrlRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Backup ID, which can be queried through the `DescribeInstanceBackups` API
BackupId *string `json:"BackupId,omitempty" name:"BackupId"`
}
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 queried through the `DescribeInstanceBackups` API
BackupId *string `json:"BackupId,omitempty" name:"BackupId"`
}
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 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"`
// 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 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"`
// 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 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 IP for which the security group takes effect
VIP *string `json:"VIP,omitempty" name:"VIP"`
// Private port for which the security group takes effect
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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Number of entries per page
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page offset
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Number of entries per page
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page offset
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
// 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"`
// Instance list size. 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"`
// 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"`
// 1: backup in process; 2: backing up normally; 3: converting from backup to RDB file; 4: RDB conversion completed; -1: backup expired; -2: backup deleted.
Status []*int64 `json:"Status,omitempty" name:"Status"`
}
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 {
// 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"`
// Instance list size. 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"`
// 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"`
// 1: backup in process; 2: backing up normally; 3: converting from backup to RDB file; 4: RDB conversion completed; -1: backup expired; -2: backup deleted.
Status []*int64 `json:"Status,omitempty" name:"Status"`
}
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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// List size
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// The offset value
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// List size
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// The offset value
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"`
// The number of tendis nodes
TendisCount *int64 `json:"TendisCount,omitempty" name:"TendisCount"`
// Tendis node information
// 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
// Instance ID
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 {
// Instance ID
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 {
// Number of instance parameters
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 instances
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 instances
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 the 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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Whether to filter out the replica node information
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Whether to filter out the replica node information
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 {
// Information list of instance shards
InstanceShards []*InstanceClusterShard `json:"InstanceShards,omitempty" name:"InstanceShards"`
// Total 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
// Instance ID, such as crs-6ubhgouj
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 {
// Instance ID, such as crs-6ubhgouj
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 returned results. Default value: 20. Maximum value: 1000.
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// Offset, which is an integral multiple of `Limit`.
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Instance ID, such as crs-6ubhgouj
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Enumerated values: projectId, createtime, instancename, type, curDeadline
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// 1: reverse; 0: sequential; reverse by default
OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"`
// Array of VPC IDs such as 47525. The array subscript starts from 0. If this parameter is not passed in, the classic network will be selected by default
VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"`
// Array of subnet IDs such as 56854. The array subscript starts from 0.
SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
// Array of project IDs. The array subscript starts from 0.
ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"`
// ID of the instance to be searched for.
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
// Instance name
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Array of VPC IDs such as vpc-sad23jfdfk. The array subscript starts from 0. If this parameter is not passed in, the classic network will be selected by default
UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"`
// Array of subnet IDs such as subnet-fdj24n34j2. The array subscript starts from 0.
UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"`
// Region ID, which has already been disused. The corresponding region can be queried through the common parameter `Region`.
RegionIds []*int64 `json:"RegionIds,omitempty" name:"RegionIds"`
// Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted
Status []*int64 `json:"Status,omitempty" name:"Status"`
// Type edition. 1: Standalone Edition; 2: Master-Replica Edition; 3: Cluster Edition
TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"`
// Engine information: Redis-2.8, Redis-4.0, CKV
EngineName *string `json:"EngineName,omitempty" name:"EngineName"`
// Renewal mode. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled
AutoRenew []*int64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// Billing mode. postpaid: pay-as-you-go; prepaid: monthly subscription
BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"`
// Instance type. 1: legacy Redis Cluster Edition, 2: Redis 2.8 Master-Replica Edition, 3: CKV Master-Replica Edition, 4: CKV Cluster Edition, 5: Redis 2.8 Standalone Edition, 6: Redis 4.0 Master-Replica Edition, 7: Redis 4.0 Cluster Edition, 8: Redis 5.0 Master-Replica Edition, 9: Redis 5.0 Cluster Edition
Type *int64 `json:"Type,omitempty" name:"Type"`
// Search keywords, which can be instance ID, instance name, or complete IP.
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"`
// Filters resources 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"`
// Filters resources 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"`
// Product editions to be filtered. Valid values: `local` (local disk edition), `cloud` (cloud disk edition), `cdc` (dedicated cluster edition). If this parameter is not passed in, the product will not be filtered by default.
ProductVersions []*string `json:"ProductVersions,omitempty" name:"ProductVersions"`
// The specified instances for batch query
InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesRequestParams ¶
type DescribeInstancesRequestParams struct {
// Number of returned results. Default value: 20. Maximum value: 1000.
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// Offset, which is an integral multiple of `Limit`.
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Instance ID, such as crs-6ubhgouj
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Enumerated values: projectId, createtime, instancename, type, curDeadline
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// 1: reverse; 0: sequential; reverse by default
OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"`
// Array of VPC IDs such as 47525. The array subscript starts from 0. If this parameter is not passed in, the classic network will be selected by default
VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"`
// Array of subnet IDs such as 56854. The array subscript starts from 0.
SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
// Array of project IDs. The array subscript starts from 0.
ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"`
// ID of the instance to be searched for.
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
// Instance name
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Array of VPC IDs such as vpc-sad23jfdfk. The array subscript starts from 0. If this parameter is not passed in, the classic network will be selected by default
UniqVpcIds []*string `json:"UniqVpcIds,omitempty" name:"UniqVpcIds"`
// Array of subnet IDs such as subnet-fdj24n34j2. The array subscript starts from 0.
UniqSubnetIds []*string `json:"UniqSubnetIds,omitempty" name:"UniqSubnetIds"`
// Region ID, which has already been disused. The corresponding region can be queried through the common parameter `Region`.
RegionIds []*int64 `json:"RegionIds,omitempty" name:"RegionIds"`
// Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted
Status []*int64 `json:"Status,omitempty" name:"Status"`
// Type edition. 1: Standalone Edition; 2: Master-Replica Edition; 3: Cluster Edition
TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"`
// Engine information: Redis-2.8, Redis-4.0, CKV
EngineName *string `json:"EngineName,omitempty" name:"EngineName"`
// Renewal mode. 0: default status (manual renewal); 1: auto-renewal enabled; 2: auto-renewal disabled
AutoRenew []*int64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// Billing mode. postpaid: pay-as-you-go; prepaid: monthly subscription
BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"`
// Instance type. 1: legacy Redis Cluster Edition, 2: Redis 2.8 Master-Replica Edition, 3: CKV Master-Replica Edition, 4: CKV Cluster Edition, 5: Redis 2.8 Standalone Edition, 6: Redis 4.0 Master-Replica Edition, 7: Redis 4.0 Cluster Edition, 8: Redis 5.0 Master-Replica Edition, 9: Redis 5.0 Cluster Edition
Type *int64 `json:"Type,omitempty" name:"Type"`
// Search keywords, which can be instance ID, instance name, or complete IP.
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"`
// Filters resources 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"`
// Filters resources 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"`
// Product editions to be filtered. Valid values: `local` (local disk edition), `cloud` (cloud disk edition), `cdc` (dedicated cluster edition). If this parameter is not passed in, the product will not be filtered by default.
ProductVersions []*string `json:"ProductVersions,omitempty" name:"ProductVersions"`
// The specified instances for batch query
InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
}
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 {
// 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
// Parameter template ID.
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 {
// Parameter template ID.
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 {
// Number of instance parameters
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"`
// 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)
ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"`
// Parameter template description
Description *string `json:"Description,omitempty" name:"Description"`
// Parameter details
Items []*ParameterDetail `json:"Items,omitempty" name:"Items"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}
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: mariadb, cdb, cynosdb, dcdb, redis, mongodb.
Product *string `json:"Product,omitempty" name:"Product"`
// Project ID.
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Offset.
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Number of results 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: mariadb, cdb, cynosdb, dcdb, redis, mongodb.
Product *string `json:"Product,omitempty" name:"Product"`
// Project ID.
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Offset.
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Number of results 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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Slow query threshold in milliseconds
MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"`
// Maximum number of results returned per page
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Slow query threshold in milliseconds
MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"`
// Maximum number of results returned per page
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
// Instance list size. 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"`
// Replication group ID
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// Instance ID/name. Fuzzy query is supported.
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 {
// Instance list size. 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"`
// Replication group ID
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// Instance ID/name. Fuzzy query is supported.
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 group
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Replication group info
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 DescribeSlowLogRequest ¶
type DescribeSlowLogRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Slow log threshold in microseconds
MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"`
// Number of entries per page
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Offset, which is an integral multiple of `Limit`
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Slow log threshold in microseconds
MinQueryTime *int64 `json:"MinQueryTime,omitempty" name:"MinQueryTime"`
// Number of entries per page
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 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 logs
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Slow log 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. preparing: to be run; running: running; succeed: succeeded; failed: failed; error: running error.
Status *string `json:"Status,omitempty" name:"Status"`
// Task start time
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Task type
TaskType *string `json:"TaskType,omitempty" name:"TaskType"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Task message, which is displayed in case of an error. It will be blank if the status is running or succeeded.
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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Instance name
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Maximum number of results returned per page. Default value: 20. Maximum value: 100.
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Offset, which is an integral multiple of `Limit` (rounded down automatically).
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// Project ID
ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"`
// Task type
TaskTypes []*string `json:"TaskTypes,omitempty" name:"TaskTypes"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Task status
TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus"`
// Task status
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 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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Instance name
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Maximum number of results returned per page. Default value: 20. Maximum value: 100.
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Offset, which is an integral multiple of `Limit` (rounded down automatically).
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// Project ID
ProjectIds []*int64 `json:"ProjectIds,omitempty" name:"ProjectIds"`
// Task type
TaskTypes []*string `json:"TaskTypes,omitempty" name:"TaskTypes"`
// Start time
BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"`
// End time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Task status
TaskStatus []*int64 `json:"TaskStatus,omitempty" name:"TaskStatus"`
// Task status
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 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: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
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: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
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 App ID
AppId *int64 `json:"AppId,omitempty" name:"AppId"`
// Region ID. 1: Guangzhou; 4: Shanghai; 5: Hong Kong (China); 6: Toronto; 7: Shanghai Finance; 8: Beijing; 9: Singapore; 11: Shenzhen Finance; 15: West US (Silicon Valley); 16: Chengdu; 17: Germany; 18: South Korea; 19: Chongqing; 21: India; 22: East US (Virginia); 23: Thailand; 24: Russia; 25: Japan
RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
// Replication group info
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"`
// Replication group status. Valid values: 37 (Associating replication group), 38 (Reconnecting to replication group), 51 (Disassociating the replication group), 52 (Switching primary instance in the replication group), 53 (Modifying roles)
Status *int64 `json:"Status,omitempty" name:"Status"`
// Number of replication groups
InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
// Instances in replication group
// 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 the instance
RunId *string `json:"RunId,omitempty" name:"RunId"`
// Cluster role. 0: master; 1: replica
Role *int64 `json:"Role,omitempty" name:"Role"`
// Node status. 0: readwrite; 1: read; 2: backup
Status *int64 `json:"Status,omitempty" name:"Status"`
// Service status. 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"`
// Distribution of node slots
Slots *string `json:"Slots,omitempty" name:"Slots"`
// Distribution of node keys
Keys *int64 `json:"Keys,omitempty" name:"Keys"`
// Node QPS
Qps *int64 `json:"Qps,omitempty" name:"Qps"`
// Node QPS slope
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 {
// Shard node name
ShardName *string `json:"ShardName,omitempty" name:"ShardName"`
// Shard node ID
ShardId *string `json:"ShardId,omitempty" name:"ShardId"`
// Role
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"`
// Storage capacity
Storage *int64 `json:"Storage,omitempty" name:"Storage"`
// Capacity slope
StorageSlope *float64 `json:"StorageSlope,omitempty" name:"StorageSlope"`
// ID of the runtime node of the instance
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: Enum
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"`
// Valid values of the parameter
EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
// Parameter status. 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: Multi
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"`
// Parameter description
EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
// Parameter status. 1: modifying; 2: modified
Status *int64 `json:"Status,omitempty" name:"Status"`
}
type InstanceNode ¶
type InstanceNode struct {
// Id
Id *int64 `json:"Id,omitempty" name:"Id"`
// Node details
InstanceClusterNode []*InstanceClusterNode `json:"InstanceClusterNode,omitempty" name:"InstanceClusterNode"`
}
type InstanceParam ¶
type InstanceParamHistory ¶
type InstanceParamHistory struct {
// Parameter name
ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
// Value before modification
PreValue *string `json:"PreValue,omitempty" name:"PreValue"`
// Value after modification
NewValue *string `json:"NewValue,omitempty" name:"NewValue"`
// Status. 1: modifying the parameter configuration; 2: modified the parameter configuration 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
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 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
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`
Appid *int64 `json:"Appid,omitempty" name:"Appid"`
// Project ID
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Region ID. 1: Guangzhou; 4: Shanghai; 5: Hong Kong (China); 6: Toronto; 7: Shanghai Finance; 8: Beijing; 9: Singapore; 11: Shenzhen Finance; 15: West US (Silicon Valley); 16: Chengdu; 17: Germany; 18: South Korea; 19: Chongqing; 21: India; 22: East US (Virginia); 23: Thailand; 24: Russia; 25: Japan
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"`
// VPC subnet ID, such as 46315
SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"`
// Current instance status. 0: to be initialized; 1: instance in process; 2: instance running; -2: instance isolated; -3: instance to be deleted
Status *int64 `json:"Status,omitempty" name:"Status"`
// Instance VIP
WanIp *string `json:"WanIp,omitempty" name:"WanIp"`
// Port number of the instance
Port *int64 `json:"Port,omitempty" name:"Port"`
// Instance creation time
Createtime *string `json:"Createtime,omitempty" name:"Createtime"`
// Instance capacity in MB
Size *float64 `json:"Size,omitempty" name:"Size"`
// This field has been disused
SizeUsed *float64 `json:"SizeUsed,omitempty" name:"SizeUsed"`
// 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)
Type *int64 `json:"Type,omitempty" name:"Type"`
// Whether to set the auto-renewal flag for the instance. 1: yes; 0: no
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
// Instance expiration time
DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"`
// Engine: Redis Community Edition, Tencent Cloud CKV
Engine *string `json:"Engine,omitempty" name:"Engine"`
// Instance type. Valid values: standalone (Standard Edition); cluster (Cluster Edition)
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. 0: pay-as-you-go; 1: monthly subscription
BillingMode *int64 `json:"BillingMode,omitempty" name:"BillingMode"`
// Description of the instance status, such as "instance running"
InstanceTitle *string `json:"InstanceTitle,omitempty" name:"InstanceTitle"`
// Planned elimination time
OfflineTime *string `json:"OfflineTime,omitempty" name:"OfflineTime"`
// Sub-status returned for the 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"`
// Isolation time
CloseTime *string `json:"CloseTime,omitempty" name:"CloseTime"`
// Read weight of the replica node
SlaveReadWeight *int64 `json:"SlaveReadWeight,omitempty" name:"SlaveReadWeight"`
// Instance tag information
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceTags []*InstanceTagInfo `json:"InstanceTags,omitempty" name:"InstanceTags"`
// Project name
// Note: This field may return null, indicating that no valid values can be obtained.
ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"`
// Whether the instance is password-free. true: yes; false: no.
// Note: This field may return null, indicating that no valid values can be obtained.
NoAuth *bool `json:"NoAuth,omitempty" name:"NoAuth"`
// Number of client connections
// Note: This field may return null, indicating that no valid values 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 values can be obtained.
DtsStatus *int64 `json:"DtsStatus,omitempty" name:"DtsStatus"`
// Shard bandwidth cap in MB
// Note: This field may return null, indicating that no valid values 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 values can be obtained.
PasswordFree *int64 `json:"PasswordFree,omitempty" name:"PasswordFree"`
// Read-only instance flag (internal parameter, which can be ignored)
// Note: This field may return null, indicating that no valid values 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 values can be obtained.
Vip6 *string `json:"Vip6,omitempty" name:"Vip6"`
// Internal parameter, which can be ignored.
// Note: This field may return null, indicating that no valid values can be obtained.
RemainBandwidthDuration *string `json:"RemainBandwidthDuration,omitempty" name:"RemainBandwidthDuration"`
// Disk size of the Tendis instance
// Note: This field may return null, indicating that no valid values can be obtained.
DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`
// Monitoring version. Valid values: 1m (monitoring at 1-minute granularity); 5s (monitoring at 5-second granularity)
// Note: This field may return null, indicating that no valid values can be obtained.
MonitorVersion *string `json:"MonitorVersion,omitempty" name:"MonitorVersion"`
// Minimum value for the range of maximum connections to the client
// Note: This field may return null, indicating that no valid values can be obtained.
ClientLimitMin *int64 `json:"ClientLimitMin,omitempty" name:"ClientLimitMin"`
// Maximum value for the range of maximum connections to the client
// Note: This field may return null, indicating that no valid values can be obtained.
ClientLimitMax *int64 `json:"ClientLimitMax,omitempty" name:"ClientLimitMax"`
// Instance node details
// Note: This field may return null, indicating that no valid values can be obtained.
NodeSet []*RedisNodeInfo `json:"NodeSet,omitempty" name:"NodeSet"`
// Instance region, such as ap-guangzhou
// Note: This field may return null, indicating that no valid values can be obtained.
Region *string `json:"Region,omitempty" name:"Region"`
}
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: Text
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"`
// Valid values of the parameter
TextValue []*string `json:"TextValue,omitempty" name:"TextValue"`
// Parameter status. 1: modifying; 2: modified
Status *int64 `json:"Status,omitempty" name:"Status"`
}
type Instances ¶
type Instances struct {
// User App ID
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. 1: Guangzhou; 4: Shanghai; 5: Hong Kong (China); 6: Toronto; 7: Shanghai Finance; 8: Beijing; 9: Singapore; 11: Shenzhen Finance; 15: West US (Silicon Valley)
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 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"`
// Instance role. Valid values: `rw` (read-write), `r`( read-only)
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. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted
Status *int64 `json:"Status,omitempty" name:"Status"`
// Repository ID
GrocerySysId *int64 `json:"GrocerySysId,omitempty" name:"GrocerySysId"`
// 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)
ProductType *int64 `json:"ProductType,omitempty" name:"ProductType"`
// Creation time
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Update time
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type KillMasterGroupRequest ¶
type KillMasterGroupRequest struct {
*tchttp.BaseRequest
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 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. ()`~!@#$%^&*-+=_|{}[]:;<>,.?/
Password *string `json:"Password,omitempty" name:"Password"`
// Node information of a single-AZ deployed instance
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 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. ()`~!@#$%^&*-+=_|{}[]:;<>,.?/
Password *string `json:"Password,omitempty" name:"Password"`
// Node information of a single-AZ deployed instance
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 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"`
// Backup remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Retention time in days. 0 indicates the default retention time.
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 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"`
// Backup remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Retention time in days. 0 indicates the default retention time.
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
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Old password of an instance
OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"`
// New password of an instance
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
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Old password of an instance
OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"`
// New password of an instance
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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Date. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. This parameter cannot be modified for now.
WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"`
// Time period. Value range: 00:00-01:00, 01:00-02:00...... 23:00-00:00
TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"`
// Automatic backup type: 1 (scheduled rollback)
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Date. Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. This parameter cannot be modified for now.
WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"`
// Time period. Value range: 00:00-01:00, 01:00-02:00...... 23:00-00:00
TimePeriod *string `json:"TimePeriod,omitempty" name:"TimePeriod"`
// Automatic backup type: 1 (scheduled rollback)
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: 1 (scheduled rollback)
AutoBackupType *int64 `json:"AutoBackupType,omitempty" name:"AutoBackupType"`
// Date. Value range: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
WeekDays []*string `json:"WeekDays,omitempty" name:"WeekDays"`
// Time period. Value range: 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 ModifyDBInstanceSecurityGroupsRequest ¶
type ModifyDBInstanceSecurityGroupsRequest struct {
*tchttp.BaseRequest
// Database engine name: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
Product *string `json:"Product,omitempty" name:"Product"`
// ID list of the security groups to be modified, which is an array of one or more security group IDs.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
// 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: mariadb, cdb, cynosdb, dcdb, redis, mongodb, etc.
Product *string `json:"Product,omitempty" name:"Product"`
// ID list of the security groups to be modified, which is an array of one or more security group IDs.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
// 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 a modification is successfully made.
Changed *bool `json:"Changed,omitempty" name:"Changed"`
// 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 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"`
// Operation type. changeVip: modify the VIP of an instance; changeVpc: modify the subnet of an instance; changeBaseToVpc: change from classic network to VPC
Operation *string `json:"Operation,omitempty" name:"Operation"`
// VIP address, which is required for the `changeVip` operation. If this parameter is left blank, a random one will be assigned by default.
Vip *string `json:"Vip,omitempty" name:"Vip"`
// VPC ID, which is required for `changeVpc` and `changeBaseToVpc` operations.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID, which is required for `changeVpc` and `changeBaseToVpc` operations
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Retention time of the original VIP in days. Note that this parameter works only in the latest SDK. In earlier SDKs, the original VIP 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"`
}
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"`
// Operation type. changeVip: modify the VIP of an instance; changeVpc: modify the subnet of an instance; changeBaseToVpc: change from classic network to VPC
Operation *string `json:"Operation,omitempty" name:"Operation"`
// VIP address, which is required for the `changeVip` operation. If this parameter is left blank, a random one will be assigned by default.
Vip *string `json:"Vip,omitempty" name:"Vip"`
// VPC ID, which is required for `changeVpc` and `changeBaseToVpc` operations.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID, which is required for `changeVpc` and `changeBaseToVpc` operations
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Retention time of the original VIP in days. Note that this parameter works only in the latest SDK. In earlier SDKs, the original VIP 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"`
}
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: true or false
Status *bool `json:"Status,omitempty" name:"Status"`
// Subnet ID
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// VPC ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// VIP address
Vip *string `json:"Vip,omitempty" name:"Vip"`
// 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 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. 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)
ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"`
}
type ParameterDetail ¶
type ParameterDetail struct {
// Parameter name
Name *string `json:"Name,omitempty" name:"Name"`
// Data type of the parameter
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
CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
// Whether the database needs to be restarted for the modified parameter to take effect. Valid values: 0 (no); 1 (yes).
NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"`
// Maximum value of the parameter
// 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. 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), `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), `10` (Redis 4.0 Hybrid Storage Edition (Tendis)).
Type *int64 `json:"Type,omitempty" name:"Type"`
// Product name: Redis Master-Replica Edition, CKV Master-Replica Edition, CKV Cluster Edition, Redis Standalone Edition, Redis Cluster Edition, Tendis Hybrid Storage 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
Saleout *bool `json:"Saleout,omitempty" name:"Saleout"`
// Product engine: Tencent Cloud CKV or Redis community edition
Engine *string `json:"Engine,omitempty" name:"Engine"`
// Compatible version: Redis 2.8, Redis 3.2, or Redis 4.0
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"`
// Number of replicas
ReplicaNum []*string `json:"ReplicaNum,omitempty" name:"ReplicaNum"`
// Number of shards
ShardNum []*string `json:"ShardNum,omitempty" name:"ShardNum"`
// Supported billing method. 1: monthly subscription; 0: pay-as-you-go
PayMode *string `json:"PayMode,omitempty" name:"PayMode"`
// Whether to support read-only replicas
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"`
}
type RedisBackupSet ¶
type RedisBackupSet struct {
// Backup start time
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Backup ID
BackupId *string `json:"BackupId,omitempty" name:"BackupId"`
// Backup type. 1: manual backup initiated by the user; 0: automatic backup in the early morning initiated by the system
BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
// Backup status. 1: backup is locked by another process; 2: backup is normal and not locked by any process; -1: backup has expired; 3: backup is being exported; 4: backup is exported successfully
Status *int64 `json:"Status,omitempty" name:"Status"`
// Backup remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Whether a backup is locked. 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"`
}
type RedisCommonInstanceList ¶
type RedisCommonInstanceList struct {
// Instance name
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// User ID
AppId *int64 `json:"AppId,omitempty" name:"AppId"`
// Instance project ID
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 network ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Instance status. 1: task running; 2: instance running; -2: instance isolated; -3: instance being eliminated; -4: instance eliminated
Status *string `json:"Status,omitempty" name:"Status"`
// Instance network IP
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 mode. 0: pay-as-you-go; 1: monthly subscription
PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
// Network type. Valid values: 0 (classic network); 1 (VPC).
NetType *int64 `json:"NetType,omitempty" name:"NetType"`
}
type RedisNode ¶
type RedisNode struct {
// Number of keys on the node
Keys *int64 `json:"Keys,omitempty" name:"Keys"`
// Distribution of node slots
Slot *string `json:"Slot,omitempty" name:"Slot"`
// Node 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. 0: master node; 1: replica node
NodeType *int64 `json:"NodeType,omitempty" name:"NodeType"`
// ID of the master or replica node, which is not required during instance creation
NodeId *int64 `json:"NodeId,omitempty" name:"NodeId"`
// AZ ID of the master or replica node
ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`
// AZ name 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 RenewInstanceRequest ¶
type RenewInstanceRequest struct {
*tchttp.BaseRequest
// Length of purchase in months
Period *uint64 `json:"Period,omitempty" name:"Period"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}
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 {
// Length of purchase in months
Period *uint64 `json:"Period,omitempty" name:"Period"`
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}
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"`
// 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"`
// Security group inbound rule
InboundRule []*SecurityGroupsInboundAndOutbound `json:"InboundRule,omitempty" name:"InboundRule"`
// Security group outbound rule
OutboundRule []*SecurityGroupsInboundAndOutbound `json:"OutboundRule,omitempty" name:"OutboundRule"`
}
type SecurityGroupsInboundAndOutbound ¶
type SecurityGroupsInboundAndOutbound struct {
// Action to be executed
Action *string `json:"Action,omitempty" name:"Action"`
// IP addresses
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"`
// 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
// 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"`
// End time
// Note: This field may return null, indicating that no valid values can be obtained.
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Task status
// 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
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Shard size in MB. This parameter cannot be passed in at the same time as `RedisShardNum`/`RedisReplicasNum`.
MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"`
// Number of shards. This parameter is not required by standard architecture instances and cannot be passed in at the same time as `RedisReplicasNum`/`MemSize`.
RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`
// Number of replicas. This parameter cannot be passed in at the same time as `RedisShardNum`/`MemSize`. To modify the number of replicas in a multi-AZ instance, `NodeSet` must be passed in.
RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`
// Additional information for adding replicas for multi-AZ instances. This parameter is not required for single-AZ instances but is required when adding replicas for multi-AZ instances. It contains the information of the replicas to be added, including replica AZ and type (`NodeType` is 1).
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 {
// Instance ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// Shard size in MB. This parameter cannot be passed in at the same time as `RedisShardNum`/`RedisReplicasNum`.
MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"`
// Number of shards. This parameter is not required by standard architecture instances and cannot be passed in at the same time as `RedisReplicasNum`/`MemSize`.
RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"`
// Number of replicas. This parameter cannot be passed in at the same time as `RedisShardNum`/`MemSize`. To modify the number of replicas in a multi-AZ instance, `NodeSet` must be passed in.
RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"`
// Additional information for adding replicas for multi-AZ instances. This parameter is not required for single-AZ instances but is required when adding replicas for multi-AZ instances. It contains the information of the replicas to be added, including replica AZ and type (`NodeType` is 1).
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 `Type` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API.
TargetInstanceType *string `json:"TargetInstanceType,omitempty" name:"TargetInstanceType"`
// Switch mode. Valid values: 1 (switch during the maintenance time), 2 (switch now).
SwitchOption *int64 `json:"SwitchOption,omitempty" name:"SwitchOption"`
// Instance ID
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 `Type` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API.
TargetInstanceType *string `json:"TargetInstanceType,omitempty" name:"TargetInstanceType"`
// Switch mode. Valid values: 1 (switch during the maintenance time), 2 (switch now).
SwitchOption *int64 `json:"SwitchOption,omitempty" name:"SwitchOption"`
// Instance ID
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 upgrade the proxy and Redis kernel. After the upgrade, the "Read Local Nodes Only" feature can be supported.
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 upgrade the proxy and Redis kernel. After the upgrade, the "Read Local Nodes Only" feature can be supported.
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"`
}