Microsoft.DocumentDB 資料庫帳戶/cassandraKeyspaces/吞吐量設定 2025-11-01-preview

Bicep 資源定義

databaseAccounts/cassandraKeyspaces/throughputSettings 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings@2025-11-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'default'
  properties: {
    resource: {
      autoscaleSettings: {
        autoUpgradePolicy: {
          throughputPolicy: {
            incrementPercent: int
            isEnabled: bool
          }
        }
        maxThroughput: int
      }
      throughput: int
      throughputBuckets: [
        {
          id: int
          isDefaultBucket: bool
          maxThroughputPercentage: int
        }
      ]
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings

名稱 Description 價值觀
身分識別 資源的身分識別。 ManagedServiceIdentity
位置 資源所屬資源群組的位置。 字串
名稱 資源名稱 'default' (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型資源的符號名稱:databaseAccounts/cassandraKeyspaces
properties 更新 Azure Cosmos DB 資源輸送量的屬性。 ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ARMResourceProperties標籤

名稱 Description 價值觀

AutoscaleSettingsResource

名稱 Description 價值觀
autoUpgradePolicy 的 Cosmos DB 資源自動升級原則 AutoUpgradePolicyResource
maxThroughput (最大輸送量) 表示最大輸送量容器可以相應增加至此數目。 int(必填)

AutoUpgradePolicyResource

名稱 Description 價值觀
throughputPolicy (輸送量策略) 表示服務必須遵守以進行自動升級的輸送量原則 ThroughputPolicyResource

ManagedServiceIdentity

名稱 Description 價值觀
型別 用於資源的身分識別類型。 類型 'SystemAssigned,UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 會從服務中移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ThroughputBucketResource

名稱 Description 價值觀
識別碼 表示輸送量貯體標識碼 int(必填)
isDefaultBucket 指出這是否為預設輸送量儲存貯體 布爾 (bool)
maxThroughputPercentage (最大輸送量百分比) 表示貯體可以使用的最大百分比輸送量 int(必填)

ThroughputPolicyResource

名稱 Description 價值觀
增量百分比 表示每次輸送量原則啟動時,輸送量可以增加的百分比。 int
isEnabled 判斷 ThroughputPolicy 是否為使用中 布爾 (bool)

ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource

名稱 Description 價值觀
autoscaleSettings 自動調整設定的 Cosmos DB 資源。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 AutoscaleSettingsResource
輸送量 Cosmos DB 資源輸送量的值。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 int
throughputBuckets 要套用至 Cosmos DB 容器的輸送量貯體限制陣列 ThroughputBucketResource[]

ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties

名稱 Description 價值觀
資源 資源輸送量的標準 JSON 格式 ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource (必要)

ARM 樣本資源定義

databaseAccounts/cassandraKeyspaces/throughputSettings 資源類型可以使用目標作業來部署:

使用範例

資源格式

若要建立 Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings",
  "apiVersion": "2025-11-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "resource": {
      "autoscaleSettings": {
        "autoUpgradePolicy": {
          "throughputPolicy": {
            "incrementPercent": "int",
            "isEnabled": "bool"
          }
        },
        "maxThroughput": "int"
      },
      "throughput": "int",
      "throughputBuckets": [
        {
          "id": "int",
          "isDefaultBucket": "bool",
          "maxThroughputPercentage": "int"
        }
      ]
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings

名稱 Description 價值觀
apiVersion API 版本 「2025-11-01-預覽」
身分識別 資源的身分識別。 ManagedServiceIdentity
位置 資源所屬資源群組的位置。 字串
名稱 資源名稱 'default' (必要)
properties 更新 Azure Cosmos DB 資源輸送量的屬性。 ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings”

ARMResourceProperties標籤

名稱 Description 價值觀

AutoscaleSettingsResource

名稱 Description 價值觀
autoUpgradePolicy 的 Cosmos DB 資源自動升級原則 AutoUpgradePolicyResource
maxThroughput (最大輸送量) 表示最大輸送量容器可以相應增加至此數目。 int(必填)

AutoUpgradePolicyResource

名稱 Description 價值觀
throughputPolicy (輸送量策略) 表示服務必須遵守以進行自動升級的輸送量原則 ThroughputPolicyResource

ManagedServiceIdentity

名稱 Description 價值觀
型別 用於資源的身分識別類型。 類型 'SystemAssigned,UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 會從服務中移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ThroughputBucketResource

名稱 Description 價值觀
識別碼 表示輸送量貯體標識碼 int(必填)
isDefaultBucket 指出這是否為預設輸送量儲存貯體 布爾 (bool)
maxThroughputPercentage (最大輸送量百分比) 表示貯體可以使用的最大百分比輸送量 int(必填)

ThroughputPolicyResource

名稱 Description 價值觀
增量百分比 表示每次輸送量原則啟動時,輸送量可以增加的百分比。 int
isEnabled 判斷 ThroughputPolicy 是否為使用中 布爾 (bool)

ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource

名稱 Description 價值觀
autoscaleSettings 自動調整設定的 Cosmos DB 資源。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 AutoscaleSettingsResource
輸送量 Cosmos DB 資源輸送量的值。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 int
throughputBuckets 要套用至 Cosmos DB 容器的輸送量貯體限制陣列 ThroughputBucketResource[]

ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties

名稱 Description 價值觀
資源 資源輸送量的標準 JSON 格式 ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource (必要)

Terraform (AzAPI 提供者) 資源定義

databaseAccounts/cassandraKeyspaces/throughputSettings 資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

若要建立 Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings@2025-11-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      resource = {
        autoscaleSettings = {
          autoUpgradePolicy = {
            throughputPolicy = {
              incrementPercent = int
              isEnabled = bool
            }
          }
          maxThroughput = int
        }
        throughput = int
        throughputBuckets = [
          {
            id = int
            isDefaultBucket = bool
            maxThroughputPercentage = int
          }
        ]
      }
    }
  }
}

屬性值

Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings

名稱 Description 價值觀
身分識別 資源的身分識別。 ManagedServiceIdentity
位置 資源所屬資源群組的位置。 字串
名稱 資源名稱 'default' (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:databaseAccounts/cassandraKeyspaces
properties 更新 Azure Cosmos DB 資源輸送量的屬性。 ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties (必要)
tags 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings@2025-11-01-preview”

ARMResourceProperties標籤

名稱 Description 價值觀

AutoscaleSettingsResource

名稱 Description 價值觀
autoUpgradePolicy 的 Cosmos DB 資源自動升級原則 AutoUpgradePolicyResource
maxThroughput (最大輸送量) 表示最大輸送量容器可以相應增加至此數目。 int(必填)

AutoUpgradePolicyResource

名稱 Description 價值觀
throughputPolicy (輸送量策略) 表示服務必須遵守以進行自動升級的輸送量原則 ThroughputPolicyResource

ManagedServiceIdentity

名稱 Description 價值觀
型別 用於資源的身分識別類型。 類型 'SystemAssigned,UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 會從服務中移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ManagedServiceIdentityUserAssignedIdentities

名稱 Description 價值觀

ThroughputBucketResource

名稱 Description 價值觀
識別碼 表示輸送量貯體標識碼 int(必填)
isDefaultBucket 指出這是否為預設輸送量儲存貯體 布爾 (bool)
maxThroughputPercentage (最大輸送量百分比) 表示貯體可以使用的最大百分比輸送量 int(必填)

ThroughputPolicyResource

名稱 Description 價值觀
增量百分比 表示每次輸送量原則啟動時,輸送量可以增加的百分比。 int
isEnabled 判斷 ThroughputPolicy 是否為使用中 布爾 (bool)

ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource

名稱 Description 價值觀
autoscaleSettings 自動調整設定的 Cosmos DB 資源。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 AutoscaleSettingsResource
輸送量 Cosmos DB 資源輸送量的值。 需要輸送量或需要 autoscaleSettings,但不需要兩者。 int
throughputBuckets 要套用至 Cosmos DB 容器的輸送量貯體限制陣列 ThroughputBucketResource[]

ThroughputSettingsUpdatePropertiesOrThroughputSettingsGetProperties

名稱 Description 價值觀
資源 資源輸送量的標準 JSON 格式 ThroughputSettingsResourceOrThroughputSettingsGetPropertiesResource (必要)