Server DevOps Audit Settings - Get
サーバーの DevOps 監査設定を取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName}?api-version=2021-11-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
dev
|
path | True |
string |
devops 監査設定の名前。 これは常に "default" である必要があります。 |
resource
|
path | True |
string |
リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。 |
server
|
path | True |
string |
サーバーの名前。 |
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
api-version
|
query | True |
string |
要求で使用する API のバージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
サーバー DevOps 監査設定が正常に取得されました。 |
|
Other Status Codes |
エラー応答: ***
|
例
Get a server's DevOps audit settings
Sample Request
Sample Response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/devAuditTestRG/providers/Microsoft.Sql/servers/devOpsAuditTestSvr/devOpsAuditingSettings/default",
"name": "default",
"type": "Microsoft.Sql/servers/devOpsAuditingSettings",
"properties": {
"state": "Disabled",
"storageEndpoint": "",
"storageAccountSubscriptionId": "00000000-0000-0000-0000-000000000000",
"isAzureMonitorTargetEnabled": false
}
}
定義
名前 | 説明 |
---|---|
Blob |
監査の状態を指定します。 state が Enabled の場合、storageEndpoint または isAzureMonitorTargetEnabled が必要です。 |
created |
リソースを作成した ID の種類。 |
Server |
サーバー DevOps 監査設定。 |
system |
リソースの作成と最後の変更に関連するメタデータ。 |
BlobAuditingPolicyState
監査の状態を指定します。 state が Enabled の場合、storageEndpoint または isAzureMonitorTargetEnabled が必要です。
名前 | 型 | 説明 |
---|---|---|
Disabled |
string |
|
Enabled |
string |
createdByType
リソースを作成した ID の種類。
名前 | 型 | 説明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ServerDevOpsAuditingSettings
サーバー DevOps 監査設定。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソースの ID |
name |
string |
リソース名。 |
properties.isAzureMonitorTargetEnabled |
boolean |
DevOps 監査イベントを Azure Monitor に送信するかどうかを指定します。 イベントを Azure Monitor に送信するには、'State' を 'Enabled' に、'IsAzureMonitorTargetEnabled' を true に指定します。 REST API を使用して DevOps 監査を構成する場合は、マスター データベースに "DevOpsOperationsAudit" 診断ログ カテゴリを含む診断設定も作成する必要があります。 詳細については、「診断設定 REST API」または「診断設定 PowerShell」を参照してください。 |
properties.state |
監査の状態を指定します。 state が Enabled の場合、storageEndpoint または isAzureMonitorTargetEnabled が必要です。 |
|
properties.storageAccountAccessKey |
string |
監査ストレージ アカウントの識別子キーを指定します。 state が Enabled で storageEndpoint が指定されている場合、storageAccountAccessKey を指定しないと、SQL Server システム割り当てマネージド ID を使用してストレージにアクセスします。 マネージド ID 認証を使用するための前提条件:
|
properties.storageAccountSubscriptionId |
string |
BLOB ストレージ サブスクリプション ID を指定します。 |
properties.storageEndpoint |
string |
BLOB ストレージ エンドポイント (例: ) を指定します。 https://MyAccount.blob.core.windows.net state が Enabled の場合、storageEndpoint または isAzureMonitorTargetEnabled が必要です。 |
systemData |
ServerDevOpsAuditSettingsResource の SystemData。 |
|
type |
string |
リソースの種類。 |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |