All Products
Search
Document Center

ApsaraDB for MongoDB:DescribeRenewalPrice

Last Updated:Sep 03, 2024

Queries the price of renewing an ApsaraDB for MongoDB instance for one month.

Operation description

This operation is applicable to subscription instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dds:DescribeRenewalPriceget
  • Instance
    acs:dds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
BusinessInfostringNo

The business information. This is an additional parameter.

{“ActivityId":"000000000"}
CouponNostringNo

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

youhuiquan_promotion_option_id_for_blank
DBInstanceIdstringYes

The ID of the instance.

dds-bp12c5b040dc****

Response parameters

ParameterTypeDescriptionExample
object
Orderobject

The list of orders.

Couponsarray<object>

Details about the coupons.

object
Descriptionstring

The description of the coupon.

coupondemo
IsSelectedstring

Indicates whether the coupon was selected.

true
CouponNostring

The coupon number.

youhuiquan_promotion_option_id_for_blank
Namestring

The name of the coupon.

youhuiquan111
OriginalAmountfloat

The original price of the order.

1144.8
DiscountAmountfloat

The discount amount of the order.

1144.8
RuleIdsarray

The IDs of the matched rules.

string

The ID of the matched rule.

11111111
TradeAmountfloat

The actual price of the order.

0
Currencystring

The type of the currency. Valid values:

  • USD: United States dollar
  • JPY: Japanese Yen
USD
RequestIdstring

The ID of the request.

EFD65226-08CC-4C4D-B6A4-CB3C382F67B0
SubOrdersarray<object>

The rules matching the coupons.

object
OriginalAmountfloat

The original price of the order.

1144.8
DiscountAmountfloat

The discount amount of the order.

1144.8
RuleIdsarray

The IDs of the matched rules.

string

The ID of the matched rule.

11111111
TradeAmountfloat

The actual price of the order.

0
InstanceIdstring

The ID of the instance.

dds-bp12c5b040dc****
Rulesarray<object>

Details about the promotion rules.

object
RuleDescIdlong

The ID of the rule.

11111111
Titlestring

The title of the rule.

demo
Namestring

The name of the rule.

demoname

Examples

Sample success responses

JSONformat

{
  "Order": {
    "Coupons": {
      "Coupon": [
        {
          "Description": "coupondemo",
          "IsSelected": "true",
          "CouponNo": "youhuiquan_promotion_option_id_for_blank",
          "Name": "youhuiquan111"
        }
      ]
    },
    "OriginalAmount": 1144.8,
    "DiscountAmount": 1144.8,
    "RuleIds": {
      "RuleId": [
        "11111111"
      ]
    },
    "TradeAmount": 0,
    "Currency": "USD"
  },
  "RequestId": "EFD65226-08CC-4C4D-B6A4-CB3C382F67B0",
  "SubOrders": {
    "SubOrder": [
      {
        "OriginalAmount": 1144.8,
        "DiscountAmount": 1144.8,
        "RuleIds": {
          "RuleId": [
            "11111111"
          ]
        },
        "TradeAmount": 0,
        "InstanceId": "dds-bp12c5b040dc****"
      }
    ]
  },
  "Rules": {
    "Rule": [
      {
        "RuleDescId": 11111111,
        "Title": "demo",
        "Name": "demoname"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError message
400MissingParameterDBInstanceId is mandatory for this action.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-19The Error code has changedView Change Details