You need to enable JavaScript to run this app.
文档中心
专线连接

专线连接

复制全文
下载 pdf
专线网关
DescribeDirectConnectGatewayAttributes - 查询指定的专线网关
复制全文
下载 pdf
DescribeDirectConnectGatewayAttributes - 查询指定的专线网关
调用DescribeDirectConnectGatewayAttributes查询指定专线网关的详细信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:DescribeDirectConnectGatewayAttributes​
接口名称。当前 API 的名称为 DescribeDirectConnectGatewayAttributes。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
DirectConnectGatewayId String 必选 示例值:dcg-7qthudw0ll6jmc****​
要查询的专线网关的ID。​
您可调用DescribeDirectConnectGateways接口,查询专线网关的ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
AccountId String 示例值:21000*****​
专线网关所属账号的ID。​
​
DirectConnectGatewayId String 示例值:dcg-7qthudw0ll6jmc****​
专线网关的ID。​
​
DirectConnectGatewayName String 示例值:test​
专线网关的名称。​
​
Description String 示例值:This is a sample description​
专线网关的描述。​
​
CreationTime String 示例值:2021-04-09T08:36:47+08:00​
创建专线网关的时间。​
​
UpdateTime String 示例值:2021-04-10T09:18:28+08:00​
更新专线网关的时间。​
​
Status String 示例值:Available​
专线网关的状态。​
  • Creating:创建中​
  • Deleting:删除中​
  • Pending:配置中​
  • Available:可用​
​
BusinessStatus String 示例值:FinancialLocked​
专线网关是否被锁定。​
  • Normal:正常。​
  • FinancialLocked:被锁定。​
​
LockReason String 示例值:Financial​
专线网关被锁定的原因。​
  • unlock :解锁。​
  • financial: 因欠费被锁定。​
  • security: 因安全被锁定。​
​
OverdueTime String 示例值:2021-04-29 01:37:38​
资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。​
​
DeletedTime String 示例值:2021-04-30 01:37:38​
预期资源强制回收时间。 仅当资源因为欠费冻结,此参数才会有返回值,否则均返回空值。​
​
AssociateCens Object[] 示例值:-​
关联的CEN信息。​
CenId String 示例值:cen-23987fdc****​
CEN的ID。​
​
CenOwnerId String 示例值:122***023​
CEN的用户ID。​
​
CenStatus String 示例值:Attached​
实例在CEN中的状态。​
  • Attaching:加载中​
  • Attached:已加载​
​
​
Tags Object[] 示例值:-​
专线网关已添加的全部标签信息。​
Key String 示例值:k1​
标签键。​
​
Value String 示例值:v1​
标签值。​
​
​
EnableIpv6 Boolean 示例值:false​
是否支持IPv6。​
  • true:支持​
  • false:不支持​
​
ProjectName String 示例值:project-01​
专线网关所属的项目。​
​
BgpAsn Integer 示例值:137718​
专线网关的ASN。​
​
​
​
请求示例​
​
GET /?Action=DescribeDirectConnectGatewayAttributes&Version=2020-04-01&DirectConnectGatewayId=dcg-7qthudw0ll6jmc**** HTTP/1.1​
Host: directconnect.cn-beijing.volcengineapi.com​
X-Date: 20250804T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-beijing/directconnect/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "DescribeDirectConnectGatewayAttributes",​
"Version": "2020-04-01",​
"Service": "directconnect",​
"Region": "cn-north-1"​
},​
"Result": {​
"AccountId": "21000*****",​
"AssociateCens": [​
{​
"CenId": "cen-23987fdc****",​
"CenStatus": "Attached",​
"CenOwnerId": "122***023"​
}​
],​
"BgpAsn": 137718,​
"BusinessStatus": "FinancialLocked",​
"CreationTime": "2021-04-09T08:36:47+08:00",​
"DeletedTime": "2021-04-30 01:37:38",​
"Description": "This is a sample description",​
"DirectConnectGatewayId": "dcg-7qthudw0ll6jmc****",​
"DirectConnectGatewayName": "test",​
"EnableIpv6": true,​
"LockReason": "Financial",​
"OverdueTime": "2021-04-29 01:37:38",​
"ProjectName": "project-01",​
"Status": "Available",​
"Tags": [​
{​
"Key": "k1",​
"Value": "v1"​
}​
],​
"UpdateTime": "2021-04-10T09:18:28+08:00"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
404​
InvalidDirectConnectGateway.NotFound​
The specified direct connect gateway does not exist.​
指定的专线网关不存在。​
​
​
最近更新时间:2026.01.23 17:00:39
这个页面对您有帮助吗?
有用
有用
无用
无用