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 パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-z0-9]+(-[a-z0-9]+)* |
Cosmos DB データベース アカウント名。 |
container
|
path | True |
string |
Cosmos DB コンテナー名。 |
database
|
path | True |
string |
Cosmos DB データベース名。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前は大文字と小文字が区別されます。 |
subscription
|
path | True |
string minLength: 1 |
ターゲット サブスクリプションの ID。 |
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
名前 | 型 | 説明 |
---|---|---|
mergeParameters |
マージ操作のパラメーター。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
SQL コンテナーのマージ操作が正常に完了しました。 |
|
202 Accepted |
SQL コンテナーのマージ操作は非同期的に完了します。 ヘッダー
|
|
Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
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
定義
名前 | 説明 |
---|---|
Cloud |
サービスからのエラー応答。 |
Error |
エラー応答。 |
Merge |
マージ操作のパラメーター。 |
physical |
物理パーティションとそのプロパティの一覧。 |
Physical |
マージ操作によって返される物理パーティションとそのプロパティの一覧。 |
CloudError
サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
エラー応答。 |
ErrorResponse
エラー応答。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラー コード。 |
message |
string |
操作が失敗した理由を示すエラー メッセージ。 |
MergeParameters
マージ操作のパラメーター。
名前 | 型 | 説明 |
---|---|---|
isDryRun |
boolean |
操作が実際のマージ操作かシミュレーションかを指定します。 |
physicalPartitionStorageInfo
物理パーティションとそのプロパティの一覧。
名前 | 型 | 説明 |
---|---|---|
id |
string |
パーティションの一意識別子。 |
storageInKB |
number (double) |
物理パーティションのストレージ (KB 単位)。 |
PhysicalPartitionStorageInfoCollection
マージ操作によって返される物理パーティションとそのプロパティの一覧。
名前 | 型 | 説明 |
---|---|---|
physicalPartitionStorageInfoCollection |
物理パーティションとそのプロパティの一覧。 |