ModifyDBInstanceDiskType

Updated at:

Modifies the disk type of an ApsaraDB for MongoDB instance.

Operation description

  • This feature is not supported if the disk space is less than 40 GB.

  • Only Upgrade/Downgrade to the cloud_auto cloud disk type is supported.

  • The interval between two modifications of the IOPS provisioned performance for a single instance must be more than one hour. For more information, see Modify the performance configuration of an ESSD AutoPL cloud disk.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dds:ModifyDBInstanceDiskType

update

*Instance

acs:dds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DbInstanceStorageType

string

No

The new disk type. Valid values:

  • cloud_auto: ESSD AutoPL cloud disk.

Note

Prerequisites: The disk space of the instance must be no less than 40 GB before you call this operation. If the disk space is insufficient, call ModifyDBInstanceSpec to expand the disk first.

cloud_auto

ProvisionedIops

integer

No

The provisioned performance (IOPS). Valid values: 0 to 50,000.

Note

If DbInstanceStorageType is set to cloud_auto, this parameter is conditionally required and can be set to 0. If this parameter is not provided, the API returns InvalidParameter.

1960

DBInstanceId

string

Yes

The instance ID.

dds-bp1fa5efaa93****

AutoPay

boolean

No

Specifies whether to enable automatic payment. Valid values:

  • true: Automatic payment. Make sure that your account has sufficient balance.

  • false: Manual payment in the console. Log on to the ApsaraDB for MongoDB console. In the upper-right corner of the page, choose Expenses and Costs > Expenses and Costs. In the left-side navigation pane, choose Orders > My Orders. On the Orders tab, find the target order and complete the payment.

Default value: true.

true

BusinessInfo

string

No

The additional parameter for business information.

{“ActivityId":"000000000"}

CouponNo

string

No

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

youhuiquan_promotion_option_id_for_blank

ExtraParam

string

No

The additional parameter.

async

AutoRenew

string

No

Specifies whether to enable auto-renewal. Valid values:

  • true: Enables auto-renewal.

  • false: Disables auto-renewal.

Default value: false.

false

OrderType

string

No

The configuration change type. Valid values:

  • UPGRADE: Upgrades the configuration.

  • DOWNGRADE: Downgrades the configuration.

Note

This parameter is available only when the billing method of the instance is subscription.

UPGRADE

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

D8F1D721-6439-4257-A89C-F1E8E9C9****

OrderId

string

The order ID.

21012719476****

Examples

Success response

JSON format

{
  "RequestId": "D8F1D721-6439-4257-A89C-F1E8E9C9****",
  "OrderId": "21012719476****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.