擷取Lindorm執行個體的訪問白名單。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
lindorm:GetInstanceIpWhiteList |
get |
*instance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceId |
string |
是 |
執行個體 ID,可調用 GetLindormInstanceList 介面擷取。 |
ld-bp1z3506imz2g**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| InstanceId |
string |
執行個體 ID。 |
ld-bp1z3506imz2f**** |
| RequestId |
string |
請求 ID。 |
1D1F6F4D-9203-53E7-84E9-5376B4657E63 |
| IpList |
array |
白名單 IP 位址列表。 |
|
|
string |
白名單 IP 位址。 |
192.168.0.0/24 |
|
| GroupList |
array<object> |
白名單分組列表。 |
|
|
object |
|||
| GroupName |
string |
白名單分組名稱。 |
test |
| SecurityIpList |
string |
白名單 IP 列表。 |
192.168.1.0/24 |
| AccessDeniedDetail |
string |
訪問被拒絕的詳細原因。 |
{"AuthAction":"xxx","AuthPrincipalDisplayName":"222","AuthPrincipalOwnerId":"111","AuthPrincipalType":"SubUser",,"NoPermissionType":"ImplicitDeny","PolicyType":"AccountLevelIdentityBasedPolicy","EncodedDiagnosticMessage":"xxxxxx"} |
樣本
正常返回樣本
JSON格式
{
"InstanceId": "ld-bp1z3506imz2f****",
"RequestId": "1D1F6F4D-9203-53E7-84E9-5376B4657E63",
"IpList": [
"192.168.0.0/24"
],
"GroupList": [
{
"GroupName": "test",
"SecurityIpList": "192.168.1.0/24"
}
],
"AccessDeniedDetail": "{\"AuthAction\":\"xxx\",\"AuthPrincipalDisplayName\":\"222\",\"AuthPrincipalOwnerId\":\"111\",\"AuthPrincipalType\":\"SubUser\",,\"NoPermissionType\":\"ImplicitDeny\",\"PolicyType\":\"AccountLevelIdentityBasedPolicy\",\"EncodedDiagnosticMessage\":\"xxxxxx\"}"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Lindorm.Errorcode.ParameterInvaild | The parameter is invalid. | |
| 400 | Instance.IsDeleted | The instance is deleted. | 操作失敗,該執行個體已刪除。 |
| 400 | Instance.IsNotValid | The instance is invalid. | 操作失敗,執行個體無效。 |
| 403 | Lindorm.Errorcode.OperationDenied | You are not authorized to operate on the specified resource. | |
| 403 | API.Forbidden | The API operation is forbidden in this environment. | 操作失敗,當前環境中該API無法使用。 |
| 403 | Lindorm.Errorcode.ServiceLinkedRoleNoPermission | No permission to create service linked role. | 操作失敗,請先申請建立服務關聯角色的許可權。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。