Bicep 資源定義
databaseAccounts/gremlinRoleDefinitions 資源類型可以使用以下目標的作進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要創建 Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions 資源,請將以下 Bicep 添加到範本中。
resource symbolicname 'Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions@2025-05-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
assignableScopes: [
'string'
]
id: 'string'
permissions: [
{
dataActions: [
'string'
]
id: 'string'
notDataActions: [
'string'
]
}
]
roleName: 'string'
type: 'string'
}
}
屬性值
Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| 名稱 | 資源名稱 | 字串 (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:databaseAccounts |
| 屬性 | 用於創建和更新 Azure Cosmos DB Gremlin 角色定義的屬性。 | GremlinRoleDefinitionResourceProperties |
GremlinRoleDefinitionResourceProperties
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| assignableScopes | 在 Gremlin 角色指派可以使用此角色定義建立的一組完整範圍。 這可讓整個資料庫帳戶或任何基礎資料庫/集合上套用此角色定義。 必須至少有一個專案。 高於資料庫帳戶的範圍無法強制執行為可指派的範圍。 請注意,可指派範圍中所參考的資源並不存在。 | 字串[] |
| 識別碼 | 角色定義的路徑識別碼。 | 字串 |
| 使用權限 | 透過此角色定義允許的作業集。 | PermissionAutoGenerated4 (許可權自動生成4) |
| 角色名稱 | 角色定義的用戶易記名稱。 資料庫帳戶必須是唯一的。 | 字串 |
| 型別 | 指出角色定義是內建還是使用者建立。 | “BuiltInRole” 'CustomRole' |
許可權自動生成4
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| 數據作 | 允許的數據動作陣列。 | 字串[] |
| 識別碼 | 許可權的標識碼。 | 字串 |
| notDataActions | 拒絕的數據動作陣列。 | 字串[] |
ARM 樣本資源定義
databaseAccounts/gremlinRoleDefinitions 資源類型可以使用以下目標的作進行部署:
使用範例
資源格式
要創建 Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions 資源,請將以下 JSON 添加到範本中。
{
"type": "Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions",
"apiVersion": "2025-05-01-preview",
"name": "string",
"properties": {
"assignableScopes": [ "string" ],
"id": "string",
"permissions": [
{
"dataActions": [ "string" ],
"id": "string",
"notDataActions": [ "string" ]
}
],
"roleName": "string",
"type": "string"
}
}
屬性值
Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | “2025-05-01-預覽” |
| 名稱 | 資源名稱 | 字串 (必要) |
| 屬性 | 用於創建和更新 Azure Cosmos DB Gremlin 角色定義的屬性。 | GremlinRoleDefinitionResourceProperties |
| 型別 | 資源類型 | “Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions” |
GremlinRoleDefinitionResourceProperties
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| assignableScopes | 在 Gremlin 角色指派可以使用此角色定義建立的一組完整範圍。 這可讓整個資料庫帳戶或任何基礎資料庫/集合上套用此角色定義。 必須至少有一個專案。 高於資料庫帳戶的範圍無法強制執行為可指派的範圍。 請注意,可指派範圍中所參考的資源並不存在。 | 字串[] |
| 識別碼 | 角色定義的路徑識別碼。 | 字串 |
| 使用權限 | 透過此角色定義允許的作業集。 | PermissionAutoGenerated4 (許可權自動生成4) |
| 角色名稱 | 角色定義的用戶易記名稱。 資料庫帳戶必須是唯一的。 | 字串 |
| 型別 | 指出角色定義是內建還是使用者建立。 | “BuiltInRole” 'CustomRole' |
許可權自動生成4
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| 數據作 | 允許的數據動作陣列。 | 字串[] |
| 識別碼 | 許可權的標識碼。 | 字串 |
| notDataActions | 拒絕的數據動作陣列。 | 字串[] |
Terraform (AzAPI 提供者) 資源定義
databaseAccounts/gremlinRoleDefinitions 資源類型可以使用以下目標的作進行部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
要創建 Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions 資源,請將以下 Terraform 添加到您的範本中。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions@2025-05-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
assignableScopes = [
"string"
]
id = "string"
permissions = [
{
dataActions = [
"string"
]
id = "string"
notDataActions = [
"string"
]
}
]
roleName = "string"
type = "string"
}
}
}
屬性值
Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| 名稱 | 資源名稱 | 字串 (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:databaseAccounts |
| 屬性 | 用於創建和更新 Azure Cosmos DB Gremlin 角色定義的屬性。 | GremlinRoleDefinitionResourceProperties |
| 型別 | 資源類型 | “Microsoft.DocumentDB/databaseAccounts/gremlinRoleDefinitions@2025-05-01-preview” |
GremlinRoleDefinitionResourceProperties
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| assignableScopes | 在 Gremlin 角色指派可以使用此角色定義建立的一組完整範圍。 這可讓整個資料庫帳戶或任何基礎資料庫/集合上套用此角色定義。 必須至少有一個專案。 高於資料庫帳戶的範圍無法強制執行為可指派的範圍。 請注意,可指派範圍中所參考的資源並不存在。 | 字串[] |
| 識別碼 | 角色定義的路徑識別碼。 | 字串 |
| 使用權限 | 透過此角色定義允許的作業集。 | PermissionAutoGenerated4 (許可權自動生成4) |
| 角色名稱 | 角色定義的用戶易記名稱。 資料庫帳戶必須是唯一的。 | 字串 |
| 型別 | 指出角色定義是內建還是使用者建立。 | “BuiltInRole” 'CustomRole' |
許可權自動生成4
| 名稱 | 說明 | 價值觀 |
|---|---|---|
| 數據作 | 允許的數據動作陣列。 | 字串[] |
| 識別碼 | 許可權的標識碼。 | 字串 |
| notDataActions | 拒絕的數據動作陣列。 | 字串[] |