調用UpdateVpcEndpointAttribute介面,修改終端節點的屬性
介面說明
UpdateVpcEndpointAttribute 介面不支援在同一個阿里雲帳號(主帳號)下並發修改終端節點的屬性。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
privatelink:UpdateVpcEndpointAttribute |
update |
*VpcEndpoint
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
要修改的終端節點的地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
eu-west-1 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
true |
| EndpointId |
string |
是 |
要修改的終端節點 ID。 |
ep-hp33b2e43fays7s8**** |
| EndpointName |
string |
否 |
終端節點的名稱。 名稱長度在 2~128 個字元之間,以英文字母或中文開頭,可包含數字、短劃線(-)和底線(_)。 |
test |
| EndpointDescription |
string |
否 |
終端節點的描述。 描述長度為 2~256 個字元,不能以 |
This is my Endpoint. |
| RegionId |
string |
是 |
要修改的終端節點的地區 ID。您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
eu-west-1 |
| 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 |
否 |
協議版本。取值:
說明
終端節點支援雙棧,要求其串連的終端節點服務及終端節點所處的 VPC 均支援雙棧。 枚舉值:
|
IPv4 |
| ZoneAffinityEnabled |
boolean |
否 |
||
| ResetPolicy |
boolean |
否 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationDenied.EndpointProtected | The operation is not allowed because of EndpointProtected. | 終端節點開啟託管保護,不允許操作。 |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | 當前終端節點未找到。 |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | 當前終端節點正在處理中,不允許操作。 |
| 400 | EndpointLocked | The specified Endpoint is locked. | 當前終端節點已經被鎖定。 |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | 終端節點串連正在處理中,不允許操作。 |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | 終端節點服務已經被刪除 |
| 400 | EndpointProtected | The specified Endpoint is protected. | 終端節點已經設定作業保護 |
| 400 | OperationDenied.EndpointPolicyNotSupport | The operation is not allowed because of EndpointPolicyNotSupport. | 操作不允許,終端節點策略不支援 |
| 400 | DependencyViolation.PrivateDnsName | The specified resource of %s depends on %s, so the operation cannot be completed. | 資源%s依賴於%s,導致操作無法完成 |
| 400 | OperationDenied.PrivateDomainStatusNotSupport | The operation is not allowed because of %s. | 由於%s,操作不支援 |
| 400 | OperationDenied.PrivateDomainNotSupport | The operation is not allowed because of PrivateDomainNotSupport. | 由於%s,操作不支援 |
| 400 | OperationDenied.NotSupportDualStackSwitchToIpv4 | AddressIpVersion does not support switching from DualStack to IPv4. | 終端節點AddressIpVersion不支援雙棧切單棧 |
| 400 | OperationDenied.EndpointServiceNotSupportDualstack | The specified endpoint service does not support dualstack. | 終端節點服務不支援雙棧。 |
| 400 | OperationDenied.VSwitchNotSupportDualstack | The specified VSwitch does not support dualstack. | VSwitch不支援雙棧。 |
| 400 | IllegalParam.AddressIpVersion | The specified parameter AddressIpVersion is invalid. | 指定的參數AddressIpVersion 不符合要求。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。