

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在混合存取模式中檢視主體和資源
<a name="view-hybrid-access"></a>

 請依照下列步驟，在混合存取模式中檢視資料庫、資料表和主體。

------
#### [ Console ]

1. 登入 Lake Formation 主控台，網址為 https：//[https://console.aws.amazon.com/lakeformation/](https://console.aws.amazon.com/lakeformation/)。

1. 在**許可**下，選擇**混合存取模式**。

1.  **混合存取模式**頁面顯示目前處於混合存取模式的資源和主體。

------
#### [ AWS CLI ]

 下列範例顯示如何列出處於混合存取模式的所有選擇加入主體和資源。

```
      
aws lakeformation list-lake-formation-opt-ins
```

 下列範例顯示如何列出特定委託人資源對的選擇。

```
aws lakeformation list-lake-formation-opt-ins --cli-input-json file://file path

json:
{
    "Principal": {
        "DataLakePrincipalIdentifier": "arn:aws:iam::<account-id>:role/<role name>"
    },
    "Resource": {
        "Table": {
            "CatalogId": "<account-id>",
            "DatabaseName": "<database name>",
            "Name": "<table name>"
          }
    }
}
```

------