All Products
Search
Document Center

Bastionhost:ModifyInstance - Modify a Bastionhost instance

Last Updated:Sep 23, 2026

Modifies the configuration of a Bastionhost instance — such as the edition, asset quota, storage, and bandwidth — by calling the ModifyInstance operation from the Alibaba Cloud Billing Management API.

Bastionhost does not provide a dedicated API operation for modifying instance configurations. Use the ModifyInstance operation from the Alibaba Cloud Billing Management API instead.

Background

The Alibaba Cloud Billing Management API provides a set of common operations for managing Alibaba Cloud resources, including querying service prices, managing instances, and retrieving billing information. For a full list of supported operations, see API overview.

For information on how to call this operation, see Request structure.

Debugging

Run this operation in OpenAPI Explorer to simplify API calls. OpenAPI Explorer automatically calculates the signature and generates SDK example code after a successful call.

Request parameters

NameTypeRequiredDescriptionExample
ProductCodestringYesThe product code.bastionhost
ProductTypestringNoThe product type.bastionhost
SubscriptionTypestringYesThe billing method. Bastionhost uses the subscription billing method. Set this parameter to Subscription.Subscription
ModifyTypestringYesThe type of configuration change. Valid values: Upgrade, Downgrade. >
Note

Downgrade is in grayscale release. To use this feature, join the DingTalk group (ID: 33797269) and contact the product and technical team.

Upgrade
InstanceIdStringYesThe ID of the Bastionhost instance to modify.bastionhost-cn-****
ClientTokenstringNoA client token that ensures the idempotence of the request. If a previous request with the same client token is found, the server returns the same result.JASIOFKVNVIXXXXXX
Parameterobject[]NoThe list of configuration modules. Valid values of n: 1 to 100.—
└CodestringYesThe code of the nth module property. To specify multiple module properties, concatenate them in the n=1,2,3...n format.InstanceType
└ValuestringYesThe value of the nth module property.disk

Parameter settings

The following table describes the six required property groups for modifying a Bastionhost instance. Each group is passed as a Parameter.N.Code and Parameter.N.Value pair.

NameTypeRequiredExample valueDescription
Parameter.1.CodeStringYesRegionIdSet to RegionId to specify the region.
Parameter.1.ValueStringYescn-shanghaiThe ID of the region where the Bastionhost instance resides. Call DescribeRegions to get valid region IDs.
Parameter.2.CodeStringYesNetworkTypeSet to NetworkType to specify the network type.
Parameter.2.ValueStringYesvpcThe network type. Set to vpc for Virtual Private Cloud (VPC).
Parameter.3.CodeStringYesPlanCodeSet to PlanCode to specify the edition.
Parameter.3.ValueStringYescloudbastionThe edition of the Bastionhost instance. Valid values: cloudbastion (Basic Edition), cloudbastion_ha (Enterprise Edition).
Parameter.4.CodeStringYesLicenseCodeSet to LicenseCode to specify the asset quota.
Parameter.4.ValueStringYesbhah_ult_5000_assetThe asset quota of the Bastionhost instance. Valid values: bhah_ent_50_asset (50 assets, Basic or Enterprise Edition), bhah_ent_100_asset (100 assets, Basic or Enterprise Edition), bhah_ent_200_asset (200 assets, Basic or Enterprise Edition), bhah_ult_500_asset (500 assets, Basic or Enterprise Edition), bhah_ult_1000_asset (1,000 assets, Enterprise Edition only), bhah_ult_2000_asset (2,000 assets, Enterprise Edition only), bhah_ult_5000_asset (5,000 assets, Enterprise Edition only), bhah_ult_10000_asset (10,000 assets, Enterprise Edition only).
Parameter.5.CodeStringYesStorageSet to Storage to specify the storage capacity.
Parameter.5.ValueStringYes5The storage capacity of the Bastionhost instance, in TB. Valid values: 0 to 500.
Parameter.6.CodeStringYesBandwidthSet to Bandwidth to specify the bandwidth.
Parameter.6.ValueStringYes5

The bandwidth of the Bastionhost instance, in Mbit/s. Valid values: 0 to 200, in increments of 10.

Response parameters

NameTypeExampleDescription
CodeStringSuccessThe status code of the request.
DataStruct—The data returned for the request.
└InstanceIdStringbastionhost-cn-****The ID of the instance whose configuration was modified.
└OrderIdString2026532523****The ID of the order created for the configuration change.
MessageStringSuccessful!The response message.
RequestIdString6000EE23-274B-4E07-A697-FF2E999520A4The request ID.
SuccessBooleantrueIndicates whether the request was successful.

Examples

Sample successful response

XML format

<ModifyInstanceResponse>
      <Message>Successful!</Message>
      <RequestId>6000EE23-274B-4E07-A697-FF2E999520A4</RequestId>
      <Success>true</Success>
      <Code>Success</Code>
      <Data>
            <OrderId>2026532523****</OrderId>
      </Data>
</ModifyInstanceResponse>

JSON format

{
    "Message": "Successful!",
    "RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
    "Success": true,
    "Code": "Success",
    "Data": {
        "OrderId": "2026532523****"
    }
}