GetVpcGatewayEndpointAttribute - 查詢網關終端節點的屬性

更新時間:
Copy as MD

調用GetVpcGatewayEndpointAttribute介面查詢網關終端節點的屬性。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

EndpointId

string

網關終端節點執行個體 ID。

vpce-bp1w1dmdqjpwul0v3****

RegionId

string

網關終端節點所在的地區 ID。

您可以通過調用 DescribeRegions 介面擷取地區 ID。

cn-hangzhou

返回參數

名稱

類型

描述

樣本值

object

請求 ID。

RequestId

string

請求 ID。

A1122D0F-7B3B-5445-BB19-17F27F97FE1C

EndpointId

string

網關終端節點執行個體 ID。

vpce-bp1w1dmdqjpwul0v3****

EndpointName

string

網關終端節點的名稱。

test

EndpointDescription

string

網關終端節點的描述資訊。

test

ServiceName

string

終端節點服務名稱。

com.aliyun.cn-hangzhou.oss

VpcId

string

網關終端節點所在的 VPC ID。

vpc-bp1nh86rugg01zol0****

PolicyDocument

string

雲端服務的存取原則。

{"Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "*" ], "Action" : [ "*" ], "Principal" : [ "*" ] } ] }

CreationTime

string

網關終端節點的建立時間。按照 ISO8601 標準表示,並需要使用 UTC 時間。格式為:YYYY-MM-DDThh:mm:ssZ。

2021-08-27T01:58:37Z

EndpointStatus

string

網關終端節點的狀態。取值:

  • Creating:建立中。

  • Created:已建立,正常狀態。

  • Modifying:修改中。

  • Associating:綁定中。

  • Dissociating:解除綁定中。

  • Deleting:刪除中。

Created

RouteTables

array

網關終端節點關聯的路由表 ID。

string

網關終端節點關聯的路由表 ID。

["vtb-bp1s6g17997knk6a3****", "vtb-bp12qsdjwm37kv679****"]

ResourceGroupId

string

網關終端節點所屬的資源群組 ID。

rg-acfmxvfvazb4p****

Tags

array<object>

標籤列表。

object

標籤列表。

Key

string

標籤鍵。

FinanceDept

Value

string

標籤值。

FinanceJoshua

樣本

正常返回樣本

JSON格式

{
  "RequestId": "A1122D0F-7B3B-5445-BB19-17F27F97FE1C",
  "EndpointId": "vpce-bp1w1dmdqjpwul0v3****",
  "EndpointName": "test",
  "EndpointDescription": "test",
  "ServiceName": "com.aliyun.cn-hangzhou.oss",
  "VpcId": "vpc-bp1nh86rugg01zol0****",
  "PolicyDocument": "{\"Version\" : \"1\",   \"Statement\" : [ {     \"Effect\" : \"Allow\",     \"Resource\" : [ \"*\" ],     \"Action\" : [ \"*\" ],     \"Principal\" : [ \"*\" ]   } ] }",
  "CreationTime": "2021-08-27T01:58:37Z",
  "EndpointStatus": "Created",
  "RouteTables": [
    "[\"vtb-bp1s6g17997knk6a3****\", \"vtb-bp12qsdjwm37kv679****\"]"
  ],
  "ResourceGroupId": "rg-acfmxvfvazb4p****",
  "Tags": [
    {
      "Key": "FinanceDept",
      "Value": "FinanceJoshua"
    }
  ]
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 ResourceNotFound.GatewayEndpoint The specified resource gateway endpoint is not found. 指定的GatewayEndpoint不存在
400 InvalidVpcId.NotFound Specified value of VpcId is not found in our record.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情