diff --git a/docs/dcs/api-ref/.placeholder b/docs/dcs/api-ref/.placeholder deleted file mode 100644 index e69de29b..00000000 diff --git a/docs/dcs/api-ref/ALL_META.TXT.json b/docs/dcs/api-ref/ALL_META.TXT.json index a4dca720..8fd8f069 100644 --- a/docs/dcs/api-ref/ALL_META.TXT.json +++ b/docs/dcs/api-ref/ALL_META.TXT.json @@ -1,391 +1,2407 @@ [ + { + "dockw":"Redis,API参考-缓存,API Reference" + }, { "uri":"dcs-api-0417001.html", + "node_id":"dcs-api-0417001.xml", "product_code":"dcs", "code":"1", "des":"Distributed Cache Service (DCS) APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by o", "doc_type":"api", "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"API Usage Guidelines", "githuburl":"" }, { - "uri":"dcs-api-0312003.html", + "uri":"en-us_topic_0000001693875369.html", + "node_id":"en-us_topic_0000001693875369.xml", "product_code":"dcs", "code":"2", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Lifecycle Management APIs", - "title":"Lifecycle Management APIs", + "kw":"API Version Query", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"API Version Query", "githuburl":"" }, { - "uri":"dcs-api-0312004.html", + "uri":"en-us_topic_0000001693796125.html", + "node_id":"en-us_topic_0000001693796125.xml", "product_code":"dcs", "code":"3", - "des":"This API is used to create a DCS instance.The system automatically schedules the task every 3 minutes for checking whether resources are available or sold out.POST /v1.0/", + "des":"Querying Information of an API Version.URI formatGET /{api_version}ParametersParameterTypeDescriptionapi_versionStringTarget API version.The value can be v1.0 or v2.Sampl", "doc_type":"api", - "kw":"Creating a DCS Instance,Lifecycle Management APIs,API Reference", + "kw":"Querying Information of an API Version,API Version Query,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying Information of an API Version", + "githuburl":"" + }, + { + "uri":"en-us_topic_0000001645635650.html", + "node_id":"en-us_topic_0000001645635650.xml", + "product_code":"dcs", + "code":"4", + "des":"This API is used to query the list of API versions.URI formatGET /Sample:GET https://{dcs_endpoint}/For details, see Error Codes.", + "doc_type":"api", + "kw":"Querying the List of API Versions,API Version Query,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying the List of API Versions", + "githuburl":"" + }, + { + "uri":"dcs-api-0605001.html", + "node_id":"dcs-api-0605001.xml", + "product_code":"dcs", + "code":"5", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs V2 (Recommended)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"APIs V2 (Recommended)", + "githuburl":"" + }, + { + "uri":"LifecycleManagement.html", + "node_id":"lifecyclemanagement.xml", + "product_code":"", + "code":"6", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Lifecycle Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Lifecycle Management", + "githuburl":"" + }, + { + "uri":"CreateInstance.html", + "node_id":"createinstance.xml", + "product_code":"", + "code":"7", + "des":"This API is used to create a DCS instance which is billed in pay-per-use mode.POST /v2/{project_id}/instancesStatus code: 200Status code: 400Status code: 401Status code: ", + "doc_type":"api", + "kw":"Creating a DCS Instance,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateInstance" + } + ], "title":"Creating a DCS Instance", "githuburl":"" }, { - "uri":"dcs-api-0312008.html", - "product_code":"dcs", - "code":"4", - "des":"This API is used to delete a specified DCS instance to free up all resources occupied by the DCS instance.DELETE /v1.0/{project_id}/instances/{instance_id}Table 1 describ", + "uri":"ListInstances.html", + "node_id":"listinstances.xml", + "product_code":"", + "code":"8", + "des":"This API is used to query DCS instances of a tenant, and allows you to specify query criteria.GET /v2/{project_id}/instancesNoneStatus code: 200Status code: 400Status cod", "doc_type":"api", - "kw":"Deleting a Single DCS Instance,Lifecycle Management APIs,API Reference", - "title":"Deleting a Single DCS Instance", + "kw":"Querying All DCS Instances,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListInstances" + } + ], + "title":"Querying All DCS Instances", "githuburl":"" }, { - "uri":"dcs-api-0312009.html", - "product_code":"dcs", - "code":"5", - "des":"This API is used to delete multiple DCS instances at a time.DELETE /v1.0/{project_id}/instances?allFailure={allFailure}Table 1 describes the parameters.Parameter descript", + "uri":"BatchDeleteInstances.html", + "node_id":"batchdeleteinstances.xml", + "product_code":"", + "code":"9", + "des":"This API is used to delete multiple DCS instances at a time.DELETE /v2/{project_id}/instancesStatus code: 200Status code: 500Status code: 400Batch deleting DCS instancesS", "doc_type":"api", - "kw":"Batch Deleting DCS Instances,Lifecycle Management APIs,API Reference", + "kw":"Batch Deleting DCS Instances,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"BatchDeleteInstances" + } + ], "title":"Batch Deleting DCS Instances", "githuburl":"" }, { - "uri":"dcs-api-0312005.html", - "product_code":"dcs", - "code":"6", - "des":"This API is used to query the details about a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}Table 1 describes the parameters.Parameter descriptionP", - "doc_type":"api", - "kw":"Querying a DCS Instance,Lifecycle Management APIs,API Reference", - "title":"Querying a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312006.html", - "product_code":"dcs", - "code":"7", - "des":"This API is used to query DCS instances of a tenant, and allows you to specify query criteria.GET /v1.0/{project_id}/instances?start={start}&limit={limit}&name={name}&sta", - "doc_type":"api", - "kw":"Querying All DCS Instances of a Tenant,Lifecycle Management APIs,API Reference", - "title":"Querying All DCS Instances of a Tenant", - "githuburl":"" - }, - { - "uri":"dcs-api-0312007.html", - "product_code":"dcs", - "code":"8", - "des":"This API is used to modify the information about a DCS instance, including the instance name, description, backup policy, start and end time of the maintenance window, an", - "doc_type":"api", - "kw":"Modifying Information About a DCS Instance,Lifecycle Management APIs,API Reference", - "title":"Modifying Information About a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312010.html", - "product_code":"dcs", - "code":"9", - "des":"This API is used to scale up a DCS Redis instance in the Running state.POST /v1.0/{project_id}/instances/{instance_id}/extendTable 1 describes the parameters.Parameter de", - "doc_type":"api", - "kw":"Scaling Up a DCS Instance,Lifecycle Management APIs,API Reference", - "title":"Scaling Up a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312035.html", - "product_code":"dcs", + "uri":"ShowInstance.html", + "node_id":"showinstance.xml", + "product_code":"", "code":"10", + "des":"This API is used to query the details about a specified DCS instance.GET /v2/{project_id}/instances/{instance_id}NoneStatus code: 200Status code: 200The specified instanc", + "doc_type":"api", + "kw":"Querying a DCS instance,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowInstance" + } + ], + "title":"Querying a DCS instance", + "githuburl":"" + }, + { + "uri":"DeleteSingleInstance.html", + "node_id":"deletesingleinstance.xml", + "product_code":"", + "code":"11", + "des":"This API is used to delete a specified DCS instance to free up all resources occupied by it.To delete pay-per-use resources, perform operations in this section..DELETE /v", + "doc_type":"api", + "kw":"Deleting an Instance,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteSingleInstance" + } + ], + "title":"Deleting an Instance", + "githuburl":"" + }, + { + "uri":"UpdateInstance.html", + "node_id":"updateinstance.xml", + "product_code":"", + "code":"12", + "des":"This API is used to modify the information about a DCS instance, including the instance name, description, port, backup policy, start and end time of the maintenance wind", + "doc_type":"api", + "kw":"Modifying Details of a DCS Instance,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateInstance" + } + ], + "title":"Modifying Details of a DCS Instance", + "githuburl":"" + }, + { + "uri":"ResizeInstance.html", + "node_id":"resizeinstance.xml", + "product_code":"", + "code":"13", + "des":"This API is used to modify specifications of a DCS instance in the Running state.POST /v2/{project_id}/instances/{instance_id}/resizeNoneChanging instance specifications ", + "doc_type":"api", + "kw":"Modifying Instance Specifications,Lifecycle Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ResizeInstance" + } + ], + "title":"Modifying Instance Specifications", + "githuburl":"" + }, + { + "uri":"InstanceManagement.html", + "node_id":"instancemanagement.xml", + "product_code":"", + "code":"14", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Instance Management APIs", - "title":"Instance Management APIs", + "kw":"Instance Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Instance Management", "githuburl":"" }, { - "uri":"dcs-api-0312018.html", - "product_code":"dcs", - "code":"11", - "des":"This API is used to restart a running DCS instance.Data clearance operations cannot be undone on DCS Redis 4.0 and 5.0 instances.PUT /v1.0/{project_id}/instances/statusTa", + "uri":"ChangeMasterStandby.html", + "node_id":"changemasterstandby.xml", + "product_code":"", + "code":"15", + "des":"This API is used to perform a master/standby switchover. Only master/standby instances support this operation.POST /v2/{project_id}/instances/{instance_id}/swapNoneStatus", "doc_type":"api", - "kw":"Restarting DCS Instances or Clearing DCS Instance Data,Instance Management APIs,API Reference", + "kw":"Master/Standby Switchover,Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ChangeMasterStandby" + } + ], + "title":"Master/Standby Switchover", + "githuburl":"" + }, + { + "uri":"UpdatePassword.html", + "node_id":"updatepassword.xml", + "product_code":"", + "code":"16", + "des":"This API is used to change the password of a DCS instance.PUT /v2/{project_id}/instances/{instance_id}/passwordStatus code: 200Status code: 400Status code: 500Changing th", + "doc_type":"api", + "kw":"Changing the Password,Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdatePassword" + } + ], + "title":"Changing the Password", + "githuburl":"" + }, + { + "uri":"RestartOrFlushInstances.html", + "node_id":"restartorflushinstances.xml", + "product_code":"", + "code":"17", + "des":"This API is used to restart a running DCS instance.Data clearance operations cannot be undone on DCS Redis 4.0, 5.0, and 6.0 instances.PUT /v2/{project_id}/instances/stat", + "doc_type":"api", + "kw":"Restarting DCS Instances or Clearing DCS Instance Data,Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"RestartOrFlushInstances" + } + ], "title":"Restarting DCS Instances or Clearing DCS Instance Data", "githuburl":"" }, { - "uri":"dcs-api-0312014.html", - "product_code":"dcs", - "code":"12", - "des":"This API is used to query the statistics of all DCS instances that are in the Running state.GET /v1.0/{project_id}/instances/statisticTable 1 describes the parameter.Para", + "uri":"ListStatisticsOfRunningInstances.html", + "node_id":"liststatisticsofrunninginstances.xml", + "product_code":"", + "code":"18", + "des":"This API is used to query the statistics of all DCS instances that are in the Running state.GET /v2/{project_id}/instances/statisticNoneStatus code: 200Status code: 400St", "doc_type":"api", - "kw":"Querying Statistics of All Running Instances,Instance Management APIs,API Reference", + "kw":"Querying Statistics of All Running Instances,Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListStatisticsOfRunningInstances" + } + ], "title":"Querying Statistics of All Running Instances", "githuburl":"" }, { - "uri":"dcs-api-0312016.html", - "product_code":"dcs", - "code":"13", - "des":"This API is used to query the number of instances in different states.GET /v1.0/{project_id}/instances/status?includeFailure={includeFailure}Table 1 describes the paramet", - "doc_type":"api", - "kw":"Querying DCS Instance Status,Instance Management APIs,API Reference", - "title":"Querying DCS Instance Status", - "githuburl":"" - }, - { - "uri":"dcs-api-0312019.html", - "product_code":"dcs", - "code":"14", - "des":"This API is used to change the password of a DCS instance.PUT /v1.0/{project_id}/instances/{instance_id}/passwordTable 1 describes the parameters.Parameter descriptionPar", - "doc_type":"api", - "kw":"Changing the Password of a DCS Instance,Instance Management APIs,API Reference", - "title":"Changing the Password of a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312013.html", - "product_code":"dcs", - "code":"15", + "uri":"GroupReplicationManagement.html", + "node_id":"groupreplicationmanagement.xml", + "product_code":"", + "code":"19", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Parameter Management APIs", - "title":"Parameter Management APIs", + "kw":"Shards and Replicas", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Shards and Replicas", "githuburl":"" }, { - "uri":"dcs-api-0312017.html", - "product_code":"dcs", - "code":"16", - "des":"You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.PUT /v1.0/{project_id}/instances/{instance_id}/con", + "uri":"UpdateSlavePriority.html", + "node_id":"updateslavepriority.xml", + "product_code":"", + "code":"20", + "des":"This API is used to configure the replica priority. When the master node is faulty, a replica with a smaller weight has a higher priority to be promoted to master.POST /v", "doc_type":"api", - "kw":"Modifying Configuration Parameters,Parameter Management APIs,API Reference", + "kw":"Configuring Replica Priority,Shards and Replicas,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateSlavePriority" + } + ], + "title":"Configuring Replica Priority", + "githuburl":"" + }, + { + "uri":"DeleteIpFromDomainName.html", + "node_id":"deleteipfromdomainname.xml", + "product_code":"", + "code":"21", + "des":"This API is used to remove the IP address of a read replica from the domain name. After the removal, the read-only domain name will not be resolved to the IP address.DELE", + "doc_type":"api", + "kw":"Removing the IP Address,Shards and Replicas,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteIpFromDomainName" + } + ], + "title":"Removing the IP Address", + "githuburl":"" + }, + { + "uri":"ListGroupReplicationInfo.html", + "node_id":"listgroupreplicationinfo.xml", + "product_code":"", + "code":"22", + "des":"This API is used to query shards and replicas of cluster instances.GET /v2/{project_id}/instance/{instance_id}/groupsNoneStatus code: 200Status code: 500Status code: 400S", + "doc_type":"api", + "kw":"Querying Details of Shards,Shards and Replicas,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListGroupReplicationInfo" + } + ], + "title":"Querying Details of Shards", + "githuburl":"" + }, + { + "uri":"BatchShowNodesInformation.html", + "node_id":"batchshownodesinformation.xml", + "product_code":"", + "code":"23", + "des":"This API is used to query the node information, number of valid instances, and number of nodes of all instances in a specified project. No node information will be return", + "doc_type":"api", + "kw":"Querying Instance Nodes in Batches,Shards and Replicas,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"BatchShowNodesInformation" + } + ], + "title":"Querying Instance Nodes in Batches", + "githuburl":"" + }, + { + "uri":"ParamManagement.html", + "node_id":"parammanagement.xml", + "product_code":"", + "code":"24", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Parameter Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Parameter Management", + "githuburl":"" + }, + { + "uri":"ListConfigurations.html", + "node_id":"listconfigurations.xml", + "product_code":"", + "code":"25", + "des":"This API is used to query the configuration parameters of a DCS instance.GET /v2/{project_id}/instances/{instance_id}/configsNoneStatus code: 200Status code: 400Status co", + "doc_type":"api", + "kw":"Querying DCS Instance Configuration Parameters,Parameter Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListConfigurations" + } + ], + "title":"Querying DCS Instance Configuration Parameters", + "githuburl":"" + }, + { + "uri":"UpdateConfigurations.html", + "node_id":"updateconfigurations.xml", + "product_code":"", + "code":"26", + "des":"You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.PUT /v2/{project_id}/instances/{instance_id}/confi", + "doc_type":"api", + "kw":"Modifying Configuration Parameters,Parameter Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateConfigurations" + } + ], "title":"Modifying Configuration Parameters", "githuburl":"" }, { - "uri":"dcs-api-0312015.html", - "product_code":"dcs", - "code":"17", - "des":"This API is used to query the configuration parameters of a DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/configsTable 1 describes the parameters.Parameter ", + "uri":"ListConfigHistories.html", + "node_id":"listconfighistories.xml", + "product_code":"", + "code":"27", + "des":"This API is used to query the parameter modification record list of an instance by keyword.GET /v2/{project_id}/instances/{instance_id}/config-historiesNoneStatus code: 2", "doc_type":"api", - "kw":"Querying Configuration Parameters,Parameter Management APIs,API Reference", - "title":"Querying Configuration Parameters", + "kw":"Querying the List of Instance Parameter Modification Records,Parameter Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListConfigHistories" + } + ], + "title":"Querying the List of Instance Parameter Modification Records", "githuburl":"" }, { - "uri":"dcs-api-0514003.html", - "product_code":"dcs", - "code":"18", + "uri":"BackupRestoreManagement.html", + "node_id":"backuprestoremanagement.xml", + "product_code":"", + "code":"28", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Data Migration APIs", - "title":"Data Migration APIs", + "kw":"Backup and Restoration", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Backup and Restoration", "githuburl":"" }, { - "uri":"dcs-api-0514004.html", - "product_code":"dcs", - "code":"19", - "des":"This API is used to create a data migration task.NonePOST /v2/{project_id}/migration-taskIf the status code is 200, the following parameters are returned:Example request ", + "uri":"DeleteBackupFile.html", + "node_id":"deletebackupfile.xml", + "product_code":"", + "code":"29", + "des":"This API is used to delete the backup files of a DCS instance.DELETE /v2/{project_id}/instances/{instance_id}/backups/{backup_id}NoneStatus code: 400Status code: 500NoneS", "doc_type":"api", - "kw":"Creating a Data Migration Task,Data Migration APIs,API Reference", - "title":"Creating a Data Migration Task", - "githuburl":"" - }, - { - "uri":"dcs-api-0514005.html", - "product_code":"dcs", - "code":"20", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Backup and Restoration APIs", - "title":"Backup and Restoration APIs", - "githuburl":"" - }, - { - "uri":"dcs-api-0312020.html", - "product_code":"dcs", - "code":"21", - "des":"This API is used to back up a specified DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.POST ", - "doc_type":"api", - "kw":"Backing Up a DCS Instance,Backup and Restoration APIs,API Reference", - "title":"Backing Up a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312021.html", - "product_code":"dcs", - "code":"22", - "des":"This API is used to restore a specified DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.POST ", - "doc_type":"api", - "kw":"Restoring a DCS Instance,Backup and Restoration APIs,API Reference", - "title":"Restoring a DCS Instance", - "githuburl":"" - }, - { - "uri":"dcs-api-0312022.html", - "product_code":"dcs", - "code":"23", - "des":"This API is used to query the backup records of a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/backups?start={start}&limit={limit}&beginTime={beg", - "doc_type":"api", - "kw":"Querying DCS Instance Backup Records,Backup and Restoration APIs,API Reference", - "title":"Querying DCS Instance Backup Records", - "githuburl":"" - }, - { - "uri":"dcs-api-0312023.html", - "product_code":"dcs", - "code":"24", - "des":"This API is used to query the restoration records of a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/restores?start={start}&limit={limit}&beginTim", - "doc_type":"api", - "kw":"Querying DCS Instance Restoration Records,Backup and Restoration APIs,API Reference", - "title":"Querying DCS Instance Restoration Records", - "githuburl":"" - }, - { - "uri":"dcs-api-0312024.html", - "product_code":"dcs", - "code":"25", - "des":"This API is used to delete the files backed up by a DCS instance.DELETE /v1.0/{project_id}/instances/{instance_id}/backups/{backup_id}Table 1 describes the parameters.Par", - "doc_type":"api", - "kw":"Deleting Backup Files,Backup and Restoration APIs,API Reference", + "kw":"Deleting Backup Files,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteBackupFile" + } + ], "title":"Deleting Backup Files", "githuburl":"" }, { - "uri":"topic_300000009.html", + "uri":"RestoreInstance.html", + "node_id":"restoreinstance.xml", "product_code":"", - "code":"26", + "code":"30", + "des":"This API is used to restore the backup data to a specific DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node inst", + "doc_type":"api", + "kw":"Restoring a DCS Instance,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"RestoreInstance" + } + ], + "title":"Restoring a DCS Instance", + "githuburl":"" + }, + { + "uri":"ListRestoreRecords.html", + "node_id":"listrestorerecords.xml", + "product_code":"", + "code":"31", + "des":"This API is used to query the restoration records of a specific DCS instance.GET /v2/{project_id}/instances/{instance_id}/restoresNoneStatus code: 200Status code: 400Stat", + "doc_type":"api", + "kw":"Querying DCS Instance Restoration Records,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListRestoreRecords" + } + ], + "title":"Querying DCS Instance Restoration Records", + "githuburl":"" + }, + { + "uri":"ListBackupFileLinks.html", + "node_id":"listbackupfilelinks.xml", + "product_code":"", + "code":"32", + "des":"This API is used to obtain the download links of backup files.POST /v2/{project_id}/instances/{instance_id}/backups/{backup_id}/linksStatus code: 200Status code: 400Statu", + "doc_type":"api", + "kw":"Obtaining the Backup File URL,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListBackupFileLinks" + } + ], + "title":"Obtaining the Backup File URL", + "githuburl":"" + }, + { + "uri":"CopyInstance.html", + "node_id":"copyinstance.xml", + "product_code":"", + "code":"33", + "des":"This API is used to back up a specific DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.POST /", + "doc_type":"api", + "kw":"Backing Up a DCS Instance,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CopyInstance" + } + ], + "title":"Backing Up a DCS Instance", + "githuburl":"" + }, + { + "uri":"ListBackupRecords.html", + "node_id":"listbackuprecords.xml", + "product_code":"", + "code":"34", + "des":"This API is used to query the backup records of a specific DCS instance.GET /v2/{project_id}/instances/{instance_id}/backupsNoneStatus code: 200Status code: 400Status cod", + "doc_type":"api", + "kw":"Listing DCS Instance Backup Records,Backup and Restoration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListBackupRecords" + } + ], + "title":"Listing DCS Instance Backup Records", + "githuburl":"" + }, + { + "uri":"DataMigrationManagement.html", + "node_id":"datamigrationmanagement.xml", + "product_code":"", + "code":"35", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"", + "doc_type":"api", + "kw":"Data Migration", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Data Migration", + "githuburl":"" + }, + { + "uri":"CreateMigrationTask.html", + "node_id":"createmigrationtask.xml", + "product_code":"", + "code":"36", + "des":"This API is used to create a backup import task.POST /v2/{project_id}/migration-taskStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404Status", + "doc_type":"api", + "kw":"Creating a Backup Import Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateMigrationTask" + } + ], + "title":"Creating a Backup Import Task", + "githuburl":"" + }, + { + "uri":"ListMigrationTask.html", + "node_id":"listmigrationtask.xml", + "product_code":"", + "code":"37", + "des":"This API is used to query the migration task list.GET /v2/{project_id}/migration-tasksNoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404", + "doc_type":"api", + "kw":"Listing Migration Tasks,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListMigrationTask" + } + ], + "title":"Listing Migration Tasks", + "githuburl":"" + }, + { + "uri":"DeleteMigrationTask.html", + "node_id":"deletemigrationtask.xml", + "product_code":"", + "code":"38", + "des":"This API is used to delete data migration tasks.DELETE /v2/{project_id}/migration-tasks/deleteStatus code: 200Status code: 400Status code: 401Status code: 403Status code:", + "doc_type":"api", + "kw":"Deleting Data Migration Tasks,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteMigrationTask" + } + ], + "title":"Deleting Data Migration Tasks", + "githuburl":"" + }, + { + "uri":"ShowMigrationTask.html", + "node_id":"showmigrationtask.xml", + "product_code":"", + "code":"39", + "des":"This API is used to query migration task details.GET /v2/{project_id}/migration-task/{task_id}NoneStatus code: 200Status code: 400Status code: 401Status code: 403Status c", + "doc_type":"api", + "kw":"Querying Details of a Data Migration Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowMigrationTask" + } + ], + "title":"Querying Details of a Data Migration Task", + "githuburl":"" + }, + { + "uri":"UpdateMigrationTask.html", + "node_id":"updatemigrationtask.xml", + "product_code":"", + "code":"40", + "des":"This API is used to configure auto-reconnect for migration tasks.PUT /v2/{project_id}/migration-task/{task_id}Status code: 400Status code: 401Status code: 403Status code:", + "doc_type":"api", + "kw":"Configuring Auto-Reconnect for Migration Tasks,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateMigrationTask" + } + ], + "title":"Configuring Auto-Reconnect for Migration Tasks", + "githuburl":"" + }, + { + "uri":"StopMigrationTask.html", + "node_id":"stopmigrationtask.xml", + "product_code":"", + "code":"41", + "des":"This API is used to stop a data migration task.POST /v2/{project_id}/migration-task/{task_id}/stopNoneStatus code: 200Status code: 400Status code: 401Status code: 403Stat", + "doc_type":"api", + "kw":"Stopping a Data Migration Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"StopMigrationTask" + } + ], + "title":"Stopping a Data Migration Task", + "githuburl":"" + }, + { + "uri":"ShowMigrationTaskStats.html", + "node_id":"showmigrationtaskstats.xml", + "product_code":"", + "code":"42", + "des":"This API is used to query progress details about an online migration task.GET /v2/{project_id}/migration-task/{task_id}/statsNoneStatus code: 200Status code: 400Status co", + "doc_type":"api", + "kw":"Querying the Progress of an Online Migration Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowMigrationTaskStats" + } + ], + "title":"Querying the Progress of an Online Migration Task", + "githuburl":"" + }, + { + "uri":"CreateOnlineMigrationTask.html", + "node_id":"createonlinemigrationtask.xml", + "product_code":"", + "code":"43", + "des":"This API is used to create an online data migration task.POST /v2/{project_id}/migration/instanceStatus code: 200Status code: 400Status code: 401Status code: 403Status co", + "doc_type":"api", + "kw":"Creating an Online Data Migration Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateOnlineMigrationTask" + } + ], + "title":"Creating an Online Data Migration Task", + "githuburl":"" + }, + { + "uri":"SetOnlineMigrationTask.html", + "node_id":"setonlinemigrationtask.xml", + "product_code":"", + "code":"44", + "des":"This API is used to configure an online data migration task.POST /v2/{project_id}/migration/{task_id}/taskStatus code: 200Status code: 400Status code: 401Status code: 403", + "doc_type":"api", + "kw":"Configuring an Online Data Migration Task,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"SetOnlineMigrationTask" + } + ], + "title":"Configuring an Online Data Migration Task", + "githuburl":"" + }, + { + "uri":"BatchStopMigrationTasks.html", + "node_id":"batchstopmigrationtasks.xml", + "product_code":"", + "code":"45", + "des":"This API is used to stop data migration tasks in batches. If a success response is returned, the request is successfully delivered. The migration tasks are stopped only w", + "doc_type":"api", + "kw":"Stopping Data Migration Tasks,Data Migration,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"BatchStopMigrationTasks" + } + ], + "title":"Stopping Data Migration Tasks", + "githuburl":"" + }, + { + "uri":"TagManagement.html", + "node_id":"tagmanagement.xml", + "product_code":"", + "code":"46", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tag Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"ListTagsOfTenant.html", + "node_id":"listtagsoftenant.xml", + "product_code":"", + "code":"47", + "des":"This API is used to query the tags of all resources owned by a tenant in a specific project.GET /v2/{project_id}/dcs/tagsNoneStatus code: 200Status code: 400Status code: ", + "doc_type":"api", + "kw":"Listing All Tags of a Tenant,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListTagsOfTenant" + } + ], + "title":"Listing All Tags of a Tenant", + "githuburl":"" + }, + { + "uri":"BatchCreateOrDeleteTags.html", + "node_id":"batchcreateordeletetags.xml", + "product_code":"", + "code":"48", + "des":"This API is used to add or delete tags in batches for a DCS instance.POST /v2/{project_id}/dcs/{instance_id}/tags/actionNoneAdding tags to a specified resource in batches", + "doc_type":"api", + "kw":"Batch Adding or Deleting Tags,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"BatchCreateOrDeleteTags" + } + ], + "title":"Batch Adding or Deleting Tags", + "githuburl":"" + }, + { + "uri":"ShowTags.html", + "node_id":"showtags.xml", + "product_code":"", + "code":"49", + "des":"This API is used to query the tags of an instance by its instance ID.GET /v2/{project_id}/instances/{instance_id}/tagsNoneStatus code: 200Status code: 200Instance tags qu", + "doc_type":"api", + "kw":"Querying Tags of a DCS Instance,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowTags" + } + ], + "title":"Querying Tags of a DCS Instance", + "githuburl":"" + }, + { + "uri":"CacheAnalysisManagement.html", + "node_id":"cacheanalysismanagement.xml", + "product_code":"", + "code":"50", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Cache Analysis", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Cache Analysis", + "githuburl":"" + }, + { + "uri":"CreateBigkeyScanTask.html", + "node_id":"createbigkeyscantask.xml", + "product_code":"", + "code":"51", + "des":"This API is used to create a big key analysis task for a DCS Redis instance.POST /v2/{project_id}/instances/{instance_id}/bigkey-taskNoneStatus code: 200Status code: 400S", + "doc_type":"api", + "kw":"Creating a Big Key Analysis Task,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateBigkeyScanTask" + } + ], + "title":"Creating a Big Key Analysis Task", + "githuburl":"" + }, + { + "uri":"ListBigkeyScanTasks.html", + "node_id":"listbigkeyscantasks.xml", + "product_code":"", + "code":"52", + "des":"This API is used to query the list of big key analysis tasks.GET /v2/{project_id}/instances/{instance_id}/bigkey-tasksNoneStatus code: 200Status code: 400Status code: 401", + "doc_type":"api", + "kw":"Listing Big Key Analysis Tasks,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListBigkeyScanTasks" + } + ], + "title":"Listing Big Key Analysis Tasks", + "githuburl":"" + }, + { + "uri":"ShowBigkeyScanTaskDetails.html", + "node_id":"showbigkeyscantaskdetails.xml", + "product_code":"", + "code":"53", + "des":"This API is used to query the big key analysis details.GET /v2/{project_id}/instances/{instance_id}/bigkey-task/{bigkey_id}NoneStatus code: 200Status code: 400Status code", + "doc_type":"api", + "kw":"Querying Big Key Analysis Details,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowBigkeyScanTaskDetails" + } + ], + "title":"Querying Big Key Analysis Details", + "githuburl":"" + }, + { + "uri":"DeleteBigkeyScanTask.html", + "node_id":"deletebigkeyscantask.xml", + "product_code":"", + "code":"54", + "des":"This API is used to delete a big key analysis task.DELETE /v2/{project_id}/instances/{instance_id}/bigkey-task/{bigkey_id}NoneStatus code: 200Status code: 400Status code:", + "doc_type":"api", + "kw":"Deleting a Big Key Analysis Task,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteBigkeyScanTask" + } + ], + "title":"Deleting a Big Key Analysis Task", + "githuburl":"" + }, + { + "uri":"UpdateBigkeyAutoscanConfig.html", + "node_id":"updatebigkeyautoscanconfig.xml", + "product_code":"", + "code":"55", + "des":"This API is used to configure automatic big key analysis.PUT /v2/{project_id}/instances/{instance_id}/bigkey/autoscanStatus code: 200Status code: 400Status code: 401Statu", + "doc_type":"api", + "kw":"Configuring Automatic Big Key Analysis,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateBigkeyAutoscanConfig" + } + ], + "title":"Configuring Automatic Big Key Analysis", + "githuburl":"" + }, + { + "uri":"ShowBigkeyAutoscanConfig.html", + "node_id":"showbigkeyautoscanconfig.xml", + "product_code":"", + "code":"56", + "des":"This API is used to query configurations of automatic big key analysis.GET /v2/{project_id}/instances/{instance_id}/bigkey/autoscanNoneStatus code: 200Status code: 400Sta", + "doc_type":"api", + "kw":"Querying the Configurations of Automatic Big Key Analysis,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowBigkeyAutoscanConfig" + } + ], + "title":"Querying the Configurations of Automatic Big Key Analysis", + "githuburl":"" + }, + { + "uri":"CreateHotkeyScanTask.html", + "node_id":"createhotkeyscantask.xml", + "product_code":"", + "code":"57", + "des":"This API is used to create a hot key analysis task. Redis 3.0 does not support hot key analysis.To perform hot key analysis, the instance's maxmemory-policy parameter mus", + "doc_type":"api", + "kw":"Creating a Hot Key Analysis Task,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateHotkeyScanTask" + } + ], + "title":"Creating a Hot Key Analysis Task", + "githuburl":"" + }, + { + "uri":"ListHotKeyScanTasks.html", + "node_id":"listhotkeyscantasks.xml", + "product_code":"", + "code":"58", + "des":"This API is used to query the list of hot key analysis tasks.GET /v2/{project_id}/instances/{instance_id}/hotkey-tasksNoneStatus code: 200Status code: 400Status code: 401", + "doc_type":"api", + "kw":"Listing Hot Key Analysis Tasks,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListHotKeyScanTasks" + } + ], + "title":"Listing Hot Key Analysis Tasks", + "githuburl":"" + }, + { + "uri":"ShowHotkeyTaskDetails.html", + "node_id":"showhotkeytaskdetails.xml", + "product_code":"", + "code":"59", + "des":"This API is used to query the hot key analysis details.GET /v2/{project_id}/instances/{instance_id}/hotkey-task/{hotkey_id}NoneStatus code: 200Status code: 400Status code", + "doc_type":"api", + "kw":"Querying Hot Key Analysis Details,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowHotkeyTaskDetails" + } + ], + "title":"Querying Hot Key Analysis Details", + "githuburl":"" + }, + { + "uri":"DeleteHotkeyScanTask.html", + "node_id":"deletehotkeyscantask.xml", + "product_code":"", + "code":"60", + "des":"This API is used to delete a hot key analysis task.DELETE /v2/{project_id}/instances/{instance_id}/hotkey-task/{hotkey_id}NoneStatus code: 200Status code: 400Status code:", + "doc_type":"api", + "kw":"Deleting a Hot Key Analysis Task,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteHotkeyScanTask" + } + ], + "title":"Deleting a Hot Key Analysis Task", + "githuburl":"" + }, + { + "uri":"UpdateHotkeyAutoScanConfig.html", + "node_id":"updatehotkeyautoscanconfig.xml", + "product_code":"", + "code":"61", + "des":"This API is used to configure automatic hot key analysis.PUT /v2/{project_id}/instances/{instance_id}/hotkey/autoscanStatus code: 200Status code: 400Status code: 401Statu", + "doc_type":"api", + "kw":"Configuring Automatic Hot Key Analysis,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateHotkeyAutoScanConfig" + } + ], + "title":"Configuring Automatic Hot Key Analysis", + "githuburl":"" + }, + { + "uri":"ShowHotkeyAutoscanConfig.html", + "node_id":"showhotkeyautoscanconfig.xml", + "product_code":"", + "code":"62", + "des":"This API is used to query configurations of automatic hot key analysis.GET /v2/{project_id}/instances/{instance_id}/hotkey/autoscanNoneStatus code: 200Status code: 400Sta", + "doc_type":"api", + "kw":"Querying the Configurations of Automatic Hot Key Analysis,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowHotkeyAutoscanConfig" + } + ], + "title":"Querying the Configurations of Automatic Hot Key Analysis", + "githuburl":"" + }, + { + "uri":"CreateAutoExpireScanTask.html", + "node_id":"createautoexpirescantask.xml", + "product_code":"", + "code":"63", + "des":"This API is used to create an expired key scan task. Redis 3.0 does not support expired key scan. The keyspace will be scanned to release the memory used by expired keys ", + "doc_type":"api", + "kw":"Creating an Expired Key Scan Task,Cache Analysis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateAutoExpireScanTask" + } + ], + "title":"Creating an Expired Key Scan Task", + "githuburl":"" + }, + { + "uri":"LogManagement.html", + "node_id":"logmanagement.xml", + "product_code":"", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Log Management", + "githuburl":"" + }, + { + "uri":"ListSlowlog.html", + "node_id":"listslowlog.xml", + "product_code":"", + "code":"65", + "des":"This API is used to query slow logs.GET /v2/{project_id}/instances/{instance_id}/slowlogNoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 4", + "doc_type":"api", + "kw":"Querying the Slow Log,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListSlowlog" + } + ], + "title":"Querying the Slow Log", + "githuburl":"" + }, + { + "uri":"ListRedislog.html", + "node_id":"listredislog.xml", + "product_code":"", + "code":"66", + "des":"This API is used to query the Redis run logs.GET /v2/{project_id}/instances/{instance_id}/redislogNoneStatus code: 200Status code: 400Status code: 401Status code: 403Stat", + "doc_type":"api", + "kw":"Listing Redis Run Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListRedislog" + } + ], + "title":"Listing Redis Run Logs", + "githuburl":"" + }, + { + "uri":"CreateRedislog.html", + "node_id":"createredislog.xml", + "product_code":"", + "code":"67", + "des":"This API is used to collect Redis run logs.POST /v2/{project_id}/instances/{instance_id}/redislogNoneStatus code: 400Status code: 401Status code: 403Status code: 404Statu", + "doc_type":"api", + "kw":"Collecting Redis Run Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateRedislog" + } + ], + "title":"Collecting Redis Run Logs", + "githuburl":"" + }, + { + "uri":"CreateRedislogDownloadLink.html", + "node_id":"createredislogdownloadlink.xml", + "product_code":"", + "code":"68", + "des":"This API is used to obtain the link for downloading logs.POST /v2/{project_id}/instances/{instance_id}/redislog/{id}/linksNoneStatus code: 200Status code: 400Status code:", + "doc_type":"api", + "kw":"Obtaining the Log Download Link,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateRedislogDownloadLink" + } + ], + "title":"Obtaining the Log Download Link", + "githuburl":"" + }, + { + "uri":"NetworkSecurityManagement.html", + "node_id":"networksecuritymanagement.xml", + "product_code":"", + "code":"69", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", "kw":"Network Security", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], "title":"Network Security", "githuburl":"" }, { - "uri":"UpdateIpWhitelist.html", + "uri":"UpdateSSLSwitch.html", + "node_id":"updatesslswitch.xml", "product_code":"", - "code":"27", - "des":"IP whitelist groups are supported only by DCS Redis 4.0/5.0 instances, and not by DCS Redis 3.0 instancesThis API is used to configure IP address whitelist groups for a s", - "doc_type":"", + "code":"70", + "des":"This API is used to enable or disable SSL. This API is only supported by DCS Redis 6.0 instances.PUT /v2/{project_id}/instances/{instance_id}/sslStatus code: 200Status co", + "doc_type":"api", + "kw":"Enabling or Disabling SSL,Network Security,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateSSLSwitch" + } + ], + "title":"Enabling or Disabling SSL", + "githuburl":"" + }, + { + "uri":"ShowInstanceSSLDetail.html", + "node_id":"showinstancessldetail.xml", + "product_code":"", + "code":"71", + "des":"This API is used to query SSL encryption of an instance. This API is only supported by DCS Redis 6.0 instances.GET /v2/{project_id}/instances/{instance_id}/sslNoneStatus ", + "doc_type":"api", + "kw":"Querying SSL Encryption of an Instance,Network Security,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowInstanceSSLDetail" + } + ], + "title":"Querying SSL Encryption of an Instance", + "githuburl":"" + }, + { + "uri":"DownloadSSLCert.html", + "node_id":"downloadsslcert.xml", + "product_code":"", + "code":"72", + "des":"This API is used to download the SSL certificate of an instance. This API is only supported by DCS Redis 6.0 instances.POST /v2/{project_id}/instances/{instance_id}/ssl-c", + "doc_type":"api", + "kw":"Downloading the SSL Certificate of an Instance,Network Security,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DownloadSSLCert" + } + ], + "title":"Downloading the SSL Certificate of an Instance", + "githuburl":"" + }, + { + "uri":"UpdateIpWhitelist.html", + "node_id":"updateipwhitelist.xml", + "product_code":"", + "code":"73", + "des":"This API is used to configure IP address whitelist groups for a specific instance, including creating, disabling, editing, and deleting a whitelist. New whitelist setting", + "doc_type":"api", "kw":"Configuring IP Whitelist Groups,Network Security,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"UpdateIpWhitelist" + } + ], "title":"Configuring IP Whitelist Groups", "githuburl":"" }, { "uri":"ShowIpWhitelist.html", + "node_id":"showipwhitelist.xml", "product_code":"", - "code":"28", + "code":"74", "des":"This API is used to query the IP address whitelist of a specific instance.GET /v2/{project_id}/instance/{instance_id}/whitelistNoneStatus code: 200Status code: 200Instanc", - "doc_type":"", + "doc_type":"api", "kw":"Querying the IP Whitelist of a DCS Instance,Network Security,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowIpWhitelist" + } + ], "title":"Querying the IP Whitelist of a DCS Instance", "githuburl":"" }, { - "uri":"dcs-api-0312038.html", - "product_code":"dcs", - "code":"29", + "uri":"BackgroudTasksManagement.html", + "node_id":"backgroudtasksmanagement.xml", + "product_code":"", + "code":"75", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Background Task Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Background Task Management", + "githuburl":"" + }, + { + "uri":"ListBackgroundTask.html", + "node_id":"listbackgroundtask.xml", + "product_code":"", + "code":"76", + "des":"This API is used to query background tasks.GET /v2/{project_id}/instances/{instance_id}/tasksNoneStatus code: 200Status code: 400Status code: 401Status code: 403Status co", + "doc_type":"api", + "kw":"Listing Background Tasks,Background Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListBackgroundTask" + } + ], + "title":"Listing Background Tasks", + "githuburl":"" + }, + { + "uri":"DeleteBackgroundTask.html", + "node_id":"deletebackgroundtask.xml", + "product_code":"", + "code":"77", + "des":"Deleting a background task.DELETE /v2/{project_id}/instances/{instance_id}/tasks/{task_id}NoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code:", + "doc_type":"api", + "kw":"Deleting a Background Task,Background Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteBackgroundTask" + } + ], + "title":"Deleting a Background Task", + "githuburl":"" + }, + { + "uri":"ShowJobInfo.html", + "node_id":"showjobinfo.xml", + "product_code":"", + "code":"78", + "des":"This API is used to query the task execution result.GET /v2/{project_id}/jobs/{job_id}NoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404", + "doc_type":"api", + "kw":"Querying the Job Execution Result of a Tenant,Background Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowJobInfo" + } + ], + "title":"Querying the Job Execution Result of a Tenant", + "githuburl":"" + }, + { + "uri":"DeleteCenterTask.html", + "node_id":"deletecentertask.xml", + "product_code":"", + "code":"79", + "des":"This API is used to delete a task in the task center.DELETE /v2/{project_id}/tasks/{task_id}Status code: 400Status code: 401Status code: 403Status code: 404Status code: 5", + "doc_type":"api", + "kw":"Deleting a Task in the Task Center,Background Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"DeleteCenterTask" + } + ], + "title":"Deleting a Task in the Task Center", + "githuburl":"" + }, + { + "uri":"InstanceDiagnosisManagement.html", + "node_id":"instancediagnosismanagement.xml", + "product_code":"", + "code":"80", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Instance Diagnosis", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Instance Diagnosis", + "githuburl":"" + }, + { + "uri":"ListDiagnosisTasks.html", + "node_id":"listdiagnosistasks.xml", + "product_code":"", + "code":"81", + "des":"This API is used to query the list of diagnosis tasks of a specific DCS instance.GET /v2/{project_id}/instances/{instance_id}/diagnosisNoneStatus code: 200Status code: 40", + "doc_type":"api", + "kw":"Listing Instance Diagnosis Tasks,Instance Diagnosis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListDiagnosisTasks" + } + ], + "title":"Listing Instance Diagnosis Tasks", + "githuburl":"" + }, + { + "uri":"ShowDiagnosisTaskDetails.html", + "node_id":"showdiagnosistaskdetails.xml", + "product_code":"", + "code":"82", + "des":"This API is used to query details about a diagnosis report based on the report ID.GET /v2/{project_id}/diagnosis/{report_id}NoneStatus code: 200Status code: 400Status cod", + "doc_type":"api", + "kw":"Querying a Specified Diagnosis Report,Instance Diagnosis,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowDiagnosisTaskDetails" + } + ], + "title":"Querying a Specified Diagnosis Report", + "githuburl":"" + }, + { + "uri":"ConfigTemplatesManagement.html", + "node_id":"configtemplatesmanagement.xml", + "product_code":"", + "code":"83", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Template Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Template Management", + "githuburl":"" + }, + { + "uri":"ListConfigTemplates.html", + "node_id":"listconfigtemplates.xml", + "product_code":"", + "code":"84", + "des":"This API is used to query parameter templates of a tenant, and allows you to specify query criteria.GET /v2/{project_id}/config-templatesNoneStatus code: 200Status code: ", + "doc_type":"api", + "kw":"Viewing Parameter Templates,Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListConfigTemplates" + } + ], + "title":"Viewing Parameter Templates", + "githuburl":"" + }, + { + "uri":"CreateCustomTemplate.html", + "node_id":"createcustomtemplate.xml", + "product_code":"", + "code":"85", + "des":"This API is used to create a custom template.POST /v2/{project_id}/config-templatesStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404Status ", + "doc_type":"api", + "kw":"Creating a Custom Template,Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"CreateCustomTemplate" + } + ], + "title":"Creating a Custom Template", + "githuburl":"" + }, + { + "uri":"OtherInterface.html", + "node_id":"otherinterface.xml", + "product_code":"", + "code":"86", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Other APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api" + } + ], + "title":"Other APIs", + "githuburl":"" + }, + { + "uri":"ListFlavors.html", + "node_id":"listflavors.xml", + "product_code":"", + "code":"87", + "des":"This API is used to query the product flavor (parameter spec_code) required for configuring a new DCS instance. If no search criterion is specified, all product specifica", + "doc_type":"api", + "kw":"Querying Product Flavors,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListFlavors" + } + ], + "title":"Querying Product Flavors", + "githuburl":"" + }, + { + "uri":"ListMaintenanceWindows.html", + "node_id":"listmaintenancewindows.xml", + "product_code":"", + "code":"88", + "des":"This API is used to query the start time and end time of maintenance windows.GET /v2/instances/maintain-windowsNoneStatus code: 200Status code: 500Status code: 200Mainten", + "doc_type":"api", + "kw":"Listing Maintenance Time Windows,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListMaintenanceWindows" + } + ], + "title":"Listing Maintenance Time Windows", + "githuburl":"" + }, + { + "uri":"ShowQuotaOfTenant.html", + "node_id":"showquotaoftenant.xml", + "product_code":"", + "code":"89", + "des":"This API is used to query the default instance quota and total memory quota of a tenant and the maximum and minimum quotas a tenant can apply for. Different tenants have ", + "doc_type":"api", + "kw":"Querying the Tenant Quotas,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ShowQuotaOfTenant" + } + ], + "title":"Querying the Tenant Quotas", + "githuburl":"" + }, + { + "uri":"ListMonitoredObjectsOfInstance.html", + "node_id":"listmonitoredobjectsofinstance.xml", + "product_code":"", + "code":"90", + "des":"This API is used to query the monitored objects on secondary dimensions under primary dimension dcs_instance_id.GET /v2/{project_id}/dims/monitored-objects/{instance_id}N", + "doc_type":"api", + "kw":"Listing Monitored Objects on Secondary Dimensions Under a Primary Dimension,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListMonitoredObjectsOfInstance" + } + ], + "title":"Listing Monitored Objects on Secondary Dimensions Under a Primary Dimension", + "githuburl":"" + }, + { + "uri":"ListMonitoredObjects.html", + "node_id":"listmonitoredobjects.xml", + "product_code":"", + "code":"91", + "des":"This API is used to query the monitored objects on the primary dimension dcs_instance_id.GET /v2/{project_id}/dims/monitored-objectsNoneStatus code: 200Status code: 500St", + "doc_type":"api", + "kw":"Listing Monitored Objects on Primary Dimensions,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListMonitoredObjects" + } + ], + "title":"Listing Monitored Objects on Primary Dimensions", + "githuburl":"" + }, + { + "uri":"ListAvailableZones.html", + "node_id":"listavailablezones.xml", + "product_code":"", + "code":"92", + "des":"This API is used to query the AZ information of the current region.GET /v2/available-zonesNoneStatus code: 200Status code: 200The query is successful.See Error Codes.", + "doc_type":"api", + "kw":"Querying AZs,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api", + "operation_id":"ListAvailableZones" + } + ], + "title":"Querying AZs", + "githuburl":"" + }, + { + "uri":"dcs-api-0605002.html", + "node_id":"dcs-api-0605002.xml", + "product_code":"dcs", + "code":"93", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Outdated APIs (V1)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Outdated APIs (V1)", + "githuburl":"" + }, + { + "uri":"dcs-api-0312003.html", + "node_id":"dcs-api-0312003.xml", + "product_code":"dcs", + "code":"94", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Lifecycle Management APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Lifecycle Management APIs", + "githuburl":"" + }, + { + "uri":"dcs-api-0312004.html", + "node_id":"dcs-api-0312004.xml", + "product_code":"dcs", + "code":"95", + "des":"This API is used to create a DCS instance.The system automatically schedules the task every 3 minutes for checking whether resources are available or sold out.POST /v1.0/", + "doc_type":"api", + "kw":"Creating a DCS Instance,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Creating a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312008.html", + "node_id":"dcs-api-0312008.xml", + "product_code":"dcs", + "code":"96", + "des":"This API is used to delete a specified DCS instance to free up all resources occupied by the DCS instance.DELETE /v1.0/{project_id}/instances/{instance_id}Table 1 describ", + "doc_type":"api", + "kw":"Deleting a Single DCS Instance,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Deleting a Single DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312009.html", + "node_id":"dcs-api-0312009.xml", + "product_code":"dcs", + "code":"97", + "des":"This API is used to delete multiple DCS instances at a time.DELETE /v1.0/{project_id}/instances?allFailure={allFailure}Table 1 describes the parameters.Parameter descript", + "doc_type":"api", + "kw":"Batch Deleting DCS Instances,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Batch Deleting DCS Instances", + "githuburl":"" + }, + { + "uri":"dcs-api-0312005.html", + "node_id":"dcs-api-0312005.xml", + "product_code":"dcs", + "code":"98", + "des":"This API is used to query the details about a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}Table 1 describes the parameters.Parameter descriptionP", + "doc_type":"api", + "kw":"Querying a DCS Instance,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312006.html", + "node_id":"dcs-api-0312006.xml", + "product_code":"dcs", + "code":"99", + "des":"This API is used to query DCS instances of a tenant, and allows you to specify query criteria.GET /v1.0/{project_id}/instances?start={start}&limit={limit}&name={name}&sta", + "doc_type":"api", + "kw":"Querying All DCS Instances of a Tenant,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying All DCS Instances of a Tenant", + "githuburl":"" + }, + { + "uri":"dcs-api-0312007.html", + "node_id":"dcs-api-0312007.xml", + "product_code":"dcs", + "code":"100", + "des":"This API is used to modify the information about a DCS instance, including the instance name, description, backup policy, start and end time of the maintenance window, an", + "doc_type":"api", + "kw":"Modifying Information About a DCS Instance,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Modifying Information About a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312010.html", + "node_id":"dcs-api-0312010.xml", + "product_code":"dcs", + "code":"101", + "des":"This API is used to scale up a DCS Redis instance in the Running state.POST /v1.0/{project_id}/instances/{instance_id}/extendTable 1 describes the parameters.Parameter de", + "doc_type":"api", + "kw":"Scaling Up a DCS Instance,Lifecycle Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Scaling Up a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312035.html", + "node_id":"dcs-api-0312035.xml", + "product_code":"dcs", + "code":"102", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Instance Management APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Instance Management APIs", + "githuburl":"" + }, + { + "uri":"dcs-api-0312018.html", + "node_id":"dcs-api-0312018.xml", + "product_code":"dcs", + "code":"103", + "des":"This API is used to restart a running DCS instance.Data clearance operations cannot be undone on DCS Redis 4.0 and 5.0 instances.PUT /v1.0/{project_id}/instances/statusTa", + "doc_type":"api", + "kw":"Restarting DCS Instances or Clearing DCS Instance Data,Instance Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Restarting DCS Instances or Clearing DCS Instance Data", + "githuburl":"" + }, + { + "uri":"dcs-api-0312014.html", + "node_id":"dcs-api-0312014.xml", + "product_code":"dcs", + "code":"104", + "des":"This API is used to query the statistics of all DCS instances that are in the Running state.GET /v1.0/{project_id}/instances/statisticTable 1 describes the parameter.Para", + "doc_type":"api", + "kw":"Querying Statistics of All Running Instances,Instance Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying Statistics of All Running Instances", + "githuburl":"" + }, + { + "uri":"dcs-api-0312016.html", + "node_id":"dcs-api-0312016.xml", + "product_code":"dcs", + "code":"105", + "des":"This API is used to query the number of instances in different states.GET /v1.0/{project_id}/instances/status?include_failure={include_failure}Table 1 describes the param", + "doc_type":"api", + "kw":"Querying DCS Instance Status,Instance Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying DCS Instance Status", + "githuburl":"" + }, + { + "uri":"dcs-api-0312019.html", + "node_id":"dcs-api-0312019.xml", + "product_code":"dcs", + "code":"106", + "des":"This API is used to change the password of a DCS instance.PUT /v1.0/{project_id}/instances/{instance_id}/passwordTable 1 describes the parameters.Parameter descriptionPar", + "doc_type":"api", + "kw":"Changing the Password of a DCS Instance,Instance Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Changing the Password of a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312013.html", + "node_id":"dcs-api-0312013.xml", + "product_code":"dcs", + "code":"107", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Parameter Management APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Parameter Management APIs", + "githuburl":"" + }, + { + "uri":"dcs-api-0312017.html", + "node_id":"dcs-api-0312017.xml", + "product_code":"dcs", + "code":"108", + "des":"You can modify the configuration parameters of your DCS instance to optimize DCS performance based on your requirements.PUT /v1.0/{project_id}/instances/{instance_id}/con", + "doc_type":"api", + "kw":"Modifying Configuration Parameters,Parameter Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Modifying Configuration Parameters", + "githuburl":"" + }, + { + "uri":"dcs-api-0312015.html", + "node_id":"dcs-api-0312015.xml", + "product_code":"dcs", + "code":"109", + "des":"This API is used to query the configuration parameters of a DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/configsTable 1 describes the parameters.Parameter ", + "doc_type":"api", + "kw":"Querying Configuration Parameters,Parameter Management APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying Configuration Parameters", + "githuburl":"" + }, + { + "uri":"dcs-api-0514005.html", + "node_id":"dcs-api-0514005.xml", + "product_code":"dcs", + "code":"110", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Backup and Restoration APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Backup and Restoration APIs", + "githuburl":"" + }, + { + "uri":"dcs-api-0312020.html", + "node_id":"dcs-api-0312020.xml", + "product_code":"dcs", + "code":"111", + "des":"This API is used to back up a specified DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.POST ", + "doc_type":"api", + "kw":"Backing Up a DCS Instance,Backup and Restoration APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Backing Up a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312021.html", + "node_id":"dcs-api-0312021.xml", + "product_code":"dcs", + "code":"112", + "des":"This API is used to restore a specified DCS instance.Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.POST ", + "doc_type":"api", + "kw":"Restoring a DCS Instance,Backup and Restoration APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Restoring a DCS Instance", + "githuburl":"" + }, + { + "uri":"dcs-api-0312022.html", + "node_id":"dcs-api-0312022.xml", + "product_code":"dcs", + "code":"113", + "des":"This API is used to query the backup records of a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/backups?start={start}&limit={limit}&beginTime={beg", + "doc_type":"api", + "kw":"Querying DCS Instance Backup Records,Backup and Restoration APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying DCS Instance Backup Records", + "githuburl":"" + }, + { + "uri":"dcs-api-0312023.html", + "node_id":"dcs-api-0312023.xml", + "product_code":"dcs", + "code":"114", + "des":"This API is used to query the restoration records of a specified DCS instance.GET /v1.0/{project_id}/instances/{instance_id}/restores?start={start}&limit={limit}&beginTim", + "doc_type":"api", + "kw":"Querying DCS Instance Restoration Records,Backup and Restoration APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Querying DCS Instance Restoration Records", + "githuburl":"" + }, + { + "uri":"dcs-api-0312024.html", + "node_id":"dcs-api-0312024.xml", + "product_code":"dcs", + "code":"115", + "des":"This API is used to delete the files backed up by a DCS instance.DELETE /v1.0/{project_id}/instances/{instance_id}/backups/{backup_id}Table 1 describes the parameters.Par", + "doc_type":"api", + "kw":"Deleting Backup Files,Backup and Restoration APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Deleting Backup Files", + "githuburl":"" + }, + { + "uri":"dcs-api-0312038.html", + "node_id":"dcs-api-0312038.xml", + "product_code":"dcs", + "code":"116", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Other APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Other APIs", "githuburl":"" }, { "uri":"dcs-api-0312040.html", + "node_id":"dcs-api-0312040.xml", "product_code":"dcs", - "code":"30", + "code":"117", "des":"This API is used to query the product ID (parameter product_id) which indicates the specifications of the DCS service you created.GET /v1.0/productsRequest parametersNone", "doc_type":"api", "kw":"Querying Service Specifications,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Querying Service Specifications", "githuburl":"" }, { "uri":"dcs-api-0312036.html", + "node_id":"dcs-api-0312036.xml", "product_code":"dcs", - "code":"31", + "code":"118", "des":"This API is used to query the default instance quota and total memory quota of a tenant and the maximum and minimum quotas a tenant can apply for. Different tenants have ", "doc_type":"api", "kw":"Querying the Quota of a Tenant,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Querying the Quota of a Tenant", "githuburl":"" }, { "uri":"dcs-api-0312041.html", + "node_id":"dcs-api-0312041.xml", "product_code":"dcs", - "code":"32", + "code":"119", "des":"The API is used to query the start time and end time of the maintenance time window.GET /v1.0/instances/maintain-windowsRequest parametersNoneExample requestNoneResponse ", "doc_type":"api", "kw":"Querying Maintenance Time Window,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Querying Maintenance Time Window", "githuburl":"" }, { "uri":"dcs-api-0312039.html", + "node_id":"dcs-api-0312039.xml", "product_code":"dcs", - "code":"33", + "code":"120", "des":"This API is used to query the ID of the AZ where a DCS instance resides.GET /v1.0/availableZonesRequest parametersNoneExample requestNoneResponse parametersTable 1 descri", "doc_type":"api", "kw":"Querying AZ Information,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Querying AZ Information", "githuburl":"" }, { - "uri":"dcs-api-0312042.html", + "uri":"api-grant-policy.html", + "node_id":"api-grant-policy.xml", "product_code":"dcs", - "code":"34", + "code":"121", + "des":"This chapter describes fine-grained permissions management for your DCS. If your account does not need individual IAM users, you can skip the configurations described in ", + "doc_type":"api", + "kw":"Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Permissions Policies and Supported Actions", + "githuburl":"" + }, + { + "uri":"dcs-api-0312042.html", + "node_id":"dcs-api-0312042.xml", + "product_code":"dcs", + "code":"122", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Appendix", "githuburl":"" }, { "uri":"dcs-api-0312043.html", + "node_id":"dcs-api-0312043.xml", "product_code":"dcs", - "code":"35", + "code":"123", "des":"Table 1 describes the status codes.", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Status Codes", "githuburl":"" }, { - "uri":"dcs-api-0312044.html", - "product_code":"dcs", - "code":"36", + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"", + "code":"124", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "documenttype":"api" + } + ], "title":"Error Codes", "githuburl":"" }, { "uri":"dcs-api-0312045.html", + "node_id":"dcs-api-0312045.xml", "product_code":"dcs", - "code":"37", - "des":"A project ID is required for some URLs when an API is called. You can obtain a project ID on the console.The following procedure describes how to obtain a project ID:On t", + "code":"125", + "des":"You can obtain a project ID by calling the API used to query project information based on the specified criteria.The API used to obtain a project ID is GET https://{Endpo", "doc_type":"api", "kw":"Obtaining a Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Obtaining a Project ID", "githuburl":"" }, { "uri":"dcs-api-0312047.html", + "node_id":"dcs-api-0312047.xml", "product_code":"dcs", - "code":"38", + "code":"126", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"DCS Instance Statuses,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"DCS Instance Statuses", "githuburl":"" }, { - "uri":"dcs-api-0312049.html", + "uri":"dcs-api-0312050.html", + "node_id":"dcs-api-0312050.xml", "product_code":"dcs", - "code":"39", + "code":"127", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Instance Diagnosis IDs,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], + "title":"Instance Diagnosis IDs", + "githuburl":"" + }, + { + "uri":"dcs-api-0312049.html", + "node_id":"dcs-api-0312049.xml", + "product_code":"dcs", + "code":"128", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"dcs", + "opensource":"true" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/dcs/api-ref/BackgroudTasksManagement.html b/docs/dcs/api-ref/BackgroudTasksManagement.html new file mode 100644 index 00000000..337b96c1 --- /dev/null +++ b/docs/dcs/api-ref/BackgroudTasksManagement.html @@ -0,0 +1,22 @@ + + +
+
+
This API is used to add or delete tags in batches for a DCS instance.
+POST /v2/{project_id}/dcs/{instance_id}/tags/action
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+Operation to be performed. The value can be create or delete. + |
+
tags + |
+Yes + |
+Array of ResourceTag objects + |
+Tag list. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. +
|
+
value + |
+No + |
+String + |
+Tag value. +
|
+
None
+Adding tags to a specified resource in batches
+POST https://{dcs_endpoint}/v2/7dddae81f0e34f62adb9618bc8c8b1fe/dcs/01928d55-7020-4500-9c29-774caabe4bc4/tags/action + +{ + "action" : "create", + "tags" : [ { + "value" : "2", + "key" : "dcs001" + }, { + "value" : "4", + "key" : "dcs003" + } ] +}+
Deleting tags from a specified instance in batches
+POST https://{dcs_endpoint}/v2/7dddae81f0e34f62adb9618bc8c8b1fe/dcs/01928d55-7020-4500-9c29-774caabe4bc4/tags/action + +{ + "action" : "delete", + "tags" : [ { + "key" : "key1", + "value" : "11" + } ] +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+Tags added or deleted successfully. + |
+
See Error Codes.
+This API is used to delete multiple DCS instances at a time.
+DELETE /v2/{project_id}/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
all_failure + |
+No + |
+Boolean + |
+Whether to delete all DCS instances that failed to be created. Values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instances + |
+No + |
+Array of strings + |
+List of instance IDs. +This parameter is set only when the all_failure parameter in the URI is set to false or another value. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
results + |
+Array of BatchOpsResult objects + |
+Result of deleting, restarting, or clearing data of an instance. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
result + |
+String + |
+Instance deletion result. Options: success and failed. + |
+
instance + |
+String + |
+DCS instance ID. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Batch deleting DCS instances
+DELETE https://{dcs_endpoint}/v2/{project_id}/instances?all_failure={all_failure} + +{ + "instances" : [ "54602a9d-5e22-4239-9123-77e350df4a34", "7166cdea-dbad-4d79-9610-7163e6f8b640" ] +}+
Status code: 200
+DCS instances deleted successfully.
+{ + "results" : [ { + "result" : "success", + "instance" : "54602a9d-5e22-4239-9123-77e350df4a34" + }, { + "result" : "success", + "instance" : "7166cdea-dbad-4d79-9610-7163e6f8b640" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+DCS instances deleted successfully. + |
+
500 + |
+Internal service error. + |
+
400 + |
+Invalid request. + |
+
See Error Codes.
+This API is used to query the node information, number of valid instances, and number of nodes of all instances in a specified project. No node information will be returned when the instance is being created. Available for Redis 4.0 and later instances.
+Available for Redis 4.0 and later instances.
+GET /v2/{project_id}/instances-logical-nodes
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. The maximum value is 1000*. If this parameter is not specified, 10 items are displayed on each page by default. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Total number of instances in the query result. + |
+
instances + |
+Array of InstanceNodesInfoResp objects + |
+Instance list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Instance ID. + |
+
node_count + |
+Integer + |
+Total number of nodes of the current instance. + |
+
nodes + |
+Array of NodesInfoResp objects + |
+Node details. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
logical_node_id + |
+String + |
+Logical node ID. + |
+
name + |
+String + |
+Node name. + |
+
status + |
+String + |
+Node status. The value can be: +
Enumeration values: +
|
+
az_code + |
+String + |
+AZ code. + |
+
node_role + |
+String + |
+Node type. Options: +
Enumeration values: +
|
+
node_type + |
+String + |
+Node role. Options: +
Enumeration values: +
|
+
node_ip + |
+String + |
+Node IP address. + |
+
node_port + |
+String + |
+Node port. + |
+
node_id + |
+String + |
+Node ID. + |
+
priority_weight + |
+Integer + |
+Replica promotion priority. + |
+
is_access + |
+Boolean + |
+Whether the IP address of the node can be directly accessed. + |
+
group_id + |
+String + |
+Shard ID. + |
+
group_name + |
+String + |
+Shard name. + |
+
is_remove_ip + |
+Boolean + |
+Whether the IP address is removed from the read-only domain name. + |
+
replication_id + |
+String + |
+Replica ID. + |
+
dimensions + |
+Array of InstanceReplicationDimensionsInfo objects + |
+Monitoring metric dimension of the replica used to call the Cloud Eye API for querying monitoring metrics. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Monitoring dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances-logical-nodes?offset={offset}&limit={limit}+
Status code: 200
+Node information queried successfully.
+{ + "count" : 1, + "instances" : [ { + "instance_id" : "b4468cb1-4f75-4866-a49d-86959acc0c9c", + "node_count" : 2, + "nodes" : [ { + "logical_node_id" : "8f997eb512a92834bf5914be52ca8919", + "name" : "(replica)192.168.0.178", + "status" : "Active", + "az_code" : "region01", + "node_role" : "redis-server", + "node_type" : "slave", + "node_ip" : "192.168.0.178", + "node_port" : "6379", + "node_id" : "8a2c26c17f4d6516017f4d7b77940030", + "is_access" : true, + "group_id" : "ace962d1-7841-4e50-9313-c239fd75dee3", + "group_name" : "group-0", + "priority_weight" : 100, + "is_remove_ip" : false, + "replication_id" : "e40aa09e-03c2-4319-86eb-5ef4ca637544", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6200" + } ] + } ] + } ] +}+
Status code: 500
+Internal service error.
+{ + "error_code" : "DCS.5000", + "error_msg" : "Internal service error." +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4800", + "error_msg" : "Invalid offset in the request." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Node information queried successfully. + |
+
500 + |
+Internal service error. + |
+
400 + |
+Invalid request. + |
+
See Error Codes.
+This API is used to stop data migration tasks in batches. If a success response is returned, the request is successfully delivered. The migration tasks are stopped only when their status is TERMINATED.
+POST /v2/{project_id}/migration-task/batch-stop
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
migration_tasks + |
+Yes + |
+Array of strings + |
+Data migration task list. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
migration_tasks + |
+Array of StopMigrationTaskResult objects + |
+Data migration task list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
result + |
+String + |
+Result of delivering the request for stopping migration tasks. +Enumeration values: +
|
+
task_id + |
+String + |
+ID of the data migration task. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Stopping data migration tasks in batches
+POST https://{dcs_endpoint}/v2/{project_id}/migration-task/batch-stop + +{ + "migration_tasks" : [ "b21989ec-2889-4b8e-99db-19c073425ec2", "5130d57f-640a-435b-bc3a-0fb1860a5340" ] +}+
Status code: 200
+"Migration tasks are being stopped.
+The migration tasks are stopped when their status is TERMINATED.
+{ + "migration_tasks" : [ { + "result" : "success", + "task_id" : "b21989ec-2889-4b8e-99db-19c073425ec2" + }, { + "result" : "failed", + "task_id" : "5130d57f-640a-435b-bc3a-0fb1860a5340" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_msg" : "invalid migration task id in the request.", + "error_code" : "DCS.4855" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+"Migration tasks are being stopped. + NOTE:
+The migration tasks are stopped when their status is TERMINATED. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
++
This API is used to perform a master/standby switchover. Only master/standby instances support this operation.
+POST /v2/{project_id}/instances/{instance_id}/swap
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/swap+
Status code: 400
+Invalid request.
+{ + "error_msg" : "Master standby swap is not supported.", + "error_code" : "DCS.4855", + "error_ext_msg" : null +}+
Status Code + |
+Description + |
+
---|---|
204 + |
+Master/standby switchover performed successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
++
This API is used to back up a specific DCS instance.
+Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.
+POST /v2/{project_id}/instances/{instance_id}/backups
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
remark + |
+No + |
+String + |
+Description of DCS instance backup. + |
+
backup_format + |
+No + |
+String + |
+Format of the DCS instance backup. +Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
backup_id + |
+String + |
+Backup ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Backing up a specified DCS instance to an AOF file
+POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups + +{ + "remark" : "Backup instances", + "backup_format" : "aof" +}+
Status code: 200
+The specified DCS instance is backed up successfully.
+{ + "backup_id" : "548ceeff-2cbb-47ab-9a1c-7b085a8c08d7" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The specified DCS instance is backed up successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create an expired key scan task. Redis 3.0 does not support expired key scan. The keyspace will be scanned to release the memory used by expired keys that were not released due to the lazy free mechanism. This scan is on the master node of the instance and will affect instance performance. Perform this operation during off-peak hours.
+POST /v2/{project_id}/instances/{instance_id}/scan-expire-keys-task
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. +Minimum: 0 +Maximum: 36 + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. +Minimum: 0 +Maximum: 36 + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Expired key scan ID. +Minimum: 0 +Maximum: 36 + |
+
instance_id + |
+String + |
+Instance ID. +Minimum: 0 +Maximum: 36 + |
+
status + |
+String + |
+Scan task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Scan mode. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when a scan task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when a scan task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the scan task is being created.) + |
+
finished_at + |
+String + |
+Time when a scan task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the scan task is being created.) + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/scan-expire-keys-task+
Status code: 200
+Expired key scan task created successfully.
+{ + "id" : "aa735b6f-3d70-44e3-9771-66c6fae7459a", + "instance_id" : "5560df16-cebf-4473-95c4-d1b573c16e79", + "status" : "waiting", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z" +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4818", + "error_msg" : "Do not support auto expire scan." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Expired key scan task created successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+Request rejected. + |
+
404 + |
+The requested resource could not be found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create a big key analysis task for a DCS Redis instance.
+POST /v2/{project_id}/instances/{instance_id}/bigkey-task
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Big key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of big keys. + |
+
keys + |
+Array of BigkeysBody objects + |
+Big key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the big key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a big key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/bigkey-task+
Status code: 200
+Big key analysis task created successfully.
+{ + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "status" : "waiting", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "num" : 0 +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4919", + "error_msg" : "Does not support bigkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Big key analysis task created successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create a custom template.
+POST /v2/{project_id}/config-templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
template_id + |
+Yes + |
+String + |
+Default template ID. + |
+
name + |
+Yes + |
+String + |
+Template name. + |
+
type + |
+Yes + |
+String + |
+Template type. Options: +
Enumeration values: +
|
+
engine + |
+No + |
+String + |
+Cache engine: Redis. + |
+
cache_mode + |
+No + |
+String + |
+DCS instance type. Options: +
|
+
description + |
+No + |
+String + |
+Template description. + |
+
engine_version + |
+No + |
+String + |
+Cache version. +If the cache engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0. + |
+
params + |
+Yes + |
+Map<String,String> + |
+Parameter configuration. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Template ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Creating a single-node, Redis 5.0 custom template
+POST https://{dcs_endpoint}/v2/{project_id}/config-templates + +{ + "name" : "Test", + "cache_mode" : "single", + "description" : "Test", + "engine" : "Redis", + "engine_version" : "5.0", + "params" : { + "latency-monitor-threshold" : 15 + }, + "template_id" : "11", + "type" : "sys" +}+
Status code: 200
+The custom template is created successfully.
+{ + "id" : "efb1ba06-d3cd-4a77-9173-16f70f2d1343" +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "111400063", + "error_msg" : "Invalid {0} parameter in the request." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The custom template is created successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+Request rejected. + |
+
404 + |
+The requested resource could not be found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create a hot key analysis task. Redis 3.0 does not support hot key analysis.
+To perform hot key analysis, the instance's maxmemory-policy parameter must be set to allkeys-lfu or volatile-lfu.
+POST /v2/{project_id}/instances/{instance_id}/hotkey-task
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Hot key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of hot keys. + |
+
keys + |
+Array of HotkeysBody objects + |
+Hot key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the hot key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a hot key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
freq + |
+Integer + |
+Reflects the access frequency of a key within a specific period of time. +The value is the logarithmic access frequency counter. The maximum value is 255, which indicates 1 million access requests. After the frequency reaches 255, the value will no longer increase even if access requests continue to increase. The value will decrease by 1 for every minute during which the key is not accessed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/hotkey-task+
Status code: 200
+Hot key analysis task created successfully.
+{ + "id" : "aa735b6f-3d70-44e3-9771-66c6fae7459a", + "instance_id" : "5560df16-cebf-4473-95c4-d1b573c16e79", + "status" : "waiting", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "num" : 0 +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4922", + "error_msg" : "Does not support hotkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Hot key analysis task created successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create a DCS instance which is billed in pay-per-use mode.
+POST /v2/{project_id}/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+Yes + |
+String + |
+Instance name. +An instance name can contain letters, digits, underscores (_), and hyphens (-) and must start with a letter or digit. +When you create only one instance at a time, the value of this parameter can contain 4 to 64 characters. When you create multiple instances at a time, the value of this parameter can contain 4 to 56 characters. The instances are named in the format of custom name-n, where n starts from 000 and is incremented by 1. For example, if you create two instances and set the custom name to dcs_demo, the two instances are respectively named dcs_demo-000 and dcs_demo-001. + |
+
engine + |
+Yes + |
+String + |
+Cache engine: Redis. + |
+
engine_version + |
+No + |
+String + |
+Cache engine version. +If the cache engine is Redis, this parameter is mandatory. The version can be 3.0/4.0/5.0/6.0. + |
+
capacity + |
+Yes + |
+Float + |
+Cache capacity (GB). For a single-node or master/standby DCS Redis 3.0 instance, the value can be 2, 4, 8, 16, 32, or 64. For a Proxy Cluster DCS Redis 3.0 instance, the value can be 64, 128, 256, 512, or 1024. For a single-node or master/standby DCS Redis 4.0 or 5.0 instance, the value can be 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32, or 64. For a cluster instance, the value can be 4, 8, 16, 24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, or 1024. + |
+
spec_code + |
+Yes + |
+String + |
+Product flavor. The query method is as follows: +
|
+
az_codes + |
+Yes + |
+Array of strings + |
+Code of the AZ where the cache node resides and which has available resources. For details, see Querying AZs. Check whether the desired AZ has available resources. +Master/Standby, Proxy Cluster, and Redis Cluster DCS instances support cross-AZ deployment. You can specify an AZ for the standby node. When specifying AZs for nodes, use commas (,) to separate multiple AZs. For details, see the example request. + |
+
vpc_id + |
+Yes + |
+String + |
+VPC ID. +You can obtain it in either of the following ways: +
|
+
subnet_id + |
+Yes + |
+String + |
+Subnet network ID. +You can obtain it in either of the following ways: +
|
+
security_group_id + |
+No + |
+String + |
+ID of the security group to which the instance belongs. +This parameter is optional when engine is Redis and engine_version is 4.0, 5.0, or 6.0This parameter is mandatory when engine_version is 3.0. DCS Redis 4.0, 5.0, and 6.0 instances do not support security groups. They support only whitelist-based access control. +You can obtain it in either of the following ways: +
|
+
publicip_id + |
+No + |
+String + |
+ID of the EIP bound to the DCS Redis instance. +This parameter is reserved. Retain the default value. +Default: false + |
+
enterprise_project_id + |
+No + |
+String + |
+Enterprise project ID. + |
+
enterprise_project_name + |
+No + |
+String + |
+Enterprise project name. + |
+
description + |
+No + |
+String + |
+Instance description. +The description can contain a maximum of 1024 characters. + NOTE:
+The backslash () and quotation mark (") are special characters for JSON messages. When using these characters in a parameter value, add the escape character () before the characters, for example, \\ and \". + |
+
enable_ssl + |
+No + |
+Boolean + |
+This parameter is reserved. Retain the default value. + |
+
private_ip + |
+No + |
+String + |
+IP address that is manually specified for a DCS instance. This parameter is available for DCS Redis instances. + |
+
instance_num + |
+No + |
+Integer + |
+Number of instances to be created in batches. This parameter is available for DCS Redis instances. +Default value: 1. +Value range: 1 to 100 +Default: 1 + |
+
maintain_begin + |
+No + |
+String + |
+UTC time when the maintenance time window starts. The format is HH:mm:ss. +
|
+
maintain_end + |
+No + |
+String + |
+UTC time when the maintenance time window ends. The format is HH:mm:ss. +
|
+
password + |
+No + |
+String + |
+DCS instance authentication information. + NOTE:
+When no_password_access is set to false or not specified, the request must contain the password parameter. The password of a DCS Redis instance must meet the following complexity requirements: +
|
+
no_password_access + |
+No + |
+Boolean + |
+Whether the instance can be accessed without a password. +
Default: false + |
+
bss_param + |
+No + |
+BssParam object + |
+Parameter related to the billing mode. If this parameter is left blank, the default billing mode is pay-per-use. Other billing modes are not supported. + |
+
instance_backup_policy + |
+No + |
+BackupPolicy object + |
+Backup policy. This parameter is supported when the instance type is master/standby or cluster. + |
+
tags + |
+No + |
+Array of ResourceTag objects + |
+Instance tag key and value. + |
+
access_user + |
+No + |
+String + |
+Leave this parameter empty. + |
+
enable_publicip + |
+No + |
+Boolean + |
+This parameter is reserved. Retain the default value. +Default: false + |
+
port + |
+No + |
+Integer + |
+Port customization. +If this parameter is not sent or is left empty when you create a Redis 4.0, 5.0, or 6.0 instance, the default port 6379 will be used. To customize a port, specify a port number in the range from 1 to 65535. For a DCS Redis 3.0 instance, the port cannot be customized. Port 6379 will be used. + |
+
rename_commands + |
+No + |
+Object + |
+Critical command renaming. +If this parameter is not sent or is left empty when you create a Redis 4.0, 5.0, or 6.0 instance, no critical command will be renamed. Currently, only COMMAND, KEYS, FLUSHDB, FLUSHALL, SCAN, HSCAN, SSCAN, ZSCAN, and HGETALL commands can be renamed. Redis 3.0 instances do not support renaming of high-risk commands. + |
+
template_id + |
+No + |
+String + |
+Parameter template ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
is_auto_renew + |
+No + |
+String + |
+This parameter is currently not used. +Default: false + |
+
charging_mode + |
+Yes + |
+String + |
+Billing mode. The default value is postPaid, indicating pay-per-use. +Default: postPaid + |
+
is_auto_pay + |
+No + |
+String + |
+This parameter is currently not used. + |
+
period_type + |
+No + |
+String + |
+This parameter is currently not used. + |
+
period_num + |
+No + |
+Integer + |
+This parameter is currently not used. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
backup_type + |
+Yes + |
+String + |
+Backup type. +
|
+
save_days + |
+No + |
+Integer + |
+This parameter is mandatory when backup_type is set to auto. Retention period, in days. The value ranges from 1 to 7. + |
+
periodical_backup_plan + |
+No + |
+BackupPlan object + |
+Backup schedule. This parameter is mandatory when backup_type is set to auto. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
timezone_offset + |
+No + |
+String + |
+Time zone in which backup is performed. Range: GMT –12:00 to GMT +12:00. If this parameter is left blank, the current time zone of the DCS-Server VM is used by default. + |
+
backup_at + |
+Yes + |
+Array of integers + |
+Day in a week on which backup starts. The value ranges from 1 to 7, where 1 indicates Monday, and 7 indicates Sunday. + |
+
period_type + |
+Yes + |
+String + |
+Interval at which backup is performed, which supports only weekly currently. + |
+
begin_at + |
+Yes + |
+String + |
+Time at which backup starts. 00:00-01:00 indicates that the backup starts at 00:00. The value must be on the hour. The backup interval is 1 hour. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. +
|
+
value + |
+No + |
+String + |
+Tag value. +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instances + |
+Array of Instances objects + |
+DCS instance ID and name. If multiple DCS instances are created at a time, multiple DCS instance IDs and names will be returned. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+DCS instance ID. + |
+
instance_name + |
+String + |
+DCS instance name. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Creating a DCS Redis instance
+POST https://{dcs_endpoint}/v2/{project_id}/instances + +{ + "name" : "dcs-APITest", + "description" : "Test", + "engine" : "Redis", + "engine_version" : "5.0", + "enterprise_project_id" : 0, + "enterprise_project_name" : "default", + "vpc_id" : "5e37b3be-950a-48e1-b498-65b63d336481", + "security_group_id" : "securityGroupId", + "enable_ssl" : false, + "private_ip" : "", + "az_codes" : [ "region01" ], + "capacity" : 1, + "access_user" : "", + "password" : "********", + "enable_publicip" : false, + "spec_code" : "redis.single.xu1.large.1", + "subnet_id" : "a4112635-3ec0-471c-95c3-5cf49b9533af", + "no_password_access" : false, + "template_id" : "b3ecc9c7-1133-4c47-a06a-21366e227d61" +}+
Creating a pay-per-use, master/standby DCS Redis instance with a customized port, renamed commands, and cross-AZ deployment
+{ + "enterprise_project_name" : "default", + "vpc_id" : "c5cd009b-9ba9-41f2-9a26-2b8c3f3ffd39", + "description" : "Test", + "security_group_id" : "d57fad27-e3e9-43b7-9498-0a698ab63b27", + "port" : 4040, + "enable_ssl" : false, + "private_ip" : "", + "az_codes" : [ "region01", "region02" ], + "capacity" : 2, + "access_user" : "", + "instance_num" : 1, + "enterprise_project_id" : 0, + "password" : "********", + "enable_publicip" : false, + "engine" : "Redis", + "spec_code" : "redis.ha.au1.large.2", + "name" : "dcs-demo", + "subnet_id" : "7e95c4d6-d7af-424c-a3cf-2be10968fe81", + "engine_version" : "4.0", + "no_password_access" : false, + "rename_commands" : { + "keys" : "keys001", + "flushdb" : "flushdb001", + "flushall" : "flushall001" + } +}+
Status code: 200
+The DCS instance creation task is submitted successfully.
+If the instance status is RUNNING, the DCS instance has been successfully created.
+Example 1
+{ + "instances" : [ { + "instance_id" : "3c49fd6b-fc7c-419e-9644-b6cce008653f", + "instance_name" : "dcs-test005" + } ] +}+
Example 2
+{ + "instances" : [ { + "instance_id" : "77284d69-cd51-4bf1-aa30-2e60f055800c", + "instance_name" : "dcs-APITest1" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.1004", + "error_msg" : "Project ID does not match the token." +}+
Status code: 401
+Invalid authentication information.
+{ + "error_code" : "DCS.1001", + "error_msg" : "Invalid token." +}+
Status code: 403
+The request is rejected.
+{ + "error_code" : "DCS.2003", + "error_msg" : "This role does not have the permission to perform this operation." +}+
Status code: 404
+The requested resource is not found.
+{ + "error_code" : "DCS.4001", + "error_msg" : "The requested URL does not exist." +}+
Status code: 500
+Internal service error.
+{ + "error_code" : "DCS.5000", + "error_msg" : "Internal service error." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The DCS instance creation task is submitted successfully. + NOTE:
+If the instance status is RUNNING, the DCS instance has been successfully created. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create a backup import task.
+POST /v2/{project_id}/migration-task
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
task_name + |
+Yes + |
+String + |
+Backup import task name. + |
+
description + |
+No + |
+String + |
+Backup import task description. + |
+
migration_type + |
+Yes + |
+String + |
+Migration mode. Options: +
Enumeration values: +
|
+
migration_method + |
+Yes + |
+String + |
+Type of the migration, which can be full migration or incremental migration. Values: +
Enumeration values: +
|
+
backup_files + |
+No + |
+BackupFilesBody object + |
+Backup files to be imported when the migration mode is backup file import. + |
+
network_type + |
+No + |
+String + |
+Type of the network for communication between the source and target Redis when the migration mode is online data migration. This API can no longer be used to create an online migration task. Please call CreateOnlineMigrationTask instead. +Enumeration values: +
|
+
source_instance + |
+No + |
+SourceInstanceBody object + |
+Source Redis information. This parameter is mandatory when the migration mode is online data migration. This API can no longer be used to create an online migration task. Please call CreateOnlineMigrationTask instead. + |
+
target_instance + |
+Yes + |
+TargetInstanceBody object + |
+Target Redis information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
file_source + |
+No + |
+String + |
+Data source, which can be an OBS bucket or a backup record. +Enumeration values: +
|
+
bucket_name + |
+Yes + |
+String + |
+Name of the OBS bucket. + |
+
files + |
+Yes + |
+Array of Files objects + |
+List of backup files to be imported. This parameter is mandatory when the data source is an OBS bucket. + |
+
backup_id + |
+No + |
+String + |
+Backup record ID. This parameter is mandatory when the data source is a backup record. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
file_name + |
+Yes + |
+String + |
+Name of a backup file. + |
+
size + |
+No + |
+String + |
+File size in bytes. + |
+
update_at + |
+No + |
+String + |
+Time when the file was last modified. The format is YYYY-MM-DD HH:MM:SS. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
addrs + |
+Yes + |
+String + |
+Source Redis address (specified in the source_instance parameter). + |
+
password + |
+No + |
+String + |
+Redis password. If a password is set, this parameter is mandatory. + |
+
task_status + |
+No + |
+String + |
+Task status. + |
+
id + |
+No + |
+String + |
+Redis instance ID. + |
+
ip + |
+No + |
+String + |
+Redis IP address. + |
+
port + |
+No + |
+String + |
+Redis port. + |
+
name + |
+No + |
+String + |
+Redis name. + |
+
proxy_multi_db + |
+No + |
+Boolean + |
+Indicates whether multi-DB is enabled for Proxy Cluster DCS instances. + |
+
db + |
+No + |
+String + |
+Redis database. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
id + |
+Yes + |
+String + |
+Redis instance ID (mandatory in the target_instance parameter). + |
+
name + |
+No + |
+String + |
+Redis instance name (specified in the target_instance parameter). + |
+
password + |
+No + |
+String + |
+Redis password. If a password is set, this parameter is mandatory. + |
+
ip + |
+No + |
+String + |
+Redis IP address. + |
+
port + |
+No + |
+String + |
+Redis port. + |
+
addrs + |
+No + |
+String + |
+Redis instance address. + |
+
proxy_multi_db + |
+No + |
+Boolean + |
+Indicates whether multi-DB is enabled for Proxy Cluster DCS instances. + |
+
db + |
+No + |
+String + |
+Redis database. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Migration task ID. + |
+
name + |
+String + |
+Migration task name. + |
+
status + |
+String + |
+Migration status. Options: SUCCESS, FAILED, MIGRATING, TERMINATED. +Enumeration values: +
|
+
error + |
+String + |
+Error message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Creating a backup import task to migrate data from an OBS bucket
+POST https://{dcs_endpoint}/v2/{project_id}/migration-task + +{ + "task_name" : "migration1", + "description" : "Test", + "migration_type" : "backupfile_import", + "migration_method" : "full_amount_migration", + "backup_files" : { + "bucket_name" : "bucketName", + "file_source" : "self_build_obs", + "files" : [ { + "size" : "754.0MB", + "file_name" : "fileName" + } ] + }, + "target_instance" : { + "id" : "d2c8399f-bdba-43c1-8069-3ff17a1a79d5", + "name" : "dcs-test", + "password" : "xxxxxx" + } +}+
Status code: 200
+Backup import task created.
+{ + "id" : "8aa6999e71cb638b0171f485f5266ef0", + "name" : "dcs-test", + "status" : "MIGRATING", + "error" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Backup import task created. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to create an online data migration task.
+POST /v2/{project_id}/migration/instance
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+Yes + |
+String + |
+Name of the online migration task. + |
+
description + |
+No + |
+String + |
+Description of the online migration task. + |
+
vpc_id + |
+Yes + |
+String + |
+VPC ID. +Methods: +
|
+
subnet_id + |
+Yes + |
+String + |
+Subnet network ID. +Methods: +
|
+
security_group_id + |
+Yes + |
+String + |
+Security group which the instance belongs to. A security group implements access control for VMs within a security group or in different security groups, enhancing VM security. You can define different access rules for a security group to protect the VMs that are added to this security group. +Methods: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Online migration task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Creating an online migration task and configuring the VPC, subnet, and security group for the migration ECS
+POST https://{dcs_endpoint}/v2/{project_id}/migration/instance + +{ + "name" : "dcs-migration-thrc", + "description" : "Creating an online data migration task", + "vpc_id" : "5e37b3be-950a-48e1-b498-65b63d336481", + "subnet_id" : "40f15ed6-7f85-49d5-ba0e-65b940d4812c", + "security_group_id" : "9df96622-24b7-4813-84b8-ab74552a21d7" +}+
Status code: 200
+Online data migration task created.
+{ + "instance_id" : "b21989ec-2889-4b8e-99db-19c073425ec2" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Online data migration task created. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to collect Redis run logs.
+POST /v2/{project_id}/instances/{instance_id}/redislog
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
query_time + |
+No + |
+Integer + |
+Date offset, indicating that the query starts from the last n days. The value can be 0, 1, 3, or 7. For example, the value 0 indicates that the logs of the current day are queried, and the value 7 indicates that the logs of the last seven days are queried. +Enumeration values: +
|
+
log_type + |
+Yes + |
+String + |
+Log type. Currently, only Redis run logs are supported. The value is run. + |
+
replication_id + |
+No + |
+String + |
+Replica ID. You can query the replica ID from Shards and Replicas. This parameter is mandatory when the instance is not single-node. + |
+
None
+Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/redislog?log_type=run&query_time=7+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4800", + "error_msg" : "Invalid logType." +}+
Status Code + |
+Description + |
+
---|---|
204 + |
+Run logs collected successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to obtain the link for downloading logs.
+POST /v2/{project_id}/instances/{instance_id}/redislog/{id}/links
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
id + |
+Yes + |
+String + |
+Unique ID of a log, which is obtained from the API used to query run logs. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Log ID. + |
+
backup_id + |
+String + |
+Background task ID. + |
+
link + |
+String + |
+Log download link. The default validity period is 24 hours. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/0524e839a54847039e9b2b46e8aa788a/instances/5c597ce5-9823-48aa-bf4d-2defb9385b4a/redislog/3ea6ce21-048e-447a-83c3-3fb004b88439/links+
Status code: 200
+Log download link obtained successfully.
+{ + "id" : "3ea6ce21-048e-447a-83c3-3fb004b88439", + "backup_id" : "3ea6ce21-048e-447a-83c3-3fb004b88439", + "link" : "https://bucketxxxxx.{obs_endpoint}:443/xxxxx/redis_192.168.x.x_2021-04-16.log?AWSAccessKeyId=xxxxx" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Log download link obtained successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
++
Deleting a background task.
+DELETE /v2/{project_id}/instances/{instance_id}/tasks/{task_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
task_id + |
+Yes + |
+String + |
+Background task ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
message + |
+String + |
+Returned message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Deleting a background task.
+DELETE https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/tasks/8abf6e1e72c12e7c0172c15b508500aa+
Status code: 200
+Background task deleted successfully.
+{ + "message" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Background task deleted successfully. + |
+
204 + |
+Background task deleted successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete the backup files of a DCS instance.
+DELETE /v2/{project_id}/instances/{instance_id}/backups/{backup_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
backup_id + |
+Yes + |
+String + |
+Backup ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
DELETE https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups/{backup_id}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+Backup file deleted successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete a big key analysis task.
+DELETE /v2/{project_id}/instances/{instance_id}/bigkey-task/{bigkey_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
bigkey_id + |
+Yes + |
+String + |
+ID of the big key analysis task. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Big key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of big keys. + |
+
keys + |
+Array of BigkeysBody objects + |
+Big key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the big key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a big key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
DELETE https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/bigkey-task/858ee14c-2271-4489-8b82-7bda7459ae3e+
Status code: 200
+Big key analysis task deleted successfully.
+{ + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "status" : "success", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z", + "keys" : [ { + "name" : "dcs-bigkey-test", + "type" : "string", + "shard" : "192.168.1.134:6379", + "db" : 0, + "size" : 3000, + "unit" : "byte" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4919", + "error_msg" : "Does not support bigkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Big key analysis task deleted successfully. + |
+
204 + |
+No big key analysis tasks deleted. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete a task in the task center.
+DELETE /v2/{project_id}/tasks/{task_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
task_id + |
+Yes + |
+String + |
+Background task ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
message + |
+No + |
+String + |
+Deletion result. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/{project_id}/tasks/{task_id}+
None
+Status Code + |
+Description + |
+
---|---|
200 + |
+Background task deleted successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+Request rejected. + |
+
404 + |
+The requested resource could not be found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete a hot key analysis task.
+DELETE /v2/{project_id}/instances/{instance_id}/hotkey-task/{hotkey_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
hotkey_id + |
+Yes + |
+String + |
+ID of the hot key analysis task. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Hot key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of hot keys. + |
+
keys + |
+Array of HotkeysBody objects + |
+Hot key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the hot key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a hot key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
freq + |
+Integer + |
+Reflects the access frequency of a key within a specific period of time. +The value is the logarithmic access frequency counter. The maximum value is 255, which indicates 1 million access requests. After the frequency reaches 255, the value will no longer increase even if access requests continue to increase. The value will decrease by 1 for every minute during which the key is not accessed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
DELETE https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/hotkey-task/0ccb25d5-27cf-4188-b5ea-987730a85371+
Status code: 200
+Hot key analysis record deleted.
+{ + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "status" : "success", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z", + "keys" : [ { + "name" : "dcs-hotkey-test", + "type" : "string", + "shard" : "192.168.1.134:6379", + "db" : 0, + "size" : 3000, + "unit" : "byte", + "freq" : 4 + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4922", + "error_msg" : "Does not support hotkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Hot key analysis record deleted. + |
+
204 + |
+Hot key analysis record not found. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to remove the IP address of a read replica from the domain name. After the removal, the read-only domain name will not be resolved to the IP address.
+DELETE /v2/{project_id}/instances/{instance_id}/groups/{group_id}/replications/{node_id}/remove-ip
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
group_id + |
+Yes + |
+String + |
+Shard ID. + |
+
node_id + |
+Yes + |
+String + |
+Node ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
job_id + |
+String + |
+ID of the IP address removing task. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/{project_id}/instance/{instance_id}/groups/{group_id}/replications/{node_id}/remove-ip+
None
+Status Code + |
+Description + |
+
---|---|
200 + |
+IP address removed successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete data migration tasks.
+DELETE /v2/{project_id}/migration-tasks/delete
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
task_id_list + |
+Yes + |
+Array of strings + |
+List of IDs of the migration tasks to be deleted. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_id_list + |
+Array of strings + |
+List of IDs of the migration tasks to be deleted. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Deleting data migration tasks
+DELETE https://{dcs_endpoint}/v2/666486c2d9b948c1bbea57e714d744fa/migration-tasks/delete + +{ + "task_id_list" : [ "2fb6b7e2-5eb8-4380-9d60-ce8d12b19aca" ] +}+
Status code: 200
+Data migration task deleted successfully.
+{ + "task_id_list" : [ "2fb6b7e2-5eb8-4380-9d60-ce8d12b19aca" ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Data migration task deleted successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource does not exist. (No response. For details, see status code 200.) + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to delete a specified DCS instance to free up all resources occupied by it.
+To delete pay-per-use resources, perform operations in this section..
+DELETE /v2/{project_id}/instances/{instance_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+None
+Deleting a specified instance
+DELETE https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+Instance deleted successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to download the SSL certificate of an instance. This API is only supported by DCS Redis 6.0 instances.
+POST /v2/{project_id}/instances/{instance_id}/ssl-certs/download
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
file_name + |
+String + |
+SSL certificate file name. + |
+
link + |
+String + |
+Download link of the SSL certificate. + |
+
bucket_name + |
+String + |
+Name of the OBS bucket for storing the SSL certificate. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/ssl-certs/download+
Status code: 200
+SSL certificate of the instance downloaded.
+{ + "bucket_name" : "bucket_name", + "file_name" : "file_name", + "link" : "https://{bucket_name}.{obs_endpoint}:443/{ssl-XXX}/{file_name}?AWSAccessKeyId=XXX&Expires=XXX&Signature=XXX" +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4201", + "error_msg" : "Do not support SSL." +}+
Status code: 500
+Internal service error.
+{ + "error_code" : "DCS.5010", + "error_msg" : "Failed to operate SSL in database." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+SSL certificate of the instance downloaded. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+Status Code + |
+Error Codes + |
+Error Message + |
+Description + |
+Solution + |
+
---|---|---|---|---|
400 + |
+111400002 + |
+Invalid project ID format. + |
+Invalid project ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400004 + |
+Empty request body. + |
+Empty request body. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400005 + |
+The message body contains invalid characters or is not in JSON format. + |
+The message body contains invalid characters or is not in JSON format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400007 + |
+The selected cache engine type is not supported. + |
+The selected cache engine type is not supported. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400008 + |
+The selected cache engine version is not supported. + |
+The selected cache engine version is not supported. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400009 + |
+Invalid product ID in the request. + |
+Invalid product ID in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400010 + |
+Invalid DCS instance name. The name must be 4 to 64 characters in length. Only letters (case-insensitive), digits, underscores (_) ,and hyphens (-) are allowed. + |
+Invalid instance name. The name can contain 4 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400011 + |
+DCS instance description cannot exceed 1024 characters. + |
+DCS instance description cannot exceed 1024 characters. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400012 + |
+Invalid capacity parameter in the request. + |
+Invalid capacity parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400013 + |
+Invalid vpc_id in the request. + |
+Invalid vpc_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400014 + |
+Invalid security_group_id in the request. + |
+Invalid security_group_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400016 + |
+Invalid subnet_id in the request. + |
+Invalid subnet_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400017 + |
+This DCS instance job task is still running. + |
+This DCS instance job task is still running. + |
+Try again later. + |
+
400 + |
+111400018 + |
+This subnet must exist in the VPC. + |
+This subnet must exist in the VPC. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400019 + |
+The password does not meet complexity requirements. + |
+The password does not meet complexity requirements. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400020 + |
+DHCP must be enabled for this subnet. + |
+DHCP must be enabled for this subnet. + |
+Check whether DHCP has been enabled. + |
+
400 + |
+111400021 + |
+The isAutoRenew parameter in the request must be either 0 or 1. + |
+The isAutoRenew parameter in the request must be either 0 or 1. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400022 + |
+Engine does not match the product id. + |
+The cache engine does not match the product ID. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400026 + |
+This operation is not allowed when the DCS instance is in the current state. + |
+This operation is not allowed when the DCS instance is in the current state. + |
+Try again later or contact technical support. + |
+
400 + |
+111400027 + |
+This operation is not supported on this node. + |
+This operation is not supported on this node. + |
+Try again later or contact technical support. + |
+
400 + |
+111400035 + |
+DCS instance quota of the tenant is insufficient. + |
+DCS instance quota of the tenant is insufficient. + |
+Contact technical support. + |
+
400 + |
+111400036 + |
+Memory quota of the tenant is insufficient. + |
+Memory quota of the tenant is insufficient. + |
+Contact technical support. + |
+
400 + |
+111400037 + |
+The instanceParams parameter in the request contains invalid characters or is not in JSON format. + |
+The instanceParams parameter in the request contains invalid characters or is not in JSON format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400038 + |
+The periodNum parameter in the request must be an integer. + |
+The periodNum parameter in the request must be an integer. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400039 + |
+The quota limit has been reached. + |
+The quota limit has been reached. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400042 + |
+This AZ does not exist. + |
+This AZ does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400045 + |
+This DCS instance is already unfrozen. + |
+This DCS instance is already unfrozen. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400046 + |
+This security group does not exist. + |
+This security group does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400047 + |
+The periodType parameter in the request must be either 2 or 3. + |
+The periodType parameter in the request must be either 2 or 3. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400048 + |
+The security group must have both outbound and inbound rules with protocols set to ANY. + |
+The security group must have both outbound and inbound rules with protocols set to ANY. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400053 + |
+the upgrade instance version equals to current version. + |
+The targetVersion parameter in the request cannot be the same as the source version. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400054 + |
+the selected available zone quota not enough. + |
+DCS resources in the selected AZ have been sold out. + |
+Select another AZ or contact technical support. + |
+
400 + |
+111400060 + |
+This DCS instance name already exists. + |
+This DCS instance name already exists. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400061 + |
+Invalid instance ID format. + |
+Invalid instance ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400062 + |
+Invalid {0} parameter in the request. + |
+Invalid {0} parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400063 + |
+Invalid {0} parameter in the request. + |
+Invalid {0} parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400064 + |
+The action parameter in the request must be start, stop, or restart. + |
+The action parameter in the request must be start, stop, or restart. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400065 + |
+The instances parameter in the request cannot be a null value or left unspecified. + |
+The instances parameter in the request cannot be a null value or left unspecified. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400066 + |
+Invalid value of the configure parameter {0}. + |
+Invalid value of the configure parameter {0}. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400067 + |
+The available_zones parameter in the request must an array that contains only one AZ ID. + |
+The available_zones parameter in the request must an array that contains only one AZ ID. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400068 + |
+This VPC does not exist. + |
+This VPC does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400070 + |
+Invalid task ID format. + |
+Invalid task ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400072 + |
+Invalid saveDays instance backup policy parameter in the request. + |
+Invalid saveDays instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400073 + |
+Invalid backupType instance backup policy parameter in the request. + |
+Invalid backupType instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400074 + |
+Invalid periodType instance backup policy parameter in the request. + |
+Invalid periodType instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400075 + |
+Invalid backupAt instance backup policy parameter in the request. + |
+Invalid backupAt instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400076 + |
+Invalid beginAt instance backup policy parameter in the request. + |
+Invalid beginAt instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400080 + |
+Instance password verify failed. + |
+Instance password verify failed. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400086 + |
+only master standby instance is support this action + |
+This operation is allowed only for master/standby instances. + |
+Operation not allowed. + |
+
400 + |
+111400087 + |
+the backup record status is err when restore this instance + |
+The restoration operation is allowed only when the backup task succeeded. + |
+Try again later or contact technical support. + |
+
400 + |
+111400094 + |
+the system is not support dcs job. + |
+The system does not support the background task function. + |
+Operation not allowed. + |
+
400 + |
+111400095 + |
+the system is not support backup and restore. + |
+The system does not support the backup and restoration function. + |
+Operation not allowed. + |
+
400 + |
+111400096 + |
+the instance is backuping. + |
+Backing up the instance... Please try again later. + |
+Try again later. + |
+
400 + |
+111400097 + |
+the instance is restoring. + |
+Restoring the instance... Please try again later. + |
+Try again later. + |
+
400 + |
+111400098 + |
+The value of the remark parameter must be 0 to 128 characters in length. + |
+The value of the remark parameter must be 0 to 128 characters in length. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400099 + |
+DCS instances in the Creating, Starting, Stopping, or Restarting state cannot be deleted. + |
+DCS instances in the Creating, Starting, Stopping, or Restarting state cannot be deleted. + |
+Try again later. + |
+
400 + |
+111400100 + |
+The number of instance IDs in an instances array cannot exceed 50. + |
+The number of instance IDs in an instances array cannot exceed 50. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400102 + |
+The system is not support resize. + |
+Scale-up is not supported. + |
+Operation not allowed. + |
+
400 + |
+111400103 + |
+The system is not support resize. + |
+The capacity to which the instance is scaled up must be greater than the original capacity. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400104 + |
+The DCS instance is recovering from an internal fault. Please try again later or contact customer service. + |
+The DCS instance is recovering from an internal fault. Please try again later or contact customer service. + |
+Try again later or contact technical support. + |
+
400 + |
+111400105 + |
+The value of reserved-memory cannot be greater than the free memory size of this DCS instance. + |
+The value of reserved-memory cannot be greater than the free memory size of this DCS instance. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400106 + |
+The value of maintain time illegal. + |
+Invalid maintenance time window. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400107 + |
+The instance exists for unpaid sacle up orders. Please process non payment orders first. + |
+This instance has unpaid scale-up orders. Please process the orders before continuing. + |
+Process unpaid orders before continuing. + |
+
400 + |
+111400108 + |
+The Instance exists for processing sacle up order. Please try again later. + |
+Scaling up the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400111 + |
+the instance is restarting. + |
+Restarting the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400113 + |
+the instance is extending. + |
+Scaling up the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400114 + |
+the instance is configuring. + |
+Modifying instance configuration... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400115 + |
+the instance is changing the password. + |
+The password is being changed. Try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400116 + |
+the instance is upgrading. + |
+Upgrading the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400117 + |
+the instance is rollbacking the version. + |
+Rolling back the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400118 + |
+the instance is creating. + |
+Creating the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400119 + |
+Query Bill Sample failed + |
+The instance does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400120 + |
+the instance is Freezing. + |
+Freezing the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+111400800 + |
+Invalid {0} in the request. + |
+Invalid {0} in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400843 + |
+The no_password_access parameter is missing or its value is invalid. + |
+The no_password_access parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400844 + |
+The access_user parameter is missing or its value is invalid. + |
+The access_user parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400845 + |
+The password parameter is missing or its value is invalid. + |
+The password parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400849 + |
+The request parameter new_password should not exist. + |
+The request parameter new_password should not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+111400850 + |
+This operation is not supported when Password-Free Access is enabled for the instance. + |
+This operation is not supported when Password-Free Access is enabled for the instance. + |
+Reset the instance password. + |
+
400 + |
+DCS. 4855 + |
+Master standby swap is not supported. + |
+Master/standby switchover is not supported. + |
+Operation not allowed. + |
+
400 + |
+DCS.4002 + |
+Invalid project ID format. + |
+Invalid project ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4004 + |
+Empty request body. + |
+Empty request body. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4005 + |
+The message body contains invalid characters or is not in JSON format. + |
+The message body contains invalid characters or is not in JSON format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4006 + |
+The selected cache engine type is not supported. + |
+The selected cache engine type is not supported. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4007 + |
+Instance type is not supported. + |
+Instance type is not supported. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4008 + |
+The selected cache engine version is not supported. + |
+The selected cache engine version is not supported. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4009 + |
+Invalid product ID in the request. + |
+Invalid product ID in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4010 + |
+Invalid DCS instance name. The name must be 4 to 64 characters in length. Only letters (case-insensitive), digits, underscores (_) ,and hyphens (-) are allowed. + |
+Invalid DCS instance name. The name must be 4 to 64 characters in length. Only letters (case-insensitive), digits, underscores (_) ,and hyphens (-) are allowed. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4011 + |
+DCS instance description cannot exceed 1024 characters. + |
+DCS instance description cannot exceed 1024 characters. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4012 + |
+Invalid capacity parameter in the request. + |
+Invalid capacity parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4013 + |
+Invalid vpc_id in the request. + |
+Invalid vpc_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4014 + |
+Invalid security_group_id in the request. + |
+Invalid security_group_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4016 + |
+Invalid subnet_id in the request. + |
+Invalid subnet_id in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4017 + |
+This DCS instance job task is still running. + |
+This DCS instance job task is still running. + |
+Try again later. + |
+
400 + |
+DCS.4018 + |
+This subnet must exist in the VPC. + |
+This subnet must exist in the VPC. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4019 + |
+The password does not meet complexity requirements. + |
+The password does not meet complexity requirements. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4020 + |
+DHCP must be enabled for this subnet. + |
+DHCP must be enabled for this subnet. + |
+Check whether DHCP has been enabled. + |
+
400 + |
+DCS.4021 + |
+The isAutoRenew parameter in the request must be either 0 or 1. + |
+The isAutoRenew parameter in the request must be either 0 or 1. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4022 + |
+Engine does not match the product id. + |
+The cache engine does not match the product ID. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4025 + |
+The end time must be after the start time. + |
+The end time must be after the start time. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4026 + |
+This operation is not allowed when the DCS instance is in the current state. + |
+This operation is not allowed when the DCS instance is in the current state. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4027 + |
+This operation is not supported on this node. + |
+This operation is not supported on this node. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4028 + |
+The diagnosis time range is max 10 minutes. + |
+The diagnosis time range is max 10 minutes. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4030 + |
+The start time must be within the last seven days. + |
+The start time must be within the last seven days. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4031 + |
+The start time must be before than the current server time. + |
+The start time must be before than the current server time. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4033 + |
+The start time must be after the instance start time. + |
+The start time must be after the instance start time. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4035 + |
+DCS instance quota of the tenant is insufficient. + |
+DCS instance quota of the tenant is insufficient. + |
+Contact technical support. + |
+
400 + |
+DCS.4036 + |
+Memory quota of the tenant is insufficient. + |
+Memory quota of the tenant is insufficient. + |
+Contact technical support. + |
+
400 + |
+DCS.4037 + |
+The instanceParams parameter in the request contains invalid characters or is not in JSON format. + |
+The instanceParams parameter in the request contains invalid characters or is not in JSON format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4038 + |
+The periodNum parameter in the request must be an integer. + |
+The periodNum parameter in the request must be an integer. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4039 + |
+The quota limit has been reached. + |
+The quota limit has been reached. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4042 + |
+This AZ does not exist. + |
+This AZ does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4045 + |
+This DCS instance is already unfrozen. + |
+This DCS instance is already unfrozen. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4046 + |
+This security group does not exist. + |
+This security group does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4047 + |
+The periodType parameter in the request must be either 2 or 3. + |
+The periodType parameter in the request must be either 2 or 3. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4048 + |
+The security group must have both outbound and inbound rules with protocols set to ANY. + |
+The security group must have both outbound and inbound rules with protocols set to ANY. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4049 + |
+The instance status is not running. + |
+The instance status is not running. + |
+Contact technical support. + |
+
400 + |
+DCS.4052 + |
+Customized domain name verification failed. + |
+Customized domain name verification failed. + |
+Check whether the customized domain name parameters are valid. + |
+
400 + |
+DCS.4053 + |
+the upgrade instance version equals to current version. + |
+The targetVersion parameter in the request cannot be the same as the source version. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4054 + |
+the selected available zone quota not enough. + |
+DCS resources in the selected AZ have been sold out. + |
+Select another AZ or contact technical support. + |
+
400 + |
+DCS.4060 + |
+This DCS instance name already exists. + |
+This DCS instance name already exists. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4061 + |
+Invalid instance ID format. + |
+Invalid instance ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4062 + |
+Invalid {0} parameter in the request. + |
+Invalid {0} parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4063 + |
+Invalid {0} parameter in the request. + |
+Invalid {0} parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4064 + |
+The action parameter in the request must be start, stop, or restart. + |
+The action parameter in the request must be start, stop, or restart. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4065 + |
+The instances parameter in the request cannot be a null value or left unspecified. + |
+The instances parameter in the request cannot be a null value or left unspecified. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4066 + |
+Invalid value of the configure parameter {0}. + |
+Invalid value of the configure parameter {0}. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4067 + |
+The available_zones parameter in the request must an array that contains only one AZ ID. + |
+The available_zones parameter in the request must an array that contains only one AZ ID. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4068 + |
+This VPC does not exist. + |
+This VPC does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4070 + |
+Invalid task ID format. + |
+Invalid task ID format. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4072 + |
+Invalid saveDays instance backup policy parameter in the request. + |
+Invalid saveDays instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4073 + |
+Invalid backupType instance backup policy parameter in the request. + |
+Invalid backupType instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4074 + |
+Invalid periodType instance backup policy parameter in the request. + |
+Invalid periodType instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4075 + |
+Invalid backupAt instance backup policy parameter in the request. + |
+Invalid backupAt instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4076 + |
+Invalid beginAt instance backup policy parameter in the request. + |
+Invalid beginAt instance backup policy parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4080 + |
+Instance password verify failed. + |
+Instance password verify failed. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4086 + |
+only master standby instance is support this action + |
+This operation is allowed only for master/standby instances. + |
+Operation not allowed. + |
+
400 + |
+DCS.4087 + |
+the backup record status is err when restore this instance + |
+The restoration operation is allowed only when the backup task succeeded. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4094 + |
+the system is not support dcs job. + |
+The system does not support the background task function. + |
+Operation not allowed. + |
+
400 + |
+DCS.4095 + |
+the system is not support backup and restore. + |
+The system does not support the backup and restoration function. + |
+Operation not allowed. + |
+
400 + |
+DCS.4096 + |
+the instance is backuping. + |
+Backing up the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4097 + |
+the instance is restoring. + |
+Restoring the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4098 + |
+The value of the remark parameter must be 0 to 128 characters in length. + |
+The value of the remark parameter must be 0 to 128 characters in length. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4099 + |
+DCS instances in the Creating, Starting, Stopping, or Restarting state cannot be deleted. + |
+DCS instances in the Creating, Starting, Stopping, or Restarting state cannot be deleted. + |
+Try again later. + |
+
400 + |
+DCS.4100 + |
+The number of instance IDs in an instances array cannot exceed 50. + |
+The number of instance IDs in an instances array cannot exceed 50. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4102 + |
+The system is not support resize. + |
+The system is not support resize. + |
+Operation not allowed. + |
+
400 + |
+DCS.4103 + |
+The system is not support resize. + |
+The system is not support resize. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4104 + |
+The DCS instance is recovering from an internal fault. Please try again later or contact customer service. + |
+The DCS instance is recovering from an internal fault. Please try again later or contact customer service. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4105 + |
+The value of reserved-memory cannot be greater than the free memory size of this DCS instance. + |
+The value of reserved-memory cannot be greater than the free memory size of this DCS instance. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4106 + |
+The value of maintain time illegal. + |
+The value of maintain time illegal. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4107 + |
+The instance exists for unpaid sacle up orders. Please process non payment orders first. + |
+The instance exists for unpaid sacle up orders. Please process non payment orders first. + |
+Process unpaid orders before continuing. + |
+
400 + |
+DCS.4108 + |
+The Instance exists for processing sacle up order. Please try again later. + |
+The Instance exists for processing sacle up order. Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4111 + |
+the instance is restarting. + |
+Restarting the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4113 + |
+the instance is extending. + |
+Scaling up the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4114 + |
+the instance is configuring. + |
+Modifying instance configuration... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4115 + |
+the instance is changing the password. + |
+The password is being changed. Try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4116 + |
+the instance is upgrading. + |
+Upgrading the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4117 + |
+the instance is rollbacking the version. + |
+Rolling back the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4118 + |
+the instance is creating. + |
+Creating the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4119 + |
+Query Bill Sample failed + |
+The instance does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4120 + |
+the instance is Freezing. + |
+Freezing the instance... Please try again later. + |
+Try again later or contact technical support. + |
+
400 + |
+DCS.4200 + |
+Instance type cannot be changed. + |
+Instance type cannot be changed. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4253 + |
+All replicas have a priority of 0. + |
+All replicas have a priority of 0. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4300 + |
+Client IP transparent transmission is being processed, please do not submit it repeatedly. + |
+Client IP transparent transmission is being processed, please do not submit it repeatedly. + |
+Client IP pass-through is being enabled or disabled. + |
+
400 + |
+DCS.4800 + |
+Invalid {0} in the request. + |
+Invalid {0} in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4819 + |
+The first_scan_at parameter is invalid. Its must be ISO format utc date-time. The time must be later than the current time. + |
+first_scan_at must be ISO format utc date-time. The time must be later than the current time. + |
+Check whether the request parameters are valid. Example of the ISO UTC format: "2021-08-18T07:33:00.000Z" + |
+
400 + |
+DCS.4820 + |
+The interval parameter is invalid. must Greater than or equal to 0. + |
+The value of interval is invalid. It must be greater than or equal to 0 seconds. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4821 + |
+The timeout parameter is invalid. Its must Greater than or equal to interval * 2, if interval is 0, timeout must Greater than 1 second. + |
+The value of the timeout parameter is invalid. The value must be greater than 0 and at least twice the scanning interval. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4822 + |
+The scan_keys_count parameter is invalid. Its must Greater than or equal to 10, and Less than or equal to 1000. + |
+The value of the scan_keys_count parameter is invalid. The value range is from 10 to 1000. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4838 + |
+Do not support feature client ip transparent transmission. + |
+Client IP pass-through is not supported. + |
+Client IP pass-through is not enabled. + |
+
400 + |
+DCS.4839 + |
+Do not support feature public dns. + |
+Public domain name resolution is not supported. + |
+Public domain name resolution is not enabled. + |
+
400 + |
+DCS.4840 + |
+Do not support feature dns. + |
+Domain name resolution is not supported. + |
+Domain name resolution is disabled. + |
+
400 + |
+DCS.4841 + |
+Instance do not support client ip transparent transmission. + |
+The instance does not support client IP pass-through. + |
+The instance version does not support client IP pass-through. + |
+
400 + |
+DCS.4843 + |
+The no_password_access parameter is missing or its value is invalid. + |
+The no_password_access parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4844 + |
+The access_user parameter is missing or its value is invalid. + |
+The access_user parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4845 + |
+The password parameter is missing or its value is invalid. + |
+The password parameter is missing or its value is invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4846 + |
+Client ip transparent transmission is already closed,please do not repeat the operation. + |
+Client IP pass-through is already disabled. + |
+Client IP pass-through is disabled. + |
+
400 + |
+DCS.4847 + |
+Client ip transparent transmission is already opened,please do not repeat the operation. + |
+Client IP pass-through is already enabled. + |
+Client IP pass-through is enabled. + |
+
400 + |
+DCS.4848 + |
+Client Management is not supported. + |
+Session management is not supported. + |
+Operation not allowed. + |
+
400 + |
+DCS.4849 + |
+The request parameter new_password should not exist. + |
+The request parameter new_password should not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4850 + |
+This operation is not supported when Password-Free Access is enabled for the instance. + |
+This operation is not supported when Password-Free Access is enabled for the instance. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4875 + |
+Create replication number exceed max number limit. + |
+The maximum number of replicas that can be created has been reached. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4879 + |
+r/w instance have only one repl can not remove ip from dns + |
+The IP address cannot be removed because a master/standby instance must have at least one replica IP address. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4911 + |
+The network ip insufficient. + |
+The subnet does not have sufficient IP addresses. + |
+Check the quantity of IP addresses in the subnet. Release IP addresses that are no longer used, or use another subnet that has sufficient IP addresses. + |
+
400 + |
+DCS.4918 + |
+Instance bigkey analyze is running. + |
+The big key analysis is in progress. + |
+Try again later. + |
+
400 + |
+DCS.4919 + |
+Does not support bigkey analyze. + |
+Big key analysis is not supported. + |
+Operation not allowed. + |
+
400 + |
+DCS.4927 + |
+The param spec_code is invalid + |
+The param spec_code is invalid + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4930 + |
+The request param node_list is invalid + |
+Invalid node_list parameter in the request. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4931 + |
+Node is not replica, can't delete. + |
+The replica cannot be deleted because it is not a read-only replica. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4935 + |
+Only one slave replication has dns ip, can not delete + |
+The replica cannot be deleted because at least one DNS IP address must be retained. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4936 + |
+The master node cannot be deleted + |
+The master node cannot be deleted. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4937 + |
+Only has one slave node,can not delete + |
+Retain at least one replica in addition to the master. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4939 + |
+The param slave_priority_weight is invalid. + |
+Invalid slave_priority_weight parameter in the parameter. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4941 + |
+The hotkey id does not exist. + |
+The hot key analysis task ID does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4942 + |
+The bigkey id does not exist. + |
+The big key analysis task ID does not exist. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4957 + |
+This operation is not allowed when the task is in the current state. + |
+This operation is not allowed when the task is in the current state. + |
+Only tasks in the successful state support this operation. + |
+
400 + |
+DCS.4998 + |
+Domain names are up to date. + |
+The domain name has already been updated. + |
+The domain name has already been updated. + |
+
400 + |
+DCS.4999 + |
+Do not support feature update domain name. + |
+Domain name update is not supported. + |
+Domain name optimization is not enabled. + |
+
401 + |
+111401001 + |
+Invalid token. + |
+Invalid token. + |
+Check whether the request parameters are valid. + |
+
401 + |
+111401002 + |
+Token expired. + |
+Token expired. + |
+Check whether the request parameters are valid. + |
+
401 + |
+111401003 + |
+No token in the request. + |
+No token in the request. + |
+Check whether the request parameters are valid. + |
+
401 + |
+111401004 + |
+Project ID does not match the token. + |
+Project ID does not match the token. + |
+Check whether the request parameters are valid. + |
+
401 + |
+DCS.1001 + |
+Invalid token. + |
+Invalid token. + |
+Check whether the request parameters are valid. + |
+
401 + |
+DCS.1002 + |
+Token expired. + |
+Token expired. + |
+Check whether the request parameters are valid. + |
+
401 + |
+DCS.1003 + |
+No token in the request. + |
+No token in the request. + |
+Check whether the request parameters are valid. + |
+
401 + |
+DCS.1004 + |
+Project ID does not match the token. + |
+Project ID does not match the token. + |
+Check whether the request parameters are valid. + |
+
403 + |
+111403002 + |
+This tenant has read permission only and cannot perform this operation. + |
+This tenant has read permission only and cannot perform this operation. + |
+Check whether the request parameters are valid. + |
+
403 + |
+111403003 + |
+This role does not have the permission to perform this operation. + |
+This role does not have the permission to perform this operation. + |
+Check whether the request parameters are valid. + |
+
403 + |
+DCS.2003 + |
+This role does not have the permission to perform this operation. + |
+This role does not have the permission to perform this operation. + |
+Check whether the request parameters are valid. + |
+
403 + |
+DCS.2007 + |
+Policy does not allow {} to be performed. + |
+Insufficient permissions. + |
+Check whether the account has the required operation permissions. + |
+
403 + |
+DCS.3002 + |
+This tenant has read permission only and cannot perform this operation. + |
+This tenant has read permission only and cannot perform this operation. + |
+Check whether the request parameters are valid. + |
+
403 + |
+DCS.3003 + |
+This role does not have the permission to perform this operation. + |
+This role does not have the permission to perform this operation. + |
+Check whether the request parameters are valid. + |
+
404 + |
+111404001 + |
+The requested URL does not exist. + |
+The requested URL does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+111404022 + |
+This DCS instance does not exist. + |
+This DCS instance does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+111404023 + |
+This DCS order does not exist. + |
+This DCS order does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+DCS.3022 + |
+This DCS instance does not exist. + |
+This DCS instance does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+DCS.4001 + |
+The requested URL does not exist. + |
+The requested URL does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+DCS.4023 + |
+This DCS order does not exist. + |
+This DCS order does not exist. + |
+Check whether the request parameters are valid. + |
+
404 + |
+DCS.5101 + |
+Create agency failed. + |
+Create agency failed. + |
+Try again later or contact technical support. + |
+
405 + |
+111405001 + |
+This request method is not allowed. + |
+This request method is not allowed. + |
+Check whether the request parameters are valid. + |
+
405 + |
+DCS.5001 + |
+This request method is not allowed. + |
+This request method is not allowed. + |
+Check whether the request parameters are valid. + |
+
409 + |
+DCS.4050 + |
+Domain name already exists. + |
+Domain name already exists. + |
+Please change the user-defined domain name and try again. + |
+
409 + |
+DCS.4051 + |
+The dns name history already exists in the instance. + |
+The dns name history already exists in the instance. + |
+Please release the existing histoical domain names. + |
+
500 + |
+111400069 + |
+Another user is modifying configuration parameters of the DCS instance. Please try again later. + |
+Another user is modifying configuration parameters of the DCS instance. Please try again later. + |
+Try again later. + |
+
500 + |
+111400101 + |
+Delete instance backup file failed. + |
+The instance backup file fails to be deleted. + |
+Contact technical support. + |
+
500 + |
+111400842 + |
+job execution status failed. + |
+Failed to run the task. + |
+Contact technical support. + |
+
500 + |
+111500000 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500006 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500017 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500020 + |
+vm add port fail + |
+Failed to add a port for the VM. + |
+Contact technical support. + |
+
500 + |
+111500024 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500031 + |
+create instance fail + |
+Failed to create a DCS instance. + |
+Contact technical support. + |
+
500 + |
+111500032 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500037 + |
+query order info fail + |
+query order info fail + |
+Try again later or contact technical support. + |
+
500 + |
+111500041 + |
+No resource tenant available. + |
+No resource tenant available. + |
+Try again later or contact technical support. + |
+
500 + |
+111500044 + |
+update resource status fail + |
+Failed to update the status of the instance. + |
+Try again later or contact technical support. + |
+
500 + |
+111500053 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500054 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500070 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500071 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500077 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500078 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500079 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500082 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500083 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500085 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500090 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500091 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500092 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500095 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+111500104 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+DCS. 5094 + |
+Master standby swap failed. + |
+Master/standby switchover failed. + |
+Contact technical support. + |
+
500 + |
+DCS.4069 + |
+Another user is modifying configuration parameters of the DCS instance. Please try again later. + |
+Another user is modifying configuration parameters of the DCS instance. Please try again later. + |
+Try again later. + |
+
500 + |
+DCS.4101 + |
+Delete instance backup file failed. + |
+The instance backup file fails to be deleted. + |
+Contact technical support. + |
+
500 + |
+DCS.4842 + |
+job execution status failed. + |
+Failed to run the task. + |
+Contact technical support. + |
+
500 + |
+DCS.5000 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+DCS.5006 + |
+Submit job failed. + |
+Submission failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5017 + |
+Failed to save instance information. + |
+Failed to save the instance information. + |
+Contact technical support. + |
+
500 + |
+DCS.5020 + |
+vm add port fail + |
+Failed to add a port for the VM. + |
+Contact technical support. + |
+
500 + |
+DCS.5024 + |
+Query instance failed. + |
+Failed to query the instance. + |
+Contact technical support. + |
+
500 + |
+DCS.5031 + |
+create instance fail + |
+Failed to create a DCS instance. + |
+Contact technical support. + |
+
500 + |
+DCS.5032 + |
+Failed to create order. + |
+Failed to create the order. + |
+Contact technical support. + |
+
500 + |
+DCS.5037 + |
+query order info fail + |
+Failed to query the order details. + |
+Contact technical support. + |
+
500 + |
+DCS.5039 + |
+Obtain IAM service failed. + |
+Obtain IAM service failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5040 + |
+Call IAM API for querying agency failed. + |
+Call IAM API for querying agency failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5041 + |
+No resource tenant available. + |
+No resource tenant available. + |
+Contact technical support. + |
+
500 + |
+DCS.5042 + |
+Call IAM API for creating agency failed. + |
+Call IAM API for creating agency failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5043 + |
+Call IAM API for querying permission failed. + |
+Call IAM API for querying permission failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5044 + |
+update resource status fail + |
+Failed to update the status of the instance. + |
+Contact technical support. + |
+
500 + |
+DCS.5045 + |
+Call IAM API for adding project-level agency permissions failed. + |
+Call IAM API for adding project-level agency permissions failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5053 + |
+Instance node not found. + |
+Instance node not found. + |
+Contact technical support. + |
+
500 + |
+DCS.5054 + |
+Failed to generate password. + |
+Failed to generate a password. + |
+Contact technical support. + |
+
500 + |
+DCS.5070 + |
+Internal service error. + |
+Internal service error. + |
+Contact technical support. + |
+
500 + |
+DCS.5071 + |
+Failed to create instance backup strategy. + |
+Failed to create the instance backup policy. + |
+Contact technical support. + |
+
500 + |
+DCS.5077 + |
+Query instance failed. + |
+Failed to query the instance backup policy. + |
+Contact technical support. + |
+
500 + |
+DCS.5078 + |
+Query backup record failed. + |
+Failed to query the backup record. + |
+Contact technical support. + |
+
500 + |
+DCS.5079 + |
+Query group node failed. + |
+Failed to query the restoration record. + |
+Contact technical support. + |
+
500 + |
+DCS.5081 + |
+The resource tenant does not exist. + |
+The resource tenant does not exist. + |
+Contact technical support. + |
+
500 + |
+DCS.5082 + |
+Failed to register resource tenant backup user. + |
+Failed to register the resource tenant backup user. + |
+Contact technical support. + |
+
500 + |
+DCS.5083 + |
+Failed to save backup user. + |
+The backup user fails to be saved. + |
+Contact technical support. + |
+
500 + |
+DCS.5085 + |
+Failed to update backup strategy. + |
+The backup policy fails to be updated. + |
+Contact technical support. + |
+
500 + |
+DCS.5090 + |
+Failed to save backup information. + |
+The backup information fails to be saved. + |
+Contact technical support. + |
+
500 + |
+DCS.5091 + |
+Script execution failed. + |
+Script execution failed. + |
+Contact technical support. + |
+
500 + |
+DCS.5092 + |
+Failed to save and restore data. + |
+Failed to save and restore data. + |
+Contact technical support. + |
+
500 + |
+DCS.5095 + |
+The script execution failed and needs to be retried. + |
+Script execution failed and needs to be retried. + |
+Contact technical support. + |
+
500 + |
+DCS.5104 + |
+Failed to modify order. + |
+Failed to modify the order. + |
+Contact technical support. + |
+
400 + |
+DCS.4202 + |
+ssl request params are invalid. + |
+ssl request params are invalid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.4933 + |
+The param available_zones is invalid. + |
+Check available_zones are valid. + |
+Check whether the request parameters are valid. + |
+
400 + |
+DCS.5050 + |
+Shared VPCs are not supported. + |
+Not Supported shared vpc. + |
+Check whether the request parameters are valid. + |
+
+
+
+
+
This API is used to query the AZ information of the current region.
+GET /v2/available-zones
+None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
region_id + |
+String + |
+Region ID. + |
+
available_zones + |
+Array of AvailableZones objects + |
+Array of AZs. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
code + |
+String + |
+AZ code. + |
+
port + |
+String + |
+AZ port. + |
+
name + |
+String + |
+AZ name. + |
+
id + |
+String + |
+AZ ID. + |
+
resource_availability + |
+String + |
+Whether the AZ has available resources. +
Enumeration values: +
|
+
GET https://{dcs_endpoint}/v2/available-zones+
Status code: 200
+The query is successful.
+{ + "region_id" : "region00", + "available_zones" : [ { + "code" : "region01", + "port" : "8403", + "name" : "AZ 1.", + "id" : "effdcbc7d4d64a02aa1fa26b42f56533", + "resource_availability" : "true" + }, { + "code" : "region02", + "port" : "8404", + "name" : "AZ 2.", + "id" : "a0865121f83b41cbafce65930a22a6e8", + "resource_availability" : "true" + }, { + "code" : "region03", + "port" : "8408", + "name" : "AZ 3.", + "id" : "2dcb154ac2724a6d92e9bcc859657c1e", + "resource_availability" : "true" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The query is successful. + |
+
See Error Codes.
+This API is used to query background tasks.
+GET /v2/{project_id}/instances/{instance_id}/tasks
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
start_time + |
+No + |
+String + |
+Query start time (UTC). Format: yyyyMMddHHmmss, for example, 20200609160000. + |
+
end_time + |
+No + |
+String + |
+Query end time (UTC). Format: yyyyMMddHHmmss, for example, 20200617155959. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_count + |
+String + |
+Number of tasks. + |
+
tasks + |
+Array of SingleBackgroundTask objects + |
+Task details array. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Background task ID. + |
+
name + |
+String + |
+Background task name. The options are as follows: +EXTEND: modifying specifications +BindEip: enabling public access +UnBindEip: disabling public access +AddReplica: adding replicas +DelReplica: deleting replicas +AddWhitelist: configuring an IP whitelist +UpdatePort: changing the port +RemoveIpFromDns: removing IP addresses +masterStandbySwapJob: master/standby switchover +modify: changing the password + |
+
details + |
+DetailsBody object + |
+Details. + |
+
user_name + |
+String + |
+Username. + |
+
user_id + |
+String + |
+User ID. + |
+
params + |
+String + |
+Task parameters. + |
+
status + |
+String + |
+Task status. + |
+
created_at + |
+String + |
+Task start time, in the format 2020-06-17T07:38:42.503Z. + |
+
updated_at + |
+String + |
+Task end time, in the format 2020-06-17T07:38:42.503Z. + |
+
enable_show + |
+Boolean + |
+Task details that can be expanded. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
old_capacity + |
+String + |
+Capacity before the modification. This parameter has a value only when the specifications are modified. + |
+
new_capacity + |
+String + |
+Capacity after the modification. This parameter has a value only when the specifications are modified. + |
+
enable_public_ip + |
+Boolean + |
+Whether to enable public access. This parameter has a value only when public access is enabled. + |
+
public_ip_id + |
+String + |
+ID of the IP address used for public access. This parameter has a value only when public access is enabled. + |
+
public_ip_address + |
+String + |
+IP address used for public access. This parameter has a value only when public access is enabled. + |
+
enable_ssl + |
+Boolean + |
+Whether to enable SSL. This parameter has a value only when SSL is enabled. + |
+
old_cache_mode + |
+String + |
+Cache type before the modification. This parameter has a value only when the specifications are modified. + |
+
new_cache_mode + |
+String + |
+Cache type after the modification. This parameter has a value only when the specifications are modified. + |
+
old_resource_spec_code + |
+String + |
+Specification parameter before the modification. This parameter has a value only when the specifications are modified. + |
+
new_resource_spec_code + |
+String + |
+Specification parameter after the modification. This parameter has a value only when the specifications are modified. + |
+
old_replica_num + |
+Integer + |
+Number of replicas before the modification. This parameter has a value only when the specifications are modified. + |
+
new_replica_num + |
+Integer + |
+Number of replicas after the modification. This parameter has a value only when the specifications are modified. + |
+
old_cache_type + |
+String + |
+Cache type before the modification. This parameter has a value only when the specifications are modified. + |
+
new_cache_type + |
+String + |
+Specification type after the modification. This parameter has a value only when the specifications are modified. + |
+
replica_ip + |
+String + |
+Replica IP address. + |
+
replica_az + |
+String + |
+AZ where the replica is in. + |
+
group_name + |
+String + |
+Group name. + |
+
old_port + |
+Integer + |
+Old port. + |
+
new_port + |
+Integer + |
+New port. + |
+
is_only_adjust_charging + |
+Boolean + |
+Indicates whether to only change the billing mode. + |
+
account_name + |
+String + |
+Account name. + |
+
source_ip + |
+String + |
+Source IP address. + |
+
target_ip + |
+String + |
+Target IP address. + |
+
node_name + |
+String + |
+Node information. + |
+
rename_commands + |
+Array of strings + |
+Renamed command. + |
+
updated_config_length + |
+Integer + |
+Length of the updated configuration item. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/tasks?offset=0&limit=10&begin_time=20200609160000&end_time=20200617155959+
Status code: 200
+Background tasks listed successfully.
+{ + "task_count" : 1, + "tasks" : [ { + "id" : "8abf6e1e72c12e7c0172c15b508500aa", + "name" : "EXTEND", + "user_name" : "dcs_000_02", + "user_id" : "d53977d1adfb49c5b025ba7d33a13fd7", + "details" : { + "old_cache_mode" : "single", + "new_cache_mode" : "single", + "old_capacity" : "0.125", + "new_capacity" : "0.25", + "old_resource_spec_code" : "redis.single.xu1.tiny.125", + "new_resource_spec_code" : "redis.single.xu1.tiny.256", + "old_replica_num" : 1, + "new_replica_num" : 1, + "old_cache_type" : "single", + "new_cache_type" : "single", + "replica_ip" : "192.192.0.1", + "replica_az" : "az01", + "group_name" : "group1", + "old_port" : 6379, + "new_port" : 6379, + "is_only_adjust_charging" : false, + "account_name" : "account1", + "source_ip" : "192.192.0.0", + "target_ip" : "192.192.0.1", + "node_name" : "node1", + "rename_commands" : [ ], + "updated_config_length" : 0 + }, + "enable_show" : false, + "status" : "SUCCESS", + "created_at" : "2020-06-17T08:18:06.597Z", + "updated_at" : "2020-06-17T08:18:10.106Z" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Background tasks listed successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to obtain the download links of backup files.
+POST /v2/{project_id}/instances/{instance_id}/backups/{backup_id}/links
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
backup_id + |
+Yes + |
+String + |
+Backup ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
expiration + |
+Yes + |
+Integer + |
+Validity period (in seconds) of a URL. The value range is from 5 minutes to 24 hours. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
file_path + |
+String + |
+Paths of files in the OBS bucket. + |
+
bucket_name + |
+String + |
+Name of the OBS bucket. + |
+
links + |
+Array of LinksItem objects + |
+Collection of URLs for downloading backup files. A maximum of 64 links are allowed. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
file_name + |
+String + |
+Backup file name. + |
+
link + |
+String + |
+URL for downloading backup files. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Obtaining the download links of backup files with 1800s validity
+POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups/{backup_id}/links + +{ + "expiration" : 1800 +}+
Status code: 200
+Successfully obtained backup file URLs.
+{ + "file_path" : "42489641-23c4-4855-bc89-befc85e2b7f7/ddfe5f66-a965-43ff-aec7-f3b489dc071b/", + "bucket_name" : "bucket5da9cf3bfabc4cae9023695b934e5e2b", + "links" : [ { + "file_name" : "redis_192.168.63.250_6379_10923-16383_20190820211816.rdb", + "link" : "https://bucket5da9cf3bfabc4cae9023695b934e5e2b.{obs_endpoint}:443/42489641-23c4-4855-bc89-befc85e2b7f7/ddfe5f66-a965-43ff-aec7-f3b489dc071b/redis_192.168.63.250_6379_10923-16383_20190820211816.rdb?AWSAccessKeyId=VD8CEQNG8VMQODUAAM0D&Expires=1566308915&Signature=s3I%2BrLbo%2BFZw%2BUsjVere%2FOQdKEg%3D" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Successfully obtained backup file URLs. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the backup records of a specific DCS instance.
+GET /v2/{project_id}/instances/{instance_id}/backups
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
begin_time + |
+No + |
+String + |
+Query start time (UTC). Format: yyyyMMddHHmmss, for example, 20170718235959. + |
+
end_time + |
+No + |
+String + |
+Query end time (UTC). Format: yyyyMMddHHmmss, for example, 20170718235959. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
total_num + |
+Integer + |
+Number of returned records. + |
+
backup_record_response + |
+Array of BackupRecordResponse objects + |
+Array of the backup details. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
backup_id + |
+String + |
+Backup ID. + |
+
period + |
+String + |
+Backup execution time. + |
+
backup_name + |
+String + |
+Backup record name. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
size + |
+Long + |
+Size of the backup file (byte). + |
+
backup_type + |
+String + |
+Backup type. +
Enumeration values: +
|
+
created_at + |
+String + |
+Time when the backup task is created. + |
+
updated_at + |
+String + |
+Time at which DCS instance backup is completed. + |
+
progress + |
+String + |
+Backup progress. + |
+
error_code + |
+String + |
+Error code displayed for a backup failure. +
|
+
remark + |
+String + |
+Description of DCS instance backup. + |
+
status + |
+String + |
+Backup status. The options are as follows: +
Enumeration values: +
|
+
is_support_restore + |
+String + |
+Whether restoration is supported. Options: TRUE and FALSE. + |
+
execution_at + |
+String + |
+Execution time. + |
+
backup_format + |
+String + |
+Backup format. +Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups?offset={offset}&limit={limit}&beginTime={begin_Time}&end_time={end_Time}+
Status code: 200
+DCS instance backup records queried successfully.
+{ + "total_num" : 1, + "backup_record_response" : [ { + "period" : { }, + "backup_type" : "manual", + "created_at" : "2019-05-10T08:31:16.166Z", + "remark" : "001", + "is_support_restore" : "TRUE", + "backup_id" : "4631832a-14c6-45b0-a0b3-3abd8f591ad1", + "backup_name" : "backup_20190510163116", + "instance_id" : "5560df16-cebf-4473-95c4-d1b573c16e79", + "size" : 880232, + "updated_at" : "2019-05-10T08:32:30.546Z", + "progress" : "100.00", + "error_code" : { }, + "status" : "succeed", + "execution_at" : "2019-05-11T08:31:16.166Z", + "backup_format" : "aof" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+DCS instance backup records queried successfully. + |
+
204 + |
+No DCS instance backup record is found. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the list of big key analysis tasks.
+GET /v2/{project_id}/instances/{instance_id}/bigkey-tasks
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
status + |
+No + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Instance ID. + |
+
count + |
+Integer + |
+Number of times that big keys are analyzed. + |
+
records + |
+Array of RecordsResponse objects + |
+List of big key analysis record. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Task execution record ID. (This ID corresponds to the task ID in the parameter for querying big key or hot key analysis details.) + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/bigkey-tasks+
Status code: 200
+Big key analysis records queried successfully.
+{ + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "count" : 1, + "records" : [ { + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "scan_type" : "manual", + "status" : "success", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4919", + "error_msg" : "Does not support bigkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Big key analysis records queried successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the parameter modification record list of an instance by keyword.
+GET /v2/{project_id}/instances/{instance_id}/config-histories
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be no less than 0. + |
+
limit + |
+No + |
+Integer + |
+Number of records displayed on each page. The minimum value is 1. The maximum value is 1000*. If this parameter is not specified, 10 records are displayed on each page by default. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
history_num + |
+Integer + |
+Number of instance parameter modification records. + |
+
histories + |
+Array of HistoryInfo objects + |
+Details of instance parameter modification records. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
history_id + |
+String + |
+Modification record ID. + |
+
type + |
+String + |
+Modification type. + |
+
created_at + |
+String + |
+Modification time. + |
+
status + |
+String + |
+Modification status. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/config-histories?offset=0&limit=10+
Status code: 200
+List of instance parameter modification records queried successfully.
+{ + "history_num" : 1, + "histories" : [ { + "history_id" : "4ae8507f-7992-40e2-9928-41ccf1db4bdc", + "type" : "config_param", + "created_at" : "2022-10-20T03:37:44.636Z", + "status" : "SUCCESS" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+List of instance parameter modification records queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query parameter templates of a tenant, and allows you to specify query criteria.
+GET /v2/{project_id}/config-templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+No + |
+String + |
+Parameter template name. Fuzzy search is supported. + |
+
type + |
+Yes + |
+String + |
+Template type. Options: +
Enumeration values: +
|
+
engine + |
+No + |
+String + |
+Cache engine: Redis. + |
+
engine_version + |
+No + |
+String + |
+Cache version. +If the cache engine is Redis, the value can be 3.0/4.0/5.0/6.0. + |
+
cache_mode + |
+No + |
+String + |
+DCS instance type. Options: +
|
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of records displayed on each page. The minimum value is 1. The maximum value is 1000*. If this parameter is not specified, 10 records are displayed on each page by default. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
template_num + |
+Integer + |
+Number of templates. + |
+
templates + |
+Array of ConfigTemplatesListInfo objects + |
+Template details array. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
template_id + |
+String + |
+Template ID. + |
+
cache_mode + |
+String + |
+DCS instance type. Options: +
|
+
description + |
+String + |
+Template description. + |
+
engine + |
+String + |
+Cache engine: Redis. + |
+
engine_version + |
+String + |
+Cache version. +If the cache engine is Redis, the value can be 3.0, 4.0, 5.0, or 6.0. + |
+
name + |
+String + |
+Template name. + |
+
product_type + |
+String + |
+Edition. Only the basic edition is supported. Value: generic. +Enumeration values: +
|
+
storage_type + |
+String + |
+Storage type. +Enumeration values: +
|
+
type + |
+String + |
+Template type. Options: +
Enumeration values: +
|
+
created_at + |
+String + |
+Time when the template is created. This parameter is valid only in custom parameter templates. The format is 2023-05-10T11:09:35.802Z. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error information. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/config-templates?type=sys&engine=Redis&engine_version=5.0&cache_mode=ha&offset=0&limit=10+
Status code: 200
+Parameter templates listed.
+{ + "template_num" : 1, + "templates" : [ { + "template_id" : "6", + "cache_mode" : "single", + "description" : null, + "engine" : "Redis", + "engine_version" : "4.0", + "name" : "Default-Redis-4.0-single-generic-DRAM", + "product_type" : "generic", + "storage_type" : "DRAM", + "type" : "sys" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "111400063", + "error_msg" : "Invalid {0} parameter in the request." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Parameter templates listed. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+Request rejected. + |
+
404 + |
+The requested resource could not be found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the configuration parameters of a DCS instance.
+GET /v2/{project_id}/instances/{instance_id}/configs
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
config_time + |
+String + |
+Time when the instance was operated on. For example, 2017-03-31T12:24:46.297Z. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
redis_config + |
+Array of QueryRedisConfig objects + |
+Array of configuration items of the DCS instance. + |
+
config_status + |
+String + |
+DCS instance status that is being modified or has been modified. Options: +
Enumeration values: +
|
+
status + |
+String + |
+Instance status. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
param_value + |
+String + |
+Configuration parameter value. + |
+
value_type + |
+String + |
+Type of the configuration parameter value. + |
+
value_range + |
+String + |
+Range of the configuration parameter value. + |
+
description + |
+String + |
+Description of the configuration item. + |
+
default_value + |
+String + |
+Default value of the configuration parameter. + |
+
param_name + |
+String + |
+Configuration parameter name. + |
+
param_id + |
+String + |
+Configuration parameter ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/configs+
Status code: 200
+Instance configuration parameters queried successfully.
+{ + "instance_id" : "50829e5a-a4fc-4c01-8651-80be8a491602", + "config_status" : "SUCCESS", + "config_time" : "2020-07-06T07:04:31.464Z", + "redis_config" : [ { + "param_id" : "1", + "param_name" : "timeout", + "description" : "Close the connection after a client is idle for N seconds (0 to disable)", + "param_value" : "101", + "value_range" : "0-7200", + "value_type" : "Interger", + "default_value" : "0" + } ], + "status" : "RUNNING" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Instance configuration parameters queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the list of diagnosis tasks of a specific DCS instance.
+GET /v2/{project_id}/instances/{instance_id}/diagnosis
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
limit + |
+No + |
+Integer + |
+Number of records displayed on each page. The minimum value is 1. The maximum value is 1000. If this parameter is not specified, 10 records are displayed on each page by default. + |
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
diagnosis_report_list + |
+Array of DiagnosisReportInfo objects + |
+Diagnosis reports. + |
+
total_num + |
+Integer + |
+Total number of diagnosis reports. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
report_id + |
+String + |
+Diagnosis report ID. + |
+
status + |
+String + |
+Diagnosis task status. +Enumeration values: +
|
+
begin_time + |
+String + |
+Start time of a diagnosis period. The format is 2017-03-31T12:24:46.297Z. + |
+
end_time + |
+String + |
+End time of a diagnosis period. The format is 2017-03-31T12:24:46.297Z. + |
+
created_at + |
+String + |
+Time when the diagnosis report is created. + |
+
node_num + |
+Integer + |
+Number of diagnosed nodes. + |
+
abnormal_item_sum + |
+Integer + |
+Total number of abnormal diagnosis items. + |
+
failed_item_sum + |
+Integer + |
+Total number of failed diagnosis items. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
None
+Status code: 200
+Instance diagnosis reports listed successfully.
+{ + "diagnosis_report_list" : [ { + "report_id" : "fb98e37a-3cd9-4c7a-96b1-d878266019e2", + "status" : "finished", + "begin_time" : "2021-04-15T06:02:00.000Z", + "end_time" : "2021-04-15T06:12:00.000Z", + "created_at" : "2021-04-15T06:12:06.641Z", + "abnormal_item_sum" : 2, + "failed_item_sum" : 0, + "node_num" : 2 + } ], + "total_num" : 1 +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Instance diagnosis reports listed successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the product flavor (parameter spec_code) required for configuring a new DCS instance. If no search criterion is specified, all product specifications will be queried by default.
+GET /v2/{project_id}/flavors
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
spec_code + |
+No + |
+String + |
+Product flavor. + |
+
cache_mode + |
+No + |
+String + |
+DCS instance type. Options: +
|
+
engine + |
+No + |
+String + |
+Cache engine. Options: +
|
+
engine_version + |
+No + |
+String + |
+Cache engine version. If the cache engine is Redis, the options are as follows: +
|
+
cpu_type + |
+No + |
+String + |
+CPU architecture. The options are as follows: +
Enumeration values: +
|
+
capacity + |
+No + |
+String + |
+Cache capacity (GB). +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
flavors + |
+Array of FlavorsItems objects + |
+Product flavor details. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
spec_code + |
+String + |
+Product flavor. + |
+
cloud_service_type_code + |
+String + |
+Code of the cloud service type. + |
+
cloud_resource_type_code + |
+String + |
+Code of the cloud resource type. + |
+
cache_mode + |
+String + |
+DCS instance type. Options: +
|
+
engine + |
+String + |
+Cache engine. + |
+
engine_version + |
+String + |
+Cache engine version. If the cache engine is Redis, the version can be 3.0, 4.0, 5.0, or 6.0. + |
+
product_type + |
+String + |
+Edition of DCS for Redis. Value: generic: basic edition + |
+
cpu_type + |
+String + |
+CPU architecture. The options are as follows: +
|
+
storage_type + |
+String + |
+Storage type. Currently, only the following value is supported: DRAM: in-memory storage + |
+
capacity + |
+Array of strings + |
+Cache capacity (GB). + |
+
billing_mode + |
+Array of strings + |
+Billing mode. The value can be: +
|
+
tenant_ip_count + |
+Integer + |
+Number of tenant IP addresses. + |
+
pricing_type + |
+String + |
+Pricing type. The options are as follows: +
|
+
is_dec + |
+Boolean + |
+Whether Dedicated Cloud (DeC) is supported. + |
+
attrs + |
+Array of AttrsObject objects + |
+Other information about the flavor. + |
+
flavors_available_zones + |
+Array of FlavorAzObject objects + |
+AZs where there are available resources. + |
+
replica_count + |
+Integer + |
+Replicas. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
capacity + |
+String + |
+Cache capacity (GB). + |
+
name + |
+String + |
+Additional information items. The options are as follows: +
|
+
value + |
+String + |
+Additional information value. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
capacity + |
+String + |
+Cache capacity (value). + |
+
unit + |
+String + |
+Cache capacity (unit). + |
+
available_zones + |
+Array of strings + |
+AZ information. + |
+
az_codes + |
+Array of strings + |
+AZs where there are available resources. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/flavors?cache_mode={cache_mode}&engine={engine}&engine_version={engine_version}&cpu_type={cpu_type}&capacity={capacity}+
Status code: 200
+Product flavors queried successfully.
+{ + "flavors" : [ { + "spec_code" : "redis.single.au1.large.1", + "cloud_service_type_code" : "hws.resource.type.dcs3", + "cloud_resource_type_code" : "hws.resource.type.dcs3", + "cache_mode" : "single", + "engine" : "redis", + "engine_version" : "4.0;5.0", + "product_type" : "generic", + "cpu_type" : "aarch64", + "storage_type" : "DRAM", + "capacity" : [ "1" ], + "billing_mode" : [ "Hourly" ], + "tenant_ip_count" : 1, + "pricing_type" : "normal", + "is_dec" : false, + "attrs" : [ { + "capacity" : "1", + "name" : "max_memory", + "value" : "1" + }, { + "capacity" : "1", + "name" : "max_connections", + "value" : "10000" + }, { + "capacity" : "1", + "name" : "sharding_num", + "value" : "1" + }, { + "capacity" : "1", + "name" : "proxy_num", + "value" : "0" + }, { + "capacity" : "1", + "name" : "db_number", + "value" : "256" + }, { + "capacity" : "1", + "name" : "max_clients", + "value" : "10000" + }, { + "capacity" : "1", + "name" : "max_bandwidth", + "value" : "80" + } ], + "flavors_available_zones" : [ { + "capacity" : "1", + "unit" : "GB", + "available_zones" : [ "d539378ec1324c85b76fefa3f7071458" ], + "az_codes" : [ "region01" ] + } ], + "replica_count" : 1 + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.1004", + "error_msg" : "Project ID does not match the token." +}+
Status code: 401
+Invalid authentication information.
+{ + "error_code" : "DCS.1001", + "error_msg" : "Invalid token." +}+
Status code: 403
+The request is rejected.
+{ + "error_code" : "DCS.2003", + "error_msg" : "This role does not have the permission to perform this operation." +}+
Status code: 404
+The requested resource is not found.
+{ + "error_code" : "DCS.4001", + "error_msg" : "The requested URL does not exist." +}+
Status code: 500
+Internal service error.
+{ + "error_code" : "DCS.5000", + "error_msg" : "Internal service error." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Product flavors queried successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query shards and replicas of cluster instances.
+GET /v2/{project_id}/instance/{instance_id}/groups
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
group_list + |
+Array of InstanceGroupListInfo objects + |
+List of shards. + |
+
group_count + |
+Integer + |
+Total number of shards in the instance. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
group_id + |
+String + |
+Shard ID. + |
+
group_name + |
+String + |
+Shard name. + |
+
replication_list + |
+Array of InstanceReplicationListInfo objects + |
+List of replicas in the shard. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
replication_role + |
+String + |
+Role of the replica. Options: +
|
+
replication_ip + |
+String + |
+Replica IP address. + |
+
is_replication + |
+Boolean + |
+Whether the replica is a newly added one. + |
+
replication_id + |
+String + |
+Replica ID. + |
+
node_id + |
+String + |
+Node ID. + |
+
status + |
+String + |
+Replica status. +Enumeration values: +
|
+
az_code + |
+String + |
+AZ where the replica is in. + |
+
dimensions + |
+Array of InstanceReplicationDimensionsInfo objects + |
+Monitoring metric dimension of the replica used to call the Cloud Eye API for querying monitoring metrics. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Monitoring dimension name. + |
+
value + |
+String + |
+Dimension value. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instance/{instance_id}/groups+
Status code: 200
+Details of shards and replicas queried successfully.
+{ + "group_list" : [ { + "group_id" : "35e1bed6-7de5-4898-9eb2-c362c783df15", + "group_name" : "group-0", + "replication_list" : [ { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cda0002d", + "replication_id" : "dfbd3f84-08bc-42f0-b538-01d03e6dc178", + "replication_ip" : "192.168.76.25", + "replication_role" : "master", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6200" + } ] + }, { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cdb0002e", + "replication_id" : "63d4c880-7050-464f-ab19-c8a297474d7d", + "replication_ip" : "192.168.78.207", + "replication_role" : "slave", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6201" + } ] + } ] + }, { + "group_id" : "579a281f-6e63-4822-b0c7-e45c44b7c807", + "group_name" : "group-1", + "replication_list" : [ { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cdbd002f", + "replication_id" : "6284c192-48d1-462b-8fd9-45dad067c1a2", + "replication_ip" : "192.168.73.164", + "replication_role" : "master", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6202" + } ] + }, { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cdc80030", + "replication_id" : "b927de3b-42f3-45b5-b0e4-8547f0ef6727", + "replication_ip" : "192.168.77.172", + "replication_role" : "slave", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6203" + } ] + } ] + }, { + "group_id" : "c17305c6-6651-42d9-86bf-5a6087076eb7", + "group_name" : "group-2", + "replication_list" : [ { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cdd90031", + "replication_id" : "caa6636d-a5c1-43b8-990a-3dc134da4522", + "replication_ip" : "192.168.76.143", + "replication_role" : "master", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6204" + } ] + }, { + "az_code" : "region01", + "is_replication" : false, + "node_id" : "8abfa7aa73291f15017329e1cde50032", + "replication_id" : "4f46790d-a0b0-4a1b-aa02-1c554fccf62d", + "replication_ip" : "192.168.72.66", + "replication_role" : "slave", + "status" : "Active", + "dimensions" : [ { + "name" : "dcs_instance_id", + "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" + }, { + "name" : "dcs_cluster_redis_node", + "value" : "8263dc69629c5b2d840e9816fa9c6205" + } ] + } ] + } ], + "group_count" : 3 +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Details of shards and replicas queried successfully. + |
+
500 + |
+Internal service error. + |
+
400 + |
+Invalid request. + |
+
See Error Codes.
+This API is used to query the list of hot key analysis tasks.
+GET /v2/{project_id}/instances/{instance_id}/hotkey-tasks
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
status + |
+No + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Instance ID. + |
+
count + |
+Integer + |
+Number of times that hot keys are analyzed. + |
+
records + |
+Array of RecordsResponse objects + |
+List of hot key analysis record. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Task execution record ID. (This ID corresponds to the task ID in the parameter for querying big key or hot key analysis details.) + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/hotkey-tasks+
Status code: 200
+Hot key analysis tasks listed successfully.
+{ + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "count" : 1, + "records" : [ { + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "scan_type" : "manual", + "status" : "success", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4922", + "error_msg" : "Does not support hotkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Hot key analysis tasks listed successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query DCS instances of a tenant, and allows you to specify query criteria.
+GET /v2/{project_id}/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+No + |
+String + |
+Instance ID. + |
+
include_failure + |
+No + |
+String + |
+Whether to return the number of instances that fail to be created. If the value is true, the number of instances that failed to be created is returned. If the value is not true, the number is not returned. + |
+
include_delete + |
+No + |
+String + |
+Whether to return the number of instances that have been deleted. If the value is true, the number of instances that have been deleted is returned. If the value is not true, the number is not returned. + |
+
name + |
+No + |
+String + |
+Instance name. + |
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of records displayed on each page. The minimum value is 1. The maximum value is 1000. If this parameter is not specified, 10 records are displayed on each page by default. + |
+
status + |
+No + |
+String + |
+Instance status. For details, see DCS Instance Statuses. + |
+
name_equal + |
+No + |
+String + |
+Whether to search for the instance that precisely matches a specified instance name. +The default value is false, indicating that a fuzzy search is performed based on a specified instance name. If the value is true, the instance that precisely matches a specified instance name is queried. + |
+
tags + |
+No + |
+String + |
+The query is based on the instance tag key and value. {key} indicates the tag key, and {value} indicates the tag value. +To query instances with multiple tag keys and values, separate key-value pairs with commas (,). + |
+
ip + |
+No + |
+String + |
+IP address for connecting to the DCS instance. + |
+
capacity + |
+No + |
+String + |
+DCS instance cache capacity in GB. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_num + |
+Integer + |
+Number of instances. + |
+
instances + |
+Array of InstanceListInfo objects + |
+Instance details array. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
publicip_id + |
+String + |
+ID of the EIP bound to the DCS Redis instance. This parameter is reserved. The value is null. + |
+
vpc_name + |
+String + |
+VPC name. + |
+
charging_mode + |
+Integer + |
+Billing mode. The value can be 0: pay-per-use. + |
+
vpc_id + |
+String + |
+VPC ID. + |
+
subnet_id + |
+String + |
+Subnet ID. + |
+
security_group_id + |
+String + |
+Security group ID. + |
+
created_at + |
+String + |
+Creation time. Format: 2017-03-31T12:24:46.297Z + |
+
updated_at + |
+String + |
+Update time. Format: 2017-03-31T19:24:46.297Z. + |
+
enable_ssl + |
+Boolean + |
+This parameter is reserved. + |
+
max_memory + |
+Integer + |
+Total memory size in MB. + |
+
used_memory + |
+Integer + |
+Used memory size in MB. + |
+
publicip_address + |
+String + |
+EIP bound to the DCS Redis instance. This parameter is reserved. The value is null. + |
+
capacity + |
+Integer + |
+Cache capacity (GB) + |
+
capacity_minor + |
+String + |
+Capacity (GB) of a small DCS instance (smaller than 1 GB). + |
+
order_id + |
+String + |
+Order ID. The value is null when a pay-per-use instance is created. + |
+
maintain_begin + |
+String + |
+UTC time when the maintenance time window starts. The format is HH:mm:ss. + |
+
maintain_end + |
+String + |
+UTC time when the maintenance time window ends. The format is HH:mm:ss. + |
+
engine + |
+String + |
+Cache engine. + |
+
engine_version + |
+String + |
+Cache version. + |
+
service_upgrade + |
+Boolean + |
+Whether the instance has an upgrade task. +
|
+
no_password_access + |
+String + |
+Indicates whether the instance can be accessed without a password. +
|
+
service_task_id + |
+String + |
+Upgrade task ID. +
|
+
ip + |
+String + |
+IP address for connecting to the DCS instance. For a cluster instance, multiple IP addresses are returned and separated by commas (,). For example, 192.168.0.1,192.168.0.2. + |
+
access_user + |
+String + |
+Username used for accessing a DCS instance after password authentication. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
enable_publicip + |
+Boolean + |
+This parameter is reserved. + |
+
port + |
+Integer + |
+Port of the DCS instance. + |
+
user_id + |
+String + |
+User ID. + |
+
user_name + |
+String + |
+Username. + |
+
domain_name + |
+String + |
+Domain name of the instance. + |
+
readonly_domain_name + |
+String + |
+Read-only domain name of the instance. This parameter is available only for master/standby instances. + |
+
name + |
+String + |
+Instance name. + |
+
spec_code + |
+String + |
+Product flavor. + |
+
status + |
+String + |
+Instance status. For details, see DCS Instance Statuses. + |
+
tags + |
+Array of ResourceTag objects + |
+Instance tag key and value. + |
+
enterprise_project_id + |
+String + |
+Enterprise project ID. + |
+
description + |
+String + |
+Description about the instance. + |
+
cpu_type + |
+String + |
+CPU type of the instance. Generally, the value is x86_64 or aarch64. + |
+
az_codes + |
+Array of strings + |
+AZs where there are available resources. + |
+
features + |
+Features object + |
+Features supported by the instance. + |
+
sub_status + |
+String + |
+Instance sub-status. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
key + |
+String + |
+Tag key. +
|
+
value + |
+String + |
+Tag value. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
support_acl + |
+Boolean + |
+Whether ACL is supported. +
|
+
support_transparent_client_ip + |
+Boolean + |
+Whether client IP pass-through is enabled. +
|
+
support_ssl + |
+Boolean + |
+Whether SSL is supported. +
|
+
support_audit_log + |
+Boolean + |
+Whether audit logs are supported +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances?offset=0&limit=10&name={name}&status={status}&id={id}&include_failure=true&include_delete=true&name_equal=false+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4800", + "error_msg" : "Invalid offset in the request." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+All instances are listed successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the start time and end time of maintenance windows.
+GET /v2/instances/maintain-windows
+None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
maintain_windows + |
+Array of MaintainWindowsEntity objects + |
+List of supported maintenance time windows. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
seq + |
+Integer + |
+Sequence number of the maintenance time window. + |
+
default + |
+Boolean + |
+Whether a maintenance time window is set to the default time segment. + |
+
begin + |
+String + |
+UTC time when the maintenance time window starts. The format is HH:mm:ss. + |
+
end + |
+String + |
+UTC time when the maintenance time window ends. The format is HH:mm:ss. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/instances/maintain-windows+
Status code: 200
+Maintenance time windows queried successfully.
+{ + "maintain_windows" : [ { + "default" : true, + "end" : "19", + "begin" : "18", + "seq" : 1 + }, { + "default" : false, + "end" : "20", + "begin" : "19", + "seq" : 2 + }, { + "default" : false, + "end" : "21", + "begin" : "20", + "seq" : 3 + }, { + "default" : false, + "end" : "22", + "begin" : "21", + "seq" : 4 + }, { + "default" : false, + "end" : "23", + "begin" : "22", + "seq" : 5 + }, { + "default" : false, + "end" : "00", + "begin" : "23", + "seq" : 6 + }, { + "default" : false, + "end" : "01", + "begin" : "00", + "seq" : 1 + }, { + "default" : false, + "end" : "02", + "begin" : "01", + "seq" : 2 + }, { + "default" : false, + "end" : "03", + "begin" : "02", + "seq" : 3 + }, { + "default" : false, + "end" : "04", + "begin" : "03", + "seq" : 3 + }, { + "default" : false, + "end" : "05", + "begin" : "04", + "seq" : 4 + }, { + "default" : false, + "end" : "06", + "begin" : "05", + "seq" : 5 + }, { + "default" : false, + "end" : "07", + "begin" : "06", + "seq" : 6 + }, { + "default" : false, + "end" : "08", + "begin" : "07", + "seq" : 1 + }, { + "default" : true, + "end" : "09", + "begin" : "08", + "seq" : 2 + }, { + "default" : false, + "end" : "10", + "begin" : "09", + "seq" : 3 + }, { + "default" : false, + "end" : "11", + "begin" : "10", + "seq" : 4 + }, { + "default" : false, + "end" : "12", + "begin" : "11", + "seq" : 5 + }, { + "default" : false, + "end" : "13", + "begin" : "12", + "seq" : 6 + }, { + "default" : false, + "end" : "14", + "begin" : "13", + "seq" : 1 + }, { + "default" : true, + "end" : "15", + "begin" : "14", + "seq" : 2 + }, { + "default" : false, + "end" : "16", + "begin" : "15", + "seq" : 3 + }, { + "default" : false, + "end" : "17", + "begin" : "16", + "seq" : 4 + }, { + "default" : false, + "end" : "18", + "begin" : "17", + "seq" : 5 + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Maintenance time windows queried successfully. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the migration task list.
+GET /v2/{project_id}/migration-tasks
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
name + |
+No + |
+String + |
+Name of the migration task. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
count + |
+Integer + |
+Number of migration tasks. + |
+
migration_tasks + |
+Array of MigrationTaskList objects + |
+Migration task list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_id + |
+String + |
+Migration task ID. + |
+
task_name + |
+String + |
+Migration task name. + |
+
status + |
+String + |
+Migration status. Options: SUCCESS, FAILED, MIGRATING, TERMINATED. +Enumeration values: +
|
+
migration_type + |
+String + |
+Migration mode, which can be backup file import or online migration. +Enumeration values: +
|
+
migration_method + |
+String + |
+Type of the migration, which can be full migration or incremental migration. +Enumeration values: +
|
+
ecs_tenant_private_ip + |
+String + |
+Private IP address of the migration ECS on the tenant side. This IP address can be added to the whitelist if it is in the same VPC as the private IP address of the target or source Redis. + |
+
data_source + |
+String + |
+Source Redis address, which is ip:port or a bucket name. + |
+
source_instance_name + |
+String + |
+Name of the source instance. If the source Redis is self-hosted, this parameter is left blank. + |
+
source_instance_id + |
+String + |
+ID of the source instance. If the source Redis is self-hosted, this parameter is left blank. + |
+
target_instance_addrs + |
+String + |
+Target Redis address. The format is ip:port. + |
+
target_instance_name + |
+String + |
+Target instance name. + |
+
target_instance_id + |
+String + |
+Target instance ID. + |
+
created_at + |
+String + |
+Time when the migration task is created. + |
+
description + |
+String + |
+Description of the migration task. + |
+
source_instance_status + |
+String + |
+Status of the source instance. If the source Redis is self-hosted, this parameter is left blank. + |
+
target_instance_status + |
+String + |
+Status of the target instance. + |
+
source_instance_subnet_id + |
+String + |
+ID of the source instance subnet. If the source Redis is self-hosted, this parameter is left blank. + |
+
target_instance_subnet_id + |
+String + |
+ID of the target instance subnet. + |
+
source_instance_spec_code + |
+String + |
+Specification code of the source instance. If the source Redis is self-hosted, this parameter is left blank. + |
+
target_instance_spec_code + |
+String + |
+Specification code of the target instance. + |
+
error_message + |
+String + |
+Error message. + |
+
released_at + |
+String + |
+Time when the migration ECS is released. + |
+
version + |
+String + |
+Version. + |
+
resume_mode + |
+String + |
+Operation mode, which can be auto or manual. + |
+
supported_features + |
+Array of strings + |
+Supported features. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/666486c2d9b948c1bbea57e714d744fa/migration-tasks?offset=0&limit=10&name=dcs-migration-i9qk+
Status code: 200
+Querying the migration task list.
+{ + "count" : 1, + "migration_tasks" : [ { + "task_id" : "2944a563-6f27-4604-9c16-a9a53cd95cc7", + "task_name" : "dcs-migration-test-6-16", + "status" : "TERMINATED", + "migration_type" : "online_migration", + "migration_method" : "incremental_migration", + "data_source" : "192.168.0.200:6379", + "source_instance_name" : "migration-resource", + "source_instance_id" : "132e0017-715b-4556-930a-95c7db7e8f7a", + "target_instance_addrs" : "192.168.0.153:6379", + "target_instance_name" : "migration-target", + "target_instance_id" : "eb1a8d1c-9ea6-4fcd-ac43-c3d3c2493f06", + "created_at" : "2021-06-16T06:12:55.508Z", + "description" : "dcs-test", + "source_instance_status" : "RUNNING", + "target_instance_status" : "RUNNING", + "source_instance_subnet_id" : "192.168.0.1", + "target_instance_subnet_id" : "192.168.0.2", + "source_instance_spec_code" : "redis.single.xu1.tiny.128", + "target_instance_spec_code" : "redis.single.xu1.tiny.128", + "error_message" : null, + "released_at" : "202404011057", + "version" : "6.0.21", + "resume_mode" : "auto", + "supported_features" : [ ] + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Querying the migration task list. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the monitored objects on the primary dimension dcs_instance_id.
+GET /v2/{project_id}/dims/monitored-objects
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Tenant ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dim_name + |
+Yes + |
+String + |
+Primary dimension ID, which can be dcs_instance_id. + |
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. +Default: 0 + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed per page. +Default: 10 + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
router + |
+Array of strings + |
+Route of the specified dimension. If the dimension is the primary dimension, the array contains the ID of the primary dimension. + |
+
children + |
+Array of DimChild objects + |
+Secondary dimensions under the specified dimension. This parameter is valid only when the dimension is dcs_instance_id. +
|
+
instances + |
+Array of InstancesMonitoredObject objects + |
+Monitored objects of the specified dimension. + |
+
total + |
+Integer + |
+Total number of monitored objects on the primary dimension. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dim_name + |
+String + |
+Dimension name. The value can be dcs_instance_id, dcs_cluster_redis_node, or dcs_cluster_proxy_node. + |
+
dim_route + |
+String + |
+Dimension route. Format: Dimension name,Sub-dimension name. For example, if dim_name is dcs_cluster_redis_node, the value of dim_route is dcs_instance_id,dcs_cluster_redis_node. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dcs_instance_id + |
+String + |
+ID of the monitored object, which is the instance ID. + |
+
name + |
+String + |
+Name of the monitored object, which is the instance name. + |
+
status + |
+String + |
+Status of the monitored object, which is the instance status. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}}/v2/{project_id}}/dims/monitored-objects?dim_name={dim_name}+
Status code: 200
+Successfully listed the monitored objects on the primary dimension.
+{ + "router" : [ "dcs_instance_id" ], + "total" : 3, + "children" : [ { + "dim_name" : "dcs_cluster_redis_node", + "dim_route" : "dcs_instance_id,dcs_cluster_redis_node" + }, { + "dim_name" : "dcs_cluster_proxy_node", + "dim_route" : "dcs_instance_id,dcs_cluster_proxy_node" + } ], + "instances" : [ { + "name" : "dcs-redis-single-node", + "status" : "RUNNING", + "dcs_instance_id" : "fe909c47-8990-44a0-9154-d0a1e95e78fe" + }, { + "name" : "dcs-redis-master-standby", + "status" : "RUNNING", + "dcs_instance_id" : "877e5ae3-482e-4c38-88a0-030a0fa6f399" + }, { + "name" : "dcs-proxy-cluster", + "status" : "RUNNING", + "dcs_instance_id" : "448ee851-1366-47f2-913a-e21032e690c4" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Successfully listed the monitored objects on the primary dimension. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the monitored objects on secondary dimensions under primary dimension dcs_instance_id.
+GET /v2/{project_id}/dims/monitored-objects/{instance_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Tenant ID. + |
+
instance_id + |
+Yes + |
+String + |
+ID of the monitored object on the primary dimension, which is the instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dim_name + |
+Yes + |
+String + |
+ID of the primary dimension, which can be dcs_instance_id. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
router + |
+Array of strings + |
+Route of the specified dimension. If the dimension is the primary dimension, the array contains the ID of the primary dimension. + |
+
children + |
+Array of DimChild objects + |
+Secondary dimensions under the specified dimension. This parameter is valid only when the dimension is dcs_instance_id. +
|
+
instances + |
+Array of InstancesMonitoredObject objects + |
+Monitored objects of the specified dimension. + |
+
dcs_cluster_redis_node + |
+Array of ClusterRedisNodeMonitoredObject objects + |
+Monitored objects of the Redis Server. This parameter is valid for Proxy Cluster and Redis Cluster instances. The field name is the same as the secondary dimension object name under children. + |
+
dcs_cluster_proxy_node + |
+Array of ProxyNodeMonitoredObject objects + |
+Monitored objects of proxies. This parameter is valid only for Proxy Cluster DCS Redis 3.0 instances. The field name is the same as the secondary dimension object name under children. + |
+
dcs_cluster_proxy2_node + |
+Array of Proxy2NodeMonitoredObject objects + |
+Monitored objects of the Proxy. This parameter is valid only for Redis 4.0 and 5.0 Proxy Cluster instances. The field name is the same as the secondary dimension object name under children. + |
+
total + |
+Integer + |
+Total number of monitored objects on the primary dimension. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dim_name + |
+String + |
+Dimension name. The value can be dcs_instance_id, dcs_cluster_redis_node, or dcs_cluster_proxy_node. + |
+
dim_route + |
+String + |
+Dimension route. Format: Dimension name,Sub-dimension name. For example, if dim_name is dcs_cluster_redis_node, the value of dim_route is dcs_instance_id,dcs_cluster_redis_node. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dcs_instance_id + |
+String + |
+ID of the monitored object, which is the instance ID. + |
+
name + |
+String + |
+Name of the monitored object, which is the instance name. + |
+
status + |
+String + |
+Status of the monitored object, which is the instance status. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dcs_instance_id + |
+String + |
+ID of the monitored object, which is the node ID. + |
+
name + |
+String + |
+Name of the monitored object, which is the node IP address. + |
+
dcs_cluster_redis_node + |
+String + |
+ID of the monitored object on the dcs_cluster_redis_node dimension. + |
+
status + |
+String + |
+Status of the monitored object, which is the node status. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dcs_instance_id + |
+String + |
+ID of the monitored object, which is the node ID. + |
+
name + |
+String + |
+Name of the monitored object, which is the node IP address. + |
+
dcs_cluster_proxy_node + |
+String + |
+ID of the monitored object on the dcs_cluster_proxy_node dimension. + |
+
status + |
+String + |
+Status of the monitored object, which is the node status. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
dcs_instance_id + |
+String + |
+ID of the monitored object, which is the node ID. + |
+
name + |
+String + |
+Name of the monitored object, which is the node IP address. + |
+
dcs_cluster_proxy2_node + |
+String + |
+ID of the monitored object on the dcs_cluster_proxy2_node dimension. + |
+
status + |
+String + |
+Status of the monitored object, which is the node status. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/dims/monitored-objects/{instance_id}?dim_name={dim_name}+
Status code: 200
+Successfully queried the monitored objects on the primary dimension.
+{ + "router" : [ "dcs_instance_id" ], + "total" : 1, + "children" : [ { + "dim_name" : "dcs_cluster_redis_node", + "dim_route" : "dcs_instance_id,dcs_cluster_redis_node" + } ], + "instances" : [ { + "name" : "dcs-test001", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19" + } ], + "dcs_cluster_redis_node" : [ { + "name" : "(master)192.168.2.145", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "b1f4aa9e4dae50888e58c9caecdfc108" + }, { + "name" : "(replica)192.168.2.199", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "e0e10e489a73487147928167396474bc" + }, { + "name" : "(master)192.168.2.243", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "e797c3ba8bee782e25cdd4a90eb00517" + }, { + "name" : "(replica)192.168.2.164", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "d810fb44f9f7a359e000cf277a824c43" + }, { + "name" : "(master)192.168.2.95", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "f25c37a4654d50b07e629fc2adfba60f" + }, { + "name" : "(replica)192.168.2.51", + "status" : "RUNNING", + "dcs_instance_id" : "03ca9da0-1104-40a5-b49d-5ef8e41bfd19", + "dcs_cluster_redis_node" : "da5149a20dc7caf35587e4d2433fe452" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Successfully queried the monitored objects on the primary dimension. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the Redis run logs.
+GET /v2/{project_id}/instances/{instance_id}/redislog
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be no less than 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
log_type + |
+Yes + |
+String + |
+Log type. Currently, only Redis run logs are supported. The value is run. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
total_num + |
+Integer + |
+Total. + |
+
file_list + |
+Array of RunlogItem objects + |
+Run log list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Unique ID of a run log. + |
+
file_name + |
+String + |
+Run log file name. + |
+
group_name + |
+String + |
+Shard name. + |
+
replication_ip + |
+String + |
+IP address of the replica where the run logs are collected. + |
+
status + |
+String + |
+Run log status. + |
+
time + |
+String + |
+Date when run logs are collected. The format is yyyy-MM-dd. + |
+
backup_id + |
+String + |
+Log file ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/redislog?log_type=run&offset=1&limit=10+
Status code: 200
+Run logs queried successfully. If there is no log, 204 is returned.
+{ + "total_num" : 1, + "file_list" : [ { + "id" : "e79f2d97-e972-41f2-b51c-d18f65f39a45", + "file_name" : "redis_192.168.0.142_2021-04-16.log", + "status" : "succeed", + "time" : "2021-04-16", + "replication_ip" : "192.168.0.142", + "group_name" : "group-0", + "backup_id" : "e79f2d97-e972-41f2-b51c-d18f65f39a45" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4800", + "error_msg" : "Invalid logType." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Run logs queried successfully. If there is no log, 204 is returned. + |
+
204 + |
+Queried successfully and no log is found. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the restoration records of a specific DCS instance.
+GET /v2/{project_id}/instances/{instance_id}/restores
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
begin_time + |
+No + |
+String + |
+Start time of the period to be queried. Format: yyyyMMddHHmmss, for example, 20170718235959. + |
+
end_time + |
+No + |
+String + |
+End time of the period to be queried. Format: yyyyMMddHHmmss, for example, 20170718235959. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be greater than or equal to 0. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
restore_record_response + |
+Array of InstanceRestoreInfo objects + |
+Array of the restoration records. + |
+
total_num + |
+Integer + |
+Total number. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
backup_id + |
+String + |
+Backup ID. + |
+
restore_id + |
+String + |
+ID of the restoration record. + |
+
backup_name + |
+String + |
+Backup record name. + |
+
updated_at + |
+String + |
+Time when the restoration completed. + |
+
restore_remark + |
+String + |
+Description of the restoration. + |
+
created_at + |
+String + |
+Time when the restoration task was created. + |
+
progress + |
+String + |
+Restoration progress. + |
+
error_code + |
+String + |
+Error code displayed for a restoration failure. +
|
+
restore_name + |
+String + |
+Name of a restoration record. + |
+
backup_remark + |
+String + |
+Description of the backup. + |
+
status + |
+String + |
+Restoration status. +
Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/restores?offset={offset}&limit={limit}&begin_Time={begin_Time}&end_Time={end_Time}+
Status code: 200
+DCS instance restoration records queried successfully.
+{ + "restore_record_response" : [ { + "backup_id" : "f4823e9e-fe9b-4ffd-be79-4e5d6de272bb", + "restore_id" : "a6155972-800c-4170-a479-3231e907d2f6", + "backup_name" : "backup_20170718000002", + "updated_at" : "2017-07-18T21:41:35.182Z", + "restore_remark" : "doctest", + "created_at" : "2017-07-18T21:41:20.721Z", + "progress" : "100.00", + "error_code" : { }, + "restore_name" : "restore_20170718214120", + "backup_remark" : { }, + "status" : "succeed" + } ], + "total_num" : 1 +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+DCS instance restoration records queried successfully. + |
+
204 + |
+No instance restoration record found. + |
+
400 + |
+Invalid request. + |
+
See Error Codes.
+This API is used to query slow logs.
+GET /v2/{project_id}/instances/{instance_id}/slowlog
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
offset + |
+No + |
+Integer + |
+Offset, which is the position where the query starts. The value must be no less than 0. + |
+
limit + |
+No + |
+Integer + |
+Number of items displayed on each page. + |
+
sort_key + |
+No + |
+String + |
+Specifies the keyword based on which the return results are sorted. The value can be start_time or duration. The default value is start_time. +Enumeration values: +
|
+
sort_dir + |
+No + |
+String + |
+Result sorting order. The value can be desc (descending order) or asc (ascending order). The default value is desc. +Enumeration values: +
|
+
start_time + |
+Yes + |
+String + |
+Query start time (UTC). Example: 1598803200000. + |
+
end_time + |
+Yes + |
+String + |
+Query end time (UTC). Example: 1599494399000. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
total_num + |
+Integer + |
+Total number of slow logs. + |
+
count + |
+Integer + |
+Total. + |
+
slowlogs + |
+Array of SlowlogItem objects + |
+Slow log list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+Integer + |
+Unique ID of a slow log. + |
+
command + |
+String + |
+Slow command. + |
+
start_time + |
+String + |
+Execution start time. Example: 2020-06-19T07:06:07Z. + |
+
duration + |
+String + |
+Duration, in ms. + |
+
shard_name + |
+String + |
+Name of the shard where the slow command is executed. This parameter is supported only when the instance type is cluster. + |
+
database_id + |
+Integer + |
+Database ID, which is available only to some customers. + |
+
username + |
+String + |
+Account name that can operate slow logs. This parameter is available only to designated customers. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/slowlog?start_time=1598803200000&end_time=1599494399000+
Status code: 200
+Slow logs queried successfully.
+{ + "total_num" : 1, + "count" : 1, + "slowlogs" : [ { + "id" : 1, + "start_time" : "2020-06-19T07:06:07Z", + "command" : "SLOWLOG GET 128", + "duration" : "17", + "shard_name" : "group-0", + "database_id" : 1, + "username" : "default" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4800", + "error_msg" : "Invalid start_time in the request." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Slow logs queried successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the statistics of all DCS instances that are in the Running state.
+GET /v2/{project_id}/instances/statistic
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
statistics + |
+Array of InstanceStatistic objects + |
+Statistics of all instances in the Running state. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
input_kbps + |
+String + |
+Incoming traffic (kbit/s) of the DCS instance. + |
+
output_kbps + |
+String + |
+Outgoing traffic (kbit/s) of the DCS instance. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
keys + |
+Long + |
+Number of cached data records + |
+
used_memory + |
+Long + |
+Used memory size in MB. + |
+
max_memory + |
+Long + |
+Total memory size in MB. + |
+
cmd_get_count + |
+Long + |
+Number of times the GET command is run. + |
+
cmd_set_count + |
+Long + |
+Number of times the SET command is run. + |
+
used_cpu + |
+String + |
+Accumulated CPU time consumed by the cache in the user state and kernel state, in seconds. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/statistic+
Status code: 200
+Instance statistics queried successfully.
+{ + "statistics" : [ { + "output_kbps" : "0.0", + "instance_id" : "e008652d-18e0-43ff-924e-072261e0372a", + "keys" : 0, + "used_memory" : 0, + "cmd_get_count" : 0, + "used_cpu" : "0.0", + "cmd_set_count" : 0, + "input_kbps" : "0.0", + "max_memory" : 460 + }, { + "output_kbps" : "0.0", + "instance_id" : "c577a1eb-33b7-42c7-8231-ad32358599ac", + "keys" : 0, + "used_memory" : 0, + "cmd_get_count" : 0, + "used_cpu" : "0.0", + "cmd_set_count" : 0, + "input_kbps" : "0.0", + "max_memory" : 460 + }, { + "output_kbps" : "1.19", + "instance_id" : "e8b98471-55d5-4695-b0bb-8f336a98e207", + "keys" : 0, + "used_memory" : 0, + "cmd_get_count" : 0, + "used_cpu" : "0.0", + "cmd_set_count" : 0, + "input_kbps" : "0.03", + "max_memory" : 460 + }, { + "output_kbps" : "0.0", + "instance_id" : "bc61c690-4b34-4cbe-9ce3-11246aea7aba", + "keys" : 0, + "used_memory" : 0, + "cmd_get_count" : 0, + "used_cpu" : "0.0", + "cmd_set_count" : 0, + "input_kbps" : "0.0", + "max_memory" : 6963 + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Instance statistics queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the tags of all resources owned by a tenant in a specific project.
+GET /v2/{project_id}/dcs/tags
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
tags + |
+Array of Tag objects + |
+Tag list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
key + |
+String + |
+Tag key. The key contains a maximum of 128 characters. + |
+
values + |
+Array of strings + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
POST https://{dcs_endpoint}/v2/{project_id}/dcs/tags+
Status code: 200
+Successfully queried all tags of the tenant.
+{ + "tags" : [ { + "values" : [ "value1", "value2" ], + "key" : "1" + }, { + "values" : [ "value1", "value2" ], + "key" : "2" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Successfully queried all tags of the tenant. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
++
+
+
+
This API is used to modify specifications of a DCS instance in the Running state.
+POST /v2/{project_id}/instances/{instance_id}/resize
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
spec_code + |
+Yes + |
+String + |
+Flavor after the modification. The query method is as follows: +
|
+
new_capacity + |
+Yes + |
+Integer + |
+New memory size of the DCS instance, in GB. For a single-node or master/standby DCS Redis 4.0, 5.0, or 6.0 instance, the value can be 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32, or 64. For a cluster instance, the value can be 4, 8, 16, 24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, or **1024. +Currently, the specifications of a Proxy Cluster DCS Redis 3.0 instance cannot be reduced. In addition to integers, 0.125, 0.25, and 0.5 are also supported. + |
+
bss_param + |
+No + |
+BssParamEntity object + |
+This parameter does not need to be set for pay-per-use instances. + |
+
reserved_ip + |
+No + |
+Array of strings + |
+IP addresses to retain. Mandatory during cluster scale-in. If this parameter is not set, the system randomly deletes unnecessary shards. + |
+
change_type + |
+No + |
+String + |
+Modification type. Mandatory when the number of replicas of a DCS Redis 4.0 or 5.0 instance is modified. +
Enumeration values: +
|
+
available_zones + |
+No + |
+Array of strings + |
+Code of the AZ where each replica is in. This parameter is mandatory when you add replicas to a DCS Redis 4.0 or 5.0 instance. Before specifying an AZ, ensure that there are available resources in it. This parameter is mandatory when you delete replicas from a cluster instance. +For details, see Querying AZs. + |
+
node_list + |
+No + |
+Array of strings + |
+ID of the replica to delete. This parameter is mandatory when you delete replicas of a master/standby DCS Redis 4.0 or 5.0 instance. Currently, only one replica can be deleted at a time. +For details, see Querying Details of Shards and Replicas. + |
+
execute_immediately + |
+No + |
+Boolean + |
+Whether to apply the change immediately. Options: +
|
+
None
+Changing instance specifications to 1 GB.
+POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/resize + +{ + "spec_code" : "redis.ha.xu1.tiny.r2.1", + "new_capacity" : 1, + "reserved_ip" : [ "192.168.0.125" ], + "change_type" : "createReplication", + "available_zones" : [ "e7afd64502d64fe3bfb60c2c82ec0ec6", "d90ff6d692954373bf53be49cf3900cb" ], + "node_list" : [ "ff80808282eee5f90183120188ae093e" ], + "execute_immediately" : true +}+
None
+Status Code + |
+Description + |
+
---|---|
204 + |
+DCS instance specifications modified successfully. + |
+
See Error Codes.
+This API is used to restart a running DCS instance.
+Data clearance operations cannot be undone on DCS Redis 4.0, 5.0, and 6.0 instances.
+PUT /v2/{project_id}/instances/status
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instances + |
+No + |
+Array of strings + |
+List of instance IDs. + |
+
action + |
+No + |
+String + |
+Operation on the instance: +restart: force restart +soft_restart: restart only the instance process +flush: clear data + NOTE:
+Only DCS Redis 4.0, 5.0, and 6.0 instances can be flushed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
results + |
+Array of BatchOpsResult objects + |
+Result of deleting, restarting, or clearing data of an instance. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
result + |
+String + |
+Instance deletion result. Options: success and failed. + |
+
instance + |
+String + |
+DCS instance ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Force restarting a DCS instance
+PUT https://{dcs_endpoint}/v2/{project_id}/instances/status + +{ + "instances" : [ "2e803f66-fbb0-47ad-b6cb-fb87f5bed4ef" ], + "action" : "restart" +}+
Status code: 200
+DCS instances restarted successfully or the instance data cleared successfully.
+{ + "results" : [ { + "instance" : "e3a7019c-8824-4c1a-8289-5300f19b9f64", + "result" : "success" + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+DCS instances restarted successfully or the instance data cleared successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to restore the backup data to a specific DCS instance.
+Only master/standby and cluster DCS instances can be backed up and restored, while single-node instances cannot.
+POST /v2/{project_id}/instances/{instance_id}/restores
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
backup_id + |
+Yes + |
+String + |
+Backup ID. + |
+
remark + |
+No + |
+String + |
+Description of DCS instance restoration. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
restore_id + |
+String + |
+ID of the restoration record. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Restoring the backup files of the DCS instance
+POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/restores + +{ + "backup_id" : "8ba256cb-e5ac-44f6-a3da-c03d8f0e5029", + "remark" : "restore instance" +}+
Status code: 200
+Instance restored successfully.
+{ + "restore_id" : "a6155972-800c-4170-a479-3231e907d2f6" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Instance restored successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to configure an online data migration task.
+POST /v2/{project_id}/migration/{task_id}/task
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
task_id + |
+Yes + |
+String + |
+Online migration task ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
migration_method + |
+Yes + |
+String + |
+Type of the migration. +
Enumeration values: +
|
+
resume_mode + |
+Yes + |
+String + |
+Reconnection mode. In automatic reconnection mode, if the source and target instances are disconnected due to network exceptions, automatic reconnections will be performed indefinitely. Full synchronization will be triggered and requires more bandwidth if incremental synchronization becomes unavailable. Exercise caution when enabling this option. Values: +
Enumeration values: +
|
+
bandwidth_limit_mb + |
+No + |
+String + |
+Bandwidth limit. For incremental migration, you can limit the bandwidth to ensure smooth service running. When the data synchronization speed reaches the limit, it can no longer increase. - Unit: MB/s. - Value range: 1–10,240 (an integer greater than 0 and less than 10,241). + |
+
source_instance + |
+Yes + |
+ConfigMigrationInstanceBody object + |
+Source Redis information. + |
+
target_instance + |
+Yes + |
+ConfigMigrationInstanceBody object + |
+Target Redis information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
id + |
+No + |
+String + |
+Redis instance ID (mandatory if the source Redis address is not specified). + |
+
addrs + |
+No + |
+String + |
+Source Redis address (mandatory if the Redis instance ID is not specified). + |
+
password + |
+No + |
+String + |
+Redis password. If a password is set, this parameter is mandatory. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Migration task ID. + |
+
name + |
+String + |
+Migration task name. + |
+
status + |
+String + |
+Migration status. Options: SUCCESS, FAILED, MIGRATING, TERMINATED. +Enumeration values: +
|
+
error + |
+String + |
+Error message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Configuring an online migration task with migration type set to incremental, auto-reconnect enabled, and source and target instances configured
+POST https://{dcs_endpoint}/v2/{project_id}/migration/{task_id}/task + +{ + "migration_method" : "incremental_migration", + "bandwidth_limit_mb" : 123, + "resume_mode" : "auto", + "source_instance" : { + "id" : null, + "addrs" : "192.168.1.1:6379,192.168.0.0:6379", + "password" : "xxxxxx" + }, + "target_instance" : { + "id" : "cf4a05df-1c38-47c5-bb5a-0a7b3673b3bd", + "addrs" : null, + "password" : null + } +}+
Status code: 200
+Online data migration task configured.
+{ + "id" : "90754308-a156-406f-a837-8f852f38a646", + "name" : "dcs-migration-1db7", + "status" : "FULLMIGRATING", + "error" : "" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Online data migration task configured. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query configurations of automatic big key analysis.
+GET /v2/{project_id}/instances/{instance_id}/bigkey/autoscan
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Instance ID. + |
+
enable_auto_scan + |
+Boolean + |
+Whether to enable scheduled cache analysis. + |
+
schedule_at + |
+Array of strings + |
+UTC time of the day that analysis is scheduled for. Example: 21:00. + |
+
updated_at + |
+String + |
+Time when the configuration is updated. The time format is 2020-06-15T02:21:18.669Z. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/bigkey/autoscan+
Status code: 200
+This API is used to query configurations of automatic big key analysis.
+{ + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "enable_auto_scan" : true, + "schedule_at" : [ "21:00" ], + "updated_at" : "2020-06-17T02:42:40.793Z" +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4919", + "error_msg" : "Does not support bigkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+This API is used to query configurations of automatic big key analysis. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the big key analysis details.
+GET /v2/{project_id}/instances/{instance_id}/bigkey-task/{bigkey_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. [For details, see Obtaining a Project ID.] + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
bigkey_id + |
+Yes + |
+String + |
+ID of the big key analysis task. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Big key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of big keys. + |
+
keys + |
+Array of BigkeysBody objects + |
+Big key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the big key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a big key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/bigkey-task/858ee14c-2271-4489-8b82-7bda7459ae3e+
Status code: 200
+Big key analysis details queried successfully.
+{ + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "status" : "success", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z", + "keys" : [ { + "name" : "dcs-bigkey-test", + "type" : "string", + "shard" : "192.168.1.134:6379", + "db" : 0, + "size" : 3000, + "unit" : "byte" + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4919", + "error_msg" : "Does not support bigkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Big key analysis details queried successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query details about a diagnosis report based on the report ID.
+GET /v2/{project_id}/diagnosis/{report_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
report_id + |
+Yes + |
+String + |
+Diagnosis report ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
abnormal_item_sum + |
+Integer + |
+Total number of abnormal diagnosis items. + |
+
failed_item_sum + |
+Integer + |
+Total number of failed diagnosis items. + |
+
diagnosis_node_report_list + |
+Array of DiagnosisNodeReport objects + |
+Node diagnosis report list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
node_ip + |
+String + |
+Node IP address, for example, 192.168.0.234:6379. + |
+
az_code + |
+String + |
+Code of the AZ where the node is. + |
+
group_name + |
+String + |
+Name of the shard where the node is. + |
+
abnormal_sum + |
+Integer + |
+Total number of abnormal diagnosis items. + |
+
failed_sum + |
+Integer + |
+Total number of failed diagnosis items. + |
+
role + |
+String + |
+Node role. +Enumeration values: +
|
+
diagnosis_dimension_list + |
+Array of DiagnosisDimension objects + |
+Diagnosis dimension list. + |
+
command_time_taken_list + |
+CommandTimeTakenList object + |
+Command execution duration list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Diagnosis dimension name. +Enumeration values: +
|
+
abnormal_num + |
+Integer + |
+Total number of abnormal diagnosis items. + |
+
failed_num + |
+Integer + |
+Total number of failed diagnosis items. + |
+
diagnosis_item_list + |
+Array of DiagnosisItem objects + |
+Diagnosis items. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Diagnosis item name. +Enumeration values: +
|
+
cause_ids + |
+Array of ConclusionItem objects + |
+List of cause IDs. For details about the IDs, see "Instance Diagnosis IDs" in the appendix. + |
+
impact_ids + |
+Array of ConclusionItem objects + |
+List of impact IDs. For details about the IDs, see "Instance Diagnosis IDs" in the appendix. + |
+
advice_ids + |
+Array of ConclusionItem objects + |
+List of suggestion IDs. For details about the IDs, see "Instance Diagnosis IDs" in the appendix. + |
+
result + |
+String + |
+Diagnosis result. +Enumeration values: +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+Integer + |
+Conclusion ID. + |
+
params + |
+Map<String,String> + |
+Conclusion parameters. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
total_num + |
+Integer + |
+Total number of times that commands are executed. + |
+
total_usec_sum + |
+Double + |
+Total duration of command execution. + |
+
result + |
+String + |
+Command execution latency result. +Enumeration values: +
|
+
command_list + |
+Array of CommandTimeTaken objects + |
+Command execution latency statistics. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
calls_sum + |
+Integer + |
+Number of calls. + |
+
usec_sum + |
+Double + |
+Total time consumed. + |
+
command_name + |
+String + |
+Command name. + |
+
per_usec + |
+String + |
+Duration percentage. + |
+
average_usec + |
+Double + |
+Average duration of calls. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
None
+Status code: 200
+The specified report is queried successfully.
+{ + "abnormal_item_sum" : 1, + "failed_item_sum" : 0, + "diagnosis_node_report_list" : [ { + "group_name" : "group-0", + "az_code" : "region01", + "node_ip" : "192.168.0.170:6379", + "abnormal_sum" : 1, + "failed_sum" : 0, + "role" : "master", + "command_time_taken_list" : { + "command_list" : [ { + "calls_sum" : 329, + "usec_sum" : 20.732, + "command_name" : "info", + "per_usec" : "68.61%", + "average_usec" : 0.063 + }, { + "calls_sum" : 1788, + "usec_sum" : 1.787, + "command_name" : "ping", + "per_usec" : "5.91%", + "average_usec" : 0.001 + }, { + "calls_sum" : 2, + "usec_sum" : 0.025, + "command_name" : "config", + "per_usec" : "0.08%", + "average_usec" : 0.013 + }, { + "calls_sum" : 60, + "usec_sum" : 0.186, + "command_name" : "slowlog", + "per_usec" : "0.62%", + "average_usec" : 0.003 + }, { + "calls_sum" : 1764, + "usec_sum" : 7.485, + "command_name" : "publish", + "per_usec" : "24.77%", + "average_usec" : 0.004 + } ], + "result" : "succeed", + "error_code" : null, + "total_num" : 5, + "total_usec_sum" : 30.215 + }, + "diagnosis_dimension_list" : [ { + "name" : "load", + "abnormal_num" : 0, + "failed_num" : 0, + "diagnosis_item_list" : [ { + "name" : "cpu_usage", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + }, { + "name" : "time_consuming_commands", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + } ] + }, { + "name" : "storage", + "abnormal_num" : 1, + "failed_num" : 0, + "diagnosis_item_list" : [ { + "name" : "inner_memory_fragmentation", + "result" : "normal", + "cause_ids" : [ { + "id" : 7, + "params" : null + } ], + "impact_ids" : [ { + "id" : 3, + "params" : null + } ], + "advice_ids" : [ { + "id" : 4, + "params" : null + } ], + "error_code" : null + }, { + "name" : "persistence", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + }, { + "name" : "centralized_expiration", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + }, { + "name" : "memory_usage", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + }, { + "name" : "hit_ratio", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + } ] + }, { + "name" : "network", + "abnormal_num" : 0, + "failed_num" : 0, + "diagnosis_item_list" : [ { + "name" : "connection_num", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + }, { + "name" : "rx_controlled", + "result" : "normal", + "cause_ids" : null, + "impact_ids" : null, + "advice_ids" : null, + "error_code" : null + } ] + } ] + } ] +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The specified report is queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query configurations of automatic hot key analysis.
+GET /v2/{project_id}/instances/{instance_id}/hotkey/autoscan
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Instance ID. + |
+
enable_auto_scan + |
+Boolean + |
+Whether to enable scheduled cache analysis. + |
+
schedule_at + |
+Array of strings + |
+UTC time of the day that analysis is scheduled for. Example: 21:00. + |
+
updated_at + |
+String + |
+Time when the configuration is updated. The time format is 2020-06-15T02:21:18.669Z. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/hotkey/autoscan+
Status code: 200
+This API is used to query configurations of automatic hot key analysis.
+{ + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "enable_auto_scan" : true, + "schedule_at" : [ "21:00" ], + "updated_at" : "2020-06-17T02:42:40.793Z" +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4922", + "error_msg" : "Does not support hotkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+This API is used to query configurations of automatic hot key analysis. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the hot key analysis details.
+GET /v2/{project_id}/instances/{instance_id}/hotkey-task/{hotkey_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
hotkey_id + |
+Yes + |
+String + |
+ID of the hot key analysis task. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Hot key analysis record ID. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
status + |
+String + |
+Analysis task status. +Enumeration values: +
|
+
scan_type + |
+String + |
+Analysis method. +Enumeration values: +
|
+
created_at + |
+String + |
+Time when an analysis task is created. The format is 2020-06-15T02:21:18.669Z. + |
+
started_at + |
+String + |
+Time when an analysis task started. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
finished_at + |
+String + |
+Time when an analysis task ended. The format is 2020-06-15T02:21:18.669Z. (The value is null and is not returned when the analysis task is being created.) + |
+
num + |
+Integer + |
+Number of hot keys. + |
+
keys + |
+Array of HotkeysBody objects + |
+Hot key record. (The value is null and is not returned when the analysis task is being created.) + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Key name. + |
+
type + |
+String + |
+Key type. +Enumeration values: +
|
+
shard + |
+String + |
+Shard where the hot key is located. This parameter is supported only when the instance type is cluster. The format is ip:port. + |
+
db + |
+Integer + |
+Database where a hot key is located. + |
+
size + |
+Long + |
+Size of the key value. + |
+
unit + |
+String + |
+Key unit. count: number of keys; byte: key size. + |
+
freq + |
+Integer + |
+Reflects the access frequency of a key within a specific period of time. +The value is the logarithmic access frequency counter. The maximum value is 255, which indicates 1 million access requests. After the frequency reaches 255, the value will no longer increase even if access requests continue to increase. The value will decrease by 1 for every minute during which the key is not accessed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/a4d31cb6-3d72-4fdc-8ec9-6e3a41e47f71/instances/5560df16-cebf-4473-95c4-d1b573c16e79/hotkey-task/0ccb25d5-27cf-4188-b5ea-987730a85371+
Status code: 200
+Hot key analysis details queried successfully.
+{ + "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", + "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", + "status" : "success", + "scan_type" : "manual", + "created_at" : "2020-06-15T02:21:18.669Z", + "started_at" : "2020-06-15T02:21:23.534Z", + "finished_at" : "2020-06-15T02:21:25.588Z", + "keys" : [ { + "name" : "dcs-hotkey-test", + "type" : "string", + "shard" : "192.168.1.134:6379", + "db" : 0, + "size" : 3000, + "unit" : "byte", + "freq" : 4 + } ] +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4922", + "error_msg" : "Does not support hotkey analyze." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Hot key analysis details queried successfully. + |
+
400 + |
+Invalid request. + |
+
401 + |
+Invalid authentication information. + |
+
403 + |
+The request is rejected. + |
+
404 + |
+The requested resource is not found. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the details about a specified DCS instance.
+GET /v2/{project_id}/instances/{instance_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
vpc_name + |
+String + |
+VPC name. + |
+
charging_mode + |
+Integer + |
+Billing mode. The value can be 0: pay-per-use. + |
+
vpc_id + |
+String + |
+VPC ID. + |
+
user_name + |
+String + |
+Username. + |
+
created_at + |
+String + |
+Time when the instance is created. Format: 2017-03-31T12:24:46.297Z + |
+
description + |
+String + |
+Instance description + |
+
security_group_id + |
+String + |
+Security group ID. + |
+
security_group_name + |
+String + |
+Security group name. + |
+
max_memory + |
+Integer + |
+Total memory size in MB. + |
+
used_memory + |
+Integer + |
+Used memory size in MB. + |
+
capacity + |
+Integer + |
+DCS instance cache capacity in GB. + |
+
capacity_minor + |
+String + |
+Capacity (GB) of a small DCS instance (smaller than 1 GB). + |
+
maintain_begin + |
+String + |
+UTC time when the maintenance time window starts. The format is HH:mm:ss. + |
+
maintain_end + |
+String + |
+UTC time when the maintenance time window ends. The format is HH:mm:ss. + |
+
engine + |
+String + |
+DCS instance engine. + |
+
no_password_access + |
+String + |
+Indicates whether the instance can be accessed without a password. +
|
+
ip + |
+String + |
+IP address for connecting to the DCS instance. For a cluster instance, multiple IP addresses are returned and separated by commas (,). For example, 192.168.0.1,192.168.0.2. + |
+
instance_backup_policy + |
+InstanceBackupPolicy object + |
+Backup policy. This parameter is supported when the instance type is master/standby or cluster. + |
+
az_codes + |
+Array of strings + |
+AZ where the instance is in. The AZ code is returned. + |
+
available_zones + |
+Array of strings + |
+ID of the AZ where the instance is in. The AZ ID is returned. + |
+
access_user + |
+String + |
+Username used for accessing a DCS instance after password authentication. + |
+
instance_id + |
+String + |
+Instance ID. + |
+
port + |
+Integer + |
+Port of the DCS instance. + |
+
user_id + |
+String + |
+User ID. + |
+
name + |
+String + |
+Instance name. + |
+
spec_code + |
+String + |
+Specification code. + |
+
subnet_id + |
+String + |
+Subnet ID. + |
+
subnet_name + |
+String + |
+Subnet name. + |
+
subnet_cidr + |
+String + |
+Subnet CIDR block. + |
+
engine_version + |
+String + |
+Cache version. + |
+
order_id + |
+String + |
+Order ID. + |
+
status + |
+String + |
+Instance status. For details, see DCS Instance Statuses. + |
+
domain_name + |
+String + |
+Domain name of the instance. + |
+
readonly_domain_name + |
+String + |
+Read-only domain name of the instance. This parameter is available only for master/standby instances. + |
+
enable_publicip + |
+Boolean + |
+This parameter is reserved. + |
+
publicip_id + |
+String + |
+ID of the EIP bound to the DCS Redis instance. This parameter is reserved. The value is null. + |
+
publicip_address + |
+String + |
+EIP bound to the DCS Redis instance. The value of this parameter is null if public network access is disabled. + |
+
enable_ssl + |
+Boolean + |
+This parameter is reserved. + |
+
service_upgrade + |
+Boolean + |
+Whether the instance has an upgrade task. +
|
+
service_task_id + |
+String + |
+Upgrade task ID. +
|
+
enterprise_project_id + |
+String + |
+Enterprise project ID. + |
+
backend_addrs + |
+String + |
+Backend address of a cluster instance. + |
+
features + |
+Features object + |
+Features supported by the instance. + |
+
domain_name_info + |
+DomainNameInfo object + |
+Information about instance domain name update and public domain name resolution. + |
+
transparent_client_ip_enable + |
+Boolean + |
+Whether client IP pass-through is enabled. + |
+
sub_status + |
+String + |
+Instance sub-status. + |
+
tags + |
+Array of ResourceTag objects + |
+Instance tag key and value. + |
+
cpu_type + |
+String + |
+CPU type of the instance. Generally, the value is x86_64 or aarch64. + |
+
enterprise_project_name + |
+String + |
+Enterprise project name. + |
+
update_at + |
+String + |
+Update time, for example, 2022-07-06T09:32:16.502Z. + |
+
product_type + |
+String + |
+Edition. Only the basic edition is supported. Value: generic. +Enumeration values: +
|
+
storage_type + |
+String + |
+Storage type (DRAM). +Enumeration values: +
|
+
launched_at + |
+String + |
+Start time, for example, 2022-07-06T09:32:16.502Z. + |
+
cache_mode + |
+String + |
+Instance type. Options: +
|
+
support_slow_log_flag + |
+String + |
+Whether slow query logs are supported. + |
+
db_number + |
+Integer + |
+Number of databases. + |
+
replica_count + |
+Integer + |
+Number of replicas. + |
+
sharding_count + |
+Integer + |
+Number of shards in a cluster instance. + |
+
bandwidth_info + |
+BandwidthInfo object + |
+Bandwidth information. + |
+
cloud_service_type_code + |
+String + |
+Code of the cloud service type. + |
+
cloud_resource_type_code + |
+String + |
+Code of the cloud resource type. + |
+
inquery_spec_code + |
+String + |
+Specification code in the operations system. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
backup_policy_id + |
+String + |
+Backup policy ID. + |
+
created_at + |
+String + |
+Creation time. Example: 2022-04-11T09:45:24.790Z + |
+
updated_at + |
+String + |
+Update time. Example: 2022-04-12T02:22:03.269Z + |
+
policy + |
+BackupPolicy object + |
+Backup policy. + |
+
tenant_id + |
+String + |
+Tenant ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
backup_type + |
+String + |
+Backup type. +
|
+
save_days + |
+Integer + |
+This parameter is mandatory when backup_type is set to manual. Retention period, in days. The value ranges from 1 to 7. The automatic backup policy is retained when automatic backup is switched to manual backup. + |
+
periodical_backup_plan + |
+BackupPlan object + |
+Backup schedule. This parameter is mandatory when backup_type is set to manual. The automatic backup policy is retained when automatic backup is switched to manual backup. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
timezone_offset + |
+String + |
+Time zone in which backup is performed. This parameter is no longer used. + |
+
backup_at + |
+Array of integers + |
+Day in a week on which backup starts. The value ranges from 1 to 7, where 1 indicates Monday, and 7 indicates Sunday. The automatic backup policy is retained when automatic backup is switched to manual backup. + |
+
period_type + |
+String + |
+Interval at which backup is performed, which supports only weekly currently. The automatic backup policy is retained when automatic backup is switched to manual backup. + |
+
begin_at + |
+String + |
+UTC time when the backup starts. For example, 00:00-01:00 indicates that the backup starts at 00:00 (UTC time). The value must be on the hour. The backup interval is 1 hour. The automatic backup policy is retained when automatic backup is switched to manual backup. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
support_acl + |
+Boolean + |
+Whether ACL is supported. +
|
+
support_transparent_client_ip + |
+Boolean + |
+Whether client IP pass-through is enabled. +
|
+
support_ssl + |
+Boolean + |
+Whether SSL is supported. +
|
+
support_audit_log + |
+Boolean + |
+Whether audit logs are supported +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
support_public_resolve + |
+Boolean + |
+Whether to enable public domain name resolution. +
|
+
is_latest_rules + |
+Boolean + |
+Whether the current domain name is the latest. +
|
+
zone_name + |
+String + |
+Region suffix of the domain name. + |
+
history_domain_names + |
+Array of DomainNameEntity objects + |
+Historical domain name information. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
domain_name + |
+String + |
+Historical domain names of the instance. + |
+
is_readonly + |
+Boolean + |
+Whether the domain name is read-only. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
key + |
+String + |
+Tag key. +
|
+
value + |
+String + |
+Tag value. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
begin_time + |
+Long + |
+Start time of temporary increase. + |
+
end_time + |
+Long + |
+End time of temporary increase. + |
+
current_time + |
+Long + |
+Current time. + |
+
bandwidth + |
+Integer + |
+Current bandwidth, in Mbit/s. + |
+
next_expand_time + |
+Long + |
+Next increase time. + |
+
expand_count + |
+Integer + |
+Number of increases. + |
+
expand_effect_time + |
+Long + |
+Interval between temporary increases. + |
+
expand_interval_time + |
+Long + |
+Time to the next increase. + |
+
max_expand_count + |
+Integer + |
+Maximum number of increases. + |
+
task_running + |
+Boolean + |
+Whether the task is running. + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}+
Status code: 200
+The specified instance is queried successfully.
+{ + "publicip_id" : null, + "vpc_name" : "dcs-beta", + "charging_mode" : 0, + "enterprise_project_name" : "default", + "vpc_id" : "5e37b3be-950a-48e1-b498-65b63d336481", + "user_name" : "clouduser", + "created_at" : "2022-08-29T08:53:47.319Z", + "description" : null, + "cache_mode" : "ha", + "security_group_id" : "securityGroupId", + "enable_ssl" : false, + "max_memory" : 128, + "publicip_address" : null, + "capacity" : 0, + "maintain_begin" : "18:00:00", + "engine" : "Redis", + "maintain_end" : "19:00:00", + "capacity_minor" : ".125", + "service_upgrade" : false, + "subnet_name" : "dcs-beta", + "no_password_access" : "true", + "service_task_id" : null, + "ip" : "192.168.0.251", + "subnet_cidr" : "192.168.0.0/24", + "used_memory" : 2, + "security_group_name" : "securityGroupId", + "instance_backup_policy" : null, + "az_codes" : [ "xx-xxxxx-xx" ], + "available_zones" : [ "d539378ec1314c85b76fefa3f7071458" ], + "access_user" : null, + "enterprise_project_id" : "0", + "instance_id" : "a4c545cd-10b2-4efc-b0ab-a9b554ca0621", + "enable_publicip" : false, + "port" : 6379, + "user_id" : "d53977d1adfb49c5b025ba7d33a13fd7", + "domain_name" : "redis-a4c545cd-10b2-4efc-b0ab-a9b554ca0621.dcs.example.com", + "name" : "dcs-billing", + "spec_code" : "redis.ha.xu1.tiny.r2.128", + "subnet_id" : "a4112635-3ec0-471c-95c3-5cf49b9533af", + "engine_version" : "5.0", + "order_id" : null, + "status" : "RUNNING", + "features" : { + "support_acl" : true, + "support_transparent_client_ip" : true, + "support_ssl" : false, + "support_audit_log" : false + }, + "domain_name_info" : { + "support_public_resolve" : true, + "is_latest_rules" : true, + "zone_name" : "dcs.example.com", + "history_domain_names" : null + }, + "transparent_client_ip_enable" : true, + "sub_status" : "normal", + "cpu_type" : "x86_64", + "cloud_service_type_code" : "hws.service.type.dcs", + "cloud_resource_type_code" : "hws.resource.type.dcs3", + "inquery_spec_code" : "redis.ha.xu1.tiny.r2.128" +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+The specified instance is queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query SSL encryption of an instance. This API is only supported by DCS Redis 6.0 instances.
+GET /v2/{project_id}/instances/{instance_id}/ssl
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details, see Obtaining a Project ID. + |
+
instance_id + |
+Yes + |
+String + |
+Instance ID. + |
+
None
+Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
enabled + |
+Boolean + |
+Enabling or disabling SSL. +Enumeration values: +
|
+
ip + |
+String + |
+IP address used when SSL is enabled. + |
+
port + |
+String + |
+Port used when SSL is enabled. + |
+
domain_name + |
+String + |
+Domain name used when SSL is enabled. + |
+
ssl_expired_at + |
+String + |
+SSL certificate validity period (UTC time). + |
+
ssl_validated + |
+Boolean + |
+Whether the SSL certificate is valid. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_msg + |
+String + |
+Error message. +Maximum: 1024 + |
+
error_code + |
+String + |
+Error code. +Maximum: 9 + |
+
error_ext_msg + |
+String + |
+Extended error information. This parameter is not used currently and is set to null. +Maximum: 1024 + |
+
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/ssl+
Status code: 200
+Instance SSL queried successfully.
+{ + "enabled" : true, + "ip" : "192.168.0.5", + "port" : "6379", + "domain_name" : "redis-553a2516-b865-4159-b774-204dc0a36e37.dcs.example.com:6379", + "ssl_expired_at" : "2022-06-15T02:21:18.669Z", + "ssl_validated" : true +}+
Status code: 400
+Invalid request.
+{ + "error_code" : "DCS.4201", + "error_msg" : "Do not support SSL." +}+
Status code: 500
+Internal service error.
+{ + "error_code" : "DCS.5010", + "error_msg" : "Failed to operate SSL in database." +}+
Status Code + |
+Description + |
+
---|---|
200 + |
+Instance SSL queried successfully. + |
+
400 + |
+Invalid request. + |
+
500 + |
+Internal service error. + |
+
See Error Codes.
+This API is used to query the IP address whitelist of a specific instance.
+This API is used to query the IP address whitelist of a specific instance.
GET /v2/{project_id}/instance/{instance_id}/whitelist
+GET /v2/{project_id}/instance/{instance_id}/whitelist
-Parameter +
Request ParametersNone +Request ParametersNone Response ParametersStatus code: 200 +Response ParametersStatus code: 200 -
|
---|