Grafana - Create
Grafana リソースのワークスペースを作成または更新します。 この API はべき等であるため、ユーザーは新しい grafana を作成するか、既存の grafana を更新できます。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}?api-version=2024-10-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前では大文字と小文字が区別されません。 |
subscription
|
path | True |
string minLength: 1 |
ターゲット サブスクリプションの ID。 |
workspace
|
path | True |
string pattern: ^[a-zA-Z][a-z0-9A-Z-]{0,28}[a-z0-9A-Z]$ |
Azure Managed Grafana のワークスペース名。 |
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
名前 | 型 | 説明 |
---|---|---|
identity |
grafana リソースのマネージド ID。 |
|
location |
string |
grafana リソースが存在する地理的な場所 |
properties |
grafana リソースに固有のプロパティ。 |
|
sku |
grafana リソースの SKU。 |
|
tags |
object |
grafana リソースのタグ。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
わかりました。 Grafana リソースのワークスペースを正常に作成しました。 |
|
201 Created |
作成が開始されました。 操作が正常に開始され、非同期的に完了します。 ヘッダー Azure-AsyncOperation: string |
|
Other Status Codes |
失敗した操作のエラーの詳細を返す、すべての Azure Resource Manager API の一般的なエラー応答。 |
例
Grafana_Create
要求のサンプル
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Dashboard/grafana/myWorkspace?api-version=2024-10-01
{
"sku": {
"name": "Standard"
},
"properties": {
"publicNetworkAccess": "Enabled",
"zoneRedundancy": "Enabled",
"apiKey": "Enabled",
"deterministicOutboundIP": "Enabled",
"grafanaConfigurations": {
"smtp": {
"enabled": true,
"host": "smtp.sendemail.com:587",
"user": "username",
"password": "<password>",
"fromAddress": "test@sendemail.com",
"fromName": "emailsender",
"startTLSPolicy": "OpportunisticStartTLS",
"skipVerify": true
},
"snapshots": {
"externalEnabled": true
},
"users": {
"viewersCanEdit": true
},
"security": {
"csrfAlwaysCheck": false
}
},
"grafanaIntegrations": {
"azureMonitorWorkspaceIntegrations": [
{
"azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
}
]
},
"enterpriseConfigurations": {
"marketplacePlanId": "myPlanId",
"marketplaceAutoRenew": "Enabled"
},
"grafanaPlugins": {
"sample-plugin-id": {}
},
"grafanaMajorVersion": "9"
},
"identity": {
"type": "SystemAssigned"
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
応答のサンプル
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
"name": "myWorkspace",
"type": "Microsoft.Dashboard/grafana",
"sku": {
"name": "Standard"
},
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "9.4.5",
"endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com",
"zoneRedundancy": "Enabled",
"apiKey": "Enabled",
"deterministicOutboundIP": "Enabled",
"outboundIPs": [
"192.168.0.1",
"192.168.0.2"
],
"publicNetworkAccess": "Enabled",
"autoGeneratedDomainNameLabelScope": "TenantReuse",
"grafanaConfigurations": {
"smtp": {
"enabled": true,
"host": "smtp.sendemail.com:587",
"user": "username",
"fromAddress": "test@sendemail.com",
"fromName": "emailsender",
"startTLSPolicy": "OpportunisticStartTLS",
"skipVerify": true
},
"snapshots": {
"externalEnabled": true
},
"users": {
"viewersCanEdit": true
},
"security": {
"csrfAlwaysCheck": false
}
},
"grafanaIntegrations": {
"azureMonitorWorkspaceIntegrations": [
{
"azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
}
]
},
"enterpriseConfigurations": {
"marketplacePlanId": "myPlanId",
"marketplaceAutoRenew": "Enabled"
},
"grafanaPlugins": {
"sample-plugin-id": {
"pluginId": "sample-plugin-id"
}
},
"grafanaMajorVersion": "9"
},
"identity": {
"type": "SystemAssigned"
},
"tags": {
"Environment": "Dev"
},
"location": "West US",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-03T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/locations/eastus2/operationStatuses/sample-op-status?api-version=2024-10-01
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
"name": "myWorkspace",
"type": "Microsoft.Dashboard/grafana",
"sku": {
"name": "Standard"
},
"properties": {
"provisioningState": "Accepted",
"grafanaVersion": "9.4.5",
"endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com",
"zoneRedundancy": "Enabled",
"apiKey": "Enabled",
"deterministicOutboundIP": "Enabled",
"publicNetworkAccess": "Enabled",
"autoGeneratedDomainNameLabelScope": "TenantReuse",
"grafanaConfigurations": {
"smtp": {
"enabled": true,
"host": "smtp.sendemail.com:587",
"user": "username",
"fromAddress": "test@sendemail.com",
"fromName": "emailsender",
"startTLSPolicy": "OpportunisticStartTLS",
"skipVerify": true
},
"snapshots": {
"externalEnabled": true
},
"users": {
"viewersCanEdit": true
},
"security": {
"csrfAlwaysCheck": false
}
},
"grafanaIntegrations": {
"azureMonitorWorkspaceIntegrations": [
{
"azureMonitorWorkspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace"
}
]
},
"grafanaMajorVersion": "9"
},
"tags": {
"Environment": "Dev"
},
"location": "West US",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-02-03T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
}
}
定義
名前 | 説明 |
---|---|
Api |
|
Auto |
DNS 確定的な名前ハッシュ計算のスコープ |
Azure |
Azure Monitor ワークスペースの統合。 |
created |
リソースを作成した ID の種類。 |
Deterministic |
|
Enterprise |
Grafana インスタンスのエンタープライズ設定 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Grafana |
Grafana インスタンスのサーバー構成 |
Grafana |
GrafanaIntegrations は、一般的な監視シナリオ用のバンドルされた監視エクスペリエンス (事前構成済みのデータ ソース、カスタマイズされた Grafana ダッシュボード、アラートの既定値など) です。 |
Grafana |
Grafana のプラグイン |
Managed |
grafana リソースの種類。 |
Managed |
grafana リソースに固有のプロパティ。 |
Managed |
マネージド サービス ID (システム割り当て ID またはユーザー割り当て ID) |
Managed |
マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。 |
Marketplace |
Enterprise サブスクリプションの AutoRenew 設定 |
Private |
プライベート エンドポイント リソース。 |
Private |
プライベート エンドポイント接続リソース。 |
Private |
現在のプロビジョニング状態。 |
Private |
プライベート エンドポイント接続の状態。 |
Private |
サービス コンシューマーとプロバイダー間の接続の状態に関する情報のコレクション。 |
Provisioning |
|
Public |
パブリック インターフェイス経由でトラフィックを有効または無効にする状態を示します。 |
Resource |
|
Security |
Grafana のセキュリティ設定 |
Smtp |
電子メール サーバーの設定。 https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp |
Snapshots |
Grafana Snapshots の設定 |
Start |
SMTP 構成の StartTLSPolicy 設定 https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy |
system |
リソースの作成と最後の変更に関連するメタデータ。 |
User |
ユーザー割り当て ID プロパティ |
Users |
Grafana ユーザー設定 |
Zone |
ApiKey
値 | 説明 |
---|---|
Disabled | |
Enabled |
AutoGeneratedDomainNameLabelScope
DNS 確定的な名前ハッシュ計算のスコープ
値 | 説明 |
---|---|
TenantReuse |
AzureMonitorWorkspaceIntegration
Azure Monitor ワークスペースの統合。
名前 | 型 | 説明 |
---|---|---|
azureMonitorWorkspaceResourceId |
string |
接続されている Azure Monitor ワークスペースのリソース ID。 |
createdByType
リソースを作成した ID の種類。
値 | 説明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DeterministicOutboundIP
値 | 説明 |
---|---|
Disabled | |
Enabled |
EnterpriseConfigurations
Grafana インスタンスのエンタープライズ設定
名前 | 型 | 説明 |
---|---|---|
marketplaceAutoRenew |
Enterprise サブスクリプションの AutoRenew 設定 |
|
marketplacePlanId |
string |
Enterprise プラグインの Azure Marketplace サブスクリプションのプラン ID |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
名前 | 型 | 説明 |
---|---|---|
info |
object |
追加情報。 |
type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
名前 | 型 | 説明 |
---|---|---|
additionalInfo |
エラーの追加情報。 |
|
code |
string |
エラー コード。 |
details |
エラーの詳細。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
名前 | 型 | 説明 |
---|---|---|
error |
エラー オブジェクト。 |
GrafanaConfigurations
Grafana インスタンスのサーバー構成
名前 | 型 | 説明 |
---|---|---|
security |
Grafana のセキュリティ設定 |
|
smtp |
電子メール サーバーの設定。 https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp |
|
snapshots |
Grafana Snapshots の設定 |
|
users |
Grafana ユーザー設定 |
GrafanaIntegrations
GrafanaIntegrations は、一般的な監視シナリオ用のバンドルされた監視エクスペリエンス (事前構成済みのデータ ソース、カスタマイズされた Grafana ダッシュボード、アラートの既定値など) です。
名前 | 型 | 説明 |
---|---|---|
azureMonitorWorkspaceIntegrations |
Azure Monitor ワークスペースの統合。 |
GrafanaPlugin
Grafana のプラグイン
名前 | 型 | 説明 |
---|---|---|
pluginId |
string |
Grafana プラグイン ID |
ManagedGrafana
grafana リソースの種類。
名前 | 型 | 説明 |
---|---|---|
id |
string |
grafana リソースの ARM ID |
identity |
grafana リソースのマネージド ID。 |
|
location |
string |
grafana リソースが存在する地理的な場所 |
name |
string |
grafana リソースの名前。 |
properties |
grafana リソースに固有のプロパティ。 |
|
sku |
grafana リソースの SKU。 |
|
systemData |
この grafana リソースに関連するシステム メタデータ。 |
|
tags |
object |
grafana リソースのタグ。 |
type |
string |
grafana リソースの種類。 |
ManagedGrafanaProperties
grafana リソースに固有のプロパティ。
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
apiKey | Disabled |
Grafana インスタンスの API キー設定。 |
|
autoGeneratedDomainNameLabelScope |
DNS 確定的な名前ハッシュ計算のスコープ。 |
||
deterministicOutboundIP | Disabled |
Grafana インスタンスが決定論的送信 IP を使用するかどうか。 |
|
endpoint |
string |
Grafana インスタンスのエンドポイント。 |
|
enterpriseConfigurations |
Grafana インスタンスのエンタープライズ設定 |
||
grafanaConfigurations |
Grafana インスタンスのサーバー構成 |
||
grafanaIntegrations |
GrafanaIntegrations は、一般的な監視シナリオ用のバンドルされた監視エクスペリエンス (事前構成済みのデータ ソース、カスタマイズされた Grafana ダッシュボード、アラートの既定値など) です。 |
||
grafanaMajorVersion |
string |
ターゲットとなる主要な Grafana ソフトウェア バージョン。 |
|
grafanaPlugins |
<string,
Grafana |
Grafana インスタンスのインストール済みプラグインの一覧。 キーはプラグイン ID、値はプラグイン定義です。 |
|
grafanaVersion |
string |
Grafana ソフトウェア バージョン。 |
|
outboundIPs |
string[] |
deterministicOutboundIP が有効になっている場合の送信 IP の一覧。 |
|
privateEndpointConnections |
Grafana インスタンスのプライベート エンドポイント接続。 |
||
provisioningState |
リソースのプロビジョニング状態。 |
||
publicNetworkAccess | Enabled |
パブリック インターフェイス経由でトラフィックを有効または無効にする状態を示します。 |
|
zoneRedundancy | Disabled |
Grafana インスタンスのゾーン冗長設定。 |
ManagedServiceIdentity
マネージド サービス ID (システム割り当て ID またはユーザー割り当て ID)
名前 | 型 | 説明 |
---|---|---|
principalId |
string (uuid) |
システム割り当て ID のサービス プリンシパル ID。 このプロパティは、システム割り当て ID にのみ提供されます。 |
tenantId |
string (uuid) |
システム割り当て ID のテナント ID。 このプロパティは、システム割り当て ID にのみ提供されます。 |
type |
マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned ID |
ManagedServiceIdentityType
マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。
値 | 説明 |
---|---|
None | |
SystemAssigned | |
SystemAssigned,UserAssigned | |
UserAssigned |
MarketplaceAutoRenew
Enterprise サブスクリプションの AutoRenew 設定
値 | 説明 |
---|---|
Disabled | |
Enabled |
PrivateEndpoint
プライベート エンドポイント リソース。
名前 | 型 | 説明 |
---|---|---|
id |
string |
プライベート エンドポイントの ARM 識別子 |
PrivateEndpointConnection
プライベート エンドポイント接続リソース。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
リソースの名前 |
properties.groupIds |
string[] |
プライベート エンドポイント接続グループ ID。 |
properties.privateEndpoint |
プライベート エンドポイントのリソース。 |
|
properties.privateLinkServiceConnectionState |
サービス コンシューマーとプロバイダー間の接続の状態に関する情報のコレクション。 |
|
properties.provisioningState |
プライベート エンドポイント接続リソースのプロビジョニング状態。 |
|
systemData |
createdBy と modifiedBy 情報を含む Azure Resource Manager メタデータ。 |
|
type |
string |
リソースの種類。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
PrivateEndpointConnectionProvisioningState
現在のプロビジョニング状態。
値 | 説明 |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded |
PrivateEndpointServiceConnectionStatus
プライベート エンドポイント接続の状態。
値 | 説明 |
---|---|
Approved | |
Pending | |
Rejected |
PrivateLinkServiceConnectionState
サービス コンシューマーとプロバイダー間の接続の状態に関する情報のコレクション。
名前 | 型 | 説明 |
---|---|---|
actionsRequired |
string |
サービス プロバイダーの変更にコンシューマーの更新が必要かどうかを示すメッセージ。 |
description |
string |
接続の承認/拒否の理由。 |
status |
接続がサービスの所有者によって承認/拒否/削除されたかどうかを示します。 |
ProvisioningState
値 | 説明 |
---|---|
Accepted | |
Canceled | |
Creating | |
Deleted | |
Deleting | |
Failed | |
NotSpecified | |
Succeeded | |
Updating |
PublicNetworkAccess
パブリック インターフェイス経由でトラフィックを有効または無効にする状態を示します。
値 | 説明 |
---|---|
Disabled | |
Enabled |
ResourceSku
名前 | 型 | 説明 |
---|---|---|
name |
string |
Security
Grafana のセキュリティ設定
名前 | 型 | 説明 |
---|---|---|
csrfAlwaysCheck |
boolean |
ログイン Cookie が要求に含まれていない場合でも CSRF チェックを実行するには、true に設定します (既定値は false)。 |
Smtp
電子メール サーバーの設定。 https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
enabled |
boolean |
False |
これを有効にして、Grafana が電子メールを送信できるようにします。 既定値は false です |
fromAddress |
string |
メール https://pkg.go.dev/net/mail#Address を送信するときに使用されるアドレス |
|
fromName |
string |
メールを送信するときに使用する名前。 既定値は "Azure Managed Grafana Notification" https://pkg.go.dev/net/mail#Address |
|
host |
string |
SMTP サーバーのホスト名とポート (例: test.email.net:587) |
|
password |
string |
SMTP 認証のパスワード。パスワードに # または ;が含まれている場合は、三重引用符で囲む必要があります |
|
skipVerify |
boolean |
SMTP サーバーの SSL を確認します。 既定値は false https://pkg.go.dev/crypto/tls#Config |
|
startTLSPolicy |
SMTP 構成の StartTLSPolicy 設定 https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy |
||
user |
string |
SMTP 認証のユーザー |
Snapshots
Grafana Snapshots の設定
名前 | 型 | 説明 |
---|---|---|
externalEnabled |
boolean |
外部スナップショット発行エンドポイントを無効にするには false に設定します |
StartTLSPolicy
SMTP 構成の StartTLSPolicy 設定 https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy
値 | 説明 |
---|---|
MandatoryStartTLS | |
NoStartTLS | |
OpportunisticStartTLS |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |
UserAssignedIdentity
ユーザー割り当て ID プロパティ
名前 | 型 | 説明 |
---|---|---|
clientId |
string (uuid) |
割り当てられた ID のクライアント ID。 |
principalId |
string (uuid) |
割り当てられた ID のプリンシパル ID。 |
Users
Grafana ユーザー設定
名前 | 型 | 説明 |
---|---|---|
viewersCanEdit |
boolean |
true に設定すると、閲覧者は探索にアクセスして使用し、アクセス権を持つダッシュボードのパネルで一時的な編集を実行できます。 変更を保存できません。 |
ZoneRedundancy
値 | 説明 |
---|---|
Disabled | |
Enabled |