Queries the details of a created customer gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeCustomerGateway |
get |
*CustomerGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the customer gateway. You can call DescribeRegions to query region IDs. |
cn-shanghai |
| CustomerGatewayId |
string |
Yes |
The instance ID of the customer gateway. |
cgw-bp1pvpl9r9adju6l5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Asn |
integer |
The autonomous system number of the on-premises data center gateway device. |
65535 |
| RequestId |
string |
The request ID. |
A0457BC9-6C0F-4437-AB9D-FB2EABC1D6A2 |
| IpAddress |
string |
The IP address of the on-premises data center gateway device. |
139.32.XX.XX |
| Description |
string |
The description of the customer gateway. |
desctest |
| CustomerGatewayId |
string |
The instance ID of the customer gateway. |
cgw-bp1pvpl9r9adju6l5**** |
| CreateTime |
integer |
The timestamp when the customer gateway was created. Unit: milliseconds. The timestamp is in the UNIX format and represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1492747187000 |
| Name |
string |
The name of the customer gateway. |
nametest |
| AuthKey |
string |
The authentication key of the BGP routing protocol for the on-premises data center gateway device. |
AuthKey**** |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags bound to the customer gateway. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
| ResourceGroupId |
string |
The ID of the resource group to which the customer gateway belongs. You can call ListResourceGroups to query resource group information. |
rg-acfmzs372yg**** |
Examples
Success response
JSON format
{
"Asn": 65535,
"RequestId": "A0457BC9-6C0F-4437-AB9D-FB2EABC1D6A2",
"IpAddress": "139.32.XX.XX",
"Description": "desctest",
"CustomerGatewayId": "cgw-bp1pvpl9r9adju6l5****",
"CreateTime": 1492747187000,
"Name": "nametest",
"AuthKey": "AuthKey****",
"Tags": {
"Tag": [
{
"Key": "TagKey",
"Value": "TagValue"
}
]
},
"ResourceGroupId": "rg-acfmzs372yg****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | The error message returned because you are unauthorized to perform this operation on the specified resource. Acquire the required permissions and try again. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
| 404 | InvalidCustomerGatewayInstanceId.NotFound | The specified customer gateway instance id does not exist. | The specified customer gateway does not exist. Check whether the ID of the customer gateway is correct. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.