次の方法で共有


Sql Resources - List Sql Container Partition Merge

SQL コンテナーのパーティションをマージします

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/partitionMerge?api-version=2025-05-01-preview

URI パラメーター

名前 / 必須 説明
accountName
path True

string

minLength: 3
maxLength: 50
pattern: ^[a-z0-9]+(-[a-z0-9]+)*

Cosmos DB データベース アカウント名。

containerName
path True

string

Cosmos DB コンテナー名。

databaseName
path True

string

Cosmos DB データベース名。

resourceGroupName
path True

string

minLength: 1
maxLength: 90

リソース グループの名前。 名前は大文字と小文字が区別されます。

subscriptionId
path True

string

minLength: 1

ターゲット サブスクリプションの ID。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

要求本文

名前 説明
mergeParameters

MergeParameters

マージ操作のパラメーター。

応答

名前 説明
200 OK

PhysicalPartitionStorageInfoCollection

SQL コンテナーのマージ操作が正常に完了しました。

202 Accepted

SQL コンテナーのマージ操作は非同期的に完了します。

ヘッダー

  • azure-AsyncOperation: string
  • location: string
Other Status Codes

CloudError

操作が失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

CosmosDBSqlContainerPartitionMerge

要求のサンプル

POST https://management.azure.com/subscriptions/subid/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/containers/containerName/partitionMerge?api-version=2025-05-01-preview

{
  "isDryRun": false
}

応答のサンプル

{
  "physicalPartitionStorageInfoCollection": [
    {
      "storageInKB": 333,
      "id": "0"
    },
    {
      "storageInKB": 305,
      "id": "1"
    },
    {
      "storageInKB": 368,
      "id": "177"
    },
    {
      "storageInKB": 96313,
      "id": "178"
    },
    {
      "storageInKB": 194,
      "id": "5"
    },
    {
      "storageInKB": 331,
      "id": "6"
    }
  ]
}
azure-AsyncOperation: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2025-05-01-preview
location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2025-05-01-preview

定義

名前 説明
CloudError

サービスからのエラー応答。

ErrorResponse

エラー応答。

MergeParameters

マージ操作のパラメーター。

physicalPartitionStorageInfo

物理パーティションとそのプロパティの一覧。

PhysicalPartitionStorageInfoCollection

マージ操作によって返される物理パーティションとそのプロパティの一覧。

CloudError

サービスからのエラー応答。

名前 説明
error

ErrorResponse

エラー応答。

ErrorResponse

エラー応答。

名前 説明
code

string

エラー コード。

message

string

操作が失敗した理由を示すエラー メッセージ。

MergeParameters

マージ操作のパラメーター。

名前 説明
isDryRun

boolean

操作が実際のマージ操作かシミュレーションかを指定します。

physicalPartitionStorageInfo

物理パーティションとそのプロパティの一覧。

名前 説明
id

string

パーティションの一意識別子。

storageInKB

number (double)

物理パーティションのストレージ (KB 単位)。

PhysicalPartitionStorageInfoCollection

マージ操作によって返される物理パーティションとそのプロパティの一覧。

名前 説明
physicalPartitionStorageInfoCollection

physicalPartitionStorageInfo[]

物理パーティションとそのプロパティの一覧。