Get the route target group
Operation description
Get the information of the route target group instance.
Debugging
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:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| vpc:GetRouteTargetGroup | get | *RouteTargetGroup acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RouteTargetGroupId | string | Yes | ID of the route target group member instance. | rtg-xxxx |
| RegionId | string | Yes | ID of the region to which the route target group belongs. You can obtain the region ID by calling the DescribeRegions interface. | cn-hangzhou |
| ClientToken | string | No | Client token, used to ensure idempotence of the request. Generate a parameter value from your client and ensure that it is unique across different requests. ClientToken only supports ASCII characters. Note
If you do not specify this, the system automatically uses the RequestId of the API request as the ClientToken identifier. The RequestId may be different for each API request.
| 02fb3da4-130e-11e9-8e44-0016e04115b |
| Tag | array<object> | No | Tag information. | |
| object | No | Collection of resource tags. | ||
| Key | string | No | Resource tag key. Up to 20 tag keys are supported. If you need to pass this value, you cannot input an empty string. A tag key can have up to 128 characters and cannot start with | FinanceDept |
| Value | string | No | Resource tag value. Up to 20 tag values are supported. If you need to pass this value, you can input an empty string. A tag value can have up to 128 characters and cannot start with | FinanceJoshua |
Response parameters
Examples
Sample success responses
JSONformat
{
"RouteTargetGroupId": "rtg-xxxx",
"RouteTargetGroupName": "myRouteTargetGroupName",
"RouteTargetGroupDescription": "myRouteTargetGroupDescription",
"VpcId": "vpc-xxxx",
"ConfigMode": "Active-Standby",
"Status": "Available",
"RouteTargetMemberList": [
{
"MemberId": "ep-xxxx",
"MemberType": "GatewayLoadBalancerEndpoint",
"Weight": 100,
"HealthCheckStatus": "Normal",
"EnableStatus": "Enable"
}
],
"Tags": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
],
"RegionId": "cn-qingdao",
"RequestId": "1AE05898-06E5-4782-xxxxx",
"ResourceGroupId": "rg-acfmxazdjdhd****",
"CreateTime": "2025-12-30T06:40:50Z"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | ResourceNotFound.RouteTargetGroup | The specified resource of %s is not found. | The specified resource% s does not exist. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2026-01-04 | Add Operation | View Change Details |
