All Products
Search
Document Center

Bastionhost:MoveResourceGroup

Last Updated:Mar 27, 2026

Moves a Bastionhost instance to a specified resource group.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ResourceId

string

Yes

The ID of the Bastionhost instance whose resource group you want to change.

Note

Call the DescribeInstances operation to obtain the ID of the Bastionhost instance.

bastionhost-cn-78v1gh****

ResourceGroupId

string

Yes

The ID of the destination resource group.

Note

Call the DescribeInstances operation to obtain the resource group ID of the Bastionhost instance.

rg-aekznp3oyo****

ResourceType

string

Yes

The resource type. Set the value to INSTANCE, which indicates that the resource is a Bastionhost instance.

INSTANCE

RegionId

string

Yes

The region ID of the Bastionhost instance.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. This is a unique identifier generated by Alibaba Cloud for the request. Use this ID to troubleshoot issues.

1DEEC28D-27B1-4358-B6DC-E1285AE655C5

Examples

Success response

JSON format

{
  "RequestId": "1DEEC28D-27B1-4358-B6DC-E1285AE655C5"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.