調用GetVpcEndpointAttribute介面,擷取終端節點屬性資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
privatelink:GetVpcEndpointAttribute |
get |
*VpcEndpoint
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
擷取屬性資訊的終端節點所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-huhehaote |
| EndpointId |
string |
是 |
擷取屬性資訊的終端節點 ID。 |
ep-hp33b2e43fays7s8**** |
| RegionId |
string |
是 |
擷取屬性資訊的終端節點所屬的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-huhehaote |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Payer |
string |
付費方。取值:
|
Endpoint |
| EndpointDomain |
string |
終端節點網域名稱。 |
ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com |
| RequestId |
string |
請求 ID。 |
8D8992C1-6712-423C-BAC5-E5E817484C6B |
| CreateTime |
string |
終端節點的建立時間。 |
2021-09-24T18:00:07Z |
| ResourceOwner |
boolean |
終端節點和終端節點服務是否同一帳號。取值:
|
true |
| EndpointBusinessStatus |
string |
終端節點的業務狀態。取值:
|
Normal |
| EndpointDescription |
string |
終端節點描述。 |
This is my Endpoint. |
| ServiceId |
string |
終端節點關聯的終端節點服務的 ID。 |
epsrv-hp3vpx8yqxblby3i**** |
| EndpointStatus |
string |
終端節點狀態。取值:
|
Active |
| VpcId |
string |
終端節點所屬的專用網路 ID。 |
vpc-fdfhkjafhjvcvdjf**** |
| EndpointName |
string |
終端節點名稱。 |
test |
| ZonePrivateIpAddressCount |
integer |
每個可用性區域 ENI 的私網 IP 的數量。僅取值:1。 |
1 |
| EndpointType |
string |
終端節點類型。取值:
|
Interface |
| ServiceName |
string |
終端節點關聯的終端節點服務的名稱。 |
com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo**** |
| Bandwidth |
integer |
終端節點的串連頻寬。單位:Mbps。 |
1024 |
| EndpointId |
string |
終端節點 ID。 |
ep-hp33b2e43fays7s8**** |
| RegionId |
string |
終端節點所屬的地區 ID。 |
cn-huhehaote |
| ConnectionStatus |
string |
終端節點串連狀態。取值:
|
Connected |
| ZoneAffinityEnabled |
boolean |
是否支援串連服務的終端節點網域名稱就近解析。取值:
|
true |
| ResourceGroupId |
string |
資源群組 ID。 |
rg-acfmz7nocpei*** |
| PolicyDocument |
string |
RAM 權限原則。關於策略定義的更多資訊,請參見權限原則基本元素。 |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": [ "oss:List*", "oss:PutObject", "oss:GetObject" ], "Resource": [ "acs:oss:oss-*:*:pvl-policy-test/policy-test.txt" ], "Principal": { "RAM": [ "acs:ram::14199xxxxxx:*" ] } } ] } |
| AddressIpVersion |
string |
協議版本。取值:
|
IPv4 |
| ServiceRegionId |
string |
||
| CrossRegionBandwidth |
integer |
樣本
正常返回樣本
JSON格式
{
"Payer": "Endpoint",
"EndpointDomain": "ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com",
"RequestId": "8D8992C1-6712-423C-BAC5-E5E817484C6B",
"CreateTime": "2021-09-24T18:00:07Z",
"ResourceOwner": true,
"EndpointBusinessStatus": "Normal",
"EndpointDescription": "This is my Endpoint.",
"ServiceId": "epsrv-hp3vpx8yqxblby3i****",
"EndpointStatus": "Active",
"VpcId": "vpc-fdfhkjafhjvcvdjf****",
"EndpointName": "test",
"ZonePrivateIpAddressCount": 1,
"EndpointType": "Interface",
"ServiceName": "com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo****",
"Bandwidth": 1024,
"EndpointId": "ep-hp33b2e43fays7s8****",
"RegionId": "cn-huhehaote",
"ConnectionStatus": "Connected",
"ZoneAffinityEnabled": true,
"ResourceGroupId": "rg-acfmz7nocpei***",
"PolicyDocument": "{\n \"Version\": \"1\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": [\n \"oss:List*\",\n \"oss:PutObject\",\n \"oss:GetObject\"\n ],\n \"Resource\": [\n \"acs:oss:oss-*:*:pvl-policy-test/policy-test.txt\"\n ],\n \"Principal\": {\n \"RAM\": [\n \"acs:ram::14199xxxxxx:*\"\n ]\n }\n }\n ]\n}",
"AddressIpVersion": "IPv4",
"ServiceRegionId": "",
"CrossRegionBandwidth": 0
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | EndpointNotFound | The specified Endpoint does not exist. | 當前終端節點未找到。 |
| 400 | EndpointConnectionNotFound | The specified endpoint connection does not exist. | 當前終端節點串連未找到。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。