文档

StopDBInstance - 暂停RDS实例

更新时间:

该接口用于暂停RDS实例。

接口说明

适用引擎

  • RDS MySQL
  • RDS PostgreSQL
  • RDS SQL Server

相关功能文档

注意 使用该接口前,请仔细阅读功能文档,确保完全了解使用接口的前提条件及使用后造成的影响后,再进行操作。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
rds:StopDBInstanceWrite
  • DBInstance
    acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}

请求参数

名称类型必填描述示例值
DBInstanceIdstring

实例 ID。可调用 DescribeDBInstances 获取。

rm-bp1q915x50h****
RegionIdstring

地域 ID。可调用 DescribeRegions 获取。

cn-hangzhou

返回参数

名称类型描述示例值
object

返回参数详情。

RequestIdstring

请求 ID。

A417FB41-A3D9-464E-AD0A-C7FE05C72E98

示例

正常返回示例

JSON格式

{
  "RequestId": "A417FB41-A3D9-464E-AD0A-C7FE05C72E98"
}

错误码

HTTP status code错误码错误信息描述
400InvalidStatus.FormatSpecified Status is not valid-
400EngineNotSupportedThe engine does not support the operation.当前引擎不支持此操作。
400ReadOnlyInstanceNotSupportSpecified ReadOnly Instance not support this operation.操作失败,只读实例不支持此操作。
400InvalidShareInstance.NotSupportThe share dbInstance is not support.共享型实例不支持
400ReadonlyInstanceNotSupportThe operation is not permitted due to type of the instance.指定的只读实例不支持此操作。
400InstanceHasReadOnlyInstanceNotSupportStopThe instance has read-only instance , stop is not supported实例有只读实例,不支持暂停实例
400Order.ComboInstanceNotAllowOperateA package instance is not allowed to operate independently.套餐实例不允许单独操作。
400Price.PricingPlanResultNotFoundPricing plan price result not found.定价计划价格结果没有找到。
400Order.NoRealNameAuthenticationYou have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication.您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈