Data Masking Policies - Get
データベース データ マスク ポリシーを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/Default?api-version=2014-04-01
URI パラメーター
| Name | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
database
|
path | True |
string |
データベースの名前。 |
|
data
|
path | True |
データ マスク ルールが適用されるデータベースの名前。 |
|
|
resource
|
path | True |
string |
リソースを含むリソース グループの名前。 この値は、Azure Resource Manager API またはポータルから取得できます。 |
|
server
|
path | True |
string |
サーバーの名前。 |
|
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
|
api-version
|
query | True |
string |
要求に使用する API バージョン。 |
応答
| Name | 型 | 説明 |
|---|---|---|
| 200 OK |
わかりました |
例
Get data masking policy
要求のサンプル
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-331/dataMaskingPolicies/Default?api-version=2014-04-01
応答のサンプル
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-331/dataMaskingPolicies/Default",
"name": "Default",
"type": "Microsoft.Sql/servers/databases/dataMaskingPolicies",
"location": "Central US",
"kind": null,
"properties": {
"dataMaskingState": "Enabled",
"applicationPrincipals": "",
"exemptPrincipals": "",
"maskingLevel": ""
}
}
定義
| Name | 説明 |
|---|---|
|
Data |
データベース データ マスク ポリシーを表します。 |
|
Data |
データ マスク ルールが適用されるデータベースの名前。 |
|
Data |
データ マスク ポリシーの状態。 |
DataMaskingPolicy
データベース データ マスク ポリシーを表します。
| Name | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| kind |
string |
データ マスク ポリシーの種類。 メタデータ。Azure portal に使用されます。 |
| location |
string |
データ マスク ポリシーの場所。 |
| name |
string |
リソース名。 |
| properties.applicationPrincipals |
string |
アプリケーション プリンシパルの一覧。 これは従来のパラメーターであり、使用されなくなりました。 |
| properties.dataMaskingState |
データ マスク ポリシーの状態。 |
|
| properties.exemptPrincipals |
string |
除外プリンシパルの一覧。 データ マスク ポリシーが適用されないデータベース ユーザーのセミコロン区切りの一覧を指定します。 指定されたユーザーは、すべてのデータベース クエリをマスクせずにデータの結果を受け取ります。 |
| properties.maskingLevel |
string |
マスク レベル。 これは従来のパラメーターであり、使用されなくなりました。 |
| type |
string |
リソースの種類。 |
DataMaskingPolicyName
データ マスク ルールが適用されるデータベースの名前。
| 値 | 説明 |
|---|---|
| Default |
DataMaskingState
データ マスク ポリシーの状態。
| 値 | 説明 |
|---|---|
| Disabled | |
| Enabled |