From 3c9ddaffef57a57427263734fcbc8774c263fff5 Mon Sep 17 00:00:00 2001 From: kavskalyan Date: Tue, 10 Aug 2021 16:20:55 -0700 Subject: [PATCH 01/50] Adds base for updating Microsoft.DocumentDB from version stable/2021-06-15 to version 2021-09-15 --- .../stable/2021-09-15/cosmos-db.json | 8783 +++++++++++++++++ .../examples/CosmosDBBackupInformation.json | 23 + ...CosmosDBCassandraKeyspaceCreateUpdate.json | 36 + .../CosmosDBCassandraKeyspaceDelete.json | 13 + .../CosmosDBCassandraKeyspaceGet.json | 28 + .../CosmosDBCassandraKeyspaceList.json | 28 + ...DBCassandraKeyspaceMigrateToAutoscale.json | 29 + ...ndraKeyspaceMigrateToManualThroughput.json | 26 + ...osmosDBCassandraKeyspaceThroughputGet.json | 30 + ...osDBCassandraKeyspaceThroughputUpdate.json | 40 + .../CosmosDBCassandraTableCreateUpdate.json | 77 + .../CosmosDBCassandraTableDelete.json | 14 + .../examples/CosmosDBCassandraTableGet.json | 49 + .../examples/CosmosDBCassandraTableList.json | 49 + ...mosDBCassandraTableMigrateToAutoscale.json | 30 + ...ssandraTableMigrateToManualThroughput.json | 27 + .../CosmosDBCassandraTableThroughputGet.json | 31 + ...osmosDBCassandraTableThroughputUpdate.json | 39 + ...osmosDBCollectionGetMetricDefinitions.json | 41 + .../CosmosDBCollectionGetMetrics.json | 55 + .../examples/CosmosDBCollectionGetUsages.json | 29 + ...CosmosDBCollectionPartitionGetMetrics.json | 57 + .../CosmosDBCollectionPartitionGetUsages.json | 31 + ...DBCollectionPartitionRegionGetMetrics.json | 58 + ...osmosDBDatabaseAccountCheckNameExists.json | 10 + .../CosmosDBDatabaseAccountCreateMax.json | 214 + .../CosmosDBDatabaseAccountCreateMin.json | 98 + .../CosmosDBDatabaseAccountDelete.json | 12 + ...DatabaseAccountFailoverPriorityChange.json | 24 + .../examples/CosmosDBDatabaseAccountGet.json | 117 + ...DBDatabaseAccountGetMetricDefinitions.json | 39 + .../CosmosDBDatabaseAccountGetMetrics.json | 53 + .../CosmosDBDatabaseAccountGetUsages.json | 27 + .../examples/CosmosDBDatabaseAccountList.json | 115 + ...sDBDatabaseAccountListByResourceGroup.json | 85 + ...BDatabaseAccountListConnectionStrings.json | 13 + ...baseAccountListConnectionStringsMongo.json | 20 + .../CosmosDBDatabaseAccountListKeys.json | 18 + ...smosDBDatabaseAccountListReadOnlyKeys.json | 16 + .../CosmosDBDatabaseAccountOfflineRegion.json | 18 + .../CosmosDBDatabaseAccountOnlineRegion.json | 18 + .../CosmosDBDatabaseAccountPatch.json | 177 + .../CosmosDBDatabaseAccountRegenerateKey.json | 15 + ...smosDBDatabaseAccountRegionGetMetrics.json | 54 + .../CosmosDBDatabaseGetMetricDefinitions.json | 40 + .../examples/CosmosDBDatabaseGetMetrics.json | 54 + .../examples/CosmosDBDatabaseGetUsages.json | 28 + .../CosmosDBGremlinDatabaseCreateUpdate.json | 39 + .../CosmosDBGremlinDatabaseDelete.json | 13 + .../examples/CosmosDBGremlinDatabaseGet.json | 28 + .../examples/CosmosDBGremlinDatabaseList.json | 31 + ...osDBGremlinDatabaseMigrateToAutoscale.json | 29 + ...mlinDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBGremlinDatabaseThroughputGet.json | 30 + ...smosDBGremlinDatabaseThroughputUpdate.json | 40 + .../CosmosDBGremlinGraphCreateUpdate.json | 124 + .../examples/CosmosDBGremlinGraphDelete.json | 14 + .../examples/CosmosDBGremlinGraphGet.json | 69 + .../examples/CosmosDBGremlinGraphList.json | 72 + ...osmosDBGremlinGraphMigrateToAutoscale.json | 30 + ...GremlinGraphMigrateToManualThroughput.json | 27 + .../CosmosDBGremlinGraphThroughputGet.json | 31 + .../CosmosDBGremlinGraphThroughputUpdate.json | 41 + ...CosmosDBMongoDBCollectionCreateUpdate.json | 83 + .../CosmosDBMongoDBCollectionDelete.json | 14 + .../CosmosDBMongoDBCollectionGet.json | 45 + .../CosmosDBMongoDBCollectionList.json | 45 + ...DBMongoDBCollectionMigrateToAutoscale.json | 30 + ...DBCollectionMigrateToManualThroughput.json | 27 + ...osmosDBMongoDBCollectionThroughputGet.json | 31 + ...osDBMongoDBCollectionThroughputUpdate.json | 41 + .../CosmosDBMongoDBDatabaseCreateUpdate.json | 36 + .../CosmosDBMongoDBDatabaseDelete.json | 13 + .../examples/CosmosDBMongoDBDatabaseGet.json | 28 + .../examples/CosmosDBMongoDBDatabaseList.json | 28 + ...osDBMongoDBDatabaseMigrateToAutoscale.json | 29 + ...goDBDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBMongoDBDatabaseThroughputGet.json | 30 + ...smosDBMongoDBDatabaseThroughputUpdate.json | 40 + .../CosmosDBNotebookWorkspaceCreate.json | 23 + .../CosmosDBNotebookWorkspaceDelete.json | 13 + .../CosmosDBNotebookWorkspaceGet.json | 22 + .../CosmosDBNotebookWorkspaceList.json | 25 + ...DBNotebookWorkspaceListConnectionInfo.json | 17 + ...BNotebookWorkspaceRegenerateAuthToken.json | 13 + .../CosmosDBNotebookWorkspaceStart.json | 13 + .../examples/CosmosDBOperationsList.json | 22 + .../CosmosDBPKeyRangeIdGetMetrics.json | 58 + .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 59 + .../CosmosDBPercentileGetMetrics.json | 61 + ...mosDBPercentileSourceTargetGetMetrics.json | 41 + .../CosmosDBPercentileTargetGetMetrics.json | 62 + ...smosDBPrivateEndpointConnectionDelete.json | 13 + .../CosmosDBPrivateEndpointConnectionGet.json | 30 + ...mosDBPrivateEndpointConnectionListGet.json | 50 + ...smosDBPrivateEndpointConnectionUpdate.json | 39 + .../CosmosDBPrivateLinkResourceGet.json | 28 + .../CosmosDBPrivateLinkResourceListGet.json | 31 + .../CosmosDBRegionCollectionGetMetrics.json | 56 + .../CosmosDBRestorableDatabaseAccountGet.json | 37 + ...CosmosDBRestorableDatabaseAccountList.json | 64 + ...storableDatabaseAccountNoLocationList.json | 63 + ...smosDBRestorableMongodbCollectionList.json | 31 + ...CosmosDBRestorableMongodbDatabaseList.json | 44 + ...CosmosDBRestorableMongodbResourceList.json | 35 + .../CosmosDBRestorableSqlContainerList.json | 102 + .../CosmosDBRestorableSqlDatabaseList.json | 83 + .../CosmosDBRestorableSqlResourceList.json | 35 + ...sDBRestoreDatabaseAccountCreateUpdate.json | 124 + .../CosmosDBSqlContainerCreateUpdate.json | 124 + .../examples/CosmosDBSqlContainerDelete.json | 14 + .../examples/CosmosDBSqlContainerGet.json | 74 + .../examples/CosmosDBSqlContainerList.json | 192 + ...osmosDBSqlContainerMigrateToAutoscale.json | 30 + ...SqlContainerMigrateToManualThroughput.json | 27 + .../CosmosDBSqlContainerThroughputGet.json | 31 + .../CosmosDBSqlContainerThroughputUpdate.json | 41 + .../CosmosDBSqlDatabaseCreateUpdate.json | 39 + .../examples/CosmosDBSqlDatabaseDelete.json | 13 + .../examples/CosmosDBSqlDatabaseGet.json | 30 + .../examples/CosmosDBSqlDatabaseList.json | 33 + ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 29 + ...BSqlDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBSqlDatabaseThroughputGet.json | 30 + .../CosmosDBSqlDatabaseThroughputUpdate.json | 40 + ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 31 + .../CosmosDBSqlRoleAssignmentDelete.json | 14 + .../CosmosDBSqlRoleAssignmentGet.json | 23 + .../CosmosDBSqlRoleAssignmentList.json | 26 + ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 54 + .../CosmosDBSqlRoleDefinitionDelete.json | 14 + .../CosmosDBSqlRoleDefinitionGet.json | 35 + .../CosmosDBSqlRoleDefinitionList.json | 38 + ...osmosDBSqlStoredProcedureCreateUpdate.json | 39 + .../CosmosDBSqlStoredProcedureDelete.json | 15 + .../CosmosDBSqlStoredProcedureGet.json | 29 + .../CosmosDBSqlStoredProcedureList.json | 32 + .../CosmosDBSqlTriggerCreateUpdate.json | 43 + .../examples/CosmosDBSqlTriggerDelete.json | 15 + .../examples/CosmosDBSqlTriggerGet.json | 31 + .../examples/CosmosDBSqlTriggerList.json | 34 + ...sDBSqlUserDefinedFunctionCreateUpdate.json | 39 + .../CosmosDBSqlUserDefinedFunctionDelete.json | 15 + .../CosmosDBSqlUserDefinedFunctionGet.json | 29 + .../CosmosDBSqlUserDefinedFunctionList.json | 32 + .../examples/CosmosDBTableCreateUpdate.json | 35 + .../examples/CosmosDBTableDelete.json | 13 + .../2021-09-15/examples/CosmosDBTableGet.json | 28 + .../examples/CosmosDBTableList.json | 28 + .../CosmosDBTableMigrateToAutoscale.json | 29 + ...osmosDBTableMigrateToManualThroughput.json | 26 + .../examples/CosmosDBTableThroughputGet.json | 30 + .../CosmosDBTableThroughputUpdate.json | 40 + .../stable/2021-09-15/notebook.json | 461 + .../2021-09-15/privateEndpointConnection.json | 318 + .../2021-09-15/privateLinkResources.json | 195 + .../stable/2021-09-15/rbac.json | 573 ++ .../stable/2021-09-15/restorable.json | 1120 +++ 158 files changed, 17629 insertions(+) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json new file mode 100644 index 000000000000..60d4d04fcb97 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json @@ -0,0 +1,8783 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}": { + "get": { + "operationId": "DatabaseAccounts_Get", + "x-ms-examples": { + "CosmosDBDatabaseAccountGet": { + "$ref": "./examples/CosmosDBDatabaseAccountGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The database account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "patch": { + "operationId": "DatabaseAccounts_Update", + "x-ms-examples": { + "CosmosDBDatabaseAccountPatch": { + "$ref": "./examples/CosmosDBDatabaseAccountPatch.json" + } + }, + "description": "Updates the properties of an existing Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountUpdateParameters" + }, + "description": "The parameters to provide for the current database account." + } + ], + "responses": { + "200": { + "description": "The database account update operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "put": { + "operationId": "DatabaseAccounts_CreateOrUpdate", + "x-ms-examples": { + "CosmosDBDatabaseAccountCreateMin": { + "$ref": "./examples/CosmosDBDatabaseAccountCreateMin.json" + }, + "CosmosDBDatabaseAccountCreateMax": { + "$ref": "./examples/CosmosDBDatabaseAccountCreateMax.json" + }, + "CosmosDBRestoreDatabaseAccountCreateUpdate.json": { + "$ref": "./examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json" + } + }, + "description": "Creates or updates an Azure Cosmos DB database account. The \"Update\" method is preferred when performing updates on an account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountCreateUpdateParameters" + }, + "description": "The parameters to provide for the current database account." + } + ], + "responses": { + "200": { + "description": "The database account create or update operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "delete": { + "operationId": "DatabaseAccounts_Delete", + "x-ms-examples": { + "CosmosDBDatabaseAccountDelete": { + "$ref": "./examples/CosmosDBDatabaseAccountDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The database account delete operation will complete asynchronously." + }, + "204": { + "description": "The specified account does not exist in the subscription." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange": { + "post": { + "operationId": "DatabaseAccounts_FailoverPriorityChange", + "x-ms-examples": { + "CosmosDBDatabaseAccountFailoverPriorityChange": { + "$ref": "./examples/CosmosDBDatabaseAccountFailoverPriorityChange.json" + } + }, + "description": "Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "failoverParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FailoverPolicies" + }, + "description": "The new failover policies for the database account." + } + ], + "responses": { + "202": { + "description": "Accepted. The failover policy change operation will complete asynchronously." + }, + "204": { + "description": "No Content" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts": { + "get": { + "operationId": "DatabaseAccounts_List", + "x-ms-examples": { + "CosmosDBDatabaseAccountList": { + "$ref": "./examples/CosmosDBDatabaseAccountList.json" + } + }, + "description": "Lists all the Azure Cosmos DB database accounts available under the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts": { + "get": { + "operationId": "DatabaseAccounts_ListByResourceGroup", + "x-ms-examples": { + "CosmosDBDatabaseAccountListByResourceGroup": { + "$ref": "./examples/CosmosDBDatabaseAccountListByResourceGroup.json" + } + }, + "description": "Lists all the Azure Cosmos DB database accounts available under the given resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys": { + "post": { + "operationId": "DatabaseAccounts_ListKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListKeys.json" + } + }, + "description": "Lists the access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListKeysResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings": { + "post": { + "operationId": "DatabaseAccounts_ListConnectionStrings", + "x-ms-examples": { + "CosmosDBDatabaseAccountListConnectionStrings": { + "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStrings.json" + }, + "CosmosDBDatabaseAccountListConnectionStringsMongo": { + "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json" + } + }, + "description": "Lists the connection strings for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListConnectionStringsResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion": { + "post": { + "operationId": "DatabaseAccounts_OfflineRegion", + "x-ms-examples": { + "CosmosDBDatabaseAccountOfflineRegion": { + "$ref": "./examples/CosmosDBDatabaseAccountOfflineRegion.json" + } + }, + "description": "Offline the specified region for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "regionParameterForOffline", + "in": "body", + "required": true, + "description": "Cosmos DB region to offline for the database account.", + "schema": { + "$ref": "#/definitions/RegionForOnlineOffline" + } + } + ], + "responses": { + "200": { + "description": "The offline region operation is completed successfully." + }, + "202": { + "description": "Accepted. The offline region operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion": { + "post": { + "operationId": "DatabaseAccounts_OnlineRegion", + "x-ms-examples": { + "CosmosDBDatabaseAccountOnlineRegion": { + "$ref": "./examples/CosmosDBDatabaseAccountOnlineRegion.json" + } + }, + "description": "Online the specified region for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "regionParameterForOnline", + "in": "body", + "required": true, + "description": "Cosmos DB region to online for the database account.", + "schema": { + "$ref": "#/definitions/RegionForOnlineOffline" + } + } + ], + "responses": { + "200": { + "description": "The online region operation is completed successfully." + }, + "202": { + "description": "Accepted. The online region operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys": { + "get": { + "operationId": "DatabaseAccounts_GetReadOnlyKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListReadOnlyKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" + } + }, + "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + } + } + }, + "post": { + "operationId": "DatabaseAccounts_ListReadOnlyKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListReadOnlyKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" + } + }, + "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey": { + "post": { + "operationId": "DatabaseAccounts_RegenerateKey", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegenerateKey": { + "$ref": "./examples/CosmosDBDatabaseAccountRegenerateKey.json" + } + }, + "description": "Regenerates an access key for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "keyToRegenerate", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountRegenerateKeyParameters" + }, + "description": "The name of the key to regenerate." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The regenerate key operation will complete asynchronously." + } + } + } + }, + "/providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}": { + "head": { + "operationId": "DatabaseAccounts_CheckNameExists", + "x-ms-examples": { + "CosmosDBDatabaseAccountCheckNameExists": { + "$ref": "./examples/CosmosDBDatabaseAccountCheckNameExists.json" + } + }, + "description": "Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.", + "parameters": [ + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The account name is valid but is already in use." + }, + "404": { + "description": "Not Found. The account name is available and valid." + } + } + } + }, + "/providers/Microsoft.DocumentDB/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Cosmos DB Resource Provider operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "CosmosDBOperationsList": { + "$ref": "./examples/CosmosDBOperationsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics": { + "get": { + "operationId": "DatabaseAccounts_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseAccountGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics": { + "get": { + "operationId": "Database_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics": { + "get": { + "operationId": "Collection_ListMetrics", + "x-ms-examples": { + "CosmosDBCollectionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics": { + "get": { + "operationId": "CollectionRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBRegionCollectionGetMetrics": { + "$ref": "./examples/CosmosDBRegionCollectionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account, collection and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics": { + "get": { + "operationId": "DatabaseAccountRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseAccountRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics": { + "get": { + "operationId": "PercentileSourceTarget_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileSourceTargetGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/sourceRegionParameter" + }, + { + "$ref": "#/parameters/targetRegionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account, source and target regions were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics": { + "get": { + "operationId": "PercentileTarget_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileTargetGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/targetRegionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account and target regions were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics": { + "get": { + "operationId": "Percentile_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { + "get": { + "operationId": "CollectionPartitionRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionPartitionRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given collection and region, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the collection and region were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { + "get": { + "operationId": "CollectionPartition_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionPartitionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given collection, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { + "get": { + "operationId": "PartitionKeyRangeId_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPKeyRangeIdGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given partition key range id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "#/parameters/partitionKeyRangeIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the partition key range id were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { + "get": { + "operationId": "PartitionKeyRangeIdRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPKeyRangeIdRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given partition key range id and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "#/parameters/partitionKeyRangeIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the partition key range id and region were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages": { + "get": { + "operationId": "DatabaseAccounts_ListUsages", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetUsages": { + "$ref": "./examples/CosmosDBDatabaseAccountGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent data) for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages": { + "get": { + "operationId": "Database_ListUsages", + "x-ms-examples": { + "CosmosDBDatabaseGetUsages": { + "$ref": "./examples/CosmosDBDatabaseGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent data) for the given database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the database were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages": { + "get": { + "operationId": "Collection_ListUsages", + "x-ms-examples": { + "CosmosDBCollectionGetUsages": { + "$ref": "./examples/CosmosDBCollectionGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent storage data) for the given collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages": { + "get": { + "operationId": "CollectionPartition_ListUsages", + "x-ms-examples": { + "CosmosDBCollectionGetUsages": { + "$ref": "./examples/CosmosDBCollectionPartitionGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent storage data) for the given collection, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the collection, per partition were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionUsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions": { + "get": { + "operationId": "Database_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBDatabaseGetMetricDefinitions": { + "$ref": "./examples/CosmosDBDatabaseGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the database were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions": { + "get": { + "operationId": "Collection_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBCollectionGetMetricDefinitions": { + "$ref": "./examples/CosmosDBCollectionGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions": { + "get": { + "operationId": "DatabaseAccounts_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetMetricDefinitions": { + "$ref": "./examples/CosmosDBDatabaseAccountGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases": { + "get": { + "operationId": "SqlResources_ListSqlDatabases", + "x-ms-examples": { + "CosmosDBSqlDatabaseList": { + "$ref": "./examples/CosmosDBSqlDatabaseList.json" + } + }, + "description": "Lists the SQL databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}": { + "get": { + "operationId": "SqlResources_GetSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseGet": { + "$ref": "./examples/CosmosDBSqlDatabaseGet.json" + } + }, + "description": "Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBSqlDatabaseCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL database." + } + ], + "responses": { + "202": { + "description": "The SQL database create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseDelete": { + "$ref": "./examples/CosmosDBSqlDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "SqlResources_GetSqlDatabaseThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBSqlDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the SQL database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_UpdateSqlDatabaseThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBSqlDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB SQL database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current SQL database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the SQL database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the SQL database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "SqlResources_MigrateSqlDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBSqlDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBSqlDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "SqlResources_MigrateSqlDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { + "get": { + "operationId": "SqlResources_ListSqlContainers", + "x-ms-examples": { + "CosmosDBSqlContainerList": { + "$ref": "./examples/CosmosDBSqlContainerList.json" + } + }, + "description": "Lists the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL container properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}": { + "get": { + "operationId": "SqlResources_GetSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerGet": { + "$ref": "./examples/CosmosDBSqlContainerGet.json" + } + }, + "description": "Gets the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL container property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerCreateUpdate": { + "$ref": "./examples/CosmosDBSqlContainerCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL container", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlContainerParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlContainerCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL container." + } + ], + "responses": { + "202": { + "description": "The SQL container create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL container create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerDelete": { + "$ref": "./examples/CosmosDBSqlContainerDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL container.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL container delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default": { + "get": { + "operationId": "SqlResources_GetSqlContainerThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerThroughputGet": { + "$ref": "./examples/CosmosDBSqlContainerThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the SQL container was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_UpdateSqlContainerThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerThroughputUpdate": { + "$ref": "./examples/CosmosDBSqlContainerThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB SQL container", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current SQL container." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the SQL container update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the SQL container update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "SqlResources_MigrateSqlContainerToAutoscale", + "x-ms-examples": { + "CosmosDBSqlContainerMigrateToAutoscale": { + "$ref": "./examples/CosmosDBSqlContainerMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL container migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "SqlResources_MigrateSqlContainerToManualThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBSqlContainerMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL container migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures": { + "get": { + "operationId": "SqlResources_ListSqlStoredProcedures", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureList": { + "$ref": "./examples/CosmosDBSqlStoredProcedureList.json" + } + }, + "description": "Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL stored procedure properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}": { + "get": { + "operationId": "SqlResources_GetSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureGet": { + "$ref": "./examples/CosmosDBSqlStoredProcedureGet.json" + } + }, + "description": "Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL storedProcedure property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureCreateUpdate": { + "$ref": "./examples/CosmosDBSqlStoredProcedureCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL storedProcedure", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlStoredProcedureParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlStoredProcedureCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL storedProcedure." + } + ], + "responses": { + "202": { + "description": "The SQL storedProcedure create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL storedProcedure create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureDelete": { + "$ref": "./examples/CosmosDBSqlStoredProcedureDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL storedProcedure.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL storedProcedure delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL storedProcedure delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions": { + "get": { + "operationId": "SqlResources_ListSqlUserDefinedFunctions", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionList": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionList.json" + } + }, + "description": "Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL userDefinedFunction properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}": { + "get": { + "operationId": "SqlResources_GetSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionGet": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionGet.json" + } + }, + "description": "Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL userDefinedFunction property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionCreateUpdate": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL userDefinedFunction", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlUserDefinedFunctionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL userDefinedFunction." + } + ], + "responses": { + "202": { + "description": "The SQL userDefinedFunction create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL userDefinedFunction create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionDelete": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL userDefinedFunction.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL userDefinedFunction delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL userDefinedFunction delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers": { + "get": { + "operationId": "SqlResources_ListSqlTriggers", + "x-ms-examples": { + "CosmosDBSqlTriggerList": { + "$ref": "./examples/CosmosDBSqlTriggerList.json" + } + }, + "description": "Lists the SQL trigger under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL trigger properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}": { + "get": { + "operationId": "SqlResources_GetSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerGet": { + "$ref": "./examples/CosmosDBSqlTriggerGet.json" + } + }, + "description": "Gets the SQL trigger under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL trigger property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerCreateUpdate": { + "$ref": "./examples/CosmosDBSqlTriggerCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL trigger", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlTriggerParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlTriggerCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL trigger." + } + ], + "responses": { + "202": { + "description": "The SQL trigger create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL trigger create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerDelete": { + "$ref": "./examples/CosmosDBSqlTriggerDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL trigger.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL trigger delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL trigger delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases": { + "get": { + "operationId": "MongoDBResources_ListMongoDBDatabases", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseList": { + "$ref": "./examples/CosmosDBMongoDBDatabaseList.json" + } + }, + "description": "Lists the MongoDB databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}": { + "get": { + "operationId": "MongoDBResources_GetMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseGet": { + "$ref": "./examples/CosmosDBMongoDBDatabaseGet.json" + } + }, + "description": "Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBDatabaseCreateUpdate.json" + } + }, + "description": "Create or updates Azure Cosmos DB MongoDB database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoDBDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MongoDBDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current MongoDB database." + } + ], + "responses": { + "202": { + "description": "The MongoDB database create or update operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseDelete": { + "$ref": "./examples/CosmosDBMongoDBDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB MongoDB database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database delete operation will complete asynchronously." + }, + "204": { + "description": "The MongoDB database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "MongoDBResources_GetMongoDBDatabaseThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the MongoDB database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_UpdateMongoDBDatabaseThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of the an Azure Cosmos DB MongoDB database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current MongoDB database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the MongoDB database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the MongoDB database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections": { + "get": { + "operationId": "MongoDBResources_ListMongoDBCollections", + "x-ms-examples": { + "CosmosDBMongoDBCollectionList": { + "$ref": "./examples/CosmosDBMongoDBCollectionList.json" + } + }, + "description": "Lists the MongoDB collection under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB collection properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}": { + "get": { + "operationId": "MongoDBResources_GetMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionGet": { + "$ref": "./examples/CosmosDBMongoDBCollectionGet.json" + } + }, + "description": "Gets the MongoDB collection under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB collection property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBCollectionCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB MongoDB Collection", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoDBCollectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MongoDBCollectionCreateUpdateParameters" + }, + "description": "The parameters to provide for the current MongoDB Collection." + } + ], + "responses": { + "202": { + "description": "The MongoDB Collection create or update operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB Collection create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionDelete": { + "$ref": "./examples/CosmosDBMongoDBCollectionDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB MongoDB Collection.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection delete operation will complete asynchronously." + }, + "204": { + "description": "The MongoDB collection delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default": { + "get": { + "operationId": "MongoDBResources_GetMongoDBCollectionThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionThroughputGet": { + "$ref": "./examples/CosmosDBMongoDBCollectionThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the MongoDB collection was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_UpdateMongoDBCollectionThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionThroughputUpdate": { + "$ref": "./examples/CosmosDBMongoDBCollectionThroughputUpdate.json" + } + }, + "description": "Update the RUs per second of an Azure Cosmos DB MongoDB collection", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current MongoDB collection." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the MongoDB collection update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the MongoDB collection update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBCollectionToAutoscale", + "x-ms-examples": { + "CosmosDBMongoDBCollectionMigrateToAutoscale": { + "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB collection migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBCollectionToManualThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB collection migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables": { + "get": { + "operationId": "TableResources_ListTables", + "x-ms-examples": { + "CosmosDBTableList": { + "$ref": "./examples/CosmosDBTableList.json" + } + }, + "description": "Lists the Tables under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Table properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/TableListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}": { + "get": { + "operationId": "TableResources_GetTable", + "x-ms-examples": { + "CosmosDBTableGet": { + "$ref": "./examples/CosmosDBTableGet.json" + } + }, + "description": "Gets the Tables under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Table property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/TableGetResults" + } + } + } + }, + "put": { + "operationId": "TableResources_CreateUpdateTable", + "x-ms-examples": { + "CosmosDBTableReplace": { + "$ref": "./examples/CosmosDBTableCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateTableParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TableCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Table." + } + ], + "responses": { + "202": { + "description": "The Table create or update operation will complete asynchronously." + }, + "200": { + "description": "The Table create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/TableGetResults" + } + } + } + }, + "delete": { + "operationId": "TableResources_DeleteTable", + "x-ms-examples": { + "CosmosDBTableDelete": { + "$ref": "./examples/CosmosDBTableDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Table.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table delete operation will complete asynchronously." + }, + "204": { + "description": "The Table delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default": { + "get": { + "operationId": "TableResources_GetTableThroughput", + "x-ms-examples": { + "CosmosDBTableThroughputGet": { + "$ref": "./examples/CosmosDBTableThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Table was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "TableResources_UpdateTableThroughput", + "x-ms-examples": { + "CosmosDBTableThroughputUpdate": { + "$ref": "./examples/CosmosDBTableThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current Table." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Table update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Table update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "TableResources_MigrateTableToAutoscale", + "x-ms-examples": { + "CosmosDBTableMigrateToAutoscale": { + "$ref": "./examples/CosmosDBTableMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Table from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "TableResources_MigrateTableToManualThroughput", + "x-ms-examples": { + "CosmosDBTableMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBTableMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Table from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces": { + "get": { + "operationId": "CassandraResources_ListCassandraKeyspaces", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceList": { + "$ref": "./examples/CosmosDBCassandraKeyspaceList.json" + } + }, + "description": "Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra keyspace properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}": { + "get": { + "operationId": "CassandraResources_GetCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceGet": { + "$ref": "./examples/CosmosDBCassandraKeyspaceGet.json" + } + }, + "description": "Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra keyspace property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_CreateUpdateCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceCreateUpdate": { + "$ref": "./examples/CosmosDBCassandraKeyspaceCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Cassandra keyspace", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateCassandraKeyspaceParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CassandraKeyspaceCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Cassandra keyspace." + } + ], + "responses": { + "202": { + "description": "The Cassandra keyspace create or update operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra keyspace create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + } + } + } + }, + "delete": { + "operationId": "CassandraResources_DeleteCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceDelete": { + "$ref": "./examples/CosmosDBCassandraKeyspaceDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Cassandra keyspace.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra keyspace delete operation will complete asynchronously." + }, + "204": { + "description": "The Cassandra keyspace delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default": { + "get": { + "operationId": "CassandraResources_GetCassandraKeyspaceThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceThroughputGet": { + "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Cassandra Keyspace was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_UpdateCassandraKeyspaceThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceThroughputUpdate": { + "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Cassandra Keyspace", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Cassandra Keyspace." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Cassandra Keyspace update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Cassandra Keyspace update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "CassandraResources_MigrateCassandraKeyspaceToAutoscale", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceMigrateToAutoscale": { + "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra Keyspace migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Keyspace migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "CassandraResources_MigrateCassandraKeyspaceToManualThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra Keyspace migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Keyspace migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables": { + "get": { + "operationId": "CassandraResources_ListCassandraTables", + "x-ms-examples": { + "CosmosDBCassandraTableList": { + "$ref": "./examples/CosmosDBCassandraTableList.json" + } + }, + "description": "Lists the Cassandra table under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra table properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}": { + "get": { + "operationId": "CassandraResources_GetCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableGet": { + "$ref": "./examples/CosmosDBCassandraTableGet.json" + } + }, + "description": "Gets the Cassandra table under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra table property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_CreateUpdateCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableCreateUpdate": { + "$ref": "./examples/CosmosDBCassandraTableCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Cassandra Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateCassandraTableParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CassandraTableCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Cassandra Table." + } + ], + "responses": { + "202": { + "description": "The Cassandra Table create or update operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Table create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableGetResults" + } + } + } + }, + "delete": { + "operationId": "CassandraResources_DeleteCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableDelete": { + "$ref": "./examples/CosmosDBCassandraTableDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Cassandra table.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table delete operation will complete asynchronously." + }, + "204": { + "description": "The Cassandra table delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default": { + "get": { + "operationId": "CassandraResources_GetCassandraTableThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableThroughputGet": { + "$ref": "./examples/CosmosDBCassandraTableThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Cassandra table was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_UpdateCassandraTableThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableThroughputUpdate": { + "$ref": "./examples/CosmosDBCassandraTableThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Cassandra table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Cassandra table." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Cassandra table update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Cassandra table update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "CassandraResources_MigrateCassandraTableToAutoscale", + "x-ms-examples": { + "CosmosDBCassandraTableMigrateToAutoscale": { + "$ref": "./examples/CosmosDBCassandraTableMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "CassandraResources_MigrateCassandraTableToManualThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBCassandraTableMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases": { + "get": { + "operationId": "GremlinResources_ListGremlinDatabases", + "x-ms-examples": { + "CosmosDBGremlinDatabaseList": { + "$ref": "./examples/CosmosDBGremlinDatabaseList.json" + } + }, + "description": "Lists the Gremlin databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}": { + "get": { + "operationId": "GremlinResources_GetGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseGet": { + "$ref": "./examples/CosmosDBGremlinDatabaseGet.json" + } + }, + "description": "Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_CreateUpdateGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBGremlinDatabaseCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Gremlin database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateGremlinDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GremlinDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Gremlin database." + } + ], + "responses": { + "202": { + "description": "The Gremlin database create or update operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "GremlinResources_DeleteGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseDelete": { + "$ref": "./examples/CosmosDBGremlinDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Gremlin database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database delete operation will complete asynchronously." + }, + "204": { + "description": "The Gremlin database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "GremlinResources_GetGremlinDatabaseThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBGremlinDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Gremlin database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_UpdateGremlinDatabaseThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBGremlinDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Gremlin database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Gremlin database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Gremlin database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Gremlin database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "GremlinResources_MigrateGremlinDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBGremlinDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "GremlinResources_MigrateGremlinDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs": { + "get": { + "operationId": "GremlinResources_ListGremlinGraphs", + "x-ms-examples": { + "CosmosDBGremlinGraphList": { + "$ref": "./examples/CosmosDBGremlinGraphList.json" + } + }, + "description": "Lists the Gremlin graph under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin graph properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}": { + "get": { + "operationId": "GremlinResources_GetGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphGet": { + "$ref": "./examples/CosmosDBGremlinGraphGet.json" + } + }, + "description": "Gets the Gremlin graph under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin graph property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_CreateUpdateGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphCreateUpdate": { + "$ref": "./examples/CosmosDBGremlinGraphCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Gremlin graph", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateGremlinGraphParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GremlinGraphCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Gremlin graph." + } + ], + "responses": { + "202": { + "description": "The Gremlin graph create or update operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphGetResults" + } + } + } + }, + "delete": { + "operationId": "GremlinResources_DeleteGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphDelete": { + "$ref": "./examples/CosmosDBGremlinGraphDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Gremlin graph.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph delete operation will complete asynchronously." + }, + "204": { + "description": "The Gremlin graph delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default": { + "get": { + "operationId": "GremlinResources_GetGremlinGraphThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphThroughputGet": { + "$ref": "./examples/CosmosDBGremlinGraphThroughputGet.json" + } + }, + "description": "Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Gremlin graph was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_UpdateGremlinGraphThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphThroughputUpdate": { + "$ref": "./examples/CosmosDBGremlinGraphThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Gremlin graph", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Gremlin graph." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Gremlin graph update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Gremlin graph update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "GremlinResources_MigrateGremlinGraphToAutoscale", + "x-ms-examples": { + "CosmosDBGremlinGraphMigrateToAutoscale": { + "$ref": "./examples/CosmosDBGremlinGraphMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "GremlinResources_MigrateGremlinGraphToManualThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBGremlinGraphMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "DatabaseAccountsListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseAccountGetResults" + }, + "description": "List of database account and their properties." + } + }, + "description": "The List operation response, that contains the database accounts and their properties." + }, + "SqlDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlDatabaseGetResults" + }, + "description": "List of SQL databases and their properties." + } + }, + "description": "The List operation response, that contains the SQL databases and their properties." + }, + "SqlContainerListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlContainerGetResults" + }, + "description": "List of containers and their properties." + } + }, + "description": "The List operation response, that contains the containers and their properties." + }, + "SqlStoredProcedureListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + }, + "description": "List of storedProcedures and their properties." + } + }, + "description": "The List operation response, that contains the storedProcedures and their properties." + }, + "SqlUserDefinedFunctionListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + }, + "description": "List of userDefinedFunctions and their properties." + } + }, + "description": "The List operation response, that contains the userDefinedFunctions and their properties." + }, + "SqlTriggerListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlTriggerGetResults" + }, + "description": "List of triggers and their properties." + } + }, + "description": "The List operation response, that contains the triggers and their properties." + }, + "MongoDBDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + }, + "description": "List of MongoDB databases and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB databases and their properties." + }, + "MongoDBCollectionListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + }, + "description": "List of MongoDB collections and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB collections and their properties." + }, + "TableListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TableGetResults" + }, + "description": "List of Table and their properties." + } + }, + "description": "The List operation response, that contains the Table and their properties." + }, + "CassandraKeyspaceListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + }, + "description": "List of Cassandra keyspaces and their properties." + } + }, + "description": "The List operation response, that contains the Cassandra keyspaces and their properties." + }, + "CassandraTableListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CassandraTableGetResults" + }, + "description": "List of Cassandra tables and their properties." + } + }, + "description": "The List operation response, that contains the Cassandra tables and their properties." + }, + "GremlinDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + }, + "description": "List of Gremlin databases and their properties." + } + }, + "description": "The List operation response, that contains the Gremlin databases and their properties." + }, + "GremlinGraphListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/GremlinGraphGetResults" + }, + "description": "List of graphs and their properties." + } + }, + "description": "The List operation response, that contains the graphs and their properties." + }, + "ErrorResponse": { + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + }, + "description": "Error Response." + }, + "CloudError": { + "x-ms-external": true, + "description": "An error response from the service.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "FailoverPolicies": { + "properties": { + "failoverPolicies": { + "type": "array", + "description": "List of failover policies.", + "items": { + "$ref": "#/definitions/FailoverPolicy" + } + } + }, + "required": [ + "failoverPolicies" + ], + "description": "The list of new failover policies for the failover priority change." + }, + "FailoverPolicy": { + "type": "object", + "description": "The failover policy for a given region of a database account.", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>." + }, + "locationName": { + "type": "string", + "description": "The name of the region in which the database account exists." + }, + "failoverPriority": { + "type": "integer", + "minimum": 0, + "format": "int32", + "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists." + } + } + }, + "RegionForOnlineOffline": { + "properties": { + "region": { + "type": "string", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + } + }, + "required": [ + "region" + ], + "description": "Cosmos DB region to online or offline." + }, + "Location": { + "description": "A region in which the Azure Cosmos DB database account is deployed.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The unique identifier of the region within the database account. Example: <accountName>-<locationName>." + }, + "locationName": { + "type": "string", + "description": "The name of the region." + }, + "documentEndpoint": { + "type": "string", + "readOnly": true, + "description": "The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "failoverPriority": { + "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", + "format": "int32", + "type": "integer", + "minimum": 0 + }, + "isZoneRedundant": { + "type": "boolean", + "description": "Flag to indicate whether or not this region is an AvailabilityZone region" + } + } + }, + "ARMResourceProperties": { + "type": "object", + "description": "The core properties of ARM resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "tags": { + "$ref": "#/definitions/Tags" + } + }, + "x-ms-azure-resource": true + }, + "ARMProxyResource": { + "type": "object", + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the database account." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the database account." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + }, + "x-ms-azure-resource": true + }, + "DatabaseAccountGetResults": { + "description": "An Azure Cosmos DB database account.", + "type": "object", + "properties": { + "kind": { + "description": "Indicates the type of database account. This can only be set at database account creation.", + "type": "string", + "default": "GlobalDocumentDB", + "enum": [ + "GlobalDocumentDB", + "MongoDB", + "Parse" + ], + "x-ms-enum": { + "name": "DatabaseAccountKind", + "modelAsString": true + } + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountGetProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "ExtendedResourceProperties": { + "description": "The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "description": "A system generated property. A unique identifier.", + "readOnly": true + }, + "_ts": { + "type": "number", + "description": "A system generated property that denotes the last updated timestamp of the resource.", + "readOnly": true + }, + "_etag": { + "type": "string", + "description": "A system generated property representing the resource etag required for optimistic concurrency control.", + "readOnly": true + } + } + }, + "ThroughputSettingsGetResults": { + "description": "An Azure Cosmos DB resource throughput.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB resource throughput", + "$ref": "#/definitions/ThroughputSettingsGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "ThroughputSettingsGetProperties": { + "description": "The properties of an Azure Cosmos DB resource throughput", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/ThroughputSettingsResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlDatabaseGetResults": { + "description": "An Azure Cosmos DB SQL database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB SQL database", + "$ref": "#/definitions/SqlDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB SQL database", + "type": "object", + "properties": { + "resource": { + "properties": { + "_colls": { + "type": "string", + "description": "A system generated property that specified the addressable path of the collections resource." + }, + "_users": { + "type": "string", + "description": "A system generated property that specifies the addressable path of the users resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/SqlDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "SqlContainerGetResults": { + "description": "An Azure Cosmos DB container.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB container", + "$ref": "#/definitions/SqlContainerGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlContainerGetProperties": { + "description": "The properties of an Azure Cosmos DB container", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlContainerResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "SqlStoredProcedureGetResults": { + "description": "An Azure Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB storedProcedure", + "$ref": "#/definitions/SqlStoredProcedureGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlStoredProcedureGetProperties": { + "description": "The properties of an Azure Cosmos DB StoredProcedure", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlStoredProcedureResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlUserDefinedFunctionGetResults": { + "description": "An Azure Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB userDefinedFunction", + "$ref": "#/definitions/SqlUserDefinedFunctionGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlUserDefinedFunctionGetProperties": { + "description": "The properties of an Azure Cosmos DB userDefinedFunction", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlUserDefinedFunctionResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlTriggerGetResults": { + "description": "An Azure Cosmos DB trigger.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB trigger", + "$ref": "#/definitions/SqlTriggerGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlTriggerGetProperties": { + "description": "The properties of an Azure Cosmos DB trigger", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlTriggerResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "MongoDBDatabaseGetResults": { + "description": "An Azure Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB MongoDB database", + "$ref": "#/definitions/MongoDBDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "MongoDBDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB database", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/MongoDBDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "MongoDBCollectionGetResults": { + "description": "An Azure Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB MongoDB collection", + "$ref": "#/definitions/MongoDBCollectionGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "MongoDBCollectionGetProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB collection", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/MongoDBCollectionResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "TableGetResults": { + "description": "An Azure Cosmos DB Table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Table", + "$ref": "#/definitions/TableGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "TableGetProperties": { + "description": "The properties of an Azure Cosmos Table", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/TableResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "CassandraKeyspaceGetResults": { + "description": "An Azure Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Cassandra keyspace", + "$ref": "#/definitions/CassandraKeyspaceGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "CassandraKeyspaceGetProperties": { + "description": "The properties of an Azure Cosmos DB Cassandra keyspace", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/CassandraKeyspaceResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "CassandraTableGetResults": { + "description": "An Azure Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Cassandra table", + "$ref": "#/definitions/CassandraTableGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "CassandraTableGetProperties": { + "description": "The properties of an Azure Cosmos DB Cassandra table", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/CassandraTableResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "GremlinDatabaseGetResults": { + "description": "An Azure Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB SQL database", + "$ref": "#/definitions/GremlinDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "GremlinDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB SQL database", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/GremlinDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "GremlinGraphGetResults": { + "description": "An Azure Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Gremlin graph", + "$ref": "#/definitions/GremlinGraphGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "GremlinGraphGetProperties": { + "description": "The properties of an Azure Cosmos DB Gremlin graph", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/GremlinGraphResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "ConsistencyPolicy": { + "type": "object", + "description": "The consistency policy for the Cosmos DB database account.", + "properties": { + "defaultConsistencyLevel": { + "description": "The default consistency level and configuration settings of the Cosmos DB account.", + "type": "string", + "enum": [ + "Eventual", + "Session", + "BoundedStaleness", + "Strong", + "ConsistentPrefix" + ], + "x-ms-enum": { + "name": "DefaultConsistencyLevel", + "modelAsString": false + } + }, + "maxStalenessPrefix": { + "description": "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + }, + "maxIntervalInSeconds": { + "description": "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", + "type": "integer", + "minimum": 5, + "maximum": 86400, + "format": "int32" + } + }, + "required": [ + "defaultConsistencyLevel" + ] + }, + "CorsPolicy": { + "type": "object", + "description": "The CORS policy for the Cosmos DB database account.", + "properties": { + "allowedOrigins": { + "description": "The origin domains that are permitted to make a request against the service via CORS.", + "type": "string" + }, + "allowedMethods": { + "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request.", + "type": "string" + }, + "allowedHeaders": { + "description": "The request headers that the origin domain may specify on the CORS request.", + "type": "string" + }, + "exposedHeaders": { + "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.", + "type": "string" + }, + "maxAgeInSeconds": { + "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + } + }, + "required": [ + "allowedOrigins" + ] + }, + "DatabaseAccountGetProperties": { + "description": "Properties for the database account.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "documentEndpoint": { + "description": "The connection endpoint for the Cosmos DB database account.", + "type": "string", + "readOnly": true + }, + "databaseAccountOfferType": { + "description": "The offer type for the Cosmos DB database account. Default value: Standard.", + "readOnly": true, + "$ref": "#/definitions/DatabaseAccountOfferType" + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB database account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "writeLocations": { + "type": "array", + "readOnly": true, + "description": "An array that contains the write location for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "readLocations": { + "type": "array", + "readOnly": true, + "description": "An array that contains of the read locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "locations": { + "type": "array", + "readOnly": true, + "description": "An array that contains all of the locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "failoverPolicies": { + "type": "array", + "readOnly": true, + "description": "An array that contains the regions ordered by their failover priorities.", + "items": { + "$ref": "#/definitions/FailoverPolicy" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "privateEndpointConnections": { + "type": "array", + "readOnly": true, + "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", + "items": { + "$ref": "../../stable/2021-06-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "instanceId": { + "description": "A unique identifier assigned to the database account", + "type": "string", + "readOnly": true + }, + "createMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "$ref": "#/definitions/CreateMode" + }, + "restoreParameters": { + "description": "Parameters to indicate the information about the restore.", + "type": "object", + "$ref": "#/definitions/RestoreParameters" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + } + } + }, + "DatabaseAccountCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB database accounts.", + "type": "object", + "properties": { + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "locations": { + "type": "array", + "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "databaseAccountOfferType": { + "description": "The offer type for the database", + "$ref": "#/definitions/DatabaseAccountOfferType" + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties. Currently, supported only for MongoDB API.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "createMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "$ref": "#/definitions/CreateMode" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + }, + "restoreParameters": { + "description": "Parameters to indicate the information about the restore.", + "type": "object", + "$ref": "#/definitions/RestoreParameters" + } + }, + "required": [ + "locations", + "databaseAccountOfferType" + ] + }, + "DatabaseAccountCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB database accounts.", + "type": "object", + "properties": { + "kind": { + "description": "Indicates the type of database account. This can only be set at database account creation.", + "type": "string", + "default": "GlobalDocumentDB", + "enum": [ + "GlobalDocumentDB", + "MongoDB", + "Parse" + ], + "x-ms-enum": { + "name": "DatabaseAccountKind", + "modelAsString": true + } + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "DatabaseAccountUpdateProperties": { + "description": "Properties to update Azure Cosmos DB database accounts.", + "type": "object", + "properties": { + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "locations": { + "type": "array", + "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties. Currently, supported only for MongoDB API.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + } + } + }, + "DatabaseAccountUpdateParameters": { + "description": "Parameters for patching Azure Cosmos DB database account properties.", + "type": "object", + "properties": { + "tags": { + "$ref": "#/definitions/Tags" + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountUpdateProperties" + } + } + }, + "DatabaseAccountListReadOnlyKeysResult": { + "description": "The read-only access keys for the given database account.", + "properties": { + "primaryReadonlyMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the primary read-only key." + }, + "secondaryReadonlyMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the secondary read-only key." + } + } + }, + "DatabaseAccountListKeysResult": { + "description": "The access keys for the given database account.", + "properties": { + "primaryMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the primary read-write key." + }, + "secondaryMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the secondary read-write key." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + ] + }, + "DatabaseAccountConnectionString": { + "description": "Connection string for the Cosmos DB account", + "properties": { + "connectionString": { + "readOnly": true, + "type": "string", + "description": "Value of the connection string" + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the connection string" + } + } + }, + "DatabaseAccountListConnectionStringsResult": { + "description": "The connection strings for the given database account.", + "properties": { + "connectionStrings": { + "type": "array", + "description": "An array that contains the connection strings for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/DatabaseAccountConnectionString" + } + } + } + }, + "DatabaseAccountRegenerateKeyParameters": { + "type": "object", + "description": "Parameters to regenerate the keys within the database account.", + "properties": { + "keyKind": { + "type": "string", + "description": "The access key to regenerate.", + "enum": [ + "primary", + "secondary", + "primaryReadonly", + "secondaryReadonly" + ], + "x-ms-enum": { + "name": "KeyKind", + "modelAsString": true + } + } + }, + "required": [ + "keyKind" + ] + }, + "DatabaseAccountOfferType": { + "description": "The offer type for the Cosmos DB database account.", + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "DatabaseAccountOfferType", + "modelAsString": false + } + }, + "ThroughputSettingsUpdateParameters": { + "description": "Parameters to update Cosmos DB resource throughput.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to update Azure Cosmos DB resource throughput.", + "$ref": "#/definitions/ThroughputSettingsUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "ThroughputSettingsUpdateProperties": { + "description": "Properties to update Azure Cosmos DB resource throughput.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a resource throughput", + "$ref": "#/definitions/ThroughputSettingsResource" + } + }, + "required": [ + "resource" + ] + }, + "SqlDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB SQL database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB SQL database.", + "$ref": "#/definitions/SqlDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB SQL database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a SQL database", + "$ref": "#/definitions/SqlDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlContainerCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB container.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB container.", + "$ref": "#/definitions/SqlContainerCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlContainerCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB container.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a container", + "$ref": "#/definitions/SqlContainerResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlStoredProcedureCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB storedProcedure.", + "$ref": "#/definitions/SqlStoredProcedureCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlStoredProcedureCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a storedProcedure", + "$ref": "#/definitions/SqlStoredProcedureResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlUserDefinedFunctionCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", + "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlUserDefinedFunctionCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a userDefinedFunction", + "$ref": "#/definitions/SqlUserDefinedFunctionResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlTriggerCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB trigger.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB trigger.", + "$ref": "#/definitions/SqlTriggerCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlTriggerCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB trigger.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a trigger", + "$ref": "#/definitions/SqlTriggerResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "MongoDBDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB MongoDB database.", + "$ref": "#/definitions/MongoDBDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "MongoDBDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a MongoDB database", + "$ref": "#/definitions/MongoDBDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "MongoDBCollectionCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", + "$ref": "#/definitions/MongoDBCollectionCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "MongoDBCollectionCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a MongoDB collection", + "$ref": "#/definitions/MongoDBCollectionResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "TableCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Table.", + "$ref": "#/definitions/TableCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "TableCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Table.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Table", + "$ref": "#/definitions/TableResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "CassandraKeyspaceCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", + "$ref": "#/definitions/CassandraKeyspaceCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "CassandraKeyspaceCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Cassandra keyspace", + "$ref": "#/definitions/CassandraKeyspaceResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "CassandraTableCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Cassandra table.", + "$ref": "#/definitions/CassandraTableCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "CassandraTableCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Cassandra table", + "$ref": "#/definitions/CassandraTableResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "GremlinDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Gremlin database.", + "$ref": "#/definitions/GremlinDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "GremlinDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Gremlin database", + "$ref": "#/definitions/GremlinDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "GremlinGraphCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", + "$ref": "#/definitions/GremlinGraphCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "GremlinGraphCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Gremlin graph", + "$ref": "#/definitions/GremlinGraphResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "ThroughputSettingsResource": { + "type": "object", + "description": "Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.", + "properties": { + "throughput": { + "type": "integer", + "description": "Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both." + }, + "autoscaleSettings": { + "description": "Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.", + "$ref": "#/definitions/AutoscaleSettingsResource" + }, + "minimumThroughput": { + "type": "string", + "description": "The minimum throughput of the resource", + "readOnly": true + }, + "offerReplacePending": { + "type": "string", + "description": "The throughput replace is pending", + "readOnly": true + } + } + }, + "AutoscaleSettingsResource": { + "type": "object", + "description": "Cosmos DB provisioned throughput settings object", + "properties": { + "maxThroughput": { + "type": "integer", + "description": "Represents maximum throughput container can scale up to." + }, + "autoUpgradePolicy": { + "description": "Cosmos DB resource auto-upgrade policy", + "$ref": "#/definitions/AutoUpgradePolicyResource" + }, + "targetMaxThroughput": { + "type": "integer", + "description": "Represents target maximum throughput container can scale up to once offer is no longer in pending state.", + "readOnly": true + } + }, + "required": [ + "maxThroughput" + ] + }, + "AutoUpgradePolicyResource": { + "type": "object", + "description": "Cosmos DB resource auto-upgrade policy", + "properties": { + "throughputPolicy": { + "description": "Represents throughput policy which service must adhere to for auto-upgrade", + "$ref": "#/definitions/ThroughputPolicyResource" + } + } + }, + "ThroughputPolicyResource": { + "type": "object", + "description": "Cosmos DB resource throughput policy", + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Determines whether the ThroughputPolicy is active or not" + }, + "incrementPercent": { + "type": "integer", + "description": "Represents the percentage by which throughput can increase every time throughput policy kicks in." + } + } + }, + "OptionsResource": { + "type": "object", + "description": "Cosmos DB options resource object", + "readOnly": true, + "properties": { + "throughput": { + "type": "integer", + "description": "Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details." + }, + "autoscaleSettings": { + "type": "object", + "$ref": "#/definitions/AutoscaleSettings", + "description": "Specifies the Autoscale settings." + } + } + }, + "SqlDatabaseResource": { + "type": "object", + "description": "Cosmos DB SQL database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL database" + } + }, + "required": [ + "id" + ] + }, + "SqlContainerResource": { + "type": "object", + "description": "Cosmos DB SQL container resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL container" + }, + "indexingPolicy": { + "$ref": "#/definitions/IndexingPolicy", + "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container" + }, + "partitionKey": { + "$ref": "#/definitions/ContainerPartitionKey", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" + }, + "defaultTtl": { + "type": "integer", + "description": "Default time to live" + }, + "uniqueKeyPolicy": { + "$ref": "#/definitions/UniqueKeyPolicy", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." + }, + "conflictResolutionPolicy": { + "$ref": "#/definitions/ConflictResolutionPolicy", + "description": "The conflict resolution policy for the container." + }, + "analyticalStorageTtl": { + "type": "integer", + "format": "int64", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "IndexingPolicy": { + "type": "object", + "description": "Cosmos DB indexing policy", + "properties": { + "automatic": { + "type": "boolean", + "description": "Indicates if the indexing policy is automatic" + }, + "indexingMode": { + "description": "Indicates the indexing mode.", + "type": "string", + "default": "consistent", + "enum": [ + "consistent", + "lazy", + "none" + ], + "x-ms-enum": { + "name": "IndexingMode", + "modelAsString": true + } + }, + "includedPaths": { + "description": "List of paths to include in the indexing", + "type": "array", + "items": { + "$ref": "#/definitions/IncludedPath" + } + }, + "excludedPaths": { + "description": "List of paths to exclude from indexing", + "type": "array", + "items": { + "$ref": "#/definitions/ExcludedPath" + } + }, + "compositeIndexes": { + "description": "List of composite path list", + "type": "array", + "items": { + "$ref": "#/definitions/CompositePathList" + } + }, + "spatialIndexes": { + "description": "List of spatial specifics", + "type": "array", + "items": { + "$ref": "#/definitions/SpatialSpec" + } + } + } + }, + "ExcludedPath": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + } + } + }, + "IncludedPath": { + "type": "object", + "description": "The paths that are included in indexing", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "indexes": { + "description": "List of indexes for this path", + "type": "array", + "items": { + "$ref": "#/definitions/Indexes" + } + } + } + }, + "Indexes": { + "type": "object", + "description": "The indexes for the path.", + "properties": { + "dataType": { + "description": "The datatype for which the indexing behavior is applied to.", + "type": "string", + "default": "String", + "enum": [ + "String", + "Number", + "Point", + "Polygon", + "LineString", + "MultiPolygon" + ], + "x-ms-enum": { + "name": "DataType", + "modelAsString": true + } + }, + "precision": { + "description": "The precision of the index. -1 is maximum precision.", + "type": "integer" + }, + "kind": { + "description": "Indicates the type of index.", + "type": "string", + "default": "Hash", + "enum": [ + "Hash", + "Range", + "Spatial" + ], + "x-ms-enum": { + "name": "IndexKind", + "modelAsString": true + } + } + } + }, + "CompositePathList": { + "description": "List of composite path", + "type": "array", + "items": { + "$ref": "#/definitions/CompositePath" + } + }, + "CompositePath": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "order": { + "description": "Sort order for composite paths.", + "type": "string", + "enum": [ + "ascending", + "descending" + ], + "x-ms-enum": { + "name": "CompositePathSortOrder", + "modelAsString": true + } + } + } + }, + "SpatialSpec": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "types": { + "description": "List of path's spatial type", + "type": "array", + "items": { + "$ref": "#/definitions/SpatialType" + } + } + } + }, + "SpatialType": { + "description": "Indicates the spatial type of index.", + "type": "string", + "enum": [ + "Point", + "LineString", + "Polygon", + "MultiPolygon" + ], + "x-ms-enum": { + "name": "SpatialType", + "modelAsString": true + } + }, + "ContainerPartitionKey": { + "type": "object", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions", + "properties": { + "paths": { + "description": "List of paths using which data within the container can be partitioned", + "type": "array", + "items": { + "$ref": "#/definitions/Path" + } + }, + "kind": { + "description": "Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create", + "type": "string", + "default": "Hash", + "enum": [ + "Hash", + "Range", + "MultiHash" + ], + "x-ms-enum": { + "name": "PartitionKind", + "modelAsString": true + } + }, + "version": { + "description": "Indicates the version of the partition key definition", + "type": "integer", + "minimum": 1, + "maximum": 2, + "format": "int32" + }, + "systemKey": { + "description": "Indicates if the container is using a system generated partition key", + "type": "boolean", + "readOnly": true + } + } + }, + "Path": { + "type": "string", + "description": "A path. These typically start with root (/path)" + }, + "UniqueKeyPolicy": { + "type": "object", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.", + "properties": { + "uniqueKeys": { + "description": "List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", + "type": "array", + "items": { + "$ref": "#/definitions/UniqueKey" + } + } + } + }, + "UniqueKey": { + "type": "object", + "description": "The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", + "properties": { + "paths": { + "description": "List of paths must be unique for each document in the Azure Cosmos DB service", + "type": "array", + "items": { + "$ref": "#/definitions/Path" + } + } + } + }, + "ConflictResolutionPolicy": { + "type": "object", + "description": "The conflict resolution policy for the container.", + "properties": { + "mode": { + "description": "Indicates the conflict resolution mode.", + "type": "string", + "default": "LastWriterWins", + "enum": [ + "LastWriterWins", + "Custom" + ], + "x-ms-enum": { + "name": "ConflictResolutionMode", + "modelAsString": true + } + }, + "conflictResolutionPath": { + "type": "string", + "description": "The conflict resolution path in the case of LastWriterWins mode." + }, + "conflictResolutionProcedure": { + "type": "string", + "description": "The procedure to resolve conflicts in the case of custom mode." + } + } + }, + "SqlStoredProcedureResource": { + "type": "object", + "description": "Cosmos DB SQL storedProcedure resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL storedProcedure" + }, + "body": { + "type": "string", + "description": "Body of the Stored Procedure" + } + }, + "required": [ + "id" + ] + }, + "SqlUserDefinedFunctionResource": { + "type": "object", + "description": "Cosmos DB SQL userDefinedFunction resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL userDefinedFunction" + }, + "body": { + "type": "string", + "description": "Body of the User Defined Function" + } + }, + "required": [ + "id" + ] + }, + "SqlTriggerResource": { + "type": "object", + "description": "Cosmos DB SQL trigger resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL trigger" + }, + "body": { + "type": "string", + "description": "Body of the Trigger" + }, + "triggerType": { + "type": "string", + "enum": [ + "Pre", + "Post" + ], + "description": "Type of the Trigger", + "x-ms-enum": { + "name": "triggerType", + "modelAsString": true + } + }, + "triggerOperation": { + "type": "string", + "enum": [ + "All", + "Create", + "Update", + "Delete", + "Replace" + ], + "description": "The operation the trigger is associated with", + "x-ms-enum": { + "name": "triggerOperation", + "modelAsString": true + } + } + }, + "required": [ + "id" + ] + }, + "MongoDBDatabaseResource": { + "type": "object", + "description": "Cosmos DB MongoDB database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB MongoDB database" + } + }, + "required": [ + "id" + ] + }, + "MongoDBCollectionResource": { + "type": "object", + "description": "Cosmos DB MongoDB collection resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB MongoDB collection" + }, + "shardKey": { + "description": "A key-value pair of shard keys to be applied for the request.", + "$ref": "#/definitions/ShardKeys" + }, + "indexes": { + "description": "List of index keys", + "type": "array", + "items": { + "$ref": "#/definitions/MongoIndex" + } + }, + "analyticalStorageTtl": { + "type": "integer", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "ShardKeys": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The shard key and partition kind pair, only support \"Hash\" partition kind" + }, + "MongoIndex": { + "type": "object", + "description": "Cosmos DB MongoDB collection index key", + "properties": { + "key": { + "description": "Cosmos DB MongoDB collection index keys", + "$ref": "#/definitions/MongoIndexKeys" + }, + "options": { + "description": "Cosmos DB MongoDB collection index key options", + "$ref": "#/definitions/MongoIndexOptions" + } + } + }, + "MongoIndexKeys": { + "type": "object", + "description": "Cosmos DB MongoDB collection resource object", + "properties": { + "keys": { + "description": "List of keys for each MongoDB collection in the Azure Cosmos DB service", + "type": "array", + "items": { + "$ref": "#/definitions/Key" + } + } + } + }, + "Key": { + "type": "string", + "description": "A Key." + }, + "MongoIndexOptions": { + "type": "object", + "description": "Cosmos DB MongoDB collection index options", + "properties": { + "expireAfterSeconds": { + "description": "Expire after seconds", + "type": "integer" + }, + "unique": { + "description": "Is unique or not", + "type": "boolean" + } + } + }, + "TableResource": { + "type": "object", + "description": "Cosmos DB table resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB table" + } + }, + "required": [ + "id" + ] + }, + "CassandraKeyspaceResource": { + "type": "object", + "description": "Cosmos DB Cassandra keyspace resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra keyspace" + } + }, + "required": [ + "id" + ] + }, + "CassandraTableResource": { + "type": "object", + "description": "Cosmos DB Cassandra table resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table" + }, + "defaultTtl": { + "type": "integer", + "description": "Time to live of the Cosmos DB Cassandra table" + }, + "schema": { + "description": "Schema of the Cosmos DB Cassandra table", + "$ref": "#/definitions/CassandraSchema" + }, + "analyticalStorageTtl": { + "type": "integer", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "CassandraSchema": { + "type": "object", + "description": "Cosmos DB Cassandra table schema", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/Column" + }, + "description": "List of Cassandra table columns." + }, + "partitionKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/CassandraPartitionKey" + }, + "description": "List of partition key." + }, + "clusterKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterKey" + }, + "description": "List of cluster key." + } + } + }, + "Column": { + "type": "object", + "description": "Cosmos DB Cassandra table column", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table column" + }, + "type": { + "type": "string", + "description": "Type of the Cosmos DB Cassandra table column" + } + } + }, + "CassandraPartitionKey": { + "type": "object", + "description": "Cosmos DB Cassandra table partition key", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table partition key" + } + } + }, + "ClusterKey": { + "type": "object", + "description": "Cosmos DB Cassandra table cluster key", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table cluster key" + }, + "orderBy": { + "type": "string", + "description": "Order of the Cosmos DB Cassandra table cluster key, only support \"Asc\" and \"Desc\"" + } + } + }, + "GremlinDatabaseResource": { + "type": "object", + "description": "Cosmos DB Gremlin database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Gremlin database" + } + }, + "required": [ + "id" + ] + }, + "GremlinGraphResource": { + "type": "object", + "description": "Cosmos DB Gremlin graph resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Gremlin graph" + }, + "indexingPolicy": { + "$ref": "#/definitions/IndexingPolicy", + "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph" + }, + "partitionKey": { + "$ref": "#/definitions/ContainerPartitionKey", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" + }, + "defaultTtl": { + "type": "integer", + "description": "Default time to live" + }, + "uniqueKeyPolicy": { + "$ref": "#/definitions/UniqueKeyPolicy", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." + }, + "conflictResolutionPolicy": { + "$ref": "#/definitions/ConflictResolutionPolicy", + "description": "The conflict resolution policy for the graph." + } + }, + "required": [ + "id" + ] + }, + "CreateUpdateOptions": { + "type": "object", + "properties": { + "throughput": { + "type": "integer", + "description": "Request Units per second. For example, \"throughput\": 10000." + }, + "autoscaleSettings": { + "$ref": "#/definitions/AutoscaleSettings", + "description": "Specifies the Autoscale settings." + } + }, + "description": "CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are \"If-Match\", \"If-None-Match\", \"Session-Token\" and \"Throughput\"" + }, + "AutoscaleSettings": { + "type": "object", + "properties": { + "maxThroughput": { + "type": "integer", + "description": "Represents maximum throughput, the resource can scale up to." + } + } + }, + "Capability": { + "type": "object", + "description": "Cosmos DB capability object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB capability. For example, \"name\": \"EnableCassandra\". Current values also include \"EnableTable\" and \"EnableGremlin\"." + } + } + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + }, + "ManagedServiceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for the Create Cosmos DB account operation are returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation. 'DeletionFailed' – the Cosmos DB account deletion failed." + }, + "IPRules": { + "type": "array", + "description": "Array of IpAddressOrRange objects.", + "items": { + "$ref": "#/definitions/IpAddressOrRange" + } + }, + "IpAddressOrRange": { + "type": "object", + "description": "IpAddressOrRange object", + "properties": { + "ipAddressOrRange": { + "type": "string", + "description": "A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”." + } + } + }, + "VirtualNetworkRule": { + "type": "object", + "description": "Virtual Network ACL Rule object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}." + }, + "ignoreMissingVNetServiceEndpoint": { + "type": "boolean", + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled." + } + } + }, + "NetworkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "type": "string", + "enum": [ + "None", + "AzureServices" + ], + "x-ms-enum": { + "name": "NetworkAclBypass", + "modelAsString": false + } + }, + "Operation": { + "description": "REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "Provider": { + "description": "Service provider: Microsoft.ResourceProvider", + "type": "string" + }, + "Resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "Operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "Description": { + "description": "Description of operation", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "UsagesResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "The list of usages for the database. A usage is a point in time metric" + } + }, + "description": "The response to a list usage request." + }, + "Usage": { + "properties": { + "unit": { + "description": "The unit of the metric.", + "$ref": "#/definitions/UnitType" + }, + "name": { + "$ref": "#/definitions/MetricName", + "readOnly": true, + "description": "The name information for the metric." + }, + "quotaPeriod": { + "type": "string", + "readOnly": true, + "description": "The quota period used to summarize the usage values." + }, + "limit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Maximum value for this metric" + }, + "currentValue": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Current value for this metric" + } + }, + "description": "The usage data for a usage request." + }, + "PartitionUsagesResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PartitionUsage" + }, + "description": "The list of partition-level usages for the database. A usage is a point in time metric" + } + }, + "description": "The response to a list partition level usage request." + }, + "PartitionUsage": { + "allOf": [ + { + "$ref": "#/definitions/Usage" + } + ], + "properties": { + "partitionId": { + "readOnly": true, + "type": "string", + "description": "The partition id (GUID identifier) of the usages." + }, + "partitionKeyRangeId": { + "readOnly": true, + "type": "string", + "description": "The partition key range id (integer identifier) of the usages." + } + }, + "description": "The partition level usage data for a usage request." + }, + "MetricDefinitionsListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MetricDefinition" + }, + "description": "The list of metric definitions for the account." + } + }, + "description": "The response to a list metric definitions request." + }, + "MetricDefinition": { + "properties": { + "metricAvailabilities": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MetricAvailability" + }, + "description": "The list of metric availabilities for the account." + }, + "primaryAggregationType": { + "readOnly": true, + "type": "string", + "description": "The primary aggregation type of the metric.", + "enum": [ + "None", + "Average", + "Total", + "Minimum", + "Maximum", + "Last" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "PrimaryAggregationType" + } + }, + "unit": { + "description": "The unit of the metric.", + "$ref": "#/definitions/UnitType" + }, + "resourceUri": { + "readOnly": true, + "type": "string", + "description": "The resource uri of the database." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + } + }, + "description": "The definition of a metric." + }, + "MetricAvailability": { + "properties": { + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "retention": { + "readOnly": true, + "type": "string", + "description": "The retention for the metric values." + } + }, + "description": "The availability of the metric." + }, + "MetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Metric" + }, + "description": "The list of metrics for the account." + } + }, + "description": "The response to a list metrics request." + }, + "Metric": { + "properties": { + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The start time for the metric (ISO-8601 format)." + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The end time for the metric (ISO-8601 format)." + }, + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "unit": { + "$ref": "#/definitions/UnitType", + "description": "The unit of the metric." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + }, + "metricValues": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MetricValue" + }, + "description": "The metric values for the specified time window and timestep." + } + }, + "description": "Metric data" + }, + "MetricName": { + "properties": { + "value": { + "readOnly": true, + "type": "string", + "description": "The name of the metric." + }, + "localizedValue": { + "readOnly": true, + "type": "string", + "description": "The friendly name of the metric." + } + }, + "description": "A metric name." + }, + "MetricValue": { + "properties": { + "_count": { + "readOnly": true, + "type": "number", + "format": "int32", + "description": "The number of values for the metric." + }, + "average": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The average value of the metric." + }, + "maximum": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The max value of the metric." + }, + "minimum": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The min value of the metric." + }, + "timestamp": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The metric timestamp (ISO-8601 format)." + }, + "total": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The total value of the metric." + } + }, + "description": "Represents metrics values." + }, + "PercentileMetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PercentileMetric" + }, + "description": "The list of percentile metrics for the account." + } + }, + "description": "The response to a list percentile metrics request." + }, + "PercentileMetric": { + "properties": { + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The start time for the metric (ISO-8601 format)." + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The end time for the metric (ISO-8601 format)." + }, + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "unit": { + "$ref": "#/definitions/UnitType", + "description": "The unit of the metric." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + }, + "metricValues": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PercentileMetricValue" + }, + "description": "The percentile metric values for the specified time window and timestep." + } + }, + "description": "Percentile Metric data" + }, + "PercentileMetricValue": { + "allOf": [ + { + "$ref": "#/definitions/MetricValue" + } + ], + "properties": { + "P10": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 10th percentile value for the metric." + }, + "P25": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 25th percentile value for the metric." + }, + "P50": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 50th percentile value for the metric." + }, + "P75": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 75th percentile value for the metric." + }, + "P90": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 90th percentile value for the metric." + }, + "P95": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 95th percentile value for the metric." + }, + "P99": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 99th percentile value for the metric." + } + }, + "description": "Represents percentile metrics values." + }, + "PartitionMetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PartitionMetric" + }, + "description": "The list of partition-level metrics for the account." + } + }, + "description": "The response to a list partition metrics request." + }, + "PartitionMetric": { + "allOf": [ + { + "$ref": "#/definitions/Metric" + } + ], + "properties": { + "partitionId": { + "readOnly": true, + "type": "string", + "description": "The partition id (GUID identifier) of the metric values." + }, + "partitionKeyRangeId": { + "readOnly": true, + "type": "string", + "description": "The partition key range id (integer identifier) of the metric values." + } + }, + "description": "The metric values for a single partition." + }, + "UnitType": { + "type": "string", + "readOnly": true, + "description": "The unit of the metric.", + "enum": [ + "Count", + "Bytes", + "Seconds", + "Percent", + "CountPerSecond", + "BytesPerSecond", + "Milliseconds" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "UnitType" + } + }, + "ConnectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB C* database account.", + "type": "string", + "enum": [ + "Small" + ], + "x-ms-enum": { + "name": "ConnectorOffer", + "modelAsString": true + } + }, + "PublicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "PublicNetworkAccess" + } + }, + "ApiProperties": { + "type": "object", + "properties": { + "serverVersion": { + "type": "string", + "enum": [ + "3.2", + "3.6", + "4.0" + ], + "description": "Describes the ServerVersion of an a MongoDB account.", + "x-ms-enum": { + "modelAsString": true, + "name": "ServerVersion" + } + } + } + }, + "AnalyticalStorageConfiguration": { + "type": "object", + "description": "Analytical storage specific properties.", + "properties": { + "schemaType": { + "type": "string", + "$ref": "#/definitions/AnalyticalStorageSchemaType" + } + } + }, + "AnalyticalStorageSchemaType": { + "type": "string", + "description": "Describes the types of schema for analytical storage.", + "enum": [ + "WellDefined", + "FullFidelity" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "AnalyticalStorageSchemaType" + } + }, + "CreateMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "enum": [ + "Default", + "Restore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + }, + "RestoreParameters": { + "type": "object", + "description": "Parameters to indicate the information about the restore.", + "x-ms-mutability": [ + "read", + "create" + ], + "properties": { + "restoreMode": { + "type": "string", + "enum": [ + "PointInTime" + ], + "description": "Describes the mode of the restore.", + "x-ms-enum": { + "modelAsString": true, + "name": "RestoreMode" + } + }, + "restoreSource": { + "type": "string", + "description": "The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}" + }, + "restoreTimestampInUtc": { + "type": "string", + "format": "date-time", + "description": "Time to which the account has to be restored (ISO-8601 format)." + }, + "databasesToRestore": { + "type": "array", + "description": "List of specific databases available for restore.", + "items": { + "$ref": "#/definitions/DatabaseRestoreResource" + } + } + } + }, + "DatabaseRestoreResource": { + "type": "object", + "description": "Specific Databases to restore.", + "properties": { + "databaseName": { + "type": "string", + "description": "The name of the database available for restore." + }, + "collectionNames": { + "type": "array", + "description": "The names of the collections available for restore.", + "items": { + "$ref": "#/definitions/CollectionName" + } + } + } + }, + "CollectionName": { + "type": "string", + "description": "The name of the collection." + }, + "BackupPolicy": { + "type": "object", + "description": "The object representing the policy for taking backups on an account.", + "discriminator": "type", + "properties": { + "type": { + "description": "Describes the mode of backups.", + "type": "string", + "$ref": "#/definitions/BackupPolicyType" + }, + "migrationState": { + "description": "The object representing the state of the migration between the backup policies.", + "type": "object", + "$ref": "#/definitions/BackupPolicyMigrationState" + } + }, + "required": [ + "type" + ] + }, + "BackupPolicyType": { + "description": "Describes the mode of backups.", + "type": "string", + "enum": [ + "Periodic", + "Continuous" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "BackupPolicyType" + } + }, + "BackupPolicyMigrationState": { + "type": "object", + "description": "The object representing the state of the migration between the backup policies.", + "properties": { + "status": { + "description": "Describes the status of migration between backup policy types.", + "type": "string", + "$ref": "#/definitions/BackupPolicyMigrationStatus" + }, + "targetType": { + "description": "Describes the target backup policy type of the backup policy migration.", + "type": "string", + "$ref": "#/definitions/BackupPolicyType" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Time at which the backup policy migration started (ISO-8601 format)." + } + } + }, + "BackupPolicyMigrationStatus": { + "description": "Describes the status of migration between backup policy types.", + "type": "string", + "enum": [ + "Invalid", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "BackupPolicyMigrationStatus" + } + }, + "PeriodicModeBackupPolicy": { + "description": "The object representing periodic mode backup policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BackupPolicy" + } + ], + "properties": { + "periodicModeProperties": { + "type": "object", + "description": "Configuration values for periodic mode backup", + "$ref": "#/definitions/PeriodicModeProperties" + } + }, + "x-ms-discriminator-value": "Periodic" + }, + "ContinuousModeBackupPolicy": { + "description": "The object representing continuous mode backup policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BackupPolicy" + } + ], + "x-ms-discriminator-value": "Continuous" + }, + "PeriodicModeProperties": { + "type": "object", + "description": "Configuration values for periodic mode backup", + "properties": { + "backupIntervalInMinutes": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "An integer representing the interval in minutes between two backups" + }, + "backupRetentionIntervalInHours": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "An integer representing the time (in hours) that each backup is retained" + } + } + } + }, + "parameters": { + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of an Azure resource group." + }, + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "filterParameter": { + "name": "$filter", + "in": "query", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq." + }, + "usageFilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)." + }, + "databaseRidParameter": { + "name": "databaseRid", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database rid." + }, + "collectionRidParameter": { + "name": "collectionRid", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB collection rid." + }, + "databaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database name." + }, + "containerNameParameter": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB container name." + }, + "storedProcedureNameParameter": { + "name": "storedProcedureName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB storedProcedure name." + }, + "userDefinedFunctionNameParameter": { + "name": "userDefinedFunctionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB userDefinedFunction name." + }, + "triggerNameParameter": { + "name": "triggerName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB trigger name." + }, + "tableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB table name." + }, + "collectionNameParameter": { + "name": "collectionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB collection name." + }, + "keyspaceNameParameter": { + "name": "keyspaceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB keyspace name." + }, + "graphNameParameter": { + "name": "graphName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB graph name." + }, + "regionParameter": { + "name": "region", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + }, + "sourceRegionParameter": { + "name": "sourceRegion", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized." + }, + "targetRegionParameter": { + "name": "targetRegion", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized." + }, + "partitionKeyRangeIdParameter": { + "name": "partitionKeyRangeId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Partition Key Range Id for which to get data." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json new file mode 100644 index 000000000000..07334d025189 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "location": { + "location": "North Europe" + } + }, + "responses": { + "200": { + "body": { + "continuousBackupInformation": { + "latestRestorableTimestamp": "2021-02-05T02:40:50Z" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json new file mode 100644 index 000000000000..3017a1f51a7c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "createUpdateCassandraKeyspaceParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json new file mode 100644 index 000000000000..7440ccf29d85 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json new file mode 100644 index 000000000000..e689b5aabb2e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json new file mode 100644 index 000000000000..0142481c1679 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json new file mode 100644 index 000000000000..3b5a45937124 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json new file mode 100644 index 000000000000..8001637064de --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json new file mode 100644 index 000000000000..18164f4207c5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json new file mode 100644 index 000000000000..a4cb9845ab45 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json new file mode 100644 index 000000000000..14c53e34f07d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName", + "createUpdateCassandraTableParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json new file mode 100644 index 000000000000..830269e5c8f2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json new file mode 100644 index 000000000000..ba8c558698cf --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json new file mode 100644 index 000000000000..8d9d3fec0e58 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json new file mode 100644 index 000000000000..9839f7e1e1ec --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json new file mode 100644 index 000000000000..b5faee795de4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json new file mode 100644 index 000000000000..38697d85e1bb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json new file mode 100644 index 000000000000..11394661ef91 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json new file mode 100644 index 000000000000..1d05a81d29dc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-06-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json new file mode 100644 index 000000000000..ab0b897701f8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json new file mode 100644 index 000000000000..f9fcb26b0767 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json new file mode 100644 index 000000000000..10aaec6744ba --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json new file mode 100644 index 000000000000..d2f9ee7c5268 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Partition Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json new file mode 100644 index 000000000000..b7236c471e50 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json new file mode 100644 index 000000000000..c6268b794723 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "accountName": "ddb1", + "api-version": "2021-06-15" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json new file mode 100644 index 000000000000..ac83ea9d5a1e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -0,0 +1,214 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "tags": {}, + "kind": "MongoDB", + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "databaseAccountOfferType": "Standard", + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "publicNetworkAccess": "Enabled", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + }, + { + "failoverPriority": 1, + "locationName": "eastus", + "isZoneRedundant": false + } + ], + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8 + } + }, + "cors": [ + { + "allowedOrigins": "https://test" + } + ], + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "MongoDB", + "tags": {}, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + }, + "properties": { + "provisioningState": "Initializing", + "isVirtualNetworkFilterEnabled": true, + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "provisioningState": "Initializing", + "failoverPriority": 1, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "provisioningState": "Initializing", + "failoverPriority": 1, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 1 + } + ], + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + } + ], + "publicNetworkAccess": "Enabled", + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "createMode": "Default", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8 + } + }, + "cors": [ + { + "allowedOrigins": "https://test" + } + ], + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json new file mode 100644 index 000000000000..650a955d33b5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "properties": { + "databaseAccountOfferType": "Standard", + "createMode": "Default", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Initializing", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + } + ], + "cors": [], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": false, + "analyticalStorageConfiguration": null, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [], + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720 + } + } + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json new file mode 100644 index 000000000000..14560bcf6f1b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json new file mode 100644 index 000000000000..f46bca406e08 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "accountName": "ddb1-failover", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "failoverParameters": { + "failoverPolicies": [ + { + "locationName": "eastus", + "failoverPriority": 0 + }, + { + "locationName": "westus", + "failoverPriority": 1 + } + ] + } + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json new file mode 100644 index 000000000000..2eed72d60692 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json @@ -0,0 +1,117 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "isVirtualNetworkFilterEnabled": false, + "virtualNetworkRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "defaultIdentity": "FirstPartyIdentity", + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8 + }, + "migrationState": { + "status": "InProgress", + "targetType": "Continuous", + "startTime": "2021-06-09T21:07:16Z" + } + }, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json new file mode 100644 index 000000000000..07ac6ddf03fa --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json new file mode 100644 index 000000000000..9e0a2bdffd0f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json new file mode 100644 index 000000000000..049d20d44a8c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json new file mode 100644 index 000000000000..338160e5906a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720 + } + }, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json new file mode 100644 index 000000000000..ee061fd7bb19 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "cors": [], + "enableFreeTier": false, + "defaultIdentity": "FirstPartyIdentity", + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json new file mode 100644 index 000000000000..6d0b8bc15fce --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json new file mode 100644 index 000000000000..5ea69ce948b1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "accountName": "mongo-ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "connectionStrings": [ + { + "connectionString": "connection-string", + "description": "Name of the connection string" + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json new file mode 100644 index 000000000000..d4007672c2e3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primaryMasterKey": "primaryMasterKey", + "secondaryMasterKey": "secondaryMasterKey", + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json new file mode 100644 index 000000000000..3e7909c2baaf --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json new file mode 100644 index 000000000000..9283385f3a06 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "region": "North Europe", + "regionParameterForOffline": [ + { + "region": "North Europe" + } + ] + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json new file mode 100644 index 000000000000..52dd9fe1db3b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "region": "North Europe", + "regionParameterForOnline": [ + { + "region": "North Europe" + } + ] + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json new file mode 100644 index 000000000000..fff0b5301fc9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json @@ -0,0 +1,177 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "updateParameters": { + "location": "westus", + "tags": { + "dept": "finance" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720 + } + }, + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": { + "dept": "finance" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "databaseAccountOfferType": "Standard", + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720 + } + }, + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json new file mode 100644 index 000000000000..bf758f59a2d1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "keyToRegenerate": { + "keyKind": "primary" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json new file mode 100644 index 000000000000..377a92e88076 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json new file mode 100644 index 000000000000..7c597314f458 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-06-15", + "databaseRid": "databaseRid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json new file mode 100644 index 000000000000..8ad1652a7555 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "rid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json new file mode 100644 index 000000000000..6a67dbbadc84 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "databaseRid": "databaseRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json new file mode 100644 index 000000000000..2e3b01ffe967 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateGremlinDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json new file mode 100644 index 000000000000..ce64c56dfdde --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json new file mode 100644 index 000000000000..5cf21c7ce5b3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json new file mode 100644 index 000000000000..c63605696253 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..578e108ad4b7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..a17e63438501 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json new file mode 100644 index 000000000000..a76fe0db892c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..3d107c86cd69 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json new file mode 100644 index 000000000000..d5f03caa94df --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName", + "createUpdateGremlinGraphParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName", + "name": "graphName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/gremlinGraphs", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json new file mode 100644 index 000000000000..96c739d37e9f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json new file mode 100644 index 000000000000..3b2ee1f1382f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "id": "graphName", + "name": "graphName", + "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json new file mode 100644 index 000000000000..42610d1d6dfe --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "testgrf", + "name": "testgrf", + "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", + "properties": { + "resource": { + "id": "testgrf", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json new file mode 100644 index 000000000000..3d04a2a0ab2a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json new file mode 100644 index 000000000000..2314d716f4b4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json new file mode 100644 index 000000000000..8d24fdbec685 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json new file mode 100644 index 000000000000..62187c37f8a6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json new file mode 100644 index 000000000000..8898c7ec37ba --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName", + "createUpdateMongoDBCollectionParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "collectionName", + "indexes": [ + { + "key": { + "keys": [ + "_ts" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + }, + { + "key": { + "keys": [ + "_id" + ] + } + } + ], + "shardKey": { + "testKey": "Hash" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "collectionName", + "indexes": [ + { + "key": { + "keys": [ + "_ts" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + }, + { + "key": { + "keys": [ + "_id" + ] + } + } + ], + "shardKey": { + "testKey": "Hash" + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json new file mode 100644 index 000000000000..bc0a32b1eba1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json new file mode 100644 index 000000000000..6e047862ab63 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testcoll", + "indexes": [ + { + "key": { + "keys": [ + "testKey" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + } + ], + "shardKey": { + "testKey": "Hash" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json new file mode 100644 index 000000000000..2f5bd9bc0d8c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testcoll", + "indexes": [ + { + "key": { + "keys": [ + "testKey" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + } + ], + "shardKey": { + "testKey": "Hash" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json new file mode 100644 index 000000000000..a2dec18072a8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json new file mode 100644 index 000000000000..035f4ef2472b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json new file mode 100644 index 000000000000..024c8bcdcb15 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json new file mode 100644 index 000000000000..0d0cba747c6e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json new file mode 100644 index 000000000000..3e9ab55e93fb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateMongoDBDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "updatedDatabaseName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json new file mode 100644 index 000000000000..ce64c56dfdde --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json new file mode 100644 index 000000000000..c37158472b3b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json new file mode 100644 index 000000000000..63351317f019 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..578e108ad4b7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..a17e63438501 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json new file mode 100644 index 000000000000..a041e64bb223 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..0bef1954cf34 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json new file mode 100644 index 000000000000..13ef05c13b6f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default", + "notebookCreateUpdateParameters": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json new file mode 100644 index 000000000000..7d38c1430d9c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "notebookWorkspaceName": "default" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json new file mode 100644 index 000000000000..a0ddcc7a438b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json new file mode 100644 index 000000000000..17b810259c51 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json new file mode 100644 index 000000000000..7e0bcaccff42 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": { + "body": { + "authToken": "auth-token", + "notebookServerEndpoint": "notebook endpoint" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json new file mode 100644 index 000000000000..8c64e35501c0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json new file mode 100644 index 000000000000..8c64e35501c0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json new file mode 100644 index 000000000000..54b3171afc4a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "operationName", + "display": { + "Provider": "providerName", + "Resource": "resourceName", + "Operation": "operationName", + "Description": "description" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json new file mode 100644 index 000000000000..1183769c1106 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "partitionKeyRangeId": "0", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json new file mode 100644 index 000000000000..ca751ed54d65 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "partitionKeyRangeId": "0", + "region": "West US", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json new file mode 100644 index 000000000000..68902c13feb9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + }, + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-West US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json new file mode 100644 index 000000000000..4a1dcd4d12b2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "sourceRegion": "West Central US", + "targetRegion": "East US", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json new file mode 100644 index 000000000000..8c320b93e0f5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "targetRegion": "East US", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + }, + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..5ee9a11c6047 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15", + "privateEndpointConnectionName": "privateEndpointConnectionName" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..0cfb43e922ed --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15", + "privateEndpointConnectionName": "privateEndpointConnectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json new file mode 100644 index 000000000000..8415aa67c3da --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName2", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..dd998c8412d0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15", + "privateEndpointConnectionName": "privateEndpointConnectionName", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json new file mode 100644 index 000000000000..e617e6ffd298 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15", + "groupName": "sql" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", + "name": "sql", + "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", + "properties": { + "groupId": "sql", + "requiredMembers": [ + "ddb1", + "ddb1-westus" + ], + "requiredZoneNames": [ + "privatelink.documents.azure.net" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json new file mode 100644 index 000000000000..9952a0416262 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", + "name": "sql", + "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", + "properties": { + "groupId": "sql", + "requiredMembers": [ + "ddb1", + "ddb1-westus" + ], + "requiredZoneNames": [ + "privatelink.documents.azure.net" + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json new file mode 100644 index 000000000000..7cac5d43a6cd --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json new file mode 100644 index 000000000000..f59b65c2bd65 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "location": "West US", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json new file mode 100644 index 000000000000..36c2706faafc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "location": "West US" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb2", + "creationTime": "2020-05-01T08:05:18Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json new file mode 100644 index 000000000000..d8bc567b1ae4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "location": "East US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb2", + "creationTime": "2020-05-01T08:05:18Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json new file mode 100644 index 000000000000..094da156a190 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "location": "WestUS", + "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", + "restorableMongodbDatabaseRid": "PD5DALigDgw=" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections", + "name": "79609a98-3394-41f8-911f-cfab0c075c86", + "properties": { + "resource": { + "_rid": "zAyAPQAAAA==", + "eventTimestamp": "2020-10-13T04:56:42Z", + "ownerId": "Collection1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Create" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json new file mode 100644 index 000000000000..f6bdfb3edd25 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", + "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", + "properties": { + "resource": { + "_rid": "DLB14gAAAA==", + "eventTimestamp": "2020-09-02T19:45:03Z", + "ownerId": "Database1", + "ownerResourceId": "PD5DALigDgw=", + "operationType": "Create" + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", + "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "properties": { + "resource": { + "_rid": "ESXNLAAAAA==", + "eventTimestamp": "2020-09-02T19:53:42Z", + "ownerId": "Database1", + "ownerResourceId": "PD5DALigDgw=", + "operationType": "Delete" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json new file mode 100644 index 000000000000..50c9d2bc1677 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "restoreLocation": "WestUS", + "restoreTimestampInUtc": "10/13/2020 4:56" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "databaseName": "Database1", + "collectionNames": [ + "Collection1" + ] + }, + { + "databaseName": "Database2", + "collectionNames": [ + "Collection1", + "Collection2" + ] + }, + { + "databaseName": "Database3", + "collectionNames": [] + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json new file mode 100644 index 000000000000..09e901a5bbaf --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "location": "WestUS", + "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", + "restorableSqlDatabaseRid": "3fu-hg==" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/79609a98-3394-41f8-911f-cfab0c075c86", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", + "name": "79609a98-3394-41f8-911f-cfab0c075c86", + "properties": { + "resource": { + "_rid": "zAyAPQAAAA==", + "eventTimestamp": "2020-10-13T04:56:42Z", + "ownerId": "Container1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Create", + "container": { + "id": "Container1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*" + }, + { + "path": "/\"_ts\"/?" + } + ], + "excludedPaths": [ + { + "path": "/\"_etag\"/?" + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/_ts", + "conflictResolutionProcedure": "" + }, + "_rid": "V18LoLrv-qA=", + "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", + "_etag": "\"00003e00-0000-0700-0000-5f85338a0000\"" + } + } + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/e85298a1-c631-4726-825e-a7ca092e9098", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", + "name": "e85298a1-c631-4726-825e-a7ca092e9098", + "properties": { + "resource": { + "_rid": "PrArcgAAAA==", + "eventTimestamp": "2020-10-13T05:03:27Z", + "ownerId": "Container1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Replace", + "container": { + "id": "Container1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*" + }, + { + "path": "/\"_ts\"/?" + } + ], + "excludedPaths": [ + { + "path": "/\"_etag\"/?" + } + ] + }, + "defaultTtl": 12345, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/_ts", + "conflictResolutionProcedure": "" + }, + "_rid": "V18LoLrv-qA=", + "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", + "_etag": "\"00004400-0000-0700-0000-5f85351f0000\"" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json new file mode 100644 index 000000000000..ab840e0f80e4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableSqlDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", + "properties": { + "resource": { + "_rid": "DLB14gAAAA==", + "eventTimestamp": "2020-09-02T19:45:03Z", + "ownerId": "Database1", + "ownerResourceId": "3fu-hg==", + "operationType": "Create", + "database": { + "id": "Database1", + "_rid": "3fu-hg==", + "_self": "dbs/3fu-hg==/", + "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "properties": { + "resource": { + "_rid": "ESXNLAAAAA==", + "eventTimestamp": "2020-09-02T19:53:42Z", + "ownerId": "Database1", + "ownerResourceId": "3fu-hg==", + "database": { + "id": "Database1", + "_rid": "3fu-hg==", + "_self": "dbs/3fu-hg==/", + "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", + "_colls": "colls/", + "_users": "users/", + "_ts": 1599075903 + }, + "operationType": "Delete" + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/2c07991b-9c7c-4e85-be68-b18c1f2ff326", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "2c07991b-9c7c-4e85-be68-b18c1f2ff326", + "properties": { + "resource": { + "_rid": "aXFqUQAAAA==", + "eventTimestamp": "2020-09-02T19:53:15Z", + "ownerId": "Database2", + "ownerResourceId": "0SziSg==", + "database": { + "id": "Database2", + "_rid": "0SziSg==", + "_self": "dbs/0SziSg==/", + "_etag": "\"0000ca0a-0000-0700-0000-5f4ff82b0000\"", + "_colls": "colls/", + "_users": "users/" + }, + "operationType": "Create" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json new file mode 100644 index 000000000000..610d05af58d5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "restoreLocation": "WestUS", + "restoreTimestampInUtc": "10/13/2020 4:56" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "databaseName": "Database1", + "collectionNames": [ + "Container1" + ] + }, + { + "databaseName": "Database2", + "collectionNames": [ + "Container1", + "Container2" + ] + }, + { + "databaseName": "Database3", + "collectionNames": [] + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json new file mode 100644 index 000000000000..ff51f9157212 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "tags": {}, + "kind": "GlobalDocumentDB", + "properties": { + "databaseAccountOfferType": "Standard", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + } + ], + "createMode": "Restore", + "restoreParameters": { + "restoreMode": "PointInTime", + "restoreSource": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", + "restoreTimestampInUtc": "2021-03-11T22:05:09Z", + "databasesToRestore": [ + { + "databaseName": "db1", + "collectionNames": [ + "collection1", + "collection2" + ] + }, + { + "databaseName": "db2", + "collectionNames": [ + "collection3", + "collection4" + ] + } + ] + }, + "backupPolicy": { + "type": "Continuous" + }, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "enableFreeTier": false, + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Initializing", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Restore", + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + } + ], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": false + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json new file mode 100644 index 000000000000..3ba41870d39a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "createUpdateSqlContainerParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json new file mode 100644 index 000000000000..7922dea949af --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json new file mode 100644 index 000000000000..03a39f29d3d9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + }, + "options": { + "throughput": 400 + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json new file mode 100644 index 000000000000..c6d2f5381eb7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json @@ -0,0 +1,192 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName1", + "name": "containerName1", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber", + "/AccountLocation" + ], + "kind": "MultiHash", + "version": 2 + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDiw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName2", + "name": "containerName2", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn2", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/_partitionKey" + ], + "kind": "Hash", + "version": 2, + "systemKey": true + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDhw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json new file mode 100644 index 000000000000..206dfda2d316 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json new file mode 100644 index 000000000000..ddc7fc9bd99b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json new file mode 100644 index 000000000000..11b92d38effc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json new file mode 100644 index 000000000000..353b7d9888f0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json new file mode 100644 index 000000000000..85e41c165686 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateSqlDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json new file mode 100644 index 000000000000..ce64c56dfdde --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json new file mode 100644 index 000000000000..e8a7797776b3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json new file mode 100644 index 000000000000..90686957cd52 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..578e108ad4b7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..a17e63438501 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json new file mode 100644 index 000000000000..685833dccc03 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..422f226d38ee --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json new file mode 100644 index 000000000000..04a79404f6d0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15", + "createUpdateSqlRoleAssignmentParameters": { + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json new file mode 100644 index 000000000000..04076dbdac29 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json new file mode 100644 index 000000000000..805ef7b6cd30 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json new file mode 100644 index 000000000000..4172429683a0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json new file mode 100644 index 000000000000..339da2d024d9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15", + "createUpdateSqlRoleDefinitionParameters": { + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ] + } + ] + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json new file mode 100644 index 000000000000..499a0001c41b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json new file mode 100644 index 000000000000..5b37a95a0fa6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json new file mode 100644 index 000000000000..aa2b644a0702 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-06-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json new file mode 100644 index 000000000000..06b9e748df68 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName", + "createUpdateSqlStoredProcedureParameters": { + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "storedProcedureName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json new file mode 100644 index 000000000000..05eb408ed6b2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json new file mode 100644 index 000000000000..ac3e53c59a62 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "storedProcedureName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json new file mode 100644 index 000000000000..f82d04689b5e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json new file mode 100644 index 000000000000..63168f34b594 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName", + "createUpdateSqlTriggerParameters": { + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "triggerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json new file mode 100644 index 000000000000..9944e6c85aac --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json new file mode 100644 index 000000000000..bb77878eb15e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "triggerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json new file mode 100644 index 000000000000..b6e9309afe32 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json new file mode 100644 index 000000000000..a3be0a4a2141 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName", + "createUpdateSqlUserDefinedFunctionParameters": { + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "userDefinedFunctionName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json new file mode 100644 index 000000000000..ee81d5698f3c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json new file mode 100644 index 000000000000..2b59daee7ba2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "userDefinedFunctionName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json new file mode 100644 index 000000000000..f0c88b4bdbb8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json new file mode 100644 index 000000000000..1454a426bce0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName", + "createUpdateTableParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "properties": { + "resource": { + "id": "tableName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json new file mode 100644 index 000000000000..0ff9d809566d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json new file mode 100644 index 000000000000..f0ae4e51b84c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json new file mode 100644 index 000000000000..c72c1847a733 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-06-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json new file mode 100644 index 000000000000..85b233147fa1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json new file mode 100644 index 000000000000..9e97d33678b7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json new file mode 100644 index 000000000000..58e0b3557d71 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json new file mode 100644 index 000000000000..af621f2bfed6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-06-15", + "subscriptionId": "subid", + "tableName": "tableName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json new file mode 100644 index 000000000000..6a3e3c3cf3a3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json @@ -0,0 +1,461 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": { + "get": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Gets the notebook workspace resources of an existing Cosmos DB account.", + "operationId": "NotebookWorkspaces_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved notebook workspace resources.", + "schema": { + "$ref": "#/definitions/NotebookWorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceList": { + "$ref": "./examples/CosmosDBNotebookWorkspaceList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": { + "get": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Gets the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified notebook workspace resource.", + "schema": { + "$ref": "#/definitions/NotebookWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceGet": { + "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json" + } + } + }, + "put": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Creates the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + }, + { + "name": "notebookCreateUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters" + }, + "description": "The notebook workspace to create for the current database account." + } + ], + "responses": { + "200": { + "description": "Creation of notebook workspace will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NotebookWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceCreate": { + "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json" + } + } + }, + "delete": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Deletes the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "202": { + "description": "The notebook workspace delete operation will complete asynchronously." + }, + "204": { + "description": "The specified notebook workspace does not exist in the database account." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceDelete": { + "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_ListConnectionInfo", + "x-ms-examples": { + "CosmosDBNotebookWorkspaceListConnectionInfo": { + "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json" + } + }, + "description": "Retrieves the connection info for the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_RegenerateAuthToken", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceRegenerateAuthToken": { + "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json" + } + }, + "description": "Regenerates the auth token for the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The regenerate auth token operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_Start", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceStart": { + "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json" + } + }, + "description": "Starts the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The start operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "NotebookWorkspaceCreateUpdateParameters": { + "description": "Parameters to create a notebook workspace resource", + "type": "object", + "allOf": [ + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "NotebookWorkspaceListResult": { + "description": "A list of notebook workspace resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of notebook workspace resources", + "items": { + "$ref": "#/definitions/NotebookWorkspace" + } + } + } + }, + "NotebookWorkspace": { + "description": "A notebook workspace resource", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotebookWorkspaceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "NotebookWorkspaceProperties": { + "description": "Properties of a notebook workspace resource.", + "type": "object", + "properties": { + "notebookServerEndpoint": { + "description": "Specifies the endpoint of Notebook server.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.", + "type": "string", + "readOnly": true + } + } + }, + "NotebookWorkspaceConnectionInfoResult": { + "description": "The connection info for the given notebook workspace", + "properties": { + "authToken": { + "type": "string", + "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).", + "readOnly": true + }, + "notebookServerEndpoint": { + "type": "string", + "description": "Specifies the endpoint of Notebook server.", + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "NotebookWorkspaceNameParameter": { + "name": "notebookWorkspaceName", + "in": "path", + "description": "The name of the notebook workspace resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "NotebookWorkspaceName", + "modelAsString": true + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json new file mode 100644 index 000000000000..23921b8549f9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json @@ -0,0 +1,318 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "List all private endpoint connections on a Cosmos DB account.", + "operationId": "PrivateEndpointConnections_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted. The private endpoint connection update will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The private endpoint connection delete will complete asynchronously." + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionDelete.json" + } + } + } + } + }, + "definitions": { + "PrivateEndpointConnectionListResult": { + "description": "A list of private endpoint connections", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateEndpointConnectionProperties": { + "description": "Properties of a private endpoint connection.", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection State of the Private Endpoint Connection." + }, + "groupId": { + "type": "string", + "description": "Group id of the private endpoint." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the private endpoint." + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "description": "Private endpoint which the connection belongs to.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "description": "Connection State of the Private Endpoint Connection.", + "properties": { + "status": { + "type": "string", + "description": "The private link service connection status." + }, + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "actionsRequired": { + "type": "string", + "description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)", + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "PrivateEndpointConnectionNameParameter": { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the private endpoint connection." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json new file mode 100644 index 000000000000..874f9a7d130a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json @@ -0,0 +1,195 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Cosmos DB account.", + "operationId": "PrivateLinkResources_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateLinkResourceListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Cosmos DB account.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/GroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private link resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateLinkResourceGet.json" + } + } + } + } + }, + "definitions": { + "PrivateLinkResourceListResult": { + "description": "A list of private link resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + } + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "description": "The private link resource required zone names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "GroupNameParameter": { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json new file mode 100644 index 000000000000..0bf4d5b4c205 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json @@ -0,0 +1,573 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}": { + "get": { + "operationId": "SqlResources_GetSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionGet": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Definition was successfully retrieved.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionCreateUpdate": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB SQL Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlRoleDefinitionParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a Role Definition.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Role Definition create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + } + }, + "202": { + "description": "The Role Definition create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionDelete": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB SQL Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Definition delete operation was completed successfully." + }, + "202": { + "description": "The Role Definition delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested Role Definition does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions": { + "get": { + "operationId": "SqlResources_ListSqlRoleDefinitions", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionList": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB SQL Role Definitions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}": { + "get": { + "operationId": "SqlResources_GetSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentGet": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Assignment was successfully retrieved.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentCreateUpdate": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB SQL Role Assignment.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlRoleAssignmentParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a Role Assignment.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Role Assignment create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + } + }, + "202": { + "description": "The Role Assignment create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentDelete": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB SQL Role Assignment.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Assignment delete operation was completed successfully." + }, + "202": { + "description": "The Role Assignment delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested Role Assignment does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments": { + "get": { + "operationId": "SqlResources_ListSqlRoleAssignments", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentList": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB SQL Role Assignments.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SqlRoleDefinitionResource": { + "properties": { + "roleName": { + "type": "string", + "description": "A user-friendly name for the Role Definition. Must be unique for the database account." + }, + "type": { + "type": "string", + "enum": [ + "BuiltInRole", + "CustomRole" + ], + "description": "Indicates whether the Role Definition was built-in or user created.", + "x-ms-enum": { + "name": "RoleDefinitionType", + "modelAsString": false + } + }, + "assignableScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist." + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "description": "The set of operations allowed through this Role Definition." + } + }, + "description": "Azure Cosmos DB SQL Role Definition resource object." + }, + "SqlRoleDefinitionCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB SQL Role Definition.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB SQL Role Definition.", + "$ref": "#/definitions/SqlRoleDefinitionResource" + } + } + }, + "SqlRoleDefinitionGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SqlRoleDefinitionResource", + "description": "Properties related to the Role Definition." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB SQL Role Definition." + }, + "Permission": { + "type": "object", + "properties": { + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of data actions that are allowed." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of data actions that are denied." + } + }, + "description": "The set of data plane operations permitted through this Role Definition." + }, + "SqlRoleDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + }, + "description": "List of Role Definitions and their properties." + } + }, + "description": "The relevant Role Definitions." + }, + "SqlRoleAssignmentResource": { + "type": "object", + "properties": { + "roleDefinitionId": { + "type": "string", + "description": "The unique identifier for the associated Role Definition." + }, + "scope": { + "type": "string", + "description": "The data plane resource path for which access is being granted through this Role Assignment." + }, + "principalId": { + "type": "string", + "description": "The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription." + } + }, + "description": "Azure Cosmos DB SQL Role Assignment resource object." + }, + "SqlRoleAssignmentCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB SQL Role Assignment.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB SQL Role Assignment.", + "$ref": "#/definitions/SqlRoleAssignmentResource" + } + } + }, + "SqlRoleAssignmentGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SqlRoleAssignmentResource", + "description": "Properties related to the Role Assignment." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB Role Assignment" + }, + "SqlRoleAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + }, + "description": "List of Role Assignments and their properties" + } + }, + "description": "The relevant Role Assignments." + } + }, + "parameters": { + "roleDefinitionIdParameter": { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The GUID for the Role Definition." + }, + "roleAssignmentIdParameter": { + "name": "roleAssignmentId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The GUID for the Role Assignment." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json new file mode 100644 index 000000000000..6fc48dab521b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json @@ -0,0 +1,1120 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts": { + "get": { + "operationId": "RestorableDatabaseAccounts_ListByLocation", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountList": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountList.json" + } + }, + "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts": { + "get": { + "operationId": "RestorableDatabaseAccounts_List", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountNoLocationList": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountNoLocationList.json" + } + }, + "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}": { + "get": { + "operationId": "RestorableDatabaseAccounts_GetByLocation", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountGet": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The restorable database account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation": { + "post": { + "operationId": "SqlResources_RetrieveContinuousBackupInformation", + "x-ms-examples": { + "CosmosDBSqlContainerBackupInformation": { + "$ref": "./examples/CosmosDBBackupInformation.json" + } + }, + "description": "Retrieves continuous backup information for a container resource.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/databaseNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "location", + "required": true, + "description": "The name of the continuous backup restore location.", + "schema": { + "$ref": "#/definitions/ContinuousBackupRestoreLocation" + } + } + ], + "responses": { + "200": { + "description": "The Sql container retrieve backup information operation completed successfully.", + "schema": { + "$ref": "#/definitions/BackupInformation" + } + }, + "202": { + "description": "The sql container retrieve backup information operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases": { + "get": { + "operationId": "RestorableSqlDatabases_List", + "x-ms-examples": { + "CosmosDBRestorableSqlDatabaseList": { + "$ref": "./examples/CosmosDBRestorableSqlDatabaseList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlDatabasesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers": { + "get": { + "operationId": "RestorableSqlContainers_List", + "x-ms-examples": { + "CosmosDBRestorableSqlContainerList": { + "$ref": "./examples/CosmosDBRestorableSqlContainerList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restorableSqlDatabaseRidParameter" + }, + { + "$ref": "#/parameters/restoreStartTime" + }, + { + "$ref": "#/parameters/restoreEndTime" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlContainersListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources": { + "get": { + "operationId": "RestorableSqlResources_List", + "x-ms-examples": { + "CosmosDBRestorableSqlResourceList": { + "$ref": "./examples/CosmosDBRestorableSqlResourceList.json" + } + }, + "description": "Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restoreLocationParameter" + }, + { + "$ref": "#/parameters/restoreTimestampInUtcParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlResourcesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases": { + "get": { + "operationId": "RestorableMongodbDatabases_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbDatabaseList": { + "$ref": "./examples/CosmosDBRestorableMongodbDatabaseList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbDatabasesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections": { + "get": { + "operationId": "RestorableMongodbCollections_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbCollectionList": { + "$ref": "./examples/CosmosDBRestorableMongodbCollectionList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restorableMongodbDatabaseRidParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbCollectionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources": { + "get": { + "operationId": "RestorableMongodbResources_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbResourceList": { + "$ref": "./examples/CosmosDBRestorableMongodbResourceList.json" + } + }, + "description": "Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restoreLocationParameter" + }, + { + "$ref": "#/parameters/restoreTimestampInUtcParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbResourcesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "RestorableDatabaseAccountsListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableDatabaseAccountGetResult" + }, + "description": "List of restorable database accounts and their properties." + } + }, + "description": "The List operation response, that contains the restorable database accounts and their properties." + }, + "RestorableDatabaseAccountGetResult": { + "description": "A Azure Cosmos DB restorable database account.", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a restorable database account.", + "$ref": "#/definitions/RestorableDatabaseAccountProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + } + } + }, + "RestorableDatabaseAccountProperties": { + "type": "object", + "description": "The properties of a restorable database account.", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the global database account" + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the restorable database account (ISO-8601 format)." + }, + "deletionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the restorable database account has been deleted (ISO-8601 format)." + }, + "apiType": { + "type": "string", + "readOnly": true, + "description": "The API type of the restorable database account.", + "$ref": "#/definitions/ApiType" + }, + "restorableLocations": { + "type": "array", + "readOnly": true, + "description": "List of regions where the of the database account can be restored from.", + "items": { + "$ref": "#/definitions/RestorableLocationResource" + } + } + } + }, + "ApiType": { + "description": "Enum to indicate the API type of the restorable database account.", + "type": "string", + "readOnly": true, + "enum": [ + "MongoDB", + "Gremlin", + "Cassandra", + "Table", + "Sql", + "GremlinV2" + ], + "x-ms-enum": { + "name": "ApiType", + "modelAsString": true + } + }, + "RestorableLocationResource": { + "type": "object", + "description": "Properties of the regional restorable account.", + "properties": { + "locationName": { + "type": "string", + "readOnly": true, + "description": "The location of the regional restorable account." + }, + "regionalDatabaseAccountInstanceId": { + "type": "string", + "readOnly": true, + "description": "The instance id of the regional restorable account." + }, + "creationTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The creation time of the regional restorable database account (ISO-8601 format)." + }, + "deletionTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)." + } + } + }, + "RestorableSqlDatabasesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableSqlDatabaseGetResult" + }, + "description": "List of SQL database events and their properties." + } + }, + "description": "The List operation response, that contains the SQL database events and their properties." + }, + "RestorableSqlDatabaseGetResult": { + "description": "An Azure Cosmos DB SQL database event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a SQL database event.", + "$ref": "#/definitions/RestorableSqlDatabaseProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableSqlDatabaseProperties": { + "description": "The properties of an Azure Cosmos DB SQL database event", + "type": "object", + "properties": { + "resource": { + "type": "object", + "description": "The resource of an Azure Cosmos DB SQL database event", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this database event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this database event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of the SQL database." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of the SQL database." + }, + "database": { + "type": "object", + "description": "Cosmos DB SQL database resource object", + "properties": { + "_colls": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specified the addressable path of the collections resource." + }, + "_users": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the users resource." + }, + "_self": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the database resource." + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/SqlDatabaseResource" + }, + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + } + ] + } + } + } + } + }, + "RestorableSqlContainersListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableSqlContainerGetResult" + }, + "description": "List of SQL container events and their properties." + } + }, + "description": "The List operation response, that contains the SQL container events and their properties." + }, + "RestorableSqlContainerGetResult": { + "description": "An Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a SQL container event.", + "$ref": "#/definitions/RestorableSqlContainerProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableSqlContainerProperties": { + "description": "The properties of an Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this container event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The when this container event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this SQL container." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this SQL container." + }, + "container": { + "type": "object", + "description": "Cosmos DB SQL container resource object", + "properties": { + "_self": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the container resource." + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/SqlContainerResource" + }, + { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + } + ] + } + } + } + } + }, + "RestorableSqlResourcesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + }, + "description": "List of restorable SQL resources, including the database and collection names." + } + }, + "description": "The List operation response, that contains the restorable SQL resources." + }, + "RestorableMongodbDatabasesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableMongodbDatabaseGetResult" + }, + "description": "List of MongoDB database events and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB database events and their properties." + }, + "RestorableMongodbDatabaseGetResult": { + "description": "An Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a MongoDB database event.", + "$ref": "#/definitions/RestorableMongodbDatabaseProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableMongodbDatabaseProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this database event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this database event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this MongoDB database." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this MongoDB database." + } + } + } + } + }, + "RestorableMongodbCollectionsListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableMongodbCollectionGetResult" + }, + "description": "List of MongoDB collection events and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB collection events and their properties." + }, + "RestorableMongodbCollectionGetResult": { + "description": "An Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a MongoDB collection event.", + "$ref": "#/definitions/RestorableMongodbCollectionProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableMongodbCollectionProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this collection event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this collection event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this MongoDB collection." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this MongoDB collection." + } + } + } + } + }, + "RestorableMongodbResourcesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + }, + "description": "List of restorable MongoDB resources, including the database and collection names." + } + }, + "description": "The List operation response, that contains the restorable MongoDB resources." + }, + "OperationType": { + "description": "Enum to indicate the operation type of the event.", + "type": "string", + "readOnly": true, + "enum": [ + "Create", + "Replace", + "Delete", + "SystemOperation" + ], + "x-ms-enum": { + "name": "OperationType", + "modelAsString": true + } + }, + "ContinuousBackupRestoreLocation": { + "type": "object", + "description": "Properties of the regional restorable account.", + "properties": { + "location": { + "type": "string", + "description": "The name of the continuous backup restore location." + } + } + }, + "BackupInformation": { + "description": "Backup information of a resource.", + "type": "object", + "properties": { + "continuousBackupInformation": { + "description": "Information about the status of continuous backups.", + "type": "object", + "$ref": "#/definitions/ContinuousBackupInformation" + } + } + }, + "ContinuousBackupInformation": { + "description": "Information about the status of continuous backups.", + "type": "object", + "readOnly": true, + "properties": { + "latestRestorableTimestamp": { + "type": "string", + "description": "The latest restorable timestamp for a resource." + } + } + } + }, + "parameters": { + "restorableSqlDatabaseRidParameter": { + "name": "restorableSqlDatabaseRid", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource ID of the SQL database." + }, + "restorableMongodbDatabaseRidParameter": { + "name": "restorableMongodbDatabaseRid", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource ID of the MongoDB database." + }, + "restoreLocationParameter": { + "name": "restoreLocation", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The location where the restorable resources are located." + }, + "restoreTimestampInUtcParameter": { + "name": "restoreTimestampInUtc", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The timestamp when the restorable resources existed." + }, + "restoreStartTime": { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp after which snapshots need to be listed." + }, + "restoreEndTime": { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp before which snapshots need to be listed." + }, + "locationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + }, + "instanceIdParameter": { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The instanceId GUID of a restorable database account." + } + } +} From fc8e131ec7ead771088894411d79bca3f02b68a5 Mon Sep 17 00:00:00 2001 From: kavskalyan Date: Tue, 10 Aug 2021 16:21:16 -0700 Subject: [PATCH 02/50] Updates readme --- .../cosmos-db/resource-manager/readme.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 11a44469efb5..280db6ffeabd 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -27,14 +27,28 @@ These are the global settings for the Cosmos-DB API. ``` yaml title: CosmosDBManagementClient openapi-type: arm -tag: package-2021-06 +tag: package-2021-09 ``` + +### Tag: package-2021-09 + +These settings apply only when `--tag=package-2021-09` is specified on the command line. + +```yaml $(tag) == 'package-2021-09' +input-file: + - Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json + - Microsoft.DocumentDB/stable/2021-09-15/notebook.json + - Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json + - Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json + - Microsoft.DocumentDB/stable/2021-09-15/rbac.json + - Microsoft.DocumentDB/stable/2021-09-15/restorable.json +``` ### Tag: package-2021-06 These settings apply only when `--tag=package-2021-06` is specified on the command line. -```yaml $(tag) == 'package-2021-06' +``` yaml $(tag) == 'package-2021-06' input-file: - Microsoft.DocumentDB/stable/2021-06-15/cosmos-db.json - Microsoft.DocumentDB/stable/2021-06-15/notebook.json From f9eb7993e666e3b4182ded399bfae43cb0320274 Mon Sep 17 00:00:00 2001 From: kavskalyan Date: Tue, 10 Aug 2021 16:21:17 -0700 Subject: [PATCH 03/50] Updates API version in new specs and examples --- .../stable/2021-09-15/cosmos-db.json | 4 ++-- .../examples/CosmosDBBackupInformation.json | 2 +- ...CosmosDBCassandraKeyspaceCreateUpdate.json | 2 +- .../CosmosDBCassandraKeyspaceDelete.json | 2 +- .../CosmosDBCassandraKeyspaceGet.json | 2 +- .../CosmosDBCassandraKeyspaceList.json | 2 +- ...DBCassandraKeyspaceMigrateToAutoscale.json | 2 +- ...ndraKeyspaceMigrateToManualThroughput.json | 2 +- ...osmosDBCassandraKeyspaceThroughputGet.json | 2 +- ...osDBCassandraKeyspaceThroughputUpdate.json | 2 +- .../CosmosDBCassandraTableCreateUpdate.json | 2 +- .../CosmosDBCassandraTableDelete.json | 2 +- .../examples/CosmosDBCassandraTableGet.json | 2 +- .../examples/CosmosDBCassandraTableList.json | 2 +- ...mosDBCassandraTableMigrateToAutoscale.json | 2 +- ...ssandraTableMigrateToManualThroughput.json | 2 +- .../CosmosDBCassandraTableThroughputGet.json | 2 +- ...osmosDBCassandraTableThroughputUpdate.json | 2 +- ...osmosDBCollectionGetMetricDefinitions.json | 2 +- .../CosmosDBCollectionGetMetrics.json | 2 +- .../examples/CosmosDBCollectionGetUsages.json | 2 +- ...CosmosDBCollectionPartitionGetMetrics.json | 2 +- .../CosmosDBCollectionPartitionGetUsages.json | 2 +- ...DBCollectionPartitionRegionGetMetrics.json | 2 +- ...osmosDBDatabaseAccountCheckNameExists.json | 2 +- .../CosmosDBDatabaseAccountCreateMax.json | 2 +- .../CosmosDBDatabaseAccountCreateMin.json | 2 +- .../CosmosDBDatabaseAccountDelete.json | 2 +- ...DatabaseAccountFailoverPriorityChange.json | 2 +- .../examples/CosmosDBDatabaseAccountGet.json | 2 +- ...DBDatabaseAccountGetMetricDefinitions.json | 2 +- .../CosmosDBDatabaseAccountGetMetrics.json | 2 +- .../CosmosDBDatabaseAccountGetUsages.json | 2 +- .../examples/CosmosDBDatabaseAccountList.json | 2 +- ...sDBDatabaseAccountListByResourceGroup.json | 2 +- ...BDatabaseAccountListConnectionStrings.json | 2 +- ...baseAccountListConnectionStringsMongo.json | 2 +- .../CosmosDBDatabaseAccountListKeys.json | 2 +- ...smosDBDatabaseAccountListReadOnlyKeys.json | 2 +- .../CosmosDBDatabaseAccountOfflineRegion.json | 2 +- .../CosmosDBDatabaseAccountOnlineRegion.json | 2 +- .../CosmosDBDatabaseAccountPatch.json | 2 +- .../CosmosDBDatabaseAccountRegenerateKey.json | 2 +- ...smosDBDatabaseAccountRegionGetMetrics.json | 2 +- .../CosmosDBDatabaseGetMetricDefinitions.json | 2 +- .../examples/CosmosDBDatabaseGetMetrics.json | 2 +- .../examples/CosmosDBDatabaseGetUsages.json | 2 +- .../CosmosDBGremlinDatabaseCreateUpdate.json | 2 +- .../CosmosDBGremlinDatabaseDelete.json | 2 +- .../examples/CosmosDBGremlinDatabaseGet.json | 2 +- .../examples/CosmosDBGremlinDatabaseList.json | 2 +- ...osDBGremlinDatabaseMigrateToAutoscale.json | 2 +- ...mlinDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinDatabaseThroughputGet.json | 2 +- ...smosDBGremlinDatabaseThroughputUpdate.json | 2 +- .../CosmosDBGremlinGraphCreateUpdate.json | 2 +- .../examples/CosmosDBGremlinGraphDelete.json | 2 +- .../examples/CosmosDBGremlinGraphGet.json | 2 +- .../examples/CosmosDBGremlinGraphList.json | 2 +- ...osmosDBGremlinGraphMigrateToAutoscale.json | 2 +- ...GremlinGraphMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinGraphThroughputGet.json | 2 +- .../CosmosDBGremlinGraphThroughputUpdate.json | 2 +- ...CosmosDBMongoDBCollectionCreateUpdate.json | 2 +- .../CosmosDBMongoDBCollectionDelete.json | 2 +- .../CosmosDBMongoDBCollectionGet.json | 2 +- .../CosmosDBMongoDBCollectionList.json | 2 +- ...DBMongoDBCollectionMigrateToAutoscale.json | 2 +- ...DBCollectionMigrateToManualThroughput.json | 2 +- ...osmosDBMongoDBCollectionThroughputGet.json | 2 +- ...osDBMongoDBCollectionThroughputUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseCreateUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseDelete.json | 2 +- .../examples/CosmosDBMongoDBDatabaseGet.json | 2 +- .../examples/CosmosDBMongoDBDatabaseList.json | 2 +- ...osDBMongoDBDatabaseMigrateToAutoscale.json | 2 +- ...goDBDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBMongoDBDatabaseThroughputGet.json | 2 +- ...smosDBMongoDBDatabaseThroughputUpdate.json | 2 +- .../CosmosDBNotebookWorkspaceCreate.json | 2 +- .../CosmosDBNotebookWorkspaceDelete.json | 2 +- .../CosmosDBNotebookWorkspaceGet.json | 2 +- .../CosmosDBNotebookWorkspaceList.json | 2 +- ...DBNotebookWorkspaceListConnectionInfo.json | 2 +- ...BNotebookWorkspaceRegenerateAuthToken.json | 2 +- .../CosmosDBNotebookWorkspaceStart.json | 2 +- .../examples/CosmosDBOperationsList.json | 2 +- .../CosmosDBPKeyRangeIdGetMetrics.json | 2 +- .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 2 +- .../CosmosDBPercentileGetMetrics.json | 2 +- ...mosDBPercentileSourceTargetGetMetrics.json | 2 +- .../CosmosDBPercentileTargetGetMetrics.json | 2 +- ...smosDBPrivateEndpointConnectionDelete.json | 2 +- .../CosmosDBPrivateEndpointConnectionGet.json | 2 +- ...mosDBPrivateEndpointConnectionListGet.json | 2 +- ...smosDBPrivateEndpointConnectionUpdate.json | 2 +- .../CosmosDBPrivateLinkResourceGet.json | 2 +- .../CosmosDBPrivateLinkResourceListGet.json | 2 +- .../CosmosDBRegionCollectionGetMetrics.json | 2 +- .../CosmosDBRestorableDatabaseAccountGet.json | 2 +- ...CosmosDBRestorableDatabaseAccountList.json | 2 +- ...storableDatabaseAccountNoLocationList.json | 2 +- ...smosDBRestorableMongodbCollectionList.json | 2 +- ...CosmosDBRestorableMongodbDatabaseList.json | 2 +- ...CosmosDBRestorableMongodbResourceList.json | 2 +- .../CosmosDBRestorableSqlContainerList.json | 2 +- .../CosmosDBRestorableSqlDatabaseList.json | 2 +- .../CosmosDBRestorableSqlResourceList.json | 2 +- ...sDBRestoreDatabaseAccountCreateUpdate.json | 2 +- .../CosmosDBSqlContainerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlContainerDelete.json | 2 +- .../examples/CosmosDBSqlContainerGet.json | 2 +- .../examples/CosmosDBSqlContainerList.json | 2 +- ...osmosDBSqlContainerMigrateToAutoscale.json | 2 +- ...SqlContainerMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlContainerThroughputGet.json | 2 +- .../CosmosDBSqlContainerThroughputUpdate.json | 2 +- .../CosmosDBSqlDatabaseCreateUpdate.json | 2 +- .../examples/CosmosDBSqlDatabaseDelete.json | 2 +- .../examples/CosmosDBSqlDatabaseGet.json | 2 +- .../examples/CosmosDBSqlDatabaseList.json | 2 +- ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 2 +- ...BSqlDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlDatabaseThroughputGet.json | 2 +- .../CosmosDBSqlDatabaseThroughputUpdate.json | 2 +- ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 2 +- .../CosmosDBSqlRoleAssignmentDelete.json | 2 +- .../CosmosDBSqlRoleAssignmentGet.json | 2 +- .../CosmosDBSqlRoleAssignmentList.json | 2 +- ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 2 +- .../CosmosDBSqlRoleDefinitionDelete.json | 2 +- .../CosmosDBSqlRoleDefinitionGet.json | 2 +- .../CosmosDBSqlRoleDefinitionList.json | 2 +- ...osmosDBSqlStoredProcedureCreateUpdate.json | 2 +- .../CosmosDBSqlStoredProcedureDelete.json | 2 +- .../CosmosDBSqlStoredProcedureGet.json | 2 +- .../CosmosDBSqlStoredProcedureList.json | 2 +- .../CosmosDBSqlTriggerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlTriggerDelete.json | 2 +- .../examples/CosmosDBSqlTriggerGet.json | 2 +- .../examples/CosmosDBSqlTriggerList.json | 2 +- ...sDBSqlUserDefinedFunctionCreateUpdate.json | 2 +- .../CosmosDBSqlUserDefinedFunctionDelete.json | 2 +- .../CosmosDBSqlUserDefinedFunctionGet.json | 2 +- .../CosmosDBSqlUserDefinedFunctionList.json | 2 +- .../examples/CosmosDBTableCreateUpdate.json | 2 +- .../examples/CosmosDBTableDelete.json | 2 +- .../2021-09-15/examples/CosmosDBTableGet.json | 2 +- .../examples/CosmosDBTableList.json | 2 +- .../CosmosDBTableMigrateToAutoscale.json | 2 +- ...osmosDBTableMigrateToManualThroughput.json | 2 +- .../examples/CosmosDBTableThroughputGet.json | 2 +- .../CosmosDBTableThroughputUpdate.json | 2 +- .../stable/2021-09-15/notebook.json | 20 +++++++++---------- .../2021-09-15/privateEndpointConnection.json | 6 +++--- .../2021-09-15/privateLinkResources.json | 4 ++-- .../stable/2021-09-15/rbac.json | 2 +- .../stable/2021-09-15/restorable.json | 14 ++++++------- 158 files changed, 177 insertions(+), 177 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json index 60d4d04fcb97..3ae982cc8a0d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ @@ -6075,7 +6075,7 @@ "readOnly": true, "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", "items": { - "$ref": "../../stable/2021-06-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" + "$ref": "../../stable/2021-09-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" } }, "enableMultipleWriteLocations": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json index 07334d025189..caf40baa38d8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json index 3017a1f51a7c..174d77ab633a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "createUpdateCassandraKeyspaceParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json index 7440ccf29d85..86a1b754efee 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json index e689b5aabb2e..e677bac5c4ea 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json index 0142481c1679..3a8a874d7b9e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json index 3b5a45937124..64de97696d21 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json index 8001637064de..bbf76b915b57 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json index 18164f4207c5..c4d216a35b1d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json index a4cb9845ab45..f4a40ede7d79 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json index 14c53e34f07d..2b7232be5462 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json index 830269e5c8f2..04d931def8aa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json index ba8c558698cf..9e5a0129d9a6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json index 8d9d3fec0e58..b69ccf548229 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json index 9839f7e1e1ec..017c480fd6a7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json index b5faee795de4..8e83a3b88e36 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json index 38697d85e1bb..da5c601cdef5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json index 11394661ef91..1dd6bc5b3958 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json index 1d05a81d29dc..85116a4c05c2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json index ab0b897701f8..4693c95b8c66 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json index f9fcb26b0767..a191ce951f88 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json index 10aaec6744ba..3b6531ba65ba 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json index d2f9ee7c5268..48eb598fbfc1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json index b7236c471e50..222c4ecf6de6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json index c6268b794723..e6191e852086 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "ddb1", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json index ac83ea9d5a1e..e8cde6bf61f0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json index 650a955d33b5..87f075ab1b05 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json index 14560bcf6f1b..f7667487a0c8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json index f46bca406e08..8ced70e0e786 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1-failover", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "failoverParameters": { "failoverPolicies": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json index 2eed72d60692..c10720e68d05 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json index 07ac6ddf03fa..f8c818d127d5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json index 9e0a2bdffd0f..9e82e81edf7b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json index 049d20d44a8c..2433a5c7676b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json index 338160e5906a..327e57b73b58 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json index ee061fd7bb19..ec00e9c5c5e8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json index 6d0b8bc15fce..d7d584ac1f78 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json index 5ea69ce948b1..47578f523f5d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "mongo-ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json index d4007672c2e3..cdb931afb789 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json index 3e7909c2baaf..e4580dc468d0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json index 9283385f3a06..1e4afdf36328 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOffline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json index 52dd9fe1db3b..9288fb4f8746 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOnline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json index fff0b5301fc9..73fdb2f869ed 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "updateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json index bf758f59a2d1..93a94b0ce3a5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "keyToRegenerate": { "keyKind": "primary" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json index 377a92e88076..62fd19f34947 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "region": "North Europe", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json index 7c597314f458..c0cf339a0b59 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "databaseRid": "databaseRid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json index 8ad1652a7555..5f241390ddd5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "rid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json index 6a67dbbadc84..4b4496f0ef29 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "databaseRid": "databaseRid", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json index 2e3b01ffe967..d30634855a94 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateGremlinDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json index ce64c56dfdde..16b152a6c16f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json index 5cf21c7ce5b3..4e65ecf8cec2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json index c63605696253..932545fb8436 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json index 578e108ad4b7..684ccddd4867 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json index a17e63438501..3c323e9b122b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json index a76fe0db892c..ebd4bcdfce9d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json index 3d107c86cd69..10dcce2c374a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json index d5f03caa94df..853700f96be9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json index 96c739d37e9f..5535bf2acac6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json index 3b2ee1f1382f..7ea69c3668f5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json index 42610d1d6dfe..992719204f68 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json index 3d04a2a0ab2a..58b4487ab5fa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json index 2314d716f4b4..398c8ee6d7d5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json index 8d24fdbec685..47aca48db823 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json index 62187c37f8a6..35a14c65a941 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json index 8898c7ec37ba..1ed36da8e33d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json index bc0a32b1eba1..7b42aa003b20 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json index 6e047862ab63..e839a90a1fe5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json index 2f5bd9bc0d8c..41f3fcef9e0c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json index a2dec18072a8..b4c0f1e0bf16 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json index 035f4ef2472b..b68a843a7844 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json index 024c8bcdcb15..bd741999b213 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json index 0d0cba747c6e..56c7c0394192 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json index 3e9ab55e93fb..4af546f1a560 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateMongoDBDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json index ce64c56dfdde..16b152a6c16f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json index c37158472b3b..c210be4fdc75 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json index 63351317f019..0ea694a51d3f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json index 578e108ad4b7..684ccddd4867 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json index a17e63438501..3c323e9b122b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json index a041e64bb223..e1a6c92d8f05 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json index 0bef1954cf34..651007f34514 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json index 13ef05c13b6f..c1596e03062c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json index 7d38c1430d9c..95cf3de3abdb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "notebookWorkspaceName": "default" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json index a0ddcc7a438b..5d2f05cf0408 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json index 17b810259c51..e7b639168746 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json index 7e0bcaccff42..4cfa15cc8828 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json index 8c64e35501c0..4a799f7f069d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json index 8c64e35501c0..4a799f7f069d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json index 54b3171afc4a..d8963137794c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json index 1183769c1106..9a23d8e44c81 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json index ca751ed54d65..b3d5b79ba900 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json index 68902c13feb9..3db32b26ea1e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json index 4a1dcd4d12b2..5a8da3121829 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "sourceRegion": "West Central US", "targetRegion": "East US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json index 8c320b93e0f5..a0acdfcd5f6e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "targetRegion": "East US", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json index 5ee9a11c6047..7d2e4114c2e7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json index 0cfb43e922ed..6ca58ecba75b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json index 8415aa67c3da..a6600f63c726 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json index dd998c8412d0..cff319a4cfd4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "privateEndpointConnectionName": "privateEndpointConnectionName", "parameters": { "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json index e617e6ffd298..1bd0ac7d304c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "groupName": "sql" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json index 9952a0416262..9af9dab55429 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json index 7cac5d43a6cd..566a6a83c015 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json index f59b65c2bd65..30ad7aba1efd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "location": "West US", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json index 36c2706faafc..355e5f03b867 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "location": "West US" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json index d8bc567b1ae4..fd05181c3985 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json index 094da156a190..ba8cd4a03f57 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json index f6bdfb3edd25..268d955d93d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json index 50c9d2bc1677..164c97b07d65 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json index 09e901a5bbaf..ad1bc43583f4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json index ab840e0f80e4..bc14a8b29664 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json index 610d05af58d5..07bb48fce2d5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json index ff51f9157212..aad35b3e274c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json index 3ba41870d39a..6a8c6f4596ec 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json index 7922dea949af..1718430eebf1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json index 03a39f29d3d9..085a6dee7eb9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json index c6d2f5381eb7..e110fca6e342 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json index 206dfda2d316..76d6289bc33f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json index ddc7fc9bd99b..0a40503089c9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json index 11b92d38effc..a62019a4c776 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json index 353b7d9888f0..4f5bc429bf1b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json index 85e41c165686..cfbe03239e5e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateSqlDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json index ce64c56dfdde..16b152a6c16f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json index e8a7797776b3..b082584a9099 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json index 90686957cd52..8380adad4a26 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json index 578e108ad4b7..684ccddd4867 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json index a17e63438501..3c323e9b122b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json index 685833dccc03..d77caabfdefc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json index 422f226d38ee..197f656fce98 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json index 04a79404f6d0..98a784bb9a04 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "createUpdateSqlRoleAssignmentParameters": { "properties": { "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json index 04076dbdac29..1b79b01aa8dd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json index 805ef7b6cd30..890a11e4070b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json index 4172429683a0..6c05278b0cdb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json index 339da2d024d9..29b03e6a8b8a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "createUpdateSqlRoleDefinitionParameters": { "properties": { "roleName": "myRoleName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json index 499a0001c41b..78da79507806 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json index 5b37a95a0fa6..c97d415d2ef4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json index aa2b644a0702..c571ffe69b93 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-06-15" + "api-version": "2021-09-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json index 06b9e748df68..7f51829a419a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json index 05eb408ed6b2..f963f965b8fc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json index ac3e53c59a62..d6c2883129d9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json index f82d04689b5e..af33b75ddbff 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json index 63168f34b594..000e5e92d89c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json index 9944e6c85aac..373cf9eab071 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json index bb77878eb15e..5f3702e3eb63 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json index b6e9309afe32..e98718cc543d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json index a3be0a4a2141..e608546bb8d4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json index ee81d5698f3c..6502b4e55d11 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json index 2b59daee7ba2..4f78d3210454 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json index f0c88b4bdbb8..816606273935 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json index 1454a426bce0..b13884da9689 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName", "createUpdateTableParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json index 0ff9d809566d..10fcd67e0288 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json index f0ae4e51b84c..903bd252bab3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json index c72c1847a733..0a161805875c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json index 85b233147fa1..92c0fe6a0abc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json index 9e97d33678b7..48e15131b546 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json index 58e0b3557d71..f73a6286241a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json index af621f2bfed6..4b8cff700813 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-06-15", + "api-version": "2021-09-15", "subscriptionId": "subid", "tableName": "tableName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json index 6a3e3c3cf3a3..58c52d0b4d4d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ @@ -68,7 +68,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -210,7 +210,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -260,7 +260,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -306,7 +306,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -352,7 +352,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -365,7 +365,7 @@ "type": "object", "allOf": [ { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, @@ -394,7 +394,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json index 23921b8549f9..0c34ccca9dd1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ @@ -155,7 +155,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -199,7 +199,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json index 874f9a7d130a..cc42162a5380 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ @@ -139,7 +139,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json index 0bf4d5b4c205..84dac74549fa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json index 6fc48dab521b..752db41b7c96 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-09-15" }, "host": "management.azure.com", "schemes": [ @@ -708,10 +708,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/SqlDatabaseResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlDatabaseResource" }, { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -806,10 +806,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/SqlContainerResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlContainerResource" }, { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -824,7 +824,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable SQL resources, including the database and collection names." } @@ -996,7 +996,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-06-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable MongoDB resources, including the database and collection names." } From afbbe5349b124f8fb77a916904a23857f82fa66d Mon Sep 17 00:00:00 2001 From: "REDMOND\\amisi" Date: Wed, 11 Aug 2021 16:24:11 -0700 Subject: [PATCH 04/50] Add support for fetching continuous backup information for latest restorable timestamp. --- ...sDBMongoDBCollectionBackupInformation.json | 23 +++++++ ...osmosDBSqlContainerBackupInformation.json} | 0 .../stable/2021-09-15/restorable.json | 63 ++++++++++++++++++- 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/{CosmosDBBackupInformation.json => CosmosDBSqlContainerBackupInformation.json} (100%) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json new file mode 100644 index 000000000000..ef97b7ef9429 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "collectionName": "collectionName", + "location": { + "location": "North Europe" + } + }, + "responses": { + "200": { + "body": { + "continuousBackupInformation": { + "latestRestorableTimestamp": "2021-02-05T02:40:50Z" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerBackupInformation.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBBackupInformation.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerBackupInformation.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json index 752db41b7c96..07363e08eae4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json @@ -153,7 +153,7 @@ "operationId": "SqlResources_RetrieveContinuousBackupInformation", "x-ms-examples": { "CosmosDBSqlContainerBackupInformation": { - "$ref": "./examples/CosmosDBBackupInformation.json" + "$ref": "./examples/CosmosDBSqlContainerBackupInformation.json" } }, "description": "Retrieves continuous backup information for a container resource.", @@ -350,6 +350,67 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/retrieveContinuousBackupInformation": { + "post": { + "operationId": "MongoDBResources_RetrieveContinuousBackupInformation", + "x-ms-examples": { + "CosmosDBMongoDBCollectionBackupInformation": { + "$ref": "./examples/CosmosDBMongoDBCollectionBackupInformation.json" + } + }, + "description": "Retrieves continuous backup information for a Mongodb collection.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/databaseNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "location", + "required": true, + "description": "The name of the continuous backup restore location.", + "schema": { + "$ref": "#/definitions/ContinuousBackupRestoreLocation" + } + } + ], + "responses": { + "200": { + "description": "The Mongodb collection retrieve backup information operation completed successfully.", + "schema": { + "$ref": "#/definitions/BackupInformation" + } + }, + "202": { + "description": "The Mongodb collection retrieve backup information operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases": { "get": { "operationId": "RestorableMongodbDatabases_List", From ab65b5189e4a7c3d1e750a627d92df77d7646b61 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Fri, 20 Aug 2021 15:41:23 -0700 Subject: [PATCH 05/50] Adding locations API and backupRedundancy --- .../stable/2021-09-15/cosmos-db.json | 144 ++++++++++++++++++ .../CosmosDBDatabaseAccountCreateMax.json | 6 +- .../CosmosDBDatabaseAccountCreateMin.json | 3 +- .../examples/CosmosDBDatabaseAccountGet.json | 3 +- .../examples/CosmosDBDatabaseAccountList.json | 3 +- .../CosmosDBDatabaseAccountPatch.json | 6 +- .../examples/CosmosDBLocationGet.json | 24 +++ .../examples/CosmosDBLocationList.json | 40 +++++ 8 files changed, 222 insertions(+), 7 deletions(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json index 3ae982cc8a0d..1bf45fed7179 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json @@ -5048,6 +5048,78 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations": { + "get": { + "operationId": "LocationList", + "x-ms-examples": { + "CosmosDBLocationList": { + "$ref": "./examples/CosmosDBLocationList.json" + } + }, + "description": "List Cosmos DB locations and their properties", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/LocationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}": { + "get": { + "operationId": "LocationGet", + "x-ms-examples": { + "CosmosDBLocationGet": { + "$ref": "./examples/CosmosDBLocationGet.json" + } + }, + "description": "Get the properties of an existing Cosmos DB location", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + } + ], + "responses": { + "200": { + "description": "The Cosmos DB location properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/LocationGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } } }, "definitions": { @@ -8616,7 +8688,79 @@ "format": "int32", "minimum": 0, "description": "An integer representing the time (in hours) that each backup is retained" + }, + "backupStorageRedundancy": { + "description": "Enum to indicate type of backup residency", + "type": "string", + "$ref": "#/definitions/BackupStorageRedundancy" + } + } + }, + "LocationListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/LocationGetResult" + }, + "description": "List of Cosmos DB locations and their properties." } + }, + "description": "The List operation response, that contains Cosmos DB locations and their properties." + }, + "LocationGetResult": { + "description": "Cosmos DB location get result", + "type": "object", + "properties": { + "properties": { + "type": "object", + "description": "Cosmos DB location metadata", + "$ref": "#/definitions/LocationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMProxyResource" + } + ] + }, + "LocationProperties": { + "description": "Cosmos DB location metadata", + "type": "object", + "properties": { + "supportsAvailabilityZone": { + "type": "boolean", + "readOnly": true, + "description": "Flag indicating whether the location supports availability zones or not." + }, + "isResidencyRestricted": { + "type": "boolean", + "readOnly": true, + "description": "Flag indicating whether the location is residency sensitive." + }, + "backupStorageRedundancies": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/BackupStorageRedundancy" + }, + "description": "The properties of available backup storage redundancies." + } + } + }, + "BackupStorageRedundancy": { + "description": "Enum to indicate type of backup storage redundancy.", + "type": "string", + "enum": [ + "Geo", + "Local", + "Zone" + ], + "x-ms-enum": { + "name": "BackupStorageRedundancy", + "modelAsString": true } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json index e8cde6bf61f0..614228e28649 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -64,7 +64,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8 + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" } }, "cors": [ @@ -192,7 +193,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8 + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" } }, "cors": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json index 87f075ab1b05..a80e6ec998b1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json @@ -85,7 +85,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json index c10720e68d05..9142e948af5c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json @@ -89,7 +89,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8 + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" }, "migrationState": { "status": "InProgress", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json index 327e57b73b58..3fc364bc2f89 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json @@ -87,7 +87,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } }, "networkAclBypass": "None", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json index 73fdb2f869ed..e9b74e2f4edb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json @@ -46,7 +46,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Local" } }, "networkAclBypass": "AzureServices", @@ -163,7 +164,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Local" } }, "networkAclBypass": "AzureServices", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json new file mode 100644 index 000000000000..bcdba9fdd794 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", + "type": "Microsoft.DocumentDB/locations", + "name": "westus", + "properties": { + "supportsAvailabilityZone": true, + "isResidencyRestricted": true, + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json new file mode 100644 index 000000000000..b5e69ba1ad40 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", + "type": "Microsoft.DocumentDB/locations", + "name": "westus", + "properties": { + "supportsAvailabilityZone": false, + "isResidencyRestricted": false, + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/centralus", + "type": "Microsoft.DocumentDB/locations", + "name": "centralus", + "properties": { + "supportsAvailabilityZone": true, + "isResidencyRestricted": false, + "backupStorageRedundancies": [ + "Zone", + "Geo" + ] + } + } + ] + } + } + } +} From 08bb3579c97f3a7da44717d14d64a6ad39ab3678 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Fri, 20 Aug 2021 16:15:04 -0700 Subject: [PATCH 06/50] Fixing ref --- .../Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json index 1bf45fed7179..6c92060e762a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json @@ -8922,6 +8922,14 @@ "type": "string", "x-ms-parameter-location": "method", "description": "Partition Key Range Id for which to get data." + }, + "locationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." } } } From 651cea6a0c8eb8c6f6af50ac5f8957c405fd25d6 Mon Sep 17 00:00:00 2001 From: Anuj Toshniwal Date: Mon, 30 Aug 2021 16:46:28 +0530 Subject: [PATCH 07/50] Add 10-15 Preview along with ClientEncryptionKey management changes --- .../preview/2021-10-15-preview/cosmos-db.json | 9182 +++++++++++++++++ ...CosmosDBCassandraKeyspaceCreateUpdate.json | 36 + .../CosmosDBCassandraKeyspaceDelete.json | 13 + .../CosmosDBCassandraKeyspaceGet.json | 28 + .../CosmosDBCassandraKeyspaceList.json | 28 + ...DBCassandraKeyspaceMigrateToAutoscale.json | 29 + ...ndraKeyspaceMigrateToManualThroughput.json | 26 + ...osmosDBCassandraKeyspaceThroughputGet.json | 30 + ...osDBCassandraKeyspaceThroughputUpdate.json | 40 + .../CosmosDBCassandraTableCreateUpdate.json | 77 + .../CosmosDBCassandraTableDelete.json | 14 + .../examples/CosmosDBCassandraTableGet.json | 49 + .../examples/CosmosDBCassandraTableList.json | 49 + ...mosDBCassandraTableMigrateToAutoscale.json | 30 + ...ssandraTableMigrateToManualThroughput.json | 27 + .../CosmosDBCassandraTableThroughputGet.json | 31 + ...osmosDBCassandraTableThroughputUpdate.json | 39 + ...smosDBClientEncryptionKeyCreateUpdate.json | 47 + .../CosmosDBClientEncryptionKeyGet.json | 33 + .../CosmosDBClientEncryptionKeysList.json | 55 + ...osmosDBCollectionGetMetricDefinitions.json | 41 + .../CosmosDBCollectionGetMetrics.json | 55 + .../examples/CosmosDBCollectionGetUsages.json | 29 + ...CosmosDBCollectionPartitionGetMetrics.json | 57 + .../CosmosDBCollectionPartitionGetUsages.json | 31 + ...DBCollectionPartitionRegionGetMetrics.json | 58 + ...osmosDBDatabaseAccountCheckNameExists.json | 10 + .../CosmosDBDatabaseAccountCreateMax.json | 216 + .../CosmosDBDatabaseAccountCreateMin.json | 99 + .../CosmosDBDatabaseAccountDelete.json | 12 + ...DatabaseAccountFailoverPriorityChange.json | 24 + .../examples/CosmosDBDatabaseAccountGet.json | 118 + ...DBDatabaseAccountGetMetricDefinitions.json | 39 + .../CosmosDBDatabaseAccountGetMetrics.json | 53 + .../CosmosDBDatabaseAccountGetUsages.json | 27 + .../examples/CosmosDBDatabaseAccountList.json | 116 + ...sDBDatabaseAccountListByResourceGroup.json | 85 + ...BDatabaseAccountListConnectionStrings.json | 13 + ...baseAccountListConnectionStringsMongo.json | 20 + .../CosmosDBDatabaseAccountListKeys.json | 18 + ...smosDBDatabaseAccountListReadOnlyKeys.json | 16 + .../CosmosDBDatabaseAccountOfflineRegion.json | 18 + .../CosmosDBDatabaseAccountOnlineRegion.json | 18 + .../CosmosDBDatabaseAccountPatch.json | 179 + .../CosmosDBDatabaseAccountRegenerateKey.json | 15 + ...smosDBDatabaseAccountRegionGetMetrics.json | 54 + .../CosmosDBDatabaseGetMetricDefinitions.json | 40 + .../examples/CosmosDBDatabaseGetMetrics.json | 54 + .../examples/CosmosDBDatabaseGetUsages.json | 28 + .../CosmosDBGremlinDatabaseCreateUpdate.json | 39 + .../CosmosDBGremlinDatabaseDelete.json | 13 + .../examples/CosmosDBGremlinDatabaseGet.json | 28 + .../examples/CosmosDBGremlinDatabaseList.json | 31 + ...osDBGremlinDatabaseMigrateToAutoscale.json | 29 + ...mlinDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBGremlinDatabaseThroughputGet.json | 30 + ...smosDBGremlinDatabaseThroughputUpdate.json | 40 + .../CosmosDBGremlinGraphCreateUpdate.json | 124 + .../examples/CosmosDBGremlinGraphDelete.json | 14 + .../examples/CosmosDBGremlinGraphGet.json | 69 + .../examples/CosmosDBGremlinGraphList.json | 72 + ...osmosDBGremlinGraphMigrateToAutoscale.json | 30 + ...GremlinGraphMigrateToManualThroughput.json | 27 + .../CosmosDBGremlinGraphThroughputGet.json | 31 + .../CosmosDBGremlinGraphThroughputUpdate.json | 41 + .../examples/CosmosDBLocationGet.json | 24 + .../examples/CosmosDBLocationList.json | 40 + ...sDBMongoDBCollectionBackupInformation.json | 23 + ...CosmosDBMongoDBCollectionCreateUpdate.json | 83 + .../CosmosDBMongoDBCollectionDelete.json | 14 + .../CosmosDBMongoDBCollectionGet.json | 45 + .../CosmosDBMongoDBCollectionList.json | 45 + ...DBMongoDBCollectionMigrateToAutoscale.json | 30 + ...DBCollectionMigrateToManualThroughput.json | 27 + ...osmosDBMongoDBCollectionThroughputGet.json | 31 + ...osDBMongoDBCollectionThroughputUpdate.json | 41 + .../CosmosDBMongoDBDatabaseCreateUpdate.json | 36 + .../CosmosDBMongoDBDatabaseDelete.json | 13 + .../examples/CosmosDBMongoDBDatabaseGet.json | 28 + .../examples/CosmosDBMongoDBDatabaseList.json | 28 + ...osDBMongoDBDatabaseMigrateToAutoscale.json | 29 + ...goDBDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBMongoDBDatabaseThroughputGet.json | 30 + ...smosDBMongoDBDatabaseThroughputUpdate.json | 40 + .../CosmosDBNotebookWorkspaceCreate.json | 23 + .../CosmosDBNotebookWorkspaceDelete.json | 13 + .../CosmosDBNotebookWorkspaceGet.json | 22 + .../CosmosDBNotebookWorkspaceList.json | 25 + ...DBNotebookWorkspaceListConnectionInfo.json | 17 + ...BNotebookWorkspaceRegenerateAuthToken.json | 13 + .../CosmosDBNotebookWorkspaceStart.json | 13 + .../examples/CosmosDBOperationsList.json | 22 + .../CosmosDBPKeyRangeIdGetMetrics.json | 58 + .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 59 + .../CosmosDBPercentileGetMetrics.json | 61 + ...mosDBPercentileSourceTargetGetMetrics.json | 41 + .../CosmosDBPercentileTargetGetMetrics.json | 62 + ...smosDBPrivateEndpointConnectionDelete.json | 13 + .../CosmosDBPrivateEndpointConnectionGet.json | 30 + ...mosDBPrivateEndpointConnectionListGet.json | 50 + ...smosDBPrivateEndpointConnectionUpdate.json | 39 + .../CosmosDBPrivateLinkResourceGet.json | 28 + .../CosmosDBPrivateLinkResourceListGet.json | 31 + .../CosmosDBRegionCollectionGetMetrics.json | 56 + .../CosmosDBRestorableDatabaseAccountGet.json | 37 + ...CosmosDBRestorableDatabaseAccountList.json | 64 + ...storableDatabaseAccountNoLocationList.json | 63 + ...smosDBRestorableMongodbCollectionList.json | 31 + ...CosmosDBRestorableMongodbDatabaseList.json | 44 + ...CosmosDBRestorableMongodbResourceList.json | 35 + .../CosmosDBRestorableSqlContainerList.json | 102 + .../CosmosDBRestorableSqlDatabaseList.json | 83 + .../CosmosDBRestorableSqlResourceList.json | 35 + ...sDBRestoreDatabaseAccountCreateUpdate.json | 124 + ...CosmosDBSqlContainerBackupInformation.json | 23 + .../CosmosDBSqlContainerCreateUpdate.json | 124 + .../examples/CosmosDBSqlContainerDelete.json | 14 + .../examples/CosmosDBSqlContainerGet.json | 74 + .../examples/CosmosDBSqlContainerList.json | 192 + ...osmosDBSqlContainerMigrateToAutoscale.json | 30 + ...SqlContainerMigrateToManualThroughput.json | 27 + .../CosmosDBSqlContainerThroughputGet.json | 31 + .../CosmosDBSqlContainerThroughputUpdate.json | 41 + .../CosmosDBSqlDatabaseCreateUpdate.json | 39 + .../examples/CosmosDBSqlDatabaseDelete.json | 13 + .../examples/CosmosDBSqlDatabaseGet.json | 30 + .../examples/CosmosDBSqlDatabaseList.json | 33 + ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 29 + ...BSqlDatabaseMigrateToManualThroughput.json | 26 + .../CosmosDBSqlDatabaseThroughputGet.json | 30 + .../CosmosDBSqlDatabaseThroughputUpdate.json | 40 + ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 31 + .../CosmosDBSqlRoleAssignmentDelete.json | 14 + .../CosmosDBSqlRoleAssignmentGet.json | 23 + .../CosmosDBSqlRoleAssignmentList.json | 26 + ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 54 + .../CosmosDBSqlRoleDefinitionDelete.json | 14 + .../CosmosDBSqlRoleDefinitionGet.json | 35 + .../CosmosDBSqlRoleDefinitionList.json | 38 + ...osmosDBSqlStoredProcedureCreateUpdate.json | 39 + .../CosmosDBSqlStoredProcedureDelete.json | 15 + .../CosmosDBSqlStoredProcedureGet.json | 29 + .../CosmosDBSqlStoredProcedureList.json | 32 + .../CosmosDBSqlTriggerCreateUpdate.json | 43 + .../examples/CosmosDBSqlTriggerDelete.json | 15 + .../examples/CosmosDBSqlTriggerGet.json | 31 + .../examples/CosmosDBSqlTriggerList.json | 34 + ...sDBSqlUserDefinedFunctionCreateUpdate.json | 39 + .../CosmosDBSqlUserDefinedFunctionDelete.json | 15 + .../CosmosDBSqlUserDefinedFunctionGet.json | 29 + .../CosmosDBSqlUserDefinedFunctionList.json | 32 + .../examples/CosmosDBTableCreateUpdate.json | 35 + .../examples/CosmosDBTableDelete.json | 13 + .../examples/CosmosDBTableGet.json | 28 + .../examples/CosmosDBTableList.json | 28 + .../CosmosDBTableMigrateToAutoscale.json | 29 + ...osmosDBTableMigrateToManualThroughput.json | 26 + .../examples/CosmosDBTableThroughputGet.json | 30 + .../CosmosDBTableThroughputUpdate.json | 40 + .../preview/2021-10-15-preview/notebook.json | 461 + .../privateEndpointConnection.json | 318 + .../privateLinkResources.json | 195 + .../preview/2021-10-15-preview/rbac.json | 573 + .../2021-10-15-preview/restorable.json | 1181 +++ 164 files changed, 18318 insertions(+) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json new file mode 100644 index 000000000000..14fc9eeadb59 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json @@ -0,0 +1,9182 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}": { + "get": { + "operationId": "DatabaseAccounts_Get", + "x-ms-examples": { + "CosmosDBDatabaseAccountGet": { + "$ref": "./examples/CosmosDBDatabaseAccountGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The database account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "patch": { + "operationId": "DatabaseAccounts_Update", + "x-ms-examples": { + "CosmosDBDatabaseAccountPatch": { + "$ref": "./examples/CosmosDBDatabaseAccountPatch.json" + } + }, + "description": "Updates the properties of an existing Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountUpdateParameters" + }, + "description": "The parameters to provide for the current database account." + } + ], + "responses": { + "200": { + "description": "The database account update operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "put": { + "operationId": "DatabaseAccounts_CreateOrUpdate", + "x-ms-examples": { + "CosmosDBDatabaseAccountCreateMin": { + "$ref": "./examples/CosmosDBDatabaseAccountCreateMin.json" + }, + "CosmosDBDatabaseAccountCreateMax": { + "$ref": "./examples/CosmosDBDatabaseAccountCreateMax.json" + }, + "CosmosDBRestoreDatabaseAccountCreateUpdate.json": { + "$ref": "./examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json" + } + }, + "description": "Creates or updates an Azure Cosmos DB database account. The \"Update\" method is preferred when performing updates on an account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountCreateUpdateParameters" + }, + "description": "The parameters to provide for the current database account." + } + ], + "responses": { + "200": { + "description": "The database account create or update operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DatabaseAccountGetResults" + } + } + } + }, + "delete": { + "operationId": "DatabaseAccounts_Delete", + "x-ms-examples": { + "CosmosDBDatabaseAccountDelete": { + "$ref": "./examples/CosmosDBDatabaseAccountDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The database account delete operation will complete asynchronously." + }, + "204": { + "description": "The specified account does not exist in the subscription." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange": { + "post": { + "operationId": "DatabaseAccounts_FailoverPriorityChange", + "x-ms-examples": { + "CosmosDBDatabaseAccountFailoverPriorityChange": { + "$ref": "./examples/CosmosDBDatabaseAccountFailoverPriorityChange.json" + } + }, + "description": "Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "failoverParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FailoverPolicies" + }, + "description": "The new failover policies for the database account." + } + ], + "responses": { + "202": { + "description": "Accepted. The failover policy change operation will complete asynchronously." + }, + "204": { + "description": "No Content" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts": { + "get": { + "operationId": "DatabaseAccounts_List", + "x-ms-examples": { + "CosmosDBDatabaseAccountList": { + "$ref": "./examples/CosmosDBDatabaseAccountList.json" + } + }, + "description": "Lists all the Azure Cosmos DB database accounts available under the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts": { + "get": { + "operationId": "DatabaseAccounts_ListByResourceGroup", + "x-ms-examples": { + "CosmosDBDatabaseAccountListByResourceGroup": { + "$ref": "./examples/CosmosDBDatabaseAccountListByResourceGroup.json" + } + }, + "description": "Lists all the Azure Cosmos DB database accounts available under the given resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys": { + "post": { + "operationId": "DatabaseAccounts_ListKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListKeys.json" + } + }, + "description": "Lists the access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListKeysResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings": { + "post": { + "operationId": "DatabaseAccounts_ListConnectionStrings", + "x-ms-examples": { + "CosmosDBDatabaseAccountListConnectionStrings": { + "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStrings.json" + }, + "CosmosDBDatabaseAccountListConnectionStringsMongo": { + "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json" + } + }, + "description": "Lists the connection strings for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListConnectionStringsResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion": { + "post": { + "operationId": "DatabaseAccounts_OfflineRegion", + "x-ms-examples": { + "CosmosDBDatabaseAccountOfflineRegion": { + "$ref": "./examples/CosmosDBDatabaseAccountOfflineRegion.json" + } + }, + "description": "Offline the specified region for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "regionParameterForOffline", + "in": "body", + "required": true, + "description": "Cosmos DB region to offline for the database account.", + "schema": { + "$ref": "#/definitions/RegionForOnlineOffline" + } + } + ], + "responses": { + "200": { + "description": "The offline region operation is completed successfully." + }, + "202": { + "description": "Accepted. The offline region operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion": { + "post": { + "operationId": "DatabaseAccounts_OnlineRegion", + "x-ms-examples": { + "CosmosDBDatabaseAccountOnlineRegion": { + "$ref": "./examples/CosmosDBDatabaseAccountOnlineRegion.json" + } + }, + "description": "Online the specified region for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "regionParameterForOnline", + "in": "body", + "required": true, + "description": "Cosmos DB region to online for the database account.", + "schema": { + "$ref": "#/definitions/RegionForOnlineOffline" + } + } + ], + "responses": { + "200": { + "description": "The online region operation is completed successfully." + }, + "202": { + "description": "Accepted. The online region operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys": { + "get": { + "operationId": "DatabaseAccounts_GetReadOnlyKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListReadOnlyKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" + } + }, + "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + } + } + }, + "post": { + "operationId": "DatabaseAccounts_ListReadOnlyKeys", + "x-ms-examples": { + "CosmosDBDatabaseAccountListReadOnlyKeys": { + "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" + } + }, + "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey": { + "post": { + "operationId": "DatabaseAccounts_RegenerateKey", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegenerateKey": { + "$ref": "./examples/CosmosDBDatabaseAccountRegenerateKey.json" + } + }, + "description": "Regenerates an access key for the specified Azure Cosmos DB database account.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "keyToRegenerate", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseAccountRegenerateKeyParameters" + }, + "description": "The name of the key to regenerate." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The regenerate key operation will complete asynchronously." + } + } + } + }, + "/providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}": { + "head": { + "operationId": "DatabaseAccounts_CheckNameExists", + "x-ms-examples": { + "CosmosDBDatabaseAccountCheckNameExists": { + "$ref": "./examples/CosmosDBDatabaseAccountCheckNameExists.json" + } + }, + "description": "Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.", + "parameters": [ + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The account name is valid but is already in use." + }, + "404": { + "description": "Not Found. The account name is available and valid." + } + } + } + }, + "/providers/Microsoft.DocumentDB/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Cosmos DB Resource Provider operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "CosmosDBOperationsList": { + "$ref": "./examples/CosmosDBOperationsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics": { + "get": { + "operationId": "DatabaseAccounts_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseAccountGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics": { + "get": { + "operationId": "Database_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics": { + "get": { + "operationId": "Collection_ListMetrics", + "x-ms-examples": { + "CosmosDBCollectionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics": { + "get": { + "operationId": "CollectionRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBRegionCollectionGetMetrics": { + "$ref": "./examples/CosmosDBRegionCollectionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account, collection and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics": { + "get": { + "operationId": "DatabaseAccountRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBDatabaseAccountRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The metrics for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics": { + "get": { + "operationId": "PercentileSourceTarget_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileSourceTargetGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/sourceRegionParameter" + }, + { + "$ref": "#/parameters/targetRegionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account, source and target regions were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics": { + "get": { + "operationId": "PercentileTarget_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileTargetGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/targetRegionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account and target regions were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics": { + "get": { + "operationId": "Percentile_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPercentileGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The percentile metrics for the account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PercentileMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { + "get": { + "operationId": "CollectionPartitionRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionPartitionRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given collection and region, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the collection and region were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { + "get": { + "operationId": "CollectionPartition_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBCollectionPartitionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given collection, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { + "get": { + "operationId": "PartitionKeyRangeId_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPKeyRangeIdGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given partition key range id.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "#/parameters/partitionKeyRangeIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the partition key range id were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { + "get": { + "operationId": "PartitionKeyRangeIdRegion_ListMetrics", + "x-ms-examples": { + "CosmosDBDatabaseAccountRegionGetMetrics": { + "$ref": "./examples/CosmosDBPKeyRangeIdRegionGetMetrics.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the metrics determined by the given filter for the given partition key range id and region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/regionParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "#/parameters/partitionKeyRangeIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/filterParameter" + } + ], + "responses": { + "200": { + "description": "The partition-level metrics for the partition key range id and region were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionMetricListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages": { + "get": { + "operationId": "DatabaseAccounts_ListUsages", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetUsages": { + "$ref": "./examples/CosmosDBDatabaseAccountGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent data) for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages": { + "get": { + "operationId": "Database_ListUsages", + "x-ms-examples": { + "CosmosDBDatabaseGetUsages": { + "$ref": "./examples/CosmosDBDatabaseGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent data) for the given database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the database were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages": { + "get": { + "operationId": "Collection_ListUsages", + "x-ms-examples": { + "CosmosDBCollectionGetUsages": { + "$ref": "./examples/CosmosDBCollectionGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent storage data) for the given collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/UsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages": { + "get": { + "operationId": "CollectionPartition_ListUsages", + "x-ms-examples": { + "CosmosDBCollectionGetUsages": { + "$ref": "./examples/CosmosDBCollectionPartitionGetUsages.json" + } + }, + "description": "Retrieves the usages (most recent storage data) for the given collection, split by partition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/usageFilterParameter" + } + ], + "responses": { + "200": { + "description": "The usages for the collection, per partition were retrieved successfully.", + "schema": { + "$ref": "#/definitions/PartitionUsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions": { + "get": { + "operationId": "Database_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBDatabaseGetMetricDefinitions": { + "$ref": "./examples/CosmosDBDatabaseGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the database were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions": { + "get": { + "operationId": "Collection_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBCollectionGetMetricDefinitions": { + "$ref": "./examples/CosmosDBCollectionGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseRidParameter" + }, + { + "$ref": "#/parameters/collectionRidParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the collection were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions": { + "get": { + "operationId": "DatabaseAccounts_ListMetricDefinitions", + "x-ms-examples": { + "CosmosDBDatabaseAccountGetMetricDefinitions": { + "$ref": "./examples/CosmosDBDatabaseAccountGetMetricDefinitions.json" + } + }, + "description": "Retrieves metric definitions for the given database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The metric definitions for the database account were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MetricDefinitionsListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases": { + "get": { + "operationId": "SqlResources_ListSqlDatabases", + "x-ms-examples": { + "CosmosDBSqlDatabaseList": { + "$ref": "./examples/CosmosDBSqlDatabaseList.json" + } + }, + "description": "Lists the SQL databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}": { + "get": { + "operationId": "SqlResources_GetSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseGet": { + "$ref": "./examples/CosmosDBSqlDatabaseGet.json" + } + }, + "description": "Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBSqlDatabaseCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL database." + } + ], + "responses": { + "202": { + "description": "The SQL database create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlDatabase", + "x-ms-examples": { + "CosmosDBSqlDatabaseDelete": { + "$ref": "./examples/CosmosDBSqlDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "SqlResources_GetSqlDatabaseThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBSqlDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the SQL database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_UpdateSqlDatabaseThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBSqlDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB SQL database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current SQL database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the SQL database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the SQL database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "SqlResources_MigrateSqlDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBSqlDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBSqlDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "SqlResources_MigrateSqlDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBSqlDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL database migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientencryptionkeys": { + "get": { + "operationId": "SqlResources_ListClientEncryptionKeys", + "x-ms-examples": { + "CosmosDBClientEncryptionKeysList": { + "$ref": "./examples/CosmosDBClientEncryptionKeysList.json" + } + }, + "description": "Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The ClientEncryptionKeys were retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClientEncryptionKeysListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientencryptionkeys/{clientEncryptionKeyName}": { + "get": { + "operationId": "SqlResources_GetClientEncryptionKey", + "x-ms-examples": { + "CosmosDBClientEncryptionKeyGet": { + "$ref": "./examples/CosmosDBClientEncryptionKeyGet.json" + } + }, + "description": "Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/clientEncryptionKeyNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The ClientEncryptionKey was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClientEncryptionKeyGetResults" + } + }, + "404": { + "description": "Not Found." + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateClientEncryptionKey", + "x-ms-examples": { + "CosmosDBClientEncryptionKeyCreateUpdate": { + "$ref": "./examples/CosmosDBClientEncryptionKeyCreateUpdate.json" + } + }, + "description": "Create or update a ClientEncryptionKey", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/clientEncryptionKeyNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateClientEncryptionKeyParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateParameters" + }, + "description": "The parameters to provide for the client encryption key." + } + ], + "responses": { + "200": { + "description": "The client encryption key create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ClientEncryptionKeyGetResults" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { + "get": { + "operationId": "SqlResources_ListSqlContainers", + "x-ms-examples": { + "CosmosDBSqlContainerList": { + "$ref": "./examples/CosmosDBSqlContainerList.json" + } + }, + "description": "Lists the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL container properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}": { + "get": { + "operationId": "SqlResources_GetSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerGet": { + "$ref": "./examples/CosmosDBSqlContainerGet.json" + } + }, + "description": "Gets the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL container property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerCreateUpdate": { + "$ref": "./examples/CosmosDBSqlContainerCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL container", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlContainerParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlContainerCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL container." + } + ], + "responses": { + "202": { + "description": "The SQL container create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL container create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlContainerGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlContainer", + "x-ms-examples": { + "CosmosDBSqlContainerDelete": { + "$ref": "./examples/CosmosDBSqlContainerDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL container.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL container delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default": { + "get": { + "operationId": "SqlResources_GetSqlContainerThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerThroughputGet": { + "$ref": "./examples/CosmosDBSqlContainerThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the SQL container was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_UpdateSqlContainerThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerThroughputUpdate": { + "$ref": "./examples/CosmosDBSqlContainerThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB SQL container", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current SQL container." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the SQL container update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the SQL container update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "SqlResources_MigrateSqlContainerToAutoscale", + "x-ms-examples": { + "CosmosDBSqlContainerMigrateToAutoscale": { + "$ref": "./examples/CosmosDBSqlContainerMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL container migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "SqlResources_MigrateSqlContainerToManualThroughput", + "x-ms-examples": { + "CosmosDBSqlContainerMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBSqlContainerMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL container migrate operation will complete asynchronously." + }, + "200": { + "description": "The SQL container migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures": { + "get": { + "operationId": "SqlResources_ListSqlStoredProcedures", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureList": { + "$ref": "./examples/CosmosDBSqlStoredProcedureList.json" + } + }, + "description": "Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL stored procedure properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}": { + "get": { + "operationId": "SqlResources_GetSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureGet": { + "$ref": "./examples/CosmosDBSqlStoredProcedureGet.json" + } + }, + "description": "Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL storedProcedure property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureCreateUpdate": { + "$ref": "./examples/CosmosDBSqlStoredProcedureCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL storedProcedure", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlStoredProcedureParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlStoredProcedureCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL storedProcedure." + } + ], + "responses": { + "202": { + "description": "The SQL storedProcedure create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL storedProcedure create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlStoredProcedure", + "x-ms-examples": { + "CosmosDBSqlStoredProcedureDelete": { + "$ref": "./examples/CosmosDBSqlStoredProcedureDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL storedProcedure.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/storedProcedureNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL storedProcedure delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL storedProcedure delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions": { + "get": { + "operationId": "SqlResources_ListSqlUserDefinedFunctions", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionList": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionList.json" + } + }, + "description": "Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL userDefinedFunction properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}": { + "get": { + "operationId": "SqlResources_GetSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionGet": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionGet.json" + } + }, + "description": "Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL userDefinedFunction property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionCreateUpdate": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL userDefinedFunction", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlUserDefinedFunctionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL userDefinedFunction." + } + ], + "responses": { + "202": { + "description": "The SQL userDefinedFunction create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL userDefinedFunction create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlUserDefinedFunction", + "x-ms-examples": { + "CosmosDBSqlUserDefinedFunctionDelete": { + "$ref": "./examples/CosmosDBSqlUserDefinedFunctionDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL userDefinedFunction.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/userDefinedFunctionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL userDefinedFunction delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL userDefinedFunction delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers": { + "get": { + "operationId": "SqlResources_ListSqlTriggers", + "x-ms-examples": { + "CosmosDBSqlTriggerList": { + "$ref": "./examples/CosmosDBSqlTriggerList.json" + } + }, + "description": "Lists the SQL trigger under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL trigger properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}": { + "get": { + "operationId": "SqlResources_GetSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerGet": { + "$ref": "./examples/CosmosDBSqlTriggerGet.json" + } + }, + "description": "Gets the SQL trigger under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The SQL trigger property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerGetResults" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerCreateUpdate": { + "$ref": "./examples/CosmosDBSqlTriggerCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB SQL trigger", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlTriggerParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SqlTriggerCreateUpdateParameters" + }, + "description": "The parameters to provide for the current SQL trigger." + } + ], + "responses": { + "202": { + "description": "The SQL trigger create or update operation will complete asynchronously." + }, + "200": { + "description": "The SQL trigger create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlTriggerGetResults" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlTrigger", + "x-ms-examples": { + "CosmosDBSqlTriggerDelete": { + "$ref": "./examples/CosmosDBSqlTriggerDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB SQL trigger.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/containerNameParameter" + }, + { + "$ref": "#/parameters/triggerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The SQL trigger delete operation will complete asynchronously." + }, + "204": { + "description": "The SQL trigger delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases": { + "get": { + "operationId": "MongoDBResources_ListMongoDBDatabases", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseList": { + "$ref": "./examples/CosmosDBMongoDBDatabaseList.json" + } + }, + "description": "Lists the MongoDB databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}": { + "get": { + "operationId": "MongoDBResources_GetMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseGet": { + "$ref": "./examples/CosmosDBMongoDBDatabaseGet.json" + } + }, + "description": "Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBDatabaseCreateUpdate.json" + } + }, + "description": "Create or updates Azure Cosmos DB MongoDB database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoDBDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MongoDBDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current MongoDB database." + } + ], + "responses": { + "202": { + "description": "The MongoDB database create or update operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoDBDatabase", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseDelete": { + "$ref": "./examples/CosmosDBMongoDBDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB MongoDB database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database delete operation will complete asynchronously." + }, + "204": { + "description": "The MongoDB database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "MongoDBResources_GetMongoDBDatabaseThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the MongoDB database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_UpdateMongoDBDatabaseThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of the an Azure Cosmos DB MongoDB database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current MongoDB database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the MongoDB database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the MongoDB database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBMongoDBDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB database migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections": { + "get": { + "operationId": "MongoDBResources_ListMongoDBCollections", + "x-ms-examples": { + "CosmosDBMongoDBCollectionList": { + "$ref": "./examples/CosmosDBMongoDBCollectionList.json" + } + }, + "description": "Lists the MongoDB collection under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB collection properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}": { + "get": { + "operationId": "MongoDBResources_GetMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionGet": { + "$ref": "./examples/CosmosDBMongoDBCollectionGet.json" + } + }, + "description": "Gets the MongoDB collection under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The MongoDB collection property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBCollectionCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB MongoDB Collection", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoDBCollectionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MongoDBCollectionCreateUpdateParameters" + }, + "description": "The parameters to provide for the current MongoDB Collection." + } + ], + "responses": { + "202": { + "description": "The MongoDB Collection create or update operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB Collection create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoDBCollection", + "x-ms-examples": { + "CosmosDBMongoDBCollectionDelete": { + "$ref": "./examples/CosmosDBMongoDBCollectionDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB MongoDB Collection.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection delete operation will complete asynchronously." + }, + "204": { + "description": "The MongoDB collection delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default": { + "get": { + "operationId": "MongoDBResources_GetMongoDBCollectionThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionThroughputGet": { + "$ref": "./examples/CosmosDBMongoDBCollectionThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the MongoDB collection was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_UpdateMongoDBCollectionThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionThroughputUpdate": { + "$ref": "./examples/CosmosDBMongoDBCollectionThroughputUpdate.json" + } + }, + "description": "Update the RUs per second of an Azure Cosmos DB MongoDB collection", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current MongoDB collection." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the MongoDB collection update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the MongoDB collection update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBCollectionToAutoscale", + "x-ms-examples": { + "CosmosDBMongoDBCollectionMigrateToAutoscale": { + "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB collection migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "MongoDBResources_MigrateMongoDBCollectionToManualThroughput", + "x-ms-examples": { + "CosmosDBMongoDBCollectionMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The MongoDB collection migrate operation will complete asynchronously." + }, + "200": { + "description": "The MongoDB collection migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables": { + "get": { + "operationId": "TableResources_ListTables", + "x-ms-examples": { + "CosmosDBTableList": { + "$ref": "./examples/CosmosDBTableList.json" + } + }, + "description": "Lists the Tables under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Table properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/TableListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}": { + "get": { + "operationId": "TableResources_GetTable", + "x-ms-examples": { + "CosmosDBTableGet": { + "$ref": "./examples/CosmosDBTableGet.json" + } + }, + "description": "Gets the Tables under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Table property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/TableGetResults" + } + } + } + }, + "put": { + "operationId": "TableResources_CreateUpdateTable", + "x-ms-examples": { + "CosmosDBTableReplace": { + "$ref": "./examples/CosmosDBTableCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateTableParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TableCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Table." + } + ], + "responses": { + "202": { + "description": "The Table create or update operation will complete asynchronously." + }, + "200": { + "description": "The Table create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/TableGetResults" + } + } + } + }, + "delete": { + "operationId": "TableResources_DeleteTable", + "x-ms-examples": { + "CosmosDBTableDelete": { + "$ref": "./examples/CosmosDBTableDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Table.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table delete operation will complete asynchronously." + }, + "204": { + "description": "The Table delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default": { + "get": { + "operationId": "TableResources_GetTableThroughput", + "x-ms-examples": { + "CosmosDBTableThroughputGet": { + "$ref": "./examples/CosmosDBTableThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Table was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "TableResources_UpdateTableThroughput", + "x-ms-examples": { + "CosmosDBTableThroughputUpdate": { + "$ref": "./examples/CosmosDBTableThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The parameters to provide for the RUs per second of the current Table." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Table update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Table update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "TableResources_MigrateTableToAutoscale", + "x-ms-examples": { + "CosmosDBTableMigrateToAutoscale": { + "$ref": "./examples/CosmosDBTableMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Table from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "TableResources_MigrateTableToManualThroughput", + "x-ms-examples": { + "CosmosDBTableMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBTableMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Table from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces": { + "get": { + "operationId": "CassandraResources_ListCassandraKeyspaces", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceList": { + "$ref": "./examples/CosmosDBCassandraKeyspaceList.json" + } + }, + "description": "Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra keyspace properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}": { + "get": { + "operationId": "CassandraResources_GetCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceGet": { + "$ref": "./examples/CosmosDBCassandraKeyspaceGet.json" + } + }, + "description": "Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra keyspace property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_CreateUpdateCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceCreateUpdate": { + "$ref": "./examples/CosmosDBCassandraKeyspaceCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Cassandra keyspace", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateCassandraKeyspaceParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CassandraKeyspaceCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Cassandra keyspace." + } + ], + "responses": { + "202": { + "description": "The Cassandra keyspace create or update operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra keyspace create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + } + } + } + }, + "delete": { + "operationId": "CassandraResources_DeleteCassandraKeyspace", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceDelete": { + "$ref": "./examples/CosmosDBCassandraKeyspaceDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Cassandra keyspace.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra keyspace delete operation will complete asynchronously." + }, + "204": { + "description": "The Cassandra keyspace delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default": { + "get": { + "operationId": "CassandraResources_GetCassandraKeyspaceThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceThroughputGet": { + "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Cassandra Keyspace was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_UpdateCassandraKeyspaceThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceThroughputUpdate": { + "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Cassandra Keyspace", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Cassandra Keyspace." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Cassandra Keyspace update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Cassandra Keyspace update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "CassandraResources_MigrateCassandraKeyspaceToAutoscale", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceMigrateToAutoscale": { + "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra Keyspace migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Keyspace migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "CassandraResources_MigrateCassandraKeyspaceToManualThroughput", + "x-ms-examples": { + "CosmosDBCassandraKeyspaceMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra Keyspace migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Keyspace migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables": { + "get": { + "operationId": "CassandraResources_ListCassandraTables", + "x-ms-examples": { + "CosmosDBCassandraTableList": { + "$ref": "./examples/CosmosDBCassandraTableList.json" + } + }, + "description": "Lists the Cassandra table under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra table properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}": { + "get": { + "operationId": "CassandraResources_GetCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableGet": { + "$ref": "./examples/CosmosDBCassandraTableGet.json" + } + }, + "description": "Gets the Cassandra table under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Cassandra table property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_CreateUpdateCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableCreateUpdate": { + "$ref": "./examples/CosmosDBCassandraTableCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Cassandra Table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateCassandraTableParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CassandraTableCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Cassandra Table." + } + ], + "responses": { + "202": { + "description": "The Cassandra Table create or update operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra Table create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/CassandraTableGetResults" + } + } + } + }, + "delete": { + "operationId": "CassandraResources_DeleteCassandraTable", + "x-ms-examples": { + "CosmosDBCassandraTableDelete": { + "$ref": "./examples/CosmosDBCassandraTableDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Cassandra table.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table delete operation will complete asynchronously." + }, + "204": { + "description": "The Cassandra table delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default": { + "get": { + "operationId": "CassandraResources_GetCassandraTableThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableThroughputGet": { + "$ref": "./examples/CosmosDBCassandraTableThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Cassandra table was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "CassandraResources_UpdateCassandraTableThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableThroughputUpdate": { + "$ref": "./examples/CosmosDBCassandraTableThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Cassandra table", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Cassandra table." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Cassandra table update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Cassandra table update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "CassandraResources_MigrateCassandraTableToAutoscale", + "x-ms-examples": { + "CosmosDBCassandraTableMigrateToAutoscale": { + "$ref": "./examples/CosmosDBCassandraTableMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "CassandraResources_MigrateCassandraTableToManualThroughput", + "x-ms-examples": { + "CosmosDBCassandraTableMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBCassandraTableMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/keyspaceNameParameter" + }, + { + "$ref": "#/parameters/tableNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Cassandra table migrate operation will complete asynchronously." + }, + "200": { + "description": "The Cassandra table migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases": { + "get": { + "operationId": "GremlinResources_ListGremlinDatabases", + "x-ms-examples": { + "CosmosDBGremlinDatabaseList": { + "$ref": "./examples/CosmosDBGremlinDatabaseList.json" + } + }, + "description": "Lists the Gremlin databases under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin database properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}": { + "get": { + "operationId": "GremlinResources_GetGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseGet": { + "$ref": "./examples/CosmosDBGremlinDatabaseGet.json" + } + }, + "description": "Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin database property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_CreateUpdateGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseCreateUpdate": { + "$ref": "./examples/CosmosDBGremlinDatabaseCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Gremlin database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateGremlinDatabaseParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GremlinDatabaseCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Gremlin database." + } + ], + "responses": { + "202": { + "description": "The Gremlin database create or update operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + } + } + } + }, + "delete": { + "operationId": "GremlinResources_DeleteGremlinDatabase", + "x-ms-examples": { + "CosmosDBGremlinDatabaseDelete": { + "$ref": "./examples/CosmosDBGremlinDatabaseDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Gremlin database.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database delete operation will complete asynchronously." + }, + "204": { + "description": "The Gremlin database delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default": { + "get": { + "operationId": "GremlinResources_GetGremlinDatabaseThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseThroughputGet": { + "$ref": "./examples/CosmosDBGremlinDatabaseThroughputGet.json" + } + }, + "description": "Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Gremlin database was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_UpdateGremlinDatabaseThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseThroughputUpdate": { + "$ref": "./examples/CosmosDBGremlinDatabaseThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Gremlin database", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Gremlin database." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Gremlin database update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Gremlin database update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "GremlinResources_MigrateGremlinDatabaseToAutoscale", + "x-ms-examples": { + "CosmosDBGremlinDatabaseMigrateToAutoscale": { + "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "GremlinResources_MigrateGremlinDatabaseToManualThroughput", + "x-ms-examples": { + "CosmosDBGremlinDatabaseMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin database migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin database migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs": { + "get": { + "operationId": "GremlinResources_ListGremlinGraphs", + "x-ms-examples": { + "CosmosDBGremlinGraphList": { + "$ref": "./examples/CosmosDBGremlinGraphList.json" + } + }, + "description": "Lists the Gremlin graph under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin graph properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}": { + "get": { + "operationId": "GremlinResources_GetGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphGet": { + "$ref": "./examples/CosmosDBGremlinGraphGet.json" + } + }, + "description": "Gets the Gremlin graph under an existing Azure Cosmos DB database account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Gremlin graph property was retrieved successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_CreateUpdateGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphCreateUpdate": { + "$ref": "./examples/CosmosDBGremlinGraphCreateUpdate.json" + } + }, + "description": "Create or update an Azure Cosmos DB Gremlin graph", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateGremlinGraphParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GremlinGraphCreateUpdateParameters" + }, + "description": "The parameters to provide for the current Gremlin graph." + } + ], + "responses": { + "202": { + "description": "The Gremlin graph create or update operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/GremlinGraphGetResults" + } + } + } + }, + "delete": { + "operationId": "GremlinResources_DeleteGremlinGraph", + "x-ms-examples": { + "CosmosDBGremlinGraphDelete": { + "$ref": "./examples/CosmosDBGremlinGraphDelete.json" + } + }, + "description": "Deletes an existing Azure Cosmos DB Gremlin graph.", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph delete operation will complete asynchronously." + }, + "204": { + "description": "The Gremlin graph delete operation was completed successfully." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default": { + "get": { + "operationId": "GremlinResources_GetGremlinGraphThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphThroughputGet": { + "$ref": "./examples/CosmosDBGremlinGraphThroughputGet.json" + } + }, + "description": "Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The RUs per second of the Gremlin graph was retrieved successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + }, + "put": { + "operationId": "GremlinResources_UpdateGremlinGraphThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphThroughputUpdate": { + "$ref": "./examples/CosmosDBGremlinGraphThroughputUpdate.json" + } + }, + "description": "Update RUs per second of an Azure Cosmos DB Gremlin graph", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "updateThroughputParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThroughputSettingsUpdateParameters" + }, + "description": "The RUs per second of the parameters to provide for the current Gremlin graph." + } + ], + "responses": { + "202": { + "description": "The RUs per second of the Gremlin graph update operation will complete asynchronously." + }, + "200": { + "description": "The RUs per second of the Gremlin graph update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale": { + "post": { + "operationId": "GremlinResources_MigrateGremlinGraphToAutoscale", + "x-ms-examples": { + "CosmosDBGremlinGraphMigrateToAutoscale": { + "$ref": "./examples/CosmosDBGremlinGraphMigrateToAutoscale.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput": { + "post": { + "operationId": "GremlinResources_MigrateGremlinGraphToManualThroughput", + "x-ms-examples": { + "CosmosDBGremlinGraphMigrateToManualThroughput": { + "$ref": "./examples/CosmosDBGremlinGraphMigrateToManualThroughput.json" + } + }, + "description": "Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/databaseNameParameter" + }, + { + "$ref": "#/parameters/graphNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "The Gremlin graph migrate operation will complete asynchronously." + }, + "200": { + "description": "The Gremlin graph migrate operation was completed successfully.", + "schema": { + "$ref": "#/definitions/ThroughputSettingsGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations": { + "get": { + "operationId": "LocationList", + "x-ms-examples": { + "CosmosDBLocationList": { + "$ref": "./examples/CosmosDBLocationList.json" + } + }, + "description": "List Cosmos DB locations and their properties", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/LocationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}": { + "get": { + "operationId": "LocationGet", + "x-ms-examples": { + "CosmosDBLocationGet": { + "$ref": "./examples/CosmosDBLocationGet.json" + } + }, + "description": "Get the properties of an existing Cosmos DB location", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + } + ], + "responses": { + "200": { + "description": "The Cosmos DB location properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/LocationGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "ClientEncryptionKeysListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ClientEncryptionKeyGetResults" + }, + "description": "List of client encryption keys and their properties." + } + }, + "description": "The List operation response, that contains the client encryption keys and their properties." + }, + "DatabaseAccountsListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/DatabaseAccountGetResults" + }, + "description": "List of database account and their properties." + } + }, + "description": "The List operation response, that contains the database accounts and their properties." + }, + "SqlDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlDatabaseGetResults" + }, + "description": "List of SQL databases and their properties." + } + }, + "description": "The List operation response, that contains the SQL databases and their properties." + }, + "SqlContainerListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlContainerGetResults" + }, + "description": "List of containers and their properties." + } + }, + "description": "The List operation response, that contains the containers and their properties." + }, + "SqlStoredProcedureListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlStoredProcedureGetResults" + }, + "description": "List of storedProcedures and their properties." + } + }, + "description": "The List operation response, that contains the storedProcedures and their properties." + }, + "SqlUserDefinedFunctionListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" + }, + "description": "List of userDefinedFunctions and their properties." + } + }, + "description": "The List operation response, that contains the userDefinedFunctions and their properties." + }, + "SqlTriggerListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SqlTriggerGetResults" + }, + "description": "List of triggers and their properties." + } + }, + "description": "The List operation response, that contains the triggers and their properties." + }, + "MongoDBDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MongoDBDatabaseGetResults" + }, + "description": "List of MongoDB databases and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB databases and their properties." + }, + "MongoDBCollectionListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MongoDBCollectionGetResults" + }, + "description": "List of MongoDB collections and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB collections and their properties." + }, + "TableListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TableGetResults" + }, + "description": "List of Table and their properties." + } + }, + "description": "The List operation response, that contains the Table and their properties." + }, + "CassandraKeyspaceListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CassandraKeyspaceGetResults" + }, + "description": "List of Cassandra keyspaces and their properties." + } + }, + "description": "The List operation response, that contains the Cassandra keyspaces and their properties." + }, + "CassandraTableListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CassandraTableGetResults" + }, + "description": "List of Cassandra tables and their properties." + } + }, + "description": "The List operation response, that contains the Cassandra tables and their properties." + }, + "GremlinDatabaseListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/GremlinDatabaseGetResults" + }, + "description": "List of Gremlin databases and their properties." + } + }, + "description": "The List operation response, that contains the Gremlin databases and their properties." + }, + "GremlinGraphListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/GremlinGraphGetResults" + }, + "description": "List of graphs and their properties." + } + }, + "description": "The List operation response, that contains the graphs and their properties." + }, + "ErrorResponse": { + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + }, + "description": "Error Response." + }, + "CloudError": { + "x-ms-external": true, + "description": "An error response from the service.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "FailoverPolicies": { + "properties": { + "failoverPolicies": { + "type": "array", + "description": "List of failover policies.", + "items": { + "$ref": "#/definitions/FailoverPolicy" + } + } + }, + "required": [ + "failoverPolicies" + ], + "description": "The list of new failover policies for the failover priority change." + }, + "FailoverPolicy": { + "type": "object", + "description": "The failover policy for a given region of a database account.", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>." + }, + "locationName": { + "type": "string", + "description": "The name of the region in which the database account exists." + }, + "failoverPriority": { + "type": "integer", + "minimum": 0, + "format": "int32", + "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists." + } + } + }, + "RegionForOnlineOffline": { + "properties": { + "region": { + "type": "string", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + } + }, + "required": [ + "region" + ], + "description": "Cosmos DB region to online or offline." + }, + "Location": { + "description": "A region in which the Azure Cosmos DB database account is deployed.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The unique identifier of the region within the database account. Example: <accountName>-<locationName>." + }, + "locationName": { + "type": "string", + "description": "The name of the region." + }, + "documentEndpoint": { + "type": "string", + "readOnly": true, + "description": "The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "failoverPriority": { + "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", + "format": "int32", + "type": "integer", + "minimum": 0 + }, + "isZoneRedundant": { + "type": "boolean", + "description": "Flag to indicate whether or not this region is an AvailabilityZone region" + } + } + }, + "ARMResourceProperties": { + "type": "object", + "description": "The core properties of ARM resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "tags": { + "$ref": "#/definitions/Tags" + } + }, + "x-ms-azure-resource": true + }, + "ARMProxyResource": { + "type": "object", + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the database account." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the database account." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + }, + "x-ms-azure-resource": true + }, + "ClientEncryptionKeyCreateUpdateParameters": { + "description": "Parameters to create and update ClientEncryptionKey.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update ClientEncryptionKey.", + "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateProperties" + } + }, + "required": [ + "properties" + ] + }, + "ClientEncryptionKeyCreateUpdateProperties": { + "description": "Properties to create and update ClientEncryptionKey.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a ClientEncryptionKey", + "$ref": "#/definitions/ClientEncryptionKeyResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "ClientEncryptionKeyGetResults": { + "description": "Client Encryption Key.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of a ClientEncryptionKey", + "$ref": "#/definitions/ClientEncryptionKeyGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMProxyResource" + } + ] + }, + "ClientEncryptionKeyGetProperties": { + "description": "The properties of a ClientEncryptionKey resource", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/ClientEncryptionKeyResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "DatabaseAccountGetResults": { + "description": "An Azure Cosmos DB database account.", + "type": "object", + "properties": { + "kind": { + "description": "Indicates the type of database account. This can only be set at database account creation.", + "type": "string", + "default": "GlobalDocumentDB", + "enum": [ + "GlobalDocumentDB", + "MongoDB", + "Parse" + ], + "x-ms-enum": { + "name": "DatabaseAccountKind", + "modelAsString": true + } + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountGetProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "ExtendedResourceProperties": { + "description": "The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "description": "A system generated property. A unique identifier.", + "readOnly": true + }, + "_ts": { + "type": "number", + "description": "A system generated property that denotes the last updated timestamp of the resource.", + "readOnly": true + }, + "_etag": { + "type": "string", + "description": "A system generated property representing the resource etag required for optimistic concurrency control.", + "readOnly": true + } + } + }, + "ThroughputSettingsGetResults": { + "description": "An Azure Cosmos DB resource throughput.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB resource throughput", + "$ref": "#/definitions/ThroughputSettingsGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "ThroughputSettingsGetProperties": { + "description": "The properties of an Azure Cosmos DB resource throughput", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/ThroughputSettingsResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlDatabaseGetResults": { + "description": "An Azure Cosmos DB SQL database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB SQL database", + "$ref": "#/definitions/SqlDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB SQL database", + "type": "object", + "properties": { + "resource": { + "properties": { + "_colls": { + "type": "string", + "description": "A system generated property that specified the addressable path of the collections resource." + }, + "_users": { + "type": "string", + "description": "A system generated property that specifies the addressable path of the users resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/SqlDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "SqlContainerGetResults": { + "description": "An Azure Cosmos DB container.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB container", + "$ref": "#/definitions/SqlContainerGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlContainerGetProperties": { + "description": "The properties of an Azure Cosmos DB container", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlContainerResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "SqlStoredProcedureGetResults": { + "description": "An Azure Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB storedProcedure", + "$ref": "#/definitions/SqlStoredProcedureGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlStoredProcedureGetProperties": { + "description": "The properties of an Azure Cosmos DB StoredProcedure", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlStoredProcedureResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlUserDefinedFunctionGetResults": { + "description": "An Azure Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB userDefinedFunction", + "$ref": "#/definitions/SqlUserDefinedFunctionGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlUserDefinedFunctionGetProperties": { + "description": "The properties of an Azure Cosmos DB userDefinedFunction", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlUserDefinedFunctionResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "SqlTriggerGetResults": { + "description": "An Azure Cosmos DB trigger.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB trigger", + "$ref": "#/definitions/SqlTriggerGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "SqlTriggerGetProperties": { + "description": "The properties of an Azure Cosmos DB trigger", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/SqlTriggerResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + } + } + }, + "MongoDBDatabaseGetResults": { + "description": "An Azure Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB MongoDB database", + "$ref": "#/definitions/MongoDBDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "MongoDBDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB database", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/MongoDBDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "MongoDBCollectionGetResults": { + "description": "An Azure Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB MongoDB collection", + "$ref": "#/definitions/MongoDBCollectionGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "MongoDBCollectionGetProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB collection", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/MongoDBCollectionResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "TableGetResults": { + "description": "An Azure Cosmos DB Table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Table", + "$ref": "#/definitions/TableGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "TableGetProperties": { + "description": "The properties of an Azure Cosmos Table", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/TableResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "CassandraKeyspaceGetResults": { + "description": "An Azure Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Cassandra keyspace", + "$ref": "#/definitions/CassandraKeyspaceGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "CassandraKeyspaceGetProperties": { + "description": "The properties of an Azure Cosmos DB Cassandra keyspace", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/CassandraKeyspaceResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "CassandraTableGetResults": { + "description": "An Azure Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Cassandra table", + "$ref": "#/definitions/CassandraTableGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "CassandraTableGetProperties": { + "description": "The properties of an Azure Cosmos DB Cassandra table", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/CassandraTableResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "GremlinDatabaseGetResults": { + "description": "An Azure Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB SQL database", + "$ref": "#/definitions/GremlinDatabaseGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "GremlinDatabaseGetProperties": { + "description": "The properties of an Azure Cosmos DB SQL database", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/GremlinDatabaseResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "GremlinGraphGetResults": { + "description": "An Azure Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of an Azure Cosmos DB Gremlin graph", + "$ref": "#/definitions/GremlinGraphGetProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "GremlinGraphGetProperties": { + "description": "The properties of an Azure Cosmos DB Gremlin graph", + "type": "object", + "properties": { + "resource": { + "allOf": [ + { + "$ref": "#/definitions/GremlinGraphResource" + }, + { + "$ref": "#/definitions/ExtendedResourceProperties" + } + ] + }, + "options": { + "allOf": [ + { + "$ref": "#/definitions/OptionsResource" + } + ] + } + } + }, + "ConsistencyPolicy": { + "type": "object", + "description": "The consistency policy for the Cosmos DB database account.", + "properties": { + "defaultConsistencyLevel": { + "description": "The default consistency level and configuration settings of the Cosmos DB account.", + "type": "string", + "enum": [ + "Eventual", + "Session", + "BoundedStaleness", + "Strong", + "ConsistentPrefix" + ], + "x-ms-enum": { + "name": "DefaultConsistencyLevel", + "modelAsString": false + } + }, + "maxStalenessPrefix": { + "description": "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + }, + "maxIntervalInSeconds": { + "description": "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", + "type": "integer", + "minimum": 5, + "maximum": 86400, + "format": "int32" + } + }, + "required": [ + "defaultConsistencyLevel" + ] + }, + "CorsPolicy": { + "type": "object", + "description": "The CORS policy for the Cosmos DB database account.", + "properties": { + "allowedOrigins": { + "description": "The origin domains that are permitted to make a request against the service via CORS.", + "type": "string" + }, + "allowedMethods": { + "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request.", + "type": "string" + }, + "allowedHeaders": { + "description": "The request headers that the origin domain may specify on the CORS request.", + "type": "string" + }, + "exposedHeaders": { + "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.", + "type": "string" + }, + "maxAgeInSeconds": { + "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + } + }, + "required": [ + "allowedOrigins" + ] + }, + "DatabaseAccountGetProperties": { + "description": "Properties for the database account.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "documentEndpoint": { + "description": "The connection endpoint for the Cosmos DB database account.", + "type": "string", + "readOnly": true + }, + "databaseAccountOfferType": { + "description": "The offer type for the Cosmos DB database account. Default value: Standard.", + "readOnly": true, + "$ref": "#/definitions/DatabaseAccountOfferType" + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB database account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "writeLocations": { + "type": "array", + "readOnly": true, + "description": "An array that contains the write location for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "readLocations": { + "type": "array", + "readOnly": true, + "description": "An array that contains of the read locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "locations": { + "type": "array", + "readOnly": true, + "description": "An array that contains all of the locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "failoverPolicies": { + "type": "array", + "readOnly": true, + "description": "An array that contains the regions ordered by their failover priorities.", + "items": { + "$ref": "#/definitions/FailoverPolicy" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "privateEndpointConnections": { + "type": "array", + "readOnly": true, + "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", + "items": { + "$ref": "../../stable/2021-09-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "instanceId": { + "description": "A unique identifier assigned to the database account", + "type": "string", + "readOnly": true + }, + "createMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "$ref": "#/definitions/CreateMode" + }, + "restoreParameters": { + "description": "Parameters to indicate the information about the restore.", + "type": "object", + "$ref": "#/definitions/RestoreParameters" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + } + } + }, + "DatabaseAccountCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB database accounts.", + "type": "object", + "properties": { + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "locations": { + "type": "array", + "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "databaseAccountOfferType": { + "description": "The offer type for the database", + "$ref": "#/definitions/DatabaseAccountOfferType" + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties. Currently, supported only for MongoDB API.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "createMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "$ref": "#/definitions/CreateMode" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + }, + "restoreParameters": { + "description": "Parameters to indicate the information about the restore.", + "type": "object", + "$ref": "#/definitions/RestoreParameters" + } + }, + "required": [ + "locations", + "databaseAccountOfferType" + ] + }, + "DatabaseAccountCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB database accounts.", + "type": "object", + "properties": { + "kind": { + "description": "Indicates the type of database account. This can only be set at database account creation.", + "type": "string", + "default": "GlobalDocumentDB", + "enum": [ + "GlobalDocumentDB", + "MongoDB", + "Parse" + ], + "x-ms-enum": { + "name": "DatabaseAccountKind", + "modelAsString": true + } + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "DatabaseAccountUpdateProperties": { + "description": "Properties to update Azure Cosmos DB database accounts.", + "type": "object", + "properties": { + "consistencyPolicy": { + "description": "The consistency policy for the Cosmos DB account.", + "$ref": "#/definitions/ConsistencyPolicy" + }, + "locations": { + "type": "array", + "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/Location" + } + }, + "ipRules": { + "description": "List of IpRules.", + "$ref": "#/definitions/IPRules" + }, + "isVirtualNetworkFilterEnabled": { + "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", + "type": "boolean" + }, + "enableAutomaticFailover": { + "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", + "type": "boolean" + }, + "capabilities": { + "type": "array", + "description": "List of Cosmos DB capabilities for the account", + "items": { + "$ref": "#/definitions/Capability" + } + }, + "virtualNetworkRules": { + "type": "array", + "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "enableMultipleWriteLocations": { + "description": "Enables the account to write in multiple locations", + "type": "boolean" + }, + "enableCassandraConnector": { + "description": "Enables the cassandra connector on the Cosmos DB C* account", + "type": "boolean" + }, + "connectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB database C* account.", + "$ref": "#/definitions/ConnectorOffer" + }, + "disableKeyBasedMetadataWriteAccess": { + "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", + "type": "boolean" + }, + "keyVaultKeyUri": { + "description": "The URI of the key vault", + "type": "string" + }, + "defaultIdentity": { + "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", + "type": "string" + }, + "publicNetworkAccess": { + "description": "Whether requests from Public Network are allowed", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "enableFreeTier": { + "description": "Flag to indicate whether Free Tier is enabled.", + "type": "boolean" + }, + "apiProperties": { + "description": "API specific properties. Currently, supported only for MongoDB API.", + "type": "object", + "$ref": "#/definitions/ApiProperties" + }, + "enableAnalyticalStorage": { + "description": "Flag to indicate whether to enable storage analytics.", + "type": "boolean" + }, + "analyticalStorageConfiguration": { + "description": "Analytical storage specific properties.", + "type": "object", + "$ref": "#/definitions/AnalyticalStorageConfiguration" + }, + "backupPolicy": { + "description": "The object representing the policy for taking backups on an account.", + "type": "object", + "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "type": "array", + "description": "The CORS policy for the Cosmos DB database account.", + "items": { + "$ref": "#/definitions/CorsPolicy" + } + }, + "networkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "$ref": "#/definitions/NetworkAclBypass" + }, + "networkAclBypassResourceIds": { + "type": "array", + "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", + "items": { + "type": "string" + } + }, + "disableLocalAuth": { + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "type": "boolean" + } + } + }, + "DatabaseAccountUpdateParameters": { + "description": "Parameters for patching Azure Cosmos DB database account properties.", + "type": "object", + "properties": { + "tags": { + "$ref": "#/definitions/Tags" + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseAccountUpdateProperties" + } + } + }, + "DatabaseAccountListReadOnlyKeysResult": { + "description": "The read-only access keys for the given database account.", + "properties": { + "primaryReadonlyMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the primary read-only key." + }, + "secondaryReadonlyMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the secondary read-only key." + } + } + }, + "DatabaseAccountListKeysResult": { + "description": "The access keys for the given database account.", + "properties": { + "primaryMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the primary read-write key." + }, + "secondaryMasterKey": { + "readOnly": true, + "type": "string", + "description": "Base 64 encoded value of the secondary read-write key." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" + } + ] + }, + "DatabaseAccountConnectionString": { + "description": "Connection string for the Cosmos DB account", + "properties": { + "connectionString": { + "readOnly": true, + "type": "string", + "description": "Value of the connection string" + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Description of the connection string" + } + } + }, + "DatabaseAccountListConnectionStringsResult": { + "description": "The connection strings for the given database account.", + "properties": { + "connectionStrings": { + "type": "array", + "description": "An array that contains the connection strings for the Cosmos DB account.", + "items": { + "$ref": "#/definitions/DatabaseAccountConnectionString" + } + } + } + }, + "DatabaseAccountRegenerateKeyParameters": { + "type": "object", + "description": "Parameters to regenerate the keys within the database account.", + "properties": { + "keyKind": { + "type": "string", + "description": "The access key to regenerate.", + "enum": [ + "primary", + "secondary", + "primaryReadonly", + "secondaryReadonly" + ], + "x-ms-enum": { + "name": "KeyKind", + "modelAsString": true + } + } + }, + "required": [ + "keyKind" + ] + }, + "DatabaseAccountOfferType": { + "description": "The offer type for the Cosmos DB database account.", + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "DatabaseAccountOfferType", + "modelAsString": false + } + }, + "ThroughputSettingsUpdateParameters": { + "description": "Parameters to update Cosmos DB resource throughput.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to update Azure Cosmos DB resource throughput.", + "$ref": "#/definitions/ThroughputSettingsUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "ThroughputSettingsUpdateProperties": { + "description": "Properties to update Azure Cosmos DB resource throughput.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a resource throughput", + "$ref": "#/definitions/ThroughputSettingsResource" + } + }, + "required": [ + "resource" + ] + }, + "SqlDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB SQL database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB SQL database.", + "$ref": "#/definitions/SqlDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB SQL database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a SQL database", + "$ref": "#/definitions/SqlDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlContainerCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB container.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB container.", + "$ref": "#/definitions/SqlContainerCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlContainerCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB container.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a container", + "$ref": "#/definitions/SqlContainerResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlStoredProcedureCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB storedProcedure.", + "$ref": "#/definitions/SqlStoredProcedureCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlStoredProcedureCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB storedProcedure.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a storedProcedure", + "$ref": "#/definitions/SqlStoredProcedureResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlUserDefinedFunctionCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", + "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlUserDefinedFunctionCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a userDefinedFunction", + "$ref": "#/definitions/SqlUserDefinedFunctionResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "SqlTriggerCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB trigger.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB trigger.", + "$ref": "#/definitions/SqlTriggerCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "SqlTriggerCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB trigger.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a trigger", + "$ref": "#/definitions/SqlTriggerResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "MongoDBDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB MongoDB database.", + "$ref": "#/definitions/MongoDBDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "MongoDBDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB MongoDB database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a MongoDB database", + "$ref": "#/definitions/MongoDBDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "MongoDBCollectionCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", + "$ref": "#/definitions/MongoDBCollectionCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "MongoDBCollectionCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a MongoDB collection", + "$ref": "#/definitions/MongoDBCollectionResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "TableCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Table.", + "$ref": "#/definitions/TableCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "TableCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Table.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Table", + "$ref": "#/definitions/TableResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "CassandraKeyspaceCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", + "$ref": "#/definitions/CassandraKeyspaceCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "CassandraKeyspaceCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Cassandra keyspace", + "$ref": "#/definitions/CassandraKeyspaceResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "CassandraTableCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Cassandra table.", + "$ref": "#/definitions/CassandraTableCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "CassandraTableCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Cassandra table.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Cassandra table", + "$ref": "#/definitions/CassandraTableResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "GremlinDatabaseCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Gremlin database.", + "$ref": "#/definitions/GremlinDatabaseCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "GremlinDatabaseCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Gremlin database.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Gremlin database", + "$ref": "#/definitions/GremlinDatabaseResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "GremlinGraphCreateUpdateParameters": { + "description": "Parameters to create and update Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", + "$ref": "#/definitions/GremlinGraphCreateUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ], + "required": [ + "properties" + ] + }, + "GremlinGraphCreateUpdateProperties": { + "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", + "type": "object", + "properties": { + "resource": { + "description": "The standard JSON format of a Gremlin graph", + "$ref": "#/definitions/GremlinGraphResource" + }, + "options": { + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", + "$ref": "#/definitions/CreateUpdateOptions" + } + }, + "required": [ + "resource" + ] + }, + "ThroughputSettingsResource": { + "type": "object", + "description": "Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.", + "properties": { + "throughput": { + "type": "integer", + "description": "Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both." + }, + "autoscaleSettings": { + "description": "Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.", + "$ref": "#/definitions/AutoscaleSettingsResource" + }, + "minimumThroughput": { + "type": "string", + "description": "The minimum throughput of the resource", + "readOnly": true + }, + "offerReplacePending": { + "type": "string", + "description": "The throughput replace is pending", + "readOnly": true + } + } + }, + "AutoscaleSettingsResource": { + "type": "object", + "description": "Cosmos DB provisioned throughput settings object", + "properties": { + "maxThroughput": { + "type": "integer", + "description": "Represents maximum throughput container can scale up to." + }, + "autoUpgradePolicy": { + "description": "Cosmos DB resource auto-upgrade policy", + "$ref": "#/definitions/AutoUpgradePolicyResource" + }, + "targetMaxThroughput": { + "type": "integer", + "description": "Represents target maximum throughput container can scale up to once offer is no longer in pending state.", + "readOnly": true + } + }, + "required": [ + "maxThroughput" + ] + }, + "AutoUpgradePolicyResource": { + "type": "object", + "description": "Cosmos DB resource auto-upgrade policy", + "properties": { + "throughputPolicy": { + "description": "Represents throughput policy which service must adhere to for auto-upgrade", + "$ref": "#/definitions/ThroughputPolicyResource" + } + } + }, + "ThroughputPolicyResource": { + "type": "object", + "description": "Cosmos DB resource throughput policy", + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Determines whether the ThroughputPolicy is active or not" + }, + "incrementPercent": { + "type": "integer", + "description": "Represents the percentage by which throughput can increase every time throughput policy kicks in." + } + } + }, + "OptionsResource": { + "type": "object", + "description": "Cosmos DB options resource object", + "readOnly": true, + "properties": { + "throughput": { + "type": "integer", + "description": "Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details." + }, + "autoscaleSettings": { + "type": "object", + "$ref": "#/definitions/AutoscaleSettings", + "description": "Specifies the Autoscale settings." + } + } + }, + "ClientEncryptionKeyResource": { + "type": "object", + "description": "Cosmos DB client encryption key resource object.", + "properties": { + "encryptionAlgorithmId": { + "type": "string", + "description": "Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data." + }, + "wrappedDataEncryptionKey": { + "type": "string", + "description": "Wrapped (encrypted) form of the key." + }, + "keyWrapMetadata": { + "description": "Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.", + "$ref": "#/definitions/KeyWrapMetadata" + } + } + }, + "KeyWrapMetadata": { + "type": "object", + "description": "Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key.", + "properties": { + "name": { + "type": "string", + "description": "The name of associated KeyEncryptionKey (aka CustomerManagedKey)." + }, + "type": { + "type": "string", + "description": "ProviderName of KeyStoreProvider." + }, + "value": { + "type": "string", + "description": "Value / link of the KeyEncryptionKey." + } + } + }, + "SqlDatabaseResource": { + "type": "object", + "description": "Cosmos DB SQL database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL database" + } + }, + "required": [ + "id" + ] + }, + "SqlContainerResource": { + "type": "object", + "description": "Cosmos DB SQL container resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL container" + }, + "indexingPolicy": { + "$ref": "#/definitions/IndexingPolicy", + "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container" + }, + "partitionKey": { + "$ref": "#/definitions/ContainerPartitionKey", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" + }, + "defaultTtl": { + "type": "integer", + "description": "Default time to live" + }, + "uniqueKeyPolicy": { + "$ref": "#/definitions/UniqueKeyPolicy", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." + }, + "conflictResolutionPolicy": { + "$ref": "#/definitions/ConflictResolutionPolicy", + "description": "The conflict resolution policy for the container." + }, + "analyticalStorageTtl": { + "type": "integer", + "format": "int64", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "IndexingPolicy": { + "type": "object", + "description": "Cosmos DB indexing policy", + "properties": { + "automatic": { + "type": "boolean", + "description": "Indicates if the indexing policy is automatic" + }, + "indexingMode": { + "description": "Indicates the indexing mode.", + "type": "string", + "default": "consistent", + "enum": [ + "consistent", + "lazy", + "none" + ], + "x-ms-enum": { + "name": "IndexingMode", + "modelAsString": true + } + }, + "includedPaths": { + "description": "List of paths to include in the indexing", + "type": "array", + "items": { + "$ref": "#/definitions/IncludedPath" + } + }, + "excludedPaths": { + "description": "List of paths to exclude from indexing", + "type": "array", + "items": { + "$ref": "#/definitions/ExcludedPath" + } + }, + "compositeIndexes": { + "description": "List of composite path list", + "type": "array", + "items": { + "$ref": "#/definitions/CompositePathList" + } + }, + "spatialIndexes": { + "description": "List of spatial specifics", + "type": "array", + "items": { + "$ref": "#/definitions/SpatialSpec" + } + } + } + }, + "ExcludedPath": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + } + } + }, + "IncludedPath": { + "type": "object", + "description": "The paths that are included in indexing", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "indexes": { + "description": "List of indexes for this path", + "type": "array", + "items": { + "$ref": "#/definitions/Indexes" + } + } + } + }, + "Indexes": { + "type": "object", + "description": "The indexes for the path.", + "properties": { + "dataType": { + "description": "The datatype for which the indexing behavior is applied to.", + "type": "string", + "default": "String", + "enum": [ + "String", + "Number", + "Point", + "Polygon", + "LineString", + "MultiPolygon" + ], + "x-ms-enum": { + "name": "DataType", + "modelAsString": true + } + }, + "precision": { + "description": "The precision of the index. -1 is maximum precision.", + "type": "integer" + }, + "kind": { + "description": "Indicates the type of index.", + "type": "string", + "default": "Hash", + "enum": [ + "Hash", + "Range", + "Spatial" + ], + "x-ms-enum": { + "name": "IndexKind", + "modelAsString": true + } + } + } + }, + "CompositePathList": { + "description": "List of composite path", + "type": "array", + "items": { + "$ref": "#/definitions/CompositePath" + } + }, + "CompositePath": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "order": { + "description": "Sort order for composite paths.", + "type": "string", + "enum": [ + "ascending", + "descending" + ], + "x-ms-enum": { + "name": "CompositePathSortOrder", + "modelAsString": true + } + } + } + }, + "SpatialSpec": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" + }, + "types": { + "description": "List of path's spatial type", + "type": "array", + "items": { + "$ref": "#/definitions/SpatialType" + } + } + } + }, + "SpatialType": { + "description": "Indicates the spatial type of index.", + "type": "string", + "enum": [ + "Point", + "LineString", + "Polygon", + "MultiPolygon" + ], + "x-ms-enum": { + "name": "SpatialType", + "modelAsString": true + } + }, + "ContainerPartitionKey": { + "type": "object", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions", + "properties": { + "paths": { + "description": "List of paths using which data within the container can be partitioned", + "type": "array", + "items": { + "$ref": "#/definitions/Path" + } + }, + "kind": { + "description": "Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create", + "type": "string", + "default": "Hash", + "enum": [ + "Hash", + "Range", + "MultiHash" + ], + "x-ms-enum": { + "name": "PartitionKind", + "modelAsString": true + } + }, + "version": { + "description": "Indicates the version of the partition key definition", + "type": "integer", + "minimum": 1, + "maximum": 2, + "format": "int32" + }, + "systemKey": { + "description": "Indicates if the container is using a system generated partition key", + "type": "boolean", + "readOnly": true + } + } + }, + "Path": { + "type": "string", + "description": "A path. These typically start with root (/path)" + }, + "UniqueKeyPolicy": { + "type": "object", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.", + "properties": { + "uniqueKeys": { + "description": "List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", + "type": "array", + "items": { + "$ref": "#/definitions/UniqueKey" + } + } + } + }, + "UniqueKey": { + "type": "object", + "description": "The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", + "properties": { + "paths": { + "description": "List of paths must be unique for each document in the Azure Cosmos DB service", + "type": "array", + "items": { + "$ref": "#/definitions/Path" + } + } + } + }, + "ConflictResolutionPolicy": { + "type": "object", + "description": "The conflict resolution policy for the container.", + "properties": { + "mode": { + "description": "Indicates the conflict resolution mode.", + "type": "string", + "default": "LastWriterWins", + "enum": [ + "LastWriterWins", + "Custom" + ], + "x-ms-enum": { + "name": "ConflictResolutionMode", + "modelAsString": true + } + }, + "conflictResolutionPath": { + "type": "string", + "description": "The conflict resolution path in the case of LastWriterWins mode." + }, + "conflictResolutionProcedure": { + "type": "string", + "description": "The procedure to resolve conflicts in the case of custom mode." + } + } + }, + "SqlStoredProcedureResource": { + "type": "object", + "description": "Cosmos DB SQL storedProcedure resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL storedProcedure" + }, + "body": { + "type": "string", + "description": "Body of the Stored Procedure" + } + }, + "required": [ + "id" + ] + }, + "SqlUserDefinedFunctionResource": { + "type": "object", + "description": "Cosmos DB SQL userDefinedFunction resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL userDefinedFunction" + }, + "body": { + "type": "string", + "description": "Body of the User Defined Function" + } + }, + "required": [ + "id" + ] + }, + "SqlTriggerResource": { + "type": "object", + "description": "Cosmos DB SQL trigger resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB SQL trigger" + }, + "body": { + "type": "string", + "description": "Body of the Trigger" + }, + "triggerType": { + "type": "string", + "enum": [ + "Pre", + "Post" + ], + "description": "Type of the Trigger", + "x-ms-enum": { + "name": "triggerType", + "modelAsString": true + } + }, + "triggerOperation": { + "type": "string", + "enum": [ + "All", + "Create", + "Update", + "Delete", + "Replace" + ], + "description": "The operation the trigger is associated with", + "x-ms-enum": { + "name": "triggerOperation", + "modelAsString": true + } + } + }, + "required": [ + "id" + ] + }, + "MongoDBDatabaseResource": { + "type": "object", + "description": "Cosmos DB MongoDB database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB MongoDB database" + } + }, + "required": [ + "id" + ] + }, + "MongoDBCollectionResource": { + "type": "object", + "description": "Cosmos DB MongoDB collection resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB MongoDB collection" + }, + "shardKey": { + "description": "A key-value pair of shard keys to be applied for the request.", + "$ref": "#/definitions/ShardKeys" + }, + "indexes": { + "description": "List of index keys", + "type": "array", + "items": { + "$ref": "#/definitions/MongoIndex" + } + }, + "analyticalStorageTtl": { + "type": "integer", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "ShardKeys": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The shard key and partition kind pair, only support \"Hash\" partition kind" + }, + "MongoIndex": { + "type": "object", + "description": "Cosmos DB MongoDB collection index key", + "properties": { + "key": { + "description": "Cosmos DB MongoDB collection index keys", + "$ref": "#/definitions/MongoIndexKeys" + }, + "options": { + "description": "Cosmos DB MongoDB collection index key options", + "$ref": "#/definitions/MongoIndexOptions" + } + } + }, + "MongoIndexKeys": { + "type": "object", + "description": "Cosmos DB MongoDB collection resource object", + "properties": { + "keys": { + "description": "List of keys for each MongoDB collection in the Azure Cosmos DB service", + "type": "array", + "items": { + "$ref": "#/definitions/Key" + } + } + } + }, + "Key": { + "type": "string", + "description": "A Key." + }, + "MongoIndexOptions": { + "type": "object", + "description": "Cosmos DB MongoDB collection index options", + "properties": { + "expireAfterSeconds": { + "description": "Expire after seconds", + "type": "integer" + }, + "unique": { + "description": "Is unique or not", + "type": "boolean" + } + } + }, + "TableResource": { + "type": "object", + "description": "Cosmos DB table resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB table" + } + }, + "required": [ + "id" + ] + }, + "CassandraKeyspaceResource": { + "type": "object", + "description": "Cosmos DB Cassandra keyspace resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra keyspace" + } + }, + "required": [ + "id" + ] + }, + "CassandraTableResource": { + "type": "object", + "description": "Cosmos DB Cassandra table resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table" + }, + "defaultTtl": { + "type": "integer", + "description": "Time to live of the Cosmos DB Cassandra table" + }, + "schema": { + "description": "Schema of the Cosmos DB Cassandra table", + "$ref": "#/definitions/CassandraSchema" + }, + "analyticalStorageTtl": { + "type": "integer", + "description": "Analytical TTL." + } + }, + "required": [ + "id" + ] + }, + "CassandraSchema": { + "type": "object", + "description": "Cosmos DB Cassandra table schema", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/Column" + }, + "description": "List of Cassandra table columns." + }, + "partitionKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/CassandraPartitionKey" + }, + "description": "List of partition key." + }, + "clusterKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/ClusterKey" + }, + "description": "List of cluster key." + } + } + }, + "Column": { + "type": "object", + "description": "Cosmos DB Cassandra table column", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table column" + }, + "type": { + "type": "string", + "description": "Type of the Cosmos DB Cassandra table column" + } + } + }, + "CassandraPartitionKey": { + "type": "object", + "description": "Cosmos DB Cassandra table partition key", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table partition key" + } + } + }, + "ClusterKey": { + "type": "object", + "description": "Cosmos DB Cassandra table cluster key", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB Cassandra table cluster key" + }, + "orderBy": { + "type": "string", + "description": "Order of the Cosmos DB Cassandra table cluster key, only support \"Asc\" and \"Desc\"" + } + } + }, + "GremlinDatabaseResource": { + "type": "object", + "description": "Cosmos DB Gremlin database resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Gremlin database" + } + }, + "required": [ + "id" + ] + }, + "GremlinGraphResource": { + "type": "object", + "description": "Cosmos DB Gremlin graph resource object", + "properties": { + "id": { + "type": "string", + "description": "Name of the Cosmos DB Gremlin graph" + }, + "indexingPolicy": { + "$ref": "#/definitions/IndexingPolicy", + "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph" + }, + "partitionKey": { + "$ref": "#/definitions/ContainerPartitionKey", + "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" + }, + "defaultTtl": { + "type": "integer", + "description": "Default time to live" + }, + "uniqueKeyPolicy": { + "$ref": "#/definitions/UniqueKeyPolicy", + "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." + }, + "conflictResolutionPolicy": { + "$ref": "#/definitions/ConflictResolutionPolicy", + "description": "The conflict resolution policy for the graph." + } + }, + "required": [ + "id" + ] + }, + "CreateUpdateOptions": { + "type": "object", + "properties": { + "throughput": { + "type": "integer", + "description": "Request Units per second. For example, \"throughput\": 10000." + }, + "autoscaleSettings": { + "$ref": "#/definitions/AutoscaleSettings", + "description": "Specifies the Autoscale settings." + } + }, + "description": "CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are \"If-Match\", \"If-None-Match\", \"Session-Token\" and \"Throughput\"" + }, + "AutoscaleSettings": { + "type": "object", + "properties": { + "maxThroughput": { + "type": "integer", + "description": "Represents maximum throughput, the resource can scale up to." + } + } + }, + "Capability": { + "type": "object", + "description": "Cosmos DB capability object", + "properties": { + "name": { + "type": "string", + "description": "Name of the Cosmos DB capability. For example, \"name\": \"EnableCassandra\". Current values also include \"EnableTable\" and \"EnableGremlin\"." + } + } + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + }, + "ManagedServiceIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the resource." + }, + "ProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for the Create Cosmos DB account operation are returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation. 'DeletionFailed' – the Cosmos DB account deletion failed." + }, + "IPRules": { + "type": "array", + "description": "Array of IpAddressOrRange objects.", + "items": { + "$ref": "#/definitions/IpAddressOrRange" + } + }, + "IpAddressOrRange": { + "type": "object", + "description": "IpAddressOrRange object", + "properties": { + "ipAddressOrRange": { + "type": "string", + "description": "A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”." + } + } + }, + "VirtualNetworkRule": { + "type": "object", + "description": "Virtual Network ACL Rule object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}." + }, + "ignoreMissingVNetServiceEndpoint": { + "type": "boolean", + "description": "Create firewall rule before the virtual network has vnet service endpoint enabled." + } + } + }, + "NetworkAclBypass": { + "description": "Indicates what services are allowed to bypass firewall checks.", + "type": "string", + "enum": [ + "None", + "AzureServices" + ], + "x-ms-enum": { + "name": "NetworkAclBypass", + "modelAsString": false + } + }, + "Operation": { + "description": "REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "Provider": { + "description": "Service provider: Microsoft.ResourceProvider", + "type": "string" + }, + "Resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "Operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + }, + "Description": { + "description": "Description of operation", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "UsagesResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "The list of usages for the database. A usage is a point in time metric" + } + }, + "description": "The response to a list usage request." + }, + "Usage": { + "properties": { + "unit": { + "description": "The unit of the metric.", + "$ref": "#/definitions/UnitType" + }, + "name": { + "$ref": "#/definitions/MetricName", + "readOnly": true, + "description": "The name information for the metric." + }, + "quotaPeriod": { + "type": "string", + "readOnly": true, + "description": "The quota period used to summarize the usage values." + }, + "limit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Maximum value for this metric" + }, + "currentValue": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Current value for this metric" + } + }, + "description": "The usage data for a usage request." + }, + "PartitionUsagesResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PartitionUsage" + }, + "description": "The list of partition-level usages for the database. A usage is a point in time metric" + } + }, + "description": "The response to a list partition level usage request." + }, + "PartitionUsage": { + "allOf": [ + { + "$ref": "#/definitions/Usage" + } + ], + "properties": { + "partitionId": { + "readOnly": true, + "type": "string", + "description": "The partition id (GUID identifier) of the usages." + }, + "partitionKeyRangeId": { + "readOnly": true, + "type": "string", + "description": "The partition key range id (integer identifier) of the usages." + } + }, + "description": "The partition level usage data for a usage request." + }, + "MetricDefinitionsListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MetricDefinition" + }, + "description": "The list of metric definitions for the account." + } + }, + "description": "The response to a list metric definitions request." + }, + "MetricDefinition": { + "properties": { + "metricAvailabilities": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MetricAvailability" + }, + "description": "The list of metric availabilities for the account." + }, + "primaryAggregationType": { + "readOnly": true, + "type": "string", + "description": "The primary aggregation type of the metric.", + "enum": [ + "None", + "Average", + "Total", + "Minimum", + "Maximum", + "Last" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "PrimaryAggregationType" + } + }, + "unit": { + "description": "The unit of the metric.", + "$ref": "#/definitions/UnitType" + }, + "resourceUri": { + "readOnly": true, + "type": "string", + "description": "The resource uri of the database." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + } + }, + "description": "The definition of a metric." + }, + "MetricAvailability": { + "properties": { + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "retention": { + "readOnly": true, + "type": "string", + "description": "The retention for the metric values." + } + }, + "description": "The availability of the metric." + }, + "MetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Metric" + }, + "description": "The list of metrics for the account." + } + }, + "description": "The response to a list metrics request." + }, + "Metric": { + "properties": { + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The start time for the metric (ISO-8601 format)." + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The end time for the metric (ISO-8601 format)." + }, + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "unit": { + "$ref": "#/definitions/UnitType", + "description": "The unit of the metric." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + }, + "metricValues": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MetricValue" + }, + "description": "The metric values for the specified time window and timestep." + } + }, + "description": "Metric data" + }, + "MetricName": { + "properties": { + "value": { + "readOnly": true, + "type": "string", + "description": "The name of the metric." + }, + "localizedValue": { + "readOnly": true, + "type": "string", + "description": "The friendly name of the metric." + } + }, + "description": "A metric name." + }, + "MetricValue": { + "properties": { + "_count": { + "readOnly": true, + "type": "number", + "format": "int32", + "description": "The number of values for the metric." + }, + "average": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The average value of the metric." + }, + "maximum": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The max value of the metric." + }, + "minimum": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The min value of the metric." + }, + "timestamp": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The metric timestamp (ISO-8601 format)." + }, + "total": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The total value of the metric." + } + }, + "description": "Represents metrics values." + }, + "PercentileMetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PercentileMetric" + }, + "description": "The list of percentile metrics for the account." + } + }, + "description": "The response to a list percentile metrics request." + }, + "PercentileMetric": { + "properties": { + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The start time for the metric (ISO-8601 format)." + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The end time for the metric (ISO-8601 format)." + }, + "timeGrain": { + "readOnly": true, + "type": "string", + "description": "The time grain to be used to summarize the metric values." + }, + "unit": { + "$ref": "#/definitions/UnitType", + "description": "The unit of the metric." + }, + "name": { + "readOnly": true, + "$ref": "#/definitions/MetricName", + "description": "The name information for the metric." + }, + "metricValues": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PercentileMetricValue" + }, + "description": "The percentile metric values for the specified time window and timestep." + } + }, + "description": "Percentile Metric data" + }, + "PercentileMetricValue": { + "allOf": [ + { + "$ref": "#/definitions/MetricValue" + } + ], + "properties": { + "P10": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 10th percentile value for the metric." + }, + "P25": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 25th percentile value for the metric." + }, + "P50": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 50th percentile value for the metric." + }, + "P75": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 75th percentile value for the metric." + }, + "P90": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 90th percentile value for the metric." + }, + "P95": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 95th percentile value for the metric." + }, + "P99": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "The 99th percentile value for the metric." + } + }, + "description": "Represents percentile metrics values." + }, + "PartitionMetricListResult": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PartitionMetric" + }, + "description": "The list of partition-level metrics for the account." + } + }, + "description": "The response to a list partition metrics request." + }, + "PartitionMetric": { + "allOf": [ + { + "$ref": "#/definitions/Metric" + } + ], + "properties": { + "partitionId": { + "readOnly": true, + "type": "string", + "description": "The partition id (GUID identifier) of the metric values." + }, + "partitionKeyRangeId": { + "readOnly": true, + "type": "string", + "description": "The partition key range id (integer identifier) of the metric values." + } + }, + "description": "The metric values for a single partition." + }, + "UnitType": { + "type": "string", + "readOnly": true, + "description": "The unit of the metric.", + "enum": [ + "Count", + "Bytes", + "Seconds", + "Percent", + "CountPerSecond", + "BytesPerSecond", + "Milliseconds" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "UnitType" + } + }, + "ConnectorOffer": { + "description": "The cassandra connector offer type for the Cosmos DB C* database account.", + "type": "string", + "enum": [ + "Small" + ], + "x-ms-enum": { + "name": "ConnectorOffer", + "modelAsString": true + } + }, + "PublicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "PublicNetworkAccess" + } + }, + "ApiProperties": { + "type": "object", + "properties": { + "serverVersion": { + "type": "string", + "enum": [ + "3.2", + "3.6", + "4.0" + ], + "description": "Describes the ServerVersion of an a MongoDB account.", + "x-ms-enum": { + "modelAsString": true, + "name": "ServerVersion" + } + } + } + }, + "AnalyticalStorageConfiguration": { + "type": "object", + "description": "Analytical storage specific properties.", + "properties": { + "schemaType": { + "type": "string", + "$ref": "#/definitions/AnalyticalStorageSchemaType" + } + } + }, + "AnalyticalStorageSchemaType": { + "type": "string", + "description": "Describes the types of schema for analytical storage.", + "enum": [ + "WellDefined", + "FullFidelity" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "AnalyticalStorageSchemaType" + } + }, + "CreateMode": { + "description": "Enum to indicate the mode of account creation.", + "type": "string", + "default": "Default", + "enum": [ + "Default", + "Restore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + } + }, + "RestoreParameters": { + "type": "object", + "description": "Parameters to indicate the information about the restore.", + "x-ms-mutability": [ + "read", + "create" + ], + "properties": { + "restoreMode": { + "type": "string", + "enum": [ + "PointInTime" + ], + "description": "Describes the mode of the restore.", + "x-ms-enum": { + "modelAsString": true, + "name": "RestoreMode" + } + }, + "restoreSource": { + "type": "string", + "description": "The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}" + }, + "restoreTimestampInUtc": { + "type": "string", + "format": "date-time", + "description": "Time to which the account has to be restored (ISO-8601 format)." + }, + "databasesToRestore": { + "type": "array", + "description": "List of specific databases available for restore.", + "items": { + "$ref": "#/definitions/DatabaseRestoreResource" + } + } + } + }, + "DatabaseRestoreResource": { + "type": "object", + "description": "Specific Databases to restore.", + "properties": { + "databaseName": { + "type": "string", + "description": "The name of the database available for restore." + }, + "collectionNames": { + "type": "array", + "description": "The names of the collections available for restore.", + "items": { + "$ref": "#/definitions/CollectionName" + } + } + } + }, + "CollectionName": { + "type": "string", + "description": "The name of the collection." + }, + "BackupPolicy": { + "type": "object", + "description": "The object representing the policy for taking backups on an account.", + "discriminator": "type", + "properties": { + "type": { + "description": "Describes the mode of backups.", + "type": "string", + "$ref": "#/definitions/BackupPolicyType" + }, + "migrationState": { + "description": "The object representing the state of the migration between the backup policies.", + "type": "object", + "$ref": "#/definitions/BackupPolicyMigrationState" + } + }, + "required": [ + "type" + ] + }, + "BackupPolicyType": { + "description": "Describes the mode of backups.", + "type": "string", + "enum": [ + "Periodic", + "Continuous" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "BackupPolicyType" + } + }, + "BackupPolicyMigrationState": { + "type": "object", + "description": "The object representing the state of the migration between the backup policies.", + "properties": { + "status": { + "description": "Describes the status of migration between backup policy types.", + "type": "string", + "$ref": "#/definitions/BackupPolicyMigrationStatus" + }, + "targetType": { + "description": "Describes the target backup policy type of the backup policy migration.", + "type": "string", + "$ref": "#/definitions/BackupPolicyType" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Time at which the backup policy migration started (ISO-8601 format)." + } + } + }, + "BackupPolicyMigrationStatus": { + "description": "Describes the status of migration between backup policy types.", + "type": "string", + "enum": [ + "Invalid", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "BackupPolicyMigrationStatus" + } + }, + "PeriodicModeBackupPolicy": { + "description": "The object representing periodic mode backup policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BackupPolicy" + } + ], + "properties": { + "periodicModeProperties": { + "type": "object", + "description": "Configuration values for periodic mode backup", + "$ref": "#/definitions/PeriodicModeProperties" + } + }, + "x-ms-discriminator-value": "Periodic" + }, + "ContinuousModeBackupPolicy": { + "description": "The object representing continuous mode backup policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/BackupPolicy" + } + ], + "x-ms-discriminator-value": "Continuous" + }, + "PeriodicModeProperties": { + "type": "object", + "description": "Configuration values for periodic mode backup", + "properties": { + "backupIntervalInMinutes": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "An integer representing the interval in minutes between two backups" + }, + "backupRetentionIntervalInHours": { + "type": "integer", + "format": "int32", + "minimum": 0, + "description": "An integer representing the time (in hours) that each backup is retained" + }, + "backupStorageRedundancy": { + "description": "Enum to indicate type of backup residency", + "type": "string", + "$ref": "#/definitions/BackupStorageRedundancy" + } + } + }, + "LocationListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/LocationGetResult" + }, + "description": "List of Cosmos DB locations and their properties." + } + }, + "description": "The List operation response, that contains Cosmos DB locations and their properties." + }, + "LocationGetResult": { + "description": "Cosmos DB location get result", + "type": "object", + "properties": { + "properties": { + "type": "object", + "description": "Cosmos DB location metadata", + "$ref": "#/definitions/LocationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMProxyResource" + } + ] + }, + "LocationProperties": { + "description": "Cosmos DB location metadata", + "type": "object", + "properties": { + "supportsAvailabilityZone": { + "type": "boolean", + "readOnly": true, + "description": "Flag indicating whether the location supports availability zones or not." + }, + "isResidencyRestricted": { + "type": "boolean", + "readOnly": true, + "description": "Flag indicating whether the location is residency sensitive." + }, + "backupStorageRedundancies": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/BackupStorageRedundancy" + }, + "description": "The properties of available backup storage redundancies." + } + } + }, + "BackupStorageRedundancy": { + "description": "Enum to indicate type of backup storage redundancy.", + "type": "string", + "enum": [ + "Geo", + "Local", + "Zone" + ], + "x-ms-enum": { + "name": "BackupStorageRedundancy", + "modelAsString": true + } + } + }, + "parameters": { + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of an Azure resource group." + }, + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "filterParameter": { + "name": "$filter", + "in": "query", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq." + }, + "usageFilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)." + }, + "databaseRidParameter": { + "name": "databaseRid", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database rid." + }, + "collectionRidParameter": { + "name": "collectionRid", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB collection rid." + }, + "databaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database name." + }, + "clientEncryptionKeyNameParameter": { + "name": "clientEncryptionKeyName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB ClientEncryptionKey name." + }, + "containerNameParameter": { + "name": "containerName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB container name." + }, + "storedProcedureNameParameter": { + "name": "storedProcedureName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB storedProcedure name." + }, + "userDefinedFunctionNameParameter": { + "name": "userDefinedFunctionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB userDefinedFunction name." + }, + "triggerNameParameter": { + "name": "triggerName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB trigger name." + }, + "tableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB table name." + }, + "collectionNameParameter": { + "name": "collectionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB collection name." + }, + "keyspaceNameParameter": { + "name": "keyspaceName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB keyspace name." + }, + "graphNameParameter": { + "name": "graphName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB graph name." + }, + "regionParameter": { + "name": "region", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + }, + "sourceRegionParameter": { + "name": "sourceRegion", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized." + }, + "targetRegionParameter": { + "name": "targetRegion", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized." + }, + "partitionKeyRangeIdParameter": { + "name": "partitionKeyRangeId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Partition Key Range Id for which to get data." + }, + "locationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json new file mode 100644 index 000000000000..174d77ab633a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "createUpdateCassandraKeyspaceParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json new file mode 100644 index 000000000000..86a1b754efee --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json new file mode 100644 index 000000000000..e677bac5c4ea --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json new file mode 100644 index 000000000000..3a8a874d7b9e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", + "name": "keyspaceName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "keyspaceName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json new file mode 100644 index 000000000000..64de97696d21 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json new file mode 100644 index 000000000000..bbf76b915b57 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json new file mode 100644 index 000000000000..c4d216a35b1d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json new file mode 100644 index 000000000000..f4a40ede7d79 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json new file mode 100644 index 000000000000..2b7232be5462 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName", + "createUpdateCassandraTableParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json new file mode 100644 index 000000000000..04d931def8aa --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json new file mode 100644 index 000000000000..9e5a0129d9a6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json new file mode 100644 index 000000000000..b69ccf548229 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "keyspaceName": "keyspaceName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "defaultTtl": 100, + "schema": { + "columns": [ + { + "name": "columnA", + "type": "Ascii" + } + ], + "partitionKeys": [ + { + "name": "columnA" + } + ], + "clusterKeys": [ + { + "name": "columnA", + "orderBy": "Asc" + } + ] + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json new file mode 100644 index 000000000000..017c480fd6a7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json new file mode 100644 index 000000000000..8e83a3b88e36 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json new file mode 100644 index 000000000000..da5c601cdef5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json new file mode 100644 index 000000000000..1dd6bc5b3958 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyspaceName": "keyspaceName", + "tableName": "tableName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json new file mode 100644 index 000000000000..563235f61d3a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "accountName": "accountName", + "databaseName": "databaseName", + "clientEncryptionKeyName": "cekName", + "createUpdateClientEncryptionKeyParameters": { + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek", + "keyWrapMetadata": { + "name": "customerManagedKey", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName", + "name": "cekName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek", + "keyWrapMetadata": { + "name": "customerManagedKey", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL" + }, + "_rid": "tNc4AAAAAAAQkjzWAgAAAA==", + "_ts": 1626425552, + "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json new file mode 100644 index 000000000000..43b158de8a0e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "accountName": "accountName", + "databaseName": "databaseName", + "clientEncryptionKeyName": "cekName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName", + "name": "cekName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek", + "keyWrapMetadata": { + "name": "customerManagedKey", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL" + }, + "_rid": "tNc4AAAAAAAQkjzWAgAAAA==", + "_ts": 1626425552, + "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json new file mode 100644 index 000000000000..376b857f172f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "subId", + "resourceGroupName": "rgName", + "accountName": "accountName", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName1", + "name": "cekName1", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek1", + "keyWrapMetadata": { + "name": "customerManagedKey1", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL for customerManagedKey1" + }, + "_rid": "nAMyAAAAAADPw1kKAgAAAA==", + "_ts": 1626425552, + "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" + } + } + }, + { + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName2", + "name": "cekName2", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek2", + "keyWrapMetadata": { + "name": "customerManagedKey2", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL for customerManagedKey2" + }, + "_rid": "nAMyAAAAAAAWWfxHAgAAAA==", + "_ts": 1626425631, + "_etag": "\"00000000-0000-0000-7a21-7788a38c01d7\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json new file mode 100644 index 000000000000..85116a4c05c2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-09-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json new file mode 100644 index 000000000000..4693c95b8c66 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json new file mode 100644 index 000000000000..a191ce951f88 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json new file mode 100644 index 000000000000..3b6531ba65ba --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json new file mode 100644 index 000000000000..48eb598fbfc1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Partition Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json new file mode 100644 index 000000000000..222c4ecf6de6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json new file mode 100644 index 000000000000..e6191e852086 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "accountName": "ddb1", + "api-version": "2021-09-15" + }, + "responses": { + "200": {}, + "404": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json new file mode 100644 index 000000000000..614228e28649 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -0,0 +1,216 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "tags": {}, + "kind": "MongoDB", + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "databaseAccountOfferType": "Standard", + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "publicNetworkAccess": "Enabled", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + }, + { + "failoverPriority": 1, + "locationName": "eastus", + "isZoneRedundant": false + } + ], + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" + } + }, + "cors": [ + { + "allowedOrigins": "https://test" + } + ], + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "MongoDB", + "tags": {}, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + }, + "properties": { + "provisioningState": "Initializing", + "isVirtualNetworkFilterEnabled": true, + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "provisioningState": "Initializing", + "failoverPriority": 1, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "provisioningState": "Initializing", + "failoverPriority": 1, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + }, + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 1 + } + ], + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + } + ], + "publicNetworkAccess": "Enabled", + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "createMode": "Default", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" + } + }, + "cors": [ + { + "allowedOrigins": "https://test" + } + ], + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json new file mode 100644 index 000000000000..a80e6ec998b1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "properties": { + "databaseAccountOfferType": "Standard", + "createMode": "Default", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Initializing", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + } + ], + "cors": [], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": false, + "analyticalStorageConfiguration": null, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [], + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" + } + } + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json new file mode 100644 index 000000000000..f7667487a0c8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json new file mode 100644 index 000000000000..8ced70e0e786 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "accountName": "ddb1-failover", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "failoverParameters": { + "failoverPolicies": [ + { + "locationName": "eastus", + "failoverPriority": 0 + }, + { + "locationName": "westus", + "failoverPriority": 1 + } + ] + } + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json new file mode 100644 index 000000000000..9142e948af5c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "isVirtualNetworkFilterEnabled": false, + "virtualNetworkRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "defaultIdentity": "FirstPartyIdentity", + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 8, + "backupStorageRedundancy": "Geo" + }, + "migrationState": { + "status": "InProgress", + "targetType": "Continuous", + "startTime": "2021-06-09T21:07:16Z" + } + }, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json new file mode 100644 index 000000000000..f8c818d127d5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json new file mode 100644 index 000000000000..9e82e81edf7b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json new file mode 100644 index 000000000000..2433a5c7676b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json new file mode 100644 index 000000000000..3fc364bc2f89 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json @@ -0,0 +1,116 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Default", + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" + } + }, + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json new file mode 100644 index 000000000000..ec00e9c5c5e8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "resourceGroupName": "rg1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "cors": [], + "enableFreeTier": false, + "defaultIdentity": "FirstPartyIdentity", + "networkAclBypass": "None", + "networkAclBypassResourceIds": [] + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json new file mode 100644 index 000000000000..d7d584ac1f78 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json new file mode 100644 index 000000000000..47578f523f5d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "accountName": "mongo-ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "connectionStrings": [ + { + "connectionString": "connection-string", + "description": "Name of the connection string" + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json new file mode 100644 index 000000000000..cdb931afb789 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primaryMasterKey": "primaryMasterKey", + "secondaryMasterKey": "secondaryMasterKey", + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json new file mode 100644 index 000000000000..e4580dc468d0 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json new file mode 100644 index 000000000000..1e4afdf36328 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "region": "North Europe", + "regionParameterForOffline": [ + { + "region": "North Europe" + } + ] + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json new file mode 100644 index 000000000000..9288fb4f8746 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "region": "North Europe", + "regionParameterForOnline": [ + { + "region": "North Europe" + } + ] + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json new file mode 100644 index 000000000000..e9b74e2f4edb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json @@ -0,0 +1,179 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "updateParameters": { + "location": "westus", + "tags": { + "dept": "finance" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} + } + }, + "properties": { + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Local" + } + }, + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": { + "dept": "finance" + }, + "identity": { + "type": "SystemAssigned,UserAssigned", + "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", + "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", + "userAssignedIdentities": { + "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", + "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "documentEndpoint": "https://ddb1.documents.azure.com:443/", + "databaseAccountOfferType": "Standard", + "ipRules": [ + { + "ipAddressOrRange": "23.43.230.120" + }, + { + "ipAddressOrRange": "110.12.240.0/12" + } + ], + "isVirtualNetworkFilterEnabled": true, + "disableKeyBasedMetadataWriteAccess": false, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "writeLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "readLocations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "locations": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", + "provisioningState": "Succeeded", + "failoverPriority": 0 + } + ], + "failoverPolicies": [ + { + "id": "ddb1-eastus", + "locationName": "East US", + "failoverPriority": 0 + } + ], + "virtualNetworkRules": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "ignoreMissingVNetServiceEndpoint": false + } + ], + "privateEndpointConnections": [ + { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None" + } + } + } + ], + "cors": [], + "defaultIdentity": "FirstPartyIdentity", + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": true, + "analyticalStorageConfiguration": { + "schemaType": "WellDefined" + }, + "backupPolicy": { + "type": "Periodic", + "periodicModeProperties": { + "backupIntervalInMinutes": 240, + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Local" + } + }, + "networkAclBypass": "AzureServices", + "networkAclBypassResourceIds": [ + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json new file mode 100644 index 000000000000..93a94b0ce3a5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "keyToRegenerate": { + "keyKind": "primary" + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json new file mode 100644 index 000000000000..62fd19f34947 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json new file mode 100644 index 000000000000..c0cf339a0b59 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "subscriptionId": "subid", + "api-version": "2021-09-15", + "databaseRid": "databaseRid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "metricAvailabilities": [ + { + "timeGrain": "PT5M", + "retention": "P2D" + }, + { + "timeGrain": "PT1H", + "retention": "P14D" + }, + { + "timeGrain": "P1D", + "retention": "P60D" + } + ], + "primaryAggregationType": "Total", + "unit": "Count", + "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json new file mode 100644 index 000000000000..5f241390ddd5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "rid", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json new file mode 100644 index 000000000000..4b4496f0ef29 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "databaseRid": "databaseRid", + "subscriptionId": "subid", + "$filter": "$filter=name.value eq 'Storage'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "unit": "Bytes", + "quotaPeriod": "P1D", + "limit": 10737418240, + "currentValue": 0, + "name": { + "value": "Storage", + "localizedValue": "Storage" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json new file mode 100644 index 000000000000..d30634855a94 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateGremlinDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json new file mode 100644 index 000000000000..16b152a6c16f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json new file mode 100644 index 000000000000..4e65ecf8cec2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json new file mode 100644 index 000000000000..932545fb8436 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..684ccddd4867 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..3c323e9b122b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json new file mode 100644 index 000000000000..ebd4bcdfce9d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..10dcce2c374a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json new file mode 100644 index 000000000000..853700f96be9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName", + "createUpdateGremlinGraphParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName", + "name": "graphName", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/gremlinGraphs", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json new file mode 100644 index 000000000000..5535bf2acac6 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json new file mode 100644 index 000000000000..7ea69c3668f5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "id": "graphName", + "name": "graphName", + "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", + "properties": { + "resource": { + "id": "graphName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json new file mode 100644 index 000000000000..992719204f68 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "testgrf", + "name": "testgrf", + "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", + "properties": { + "resource": { + "id": "testgrf", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json new file mode 100644 index 000000000000..58b4487ab5fa --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json new file mode 100644 index 000000000000..398c8ee6d7d5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json new file mode 100644 index 000000000000..47aca48db823 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json new file mode 100644 index 000000000000..35a14c65a941 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "graphName": "graphName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json new file mode 100644 index 000000000000..bcdba9fdd794 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "westus" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", + "type": "Microsoft.DocumentDB/locations", + "name": "westus", + "properties": { + "supportsAvailabilityZone": true, + "isResidencyRestricted": true, + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json new file mode 100644 index 000000000000..b5e69ba1ad40 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", + "type": "Microsoft.DocumentDB/locations", + "name": "westus", + "properties": { + "supportsAvailabilityZone": false, + "isResidencyRestricted": false, + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/centralus", + "type": "Microsoft.DocumentDB/locations", + "name": "centralus", + "properties": { + "supportsAvailabilityZone": true, + "isResidencyRestricted": false, + "backupStorageRedundancies": [ + "Zone", + "Geo" + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json new file mode 100644 index 000000000000..ef97b7ef9429 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "collectionName": "collectionName", + "location": { + "location": "North Europe" + } + }, + "responses": { + "200": { + "body": { + "continuousBackupInformation": { + "latestRestorableTimestamp": "2021-02-05T02:40:50Z" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json new file mode 100644 index 000000000000..1ed36da8e33d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName", + "createUpdateMongoDBCollectionParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "collectionName", + "indexes": [ + { + "key": { + "keys": [ + "_ts" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + }, + { + "key": { + "keys": [ + "_id" + ] + } + } + ], + "shardKey": { + "testKey": "Hash" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "collectionName", + "indexes": [ + { + "key": { + "keys": [ + "_ts" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + }, + { + "key": { + "keys": [ + "_id" + ] + } + } + ], + "shardKey": { + "testKey": "Hash" + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json new file mode 100644 index 000000000000..7b42aa003b20 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json new file mode 100644 index 000000000000..e839a90a1fe5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testcoll", + "indexes": [ + { + "key": { + "keys": [ + "testKey" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + } + ], + "shardKey": { + "testKey": "Hash" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json new file mode 100644 index 000000000000..41f3fcef9e0c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", + "name": "collectionName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testcoll", + "indexes": [ + { + "key": { + "keys": [ + "testKey" + ] + }, + "options": { + "expireAfterSeconds": 100, + "unique": true + } + } + ], + "shardKey": { + "testKey": "Hash" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json new file mode 100644 index 000000000000..b4c0f1e0bf16 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json new file mode 100644 index 000000000000..b68a843a7844 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json new file mode 100644 index 000000000000..bd741999b213 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json new file mode 100644 index 000000000000..56c7c0394192 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "collectionName": "collectionName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json new file mode 100644 index 000000000000..4af546f1a560 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateMongoDBDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "updatedDatabaseName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json new file mode 100644 index 000000000000..16b152a6c16f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json new file mode 100644 index 000000000000..c210be4fdc75 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json new file mode 100644 index 000000000000..0ea694a51d3f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..684ccddd4867 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..3c323e9b122b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json new file mode 100644 index 000000000000..e1a6c92d8f05 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..651007f34514 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json new file mode 100644 index 000000000000..c1596e03062c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default", + "notebookCreateUpdateParameters": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json new file mode 100644 index 000000000000..95cf3de3abdb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "notebookWorkspaceName": "default" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json new file mode 100644 index 000000000000..5d2f05cf0408 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json new file mode 100644 index 000000000000..e7b639168746 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", + "properties": { + "notebookServerEndpoint": "endpoint", + "status": "Online" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json new file mode 100644 index 000000000000..4cfa15cc8828 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": { + "body": { + "authToken": "auth-token", + "notebookServerEndpoint": "notebook endpoint" + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json new file mode 100644 index 000000000000..4a799f7f069d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json new file mode 100644 index 000000000000..4a799f7f069d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "notebookWorkspaceName": "default" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json new file mode 100644 index 000000000000..d8963137794c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "operationName", + "display": { + "Provider": "providerName", + "Resource": "resourceName", + "Operation": "operationName", + "Description": "description" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json new file mode 100644 index 000000000000..9a23d8e44c81 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "partitionKeyRangeId": "0", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json new file mode 100644 index 000000000000..b3d5b79ba900 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "partitionKeyRangeId": "0", + "region": "West US", + "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT1M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T23:58:55.2780000Z", + "unit": "Count", + "partitionId": "00000000-0000-0000-0000-000000000000", + "partitionKeyRangeId": "0", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:54:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:55:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:56:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:57:55.2780000Z", + "maximum": 5 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "maximum": 5 + } + ], + "name": { + "value": "Max RUs Per Second", + "localizedValue": "Max RUs Per Second" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json new file mode 100644 index 000000000000..3db32b26ea1e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + }, + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-West US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json new file mode 100644 index 000000000000..5a8da3121829 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "sourceRegion": "West Central US", + "targetRegion": "East US", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json new file mode 100644 index 000000000000..a0acdfcd5f6e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "targetRegion": "East US", + "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" + } + }, + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Milliseconds", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "P10": 1.11, + "P25": 2.5, + "P50": 4.34, + "P75": 5.2, + "P90": 6.77, + "P95": 7.1, + "P99": 8.3 + } + ], + "name": { + "value": "Probabilistic Bounded Staleness-S-West US-T-East US", + "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..7d2e4114c2e7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15", + "privateEndpointConnectionName": "privateEndpointConnectionName" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..6ca58ecba75b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15", + "privateEndpointConnectionName": "privateEndpointConnectionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json new file mode 100644 index 000000000000..a6600f63c726 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName2", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..cff319a4cfd4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15", + "privateEndpointConnectionName": "privateEndpointConnectionName", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", + "name": "privateEndpointConnectionName", + "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupId": "Sql", + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json new file mode 100644 index 000000000000..1bd0ac7d304c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15", + "groupName": "sql" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", + "name": "sql", + "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", + "properties": { + "groupId": "sql", + "requiredMembers": [ + "ddb1", + "ddb1-westus" + ], + "requiredZoneNames": [ + "privatelink.documents.azure.net" + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json new file mode 100644 index 000000000000..9af9dab55429 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "rg1", + "accountName": "ddb1", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", + "name": "sql", + "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", + "properties": { + "groupId": "sql", + "requiredMembers": [ + "ddb1", + "ddb1-westus" + ], + "requiredZoneNames": [ + "privatelink.documents.azure.net" + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json new file mode 100644 index 000000000000..566a6a83c015 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseRid": "databaseRid", + "collectionRid": "collectionRid", + "region": "North Europe", + "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "timeGrain": "PT5M", + "startTime": "2017-11-19T23:53:55.2780000Z", + "endTime": "2017-11-20T00:13:55.2780000Z", + "unit": "Count", + "metricValues": [ + { + "timestamp": "2017-11-19T23:53:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-19T23:58:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:03:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + }, + { + "timestamp": "2017-11-20T00:08:55.2780000Z", + "total": 0, + "_count": 0, + "average": 0 + } + ], + "name": { + "value": "Total Requests", + "localizedValue": "Total Requests" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json new file mode 100644 index 000000000000..30ad7aba1efd --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "location": "West US", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json new file mode 100644 index 000000000000..355e5f03b867 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "location": "West US" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb2", + "creationTime": "2020-05-01T08:05:18Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json new file mode 100644 index 000000000000..fd05181c3985 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", + "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "location": "West US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb1", + "creationTime": "2020-04-11T21:56:15Z", + "deletionTime": "2021-03-12T22:05:09Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", + "location": "East US", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", + "properties": { + "accountName": "ddb2", + "creationTime": "2020-05-01T08:05:18Z", + "apiType": "Sql", + "restorableLocations": [ + { + "locationName": "South Central US", + "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", + "creationTime": "2020-10-30T21:13:10Z", + "deletionTime": "2020-10-30T21:13:35Z" + }, + { + "locationName": "West US", + "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", + "creationTime": "2020-10-30T21:13:10Z" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json new file mode 100644 index 000000000000..ba8cd4a03f57 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "location": "WestUS", + "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", + "restorableMongodbDatabaseRid": "PD5DALigDgw=" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections", + "name": "79609a98-3394-41f8-911f-cfab0c075c86", + "properties": { + "resource": { + "_rid": "zAyAPQAAAA==", + "eventTimestamp": "2020-10-13T04:56:42Z", + "ownerId": "Collection1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Create" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json new file mode 100644 index 000000000000..268d955d93d2 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", + "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", + "properties": { + "resource": { + "_rid": "DLB14gAAAA==", + "eventTimestamp": "2020-09-02T19:45:03Z", + "ownerId": "Database1", + "ownerResourceId": "PD5DALigDgw=", + "operationType": "Create" + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", + "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "properties": { + "resource": { + "_rid": "ESXNLAAAAA==", + "eventTimestamp": "2020-09-02T19:53:42Z", + "ownerId": "Database1", + "ownerResourceId": "PD5DALigDgw=", + "operationType": "Delete" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json new file mode 100644 index 000000000000..164c97b07d65 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "restoreLocation": "WestUS", + "restoreTimestampInUtc": "10/13/2020 4:56" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "databaseName": "Database1", + "collectionNames": [ + "Collection1" + ] + }, + { + "databaseName": "Database2", + "collectionNames": [ + "Collection1", + "Collection2" + ] + }, + { + "databaseName": "Database3", + "collectionNames": [] + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json new file mode 100644 index 000000000000..ad1bc43583f4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "location": "WestUS", + "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", + "restorableSqlDatabaseRid": "3fu-hg==" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/79609a98-3394-41f8-911f-cfab0c075c86", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", + "name": "79609a98-3394-41f8-911f-cfab0c075c86", + "properties": { + "resource": { + "_rid": "zAyAPQAAAA==", + "eventTimestamp": "2020-10-13T04:56:42Z", + "ownerId": "Container1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Create", + "container": { + "id": "Container1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*" + }, + { + "path": "/\"_ts\"/?" + } + ], + "excludedPaths": [ + { + "path": "/\"_etag\"/?" + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/_ts", + "conflictResolutionProcedure": "" + }, + "_rid": "V18LoLrv-qA=", + "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", + "_etag": "\"00003e00-0000-0700-0000-5f85338a0000\"" + } + } + } + }, + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/e85298a1-c631-4726-825e-a7ca092e9098", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", + "name": "e85298a1-c631-4726-825e-a7ca092e9098", + "properties": { + "resource": { + "_rid": "PrArcgAAAA==", + "eventTimestamp": "2020-10-13T05:03:27Z", + "ownerId": "Container1", + "ownerResourceId": "V18LoLrv-qA=", + "operationType": "Replace", + "container": { + "id": "Container1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*" + }, + { + "path": "/\"_ts\"/?" + } + ], + "excludedPaths": [ + { + "path": "/\"_etag\"/?" + } + ] + }, + "defaultTtl": 12345, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/_ts", + "conflictResolutionProcedure": "" + }, + "_rid": "V18LoLrv-qA=", + "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", + "_etag": "\"00004400-0000-0700-0000-5f85351f0000\"" + } + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json new file mode 100644 index 000000000000..bc14a8b29664 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableSqlDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", + "properties": { + "resource": { + "_rid": "DLB14gAAAA==", + "eventTimestamp": "2020-09-02T19:45:03Z", + "ownerId": "Database1", + "ownerResourceId": "3fu-hg==", + "operationType": "Create", + "database": { + "id": "Database1", + "_rid": "3fu-hg==", + "_self": "dbs/3fu-hg==/", + "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", + "properties": { + "resource": { + "_rid": "ESXNLAAAAA==", + "eventTimestamp": "2020-09-02T19:53:42Z", + "ownerId": "Database1", + "ownerResourceId": "3fu-hg==", + "database": { + "id": "Database1", + "_rid": "3fu-hg==", + "_self": "dbs/3fu-hg==/", + "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", + "_colls": "colls/", + "_users": "users/", + "_ts": 1599075903 + }, + "operationType": "Delete" + } + } + }, + { + "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/2c07991b-9c7c-4e85-be68-b18c1f2ff326", + "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", + "name": "2c07991b-9c7c-4e85-be68-b18c1f2ff326", + "properties": { + "resource": { + "_rid": "aXFqUQAAAA==", + "eventTimestamp": "2020-09-02T19:53:15Z", + "ownerId": "Database2", + "ownerResourceId": "0SziSg==", + "database": { + "id": "Database2", + "_rid": "0SziSg==", + "_self": "dbs/0SziSg==/", + "_etag": "\"0000ca0a-0000-0700-0000-5f4ff82b0000\"", + "_colls": "colls/", + "_users": "users/" + }, + "operationType": "Create" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json new file mode 100644 index 000000000000..07bb48fce2d5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", + "location": "WestUS", + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "restoreLocation": "WestUS", + "restoreTimestampInUtc": "10/13/2020 4:56" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "databaseName": "Database1", + "collectionNames": [ + "Container1" + ] + }, + { + "databaseName": "Database2", + "collectionNames": [ + "Container1", + "Container2" + ] + }, + { + "databaseName": "Database3", + "collectionNames": [] + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json new file mode 100644 index 000000000000..aad35b3e274c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "createUpdateParameters": { + "location": "westus", + "tags": {}, + "kind": "GlobalDocumentDB", + "properties": { + "databaseAccountOfferType": "Standard", + "locations": [ + { + "failoverPriority": 0, + "locationName": "southcentralus", + "isZoneRedundant": false + } + ], + "createMode": "Restore", + "restoreParameters": { + "restoreMode": "PointInTime", + "restoreSource": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", + "restoreTimestampInUtc": "2021-03-11T22:05:09Z", + "databasesToRestore": [ + { + "databaseName": "db1", + "collectionNames": [ + "collection1", + "collection2" + ] + }, + { + "databaseName": "db2", + "collectionNames": [ + "collection3", + "collection4" + ] + } + ] + }, + "backupPolicy": { + "type": "Continuous" + }, + "consistencyPolicy": { + "defaultConsistencyLevel": "BoundedStaleness", + "maxIntervalInSeconds": 10, + "maxStalenessPrefix": 200 + }, + "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", + "enableFreeTier": false, + "apiProperties": { + "serverVersion": "3.2" + }, + "enableAnalyticalStorage": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", + "name": "ddb1", + "location": "West US", + "type": "Microsoft.DocumentDB/databaseAccounts", + "kind": "GlobalDocumentDB", + "tags": {}, + "properties": { + "provisioningState": "Initializing", + "ipRules": [], + "databaseAccountOfferType": "Standard", + "disableKeyBasedMetadataWriteAccess": false, + "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", + "createMode": "Restore", + "consistencyPolicy": { + "defaultConsistencyLevel": "Session", + "maxIntervalInSeconds": 5, + "maxStalenessPrefix": 100 + }, + "writeLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "readLocations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "locations": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "provisioningState": "Initializing", + "failoverPriority": 0, + "isZoneRedundant": false + } + ], + "failoverPolicies": [ + { + "id": "ddb1-southcentralus", + "locationName": "South Central US", + "failoverPriority": 0 + } + ], + "enableFreeTier": false, + "apiProperties": {}, + "enableAnalyticalStorage": false + }, + "systemData": { + "createdAt": "2021-03-12T22:05:09Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json new file mode 100644 index 000000000000..caf40baa38d8 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "location": { + "location": "North Europe" + } + }, + "responses": { + "200": { + "body": { + "continuousBackupInformation": { + "latestRestorableTimestamp": "2021-02-05T02:40:50Z" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json new file mode 100644 index 000000000000..6a8c6f4596ec --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "createUpdateSqlContainerParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + } + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json new file mode 100644 index 000000000000..1718430eebf1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json new file mode 100644 index 000000000000..085a6dee7eb9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "containerName", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + }, + "options": { + "throughput": 400 + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json new file mode 100644 index 000000000000..e110fca6e342 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json @@ -0,0 +1,192 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", + "name": "containerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber" + ], + "kind": "Hash" + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName1", + "name": "containerName1", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn1", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/AccountNumber", + "/AccountLocation" + ], + "kind": "MultiHash", + "version": 2 + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDiw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName2", + "name": "containerName2", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "testctn2", + "indexingPolicy": { + "indexingMode": "consistent", + "automatic": true, + "includedPaths": [ + { + "path": "/*", + "indexes": [ + { + "kind": "Range", + "dataType": "String", + "precision": -1 + }, + { + "kind": "Range", + "dataType": "Number", + "precision": -1 + } + ] + } + ], + "excludedPaths": [] + }, + "partitionKey": { + "paths": [ + "/_partitionKey" + ], + "kind": "Hash", + "version": 2, + "systemKey": true + }, + "defaultTtl": 100, + "uniqueKeyPolicy": { + "uniqueKeys": [ + { + "paths": [ + "/testPath" + ] + } + ] + }, + "conflictResolutionPolicy": { + "mode": "LastWriterWins", + "conflictResolutionPath": "/path" + }, + "_rid": "PD5DALigDhw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json new file mode 100644 index 000000000000..76d6289bc33f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json new file mode 100644 index 000000000000..0a40503089c9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json new file mode 100644 index 000000000000..a62019a4c776 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json new file mode 100644 index 000000000000..4f5bc429bf1b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json new file mode 100644 index 000000000000..cfbe03239e5e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "createUpdateSqlDatabaseParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json new file mode 100644 index 000000000000..16b152a6c16f --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json new file mode 100644 index 000000000000..b082584a9099 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json new file mode 100644 index 000000000000..8380adad4a26 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", + "name": "databaseName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "databaseName", + "_rid": "CqNBAA==", + "_ts": 1449602962, + "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", + "_colls": "colls/", + "_users": "users/" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json new file mode 100644 index 000000000000..684ccddd4867 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json new file mode 100644 index 000000000000..3c323e9b122b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json new file mode 100644 index 000000000000..d77caabfdefc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json new file mode 100644 index 000000000000..197f656fce98 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json new file mode 100644 index 000000000000..98a784bb9a04 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15", + "createUpdateSqlRoleAssignmentParameters": { + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json new file mode 100644 index 000000000000..1b79b01aa8dd --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json new file mode 100644 index 000000000000..890a11e4070b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "roleAssignmentId": "myRoleAssignmentId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json new file mode 100644 index 000000000000..6c05278b0cdb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", + "name": "myRoleAssignmentId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", + "properties": { + "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", + "principalId": "myPrincipalId" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json new file mode 100644 index 000000000000..29b03e6a8b8a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15", + "createUpdateSqlRoleDefinitionParameters": { + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ] + } + ] + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json new file mode 100644 index 000000000000..78da79507806 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json new file mode 100644 index 000000000000..c97d415d2ef4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "roleDefinitionId": "myRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json new file mode 100644 index 000000000000..c571ffe69b93 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "assignableScopes": [ + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", + "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" + ], + "permissions": [ + { + "dataActions": [ + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", + "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" + ], + "notDataActions": [] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json new file mode 100644 index 000000000000..7f51829a419a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName", + "createUpdateSqlStoredProcedureParameters": { + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "storedProcedureName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json new file mode 100644 index 000000000000..f963f965b8fc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json new file mode 100644 index 000000000000..d6c2883129d9 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "storedProcedureName": "storedProcedureName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "storedProcedureName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "storedProcedureName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json new file mode 100644 index 000000000000..af33b75ddbff --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json new file mode 100644 index 000000000000..000e5e92d89c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName", + "createUpdateSqlTriggerParameters": { + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "triggerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json new file mode 100644 index 000000000000..373cf9eab071 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json new file mode 100644 index 000000000000..5f3702e3eb63 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "triggerName": "triggerName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "triggerName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "triggerName", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json new file mode 100644 index 000000000000..e98718cc543d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "triggerType": "triggerType", + "triggerOperation": "triggerOperation", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json new file mode 100644 index 000000000000..e608546bb8d4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName", + "createUpdateSqlUserDefinedFunctionParameters": { + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "userDefinedFunctionName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json new file mode 100644 index 000000000000..6502b4e55d11 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json new file mode 100644 index 000000000000..4f78d3210454 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName", + "userDefinedFunctionName": "userDefinedFunctionName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "userDefinedFunctionName", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "userDefinedFunctionName", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json new file mode 100644 index 000000000000..816606273935 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "containerName": "containerName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", + "name": "testctn", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", + "properties": { + "resource": { + "id": "testctn", + "body": "body", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json new file mode 100644 index 000000000000..b13884da9689 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName", + "createUpdateTableParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName" + }, + "options": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "properties": { + "resource": { + "id": "tableName" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json new file mode 100644 index 000000000000..10fcd67e0288 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json new file mode 100644 index 000000000000..903bd252bab3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json new file mode 100644 index 000000000000..0a161805875c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-09-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", + "name": "tableName", + "type": "Microsoft.DocumentDB/databaseAccounts/tables", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "id": "tableName" + } + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json new file mode 100644 index 000000000000..92c0fe6a0abc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "autoscaleSettings": { + "maxThroughput": 4000 + }, + "minimumThroughput": "4000", + "offerReplacePending": "false", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json new file mode 100644 index 000000000000..48e15131b546 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json new file mode 100644 index 000000000000..f73a6286241a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json new file mode 100644 index 000000000000..4b8cff700813 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "ddb1", + "resourceGroupName": "rg1", + "api-version": "2021-09-15", + "subscriptionId": "subid", + "tableName": "tableName", + "updateThroughputParameters": { + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", + "name": "default", + "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", + "location": "West US", + "tags": {}, + "properties": { + "resource": { + "throughput": 400, + "minimumThroughput": "400", + "offerReplacePending": "true", + "_rid": "PD5DALigDgw=", + "_ts": 1459200611, + "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" + } + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json new file mode 100644 index 000000000000..58c52d0b4d4d --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json @@ -0,0 +1,461 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": { + "get": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Gets the notebook workspace resources of an existing Cosmos DB account.", + "operationId": "NotebookWorkspaces_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved notebook workspace resources.", + "schema": { + "$ref": "#/definitions/NotebookWorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceList": { + "$ref": "./examples/CosmosDBNotebookWorkspaceList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": { + "get": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Gets the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified notebook workspace resource.", + "schema": { + "$ref": "#/definitions/NotebookWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceGet": { + "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json" + } + } + }, + "put": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Creates the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_CreateOrUpdate", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + }, + { + "name": "notebookCreateUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters" + }, + "description": "The notebook workspace to create for the current database account." + } + ], + "responses": { + "200": { + "description": "Creation of notebook workspace will complete asynchronously.", + "schema": { + "$ref": "#/definitions/NotebookWorkspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceCreate": { + "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json" + } + } + }, + "delete": { + "tags": [ + "NotebookWorkspacesResource" + ], + "description": "Deletes the notebook workspace for a Cosmos DB account.", + "operationId": "NotebookWorkspaces_Delete", + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "202": { + "description": "The notebook workspace delete operation will complete asynchronously." + }, + "204": { + "description": "The specified notebook workspace does not exist in the database account." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceDelete": { + "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_ListConnectionInfo", + "x-ms-examples": { + "CosmosDBNotebookWorkspaceListConnectionInfo": { + "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json" + } + }, + "description": "Retrieves the connection info for the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_RegenerateAuthToken", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceRegenerateAuthToken": { + "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json" + } + }, + "description": "Regenerates the auth token for the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The regenerate auth token operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": { + "post": { + "tags": [ + "NotebookWorkspacesResource" + ], + "operationId": "NotebookWorkspaces_Start", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBNotebookWorkspaceStart": { + "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json" + } + }, + "description": "Starts the notebook workspace", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/NotebookWorkspaceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted. The start operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "NotebookWorkspaceCreateUpdateParameters": { + "description": "Parameters to create a notebook workspace resource", + "type": "object", + "allOf": [ + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "NotebookWorkspaceListResult": { + "description": "A list of notebook workspace resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of notebook workspace resources", + "items": { + "$ref": "#/definitions/NotebookWorkspace" + } + } + } + }, + "NotebookWorkspace": { + "description": "A notebook workspace resource", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/NotebookWorkspaceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "NotebookWorkspaceProperties": { + "description": "Properties of a notebook workspace resource.", + "type": "object", + "properties": { + "notebookServerEndpoint": { + "description": "Specifies the endpoint of Notebook server.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.", + "type": "string", + "readOnly": true + } + } + }, + "NotebookWorkspaceConnectionInfoResult": { + "description": "The connection info for the given notebook workspace", + "properties": { + "authToken": { + "type": "string", + "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).", + "readOnly": true + }, + "notebookServerEndpoint": { + "type": "string", + "description": "Specifies the endpoint of Notebook server.", + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "NotebookWorkspaceNameParameter": { + "name": "notebookWorkspaceName", + "in": "path", + "description": "The name of the notebook workspace resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "NotebookWorkspaceName", + "modelAsString": true + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json new file mode 100644 index 000000000000..0c34ccca9dd1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json @@ -0,0 +1,318 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "List all private endpoint connections on a Cosmos DB account.", + "operationId": "PrivateEndpointConnections_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted. The private endpoint connection update will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The private endpoint connection delete will complete asynchronously." + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/CosmosDBPrivateEndpointConnectionDelete.json" + } + } + } + } + }, + "definitions": { + "PrivateEndpointConnectionListResult": { + "description": "A list of private endpoint connections", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateEndpointConnectionProperties": { + "description": "Properties of a private endpoint connection.", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection State of the Private Endpoint Connection." + }, + "groupId": { + "type": "string", + "description": "Group id of the private endpoint." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the private endpoint." + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "description": "Private endpoint which the connection belongs to.", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "description": "Connection State of the Private Endpoint Connection.", + "properties": { + "status": { + "type": "string", + "description": "The private link service connection status." + }, + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "actionsRequired": { + "type": "string", + "description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)", + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "PrivateEndpointConnectionNameParameter": { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the private endpoint connection." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json new file mode 100644 index 000000000000..cc42162a5380 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json @@ -0,0 +1,195 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Cosmos DB account.", + "operationId": "PrivateLinkResources_ListByDatabaseAccount", + "x-ms-pageable": { + "nextLinkName": null + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateLinkResourceListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Cosmos DB account.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/accountNameParameter" + }, + { + "$ref": "#/parameters/GroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private link resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/CosmosDBPrivateLinkResourceGet.json" + } + } + } + } + }, + "definitions": { + "PrivateLinkResourceListResult": { + "description": "A list of private link resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + } + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + } + ] + }, + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "description": "The private link resource required zone names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "accountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB database account name.", + "minLength": 3, + "maxLength": 50, + "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" + }, + "GroupNameParameter": { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json new file mode 100644 index 000000000000..84dac74549fa --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json @@ -0,0 +1,573 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}": { + "get": { + "operationId": "SqlResources_GetSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionGet": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Definition was successfully retrieved.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionCreateUpdate": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB SQL Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlRoleDefinitionParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a Role Definition.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Role Definition create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + } + }, + "202": { + "description": "The Role Definition create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlRoleDefinition", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionDelete": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB SQL Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Definition delete operation was completed successfully." + }, + "202": { + "description": "The Role Definition delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested Role Definition does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions": { + "get": { + "operationId": "SqlResources_ListSqlRoleDefinitions", + "x-ms-examples": { + "CosmosDBSqlRoleDefinitionList": { + "$ref": "./examples/CosmosDBSqlRoleDefinitionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB SQL Role Definitions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}": { + "get": { + "operationId": "SqlResources_GetSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentGet": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Assignment was successfully retrieved.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "SqlResources_CreateUpdateSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentCreateUpdate": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB SQL Role Assignment.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateSqlRoleAssignmentParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a Role Assignment.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Role Assignment create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + } + }, + "202": { + "description": "The Role Assignment create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "SqlResources_DeleteSqlRoleAssignment", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentDelete": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB SQL Role Assignment.", + "parameters": [ + { + "$ref": "#/parameters/roleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Role Assignment delete operation was completed successfully." + }, + "202": { + "description": "The Role Assignment delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested Role Assignment does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments": { + "get": { + "operationId": "SqlResources_ListSqlRoleAssignments", + "x-ms-examples": { + "CosmosDBSqlRoleAssignmentList": { + "$ref": "./examples/CosmosDBSqlRoleAssignmentList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB SQL Role Assignments.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/SqlRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SqlRoleDefinitionResource": { + "properties": { + "roleName": { + "type": "string", + "description": "A user-friendly name for the Role Definition. Must be unique for the database account." + }, + "type": { + "type": "string", + "enum": [ + "BuiltInRole", + "CustomRole" + ], + "description": "Indicates whether the Role Definition was built-in or user created.", + "x-ms-enum": { + "name": "RoleDefinitionType", + "modelAsString": false + } + }, + "assignableScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist." + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "description": "The set of operations allowed through this Role Definition." + } + }, + "description": "Azure Cosmos DB SQL Role Definition resource object." + }, + "SqlRoleDefinitionCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB SQL Role Definition.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB SQL Role Definition.", + "$ref": "#/definitions/SqlRoleDefinitionResource" + } + } + }, + "SqlRoleDefinitionGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SqlRoleDefinitionResource", + "description": "Properties related to the Role Definition." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB SQL Role Definition." + }, + "Permission": { + "type": "object", + "properties": { + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of data actions that are allowed." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of data actions that are denied." + } + }, + "description": "The set of data plane operations permitted through this Role Definition." + }, + "SqlRoleDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SqlRoleDefinitionGetResults" + }, + "description": "List of Role Definitions and their properties." + } + }, + "description": "The relevant Role Definitions." + }, + "SqlRoleAssignmentResource": { + "type": "object", + "properties": { + "roleDefinitionId": { + "type": "string", + "description": "The unique identifier for the associated Role Definition." + }, + "scope": { + "type": "string", + "description": "The data plane resource path for which access is being granted through this Role Assignment." + }, + "principalId": { + "type": "string", + "description": "The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription." + } + }, + "description": "Azure Cosmos DB SQL Role Assignment resource object." + }, + "SqlRoleAssignmentCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB SQL Role Assignment.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB SQL Role Assignment.", + "$ref": "#/definitions/SqlRoleAssignmentResource" + } + } + }, + "SqlRoleAssignmentGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SqlRoleAssignmentResource", + "description": "Properties related to the Role Assignment." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB Role Assignment" + }, + "SqlRoleAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SqlRoleAssignmentGetResults" + }, + "description": "List of Role Assignments and their properties" + } + }, + "description": "The relevant Role Assignments." + } + }, + "parameters": { + "roleDefinitionIdParameter": { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The GUID for the Role Definition." + }, + "roleAssignmentIdParameter": { + "name": "roleAssignmentId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The GUID for the Role Assignment." + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json new file mode 100644 index 000000000000..07363e08eae4 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json @@ -0,0 +1,1181 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB Database Service Resource Provider REST API", + "version": "2021-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts": { + "get": { + "operationId": "RestorableDatabaseAccounts_ListByLocation", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountList": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountList.json" + } + }, + "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts": { + "get": { + "operationId": "RestorableDatabaseAccounts_List", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountNoLocationList": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountNoLocationList.json" + } + }, + "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}": { + "get": { + "operationId": "RestorableDatabaseAccounts_GetByLocation", + "x-ms-examples": { + "CosmosDBRestorableDatabaseAccountGet": { + "$ref": "./examples/CosmosDBRestorableDatabaseAccountGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The restorable database account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/RestorableDatabaseAccountGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation": { + "post": { + "operationId": "SqlResources_RetrieveContinuousBackupInformation", + "x-ms-examples": { + "CosmosDBSqlContainerBackupInformation": { + "$ref": "./examples/CosmosDBSqlContainerBackupInformation.json" + } + }, + "description": "Retrieves continuous backup information for a container resource.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/databaseNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/containerNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "location", + "required": true, + "description": "The name of the continuous backup restore location.", + "schema": { + "$ref": "#/definitions/ContinuousBackupRestoreLocation" + } + } + ], + "responses": { + "200": { + "description": "The Sql container retrieve backup information operation completed successfully.", + "schema": { + "$ref": "#/definitions/BackupInformation" + } + }, + "202": { + "description": "The sql container retrieve backup information operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases": { + "get": { + "operationId": "RestorableSqlDatabases_List", + "x-ms-examples": { + "CosmosDBRestorableSqlDatabaseList": { + "$ref": "./examples/CosmosDBRestorableSqlDatabaseList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlDatabasesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers": { + "get": { + "operationId": "RestorableSqlContainers_List", + "x-ms-examples": { + "CosmosDBRestorableSqlContainerList": { + "$ref": "./examples/CosmosDBRestorableSqlContainerList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restorableSqlDatabaseRidParameter" + }, + { + "$ref": "#/parameters/restoreStartTime" + }, + { + "$ref": "#/parameters/restoreEndTime" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlContainersListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources": { + "get": { + "operationId": "RestorableSqlResources_List", + "x-ms-examples": { + "CosmosDBRestorableSqlResourceList": { + "$ref": "./examples/CosmosDBRestorableSqlResourceList.json" + } + }, + "description": "Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restoreLocationParameter" + }, + { + "$ref": "#/parameters/restoreTimestampInUtcParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableSqlResourcesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/retrieveContinuousBackupInformation": { + "post": { + "operationId": "MongoDBResources_RetrieveContinuousBackupInformation", + "x-ms-examples": { + "CosmosDBMongoDBCollectionBackupInformation": { + "$ref": "./examples/CosmosDBMongoDBCollectionBackupInformation.json" + } + }, + "description": "Retrieves continuous backup information for a Mongodb collection.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/databaseNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/collectionNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "location", + "required": true, + "description": "The name of the continuous backup restore location.", + "schema": { + "$ref": "#/definitions/ContinuousBackupRestoreLocation" + } + } + ], + "responses": { + "200": { + "description": "The Mongodb collection retrieve backup information operation completed successfully.", + "schema": { + "$ref": "#/definitions/BackupInformation" + } + }, + "202": { + "description": "The Mongodb collection retrieve backup information operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases": { + "get": { + "operationId": "RestorableMongodbDatabases_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbDatabaseList": { + "$ref": "./examples/CosmosDBRestorableMongodbDatabaseList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbDatabasesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections": { + "get": { + "operationId": "RestorableMongodbCollections_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbCollectionList": { + "$ref": "./examples/CosmosDBRestorableMongodbCollectionList.json" + } + }, + "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restorableMongodbDatabaseRidParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbCollectionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources": { + "get": { + "operationId": "RestorableMongodbResources_List", + "x-ms-examples": { + "CosmosDBRestorableMongodbResourceList": { + "$ref": "./examples/CosmosDBRestorableMongodbResourceList.json" + } + }, + "description": "Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + }, + { + "$ref": "#/parameters/instanceIdParameter" + }, + { + "$ref": "#/parameters/restoreLocationParameter" + }, + { + "$ref": "#/parameters/restoreTimestampInUtcParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/RestorableMongodbResourcesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "RestorableDatabaseAccountsListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableDatabaseAccountGetResult" + }, + "description": "List of restorable database accounts and their properties." + } + }, + "description": "The List operation response, that contains the restorable database accounts and their properties." + }, + "RestorableDatabaseAccountGetResult": { + "description": "A Azure Cosmos DB restorable database account.", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a restorable database account.", + "$ref": "#/definitions/RestorableDatabaseAccountProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + } + } + }, + "RestorableDatabaseAccountProperties": { + "type": "object", + "description": "The properties of a restorable database account.", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the global database account" + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "The creation time of the restorable database account (ISO-8601 format)." + }, + "deletionTime": { + "type": "string", + "format": "date-time", + "description": "The time at which the restorable database account has been deleted (ISO-8601 format)." + }, + "apiType": { + "type": "string", + "readOnly": true, + "description": "The API type of the restorable database account.", + "$ref": "#/definitions/ApiType" + }, + "restorableLocations": { + "type": "array", + "readOnly": true, + "description": "List of regions where the of the database account can be restored from.", + "items": { + "$ref": "#/definitions/RestorableLocationResource" + } + } + } + }, + "ApiType": { + "description": "Enum to indicate the API type of the restorable database account.", + "type": "string", + "readOnly": true, + "enum": [ + "MongoDB", + "Gremlin", + "Cassandra", + "Table", + "Sql", + "GremlinV2" + ], + "x-ms-enum": { + "name": "ApiType", + "modelAsString": true + } + }, + "RestorableLocationResource": { + "type": "object", + "description": "Properties of the regional restorable account.", + "properties": { + "locationName": { + "type": "string", + "readOnly": true, + "description": "The location of the regional restorable account." + }, + "regionalDatabaseAccountInstanceId": { + "type": "string", + "readOnly": true, + "description": "The instance id of the regional restorable account." + }, + "creationTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The creation time of the regional restorable database account (ISO-8601 format)." + }, + "deletionTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)." + } + } + }, + "RestorableSqlDatabasesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableSqlDatabaseGetResult" + }, + "description": "List of SQL database events and their properties." + } + }, + "description": "The List operation response, that contains the SQL database events and their properties." + }, + "RestorableSqlDatabaseGetResult": { + "description": "An Azure Cosmos DB SQL database event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a SQL database event.", + "$ref": "#/definitions/RestorableSqlDatabaseProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableSqlDatabaseProperties": { + "description": "The properties of an Azure Cosmos DB SQL database event", + "type": "object", + "properties": { + "resource": { + "type": "object", + "description": "The resource of an Azure Cosmos DB SQL database event", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this database event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this database event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of the SQL database." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of the SQL database." + }, + "database": { + "type": "object", + "description": "Cosmos DB SQL database resource object", + "properties": { + "_colls": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specified the addressable path of the collections resource." + }, + "_users": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the users resource." + }, + "_self": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the database resource." + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlDatabaseResource" + }, + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + } + ] + } + } + } + } + }, + "RestorableSqlContainersListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableSqlContainerGetResult" + }, + "description": "List of SQL container events and their properties." + } + }, + "description": "The List operation response, that contains the SQL container events and their properties." + }, + "RestorableSqlContainerGetResult": { + "description": "An Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a SQL container event.", + "$ref": "#/definitions/RestorableSqlContainerProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableSqlContainerProperties": { + "description": "The properties of an Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB SQL container event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this container event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The when this container event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this SQL container." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this SQL container." + }, + "container": { + "type": "object", + "description": "Cosmos DB SQL container resource object", + "properties": { + "_self": { + "type": "string", + "readOnly": true, + "description": "A system generated property that specifies the addressable path of the container resource." + } + }, + "allOf": [ + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlContainerResource" + }, + { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + } + ] + } + } + } + } + }, + "RestorableSqlResourcesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + }, + "description": "List of restorable SQL resources, including the database and collection names." + } + }, + "description": "The List operation response, that contains the restorable SQL resources." + }, + "RestorableMongodbDatabasesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableMongodbDatabaseGetResult" + }, + "description": "List of MongoDB database events and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB database events and their properties." + }, + "RestorableMongodbDatabaseGetResult": { + "description": "An Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a MongoDB database event.", + "$ref": "#/definitions/RestorableMongodbDatabaseProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableMongodbDatabaseProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB MongoDB database event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this database event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this database event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this MongoDB database." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this MongoDB database." + } + } + } + } + }, + "RestorableMongodbCollectionsListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RestorableMongodbCollectionGetResult" + }, + "description": "List of MongoDB collection events and their properties." + } + }, + "description": "The List operation response, that contains the MongoDB collection events and their properties." + }, + "RestorableMongodbCollectionGetResult": { + "description": "An Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a MongoDB collection event.", + "$ref": "#/definitions/RestorableMongodbCollectionProperties" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource Identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + } + } + }, + "RestorableMongodbCollectionProperties": { + "description": "The properties of an Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "resource": { + "description": "The resource of an Azure Cosmos DB MongoDB collection event", + "type": "object", + "properties": { + "_rid": { + "type": "string", + "readOnly": true, + "description": "A system generated property. A unique identifier." + }, + "operationType": { + "type": "string", + "readOnly": true, + "description": "The operation type of this collection event.", + "$ref": "#/definitions/OperationType" + }, + "eventTimestamp": { + "type": "string", + "readOnly": true, + "description": "The time when this collection event happened." + }, + "ownerId": { + "type": "string", + "readOnly": true, + "description": "The name of this MongoDB collection." + }, + "ownerResourceId": { + "type": "string", + "readOnly": true, + "description": "The resource ID of this MongoDB collection." + } + } + } + } + }, + "RestorableMongodbResourcesListResult": { + "type": "object", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + }, + "description": "List of restorable MongoDB resources, including the database and collection names." + } + }, + "description": "The List operation response, that contains the restorable MongoDB resources." + }, + "OperationType": { + "description": "Enum to indicate the operation type of the event.", + "type": "string", + "readOnly": true, + "enum": [ + "Create", + "Replace", + "Delete", + "SystemOperation" + ], + "x-ms-enum": { + "name": "OperationType", + "modelAsString": true + } + }, + "ContinuousBackupRestoreLocation": { + "type": "object", + "description": "Properties of the regional restorable account.", + "properties": { + "location": { + "type": "string", + "description": "The name of the continuous backup restore location." + } + } + }, + "BackupInformation": { + "description": "Backup information of a resource.", + "type": "object", + "properties": { + "continuousBackupInformation": { + "description": "Information about the status of continuous backups.", + "type": "object", + "$ref": "#/definitions/ContinuousBackupInformation" + } + } + }, + "ContinuousBackupInformation": { + "description": "Information about the status of continuous backups.", + "type": "object", + "readOnly": true, + "properties": { + "latestRestorableTimestamp": { + "type": "string", + "description": "The latest restorable timestamp for a resource." + } + } + } + }, + "parameters": { + "restorableSqlDatabaseRidParameter": { + "name": "restorableSqlDatabaseRid", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource ID of the SQL database." + }, + "restorableMongodbDatabaseRidParameter": { + "name": "restorableMongodbDatabaseRid", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The resource ID of the MongoDB database." + }, + "restoreLocationParameter": { + "name": "restoreLocation", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The location where the restorable resources are located." + }, + "restoreTimestampInUtcParameter": { + "name": "restoreTimestampInUtc", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The timestamp when the restorable resources existed." + }, + "restoreStartTime": { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp after which snapshots need to be listed." + }, + "restoreEndTime": { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp before which snapshots need to be listed." + }, + "locationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Cosmos DB region, with spaces between words and each word capitalized." + }, + "instanceIdParameter": { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The instanceId GUID of a restorable database account." + } + } +} From 04d4dcc78095f54ae38b5631b6085681d3c36787 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Mon, 30 Aug 2021 16:59:37 -0700 Subject: [PATCH 08/50] Renaming 2021-09-15 api version to 2021-10-15 --- .../{2021-09-15 => 2021-10-15}/cosmos-db.json | 0 ...CosmosDBCassandraKeyspaceCreateUpdate.json | 2 +- .../CosmosDBCassandraKeyspaceDelete.json | 2 +- .../CosmosDBCassandraKeyspaceGet.json | 2 +- .../CosmosDBCassandraKeyspaceList.json | 2 +- ...DBCassandraKeyspaceMigrateToAutoscale.json | 2 +- ...ndraKeyspaceMigrateToManualThroughput.json | 2 +- ...osmosDBCassandraKeyspaceThroughputGet.json | 2 +- ...osDBCassandraKeyspaceThroughputUpdate.json | 2 +- .../CosmosDBCassandraTableCreateUpdate.json | 2 +- .../CosmosDBCassandraTableDelete.json | 2 +- .../examples/CosmosDBCassandraTableGet.json | 2 +- .../examples/CosmosDBCassandraTableList.json | 2 +- ...mosDBCassandraTableMigrateToAutoscale.json | 2 +- ...ssandraTableMigrateToManualThroughput.json | 2 +- .../CosmosDBCassandraTableThroughputGet.json | 2 +- ...osmosDBCassandraTableThroughputUpdate.json | 2 +- ...osmosDBCollectionGetMetricDefinitions.json | 2 +- .../CosmosDBCollectionGetMetrics.json | 2 +- .../examples/CosmosDBCollectionGetUsages.json | 2 +- ...CosmosDBCollectionPartitionGetMetrics.json | 2 +- .../CosmosDBCollectionPartitionGetUsages.json | 2 +- ...DBCollectionPartitionRegionGetMetrics.json | 2 +- ...osmosDBDatabaseAccountCheckNameExists.json | 2 +- .../CosmosDBDatabaseAccountCreateMax.json | 2 +- .../CosmosDBDatabaseAccountCreateMin.json | 2 +- .../CosmosDBDatabaseAccountDelete.json | 2 +- ...DatabaseAccountFailoverPriorityChange.json | 2 +- .../examples/CosmosDBDatabaseAccountGet.json | 2 +- ...DBDatabaseAccountGetMetricDefinitions.json | 2 +- .../CosmosDBDatabaseAccountGetMetrics.json | 2 +- .../CosmosDBDatabaseAccountGetUsages.json | 2 +- .../examples/CosmosDBDatabaseAccountList.json | 2 +- ...sDBDatabaseAccountListByResourceGroup.json | 2 +- ...BDatabaseAccountListConnectionStrings.json | 2 +- ...baseAccountListConnectionStringsMongo.json | 2 +- .../CosmosDBDatabaseAccountListKeys.json | 2 +- ...smosDBDatabaseAccountListReadOnlyKeys.json | 2 +- .../CosmosDBDatabaseAccountOfflineRegion.json | 2 +- .../CosmosDBDatabaseAccountOnlineRegion.json | 2 +- .../CosmosDBDatabaseAccountPatch.json | 2 +- .../CosmosDBDatabaseAccountRegenerateKey.json | 2 +- ...smosDBDatabaseAccountRegionGetMetrics.json | 2 +- .../CosmosDBDatabaseGetMetricDefinitions.json | 2 +- .../examples/CosmosDBDatabaseGetMetrics.json | 2 +- .../examples/CosmosDBDatabaseGetUsages.json | 2 +- .../CosmosDBGremlinDatabaseCreateUpdate.json | 2 +- .../CosmosDBGremlinDatabaseDelete.json | 2 +- .../examples/CosmosDBGremlinDatabaseGet.json | 2 +- .../examples/CosmosDBGremlinDatabaseList.json | 2 +- ...osDBGremlinDatabaseMigrateToAutoscale.json | 2 +- ...mlinDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinDatabaseThroughputGet.json | 2 +- ...smosDBGremlinDatabaseThroughputUpdate.json | 2 +- .../CosmosDBGremlinGraphCreateUpdate.json | 2 +- .../examples/CosmosDBGremlinGraphDelete.json | 2 +- .../examples/CosmosDBGremlinGraphGet.json | 2 +- .../examples/CosmosDBGremlinGraphList.json | 2 +- ...osmosDBGremlinGraphMigrateToAutoscale.json | 2 +- ...GremlinGraphMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinGraphThroughputGet.json | 2 +- .../CosmosDBGremlinGraphThroughputUpdate.json | 2 +- .../examples/CosmosDBLocationGet.json | 2 +- .../examples/CosmosDBLocationList.json | 2 +- ...sDBMongoDBCollectionBackupInformation.json | 2 +- ...CosmosDBMongoDBCollectionCreateUpdate.json | 2 +- .../CosmosDBMongoDBCollectionDelete.json | 2 +- .../CosmosDBMongoDBCollectionGet.json | 2 +- .../CosmosDBMongoDBCollectionList.json | 2 +- ...DBMongoDBCollectionMigrateToAutoscale.json | 2 +- ...DBCollectionMigrateToManualThroughput.json | 2 +- ...osmosDBMongoDBCollectionThroughputGet.json | 2 +- ...osDBMongoDBCollectionThroughputUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseCreateUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseDelete.json | 2 +- .../examples/CosmosDBMongoDBDatabaseGet.json | 2 +- .../examples/CosmosDBMongoDBDatabaseList.json | 2 +- ...osDBMongoDBDatabaseMigrateToAutoscale.json | 2 +- ...goDBDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBMongoDBDatabaseThroughputGet.json | 2 +- ...smosDBMongoDBDatabaseThroughputUpdate.json | 2 +- .../CosmosDBNotebookWorkspaceCreate.json | 2 +- .../CosmosDBNotebookWorkspaceDelete.json | 2 +- .../CosmosDBNotebookWorkspaceGet.json | 2 +- .../CosmosDBNotebookWorkspaceList.json | 2 +- ...DBNotebookWorkspaceListConnectionInfo.json | 2 +- ...BNotebookWorkspaceRegenerateAuthToken.json | 2 +- .../CosmosDBNotebookWorkspaceStart.json | 2 +- .../examples/CosmosDBOperationsList.json | 2 +- .../CosmosDBPKeyRangeIdGetMetrics.json | 2 +- .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 2 +- .../CosmosDBPercentileGetMetrics.json | 2 +- ...mosDBPercentileSourceTargetGetMetrics.json | 2 +- .../CosmosDBPercentileTargetGetMetrics.json | 2 +- ...smosDBPrivateEndpointConnectionDelete.json | 2 +- .../CosmosDBPrivateEndpointConnectionGet.json | 2 +- ...mosDBPrivateEndpointConnectionListGet.json | 2 +- ...smosDBPrivateEndpointConnectionUpdate.json | 2 +- .../CosmosDBPrivateLinkResourceGet.json | 2 +- .../CosmosDBPrivateLinkResourceListGet.json | 2 +- .../CosmosDBRegionCollectionGetMetrics.json | 2 +- .../CosmosDBRestorableDatabaseAccountGet.json | 2 +- ...CosmosDBRestorableDatabaseAccountList.json | 2 +- ...storableDatabaseAccountNoLocationList.json | 2 +- ...smosDBRestorableMongodbCollectionList.json | 2 +- ...CosmosDBRestorableMongodbDatabaseList.json | 2 +- ...CosmosDBRestorableMongodbResourceList.json | 2 +- .../CosmosDBRestorableSqlContainerList.json | 2 +- .../CosmosDBRestorableSqlDatabaseList.json | 2 +- .../CosmosDBRestorableSqlResourceList.json | 2 +- ...sDBRestoreDatabaseAccountCreateUpdate.json | 2 +- ...CosmosDBSqlContainerBackupInformation.json | 2 +- .../CosmosDBSqlContainerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlContainerDelete.json | 2 +- .../examples/CosmosDBSqlContainerGet.json | 2 +- .../examples/CosmosDBSqlContainerList.json | 2 +- ...osmosDBSqlContainerMigrateToAutoscale.json | 2 +- ...SqlContainerMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlContainerThroughputGet.json | 2 +- .../CosmosDBSqlContainerThroughputUpdate.json | 2 +- .../CosmosDBSqlDatabaseCreateUpdate.json | 2 +- .../examples/CosmosDBSqlDatabaseDelete.json | 2 +- .../examples/CosmosDBSqlDatabaseGet.json | 2 +- .../examples/CosmosDBSqlDatabaseList.json | 2 +- ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 2 +- ...BSqlDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlDatabaseThroughputGet.json | 2 +- .../CosmosDBSqlDatabaseThroughputUpdate.json | 2 +- ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 2 +- .../CosmosDBSqlRoleAssignmentDelete.json | 2 +- .../CosmosDBSqlRoleAssignmentGet.json | 2 +- .../CosmosDBSqlRoleAssignmentList.json | 2 +- ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 2 +- .../CosmosDBSqlRoleDefinitionDelete.json | 2 +- .../CosmosDBSqlRoleDefinitionGet.json | 2 +- .../CosmosDBSqlRoleDefinitionList.json | 2 +- ...osmosDBSqlStoredProcedureCreateUpdate.json | 2 +- .../CosmosDBSqlStoredProcedureDelete.json | 2 +- .../CosmosDBSqlStoredProcedureGet.json | 2 +- .../CosmosDBSqlStoredProcedureList.json | 2 +- .../CosmosDBSqlTriggerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlTriggerDelete.json | 2 +- .../examples/CosmosDBSqlTriggerGet.json | 2 +- .../examples/CosmosDBSqlTriggerList.json | 2 +- ...sDBSqlUserDefinedFunctionCreateUpdate.json | 2 +- .../CosmosDBSqlUserDefinedFunctionDelete.json | 2 +- .../CosmosDBSqlUserDefinedFunctionGet.json | 2 +- .../CosmosDBSqlUserDefinedFunctionList.json | 2 +- .../examples/CosmosDBTableCreateUpdate.json | 2 +- .../examples/CosmosDBTableDelete.json | 2 +- .../examples/CosmosDBTableGet.json | 2 +- .../examples/CosmosDBTableList.json | 2 +- .../CosmosDBTableMigrateToAutoscale.json | 2 +- ...osmosDBTableMigrateToManualThroughput.json | 2 +- .../examples/CosmosDBTableThroughputGet.json | 2 +- .../CosmosDBTableThroughputUpdate.json | 2 +- .../{2021-09-15 => 2021-10-15}/notebook.json | 0 .../privateEndpointConnection.json | 0 .../privateLinkResources.json | 0 .../{2021-09-15 => 2021-10-15}/rbac.json | 0 .../restorable.json | 0 .../cosmos-db/resource-manager/readme.md | 22 +++++++++---------- 162 files changed, 166 insertions(+), 166 deletions(-) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/cosmos-db.json (100%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceCreateUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceDelete.json (85%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceGet.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceList.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableCreateUpdate.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableDelete.json (87%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableGet.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableList.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCassandraTableThroughputUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionGetMetricDefinitions.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionGetUsages.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionPartitionGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionPartitionGetUsages.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBCollectionPartitionRegionGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountCheckNameExists.json (76%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountCreateMax.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountCreateMin.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountDelete.json (83%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json (92%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountGet.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountGetUsages.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountList.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountListByResourceGroup.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountListConnectionStrings.json (83%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json (91%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountListKeys.json (92%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json (90%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountOfflineRegion.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountOnlineRegion.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountPatch.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountRegenerateKey.json (87%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseAccountRegionGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseGetMetricDefinitions.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBDatabaseGetUsages.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseCreateUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseDelete.json (85%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseGet.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinDatabaseThroughputUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphCreateUpdate.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphDelete.json (87%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphGet.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphList.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBGremlinGraphThroughputUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBLocationGet.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBLocationList.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionBackupInformation.json (93%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionCreateUpdate.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionDelete.json (88%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionGet.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionList.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBCollectionThroughputUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseCreateUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseDelete.json (85%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseGet.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseList.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceCreate.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceDelete.json (86%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceGet.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceList.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json (90%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json (86%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBNotebookWorkspaceStart.json (86%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBOperationsList.json (92%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPKeyRangeIdGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPercentileGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPercentileSourceTargetGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPercentileTargetGetMetrics.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateEndpointConnectionDelete.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateEndpointConnectionGet.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateEndpointConnectionListGet.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateEndpointConnectionUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateLinkResourceGet.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBPrivateLinkResourceListGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRegionCollectionGetMetrics.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableDatabaseAccountGet.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableDatabaseAccountList.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableMongodbCollectionList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableMongodbDatabaseList.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableMongodbResourceList.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableSqlContainerList.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableSqlDatabaseList.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestorableSqlResourceList.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerBackupInformation.json (93%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerCreateUpdate.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerDelete.json (87%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerGet.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerList.json (99%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlContainerThroughputUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseCreateUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseDelete.json (85%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlDatabaseThroughputUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleAssignmentDelete.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleAssignmentGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleAssignmentList.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json (98%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleDefinitionDelete.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleDefinitionGet.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlRoleDefinitionList.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlStoredProcedureCreateUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlStoredProcedureDelete.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlStoredProcedureGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlStoredProcedureList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlTriggerCreateUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlTriggerDelete.json (89%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlTriggerGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlTriggerList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json (97%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlUserDefinedFunctionDelete.json (90%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlUserDefinedFunctionGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBSqlUserDefinedFunctionList.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableCreateUpdate.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableDelete.json (85%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableGet.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableList.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableMigrateToAutoscale.json (95%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableMigrateToManualThroughput.json (94%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableThroughputGet.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/examples/CosmosDBTableThroughputUpdate.json (96%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/notebook.json (100%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/privateEndpointConnection.json (100%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/privateLinkResources.json (100%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/rbac.json (100%) rename specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/{2021-09-15 => 2021-10-15}/restorable.json (100%) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json index 174d77ab633a..1d7f69b7e1b5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "createUpdateCassandraKeyspaceParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceDelete.json similarity index 85% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceDelete.json index 86a1b754efee..6ed26ea3132f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceGet.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceGet.json index e677bac5c4ea..f8e803c68840 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceList.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceList.json index 3a8a874d7b9e..375b4ecca411 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json index 64de97696d21..bd7c9120e0aa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json index bbf76b915b57..46b04ff4583a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json index c4d216a35b1d..94cd6cbea37e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json index f4a40ede7d79..f6b5e351c6f5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableCreateUpdate.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableCreateUpdate.json index 2b7232be5462..d54deb25493d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableDelete.json similarity index 87% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableDelete.json index 04d931def8aa..2090fa3fa05b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableGet.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableGet.json index 9e5a0129d9a6..6cabe1c2b3d0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableList.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableList.json index b69ccf548229..7ab69e2fa045 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json index 017c480fd6a7..247737a9764e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json index 8e83a3b88e36..df2d68921f42 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputGet.json index da5c601cdef5..53e1d5d0f341 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputUpdate.json index 1dd6bc5b3958..ad0f387ac9fd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCassandraTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCassandraTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetricDefinitions.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetricDefinitions.json index 85116a4c05c2..3c5e16012762 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetrics.json index 4693c95b8c66..041fec39e5a8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetUsages.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetUsages.json index a191ce951f88..6fa1e4bf9c66 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetMetrics.json index 3b6531ba65ba..f684bd67694c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetUsages.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetUsages.json index 48eb598fbfc1..5ee50abfdcd1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json index 222c4ecf6de6..184fa1e83fc0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCheckNameExists.json similarity index 76% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCheckNameExists.json index e6191e852086..4a55193a5de0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCheckNameExists.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCheckNameExists.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json index 614228e28649..3572b10d53e8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMin.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMin.json index a80e6ec998b1..27d2c44935b4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMin.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountDelete.json similarity index 83% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountDelete.json index f7667487a0c8..4ca542defa41 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json similarity index 92% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json index 8ced70e0e786..07ca599fdc42 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1-failover", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "failoverParameters": { "failoverPolicies": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGet.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGet.json index 9142e948af5c..f973f40efe55 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json index f8c818d127d5..da6ddcf7130e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetrics.json index 9e82e81edf7b..6f393c23c023 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetUsages.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetUsages.json index 2433a5c7676b..4341c6cbb9d7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountList.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountList.json index 3fc364bc2f89..ca3367e7b4ad 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json index ec00e9c5c5e8..0c0a415abd81 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json similarity index 83% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json index d7d584ac1f78..9476ec634f68 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json similarity index 91% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json index 47578f523f5d..e25d6487396e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "mongo-ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListKeys.json similarity index 92% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListKeys.json index cdb931afb789..92ce33ec21f3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json similarity index 90% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json index e4580dc468d0..9e1675013464 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOfflineRegion.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOfflineRegion.json index 1e4afdf36328..9d2c27f29ef8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOfflineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOfflineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOffline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOnlineRegion.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOnlineRegion.json index 9288fb4f8746..72a6f833f84a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountOnlineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountOnlineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOnline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json index e9b74e2f4edb..045b75765b9f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "updateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegenerateKey.json similarity index 87% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegenerateKey.json index 93a94b0ce3a5..b50f4668f635 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegenerateKey.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyToRegenerate": { "keyKind": "primary" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json index 62fd19f34947..8bb7d1173094 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetricDefinitions.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetricDefinitions.json index c0cf339a0b59..d4a7fd991eb0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetrics.json index 5f241390ddd5..7a1876bf2885 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "rid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetUsages.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetUsages.json index 4b4496f0ef29..ba14a11ddcf7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBDatabaseGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json index d30634855a94..8d6ac37b737c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateGremlinDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseDelete.json similarity index 85% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseGet.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseGet.json index 4e65ecf8cec2..96063846445a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseList.json index 932545fb8436..96fc1a6193cb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputGet.json index ebd4bcdfce9d..78687a29c0fc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json index 10dcce2c374a..fddd5966fc37 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphCreateUpdate.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphCreateUpdate.json index 853700f96be9..cbe2b866e27e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphDelete.json similarity index 87% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphDelete.json index 5535bf2acac6..b8e4928304cc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphGet.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphGet.json index 7ea69c3668f5..2c0a56a13205 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphList.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphList.json index 992719204f68..17b27ec7a0c8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json index 58b4487ab5fa..a088633a92a6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json index 398c8ee6d7d5..c2dda9ec6489 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputGet.json index 47aca48db823..35a2b743af3f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputUpdate.json index 35a14c65a941..bbf997f95914 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBGremlinGraphThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBGremlinGraphThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationGet.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationGet.json index bcdba9fdd794..cbbed0c083f2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "westus" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationList.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationList.json index b5e69ba1ad40..04faaf3df6ef 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBLocationList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json similarity index 93% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json index ef97b7ef9429..c5ea74b81cec 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json index 1ed36da8e33d..370799f79af6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionDelete.json similarity index 88% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionDelete.json index 7b42aa003b20..6c0d0cbd082c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionGet.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionGet.json index e839a90a1fe5..648e27ac86c3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionList.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionList.json index 41f3fcef9e0c..db4d61b96508 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json index b4c0f1e0bf16..c6130a24df0e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json index b68a843a7844..b85de747c670 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputGet.json index bd741999b213..b99b63588318 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json index 56c7c0394192..cccd9db1dbf6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json index 4af546f1a560..d4ae327cfe4b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateMongoDBDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseDelete.json similarity index 85% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseGet.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseGet.json index c210be4fdc75..1d2d0768367e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseList.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseList.json index 0ea694a51d3f..431ef6fc3d7c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json index e1a6c92d8f05..461a6a4b6ee5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json index 651007f34514..75d039aa43d7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceCreate.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceCreate.json index c1596e03062c..4d9784cdee8a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceCreate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceDelete.json similarity index 86% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceDelete.json index 95cf3de3abdb..89f1025a831f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "notebookWorkspaceName": "default" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceGet.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceGet.json index 5d2f05cf0408..7150f778cc93 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceList.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceList.json index e7b639168746..b50348991147 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json similarity index 90% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json index 4cfa15cc8828..62130915755e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json similarity index 86% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json index 4a799f7f069d..8d561cbc529e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceStart.json similarity index 86% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceStart.json index 4a799f7f069d..8d561cbc529e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBNotebookWorkspaceStart.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBNotebookWorkspaceStart.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBOperationsList.json similarity index 92% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBOperationsList.json index d8963137794c..6eb5f19249a1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBOperationsList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdGetMetrics.json index 9a23d8e44c81..702208c13060 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json index b3d5b79ba900..086821d662a7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileGetMetrics.json index 3db32b26ea1e..4eb411017a39 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json index 5a8da3121829..55261a9b944e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "sourceRegion": "West Central US", "targetRegion": "East US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileTargetGetMetrics.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileTargetGetMetrics.json index a0acdfcd5f6e..bf4d32f61b2f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPercentileTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPercentileTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "targetRegion": "East US", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionDelete.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionDelete.json index 7d2e4114c2e7..d3e18d046d6f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionGet.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionGet.json index 6ca58ecba75b..c926930829d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionListGet.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionListGet.json index a6600f63c726..b3f80140c296 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json index cff319a4cfd4..31a78abee84b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName", "parameters": { "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceGet.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceGet.json index 1bd0ac7d304c..f8329726918e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "groupName": "sql" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceListGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceListGet.json index 9af9dab55429..75c4dee5f3b9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBPrivateLinkResourceListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBPrivateLinkResourceListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRegionCollectionGetMetrics.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRegionCollectionGetMetrics.json index 566a6a83c015..43c076120ae3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRegionCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRegionCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountGet.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountGet.json index 30ad7aba1efd..2f5de717c89c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "West US", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountList.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountList.json index 355e5f03b867..56d2f3f2e371 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "West US" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json index fd05181c3985..369818198338 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbCollectionList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbCollectionList.json index ba8cd4a03f57..e5a06318f0fe 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbDatabaseList.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbDatabaseList.json index 268d955d93d2..2bf2b90d2ed3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbResourceList.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbResourceList.json index 164c97b07d65..e3ae5c2c7aa9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableMongodbResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableMongodbResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlContainerList.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlContainerList.json index ad1bc43583f4..874749bd5fb4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlDatabaseList.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlDatabaseList.json index bc14a8b29664..e255d0ab9a38 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlResourceList.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlResourceList.json index 07bb48fce2d5..7e3261f0f655 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestorableSqlResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestorableSqlResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json index aad35b3e274c..b3e6ba3bdbb2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerBackupInformation.json similarity index 93% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerBackupInformation.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerBackupInformation.json index caf40baa38d8..dbfabfe6a849 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerBackupInformation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerCreateUpdate.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerCreateUpdate.json index 6a8c6f4596ec..f4bbdf10b787 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerDelete.json similarity index 87% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerDelete.json index 1718430eebf1..5976f669ce65 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerGet.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerGet.json index 085a6dee7eb9..772663ca4246 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerList.json similarity index 99% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerList.json index e110fca6e342..8dba37096b56 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json index 76d6289bc33f..bf351118fc6c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json index 0a40503089c9..0ea4f2b5133d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputGet.json index a62019a4c776..0581a13e5976 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputUpdate.json index 4f5bc429bf1b..57d61253f430 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlContainerThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlContainerThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseCreateUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseCreateUpdate.json index cfbe03239e5e..7dccefcd766e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateSqlDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseDelete.json similarity index 85% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseGet.json index b082584a9099..8d2a6b125859 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseList.json index 8380adad4a26..c8d731807c33 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputGet.json index d77caabfdefc..2744ba7bb7bd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json index 197f656fce98..e1b281676e2c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json index 98a784bb9a04..244417c29535 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "createUpdateSqlRoleAssignmentParameters": { "properties": { "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentDelete.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentDelete.json index 1b79b01aa8dd..e38c9103fa8c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentGet.json index 890a11e4070b..da35cd250866 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentList.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentList.json index 6c05278b0cdb..e6a0beb2704e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleAssignmentList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleAssignmentList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json similarity index 98% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json index 29b03e6a8b8a..ff5859f41d6f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "createUpdateSqlRoleDefinitionParameters": { "properties": { "roleName": "myRoleName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionDelete.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionDelete.json index 78da79507806..da3fa5deadc4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionGet.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionGet.json index c97d415d2ef4..69889ad20194 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionList.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionList.json index c571ffe69b93..f8bf45e26def 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlRoleDefinitionList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json index 7f51829a419a..dd1306aeeca7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureDelete.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureDelete.json index f963f965b8fc..36ca28d6ee4b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureGet.json index d6c2883129d9..85d2fa4d1faa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureList.json index af33b75ddbff..7fbfbab041d6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlStoredProcedureList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlStoredProcedureList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerCreateUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerCreateUpdate.json index 000e5e92d89c..6b2152600c47 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerDelete.json similarity index 89% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerDelete.json index 373cf9eab071..d39536e48255 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerGet.json index 5f3702e3eb63..d09e41bafe50 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerList.json index e98718cc543d..47130b23aeb9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlTriggerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlTriggerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json similarity index 97% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json index e608546bb8d4..e23ecde0e880 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json similarity index 90% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json index 6502b4e55d11..885ba9ae92f1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionGet.json index 4f78d3210454..482a108c376f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionList.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionList.json index 816606273935..11540ca36822 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBSqlUserDefinedFunctionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBSqlUserDefinedFunctionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableCreateUpdate.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableCreateUpdate.json index b13884da9689..67d423373ce8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName", "createUpdateTableParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableDelete.json similarity index 85% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableDelete.json index 10fcd67e0288..87fe4945cc73 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableGet.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableGet.json index 903bd252bab3..ffa290b50f6c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableList.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableList.json index 0a161805875c..433b68b6df13 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToAutoscale.json similarity index 95% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToAutoscale.json index 92c0fe6a0abc..231b0d94efdd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToManualThroughput.json similarity index 94% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToManualThroughput.json index 48e15131b546..1f1630a8c188 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputGet.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputGet.json index f73a6286241a..35ffb86c662e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputUpdate.json similarity index 96% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputUpdate.json index 4b8cff700813..e3d214e659de 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/examples/CosmosDBTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/notebook.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/rbac.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json similarity index 100% rename from specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-09-15/restorable.json rename to specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 280db6ffeabd..108acc121aa9 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -27,23 +27,23 @@ These are the global settings for the Cosmos-DB API. ``` yaml title: CosmosDBManagementClient openapi-type: arm -tag: package-2021-09 +tag: package-2021-10 ``` +### Tag: package-2021-10 -### Tag: package-2021-09 +These settings apply only when `--tag=package-2021-10` is specified on the command line. -These settings apply only when `--tag=package-2021-09` is specified on the command line. - -```yaml $(tag) == 'package-2021-09' +```yaml $(tag) == 'package-2021-10' input-file: - - Microsoft.DocumentDB/stable/2021-09-15/cosmos-db.json - - Microsoft.DocumentDB/stable/2021-09-15/notebook.json - - Microsoft.DocumentDB/stable/2021-09-15/privateEndpointConnection.json - - Microsoft.DocumentDB/stable/2021-09-15/privateLinkResources.json - - Microsoft.DocumentDB/stable/2021-09-15/rbac.json - - Microsoft.DocumentDB/stable/2021-09-15/restorable.json + - Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json + - Microsoft.DocumentDB/stable/2021-10-15/notebook.json + - Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json + - Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json + - Microsoft.DocumentDB/stable/2021-10-15/rbac.json + - Microsoft.DocumentDB/stable/2021-10-15/restorable.json ``` + ### Tag: package-2021-06 These settings apply only when `--tag=package-2021-06` is specified on the command line. From 9dc158b6acda9d3eef69345e264679e49846c111 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Mon, 30 Aug 2021 17:06:25 -0700 Subject: [PATCH 09/50] Fixing some more renames --- .../preview/2021-10-15-preview/cosmos-db.json | 4 ++-- ...CosmosDBCassandraKeyspaceCreateUpdate.json | 2 +- .../CosmosDBCassandraKeyspaceDelete.json | 2 +- .../CosmosDBCassandraKeyspaceGet.json | 2 +- .../CosmosDBCassandraKeyspaceList.json | 2 +- ...DBCassandraKeyspaceMigrateToAutoscale.json | 2 +- ...ndraKeyspaceMigrateToManualThroughput.json | 2 +- ...osmosDBCassandraKeyspaceThroughputGet.json | 2 +- ...osDBCassandraKeyspaceThroughputUpdate.json | 2 +- .../CosmosDBCassandraTableCreateUpdate.json | 2 +- .../CosmosDBCassandraTableDelete.json | 2 +- .../examples/CosmosDBCassandraTableGet.json | 2 +- .../examples/CosmosDBCassandraTableList.json | 2 +- ...mosDBCassandraTableMigrateToAutoscale.json | 2 +- ...ssandraTableMigrateToManualThroughput.json | 2 +- .../CosmosDBCassandraTableThroughputGet.json | 2 +- ...osmosDBCassandraTableThroughputUpdate.json | 2 +- ...osmosDBCollectionGetMetricDefinitions.json | 2 +- .../CosmosDBCollectionGetMetrics.json | 2 +- .../examples/CosmosDBCollectionGetUsages.json | 2 +- ...CosmosDBCollectionPartitionGetMetrics.json | 2 +- .../CosmosDBCollectionPartitionGetUsages.json | 2 +- ...DBCollectionPartitionRegionGetMetrics.json | 2 +- ...osmosDBDatabaseAccountCheckNameExists.json | 2 +- .../CosmosDBDatabaseAccountCreateMax.json | 2 +- .../CosmosDBDatabaseAccountCreateMin.json | 2 +- .../CosmosDBDatabaseAccountDelete.json | 2 +- ...DatabaseAccountFailoverPriorityChange.json | 2 +- .../examples/CosmosDBDatabaseAccountGet.json | 2 +- ...DBDatabaseAccountGetMetricDefinitions.json | 2 +- .../CosmosDBDatabaseAccountGetMetrics.json | 2 +- .../CosmosDBDatabaseAccountGetUsages.json | 2 +- .../examples/CosmosDBDatabaseAccountList.json | 2 +- ...sDBDatabaseAccountListByResourceGroup.json | 2 +- ...BDatabaseAccountListConnectionStrings.json | 2 +- ...baseAccountListConnectionStringsMongo.json | 2 +- .../CosmosDBDatabaseAccountListKeys.json | 2 +- ...smosDBDatabaseAccountListReadOnlyKeys.json | 2 +- .../CosmosDBDatabaseAccountOfflineRegion.json | 2 +- .../CosmosDBDatabaseAccountOnlineRegion.json | 2 +- .../CosmosDBDatabaseAccountPatch.json | 2 +- .../CosmosDBDatabaseAccountRegenerateKey.json | 2 +- ...smosDBDatabaseAccountRegionGetMetrics.json | 2 +- .../CosmosDBDatabaseGetMetricDefinitions.json | 2 +- .../examples/CosmosDBDatabaseGetMetrics.json | 2 +- .../examples/CosmosDBDatabaseGetUsages.json | 2 +- .../CosmosDBGremlinDatabaseCreateUpdate.json | 2 +- .../CosmosDBGremlinDatabaseDelete.json | 2 +- .../examples/CosmosDBGremlinDatabaseGet.json | 2 +- .../examples/CosmosDBGremlinDatabaseList.json | 2 +- ...osDBGremlinDatabaseMigrateToAutoscale.json | 2 +- ...mlinDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinDatabaseThroughputGet.json | 2 +- ...smosDBGremlinDatabaseThroughputUpdate.json | 2 +- .../CosmosDBGremlinGraphCreateUpdate.json | 2 +- .../examples/CosmosDBGremlinGraphDelete.json | 2 +- .../examples/CosmosDBGremlinGraphGet.json | 2 +- .../examples/CosmosDBGremlinGraphList.json | 2 +- ...osmosDBGremlinGraphMigrateToAutoscale.json | 2 +- ...GremlinGraphMigrateToManualThroughput.json | 2 +- .../CosmosDBGremlinGraphThroughputGet.json | 2 +- .../CosmosDBGremlinGraphThroughputUpdate.json | 2 +- .../examples/CosmosDBLocationGet.json | 2 +- .../examples/CosmosDBLocationList.json | 2 +- ...sDBMongoDBCollectionBackupInformation.json | 2 +- ...CosmosDBMongoDBCollectionCreateUpdate.json | 2 +- .../CosmosDBMongoDBCollectionDelete.json | 2 +- .../CosmosDBMongoDBCollectionGet.json | 2 +- .../CosmosDBMongoDBCollectionList.json | 2 +- ...DBMongoDBCollectionMigrateToAutoscale.json | 2 +- ...DBCollectionMigrateToManualThroughput.json | 2 +- ...osmosDBMongoDBCollectionThroughputGet.json | 2 +- ...osDBMongoDBCollectionThroughputUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseCreateUpdate.json | 2 +- .../CosmosDBMongoDBDatabaseDelete.json | 2 +- .../examples/CosmosDBMongoDBDatabaseGet.json | 2 +- .../examples/CosmosDBMongoDBDatabaseList.json | 2 +- ...osDBMongoDBDatabaseMigrateToAutoscale.json | 2 +- ...goDBDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBMongoDBDatabaseThroughputGet.json | 2 +- ...smosDBMongoDBDatabaseThroughputUpdate.json | 2 +- .../CosmosDBNotebookWorkspaceCreate.json | 2 +- .../CosmosDBNotebookWorkspaceDelete.json | 2 +- .../CosmosDBNotebookWorkspaceGet.json | 2 +- .../CosmosDBNotebookWorkspaceList.json | 2 +- ...DBNotebookWorkspaceListConnectionInfo.json | 2 +- ...BNotebookWorkspaceRegenerateAuthToken.json | 2 +- .../CosmosDBNotebookWorkspaceStart.json | 2 +- .../examples/CosmosDBOperationsList.json | 2 +- .../CosmosDBPKeyRangeIdGetMetrics.json | 2 +- .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 2 +- .../CosmosDBPercentileGetMetrics.json | 2 +- ...mosDBPercentileSourceTargetGetMetrics.json | 2 +- .../CosmosDBPercentileTargetGetMetrics.json | 2 +- ...smosDBPrivateEndpointConnectionDelete.json | 2 +- .../CosmosDBPrivateEndpointConnectionGet.json | 2 +- ...mosDBPrivateEndpointConnectionListGet.json | 2 +- ...smosDBPrivateEndpointConnectionUpdate.json | 2 +- .../CosmosDBPrivateLinkResourceGet.json | 2 +- .../CosmosDBPrivateLinkResourceListGet.json | 2 +- .../CosmosDBRegionCollectionGetMetrics.json | 2 +- .../CosmosDBRestorableDatabaseAccountGet.json | 2 +- ...CosmosDBRestorableDatabaseAccountList.json | 2 +- ...storableDatabaseAccountNoLocationList.json | 2 +- ...smosDBRestorableMongodbCollectionList.json | 2 +- ...CosmosDBRestorableMongodbDatabaseList.json | 2 +- ...CosmosDBRestorableMongodbResourceList.json | 2 +- .../CosmosDBRestorableSqlContainerList.json | 2 +- .../CosmosDBRestorableSqlDatabaseList.json | 2 +- .../CosmosDBRestorableSqlResourceList.json | 2 +- ...sDBRestoreDatabaseAccountCreateUpdate.json | 2 +- ...CosmosDBSqlContainerBackupInformation.json | 2 +- .../CosmosDBSqlContainerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlContainerDelete.json | 2 +- .../examples/CosmosDBSqlContainerGet.json | 2 +- .../examples/CosmosDBSqlContainerList.json | 2 +- ...osmosDBSqlContainerMigrateToAutoscale.json | 2 +- ...SqlContainerMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlContainerThroughputGet.json | 2 +- .../CosmosDBSqlContainerThroughputUpdate.json | 2 +- .../CosmosDBSqlDatabaseCreateUpdate.json | 2 +- .../examples/CosmosDBSqlDatabaseDelete.json | 2 +- .../examples/CosmosDBSqlDatabaseGet.json | 2 +- .../examples/CosmosDBSqlDatabaseList.json | 2 +- ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 2 +- ...BSqlDatabaseMigrateToManualThroughput.json | 2 +- .../CosmosDBSqlDatabaseThroughputGet.json | 2 +- .../CosmosDBSqlDatabaseThroughputUpdate.json | 2 +- ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 2 +- .../CosmosDBSqlRoleAssignmentDelete.json | 2 +- .../CosmosDBSqlRoleAssignmentGet.json | 2 +- .../CosmosDBSqlRoleAssignmentList.json | 2 +- ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 2 +- .../CosmosDBSqlRoleDefinitionDelete.json | 2 +- .../CosmosDBSqlRoleDefinitionGet.json | 2 +- .../CosmosDBSqlRoleDefinitionList.json | 2 +- ...osmosDBSqlStoredProcedureCreateUpdate.json | 2 +- .../CosmosDBSqlStoredProcedureDelete.json | 2 +- .../CosmosDBSqlStoredProcedureGet.json | 2 +- .../CosmosDBSqlStoredProcedureList.json | 2 +- .../CosmosDBSqlTriggerCreateUpdate.json | 2 +- .../examples/CosmosDBSqlTriggerDelete.json | 2 +- .../examples/CosmosDBSqlTriggerGet.json | 2 +- .../examples/CosmosDBSqlTriggerList.json | 2 +- ...sDBSqlUserDefinedFunctionCreateUpdate.json | 2 +- .../CosmosDBSqlUserDefinedFunctionDelete.json | 2 +- .../CosmosDBSqlUserDefinedFunctionGet.json | 2 +- .../CosmosDBSqlUserDefinedFunctionList.json | 2 +- .../examples/CosmosDBTableCreateUpdate.json | 2 +- .../examples/CosmosDBTableDelete.json | 2 +- .../examples/CosmosDBTableGet.json | 2 +- .../examples/CosmosDBTableList.json | 2 +- .../CosmosDBTableMigrateToAutoscale.json | 2 +- ...osmosDBTableMigrateToManualThroughput.json | 2 +- .../examples/CosmosDBTableThroughputGet.json | 2 +- .../CosmosDBTableThroughputUpdate.json | 2 +- .../preview/2021-10-15-preview/notebook.json | 20 +++++++++---------- .../privateEndpointConnection.json | 6 +++--- .../privateLinkResources.json | 4 ++-- .../preview/2021-10-15-preview/rbac.json | 2 +- .../2021-10-15-preview/restorable.json | 14 ++++++------- .../stable/2021-10-15/cosmos-db.json | 4 ++-- .../stable/2021-10-15/notebook.json | 20 +++++++++---------- .../2021-10-15/privateEndpointConnection.json | 6 +++--- .../2021-10-15/privateLinkResources.json | 4 ++-- .../stable/2021-10-15/rbac.json | 2 +- .../stable/2021-10-15/restorable.json | 14 ++++++------- 167 files changed, 205 insertions(+), 205 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json index 14fc9eeadb59..f7855484ed38 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -6350,7 +6350,7 @@ "readOnly": true, "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", "items": { - "$ref": "../../stable/2021-09-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" + "$ref": "../../stable/2021-10-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" } }, "enableMultipleWriteLocations": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json index 174d77ab633a..1d7f69b7e1b5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "createUpdateCassandraKeyspaceParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json index 86a1b754efee..6ed26ea3132f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json index e677bac5c4ea..f8e803c68840 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json index 3a8a874d7b9e..375b4ecca411 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json index 64de97696d21..bd7c9120e0aa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json index bbf76b915b57..46b04ff4583a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json index c4d216a35b1d..94cd6cbea37e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json index f4a40ede7d79..f6b5e351c6f5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json index 2b7232be5462..d54deb25493d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json index 04d931def8aa..2090fa3fa05b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json index 9e5a0129d9a6..6cabe1c2b3d0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json index b69ccf548229..7ab69e2fa045 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json index 017c480fd6a7..247737a9764e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json index 8e83a3b88e36..df2d68921f42 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json index da5c601cdef5..53e1d5d0f341 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json index 1dd6bc5b3958..ad0f387ac9fd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyspaceName": "keyspaceName", "tableName": "tableName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json index 85116a4c05c2..3c5e16012762 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json index 4693c95b8c66..041fec39e5a8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json index a191ce951f88..6fa1e4bf9c66 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json index 3b6531ba65ba..f684bd67694c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json index 48eb598fbfc1..5ee50abfdcd1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "collectionRid": "collectionRid", "subscriptionId": "subid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json index 222c4ecf6de6..184fa1e83fc0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json index e6191e852086..4a55193a5de0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json @@ -1,7 +1,7 @@ { "parameters": { "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json index 614228e28649..3572b10d53e8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json index a80e6ec998b1..27d2c44935b4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json index f7667487a0c8..4ca542defa41 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json index 8ced70e0e786..07ca599fdc42 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1-failover", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "failoverParameters": { "failoverPolicies": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json index 9142e948af5c..f973f40efe55 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json index f8c818d127d5..da6ddcf7130e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json index 9e82e81edf7b..6f393c23c023 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json index 2433a5c7676b..4341c6cbb9d7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json index 3fc364bc2f89..ca3367e7b4ad 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json index ec00e9c5c5e8..0c0a415abd81 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "resourceGroupName": "rg1", "subscriptionId": "subid" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json index d7d584ac1f78..9476ec634f68 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json index 47578f523f5d..e25d6487396e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "mongo-ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json index cdb931afb789..92ce33ec21f3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json index e4580dc468d0..9e1675013464 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json index 1e4afdf36328..9d2c27f29ef8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOffline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json index 9288fb4f8746..72a6f833f84a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "regionParameterForOnline": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json index e9b74e2f4edb..045b75765b9f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "updateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json index 93a94b0ce3a5..b50f4668f635 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "keyToRegenerate": { "keyKind": "primary" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json index 62fd19f34947..8bb7d1173094 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "region": "North Europe", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json index c0cf339a0b59..d4a7fd991eb0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json @@ -3,7 +3,7 @@ "accountName": "ddb1", "resourceGroupName": "rg1", "subscriptionId": "subid", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json index 5f241390ddd5..7a1876bf2885 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "rid", "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json index 4b4496f0ef29..ba14a11ddcf7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "databaseRid": "databaseRid", "subscriptionId": "subid", "$filter": "$filter=name.value eq 'Storage'" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json index d30634855a94..8d6ac37b737c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateGremlinDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json index 4e65ecf8cec2..96063846445a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json index 932545fb8436..96fc1a6193cb 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json index ebd4bcdfce9d..78687a29c0fc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json index 10dcce2c374a..fddd5966fc37 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json index 853700f96be9..cbe2b866e27e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json index 5535bf2acac6..b8e4928304cc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json index 7ea69c3668f5..2c0a56a13205 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json index 992719204f68..17b27ec7a0c8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json index 58b4487ab5fa..a088633a92a6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json index 398c8ee6d7d5..c2dda9ec6489 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json index 47aca48db823..35a2b743af3f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json index 35a14c65a941..bbf997f95914 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "graphName": "graphName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json index bcdba9fdd794..cbbed0c083f2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "00000000-0000-0000-0000-000000000000", "location": "westus" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json index b5e69ba1ad40..04faaf3df6ef 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json index ef97b7ef9429..c5ea74b81cec 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json index 1ed36da8e33d..370799f79af6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json index 7b42aa003b20..6c0d0cbd082c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json index e839a90a1fe5..648e27ac86c3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json index 41f3fcef9e0c..db4d61b96508 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json index b4c0f1e0bf16..c6130a24df0e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json index b68a843a7844..b85de747c670 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json index bd741999b213..b99b63588318 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json index 56c7c0394192..cccd9db1dbf6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "collectionName": "collectionName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json index 4af546f1a560..d4ae327cfe4b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateMongoDBDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json index c210be4fdc75..1d2d0768367e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json index 0ea694a51d3f..431ef6fc3d7c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json index e1a6c92d8f05..461a6a4b6ee5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json index 651007f34514..75d039aa43d7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json index c1596e03062c..4d9784cdee8a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json index 95cf3de3abdb..89f1025a831f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "notebookWorkspaceName": "default" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json index 5d2f05cf0408..7150f778cc93 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json index e7b639168746..b50348991147 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json index 4cfa15cc8828..62130915755e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json index 4a799f7f069d..8d561cbc529e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json index 4a799f7f069d..8d561cbc529e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rg1", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json index d8963137794c..6eb5f19249a1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json index 9a23d8e44c81..702208c13060 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json index b3d5b79ba900..086821d662a7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json index 3db32b26ea1e..4eb411017a39 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json index 5a8da3121829..55261a9b944e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "sourceRegion": "West Central US", "targetRegion": "East US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json index a0acdfcd5f6e..bf4d32f61b2f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "targetRegion": "East US", "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json index 7d2e4114c2e7..d3e18d046d6f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json index 6ca58ecba75b..c926930829d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json index a6600f63c726..b3f80140c296 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json index cff319a4cfd4..31a78abee84b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "privateEndpointConnectionName": "privateEndpointConnectionName", "parameters": { "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json index 1bd0ac7d304c..f8329726918e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "groupName": "sql" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json index 9af9dab55429..75c4dee5f3b9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "rg1", "accountName": "ddb1", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json index 566a6a83c015..43c076120ae3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseRid": "databaseRid", "collectionRid": "collectionRid", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json index 30ad7aba1efd..2f5de717c89c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "West US", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json index 355e5f03b867..56d2f3f2e371 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "West US" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json index fd05181c3985..369818198338 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json index ba8cd4a03f57..e5a06318f0fe 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json index 268d955d93d2..2bf2b90d2ed3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json index 164c97b07d65..e3ae5c2c7aa9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json index ad1bc43583f4..874749bd5fb4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "location": "WestUS", "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json index bc14a8b29664..e255d0ab9a38 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json index 07bb48fce2d5..7e3261f0f655 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", "location": "WestUS", "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json index aad35b3e274c..b3e6ba3bdbb2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "createUpdateParameters": { "location": "westus", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json index caf40baa38d8..dbfabfe6a849 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json index 6a8c6f4596ec..f4bbdf10b787 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json index 1718430eebf1..5976f669ce65 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json index 085a6dee7eb9..772663ca4246 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json index e110fca6e342..8dba37096b56 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json index 76d6289bc33f..bf351118fc6c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json index 0a40503089c9..0ea4f2b5133d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json index a62019a4c776..0581a13e5976 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json index 4f5bc429bf1b..57d61253f430 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json index cfbe03239e5e..7dccefcd766e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "createUpdateSqlDatabaseParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json index 16b152a6c16f..12f6864e3f12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json index b082584a9099..8d2a6b125859 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json index 8380adad4a26..c8d731807c33 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json index 684ccddd4867..97b36fdad6f8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json index 3c323e9b122b..086f8fd89505 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json index d77caabfdefc..2744ba7bb7bd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json index 197f656fce98..e1b281676e2c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json index 98a784bb9a04..244417c29535 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "createUpdateSqlRoleAssignmentParameters": { "properties": { "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json index 1b79b01aa8dd..e38c9103fa8c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json index 890a11e4070b..da35cd250866 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json index 6c05278b0cdb..e6a0beb2704e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json index 29b03e6a8b8a..ff5859f41d6f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "createUpdateSqlRoleDefinitionParameters": { "properties": { "roleName": "myRoleName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json index 78da79507806..da3fa5deadc4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json index c97d415d2ef4..69889ad20194 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json @@ -4,7 +4,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json index c571ffe69b93..f8bf45e26def 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-09-15" + "api-version": "2021-10-15" }, "responses": { "200": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json index 7f51829a419a..dd1306aeeca7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json index f963f965b8fc..36ca28d6ee4b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json index d6c2883129d9..85d2fa4d1faa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json index af33b75ddbff..7fbfbab041d6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json index 000e5e92d89c..6b2152600c47 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json index 373cf9eab071..d39536e48255 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json index 5f3702e3eb63..d09e41bafe50 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json index e98718cc543d..47130b23aeb9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json index e608546bb8d4..e23ecde0e880 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json index 6502b4e55d11..885ba9ae92f1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "databaseName": "databaseName", "containerName": "containerName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json index 4f78d3210454..482a108c376f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json index 816606273935..11540ca36822 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json index b13884da9689..67d423373ce8 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName", "createUpdateTableParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json index 10fcd67e0288..87fe4945cc73 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json index 903bd252bab3..ffa290b50f6c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json index 0a161805875c..433b68b6df13 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "resourceGroupName": "rgName", "accountName": "ddb1" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json index 92c0fe6a0abc..231b0d94efdd 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json index 48e15131b546..1f1630a8c188 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json index f73a6286241a..35ffb86c662e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName" }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json index 4b8cff700813..e3d214e659de 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "ddb1", "resourceGroupName": "rg1", - "api-version": "2021-09-15", + "api-version": "2021-10-15", "subscriptionId": "subid", "tableName": "tableName", "updateThroughputParameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json index 58c52d0b4d4d..f87b5d1579d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -68,7 +68,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -210,7 +210,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -260,7 +260,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -306,7 +306,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -352,7 +352,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -365,7 +365,7 @@ "type": "object", "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, @@ -394,7 +394,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json index 0c34ccca9dd1..68b7650f832e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -155,7 +155,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -199,7 +199,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json index cc42162a5380..0592b65ece67 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -139,7 +139,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json index 84dac74549fa..6c9dc9b87f62 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json index 07363e08eae4..cc57615fdf00 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -769,10 +769,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlDatabaseResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlDatabaseResource" }, { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -867,10 +867,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlContainerResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlContainerResource" }, { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -885,7 +885,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable SQL resources, including the database and collection names." } @@ -1057,7 +1057,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable MongoDB resources, including the database and collection names." } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json index 6c92060e762a..462ed6738ec9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -6147,7 +6147,7 @@ "readOnly": true, "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", "items": { - "$ref": "../../stable/2021-09-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" + "$ref": "../../stable/2021-10-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" } }, "enableMultipleWriteLocations": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json index 58c52d0b4d4d..f87b5d1579d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/notebook.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -68,7 +68,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -210,7 +210,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -260,7 +260,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -306,7 +306,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -352,7 +352,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } } @@ -365,7 +365,7 @@ "type": "object", "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, @@ -394,7 +394,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json index 0c34ccca9dd1..68b7650f832e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -155,7 +155,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, @@ -199,7 +199,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ErrorResponse" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json index cc42162a5380..0592b65ece67 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -139,7 +139,7 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ARMProxyResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json index 84dac74549fa..6c9dc9b87f62 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/rbac.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json index 07363e08eae4..cc57615fdf00 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/restorable.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-09-15" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -769,10 +769,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlDatabaseResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlDatabaseResource" }, { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -867,10 +867,10 @@ }, "allOf": [ { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/SqlContainerResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlContainerResource" }, { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/ExtendedResourceProperties" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" } ] } @@ -885,7 +885,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable SQL resources, including the database and collection names." } @@ -1057,7 +1057,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "../../stable/2021-09-15/cosmos-db.json#/definitions/DatabaseRestoreResource" + "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" }, "description": "List of restorable MongoDB resources, including the database and collection names." } From 7b2af4cb70a395e0a4abf29367528cfa24cef334 Mon Sep 17 00:00:00 2001 From: Anuj Toshniwal Date: Tue, 31 Aug 2021 18:19:16 +0530 Subject: [PATCH 10/50] fix validation checks --- .../preview/2021-10-15-preview/cosmos-db.json | 9 ++- ...smosDBClientEncryptionKeyCreateUpdate.json | 32 ++++---- .../CosmosDBClientEncryptionKeyGet.json | 2 +- .../CosmosDBClientEncryptionKeysList.json | 78 +++++++++---------- .../cosmos-db/resource-manager/readme.md | 14 ++++ 5 files changed, 75 insertions(+), 60 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json index f7855484ed38..7ec850217434 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15" + "version": "2021-10-15-preview" }, "host": "management.azure.com", "schemes": [ @@ -1850,7 +1850,7 @@ "$ref": "#/definitions/ClientEncryptionKeyGetResults" } }, - "404": { + "404": { "description": "Not Found." } } @@ -1901,8 +1901,9 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { "get": { "operationId": "SqlResources_ListSqlContainers", "x-ms-examples": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json index 563235f61d3a..41d7582a84d2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json @@ -6,20 +6,20 @@ "accountName": "accountName", "databaseName": "databaseName", "clientEncryptionKeyName": "cekName", - "createUpdateClientEncryptionKeyParameters": { - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", - "keyWrapMetadata": { - "name": "customerManagedKey", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL" - } - }, - "options": {} - } - } + "createUpdateClientEncryptionKeyParameters": { + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek", + "keyWrapMetadata": { + "name": "customerManagedKey", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL" + } + }, + "options": {} + } + } }, "responses": { "200": { @@ -30,7 +30,7 @@ "properties": { "resource": { "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", + "wrappedDataEncryptionKey": "wrappedDek", "keyWrapMetadata": { "name": "customerManagedKey", "type": "AzureKeyVault", @@ -44,4 +44,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json index 43b158de8a0e..7ee75ab6c329 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json @@ -16,7 +16,7 @@ "properties": { "resource": { "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", + "wrappedDataEncryptionKey": "wrappedDek", "keyWrapMetadata": { "name": "customerManagedKey", "type": "AzureKeyVault", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json index 376b857f172f..d407673b468f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json @@ -9,46 +9,46 @@ "responses": { "200": { "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName1", - "name": "cekName1", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek1", - "keyWrapMetadata": { - "name": "customerManagedKey1", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL for customerManagedKey1" - }, - "_rid": "nAMyAAAAAADPw1kKAgAAAA==", - "_ts": 1626425552, - "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" - } - } - }, + "value": [ { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName2", - "name": "cekName2", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek2", - "keyWrapMetadata": { - "name": "customerManagedKey2", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL for customerManagedKey2" - }, - "_rid": "nAMyAAAAAAAWWfxHAgAAAA==", - "_ts": 1626425631, - "_etag": "\"00000000-0000-0000-7a21-7788a38c01d7\"" - } - } - } - ] + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName1", + "name": "cekName1", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek1", + "keyWrapMetadata": { + "name": "customerManagedKey1", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL for customerManagedKey1" + }, + "_rid": "nAMyAAAAAADPw1kKAgAAAA==", + "_ts": 1626425552, + "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" + } + } + }, + { + "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName2", + "name": "cekName2", + "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", + "properties": { + "resource": { + "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", + "wrappedDataEncryptionKey": "wrappedDek2", + "keyWrapMetadata": { + "name": "customerManagedKey2", + "type": "AzureKeyVault", + "value": "AzureKeyVault Key URL for customerManagedKey2" + }, + "_rid": "nAMyAAAAAAAWWfxHAgAAAA==", + "_ts": 1626425631, + "_etag": "\"00000000-0000-0000-7a21-7788a38c01d7\"" + } + } + } + ] } } } diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 108acc121aa9..45a42a0be193 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -44,6 +44,20 @@ input-file: - Microsoft.DocumentDB/stable/2021-10-15/restorable.json ``` +### Tag: package-2021-10-preview + +These settings apply only when `--tag=package-2021-10-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-10-preview' +input-file: + - Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json +``` + ### Tag: package-2021-06 These settings apply only when `--tag=package-2021-06` is specified on the command line. From b53348e2509d892cb5b8cf8ef2a23d821b9060df Mon Sep 17 00:00:00 2001 From: Anuj Toshniwal Date: Tue, 31 Aug 2021 18:29:10 +0530 Subject: [PATCH 11/50] add clientencryptionkeys to custom-words --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index cfe6420bea89..06de44ce006a 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -340,6 +340,7 @@ claimType clfs Clickthrough clientaccesspolicy +clientencryptionkeys clienterror clientgroup clientlib From b31a3c70fd401488cfeb1f63c7417eafba7a9a78 Mon Sep 17 00:00:00 2001 From: Abhijit Karanjkar Date: Thu, 2 Sep 2021 00:02:10 +0000 Subject: [PATCH 12/50] initial commit --- .../preview/2021-10-15-preview/mongorbac.json | 601 ++++++++++++++++++ 1 file changed, 601 insertions(+) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json new file mode 100644 index 000000000000..5614c34826ad --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json @@ -0,0 +1,601 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB", + "description": "Azure Cosmos DB API for MongoDB Role Based Access Control Resource Provider REST API", + "version": "2021-06-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoRoleDefinitions/{roleDefinitionId}": { + "get": { + "operationId": "MongoDBResources_GetMongoRoleDefinition", + "x-ms-examples": { + "CosmosDBMongoRoleDefinitionGet": { + "$ref": "./examples/CosmosDBMongoDBRoleDefinitionGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Mongo Role Definition was successfully retrieved.", + "schema": { + "$ref": "#/definitions/MongoRoleDefinitionGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoRoleDefinition", + "x-ms-examples": { + "CosmosDBMongoDBRoleDefinitionCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB Mongo Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/roleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoRoleDefinitionParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a Role Definition.", + "schema": { + "$ref": "#/definitions/MongoRoleDefinitionCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The Mongo Role Definition create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoRoleDefinitionGetResults" + } + }, + "202": { + "description": "The Mongo Role Definition create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoRoleDefinition", + "x-ms-examples": { + "CosmosDBMongoDBRoleDefinitionDelete": { + "$ref": "./examples/CosmosDBMongoDBRoleDefinitionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB Mongo Role Definition.", + "parameters": [ + { + "$ref": "#/parameters/mongoRoleDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Mongo Role Definition delete operation was completed successfully." + }, + "202": { + "description": "The Mongo Role Definition delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested Mongo Role Definition does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoRoleDefinitions": { + "get": { + "operationId": "MongoDBResources_ListMongoRoleDefinitions", + "x-ms-examples": { + "CosmosDBMongoDBRoleDefinitionList": { + "$ref": "./examples/CosmosDBMongoDBRoleDefinitionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/MongoRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoUserDefinitions/{userDefinitionId}": { + "get": { + "operationId": "MongoDBResources_GetMongoUserDefinition", + "x-ms-examples": { + "CosmosDBMongoDBUserDefinitionGet": { + "$ref": "./examples/CosmosDBMongoDBUserDefinitionGet.json" + } + }, + "description": "Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id.", + "parameters": [ + { + "$ref": "#/parameters/userDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The User Definition was successfully retrieved.", + "schema": { + "$ref": "#/definitions/MongoUserDefinitionGetResults" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "MongoDBResources_CreateUpdateMongoUserDefinition", + "x-ms-examples": { + "CosmosDBMongoDBUserDefinitionCreateUpdate": { + "$ref": "./examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Creates or updates an Azure Cosmos DB Mongo User Definition.", + "parameters": [ + { + "$ref": "#/parameters/UserDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "createUpdateMongoUserDefinitionParameters", + "in": "body", + "required": true, + "description": "The properties required to create or update a User Definition.", + "schema": { + "$ref": "#/definitions/MongoUserDefinitionCreateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The User Definition create or update operation was completed successfully.", + "schema": { + "$ref": "#/definitions/MongoUserDefinitionGetResults" + } + }, + "202": { + "description": "The User Definition create or update request was accepted and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "MongoDBResources_DeleteMongoUserDefinition", + "x-ms-examples": { + "CosmosDBMongoDBUserDefinitionDelete": { + "$ref": "./examples/CosmosDBMongoDBUserDefinitionDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes an existing Azure Cosmos DB Mongo User Definition.", + "parameters": [ + { + "$ref": "#/parameters/userDefinitionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The User Definition delete operation was completed successfully." + }, + "202": { + "description": "The User Definition delete request was accepted and will complete asynchronously." + }, + "204": { + "description": "The requested User Definition does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoUserDefinitions": { + "get": { + "operationId": "MongoDBResources_ListMongoUserDefinitions", + "x-ms-examples": { + "CosmosDBMongoDBUserDefinitionList": { + "$ref": "./examples/CosmosDBMongoDBUserDefinitionList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "description": "Retrieves the list of all Azure Cosmos DB Mongo User Definition.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "cosmos-db.json#/parameters/accountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list operation completed successfully.", + "schema": { + "$ref": "#/definitions/MongoUserDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "MongoRoleDefinitionResource": { + "properties": { + "roleName": { + "type": "string", + "description": "A user-friendly name for the Role Definition. Must be unique for the database account." + }, + "type": { + "type": "string", + "enum": [ + "BuiltInRole", + "CustomRole" + ], + "description": "Indicates whether the Role Definition was built-in or user created.", + "x-ms-enum": { + "name": "MongoRoleDefinitionType", + "modelAsString": false + } + }, + "privileges": { + "type": "array", + "items": { + "$ref": "#/definitions/Privilege" + }, + "description": "A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege." + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "description": "The set of roles inherited by this Role Definition." + } + }, + "description": "Azure Cosmos DB Mongo Role Definition resource object." + }, + "MongoRoleDefinitionCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB Mongo Role Definition.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB Mongo Role Definition.", + "$ref": "#/definitions/MongoRoleDefinitionResource" + } + } + }, + "MongoRoleDefinitionGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MongoRoleDefinitionResource", + "description": "Properties related to the Mongo Role Definition." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB Mongo Role Definition." + }, + "Privilege": { + "type": "object", + "properties": { + "resource": { + "type": "object", + "properties": { + "db": { + "type": "string", + "description": "The database name the role is applied." + }, + "collection": { + "type": "string", + "description": "The collection name the role is applied." + }, + "description": "An array of data actions that are allowed." + } + }, + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "An array of actions that are allowed." + } + }, + "description": "The set of data plane operations permitted through this Role Definition." + }, + "Role": { + "type": "object", + "properties": { + "db": { + "type": "string", + "description": "The database name the role is applied." + }, + "role": { + "type": "string", + "description": "The role name." + } + } , + "description": "The set of roles permitted through this Role Definition." + }, + "MongoRoleDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MongoRoleDefinitionGetResults" + }, + "description": "List of Mongo Role Definitions and their properties." + } + }, + "description": "The relevant Mongo Role Definitions." + }, + "MongoUserDefinitionResource": { + "type": "object", + "properties": { + "userName": { + "type": "string", + "description": "The user name for User Definition." + }, + "databaseName": { + "type": "string", + "description": "The database name for which access is being granted for this User Definition." + }, + "customData": { + "type": "string", + "description": "A custom definition for the USer Definition." + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "description": "The set of roles inherited by the User Definition." + } + }, + "description": "Azure Cosmos DB Mongo User Definition resource object." + }, + "MongoUserDefinitionCreateUpdateParameters": { + "description": "Parameters to create and update an Azure Cosmos DB Mongo User Definition.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties to create and update an Azure Cosmos DB Mongo User Definition.", + "$ref": "#/definitions/MongoUserDefinitionResource" + } + } + }, + "MongoUserDefinitionGetResults": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MongoUserDefinitionResource", + "description": "Properties related to the User Definition." + } + }, + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "description": "An Azure Cosmos DB User Definition" + }, + "MongoUserDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MongoUserDefinitionGetResults" + }, + "description": "List of User Definition and their properties" + } + }, + "description": "The relevant User Definition." + } + }, + "parameters": { + "roleDefinitionIdParameter": { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The ID for the Role Definition {dbName.roleName}." + }, + "userDefinitionIdParameter": { + "name": "userDefinitionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The ID for the User Definition {dbName.userName}." + } + } +} From 3ad96340d67376eacb69e7020ccd69ff5552bc55 Mon Sep 17 00:00:00 2001 From: Abhijit Karanjkar Date: Thu, 2 Sep 2021 00:10:20 +0000 Subject: [PATCH 13/50] Swagger specifiations --- ...osDBMongoDBRoleDefinitionCreateUpdate.json | 66 +++++++++++++++++++ .../CosmosDBMongoDBRoleDefinitionDelete.json | 14 ++++ .../CosmosDBMongoDBRoleDefinitionGet.json | 42 ++++++++++++ .../CosmosDBMongoDBRoleDefinitionList.json | 44 +++++++++++++ ...osDBMongoDBUserDefinitionCreateUpdate.json | 47 +++++++++++++ .../CosmosDBMongoDBUserDefinitionDelete.json | 15 +++++ .../CosmosDBMongoDBUserDefinitionGet.json | 31 +++++++++ .../CosmosDBMongoDBUserDefinitionList.json | 33 ++++++++++ 8 files changed, 292 insertions(+) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json new file mode 100644 index 000000000000..ad9c0b3c1b53 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-10-15-preview", + "createUpdateMongoDbRoleDefinitionParameters": { + "properties": { + "roleName": "myRoleName", + "databaseName": "sales", + "privileges": [ + { + "resource": { + "db": "sales", + "collection": "sales" + }, + "actions": [ + "insert", + "find" + ] + } + ], + "roles": [ + { + "role": "myInheritedRole", + "db": "sales" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId", + "name": "myMongoDbRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "databaseName": "sales", + "privileges": [ + { + "resource": { + "db": "sales", + "collection": "coll" + }, + "actions": [ + "find", + "insert" + ] + } + ], + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ] + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json new file mode 100644 index 000000000000..9d68ddad1c60 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-10-15-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json new file mode 100644 index 000000000000..7bba5df7f838 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", + "databaseName": "sales", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-10-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId", + "name": "myMongoRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/mongoRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "databaseName": "sales", + "privileges": [ + { + "resource": { + "db": "sales", + "collection": "coll" + }, + "actions": [ + "find", + "insert" + ] + } + ], + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json new file mode 100644 index 000000000000..bd195613f08c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-10-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongoRoleDefinitions/myRoleDefinitionId", + "name": "myRoleDefinitionId", + "type": "Microsoft.DocumentDB/databaseAccounts/mongoRoleDefinitions", + "properties": { + "roleName": "myRoleName", + "type": "CustomRole", + "databaseName": "sales", + "privileges": [ + { + "resource": { + "db": "sales", + "collection": "coll" + }, + "actions": [ + "find", + "insert" + ] + } + ], + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json new file mode 100644 index 000000000000..26cce7c91e67 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "userName": "myUserName", + "databaseName": "sales", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-10-15-preview", + "createUpdateMongoDbRoleDefinitionParameters": { + "properties": { + "userName": "myUserName", + "password": "myPassword", + "databaseName": "sales", + "customData": "My custom data", + "roles": [ + { + "role": "myReadRole", + "db": "sales" + } + ], + "mechanisms": "SCRAM-SHA-256" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", + "name": "myUserName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", + "properties": { + "userName": "myUserName", + "databaseName": "sales", + "customData": "My custom data", + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ], + "mechanisms": "SCRAM-SHA-256" + } + } + }, + "202": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json new file mode 100644 index 000000000000..223af6215859 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "userName": "myUserName", + "databaseName": "sales", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json new file mode 100644 index 000000000000..505eb6e87698 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "userName": "myUserName", + "databaseName": "sales", + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", + "name": "myUserName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", + "properties": { + "userName": "myUserName", + "databaseName": "sales", + "customData": "My custom data", + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ], + "mechanisms": "SCRAM-SHA-256" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json new file mode 100644 index 000000000000..98a992f4dc2e --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "accountName": "myAccountName", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", + "name": "myUserName", + "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", + "properties": { + "userName": "myUserName", + "databaseName": "sales", + "customData": "My custom data", + "roles": [ + { + "db": "sales", + "role": "myReadRole" + } + ], + "mechanisms": "SCRAM-SHA-256" + } + } + ] + } + } + } +} From 78ea4074a9ff348e9e417e842a5342ac03e00b28 Mon Sep 17 00:00:00 2001 From: Abhijit Karanjkar Date: Thu, 2 Sep 2021 00:16:24 +0000 Subject: [PATCH 14/50] readme file updated --- specification/cosmos-db/resource-manager/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 45a42a0be193..2a9b7ded9a7f 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -42,6 +42,7 @@ input-file: - Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json - Microsoft.DocumentDB/stable/2021-10-15/rbac.json - Microsoft.DocumentDB/stable/2021-10-15/restorable.json + - Microsoft.DocumentDB/stable/2021-10-15/mongorbac.json ``` ### Tag: package-2021-10-preview @@ -56,6 +57,7 @@ input-file: - Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json - Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json - Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json + - Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json ``` ### Tag: package-2021-06 From 0eeb4ed0eaf727196e53a325b4b508c0863b850a Mon Sep 17 00:00:00 2001 From: Abhijit Karanjkar Date: Wed, 8 Sep 2021 20:10:54 +0000 Subject: [PATCH 15/50] Review comments addressed --- .../examples/CosmosDBMongoDBUserDefinitionDelete.json | 2 +- .../examples/CosmosDBMongoDBUserDefinitionGet.json | 4 ++-- .../examples/CosmosDBMongoDBUserDefinitionList.json | 4 ++-- .../preview/2021-10-15-preview/mongorbac.json | 2 +- specification/cosmos-db/resource-manager/readme.md | 1 - 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json index 223af6215859..df5774b28c96 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json @@ -5,7 +5,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-07-01-preview" + "api-version": "2021-10-15-preview" }, "responses": { "200": {}, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json index 505eb6e87698..7ae249019751 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json @@ -5,13 +5,13 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-07-01-preview" + "api-version": "2021-10-15-preview" }, "responses": { "200": { "body": { "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", - "name": "myUserName", + "name": "myUserId", "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", "properties": { "userName": "myUserName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json index 98a992f4dc2e..392ac233b6a5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json @@ -3,7 +3,7 @@ "subscriptionId": "mySubscriptionId", "resourceGroupName": "myResourceGroupName", "accountName": "myAccountName", - "api-version": "2021-07-01-preview" + "api-version": "2021-10-15-preview" }, "responses": { "200": { @@ -11,7 +11,7 @@ "value": [ { "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", - "name": "myUserName", + "name": "myUserId", "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", "properties": { "userName": "myUserName", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json index 5614c34826ad..e5a528e111b2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB", "description": "Azure Cosmos DB API for MongoDB Role Based Access Control Resource Provider REST API", - "version": "2021-06-15" + "version": "2021-10-15-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 2a9b7ded9a7f..f1185593b1fd 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -42,7 +42,6 @@ input-file: - Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json - Microsoft.DocumentDB/stable/2021-10-15/rbac.json - Microsoft.DocumentDB/stable/2021-10-15/restorable.json - - Microsoft.DocumentDB/stable/2021-10-15/mongorbac.json ``` ### Tag: package-2021-10-preview From f3229eef4b719d661120f36e52d950d98c400a0f Mon Sep 17 00:00:00 2001 From: Praful Johari Date: Tue, 24 Aug 2021 01:52:47 -0700 Subject: [PATCH 16/50] Added TotalThroughputLimit property to Database Create and Update --- .../CosmosDBDatabaseAccountCreateMax.json | 10 ++++++-- .../CosmosDBDatabaseAccountPatch.json | 10 ++++++-- .../stable/2021-10-15/cosmos-db.json | 24 +++++++++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json index 3572b10d53e8..3dcccf80ecf2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -76,7 +76,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } }, @@ -205,7 +208,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, }, "systemData": { "createdAt": "2021-03-12T22:05:09Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json index 045b75765b9f..ba55d4d52309 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json @@ -53,7 +53,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } }, @@ -171,7 +174,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json index 462ed6738ec9..fb708640239c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json @@ -6238,6 +6238,10 @@ "disableLocalAuth": { "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", "type": "boolean" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "$ref": "#/definitions/Capacity" } } }, @@ -6369,6 +6373,10 @@ "description": "Parameters to indicate the information about the restore.", "type": "object", "$ref": "#/definitions/RestoreParameters" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "$ref": "#/definitions/Capacity" } }, "required": [ @@ -6524,6 +6532,10 @@ "disableLocalAuth": { "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", "type": "boolean" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "$ref": "#/definitions/Capacity" } } }, @@ -7883,6 +7895,18 @@ } } }, + "Capacity": { + "type": "object", + "description": "The object that represents all properties related to capacity enforcement on an account.", + "properties": { + "totalThroughputLimit": { + "type": "integer", + "minimum": -1, + "format": "int32", + "description": "The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput." + } + } + }, "Tags": { "type": "object", "additionalProperties": { From e6c0a40bcaddd9f5708a5be5c5999be5d50d85f2 Mon Sep 17 00:00:00 2001 From: Praful Johari Date: Tue, 21 Sep 2021 11:47:33 -0700 Subject: [PATCH 17/50] Rebased and added type to capacity --- .../Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json index fb708640239c..c65758db1a79 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json @@ -6241,6 +6241,7 @@ }, "capacity": { "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", "$ref": "#/definitions/Capacity" } } @@ -6376,6 +6377,7 @@ }, "capacity": { "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", "$ref": "#/definitions/Capacity" } }, @@ -6535,6 +6537,7 @@ }, "capacity": { "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", "$ref": "#/definitions/Capacity" } } From a8061ad07effb39860c2d537eee305649fa1fad8 Mon Sep 17 00:00:00 2001 From: Praful Johari Date: Tue, 21 Sep 2021 12:12:02 -0700 Subject: [PATCH 18/50] Added changes to preview folder as well --- .../preview/2021-10-15-preview/cosmos-db.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json index 7ec850217434..7c6ea9622213 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json @@ -6442,6 +6442,11 @@ "disableLocalAuth": { "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", "type": "boolean" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", + "$ref": "#/definitions/Capacity" } } }, @@ -6573,6 +6578,11 @@ "description": "Parameters to indicate the information about the restore.", "type": "object", "$ref": "#/definitions/RestoreParameters" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", + "$ref": "#/definitions/Capacity" } }, "required": [ @@ -6728,6 +6738,11 @@ "disableLocalAuth": { "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", "type": "boolean" + }, + "capacity": { + "description": "The object that represents all properties related to capacity enforcement on an account.", + "type": "object", + "$ref": "#/definitions/Capacity" } } }, @@ -8123,6 +8138,18 @@ } } }, + "Capacity": { + "type": "object", + "description": "The object that represents all properties related to capacity enforcement on an account.", + "properties": { + "totalThroughputLimit": { + "type": "integer", + "minimum": -1, + "format": "int32", + "description": "The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput." + } + } + }, "Tags": { "type": "object", "additionalProperties": { From 559c379aff690e6f3b4707d678d537bc3a060fc4 Mon Sep 17 00:00:00 2001 From: Praful Johari Date: Tue, 21 Sep 2021 12:14:50 -0700 Subject: [PATCH 19/50] Added changes to missing files --- .../examples/CosmosDBDatabaseAccountCreateMax.json | 10 ++++++++-- .../examples/CosmosDBDatabaseAccountPatch.json | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json index 3572b10d53e8..3dcccf80ecf2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -76,7 +76,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } }, @@ -205,7 +208,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, }, "systemData": { "createdAt": "2021-03-12T22:05:09Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json index 045b75765b9f..ba55d4d52309 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json @@ -53,7 +53,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } }, @@ -171,7 +174,10 @@ "networkAclBypass": "AzureServices", "networkAclBypassResourceIds": [ "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ] + ], + "capacity": { + "totalThroughputLimit": 2000 + }, } } } From 4dfe3b3f7ad9be1e847fadd87170edb6138c5b26 Mon Sep 17 00:00:00 2001 From: visunda Date: Thu, 30 Sep 2021 15:42:31 -0700 Subject: [PATCH 20/50] initial checkin of base version --- .../stable/2021-10-15/managedCassandra.json | 1109 +++++++++++++++++ 1 file changed, 1109 insertions(+) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json new file mode 100644 index 000000000000..6754b9d6e5cc --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -0,0 +1,1109 @@ +{ + "swagger": "2.0", + "info": { + "title": "Cosmos DB - Managed Cassandra", + "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", + "version": "2021-04-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListBySubscription", + "description": "List all managed Cassandra clusters in this subscription.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListBySubscription": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListByResourceGroup", + "description": "List all managed Cassandra clusters in this resource group.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListByResourceGroup": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}": { + "get": { + "operationId": "CassandraClusters_Get", + "description": "Get the properties of a managed Cassandra cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterGet": { + "$ref": "./examples/CosmosDBManagedCassandraClusterGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra cluster were retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "CassandraClusters_Delete", + "description": "Deletes a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraClusterDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The managed Cassandra cluster will be deleted asynchronously." + }, + "204": { + "description": "No such cluster to delete." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "CassandraClusters_CreateUpdate", + "description": "Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraClusterCreate.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" + }, + "description": "The properties specifying the desired state of the managed Cassandra cluster." + } + ], + "responses": { + "200": { + "description": "The managed Cassandra cluster is being updated. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "201": { + "description": "The managed Cassandra cluster is being created. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "operationId": "CassandraClusters_Update", + "description": "Updates some of the properties of a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterPatch": { + "$ref": "./examples/CosmosDBManagedCassandraClusterPatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" + }, + "description": "Parameters to provide for specifying the managed Cassandra cluster." + } + ], + "responses": { + "202": { + "description": "The managed Cassandra cluster is being updated. Poll the provided operation for completion.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra data center.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { + "post": { + "operationId": "CassandraClusters_RequestRepair", + "description": "Request that repair begin on this cluster as soon as possible.", + "x-ms-examples": { + "CosmosDBManagedCassandraRepair": { + "$ref": "./examples/CosmosDBManagedCassandraRepair.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RepairPostBody" + }, + "description": "Specification of what keyspaces and tables to run repair on." + } + ], + "responses": { + "200": { + "description": "Success. The repair operation will begin as soon as possible." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { + "post": { + "operationId": "CassandraClusters_FetchNodeStatus", + "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterFetchNodeStatus": { + "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The node status will be returned asynchronously." + }, + "200": { + "description": "Successfully fetched the status of all nodes in the cluster.", + "schema": { + "$ref": "#/definitions/ClusterNodeStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { + "get": { + "operationId": "CassandraClusters_ListBackups", + "description": "List the backups of this cluster that are available to restore.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraBackupsList": { + "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", + "schema": { + "$ref": "#/definitions/ListBackups" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { + "get": { + "operationId": "CassandraClusters_GetBackup", + "description": "Get the properties of an individual backup of this cluster that is available to restore.", + "x-ms-examples": { + "CosmosDBManagedCassandraBackup": { + "$ref": "./examples/CosmosDBManagedCassandraBackup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/backupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the properties of the backup.", + "schema": { + "$ref": "#/definitions/BackupResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { + "get": { + "operationId": "CassandraDataCenters_List", + "description": "List all data centers in a particular managed Cassandra cluster.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterList": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra data centers.", + "schema": { + "$ref": "#/definitions/ListDataCenters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}": { + "get": { + "operationId": "CassandraDataCenters_Get", + "description": "Get the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterGet": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra data center were retrieved successfully.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "operationId": "CassandraDataCenters_Delete", + "description": "Delete a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterDelete.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. Deletion will complete asynchronously." + }, + "204": { + "description": "Cassandra cluster with the specified name does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "put": { + "operationId": "CassandraDataCenters_CreateUpdate", + "description": "Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterCreate.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters specifying the managed Cassandra data center." + } + ], + "responses": { + "201": { + "description": "Accepted. The data center will be created asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "200": { + "description": "Accepted. The data center will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "operationId": "CassandraDataCenters_Update", + "description": "Update some of the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterUpdate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterPatch.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters to provide for specifying the managed Cassandra data center." + } + ], + "responses": { + "202": { + "description": "Accepted. Update will proceed asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra cluster, such as editing the tags.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + } + }, + "parameters": { + "clusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Managed Cassandra cluster name.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "dataCenterNameParameter": { + "name": "dataCenterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Data center name in a managed Cassandra cluster.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "backupNameParameter": { + "name": "backupId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Id of a restorable backup of a Cassandra cluster.", + "minLength": 1, + "maxLength": 15, + "pattern": "^[0-9]+$" + } + }, + "definitions": { + "ListClusters": { + "description": "List of managed Cassandra clusters.", + "readOnly": true, + "type": "object", + "properties": { + "value": { + "description": "Container for the array of clusters.", + "type": "array", + "items": { + "$ref": "#/definitions/ClusterResource" + } + } + } + }, + "ManagedCassandraProvisioningState": { + "description": "The status of the resource at the time the operation was called.", + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ManagedCassandraProvisioningState", + "modelAsString": true + } + }, + "ClusterResource": { + "description": "Representation of a managed Cassandra cluster.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" + } + ], + "properties": { + "properties": { + "type": "object", + "description": "Properties of a managed Cassandra cluster.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" + }, + "restoreFromBackupId": { + "type": "string", + "x-ms-mutability": [ + "create" + ], + "description": "To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup." + }, + "delegatedManagementSubnetId": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'" + }, + "cassandraVersion": { + "type": "string", + "description": "Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version." + }, + "clusterNameOverride": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property." + }, + "authenticationMethod": { + "type": "string", + "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", + "enum": [ + "None", + "Cassandra" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "initialCassandraAdminPassword": { + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true, + "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", + "type": "string" + }, + "hoursBetweenBackups": { + "type": "integer", + "format": "int32", + "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." + }, + "prometheusEndpoint": { + "$ref": "#/definitions/SeedNode", + "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." + }, + "repairEnabled": { + "type": "boolean", + "description": "Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs." + }, + "clientCertificates": { + "description": "List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalGossipCertificates": { + "description": "List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "gossipCertificates": { + "readOnly": true, + "x-ms-mutability": [ + "read" + ], + "description": "List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalSeedNodes": { + "type": "array", + "description": "List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.", + "items": { + "$ref": "#/definitions/SeedNode" + } + }, + "seedNodes": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SeedNode" + }, + "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." + } + } + } + } + }, + "RepairPostBody": { + "description": "Specification of the keyspaces and tables to run repair on.", + "type": "object", + "required": [ + "keyspace" + ], + "properties": { + "keyspace": { + "type": "string", + "description": "The name of the keyspace that repair should be run on." + }, + "tables": { + "type": "array", + "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", + "items": { + "type": "string", + "description": "Name of a table in the Cassandra keyspace." + } + } + } + }, + "ClusterNodeStatus": { + "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", + "type": "object", + "properties": { + "nodes": { + "type": "array", + "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", + "items": { + "type": "object", + "properties": { + "datacenter": { + "type": "string", + "description": "The Cassandra data center this node resides in." + }, + "status": { + "type": "string", + "description": "Indicates whether the node is functioning or not.", + "enum": [ + "Up", + "Down" + ], + "x-ms-enum": { + "name": "NodeStatus", + "modelAsString": true + } + }, + "state": { + "type": "string", + "description": "The state of the node in relation to the cluster.", + "enum": [ + "Normal", + "Leaving", + "Joining", + "Moving", + "Stopped" + ], + "x-ms-enum": { + "name": "NodeState", + "modelAsString": true + } + }, + "address": { + "type": "string", + "description": "The node's URL." + }, + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." + }, + "tokens": { + "type": "array", + "description": "List of tokens.", + "items": { + "type": "string", + "description": "Token of this node." + } + }, + "owns": { + "type": "number", + "format": "double", + "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." + }, + "hostId": { + "type": "string", + "description": "The network ID of the node." + }, + "rack": { + "type": "string", + "description": "The rack this node is part of." + } + } + } + } + } + }, + "BackupResource": { + "description": "A restorable backup of a Cassandra cluster.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "properties": { + "properties": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" + } + } + } + } + }, + "ListBackups": { + "description": "List of restorable backups for a Cassandra cluster.", + "type": "object", + "properties": { + "value": { + "description": "Container for array of backups.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BackupResource" + } + } + } + }, + "ListDataCenters": { + "description": "List of managed Cassandra data centers and their properties.", + "type": "object", + "properties": { + "value": { + "description": "Container for array of data centers.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/DataCenterResource" + } + } + } + }, + "SeedNode": { + "type": "object", + "properties": { + "ipAddress": { + "description": "IP address of this seed node.", + "type": "string" + } + } + }, + "Certificate": { + "type": "object", + "properties": { + "pem": { + "description": "PEM formatted public key.", + "type": "string" + } + } + }, + "DataCenterResource": { + "description": "A managed Cassandra data center.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "properties": { + "properties": { + "description": "Properties of a managed Cassandra data center.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" + }, + "dataCenterLocation": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "The region this data center should be created in." + }, + "delegatedSubnetId": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'." + }, + "nodeCount": { + "type": "integer", + "format": "int32", + "description": "The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster." + }, + "seedNodes": { + "readOnly": true, + "type": "array", + "description": "IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.", + "items": { + "$ref": "#/definitions/SeedNode" + } + }, + "base64EncodedCassandraYamlFragment": { + "type": "string", + "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." + } + } + } + } + } + } +} From 8efce1d08f5519ea2435d35e604f5444a0914c96 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 30 Sep 2021 21:01:36 -0700 Subject: [PATCH 21/50] Adding examples; /deallocate and /start api in swagger --- .../CosmosDBManagedCassandraBackup.json | 21 +++ .../CosmosDBManagedCassandraBackupsList.json | 32 ++++ ...CosmosDBManagedCassandraClusterCreate.json | 155 +++++++++++++++++ ...osDBManagedCassandraClusterDeallocate.json | 12 ++ ...CosmosDBManagedCassandraClusterDelete.json | 12 ++ ...anagedCassandraClusterFetchNodeStatus.json | 59 +++++++ .../CosmosDBManagedCassandraClusterGet.json | 73 ++++++++ ...edCassandraClusterListByResourceGroup.json | 76 ++++++++ ...gedCassandraClusterListBySubscription.json | 75 ++++++++ .../CosmosDBManagedCassandraClusterPatch.json | 163 ++++++++++++++++++ .../CosmosDBManagedCassandraClusterStart.json | 12 ++ ...mosDBManagedCassandraDataCenterCreate.json | 57 ++++++ ...mosDBManagedCassandraDataCenterDelete.json | 13 ++ ...CosmosDBManagedCassandraDataCenterGet.json | 36 ++++ ...osmosDBManagedCassandraDataCenterList.json | 39 +++++ ...smosDBManagedCassandraDataCenterPatch.json | 69 ++++++++ .../CosmosDBManagedCassandraRepair.json | 18 ++ .../stable/2021-10-15/managedCassandra.json | 96 ++++++++++- 18 files changed, 1017 insertions(+), 1 deletion(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterCreate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json new file mode 100644 index 000000000000..05c98f869206 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "backupId": "1611250348" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348", + "name": "1611250348", + "type": "Microsoft.DocumentDB/cassandraClusters/backups", + "properties": { + "timestamp": "2021-01-21T17:32:28Z" + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json new file mode 100644 index 000000000000..62a16ea1ac16 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348", + "name": "1611250348", + "type": "Microsoft.DocumentDB/cassandraClusters/backups", + "properties": { + "timestamp": "2021-01-21T17:32:28Z" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611214220", + "name": "1611214220", + "type": "Microsoft.DocumentDB/cassandraClusters/backups", + "properties": { + "timestamp": "2021-01-21T07:30:20Z" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterCreate.json new file mode 100644 index 000000000000..eaa32d00a6eb --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterCreate.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "body": { + "location": "West US", + "tags": {}, + "properties": { + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "initialCassandraAdminPassword": "mypassword", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json new file mode 100644 index 000000000000..57254e97ebda --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-preview", + "clusterName": "cassandra-prod" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json new file mode 100644 index 000000000000..8a28ceba234c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json new file mode 100644 index 000000000000..3f6a4e203da3 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "202": {}, + "200": { + "body": { + "nodes": [ + { + "datacenter": "dc1", + "status": "Up", + "state": "Normal", + "address": "10.0.1.12", + "load": "512.3 MB", + "tokens": [ + "12", + "15" + ], + "owns": 33.3, + "hostId": "aaa1b7c1-6049-4a08-ad3e-3697a0e30e10", + "rack": "rack1" + }, + { + "datacenter": "dc1", + "status": "Up", + "state": "Normal", + "address": "10.0.1.13", + "load": "512.1 MB", + "tokens": [ + "12", + "15" + ], + "owns": 33.3, + "hostId": "1848c369-4306-4874-afdf-5c1e95b8732e", + "rack": "rack1" + }, + { + "datacenter": "dc1", + "status": "Up", + "state": "Normal", + "address": "10.0.1.14", + "load": "512.5 MB", + "tokens": [ + "12", + "15" + ], + "owns": 33.3, + "hostId": "49578bf1-728f-438d-b1c1-d8dd644b6f7f", + "rack": "rack1" + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json new file mode 100644 index 000000000000..f7db1021fad5 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json new file mode 100644 index 000000000000..2247e01e4e3b --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json new file mode 100644 index 000000000000..285d39a141de --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2021-10-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/cassandraClusters", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json new file mode 100644 index 000000000000..3d67110863ba --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "body": { + "tags": { + "owner": "mike" + }, + "properties": { + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "hoursBetweenBackups": 12, + "authenticationMethod": "None" + } + } + }, + "responses": { + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": { + "owner": "mike" + }, + "properties": { + "provisioningState": "Updating", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "name": "cassandra-prod", + "type": "Microsoft.DocumentDB/cassandraClusters", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "delegatedManagementSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management", + "cassandraVersion": "3.11", + "hoursBetweenBackups": 24, + "authenticationMethod": "Cassandra", + "externalSeedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + } + ], + "clusterNameOverride": "ClusterNameIllegalForAzureResource", + "seedNodes": [ + { + "ipAddress": "10.52.221.2" + }, + { + "ipAddress": "10.52.221.3" + }, + { + "ipAddress": "10.52.221.4" + }, + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "clientCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "externalGossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ], + "gossipCertificates": [ + { + "pem": "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json new file mode 100644 index 000000000000..1a49c97589bd --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json new file mode 100644 index 000000000000..2bbe6107c2de --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "dataCenterName": "dc1", + "body": { + "properties": { + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1-subnet", + "nodeCount": 9, + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Succeeded", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "seedNodes": [ + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Creating", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "seedNodes": [] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json new file mode 100644 index 000000000000..9656c82c31b7 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "dataCenterName": "dc1" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json new file mode 100644 index 000000000000..7ea09c5f8ce1 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "dataCenterName": "dc1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Succeeded", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=", + "seedNodes": [ + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json new file mode 100644 index 000000000000..f7dee7b95d3c --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Succeeded", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "seedNodes": [ + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ], + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=" + } + } + ] + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json new file mode 100644 index 000000000000..85f775ed3eac --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "dataCenterName": "dc1", + "body": { + "properties": { + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1-subnet", + "nodeCount": 9, + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=" + } + } + }, + "responses": { + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Updating", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=", + "seedNodes": [ + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "name": "dc1", + "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", + "properties": { + "provisioningState": "Succeeded", + "dataCenterLocation": "West US 2", + "delegatedSubnetId": "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1", + "nodeCount": 9, + "base64EncodedCassandraYamlFragment": "Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=", + "seedNodes": [ + { + "ipAddress": "192.168.12.2" + }, + { + "ipAddress": "192.168.12.3" + }, + { + "ipAddress": "192.168.12.4" + } + ] + } + } + } + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json new file mode 100644 index 000000000000..77794d89ac75 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "body": { + "keyspace": "my-keyspace", + "tables": [ + "table1", + "table42" + ] + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 6754b9d6e5cc..d5c4acdc7452 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -3,7 +3,7 @@ "info": { "title": "Cosmos DB - Managed Cassandra", "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", - "version": "2021-04-01-preview" + "version": "2021-10-15" }, "host": "management.azure.com", "schemes": [ @@ -701,6 +701,84 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate": { + "post": { + "operationId": "CassandraCluster_Deallocate", + "description": "Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterDeallocate": { + "$ref": "./examples/CosmosDBManagedCassandraClusterDeallocate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Enqueued Operation to deallocate the cluster." + }, + "200": { + "description": "Successfully deallocate the cluster." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { + "post": { + "operationId": "CassandraCluster_Start", + "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterStart": { + "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Enqueued Operation to start the cluster." + }, + "200": { + "description": "Successfully start the cluster." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } } }, "parameters": { @@ -1100,6 +1178,22 @@ "base64EncodedCassandraYamlFragment": { "type": "string", "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." + }, + "sku": { + "type": "string", + "description": "Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2" + }, + "diskSku": { + "type": "string", + "description": "Disk SKU used for data centers. Default value is P30." + }, + "diskCapacity": { + "type": "integer", + "description": "Number of disk used for data centers. Default value is 4." + }, + "availabilityZoneEnabled": { + "type": "boolean", + "description": "Should availability zone be enabled on this data center? If omitted, this is false. This could not be changed after creation." } } } From 7408cc6b269f202b9787ba672dde6061a10265e8 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Fri, 1 Oct 2021 16:17:09 -0700 Subject: [PATCH 22/50] update readme.md file --- specification/cosmos-db/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index f1185593b1fd..83d4899965ca 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -37,6 +37,7 @@ These settings apply only when `--tag=package-2021-10` is specified on the comma ```yaml $(tag) == 'package-2021-10' input-file: - Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json + - Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json - Microsoft.DocumentDB/stable/2021-10-15/notebook.json - Microsoft.DocumentDB/stable/2021-10-15/privateEndpointConnection.json - Microsoft.DocumentDB/stable/2021-10-15/privateLinkResources.json From e372e61b915957027ec8d07ccdfc561775e1c091 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Mon, 4 Oct 2021 16:20:33 -0700 Subject: [PATCH 23/50] Removing 2021-10-15-preview changes --- .../preview/2021-10-15-preview/cosmos-db.json | 9210 ----------------- ...CosmosDBCassandraKeyspaceCreateUpdate.json | 36 - .../CosmosDBCassandraKeyspaceDelete.json | 13 - .../CosmosDBCassandraKeyspaceGet.json | 28 - .../CosmosDBCassandraKeyspaceList.json | 28 - ...DBCassandraKeyspaceMigrateToAutoscale.json | 29 - ...ndraKeyspaceMigrateToManualThroughput.json | 26 - ...osmosDBCassandraKeyspaceThroughputGet.json | 30 - ...osDBCassandraKeyspaceThroughputUpdate.json | 40 - .../CosmosDBCassandraTableCreateUpdate.json | 77 - .../CosmosDBCassandraTableDelete.json | 14 - .../examples/CosmosDBCassandraTableGet.json | 49 - .../examples/CosmosDBCassandraTableList.json | 49 - ...mosDBCassandraTableMigrateToAutoscale.json | 30 - ...ssandraTableMigrateToManualThroughput.json | 27 - .../CosmosDBCassandraTableThroughputGet.json | 31 - ...osmosDBCassandraTableThroughputUpdate.json | 39 - ...smosDBClientEncryptionKeyCreateUpdate.json | 47 - .../CosmosDBClientEncryptionKeyGet.json | 33 - .../CosmosDBClientEncryptionKeysList.json | 55 - ...osmosDBCollectionGetMetricDefinitions.json | 41 - .../CosmosDBCollectionGetMetrics.json | 55 - .../examples/CosmosDBCollectionGetUsages.json | 29 - ...CosmosDBCollectionPartitionGetMetrics.json | 57 - .../CosmosDBCollectionPartitionGetUsages.json | 31 - ...DBCollectionPartitionRegionGetMetrics.json | 58 - ...osmosDBDatabaseAccountCheckNameExists.json | 10 - .../CosmosDBDatabaseAccountCreateMax.json | 222 - .../CosmosDBDatabaseAccountCreateMin.json | 99 - .../CosmosDBDatabaseAccountDelete.json | 12 - ...DatabaseAccountFailoverPriorityChange.json | 24 - .../examples/CosmosDBDatabaseAccountGet.json | 118 - ...DBDatabaseAccountGetMetricDefinitions.json | 39 - .../CosmosDBDatabaseAccountGetMetrics.json | 53 - .../CosmosDBDatabaseAccountGetUsages.json | 27 - .../examples/CosmosDBDatabaseAccountList.json | 116 - ...sDBDatabaseAccountListByResourceGroup.json | 85 - ...BDatabaseAccountListConnectionStrings.json | 13 - ...baseAccountListConnectionStringsMongo.json | 20 - .../CosmosDBDatabaseAccountListKeys.json | 18 - ...smosDBDatabaseAccountListReadOnlyKeys.json | 16 - .../CosmosDBDatabaseAccountOfflineRegion.json | 18 - .../CosmosDBDatabaseAccountOnlineRegion.json | 18 - .../CosmosDBDatabaseAccountPatch.json | 185 - .../CosmosDBDatabaseAccountRegenerateKey.json | 15 - ...smosDBDatabaseAccountRegionGetMetrics.json | 54 - .../CosmosDBDatabaseGetMetricDefinitions.json | 40 - .../examples/CosmosDBDatabaseGetMetrics.json | 54 - .../examples/CosmosDBDatabaseGetUsages.json | 28 - .../CosmosDBGremlinDatabaseCreateUpdate.json | 39 - .../CosmosDBGremlinDatabaseDelete.json | 13 - .../examples/CosmosDBGremlinDatabaseGet.json | 28 - .../examples/CosmosDBGremlinDatabaseList.json | 31 - ...osDBGremlinDatabaseMigrateToAutoscale.json | 29 - ...mlinDatabaseMigrateToManualThroughput.json | 26 - .../CosmosDBGremlinDatabaseThroughputGet.json | 30 - ...smosDBGremlinDatabaseThroughputUpdate.json | 40 - .../CosmosDBGremlinGraphCreateUpdate.json | 124 - .../examples/CosmosDBGremlinGraphDelete.json | 14 - .../examples/CosmosDBGremlinGraphGet.json | 69 - .../examples/CosmosDBGremlinGraphList.json | 72 - ...osmosDBGremlinGraphMigrateToAutoscale.json | 30 - ...GremlinGraphMigrateToManualThroughput.json | 27 - .../CosmosDBGremlinGraphThroughputGet.json | 31 - .../CosmosDBGremlinGraphThroughputUpdate.json | 41 - .../examples/CosmosDBLocationGet.json | 24 - .../examples/CosmosDBLocationList.json | 40 - ...sDBMongoDBCollectionBackupInformation.json | 23 - ...CosmosDBMongoDBCollectionCreateUpdate.json | 83 - .../CosmosDBMongoDBCollectionDelete.json | 14 - .../CosmosDBMongoDBCollectionGet.json | 45 - .../CosmosDBMongoDBCollectionList.json | 45 - ...DBMongoDBCollectionMigrateToAutoscale.json | 30 - ...DBCollectionMigrateToManualThroughput.json | 27 - ...osmosDBMongoDBCollectionThroughputGet.json | 31 - ...osDBMongoDBCollectionThroughputUpdate.json | 41 - .../CosmosDBMongoDBDatabaseCreateUpdate.json | 36 - .../CosmosDBMongoDBDatabaseDelete.json | 13 - .../examples/CosmosDBMongoDBDatabaseGet.json | 28 - .../examples/CosmosDBMongoDBDatabaseList.json | 28 - ...osDBMongoDBDatabaseMigrateToAutoscale.json | 29 - ...goDBDatabaseMigrateToManualThroughput.json | 26 - .../CosmosDBMongoDBDatabaseThroughputGet.json | 30 - ...smosDBMongoDBDatabaseThroughputUpdate.json | 40 - ...osDBMongoDBRoleDefinitionCreateUpdate.json | 66 - .../CosmosDBMongoDBRoleDefinitionDelete.json | 14 - .../CosmosDBMongoDBRoleDefinitionGet.json | 42 - .../CosmosDBMongoDBRoleDefinitionList.json | 44 - ...osDBMongoDBUserDefinitionCreateUpdate.json | 47 - .../CosmosDBMongoDBUserDefinitionDelete.json | 15 - .../CosmosDBMongoDBUserDefinitionGet.json | 31 - .../CosmosDBMongoDBUserDefinitionList.json | 33 - .../CosmosDBNotebookWorkspaceCreate.json | 23 - .../CosmosDBNotebookWorkspaceDelete.json | 13 - .../CosmosDBNotebookWorkspaceGet.json | 22 - .../CosmosDBNotebookWorkspaceList.json | 25 - ...DBNotebookWorkspaceListConnectionInfo.json | 17 - ...BNotebookWorkspaceRegenerateAuthToken.json | 13 - .../CosmosDBNotebookWorkspaceStart.json | 13 - .../examples/CosmosDBOperationsList.json | 22 - .../CosmosDBPKeyRangeIdGetMetrics.json | 58 - .../CosmosDBPKeyRangeIdRegionGetMetrics.json | 59 - .../CosmosDBPercentileGetMetrics.json | 61 - ...mosDBPercentileSourceTargetGetMetrics.json | 41 - .../CosmosDBPercentileTargetGetMetrics.json | 62 - ...smosDBPrivateEndpointConnectionDelete.json | 13 - .../CosmosDBPrivateEndpointConnectionGet.json | 30 - ...mosDBPrivateEndpointConnectionListGet.json | 50 - ...smosDBPrivateEndpointConnectionUpdate.json | 39 - .../CosmosDBPrivateLinkResourceGet.json | 28 - .../CosmosDBPrivateLinkResourceListGet.json | 31 - .../CosmosDBRegionCollectionGetMetrics.json | 56 - .../CosmosDBRestorableDatabaseAccountGet.json | 37 - ...CosmosDBRestorableDatabaseAccountList.json | 64 - ...storableDatabaseAccountNoLocationList.json | 63 - ...smosDBRestorableMongodbCollectionList.json | 31 - ...CosmosDBRestorableMongodbDatabaseList.json | 44 - ...CosmosDBRestorableMongodbResourceList.json | 35 - .../CosmosDBRestorableSqlContainerList.json | 102 - .../CosmosDBRestorableSqlDatabaseList.json | 83 - .../CosmosDBRestorableSqlResourceList.json | 35 - ...sDBRestoreDatabaseAccountCreateUpdate.json | 124 - ...CosmosDBSqlContainerBackupInformation.json | 23 - .../CosmosDBSqlContainerCreateUpdate.json | 124 - .../examples/CosmosDBSqlContainerDelete.json | 14 - .../examples/CosmosDBSqlContainerGet.json | 74 - .../examples/CosmosDBSqlContainerList.json | 192 - ...osmosDBSqlContainerMigrateToAutoscale.json | 30 - ...SqlContainerMigrateToManualThroughput.json | 27 - .../CosmosDBSqlContainerThroughputGet.json | 31 - .../CosmosDBSqlContainerThroughputUpdate.json | 41 - .../CosmosDBSqlDatabaseCreateUpdate.json | 39 - .../examples/CosmosDBSqlDatabaseDelete.json | 13 - .../examples/CosmosDBSqlDatabaseGet.json | 30 - .../examples/CosmosDBSqlDatabaseList.json | 33 - ...CosmosDBSqlDatabaseMigrateToAutoscale.json | 29 - ...BSqlDatabaseMigrateToManualThroughput.json | 26 - .../CosmosDBSqlDatabaseThroughputGet.json | 30 - .../CosmosDBSqlDatabaseThroughputUpdate.json | 40 - ...CosmosDBSqlRoleAssignmentCreateUpdate.json | 31 - .../CosmosDBSqlRoleAssignmentDelete.json | 14 - .../CosmosDBSqlRoleAssignmentGet.json | 23 - .../CosmosDBSqlRoleAssignmentList.json | 26 - ...CosmosDBSqlRoleDefinitionCreateUpdate.json | 54 - .../CosmosDBSqlRoleDefinitionDelete.json | 14 - .../CosmosDBSqlRoleDefinitionGet.json | 35 - .../CosmosDBSqlRoleDefinitionList.json | 38 - ...osmosDBSqlStoredProcedureCreateUpdate.json | 39 - .../CosmosDBSqlStoredProcedureDelete.json | 15 - .../CosmosDBSqlStoredProcedureGet.json | 29 - .../CosmosDBSqlStoredProcedureList.json | 32 - .../CosmosDBSqlTriggerCreateUpdate.json | 43 - .../examples/CosmosDBSqlTriggerDelete.json | 15 - .../examples/CosmosDBSqlTriggerGet.json | 31 - .../examples/CosmosDBSqlTriggerList.json | 34 - ...sDBSqlUserDefinedFunctionCreateUpdate.json | 39 - .../CosmosDBSqlUserDefinedFunctionDelete.json | 15 - .../CosmosDBSqlUserDefinedFunctionGet.json | 29 - .../CosmosDBSqlUserDefinedFunctionList.json | 32 - .../examples/CosmosDBTableCreateUpdate.json | 35 - .../examples/CosmosDBTableDelete.json | 13 - .../examples/CosmosDBTableGet.json | 28 - .../examples/CosmosDBTableList.json | 28 - .../CosmosDBTableMigrateToAutoscale.json | 29 - ...osmosDBTableMigrateToManualThroughput.json | 26 - .../examples/CosmosDBTableThroughputGet.json | 30 - .../CosmosDBTableThroughputUpdate.json | 40 - .../preview/2021-10-15-preview/mongorbac.json | 601 -- .../preview/2021-10-15-preview/notebook.json | 461 - .../privateEndpointConnection.json | 318 - .../privateLinkResources.json | 195 - .../preview/2021-10-15-preview/rbac.json | 573 - .../2021-10-15-preview/restorable.json | 1181 --- .../cosmos-db/resource-manager/readme.md | 15 - 174 files changed, 19266 deletions(-) delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json deleted file mode 100644 index 7c6ea9622213..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json +++ /dev/null @@ -1,9210 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}": { - "get": { - "operationId": "DatabaseAccounts_Get", - "x-ms-examples": { - "CosmosDBDatabaseAccountGet": { - "$ref": "./examples/CosmosDBDatabaseAccountGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The database account properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountGetResults" - } - } - } - }, - "patch": { - "operationId": "DatabaseAccounts_Update", - "x-ms-examples": { - "CosmosDBDatabaseAccountPatch": { - "$ref": "./examples/CosmosDBDatabaseAccountPatch.json" - } - }, - "description": "Updates the properties of an existing Azure Cosmos DB database account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseAccountUpdateParameters" - }, - "description": "The parameters to provide for the current database account." - } - ], - "responses": { - "200": { - "description": "The database account update operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/DatabaseAccountGetResults" - } - } - } - }, - "put": { - "operationId": "DatabaseAccounts_CreateOrUpdate", - "x-ms-examples": { - "CosmosDBDatabaseAccountCreateMin": { - "$ref": "./examples/CosmosDBDatabaseAccountCreateMin.json" - }, - "CosmosDBDatabaseAccountCreateMax": { - "$ref": "./examples/CosmosDBDatabaseAccountCreateMax.json" - }, - "CosmosDBRestoreDatabaseAccountCreateUpdate.json": { - "$ref": "./examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json" - } - }, - "description": "Creates or updates an Azure Cosmos DB database account. The \"Update\" method is preferred when performing updates on an account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseAccountCreateUpdateParameters" - }, - "description": "The parameters to provide for the current database account." - } - ], - "responses": { - "200": { - "description": "The database account create or update operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/DatabaseAccountGetResults" - } - } - } - }, - "delete": { - "operationId": "DatabaseAccounts_Delete", - "x-ms-examples": { - "CosmosDBDatabaseAccountDelete": { - "$ref": "./examples/CosmosDBDatabaseAccountDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB database account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The database account delete operation will complete asynchronously." - }, - "204": { - "description": "The specified account does not exist in the subscription." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange": { - "post": { - "operationId": "DatabaseAccounts_FailoverPriorityChange", - "x-ms-examples": { - "CosmosDBDatabaseAccountFailoverPriorityChange": { - "$ref": "./examples/CosmosDBDatabaseAccountFailoverPriorityChange.json" - } - }, - "description": "Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "failoverParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/FailoverPolicies" - }, - "description": "The new failover policies for the database account." - } - ], - "responses": { - "202": { - "description": "Accepted. The failover policy change operation will complete asynchronously." - }, - "204": { - "description": "No Content" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts": { - "get": { - "operationId": "DatabaseAccounts_List", - "x-ms-examples": { - "CosmosDBDatabaseAccountList": { - "$ref": "./examples/CosmosDBDatabaseAccountList.json" - } - }, - "description": "Lists all the Azure Cosmos DB database accounts available under the subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts": { - "get": { - "operationId": "DatabaseAccounts_ListByResourceGroup", - "x-ms-examples": { - "CosmosDBDatabaseAccountListByResourceGroup": { - "$ref": "./examples/CosmosDBDatabaseAccountListByResourceGroup.json" - } - }, - "description": "Lists all the Azure Cosmos DB database accounts available under the given resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys": { - "post": { - "operationId": "DatabaseAccounts_ListKeys", - "x-ms-examples": { - "CosmosDBDatabaseAccountListKeys": { - "$ref": "./examples/CosmosDBDatabaseAccountListKeys.json" - } - }, - "description": "Lists the access keys for the specified Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountListKeysResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings": { - "post": { - "operationId": "DatabaseAccounts_ListConnectionStrings", - "x-ms-examples": { - "CosmosDBDatabaseAccountListConnectionStrings": { - "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStrings.json" - }, - "CosmosDBDatabaseAccountListConnectionStringsMongo": { - "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json" - } - }, - "description": "Lists the connection strings for the specified Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountListConnectionStringsResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion": { - "post": { - "operationId": "DatabaseAccounts_OfflineRegion", - "x-ms-examples": { - "CosmosDBDatabaseAccountOfflineRegion": { - "$ref": "./examples/CosmosDBDatabaseAccountOfflineRegion.json" - } - }, - "description": "Offline the specified region for the specified Azure Cosmos DB database account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "regionParameterForOffline", - "in": "body", - "required": true, - "description": "Cosmos DB region to offline for the database account.", - "schema": { - "$ref": "#/definitions/RegionForOnlineOffline" - } - } - ], - "responses": { - "200": { - "description": "The offline region operation is completed successfully." - }, - "202": { - "description": "Accepted. The offline region operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion": { - "post": { - "operationId": "DatabaseAccounts_OnlineRegion", - "x-ms-examples": { - "CosmosDBDatabaseAccountOnlineRegion": { - "$ref": "./examples/CosmosDBDatabaseAccountOnlineRegion.json" - } - }, - "description": "Online the specified region for the specified Azure Cosmos DB database account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "regionParameterForOnline", - "in": "body", - "required": true, - "description": "Cosmos DB region to online for the database account.", - "schema": { - "$ref": "#/definitions/RegionForOnlineOffline" - } - } - ], - "responses": { - "200": { - "description": "The online region operation is completed successfully." - }, - "202": { - "description": "Accepted. The online region operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys": { - "get": { - "operationId": "DatabaseAccounts_GetReadOnlyKeys", - "x-ms-examples": { - "CosmosDBDatabaseAccountListReadOnlyKeys": { - "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" - } - }, - "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" - } - } - } - }, - "post": { - "operationId": "DatabaseAccounts_ListReadOnlyKeys", - "x-ms-examples": { - "CosmosDBDatabaseAccountListReadOnlyKeys": { - "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json" - } - }, - "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey": { - "post": { - "operationId": "DatabaseAccounts_RegenerateKey", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegenerateKey": { - "$ref": "./examples/CosmosDBDatabaseAccountRegenerateKey.json" - } - }, - "description": "Regenerates an access key for the specified Azure Cosmos DB database account.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "keyToRegenerate", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseAccountRegenerateKeyParameters" - }, - "description": "The name of the key to regenerate." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted. The regenerate key operation will complete asynchronously." - } - } - } - }, - "/providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}": { - "head": { - "operationId": "DatabaseAccounts_CheckNameExists", - "x-ms-examples": { - "CosmosDBDatabaseAccountCheckNameExists": { - "$ref": "./examples/CosmosDBDatabaseAccountCheckNameExists.json" - } - }, - "description": "Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.", - "parameters": [ - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The account name is valid but is already in use." - }, - "404": { - "description": "Not Found. The account name is available and valid." - } - } - } - }, - "/providers/Microsoft.DocumentDB/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available Cosmos DB Resource Provider operations.", - "operationId": "Operations_List", - "x-ms-examples": { - "CosmosDBOperationsList": { - "$ref": "./examples/CosmosDBOperationsList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics": { - "get": { - "operationId": "DatabaseAccounts_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountGetMetrics": { - "$ref": "./examples/CosmosDBDatabaseAccountGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The metrics for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics": { - "get": { - "operationId": "Database_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseGetMetrics": { - "$ref": "./examples/CosmosDBDatabaseGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account and database.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The metrics for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics": { - "get": { - "operationId": "Collection_ListMetrics", - "x-ms-examples": { - "CosmosDBCollectionGetMetrics": { - "$ref": "./examples/CosmosDBCollectionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account and collection.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The metrics for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics": { - "get": { - "operationId": "CollectionRegion_ListMetrics", - "x-ms-examples": { - "CosmosDBRegionCollectionGetMetrics": { - "$ref": "./examples/CosmosDBRegionCollectionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account, collection and region.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/regionParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The metrics for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics": { - "get": { - "operationId": "DatabaseAccountRegion_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBDatabaseAccountRegionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account and region.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/regionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The metrics for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics": { - "get": { - "operationId": "PercentileSourceTarget_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBPercentileSourceTargetGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/sourceRegionParameter" - }, - { - "$ref": "#/parameters/targetRegionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The percentile metrics for the account, source and target regions were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PercentileMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics": { - "get": { - "operationId": "PercentileTarget_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBPercentileTargetGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/targetRegionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The percentile metrics for the account and target regions were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PercentileMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics": { - "get": { - "operationId": "Percentile_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBPercentileGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The percentile metrics for the account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PercentileMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { - "get": { - "operationId": "CollectionPartitionRegion_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBCollectionPartitionRegionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given collection and region, split by partition.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/regionParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The partition-level metrics for the collection and region were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PartitionMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": { - "get": { - "operationId": "CollectionPartition_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBCollectionPartitionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given collection, split by partition.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The partition-level metrics for the collection were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PartitionMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { - "get": { - "operationId": "PartitionKeyRangeId_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBPKeyRangeIdGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given partition key range id.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "#/parameters/partitionKeyRangeIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The partition-level metrics for the partition key range id were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PartitionMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": { - "get": { - "operationId": "PartitionKeyRangeIdRegion_ListMetrics", - "x-ms-examples": { - "CosmosDBDatabaseAccountRegionGetMetrics": { - "$ref": "./examples/CosmosDBPKeyRangeIdRegionGetMetrics.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the metrics determined by the given filter for the given partition key range id and region.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/regionParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "#/parameters/partitionKeyRangeIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/filterParameter" - } - ], - "responses": { - "200": { - "description": "The partition-level metrics for the partition key range id and region were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PartitionMetricListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages": { - "get": { - "operationId": "DatabaseAccounts_ListUsages", - "x-ms-examples": { - "CosmosDBDatabaseAccountGetUsages": { - "$ref": "./examples/CosmosDBDatabaseAccountGetUsages.json" - } - }, - "description": "Retrieves the usages (most recent data) for the given database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/usageFilterParameter" - } - ], - "responses": { - "200": { - "description": "The usages for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/UsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages": { - "get": { - "operationId": "Database_ListUsages", - "x-ms-examples": { - "CosmosDBDatabaseGetUsages": { - "$ref": "./examples/CosmosDBDatabaseGetUsages.json" - } - }, - "description": "Retrieves the usages (most recent data) for the given database.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/usageFilterParameter" - } - ], - "responses": { - "200": { - "description": "The usages for the database were retrieved successfully.", - "schema": { - "$ref": "#/definitions/UsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages": { - "get": { - "operationId": "Collection_ListUsages", - "x-ms-examples": { - "CosmosDBCollectionGetUsages": { - "$ref": "./examples/CosmosDBCollectionGetUsages.json" - } - }, - "description": "Retrieves the usages (most recent storage data) for the given collection.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/usageFilterParameter" - } - ], - "responses": { - "200": { - "description": "The usages for the collection were retrieved successfully.", - "schema": { - "$ref": "#/definitions/UsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages": { - "get": { - "operationId": "CollectionPartition_ListUsages", - "x-ms-examples": { - "CosmosDBCollectionGetUsages": { - "$ref": "./examples/CosmosDBCollectionPartitionGetUsages.json" - } - }, - "description": "Retrieves the usages (most recent storage data) for the given collection, split by partition.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/usageFilterParameter" - } - ], - "responses": { - "200": { - "description": "The usages for the collection, per partition were retrieved successfully.", - "schema": { - "$ref": "#/definitions/PartitionUsagesResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions": { - "get": { - "operationId": "Database_ListMetricDefinitions", - "x-ms-examples": { - "CosmosDBDatabaseGetMetricDefinitions": { - "$ref": "./examples/CosmosDBDatabaseGetMetricDefinitions.json" - } - }, - "description": "Retrieves metric definitions for the given database.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The metric definitions for the database were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricDefinitionsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions": { - "get": { - "operationId": "Collection_ListMetricDefinitions", - "x-ms-examples": { - "CosmosDBCollectionGetMetricDefinitions": { - "$ref": "./examples/CosmosDBCollectionGetMetricDefinitions.json" - } - }, - "description": "Retrieves metric definitions for the given collection.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseRidParameter" - }, - { - "$ref": "#/parameters/collectionRidParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The metric definitions for the collection were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricDefinitionsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions": { - "get": { - "operationId": "DatabaseAccounts_ListMetricDefinitions", - "x-ms-examples": { - "CosmosDBDatabaseAccountGetMetricDefinitions": { - "$ref": "./examples/CosmosDBDatabaseAccountGetMetricDefinitions.json" - } - }, - "description": "Retrieves metric definitions for the given database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The metric definitions for the database account were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MetricDefinitionsListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases": { - "get": { - "operationId": "SqlResources_ListSqlDatabases", - "x-ms-examples": { - "CosmosDBSqlDatabaseList": { - "$ref": "./examples/CosmosDBSqlDatabaseList.json" - } - }, - "description": "Lists the SQL databases under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL database properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlDatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}": { - "get": { - "operationId": "SqlResources_GetSqlDatabase", - "x-ms-examples": { - "CosmosDBSqlDatabaseGet": { - "$ref": "./examples/CosmosDBSqlDatabaseGet.json" - } - }, - "description": "Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL database property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlDatabaseGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlDatabase", - "x-ms-examples": { - "CosmosDBSqlDatabaseCreateUpdate": { - "$ref": "./examples/CosmosDBSqlDatabaseCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB SQL database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlDatabaseParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SqlDatabaseCreateUpdateParameters" - }, - "description": "The parameters to provide for the current SQL database." - } - ], - "responses": { - "202": { - "description": "The SQL database create or update operation will complete asynchronously." - }, - "200": { - "description": "The SQL database create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlDatabaseGetResults" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlDatabase", - "x-ms-examples": { - "CosmosDBSqlDatabaseDelete": { - "$ref": "./examples/CosmosDBSqlDatabaseDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB SQL database.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL database delete operation will complete asynchronously." - }, - "204": { - "description": "The SQL database delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default": { - "get": { - "operationId": "SqlResources_GetSqlDatabaseThroughput", - "x-ms-examples": { - "CosmosDBSqlDatabaseThroughputGet": { - "$ref": "./examples/CosmosDBSqlDatabaseThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the SQL database was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_UpdateSqlDatabaseThroughput", - "x-ms-examples": { - "CosmosDBSqlDatabaseThroughputUpdate": { - "$ref": "./examples/CosmosDBSqlDatabaseThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB SQL database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The parameters to provide for the RUs per second of the current SQL database." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the SQL database update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the SQL database update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "SqlResources_MigrateSqlDatabaseToAutoscale", - "x-ms-examples": { - "CosmosDBSqlDatabaseMigrateToAutoscale": { - "$ref": "./examples/CosmosDBSqlDatabaseMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL database migrate operation will complete asynchronously." - }, - "200": { - "description": "The SQL database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "SqlResources_MigrateSqlDatabaseToManualThroughput", - "x-ms-examples": { - "CosmosDBSqlDatabaseMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL database migrate operation will complete asynchronously." - }, - "200": { - "description": "The SQL database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientencryptionkeys": { - "get": { - "operationId": "SqlResources_ListClientEncryptionKeys", - "x-ms-examples": { - "CosmosDBClientEncryptionKeysList": { - "$ref": "./examples/CosmosDBClientEncryptionKeysList.json" - } - }, - "description": "Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The ClientEncryptionKeys were retrieved successfully.", - "schema": { - "$ref": "#/definitions/ClientEncryptionKeysListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientencryptionkeys/{clientEncryptionKeyName}": { - "get": { - "operationId": "SqlResources_GetClientEncryptionKey", - "x-ms-examples": { - "CosmosDBClientEncryptionKeyGet": { - "$ref": "./examples/CosmosDBClientEncryptionKeyGet.json" - } - }, - "description": "Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/clientEncryptionKeyNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The ClientEncryptionKey was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ClientEncryptionKeyGetResults" - } - }, - "404": { - "description": "Not Found." - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateClientEncryptionKey", - "x-ms-examples": { - "CosmosDBClientEncryptionKeyCreateUpdate": { - "$ref": "./examples/CosmosDBClientEncryptionKeyCreateUpdate.json" - } - }, - "description": "Create or update a ClientEncryptionKey", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/clientEncryptionKeyNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateClientEncryptionKeyParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateParameters" - }, - "description": "The parameters to provide for the client encryption key." - } - ], - "responses": { - "200": { - "description": "The client encryption key create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ClientEncryptionKeyGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": { - "get": { - "operationId": "SqlResources_ListSqlContainers", - "x-ms-examples": { - "CosmosDBSqlContainerList": { - "$ref": "./examples/CosmosDBSqlContainerList.json" - } - }, - "description": "Lists the SQL container under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL container properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlContainerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}": { - "get": { - "operationId": "SqlResources_GetSqlContainer", - "x-ms-examples": { - "CosmosDBSqlContainerGet": { - "$ref": "./examples/CosmosDBSqlContainerGet.json" - } - }, - "description": "Gets the SQL container under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL container property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlContainerGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlContainer", - "x-ms-examples": { - "CosmosDBSqlContainerCreateUpdate": { - "$ref": "./examples/CosmosDBSqlContainerCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB SQL container", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlContainerParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SqlContainerCreateUpdateParameters" - }, - "description": "The parameters to provide for the current SQL container." - } - ], - "responses": { - "202": { - "description": "The SQL container create or update operation will complete asynchronously." - }, - "200": { - "description": "The SQL container create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlContainerGetResults" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlContainer", - "x-ms-examples": { - "CosmosDBSqlContainerDelete": { - "$ref": "./examples/CosmosDBSqlContainerDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB SQL container.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL container delete operation will complete asynchronously." - }, - "204": { - "description": "The SQL container delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default": { - "get": { - "operationId": "SqlResources_GetSqlContainerThroughput", - "x-ms-examples": { - "CosmosDBSqlContainerThroughputGet": { - "$ref": "./examples/CosmosDBSqlContainerThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the SQL container was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_UpdateSqlContainerThroughput", - "x-ms-examples": { - "CosmosDBSqlContainerThroughputUpdate": { - "$ref": "./examples/CosmosDBSqlContainerThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB SQL container", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The parameters to provide for the RUs per second of the current SQL container." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the SQL container update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the SQL container update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "SqlResources_MigrateSqlContainerToAutoscale", - "x-ms-examples": { - "CosmosDBSqlContainerMigrateToAutoscale": { - "$ref": "./examples/CosmosDBSqlContainerMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL container migrate operation will complete asynchronously." - }, - "200": { - "description": "The SQL container migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "SqlResources_MigrateSqlContainerToManualThroughput", - "x-ms-examples": { - "CosmosDBSqlContainerMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBSqlContainerMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL container migrate operation will complete asynchronously." - }, - "200": { - "description": "The SQL container migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures": { - "get": { - "operationId": "SqlResources_ListSqlStoredProcedures", - "x-ms-examples": { - "CosmosDBSqlStoredProcedureList": { - "$ref": "./examples/CosmosDBSqlStoredProcedureList.json" - } - }, - "description": "Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL stored procedure properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlStoredProcedureListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}": { - "get": { - "operationId": "SqlResources_GetSqlStoredProcedure", - "x-ms-examples": { - "CosmosDBSqlStoredProcedureGet": { - "$ref": "./examples/CosmosDBSqlStoredProcedureGet.json" - } - }, - "description": "Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/storedProcedureNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL storedProcedure property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlStoredProcedureGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlStoredProcedure", - "x-ms-examples": { - "CosmosDBSqlStoredProcedureCreateUpdate": { - "$ref": "./examples/CosmosDBSqlStoredProcedureCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB SQL storedProcedure", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/storedProcedureNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlStoredProcedureParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SqlStoredProcedureCreateUpdateParameters" - }, - "description": "The parameters to provide for the current SQL storedProcedure." - } - ], - "responses": { - "202": { - "description": "The SQL storedProcedure create or update operation will complete asynchronously." - }, - "200": { - "description": "The SQL storedProcedure create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlStoredProcedureGetResults" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlStoredProcedure", - "x-ms-examples": { - "CosmosDBSqlStoredProcedureDelete": { - "$ref": "./examples/CosmosDBSqlStoredProcedureDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB SQL storedProcedure.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/storedProcedureNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL storedProcedure delete operation will complete asynchronously." - }, - "204": { - "description": "The SQL storedProcedure delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions": { - "get": { - "operationId": "SqlResources_ListSqlUserDefinedFunctions", - "x-ms-examples": { - "CosmosDBSqlUserDefinedFunctionList": { - "$ref": "./examples/CosmosDBSqlUserDefinedFunctionList.json" - } - }, - "description": "Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL userDefinedFunction properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlUserDefinedFunctionListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}": { - "get": { - "operationId": "SqlResources_GetSqlUserDefinedFunction", - "x-ms-examples": { - "CosmosDBSqlUserDefinedFunctionGet": { - "$ref": "./examples/CosmosDBSqlUserDefinedFunctionGet.json" - } - }, - "description": "Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/userDefinedFunctionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL userDefinedFunction property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlUserDefinedFunction", - "x-ms-examples": { - "CosmosDBSqlUserDefinedFunctionCreateUpdate": { - "$ref": "./examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB SQL userDefinedFunction", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/userDefinedFunctionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlUserDefinedFunctionParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateParameters" - }, - "description": "The parameters to provide for the current SQL userDefinedFunction." - } - ], - "responses": { - "202": { - "description": "The SQL userDefinedFunction create or update operation will complete asynchronously." - }, - "200": { - "description": "The SQL userDefinedFunction create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlUserDefinedFunction", - "x-ms-examples": { - "CosmosDBSqlUserDefinedFunctionDelete": { - "$ref": "./examples/CosmosDBSqlUserDefinedFunctionDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB SQL userDefinedFunction.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/userDefinedFunctionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL userDefinedFunction delete operation will complete asynchronously." - }, - "204": { - "description": "The SQL userDefinedFunction delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers": { - "get": { - "operationId": "SqlResources_ListSqlTriggers", - "x-ms-examples": { - "CosmosDBSqlTriggerList": { - "$ref": "./examples/CosmosDBSqlTriggerList.json" - } - }, - "description": "Lists the SQL trigger under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL trigger properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlTriggerListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}": { - "get": { - "operationId": "SqlResources_GetSqlTrigger", - "x-ms-examples": { - "CosmosDBSqlTriggerGet": { - "$ref": "./examples/CosmosDBSqlTriggerGet.json" - } - }, - "description": "Gets the SQL trigger under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/triggerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The SQL trigger property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/SqlTriggerGetResults" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlTrigger", - "x-ms-examples": { - "CosmosDBSqlTriggerCreateUpdate": { - "$ref": "./examples/CosmosDBSqlTriggerCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB SQL trigger", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/triggerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlTriggerParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SqlTriggerCreateUpdateParameters" - }, - "description": "The parameters to provide for the current SQL trigger." - } - ], - "responses": { - "202": { - "description": "The SQL trigger create or update operation will complete asynchronously." - }, - "200": { - "description": "The SQL trigger create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlTriggerGetResults" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlTrigger", - "x-ms-examples": { - "CosmosDBSqlTriggerDelete": { - "$ref": "./examples/CosmosDBSqlTriggerDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB SQL trigger.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/containerNameParameter" - }, - { - "$ref": "#/parameters/triggerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The SQL trigger delete operation will complete asynchronously." - }, - "204": { - "description": "The SQL trigger delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases": { - "get": { - "operationId": "MongoDBResources_ListMongoDBDatabases", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseList": { - "$ref": "./examples/CosmosDBMongoDBDatabaseList.json" - } - }, - "description": "Lists the MongoDB databases under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The MongoDB database properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MongoDBDatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}": { - "get": { - "operationId": "MongoDBResources_GetMongoDBDatabase", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseGet": { - "$ref": "./examples/CosmosDBMongoDBDatabaseGet.json" - } - }, - "description": "Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The MongoDB database property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/MongoDBDatabaseGetResults" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_CreateUpdateMongoDBDatabase", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseCreateUpdate": { - "$ref": "./examples/CosmosDBMongoDBDatabaseCreateUpdate.json" - } - }, - "description": "Create or updates Azure Cosmos DB MongoDB database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateMongoDBDatabaseParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MongoDBDatabaseCreateUpdateParameters" - }, - "description": "The parameters to provide for the current MongoDB database." - } - ], - "responses": { - "202": { - "description": "The MongoDB database create or update operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB database create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/MongoDBDatabaseGetResults" - } - } - } - }, - "delete": { - "operationId": "MongoDBResources_DeleteMongoDBDatabase", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseDelete": { - "$ref": "./examples/CosmosDBMongoDBDatabaseDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB MongoDB database.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB database delete operation will complete asynchronously." - }, - "204": { - "description": "The MongoDB database delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default": { - "get": { - "operationId": "MongoDBResources_GetMongoDBDatabaseThroughput", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseThroughputGet": { - "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the MongoDB database was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_UpdateMongoDBDatabaseThroughput", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseThroughputUpdate": { - "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputUpdate.json" - } - }, - "description": "Update RUs per second of the an Azure Cosmos DB MongoDB database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current MongoDB database." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the MongoDB database update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the MongoDB database update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "MongoDBResources_MigrateMongoDBDatabaseToAutoscale", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseMigrateToAutoscale": { - "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB database migrate operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "MongoDBResources_MigrateMongoDBDatabaseToManualThroughput", - "x-ms-examples": { - "CosmosDBMongoDBDatabaseMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB database migrate operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections": { - "get": { - "operationId": "MongoDBResources_ListMongoDBCollections", - "x-ms-examples": { - "CosmosDBMongoDBCollectionList": { - "$ref": "./examples/CosmosDBMongoDBCollectionList.json" - } - }, - "description": "Lists the MongoDB collection under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The MongoDB collection properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/MongoDBCollectionListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}": { - "get": { - "operationId": "MongoDBResources_GetMongoDBCollection", - "x-ms-examples": { - "CosmosDBMongoDBCollectionGet": { - "$ref": "./examples/CosmosDBMongoDBCollectionGet.json" - } - }, - "description": "Gets the MongoDB collection under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The MongoDB collection property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/MongoDBCollectionGetResults" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_CreateUpdateMongoDBCollection", - "x-ms-examples": { - "CosmosDBMongoDBCollectionCreateUpdate": { - "$ref": "./examples/CosmosDBMongoDBCollectionCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB MongoDB Collection", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateMongoDBCollectionParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MongoDBCollectionCreateUpdateParameters" - }, - "description": "The parameters to provide for the current MongoDB Collection." - } - ], - "responses": { - "202": { - "description": "The MongoDB Collection create or update operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB Collection create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/MongoDBCollectionGetResults" - } - } - } - }, - "delete": { - "operationId": "MongoDBResources_DeleteMongoDBCollection", - "x-ms-examples": { - "CosmosDBMongoDBCollectionDelete": { - "$ref": "./examples/CosmosDBMongoDBCollectionDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB MongoDB Collection.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB collection delete operation will complete asynchronously." - }, - "204": { - "description": "The MongoDB collection delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default": { - "get": { - "operationId": "MongoDBResources_GetMongoDBCollectionThroughput", - "x-ms-examples": { - "CosmosDBMongoDBCollectionThroughputGet": { - "$ref": "./examples/CosmosDBMongoDBCollectionThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the MongoDB collection was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_UpdateMongoDBCollectionThroughput", - "x-ms-examples": { - "CosmosDBMongoDBCollectionThroughputUpdate": { - "$ref": "./examples/CosmosDBMongoDBCollectionThroughputUpdate.json" - } - }, - "description": "Update the RUs per second of an Azure Cosmos DB MongoDB collection", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current MongoDB collection." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the MongoDB collection update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the MongoDB collection update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "MongoDBResources_MigrateMongoDBCollectionToAutoscale", - "x-ms-examples": { - "CosmosDBMongoDBCollectionMigrateToAutoscale": { - "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB collection migrate operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB collection migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "MongoDBResources_MigrateMongoDBCollectionToManualThroughput", - "x-ms-examples": { - "CosmosDBMongoDBCollectionMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The MongoDB collection migrate operation will complete asynchronously." - }, - "200": { - "description": "The MongoDB collection migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables": { - "get": { - "operationId": "TableResources_ListTables", - "x-ms-examples": { - "CosmosDBTableList": { - "$ref": "./examples/CosmosDBTableList.json" - } - }, - "description": "Lists the Tables under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Table properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/TableListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}": { - "get": { - "operationId": "TableResources_GetTable", - "x-ms-examples": { - "CosmosDBTableGet": { - "$ref": "./examples/CosmosDBTableGet.json" - } - }, - "description": "Gets the Tables under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Table property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/TableGetResults" - } - } - } - }, - "put": { - "operationId": "TableResources_CreateUpdateTable", - "x-ms-examples": { - "CosmosDBTableReplace": { - "$ref": "./examples/CosmosDBTableCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB Table", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateTableParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TableCreateUpdateParameters" - }, - "description": "The parameters to provide for the current Table." - } - ], - "responses": { - "202": { - "description": "The Table create or update operation will complete asynchronously." - }, - "200": { - "description": "The Table create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/TableGetResults" - } - } - } - }, - "delete": { - "operationId": "TableResources_DeleteTable", - "x-ms-examples": { - "CosmosDBTableDelete": { - "$ref": "./examples/CosmosDBTableDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB Table.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Table delete operation will complete asynchronously." - }, - "204": { - "description": "The Table delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default": { - "get": { - "operationId": "TableResources_GetTableThroughput", - "x-ms-examples": { - "CosmosDBTableThroughputGet": { - "$ref": "./examples/CosmosDBTableThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the Table was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "TableResources_UpdateTableThroughput", - "x-ms-examples": { - "CosmosDBTableThroughputUpdate": { - "$ref": "./examples/CosmosDBTableThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB Table", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The parameters to provide for the RUs per second of the current Table." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the Table update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the Table update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "TableResources_MigrateTableToAutoscale", - "x-ms-examples": { - "CosmosDBTableMigrateToAutoscale": { - "$ref": "./examples/CosmosDBTableMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB Table from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Table migrate operation will complete asynchronously." - }, - "200": { - "description": "The Table migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "TableResources_MigrateTableToManualThroughput", - "x-ms-examples": { - "CosmosDBTableMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBTableMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB Table from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Table migrate operation will complete asynchronously." - }, - "200": { - "description": "The Table migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces": { - "get": { - "operationId": "CassandraResources_ListCassandraKeyspaces", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceList": { - "$ref": "./examples/CosmosDBCassandraKeyspaceList.json" - } - }, - "description": "Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Cassandra keyspace properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/CassandraKeyspaceListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}": { - "get": { - "operationId": "CassandraResources_GetCassandraKeyspace", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceGet": { - "$ref": "./examples/CosmosDBCassandraKeyspaceGet.json" - } - }, - "description": "Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Cassandra keyspace property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/CassandraKeyspaceGetResults" - } - } - } - }, - "put": { - "operationId": "CassandraResources_CreateUpdateCassandraKeyspace", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceCreateUpdate": { - "$ref": "./examples/CosmosDBCassandraKeyspaceCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB Cassandra keyspace", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateCassandraKeyspaceParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CassandraKeyspaceCreateUpdateParameters" - }, - "description": "The parameters to provide for the current Cassandra keyspace." - } - ], - "responses": { - "202": { - "description": "The Cassandra keyspace create or update operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra keyspace create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/CassandraKeyspaceGetResults" - } - } - } - }, - "delete": { - "operationId": "CassandraResources_DeleteCassandraKeyspace", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceDelete": { - "$ref": "./examples/CosmosDBCassandraKeyspaceDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB Cassandra keyspace.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra keyspace delete operation will complete asynchronously." - }, - "204": { - "description": "The Cassandra keyspace delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default": { - "get": { - "operationId": "CassandraResources_GetCassandraKeyspaceThroughput", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceThroughputGet": { - "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the Cassandra Keyspace was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "CassandraResources_UpdateCassandraKeyspaceThroughput", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceThroughputUpdate": { - "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB Cassandra Keyspace", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current Cassandra Keyspace." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the Cassandra Keyspace update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the Cassandra Keyspace update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "CassandraResources_MigrateCassandraKeyspaceToAutoscale", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceMigrateToAutoscale": { - "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra Keyspace migrate operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra Keyspace migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "CassandraResources_MigrateCassandraKeyspaceToManualThroughput", - "x-ms-examples": { - "CosmosDBCassandraKeyspaceMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra Keyspace migrate operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra Keyspace migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables": { - "get": { - "operationId": "CassandraResources_ListCassandraTables", - "x-ms-examples": { - "CosmosDBCassandraTableList": { - "$ref": "./examples/CosmosDBCassandraTableList.json" - } - }, - "description": "Lists the Cassandra table under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Cassandra table properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/CassandraTableListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}": { - "get": { - "operationId": "CassandraResources_GetCassandraTable", - "x-ms-examples": { - "CosmosDBCassandraTableGet": { - "$ref": "./examples/CosmosDBCassandraTableGet.json" - } - }, - "description": "Gets the Cassandra table under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Cassandra table property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/CassandraTableGetResults" - } - } - } - }, - "put": { - "operationId": "CassandraResources_CreateUpdateCassandraTable", - "x-ms-examples": { - "CosmosDBCassandraTableCreateUpdate": { - "$ref": "./examples/CosmosDBCassandraTableCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB Cassandra Table", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateCassandraTableParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CassandraTableCreateUpdateParameters" - }, - "description": "The parameters to provide for the current Cassandra Table." - } - ], - "responses": { - "202": { - "description": "The Cassandra Table create or update operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra Table create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/CassandraTableGetResults" - } - } - } - }, - "delete": { - "operationId": "CassandraResources_DeleteCassandraTable", - "x-ms-examples": { - "CosmosDBCassandraTableDelete": { - "$ref": "./examples/CosmosDBCassandraTableDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB Cassandra table.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra table delete operation will complete asynchronously." - }, - "204": { - "description": "The Cassandra table delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default": { - "get": { - "operationId": "CassandraResources_GetCassandraTableThroughput", - "x-ms-examples": { - "CosmosDBCassandraTableThroughputGet": { - "$ref": "./examples/CosmosDBCassandraTableThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the Cassandra table was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "CassandraResources_UpdateCassandraTableThroughput", - "x-ms-examples": { - "CosmosDBCassandraTableThroughputUpdate": { - "$ref": "./examples/CosmosDBCassandraTableThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB Cassandra table", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current Cassandra table." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the Cassandra table update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the Cassandra table update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "CassandraResources_MigrateCassandraTableToAutoscale", - "x-ms-examples": { - "CosmosDBCassandraTableMigrateToAutoscale": { - "$ref": "./examples/CosmosDBCassandraTableMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra table migrate operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra table migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "CassandraResources_MigrateCassandraTableToManualThroughput", - "x-ms-examples": { - "CosmosDBCassandraTableMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBCassandraTableMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/keyspaceNameParameter" - }, - { - "$ref": "#/parameters/tableNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Cassandra table migrate operation will complete asynchronously." - }, - "200": { - "description": "The Cassandra table migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases": { - "get": { - "operationId": "GremlinResources_ListGremlinDatabases", - "x-ms-examples": { - "CosmosDBGremlinDatabaseList": { - "$ref": "./examples/CosmosDBGremlinDatabaseList.json" - } - }, - "description": "Lists the Gremlin databases under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Gremlin database properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/GremlinDatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}": { - "get": { - "operationId": "GremlinResources_GetGremlinDatabase", - "x-ms-examples": { - "CosmosDBGremlinDatabaseGet": { - "$ref": "./examples/CosmosDBGremlinDatabaseGet.json" - } - }, - "description": "Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Gremlin database property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/GremlinDatabaseGetResults" - } - } - } - }, - "put": { - "operationId": "GremlinResources_CreateUpdateGremlinDatabase", - "x-ms-examples": { - "CosmosDBGremlinDatabaseCreateUpdate": { - "$ref": "./examples/CosmosDBGremlinDatabaseCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB Gremlin database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateGremlinDatabaseParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GremlinDatabaseCreateUpdateParameters" - }, - "description": "The parameters to provide for the current Gremlin database." - } - ], - "responses": { - "202": { - "description": "The Gremlin database create or update operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin database create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/GremlinDatabaseGetResults" - } - } - } - }, - "delete": { - "operationId": "GremlinResources_DeleteGremlinDatabase", - "x-ms-examples": { - "CosmosDBGremlinDatabaseDelete": { - "$ref": "./examples/CosmosDBGremlinDatabaseDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB Gremlin database.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin database delete operation will complete asynchronously." - }, - "204": { - "description": "The Gremlin database delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default": { - "get": { - "operationId": "GremlinResources_GetGremlinDatabaseThroughput", - "x-ms-examples": { - "CosmosDBGremlinDatabaseThroughputGet": { - "$ref": "./examples/CosmosDBGremlinDatabaseThroughputGet.json" - } - }, - "description": "Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the Gremlin database was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "GremlinResources_UpdateGremlinDatabaseThroughput", - "x-ms-examples": { - "CosmosDBGremlinDatabaseThroughputUpdate": { - "$ref": "./examples/CosmosDBGremlinDatabaseThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB Gremlin database", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current Gremlin database." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the Gremlin database update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the Gremlin database update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "GremlinResources_MigrateGremlinDatabaseToAutoscale", - "x-ms-examples": { - "CosmosDBGremlinDatabaseMigrateToAutoscale": { - "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin database migrate operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "GremlinResources_MigrateGremlinDatabaseToManualThroughput", - "x-ms-examples": { - "CosmosDBGremlinDatabaseMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin database migrate operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin database migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs": { - "get": { - "operationId": "GremlinResources_ListGremlinGraphs", - "x-ms-examples": { - "CosmosDBGremlinGraphList": { - "$ref": "./examples/CosmosDBGremlinGraphList.json" - } - }, - "description": "Lists the Gremlin graph under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Gremlin graph properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/GremlinGraphListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}": { - "get": { - "operationId": "GremlinResources_GetGremlinGraph", - "x-ms-examples": { - "CosmosDBGremlinGraphGet": { - "$ref": "./examples/CosmosDBGremlinGraphGet.json" - } - }, - "description": "Gets the Gremlin graph under an existing Azure Cosmos DB database account.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Gremlin graph property was retrieved successfully.", - "schema": { - "$ref": "#/definitions/GremlinGraphGetResults" - } - } - } - }, - "put": { - "operationId": "GremlinResources_CreateUpdateGremlinGraph", - "x-ms-examples": { - "CosmosDBGremlinGraphCreateUpdate": { - "$ref": "./examples/CosmosDBGremlinGraphCreateUpdate.json" - } - }, - "description": "Create or update an Azure Cosmos DB Gremlin graph", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateGremlinGraphParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GremlinGraphCreateUpdateParameters" - }, - "description": "The parameters to provide for the current Gremlin graph." - } - ], - "responses": { - "202": { - "description": "The Gremlin graph create or update operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin graph create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/GremlinGraphGetResults" - } - } - } - }, - "delete": { - "operationId": "GremlinResources_DeleteGremlinGraph", - "x-ms-examples": { - "CosmosDBGremlinGraphDelete": { - "$ref": "./examples/CosmosDBGremlinGraphDelete.json" - } - }, - "description": "Deletes an existing Azure Cosmos DB Gremlin graph.", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin graph delete operation will complete asynchronously." - }, - "204": { - "description": "The Gremlin graph delete operation was completed successfully." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default": { - "get": { - "operationId": "GremlinResources_GetGremlinGraphThroughput", - "x-ms-examples": { - "CosmosDBGremlinGraphThroughputGet": { - "$ref": "./examples/CosmosDBGremlinGraphThroughputGet.json" - } - }, - "description": "Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The RUs per second of the Gremlin graph was retrieved successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - }, - "put": { - "operationId": "GremlinResources_UpdateGremlinGraphThroughput", - "x-ms-examples": { - "CosmosDBGremlinGraphThroughputUpdate": { - "$ref": "./examples/CosmosDBGremlinGraphThroughputUpdate.json" - } - }, - "description": "Update RUs per second of an Azure Cosmos DB Gremlin graph", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "updateThroughputParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThroughputSettingsUpdateParameters" - }, - "description": "The RUs per second of the parameters to provide for the current Gremlin graph." - } - ], - "responses": { - "202": { - "description": "The RUs per second of the Gremlin graph update operation will complete asynchronously." - }, - "200": { - "description": "The RUs per second of the Gremlin graph update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale": { - "post": { - "operationId": "GremlinResources_MigrateGremlinGraphToAutoscale", - "x-ms-examples": { - "CosmosDBGremlinGraphMigrateToAutoscale": { - "$ref": "./examples/CosmosDBGremlinGraphMigrateToAutoscale.json" - } - }, - "description": "Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin graph migrate operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin graph migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput": { - "post": { - "operationId": "GremlinResources_MigrateGremlinGraphToManualThroughput", - "x-ms-examples": { - "CosmosDBGremlinGraphMigrateToManualThroughput": { - "$ref": "./examples/CosmosDBGremlinGraphMigrateToManualThroughput.json" - } - }, - "description": "Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/databaseNameParameter" - }, - { - "$ref": "#/parameters/graphNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "The Gremlin graph migrate operation will complete asynchronously." - }, - "200": { - "description": "The Gremlin graph migrate operation was completed successfully.", - "schema": { - "$ref": "#/definitions/ThroughputSettingsGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations": { - "get": { - "operationId": "LocationList", - "x-ms-examples": { - "CosmosDBLocationList": { - "$ref": "./examples/CosmosDBLocationList.json" - } - }, - "description": "List Cosmos DB locations and their properties", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/LocationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}": { - "get": { - "operationId": "LocationGet", - "x-ms-examples": { - "CosmosDBLocationGet": { - "$ref": "./examples/CosmosDBLocationGet.json" - } - }, - "description": "Get the properties of an existing Cosmos DB location", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - } - ], - "responses": { - "200": { - "description": "The Cosmos DB location properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/LocationGetResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "ClientEncryptionKeysListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ClientEncryptionKeyGetResults" - }, - "description": "List of client encryption keys and their properties." - } - }, - "description": "The List operation response, that contains the client encryption keys and their properties." - }, - "DatabaseAccountsListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/DatabaseAccountGetResults" - }, - "description": "List of database account and their properties." - } - }, - "description": "The List operation response, that contains the database accounts and their properties." - }, - "SqlDatabaseListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SqlDatabaseGetResults" - }, - "description": "List of SQL databases and their properties." - } - }, - "description": "The List operation response, that contains the SQL databases and their properties." - }, - "SqlContainerListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SqlContainerGetResults" - }, - "description": "List of containers and their properties." - } - }, - "description": "The List operation response, that contains the containers and their properties." - }, - "SqlStoredProcedureListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SqlStoredProcedureGetResults" - }, - "description": "List of storedProcedures and their properties." - } - }, - "description": "The List operation response, that contains the storedProcedures and their properties." - }, - "SqlUserDefinedFunctionListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SqlUserDefinedFunctionGetResults" - }, - "description": "List of userDefinedFunctions and their properties." - } - }, - "description": "The List operation response, that contains the userDefinedFunctions and their properties." - }, - "SqlTriggerListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SqlTriggerGetResults" - }, - "description": "List of triggers and their properties." - } - }, - "description": "The List operation response, that contains the triggers and their properties." - }, - "MongoDBDatabaseListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/MongoDBDatabaseGetResults" - }, - "description": "List of MongoDB databases and their properties." - } - }, - "description": "The List operation response, that contains the MongoDB databases and their properties." - }, - "MongoDBCollectionListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/MongoDBCollectionGetResults" - }, - "description": "List of MongoDB collections and their properties." - } - }, - "description": "The List operation response, that contains the MongoDB collections and their properties." - }, - "TableListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/TableGetResults" - }, - "description": "List of Table and their properties." - } - }, - "description": "The List operation response, that contains the Table and their properties." - }, - "CassandraKeyspaceListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/CassandraKeyspaceGetResults" - }, - "description": "List of Cassandra keyspaces and their properties." - } - }, - "description": "The List operation response, that contains the Cassandra keyspaces and their properties." - }, - "CassandraTableListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/CassandraTableGetResults" - }, - "description": "List of Cassandra tables and their properties." - } - }, - "description": "The List operation response, that contains the Cassandra tables and their properties." - }, - "GremlinDatabaseListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/GremlinDatabaseGetResults" - }, - "description": "List of Gremlin databases and their properties." - } - }, - "description": "The List operation response, that contains the Gremlin databases and their properties." - }, - "GremlinGraphListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/GremlinGraphGetResults" - }, - "description": "List of graphs and their properties." - } - }, - "description": "The List operation response, that contains the graphs and their properties." - }, - "ErrorResponse": { - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - }, - "description": "Error Response." - }, - "CloudError": { - "x-ms-external": true, - "description": "An error response from the service.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "FailoverPolicies": { - "properties": { - "failoverPolicies": { - "type": "array", - "description": "List of failover policies.", - "items": { - "$ref": "#/definitions/FailoverPolicy" - } - } - }, - "required": [ - "failoverPolicies" - ], - "description": "The list of new failover policies for the failover priority change." - }, - "FailoverPolicy": { - "type": "object", - "description": "The failover policy for a given region of a database account.", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>." - }, - "locationName": { - "type": "string", - "description": "The name of the region in which the database account exists." - }, - "failoverPriority": { - "type": "integer", - "minimum": 0, - "format": "int32", - "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists." - } - } - }, - "RegionForOnlineOffline": { - "properties": { - "region": { - "type": "string", - "description": "Cosmos DB region, with spaces between words and each word capitalized." - } - }, - "required": [ - "region" - ], - "description": "Cosmos DB region to online or offline." - }, - "Location": { - "description": "A region in which the Azure Cosmos DB database account is deployed.", - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The unique identifier of the region within the database account. Example: <accountName>-<locationName>." - }, - "locationName": { - "type": "string", - "description": "The name of the region." - }, - "documentEndpoint": { - "type": "string", - "readOnly": true, - "description": "The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/" - }, - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "failoverPriority": { - "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.", - "format": "int32", - "type": "integer", - "minimum": 0 - }, - "isZoneRedundant": { - "type": "boolean", - "description": "Flag to indicate whether or not this region is an AvailabilityZone region" - } - } - }, - "ARMResourceProperties": { - "type": "object", - "description": "The core properties of ARM resources.", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - }, - "location": { - "type": "string", - "description": "The location of the resource group to which the resource belongs." - }, - "tags": { - "$ref": "#/definitions/Tags" - } - }, - "x-ms-azure-resource": true - }, - "ARMProxyResource": { - "type": "object", - "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource identifier of the database account." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the database account." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - } - }, - "x-ms-azure-resource": true - }, - "ClientEncryptionKeyCreateUpdateParameters": { - "description": "Parameters to create and update ClientEncryptionKey.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update ClientEncryptionKey.", - "$ref": "#/definitions/ClientEncryptionKeyCreateUpdateProperties" - } - }, - "required": [ - "properties" - ] - }, - "ClientEncryptionKeyCreateUpdateProperties": { - "description": "Properties to create and update ClientEncryptionKey.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a ClientEncryptionKey", - "$ref": "#/definitions/ClientEncryptionKeyResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "ClientEncryptionKeyGetResults": { - "description": "Client Encryption Key.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of a ClientEncryptionKey", - "$ref": "#/definitions/ClientEncryptionKeyGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMProxyResource" - } - ] - }, - "ClientEncryptionKeyGetProperties": { - "description": "The properties of a ClientEncryptionKey resource", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/ClientEncryptionKeyResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - } - } - }, - "DatabaseAccountGetResults": { - "description": "An Azure Cosmos DB database account.", - "type": "object", - "properties": { - "kind": { - "description": "Indicates the type of database account. This can only be set at database account creation.", - "type": "string", - "default": "GlobalDocumentDB", - "enum": [ - "GlobalDocumentDB", - "MongoDB", - "Parse" - ], - "x-ms-enum": { - "name": "DatabaseAccountKind", - "modelAsString": true - } - }, - "identity": { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DatabaseAccountGetProperties" - }, - "systemData": { - "readOnly": true, - "description": "The system meta data relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "ExtendedResourceProperties": { - "description": "The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.", - "type": "object", - "properties": { - "_rid": { - "type": "string", - "description": "A system generated property. A unique identifier.", - "readOnly": true - }, - "_ts": { - "type": "number", - "description": "A system generated property that denotes the last updated timestamp of the resource.", - "readOnly": true - }, - "_etag": { - "type": "string", - "description": "A system generated property representing the resource etag required for optimistic concurrency control.", - "readOnly": true - } - } - }, - "ThroughputSettingsGetResults": { - "description": "An Azure Cosmos DB resource throughput.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB resource throughput", - "$ref": "#/definitions/ThroughputSettingsGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "ThroughputSettingsGetProperties": { - "description": "The properties of an Azure Cosmos DB resource throughput", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/ThroughputSettingsResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - } - } - }, - "SqlDatabaseGetResults": { - "description": "An Azure Cosmos DB SQL database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB SQL database", - "$ref": "#/definitions/SqlDatabaseGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "SqlDatabaseGetProperties": { - "description": "The properties of an Azure Cosmos DB SQL database", - "type": "object", - "properties": { - "resource": { - "properties": { - "_colls": { - "type": "string", - "description": "A system generated property that specified the addressable path of the collections resource." - }, - "_users": { - "type": "string", - "description": "A system generated property that specifies the addressable path of the users resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/SqlDatabaseResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "SqlContainerGetResults": { - "description": "An Azure Cosmos DB container.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB container", - "$ref": "#/definitions/SqlContainerGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "SqlContainerGetProperties": { - "description": "The properties of an Azure Cosmos DB container", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/SqlContainerResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "SqlStoredProcedureGetResults": { - "description": "An Azure Cosmos DB storedProcedure.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB storedProcedure", - "$ref": "#/definitions/SqlStoredProcedureGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "SqlStoredProcedureGetProperties": { - "description": "The properties of an Azure Cosmos DB StoredProcedure", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/SqlStoredProcedureResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - } - } - }, - "SqlUserDefinedFunctionGetResults": { - "description": "An Azure Cosmos DB userDefinedFunction.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB userDefinedFunction", - "$ref": "#/definitions/SqlUserDefinedFunctionGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "SqlUserDefinedFunctionGetProperties": { - "description": "The properties of an Azure Cosmos DB userDefinedFunction", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/SqlUserDefinedFunctionResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - } - } - }, - "SqlTriggerGetResults": { - "description": "An Azure Cosmos DB trigger.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB trigger", - "$ref": "#/definitions/SqlTriggerGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "SqlTriggerGetProperties": { - "description": "The properties of an Azure Cosmos DB trigger", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/SqlTriggerResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - } - } - }, - "MongoDBDatabaseGetResults": { - "description": "An Azure Cosmos DB MongoDB database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB MongoDB database", - "$ref": "#/definitions/MongoDBDatabaseGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "MongoDBDatabaseGetProperties": { - "description": "The properties of an Azure Cosmos DB MongoDB database", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/MongoDBDatabaseResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "MongoDBCollectionGetResults": { - "description": "An Azure Cosmos DB MongoDB collection.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB MongoDB collection", - "$ref": "#/definitions/MongoDBCollectionGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "MongoDBCollectionGetProperties": { - "description": "The properties of an Azure Cosmos DB MongoDB collection", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/MongoDBCollectionResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "TableGetResults": { - "description": "An Azure Cosmos DB Table.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB Table", - "$ref": "#/definitions/TableGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "TableGetProperties": { - "description": "The properties of an Azure Cosmos Table", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/TableResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "CassandraKeyspaceGetResults": { - "description": "An Azure Cosmos DB Cassandra keyspace.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB Cassandra keyspace", - "$ref": "#/definitions/CassandraKeyspaceGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "CassandraKeyspaceGetProperties": { - "description": "The properties of an Azure Cosmos DB Cassandra keyspace", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/CassandraKeyspaceResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "CassandraTableGetResults": { - "description": "An Azure Cosmos DB Cassandra table.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB Cassandra table", - "$ref": "#/definitions/CassandraTableGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "CassandraTableGetProperties": { - "description": "The properties of an Azure Cosmos DB Cassandra table", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/CassandraTableResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "GremlinDatabaseGetResults": { - "description": "An Azure Cosmos DB Gremlin database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB SQL database", - "$ref": "#/definitions/GremlinDatabaseGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "GremlinDatabaseGetProperties": { - "description": "The properties of an Azure Cosmos DB SQL database", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/GremlinDatabaseResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "GremlinGraphGetResults": { - "description": "An Azure Cosmos DB Gremlin graph.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of an Azure Cosmos DB Gremlin graph", - "$ref": "#/definitions/GremlinGraphGetProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] - }, - "GremlinGraphGetProperties": { - "description": "The properties of an Azure Cosmos DB Gremlin graph", - "type": "object", - "properties": { - "resource": { - "allOf": [ - { - "$ref": "#/definitions/GremlinGraphResource" - }, - { - "$ref": "#/definitions/ExtendedResourceProperties" - } - ] - }, - "options": { - "allOf": [ - { - "$ref": "#/definitions/OptionsResource" - } - ] - } - } - }, - "ConsistencyPolicy": { - "type": "object", - "description": "The consistency policy for the Cosmos DB database account.", - "properties": { - "defaultConsistencyLevel": { - "description": "The default consistency level and configuration settings of the Cosmos DB account.", - "type": "string", - "enum": [ - "Eventual", - "Session", - "BoundedStaleness", - "Strong", - "ConsistentPrefix" - ], - "x-ms-enum": { - "name": "DefaultConsistencyLevel", - "modelAsString": false - } - }, - "maxStalenessPrefix": { - "description": "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "format": "int64" - }, - "maxIntervalInSeconds": { - "description": "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.", - "type": "integer", - "minimum": 5, - "maximum": 86400, - "format": "int32" - } - }, - "required": [ - "defaultConsistencyLevel" - ] - }, - "CorsPolicy": { - "type": "object", - "description": "The CORS policy for the Cosmos DB database account.", - "properties": { - "allowedOrigins": { - "description": "The origin domains that are permitted to make a request against the service via CORS.", - "type": "string" - }, - "allowedMethods": { - "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request.", - "type": "string" - }, - "allowedHeaders": { - "description": "The request headers that the origin domain may specify on the CORS request.", - "type": "string" - }, - "exposedHeaders": { - "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.", - "type": "string" - }, - "maxAgeInSeconds": { - "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.", - "type": "integer", - "minimum": 1, - "maximum": 2147483647, - "format": "int64" - } - }, - "required": [ - "allowedOrigins" - ] - }, - "DatabaseAccountGetProperties": { - "description": "Properties for the database account.", - "type": "object", - "properties": { - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "documentEndpoint": { - "description": "The connection endpoint for the Cosmos DB database account.", - "type": "string", - "readOnly": true - }, - "databaseAccountOfferType": { - "description": "The offer type for the Cosmos DB database account. Default value: Standard.", - "readOnly": true, - "$ref": "#/definitions/DatabaseAccountOfferType" - }, - "ipRules": { - "description": "List of IpRules.", - "$ref": "#/definitions/IPRules" - }, - "isVirtualNetworkFilterEnabled": { - "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", - "type": "boolean" - }, - "enableAutomaticFailover": { - "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", - "type": "boolean" - }, - "consistencyPolicy": { - "description": "The consistency policy for the Cosmos DB database account.", - "$ref": "#/definitions/ConsistencyPolicy" - }, - "capabilities": { - "type": "array", - "description": "List of Cosmos DB capabilities for the account", - "items": { - "$ref": "#/definitions/Capability" - } - }, - "writeLocations": { - "type": "array", - "readOnly": true, - "description": "An array that contains the write location for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/Location" - } - }, - "readLocations": { - "type": "array", - "readOnly": true, - "description": "An array that contains of the read locations enabled for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/Location" - } - }, - "locations": { - "type": "array", - "readOnly": true, - "description": "An array that contains all of the locations enabled for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/Location" - } - }, - "failoverPolicies": { - "type": "array", - "readOnly": true, - "description": "An array that contains the regions ordered by their failover priorities.", - "items": { - "$ref": "#/definitions/FailoverPolicy" - } - }, - "virtualNetworkRules": { - "type": "array", - "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "privateEndpointConnections": { - "type": "array", - "readOnly": true, - "description": "List of Private Endpoint Connections configured for the Cosmos DB account.", - "items": { - "$ref": "../../stable/2021-10-15/privateEndpointConnection.json#/definitions/PrivateEndpointConnection" - } - }, - "enableMultipleWriteLocations": { - "description": "Enables the account to write in multiple locations", - "type": "boolean" - }, - "enableCassandraConnector": { - "description": "Enables the cassandra connector on the Cosmos DB C* account", - "type": "boolean" - }, - "connectorOffer": { - "description": "The cassandra connector offer type for the Cosmos DB database C* account.", - "$ref": "#/definitions/ConnectorOffer" - }, - "disableKeyBasedMetadataWriteAccess": { - "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", - "type": "boolean" - }, - "keyVaultKeyUri": { - "description": "The URI of the key vault", - "type": "string" - }, - "defaultIdentity": { - "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", - "type": "string" - }, - "publicNetworkAccess": { - "description": "Whether requests from Public Network are allowed", - "$ref": "#/definitions/PublicNetworkAccess" - }, - "enableFreeTier": { - "description": "Flag to indicate whether Free Tier is enabled.", - "type": "boolean" - }, - "apiProperties": { - "description": "API specific properties.", - "type": "object", - "$ref": "#/definitions/ApiProperties" - }, - "enableAnalyticalStorage": { - "description": "Flag to indicate whether to enable storage analytics.", - "type": "boolean" - }, - "analyticalStorageConfiguration": { - "description": "Analytical storage specific properties.", - "type": "object", - "$ref": "#/definitions/AnalyticalStorageConfiguration" - }, - "instanceId": { - "description": "A unique identifier assigned to the database account", - "type": "string", - "readOnly": true - }, - "createMode": { - "description": "Enum to indicate the mode of account creation.", - "type": "string", - "default": "Default", - "$ref": "#/definitions/CreateMode" - }, - "restoreParameters": { - "description": "Parameters to indicate the information about the restore.", - "type": "object", - "$ref": "#/definitions/RestoreParameters" - }, - "backupPolicy": { - "description": "The object representing the policy for taking backups on an account.", - "type": "object", - "$ref": "#/definitions/BackupPolicy" - }, - "cors": { - "type": "array", - "description": "The CORS policy for the Cosmos DB database account.", - "items": { - "$ref": "#/definitions/CorsPolicy" - } - }, - "networkAclBypass": { - "description": "Indicates what services are allowed to bypass firewall checks.", - "$ref": "#/definitions/NetworkAclBypass" - }, - "networkAclBypassResourceIds": { - "type": "array", - "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", - "items": { - "type": "string" - } - }, - "disableLocalAuth": { - "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", - "type": "boolean" - }, - "capacity": { - "description": "The object that represents all properties related to capacity enforcement on an account.", - "type": "object", - "$ref": "#/definitions/Capacity" - } - } - }, - "DatabaseAccountCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB database accounts.", - "type": "object", - "properties": { - "consistencyPolicy": { - "description": "The consistency policy for the Cosmos DB account.", - "$ref": "#/definitions/ConsistencyPolicy" - }, - "locations": { - "type": "array", - "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/Location" - } - }, - "databaseAccountOfferType": { - "description": "The offer type for the database", - "$ref": "#/definitions/DatabaseAccountOfferType" - }, - "ipRules": { - "description": "List of IpRules.", - "$ref": "#/definitions/IPRules" - }, - "isVirtualNetworkFilterEnabled": { - "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", - "type": "boolean" - }, - "enableAutomaticFailover": { - "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", - "type": "boolean" - }, - "capabilities": { - "type": "array", - "description": "List of Cosmos DB capabilities for the account", - "items": { - "$ref": "#/definitions/Capability" - } - }, - "virtualNetworkRules": { - "type": "array", - "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "enableMultipleWriteLocations": { - "description": "Enables the account to write in multiple locations", - "type": "boolean" - }, - "enableCassandraConnector": { - "description": "Enables the cassandra connector on the Cosmos DB C* account", - "type": "boolean" - }, - "connectorOffer": { - "description": "The cassandra connector offer type for the Cosmos DB database C* account.", - "$ref": "#/definitions/ConnectorOffer" - }, - "disableKeyBasedMetadataWriteAccess": { - "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", - "type": "boolean" - }, - "keyVaultKeyUri": { - "description": "The URI of the key vault", - "type": "string" - }, - "defaultIdentity": { - "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", - "type": "string" - }, - "publicNetworkAccess": { - "description": "Whether requests from Public Network are allowed", - "$ref": "#/definitions/PublicNetworkAccess" - }, - "enableFreeTier": { - "description": "Flag to indicate whether Free Tier is enabled.", - "type": "boolean" - }, - "apiProperties": { - "description": "API specific properties. Currently, supported only for MongoDB API.", - "type": "object", - "$ref": "#/definitions/ApiProperties" - }, - "enableAnalyticalStorage": { - "description": "Flag to indicate whether to enable storage analytics.", - "type": "boolean" - }, - "analyticalStorageConfiguration": { - "description": "Analytical storage specific properties.", - "type": "object", - "$ref": "#/definitions/AnalyticalStorageConfiguration" - }, - "createMode": { - "description": "Enum to indicate the mode of account creation.", - "type": "string", - "default": "Default", - "$ref": "#/definitions/CreateMode" - }, - "backupPolicy": { - "description": "The object representing the policy for taking backups on an account.", - "type": "object", - "$ref": "#/definitions/BackupPolicy" - }, - "cors": { - "type": "array", - "description": "The CORS policy for the Cosmos DB database account.", - "items": { - "$ref": "#/definitions/CorsPolicy" - } - }, - "networkAclBypass": { - "description": "Indicates what services are allowed to bypass firewall checks.", - "$ref": "#/definitions/NetworkAclBypass" - }, - "networkAclBypassResourceIds": { - "type": "array", - "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", - "items": { - "type": "string" - } - }, - "disableLocalAuth": { - "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", - "type": "boolean" - }, - "restoreParameters": { - "description": "Parameters to indicate the information about the restore.", - "type": "object", - "$ref": "#/definitions/RestoreParameters" - }, - "capacity": { - "description": "The object that represents all properties related to capacity enforcement on an account.", - "type": "object", - "$ref": "#/definitions/Capacity" - } - }, - "required": [ - "locations", - "databaseAccountOfferType" - ] - }, - "DatabaseAccountCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB database accounts.", - "type": "object", - "properties": { - "kind": { - "description": "Indicates the type of database account. This can only be set at database account creation.", - "type": "string", - "default": "GlobalDocumentDB", - "enum": [ - "GlobalDocumentDB", - "MongoDB", - "Parse" - ], - "x-ms-enum": { - "name": "DatabaseAccountKind", - "modelAsString": true - } - }, - "identity": { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DatabaseAccountCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "DatabaseAccountUpdateProperties": { - "description": "Properties to update Azure Cosmos DB database accounts.", - "type": "object", - "properties": { - "consistencyPolicy": { - "description": "The consistency policy for the Cosmos DB account.", - "$ref": "#/definitions/ConsistencyPolicy" - }, - "locations": { - "type": "array", - "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/Location" - } - }, - "ipRules": { - "description": "List of IpRules.", - "$ref": "#/definitions/IPRules" - }, - "isVirtualNetworkFilterEnabled": { - "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.", - "type": "boolean" - }, - "enableAutomaticFailover": { - "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.", - "type": "boolean" - }, - "capabilities": { - "type": "array", - "description": "List of Cosmos DB capabilities for the account", - "items": { - "$ref": "#/definitions/Capability" - } - }, - "virtualNetworkRules": { - "type": "array", - "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - } - }, - "enableMultipleWriteLocations": { - "description": "Enables the account to write in multiple locations", - "type": "boolean" - }, - "enableCassandraConnector": { - "description": "Enables the cassandra connector on the Cosmos DB C* account", - "type": "boolean" - }, - "connectorOffer": { - "description": "The cassandra connector offer type for the Cosmos DB database C* account.", - "$ref": "#/definitions/ConnectorOffer" - }, - "disableKeyBasedMetadataWriteAccess": { - "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys", - "type": "boolean" - }, - "keyVaultKeyUri": { - "description": "The URI of the key vault", - "type": "string" - }, - "defaultIdentity": { - "description": "The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be \"FirstPartyIdentity\", \"SystemAssignedIdentity\" and more.", - "type": "string" - }, - "publicNetworkAccess": { - "description": "Whether requests from Public Network are allowed", - "$ref": "#/definitions/PublicNetworkAccess" - }, - "enableFreeTier": { - "description": "Flag to indicate whether Free Tier is enabled.", - "type": "boolean" - }, - "apiProperties": { - "description": "API specific properties. Currently, supported only for MongoDB API.", - "type": "object", - "$ref": "#/definitions/ApiProperties" - }, - "enableAnalyticalStorage": { - "description": "Flag to indicate whether to enable storage analytics.", - "type": "boolean" - }, - "analyticalStorageConfiguration": { - "description": "Analytical storage specific properties.", - "type": "object", - "$ref": "#/definitions/AnalyticalStorageConfiguration" - }, - "backupPolicy": { - "description": "The object representing the policy for taking backups on an account.", - "type": "object", - "$ref": "#/definitions/BackupPolicy" - }, - "cors": { - "type": "array", - "description": "The CORS policy for the Cosmos DB database account.", - "items": { - "$ref": "#/definitions/CorsPolicy" - } - }, - "networkAclBypass": { - "description": "Indicates what services are allowed to bypass firewall checks.", - "$ref": "#/definitions/NetworkAclBypass" - }, - "networkAclBypassResourceIds": { - "type": "array", - "description": "An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.", - "items": { - "type": "string" - } - }, - "disableLocalAuth": { - "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", - "type": "boolean" - }, - "capacity": { - "description": "The object that represents all properties related to capacity enforcement on an account.", - "type": "object", - "$ref": "#/definitions/Capacity" - } - } - }, - "DatabaseAccountUpdateParameters": { - "description": "Parameters for patching Azure Cosmos DB database account properties.", - "type": "object", - "properties": { - "tags": { - "$ref": "#/definitions/Tags" - }, - "location": { - "type": "string", - "description": "The location of the resource group to which the resource belongs." - }, - "identity": { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DatabaseAccountUpdateProperties" - } - } - }, - "DatabaseAccountListReadOnlyKeysResult": { - "description": "The read-only access keys for the given database account.", - "properties": { - "primaryReadonlyMasterKey": { - "readOnly": true, - "type": "string", - "description": "Base 64 encoded value of the primary read-only key." - }, - "secondaryReadonlyMasterKey": { - "readOnly": true, - "type": "string", - "description": "Base 64 encoded value of the secondary read-only key." - } - } - }, - "DatabaseAccountListKeysResult": { - "description": "The access keys for the given database account.", - "properties": { - "primaryMasterKey": { - "readOnly": true, - "type": "string", - "description": "Base 64 encoded value of the primary read-write key." - }, - "secondaryMasterKey": { - "readOnly": true, - "type": "string", - "description": "Base 64 encoded value of the secondary read-write key." - } - }, - "allOf": [ - { - "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" - } - ] - }, - "DatabaseAccountConnectionString": { - "description": "Connection string for the Cosmos DB account", - "properties": { - "connectionString": { - "readOnly": true, - "type": "string", - "description": "Value of the connection string" - }, - "description": { - "readOnly": true, - "type": "string", - "description": "Description of the connection string" - } - } - }, - "DatabaseAccountListConnectionStringsResult": { - "description": "The connection strings for the given database account.", - "properties": { - "connectionStrings": { - "type": "array", - "description": "An array that contains the connection strings for the Cosmos DB account.", - "items": { - "$ref": "#/definitions/DatabaseAccountConnectionString" - } - } - } - }, - "DatabaseAccountRegenerateKeyParameters": { - "type": "object", - "description": "Parameters to regenerate the keys within the database account.", - "properties": { - "keyKind": { - "type": "string", - "description": "The access key to regenerate.", - "enum": [ - "primary", - "secondary", - "primaryReadonly", - "secondaryReadonly" - ], - "x-ms-enum": { - "name": "KeyKind", - "modelAsString": true - } - } - }, - "required": [ - "keyKind" - ] - }, - "DatabaseAccountOfferType": { - "description": "The offer type for the Cosmos DB database account.", - "type": "string", - "enum": [ - "Standard" - ], - "x-ms-enum": { - "name": "DatabaseAccountOfferType", - "modelAsString": false - } - }, - "ThroughputSettingsUpdateParameters": { - "description": "Parameters to update Cosmos DB resource throughput.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to update Azure Cosmos DB resource throughput.", - "$ref": "#/definitions/ThroughputSettingsUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "ThroughputSettingsUpdateProperties": { - "description": "Properties to update Azure Cosmos DB resource throughput.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a resource throughput", - "$ref": "#/definitions/ThroughputSettingsResource" - } - }, - "required": [ - "resource" - ] - }, - "SqlDatabaseCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB SQL database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB SQL database.", - "$ref": "#/definitions/SqlDatabaseCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "SqlDatabaseCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB SQL database.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a SQL database", - "$ref": "#/definitions/SqlDatabaseResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "SqlContainerCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB container.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB container.", - "$ref": "#/definitions/SqlContainerCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "SqlContainerCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB container.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a container", - "$ref": "#/definitions/SqlContainerResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "SqlStoredProcedureCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB storedProcedure.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB storedProcedure.", - "$ref": "#/definitions/SqlStoredProcedureCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "SqlStoredProcedureCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB storedProcedure.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a storedProcedure", - "$ref": "#/definitions/SqlStoredProcedureResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "SqlUserDefinedFunctionCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB userDefinedFunction.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", - "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "SqlUserDefinedFunctionCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a userDefinedFunction", - "$ref": "#/definitions/SqlUserDefinedFunctionResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "SqlTriggerCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB trigger.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB trigger.", - "$ref": "#/definitions/SqlTriggerCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "SqlTriggerCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB trigger.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a trigger", - "$ref": "#/definitions/SqlTriggerResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "MongoDBDatabaseCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB MongoDB database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB MongoDB database.", - "$ref": "#/definitions/MongoDBDatabaseCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "MongoDBDatabaseCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB MongoDB database.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a MongoDB database", - "$ref": "#/definitions/MongoDBDatabaseResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "MongoDBCollectionCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB MongoDB collection.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", - "$ref": "#/definitions/MongoDBCollectionCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "MongoDBCollectionCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB MongoDB collection.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a MongoDB collection", - "$ref": "#/definitions/MongoDBCollectionResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "TableCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB Table.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB Table.", - "$ref": "#/definitions/TableCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "TableCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB Table.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a Table", - "$ref": "#/definitions/TableResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "CassandraKeyspaceCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB Cassandra keyspace.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", - "$ref": "#/definitions/CassandraKeyspaceCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "CassandraKeyspaceCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a Cassandra keyspace", - "$ref": "#/definitions/CassandraKeyspaceResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "CassandraTableCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB Cassandra table.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB Cassandra table.", - "$ref": "#/definitions/CassandraTableCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "CassandraTableCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB Cassandra table.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a Cassandra table", - "$ref": "#/definitions/CassandraTableResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "GremlinDatabaseCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB Gremlin database.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB Gremlin database.", - "$ref": "#/definitions/GremlinDatabaseCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "GremlinDatabaseCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB Gremlin database.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a Gremlin database", - "$ref": "#/definitions/GremlinDatabaseResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "GremlinGraphCreateUpdateParameters": { - "description": "Parameters to create and update Cosmos DB Gremlin graph.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", - "$ref": "#/definitions/GremlinGraphCreateUpdateProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ], - "required": [ - "properties" - ] - }, - "GremlinGraphCreateUpdateProperties": { - "description": "Properties to create and update Azure Cosmos DB Gremlin graph.", - "type": "object", - "properties": { - "resource": { - "description": "The standard JSON format of a Gremlin graph", - "$ref": "#/definitions/GremlinGraphResource" - }, - "options": { - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.", - "$ref": "#/definitions/CreateUpdateOptions" - } - }, - "required": [ - "resource" - ] - }, - "ThroughputSettingsResource": { - "type": "object", - "description": "Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.", - "properties": { - "throughput": { - "type": "integer", - "description": "Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both." - }, - "autoscaleSettings": { - "description": "Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.", - "$ref": "#/definitions/AutoscaleSettingsResource" - }, - "minimumThroughput": { - "type": "string", - "description": "The minimum throughput of the resource", - "readOnly": true - }, - "offerReplacePending": { - "type": "string", - "description": "The throughput replace is pending", - "readOnly": true - } - } - }, - "AutoscaleSettingsResource": { - "type": "object", - "description": "Cosmos DB provisioned throughput settings object", - "properties": { - "maxThroughput": { - "type": "integer", - "description": "Represents maximum throughput container can scale up to." - }, - "autoUpgradePolicy": { - "description": "Cosmos DB resource auto-upgrade policy", - "$ref": "#/definitions/AutoUpgradePolicyResource" - }, - "targetMaxThroughput": { - "type": "integer", - "description": "Represents target maximum throughput container can scale up to once offer is no longer in pending state.", - "readOnly": true - } - }, - "required": [ - "maxThroughput" - ] - }, - "AutoUpgradePolicyResource": { - "type": "object", - "description": "Cosmos DB resource auto-upgrade policy", - "properties": { - "throughputPolicy": { - "description": "Represents throughput policy which service must adhere to for auto-upgrade", - "$ref": "#/definitions/ThroughputPolicyResource" - } - } - }, - "ThroughputPolicyResource": { - "type": "object", - "description": "Cosmos DB resource throughput policy", - "properties": { - "isEnabled": { - "type": "boolean", - "description": "Determines whether the ThroughputPolicy is active or not" - }, - "incrementPercent": { - "type": "integer", - "description": "Represents the percentage by which throughput can increase every time throughput policy kicks in." - } - } - }, - "OptionsResource": { - "type": "object", - "description": "Cosmos DB options resource object", - "readOnly": true, - "properties": { - "throughput": { - "type": "integer", - "description": "Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details." - }, - "autoscaleSettings": { - "type": "object", - "$ref": "#/definitions/AutoscaleSettings", - "description": "Specifies the Autoscale settings." - } - } - }, - "ClientEncryptionKeyResource": { - "type": "object", - "description": "Cosmos DB client encryption key resource object.", - "properties": { - "encryptionAlgorithmId": { - "type": "string", - "description": "Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data." - }, - "wrappedDataEncryptionKey": { - "type": "string", - "description": "Wrapped (encrypted) form of the key." - }, - "keyWrapMetadata": { - "description": "Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.", - "$ref": "#/definitions/KeyWrapMetadata" - } - } - }, - "KeyWrapMetadata": { - "type": "object", - "description": "Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key.", - "properties": { - "name": { - "type": "string", - "description": "The name of associated KeyEncryptionKey (aka CustomerManagedKey)." - }, - "type": { - "type": "string", - "description": "ProviderName of KeyStoreProvider." - }, - "value": { - "type": "string", - "description": "Value / link of the KeyEncryptionKey." - } - } - }, - "SqlDatabaseResource": { - "type": "object", - "description": "Cosmos DB SQL database resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB SQL database" - } - }, - "required": [ - "id" - ] - }, - "SqlContainerResource": { - "type": "object", - "description": "Cosmos DB SQL container resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB SQL container" - }, - "indexingPolicy": { - "$ref": "#/definitions/IndexingPolicy", - "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container" - }, - "partitionKey": { - "$ref": "#/definitions/ContainerPartitionKey", - "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" - }, - "defaultTtl": { - "type": "integer", - "description": "Default time to live" - }, - "uniqueKeyPolicy": { - "$ref": "#/definitions/UniqueKeyPolicy", - "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." - }, - "conflictResolutionPolicy": { - "$ref": "#/definitions/ConflictResolutionPolicy", - "description": "The conflict resolution policy for the container." - }, - "analyticalStorageTtl": { - "type": "integer", - "format": "int64", - "description": "Analytical TTL." - } - }, - "required": [ - "id" - ] - }, - "IndexingPolicy": { - "type": "object", - "description": "Cosmos DB indexing policy", - "properties": { - "automatic": { - "type": "boolean", - "description": "Indicates if the indexing policy is automatic" - }, - "indexingMode": { - "description": "Indicates the indexing mode.", - "type": "string", - "default": "consistent", - "enum": [ - "consistent", - "lazy", - "none" - ], - "x-ms-enum": { - "name": "IndexingMode", - "modelAsString": true - } - }, - "includedPaths": { - "description": "List of paths to include in the indexing", - "type": "array", - "items": { - "$ref": "#/definitions/IncludedPath" - } - }, - "excludedPaths": { - "description": "List of paths to exclude from indexing", - "type": "array", - "items": { - "$ref": "#/definitions/ExcludedPath" - } - }, - "compositeIndexes": { - "description": "List of composite path list", - "type": "array", - "items": { - "$ref": "#/definitions/CompositePathList" - } - }, - "spatialIndexes": { - "description": "List of spatial specifics", - "type": "array", - "items": { - "$ref": "#/definitions/SpatialSpec" - } - } - } - }, - "ExcludedPath": { - "type": "object", - "properties": { - "path": { - "type": "string", - "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" - } - } - }, - "IncludedPath": { - "type": "object", - "description": "The paths that are included in indexing", - "properties": { - "path": { - "type": "string", - "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" - }, - "indexes": { - "description": "List of indexes for this path", - "type": "array", - "items": { - "$ref": "#/definitions/Indexes" - } - } - } - }, - "Indexes": { - "type": "object", - "description": "The indexes for the path.", - "properties": { - "dataType": { - "description": "The datatype for which the indexing behavior is applied to.", - "type": "string", - "default": "String", - "enum": [ - "String", - "Number", - "Point", - "Polygon", - "LineString", - "MultiPolygon" - ], - "x-ms-enum": { - "name": "DataType", - "modelAsString": true - } - }, - "precision": { - "description": "The precision of the index. -1 is maximum precision.", - "type": "integer" - }, - "kind": { - "description": "Indicates the type of index.", - "type": "string", - "default": "Hash", - "enum": [ - "Hash", - "Range", - "Spatial" - ], - "x-ms-enum": { - "name": "IndexKind", - "modelAsString": true - } - } - } - }, - "CompositePathList": { - "description": "List of composite path", - "type": "array", - "items": { - "$ref": "#/definitions/CompositePath" - } - }, - "CompositePath": { - "type": "object", - "properties": { - "path": { - "type": "string", - "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" - }, - "order": { - "description": "Sort order for composite paths.", - "type": "string", - "enum": [ - "ascending", - "descending" - ], - "x-ms-enum": { - "name": "CompositePathSortOrder", - "modelAsString": true - } - } - } - }, - "SpatialSpec": { - "type": "object", - "properties": { - "path": { - "type": "string", - "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)" - }, - "types": { - "description": "List of path's spatial type", - "type": "array", - "items": { - "$ref": "#/definitions/SpatialType" - } - } - } - }, - "SpatialType": { - "description": "Indicates the spatial type of index.", - "type": "string", - "enum": [ - "Point", - "LineString", - "Polygon", - "MultiPolygon" - ], - "x-ms-enum": { - "name": "SpatialType", - "modelAsString": true - } - }, - "ContainerPartitionKey": { - "type": "object", - "description": "The configuration of the partition key to be used for partitioning data into multiple partitions", - "properties": { - "paths": { - "description": "List of paths using which data within the container can be partitioned", - "type": "array", - "items": { - "$ref": "#/definitions/Path" - } - }, - "kind": { - "description": "Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create", - "type": "string", - "default": "Hash", - "enum": [ - "Hash", - "Range", - "MultiHash" - ], - "x-ms-enum": { - "name": "PartitionKind", - "modelAsString": true - } - }, - "version": { - "description": "Indicates the version of the partition key definition", - "type": "integer", - "minimum": 1, - "maximum": 2, - "format": "int32" - }, - "systemKey": { - "description": "Indicates if the container is using a system generated partition key", - "type": "boolean", - "readOnly": true - } - } - }, - "Path": { - "type": "string", - "description": "A path. These typically start with root (/path)" - }, - "UniqueKeyPolicy": { - "type": "object", - "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.", - "properties": { - "uniqueKeys": { - "description": "List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", - "type": "array", - "items": { - "$ref": "#/definitions/UniqueKey" - } - } - } - }, - "UniqueKey": { - "type": "object", - "description": "The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.", - "properties": { - "paths": { - "description": "List of paths must be unique for each document in the Azure Cosmos DB service", - "type": "array", - "items": { - "$ref": "#/definitions/Path" - } - } - } - }, - "ConflictResolutionPolicy": { - "type": "object", - "description": "The conflict resolution policy for the container.", - "properties": { - "mode": { - "description": "Indicates the conflict resolution mode.", - "type": "string", - "default": "LastWriterWins", - "enum": [ - "LastWriterWins", - "Custom" - ], - "x-ms-enum": { - "name": "ConflictResolutionMode", - "modelAsString": true - } - }, - "conflictResolutionPath": { - "type": "string", - "description": "The conflict resolution path in the case of LastWriterWins mode." - }, - "conflictResolutionProcedure": { - "type": "string", - "description": "The procedure to resolve conflicts in the case of custom mode." - } - } - }, - "SqlStoredProcedureResource": { - "type": "object", - "description": "Cosmos DB SQL storedProcedure resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB SQL storedProcedure" - }, - "body": { - "type": "string", - "description": "Body of the Stored Procedure" - } - }, - "required": [ - "id" - ] - }, - "SqlUserDefinedFunctionResource": { - "type": "object", - "description": "Cosmos DB SQL userDefinedFunction resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB SQL userDefinedFunction" - }, - "body": { - "type": "string", - "description": "Body of the User Defined Function" - } - }, - "required": [ - "id" - ] - }, - "SqlTriggerResource": { - "type": "object", - "description": "Cosmos DB SQL trigger resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB SQL trigger" - }, - "body": { - "type": "string", - "description": "Body of the Trigger" - }, - "triggerType": { - "type": "string", - "enum": [ - "Pre", - "Post" - ], - "description": "Type of the Trigger", - "x-ms-enum": { - "name": "triggerType", - "modelAsString": true - } - }, - "triggerOperation": { - "type": "string", - "enum": [ - "All", - "Create", - "Update", - "Delete", - "Replace" - ], - "description": "The operation the trigger is associated with", - "x-ms-enum": { - "name": "triggerOperation", - "modelAsString": true - } - } - }, - "required": [ - "id" - ] - }, - "MongoDBDatabaseResource": { - "type": "object", - "description": "Cosmos DB MongoDB database resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB MongoDB database" - } - }, - "required": [ - "id" - ] - }, - "MongoDBCollectionResource": { - "type": "object", - "description": "Cosmos DB MongoDB collection resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB MongoDB collection" - }, - "shardKey": { - "description": "A key-value pair of shard keys to be applied for the request.", - "$ref": "#/definitions/ShardKeys" - }, - "indexes": { - "description": "List of index keys", - "type": "array", - "items": { - "$ref": "#/definitions/MongoIndex" - } - }, - "analyticalStorageTtl": { - "type": "integer", - "description": "Analytical TTL." - } - }, - "required": [ - "id" - ] - }, - "ShardKeys": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The shard key and partition kind pair, only support \"Hash\" partition kind" - }, - "MongoIndex": { - "type": "object", - "description": "Cosmos DB MongoDB collection index key", - "properties": { - "key": { - "description": "Cosmos DB MongoDB collection index keys", - "$ref": "#/definitions/MongoIndexKeys" - }, - "options": { - "description": "Cosmos DB MongoDB collection index key options", - "$ref": "#/definitions/MongoIndexOptions" - } - } - }, - "MongoIndexKeys": { - "type": "object", - "description": "Cosmos DB MongoDB collection resource object", - "properties": { - "keys": { - "description": "List of keys for each MongoDB collection in the Azure Cosmos DB service", - "type": "array", - "items": { - "$ref": "#/definitions/Key" - } - } - } - }, - "Key": { - "type": "string", - "description": "A Key." - }, - "MongoIndexOptions": { - "type": "object", - "description": "Cosmos DB MongoDB collection index options", - "properties": { - "expireAfterSeconds": { - "description": "Expire after seconds", - "type": "integer" - }, - "unique": { - "description": "Is unique or not", - "type": "boolean" - } - } - }, - "TableResource": { - "type": "object", - "description": "Cosmos DB table resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB table" - } - }, - "required": [ - "id" - ] - }, - "CassandraKeyspaceResource": { - "type": "object", - "description": "Cosmos DB Cassandra keyspace resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB Cassandra keyspace" - } - }, - "required": [ - "id" - ] - }, - "CassandraTableResource": { - "type": "object", - "description": "Cosmos DB Cassandra table resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB Cassandra table" - }, - "defaultTtl": { - "type": "integer", - "description": "Time to live of the Cosmos DB Cassandra table" - }, - "schema": { - "description": "Schema of the Cosmos DB Cassandra table", - "$ref": "#/definitions/CassandraSchema" - }, - "analyticalStorageTtl": { - "type": "integer", - "description": "Analytical TTL." - } - }, - "required": [ - "id" - ] - }, - "CassandraSchema": { - "type": "object", - "description": "Cosmos DB Cassandra table schema", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/Column" - }, - "description": "List of Cassandra table columns." - }, - "partitionKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/CassandraPartitionKey" - }, - "description": "List of partition key." - }, - "clusterKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ClusterKey" - }, - "description": "List of cluster key." - } - } - }, - "Column": { - "type": "object", - "description": "Cosmos DB Cassandra table column", - "properties": { - "name": { - "type": "string", - "description": "Name of the Cosmos DB Cassandra table column" - }, - "type": { - "type": "string", - "description": "Type of the Cosmos DB Cassandra table column" - } - } - }, - "CassandraPartitionKey": { - "type": "object", - "description": "Cosmos DB Cassandra table partition key", - "properties": { - "name": { - "type": "string", - "description": "Name of the Cosmos DB Cassandra table partition key" - } - } - }, - "ClusterKey": { - "type": "object", - "description": "Cosmos DB Cassandra table cluster key", - "properties": { - "name": { - "type": "string", - "description": "Name of the Cosmos DB Cassandra table cluster key" - }, - "orderBy": { - "type": "string", - "description": "Order of the Cosmos DB Cassandra table cluster key, only support \"Asc\" and \"Desc\"" - } - } - }, - "GremlinDatabaseResource": { - "type": "object", - "description": "Cosmos DB Gremlin database resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB Gremlin database" - } - }, - "required": [ - "id" - ] - }, - "GremlinGraphResource": { - "type": "object", - "description": "Cosmos DB Gremlin graph resource object", - "properties": { - "id": { - "type": "string", - "description": "Name of the Cosmos DB Gremlin graph" - }, - "indexingPolicy": { - "$ref": "#/definitions/IndexingPolicy", - "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph" - }, - "partitionKey": { - "$ref": "#/definitions/ContainerPartitionKey", - "description": "The configuration of the partition key to be used for partitioning data into multiple partitions" - }, - "defaultTtl": { - "type": "integer", - "description": "Default time to live" - }, - "uniqueKeyPolicy": { - "$ref": "#/definitions/UniqueKeyPolicy", - "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service." - }, - "conflictResolutionPolicy": { - "$ref": "#/definitions/ConflictResolutionPolicy", - "description": "The conflict resolution policy for the graph." - } - }, - "required": [ - "id" - ] - }, - "CreateUpdateOptions": { - "type": "object", - "properties": { - "throughput": { - "type": "integer", - "description": "Request Units per second. For example, \"throughput\": 10000." - }, - "autoscaleSettings": { - "$ref": "#/definitions/AutoscaleSettings", - "description": "Specifies the Autoscale settings." - } - }, - "description": "CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are \"If-Match\", \"If-None-Match\", \"Session-Token\" and \"Throughput\"" - }, - "AutoscaleSettings": { - "type": "object", - "properties": { - "maxThroughput": { - "type": "integer", - "description": "Represents maximum throughput, the resource can scale up to." - } - } - }, - "Capability": { - "type": "object", - "description": "Cosmos DB capability object", - "properties": { - "name": { - "type": "string", - "description": "Name of the Cosmos DB capability. For example, \"name\": \"EnableCassandra\". Current values also include \"EnableTable\" and \"EnableGremlin\"." - } - } - }, - "Capacity": { - "type": "object", - "description": "The object that represents all properties related to capacity enforcement on an account.", - "properties": { - "totalThroughputLimit": { - "type": "integer", - "minimum": -1, - "format": "int32", - "description": "The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput." - } - } - }, - "Tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." - }, - "ManagedServiceIdentity": { - "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity." - }, - "tenantId": { - "readOnly": true, - "type": "string", - "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity." - }, - "type": { - "type": "string", - "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.", - "enum": [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ], - "x-ms-enum": { - "name": "ResourceIdentityType", - "modelAsString": false - } - }, - "userAssignedIdentities": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The principal id of user assigned identity." - }, - "clientId": { - "readOnly": true, - "type": "string", - "description": "The client id of user assigned identity." - } - } - }, - "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." - } - }, - "description": "Identity for the resource." - }, - "ProvisioningState": { - "type": "string", - "readOnly": true, - "description": "The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for the Create Cosmos DB account operation are returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation. 'DeletionFailed' – the Cosmos DB account deletion failed." - }, - "IPRules": { - "type": "array", - "description": "Array of IpAddressOrRange objects.", - "items": { - "$ref": "#/definitions/IpAddressOrRange" - } - }, - "IpAddressOrRange": { - "type": "object", - "description": "IpAddressOrRange object", - "properties": { - "ipAddressOrRange": { - "type": "string", - "description": "A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”." - } - } - }, - "VirtualNetworkRule": { - "type": "object", - "description": "Virtual Network ACL Rule object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}." - }, - "ignoreMissingVNetServiceEndpoint": { - "type": "boolean", - "description": "Create firewall rule before the virtual network has vnet service endpoint enabled." - } - } - }, - "NetworkAclBypass": { - "description": "Indicates what services are allowed to bypass firewall checks.", - "type": "string", - "enum": [ - "None", - "AzureServices" - ], - "x-ms-enum": { - "name": "NetworkAclBypass", - "modelAsString": false - } - }, - "Operation": { - "description": "REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "Provider": { - "description": "Service provider: Microsoft.ResourceProvider", - "type": "string" - }, - "Resource": { - "description": "Resource on which the operation is performed: Profile, endpoint, etc.", - "type": "string" - }, - "Operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string" - }, - "Description": { - "description": "Description of operation", - "type": "string" - } - } - } - } - }, - "OperationListResult": { - "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "List of operations supported by the Resource Provider." - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any." - } - } - }, - "UsagesResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "The list of usages for the database. A usage is a point in time metric" - } - }, - "description": "The response to a list usage request." - }, - "Usage": { - "properties": { - "unit": { - "description": "The unit of the metric.", - "$ref": "#/definitions/UnitType" - }, - "name": { - "$ref": "#/definitions/MetricName", - "readOnly": true, - "description": "The name information for the metric." - }, - "quotaPeriod": { - "type": "string", - "readOnly": true, - "description": "The quota period used to summarize the usage values." - }, - "limit": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Maximum value for this metric" - }, - "currentValue": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Current value for this metric" - } - }, - "description": "The usage data for a usage request." - }, - "PartitionUsagesResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/PartitionUsage" - }, - "description": "The list of partition-level usages for the database. A usage is a point in time metric" - } - }, - "description": "The response to a list partition level usage request." - }, - "PartitionUsage": { - "allOf": [ - { - "$ref": "#/definitions/Usage" - } - ], - "properties": { - "partitionId": { - "readOnly": true, - "type": "string", - "description": "The partition id (GUID identifier) of the usages." - }, - "partitionKeyRangeId": { - "readOnly": true, - "type": "string", - "description": "The partition key range id (integer identifier) of the usages." - } - }, - "description": "The partition level usage data for a usage request." - }, - "MetricDefinitionsListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/MetricDefinition" - }, - "description": "The list of metric definitions for the account." - } - }, - "description": "The response to a list metric definitions request." - }, - "MetricDefinition": { - "properties": { - "metricAvailabilities": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/MetricAvailability" - }, - "description": "The list of metric availabilities for the account." - }, - "primaryAggregationType": { - "readOnly": true, - "type": "string", - "description": "The primary aggregation type of the metric.", - "enum": [ - "None", - "Average", - "Total", - "Minimum", - "Maximum", - "Last" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "PrimaryAggregationType" - } - }, - "unit": { - "description": "The unit of the metric.", - "$ref": "#/definitions/UnitType" - }, - "resourceUri": { - "readOnly": true, - "type": "string", - "description": "The resource uri of the database." - }, - "name": { - "readOnly": true, - "$ref": "#/definitions/MetricName", - "description": "The name information for the metric." - } - }, - "description": "The definition of a metric." - }, - "MetricAvailability": { - "properties": { - "timeGrain": { - "readOnly": true, - "type": "string", - "description": "The time grain to be used to summarize the metric values." - }, - "retention": { - "readOnly": true, - "type": "string", - "description": "The retention for the metric values." - } - }, - "description": "The availability of the metric." - }, - "MetricListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Metric" - }, - "description": "The list of metrics for the account." - } - }, - "description": "The response to a list metrics request." - }, - "Metric": { - "properties": { - "startTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The start time for the metric (ISO-8601 format)." - }, - "endTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The end time for the metric (ISO-8601 format)." - }, - "timeGrain": { - "readOnly": true, - "type": "string", - "description": "The time grain to be used to summarize the metric values." - }, - "unit": { - "$ref": "#/definitions/UnitType", - "description": "The unit of the metric." - }, - "name": { - "readOnly": true, - "$ref": "#/definitions/MetricName", - "description": "The name information for the metric." - }, - "metricValues": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/MetricValue" - }, - "description": "The metric values for the specified time window and timestep." - } - }, - "description": "Metric data" - }, - "MetricName": { - "properties": { - "value": { - "readOnly": true, - "type": "string", - "description": "The name of the metric." - }, - "localizedValue": { - "readOnly": true, - "type": "string", - "description": "The friendly name of the metric." - } - }, - "description": "A metric name." - }, - "MetricValue": { - "properties": { - "_count": { - "readOnly": true, - "type": "number", - "format": "int32", - "description": "The number of values for the metric." - }, - "average": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The average value of the metric." - }, - "maximum": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The max value of the metric." - }, - "minimum": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The min value of the metric." - }, - "timestamp": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The metric timestamp (ISO-8601 format)." - }, - "total": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The total value of the metric." - } - }, - "description": "Represents metrics values." - }, - "PercentileMetricListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/PercentileMetric" - }, - "description": "The list of percentile metrics for the account." - } - }, - "description": "The response to a list percentile metrics request." - }, - "PercentileMetric": { - "properties": { - "startTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The start time for the metric (ISO-8601 format)." - }, - "endTime": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The end time for the metric (ISO-8601 format)." - }, - "timeGrain": { - "readOnly": true, - "type": "string", - "description": "The time grain to be used to summarize the metric values." - }, - "unit": { - "$ref": "#/definitions/UnitType", - "description": "The unit of the metric." - }, - "name": { - "readOnly": true, - "$ref": "#/definitions/MetricName", - "description": "The name information for the metric." - }, - "metricValues": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/PercentileMetricValue" - }, - "description": "The percentile metric values for the specified time window and timestep." - } - }, - "description": "Percentile Metric data" - }, - "PercentileMetricValue": { - "allOf": [ - { - "$ref": "#/definitions/MetricValue" - } - ], - "properties": { - "P10": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 10th percentile value for the metric." - }, - "P25": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 25th percentile value for the metric." - }, - "P50": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 50th percentile value for the metric." - }, - "P75": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 75th percentile value for the metric." - }, - "P90": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 90th percentile value for the metric." - }, - "P95": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 95th percentile value for the metric." - }, - "P99": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "The 99th percentile value for the metric." - } - }, - "description": "Represents percentile metrics values." - }, - "PartitionMetricListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/PartitionMetric" - }, - "description": "The list of partition-level metrics for the account." - } - }, - "description": "The response to a list partition metrics request." - }, - "PartitionMetric": { - "allOf": [ - { - "$ref": "#/definitions/Metric" - } - ], - "properties": { - "partitionId": { - "readOnly": true, - "type": "string", - "description": "The partition id (GUID identifier) of the metric values." - }, - "partitionKeyRangeId": { - "readOnly": true, - "type": "string", - "description": "The partition key range id (integer identifier) of the metric values." - } - }, - "description": "The metric values for a single partition." - }, - "UnitType": { - "type": "string", - "readOnly": true, - "description": "The unit of the metric.", - "enum": [ - "Count", - "Bytes", - "Seconds", - "Percent", - "CountPerSecond", - "BytesPerSecond", - "Milliseconds" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "UnitType" - } - }, - "ConnectorOffer": { - "description": "The cassandra connector offer type for the Cosmos DB C* database account.", - "type": "string", - "enum": [ - "Small" - ], - "x-ms-enum": { - "name": "ConnectorOffer", - "modelAsString": true - } - }, - "PublicNetworkAccess": { - "type": "string", - "description": "Whether requests from Public Network are allowed", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "PublicNetworkAccess" - } - }, - "ApiProperties": { - "type": "object", - "properties": { - "serverVersion": { - "type": "string", - "enum": [ - "3.2", - "3.6", - "4.0" - ], - "description": "Describes the ServerVersion of an a MongoDB account.", - "x-ms-enum": { - "modelAsString": true, - "name": "ServerVersion" - } - } - } - }, - "AnalyticalStorageConfiguration": { - "type": "object", - "description": "Analytical storage specific properties.", - "properties": { - "schemaType": { - "type": "string", - "$ref": "#/definitions/AnalyticalStorageSchemaType" - } - } - }, - "AnalyticalStorageSchemaType": { - "type": "string", - "description": "Describes the types of schema for analytical storage.", - "enum": [ - "WellDefined", - "FullFidelity" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "AnalyticalStorageSchemaType" - } - }, - "CreateMode": { - "description": "Enum to indicate the mode of account creation.", - "type": "string", - "default": "Default", - "enum": [ - "Default", - "Restore" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - } - }, - "RestoreParameters": { - "type": "object", - "description": "Parameters to indicate the information about the restore.", - "x-ms-mutability": [ - "read", - "create" - ], - "properties": { - "restoreMode": { - "type": "string", - "enum": [ - "PointInTime" - ], - "description": "Describes the mode of the restore.", - "x-ms-enum": { - "modelAsString": true, - "name": "RestoreMode" - } - }, - "restoreSource": { - "type": "string", - "description": "The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}" - }, - "restoreTimestampInUtc": { - "type": "string", - "format": "date-time", - "description": "Time to which the account has to be restored (ISO-8601 format)." - }, - "databasesToRestore": { - "type": "array", - "description": "List of specific databases available for restore.", - "items": { - "$ref": "#/definitions/DatabaseRestoreResource" - } - } - } - }, - "DatabaseRestoreResource": { - "type": "object", - "description": "Specific Databases to restore.", - "properties": { - "databaseName": { - "type": "string", - "description": "The name of the database available for restore." - }, - "collectionNames": { - "type": "array", - "description": "The names of the collections available for restore.", - "items": { - "$ref": "#/definitions/CollectionName" - } - } - } - }, - "CollectionName": { - "type": "string", - "description": "The name of the collection." - }, - "BackupPolicy": { - "type": "object", - "description": "The object representing the policy for taking backups on an account.", - "discriminator": "type", - "properties": { - "type": { - "description": "Describes the mode of backups.", - "type": "string", - "$ref": "#/definitions/BackupPolicyType" - }, - "migrationState": { - "description": "The object representing the state of the migration between the backup policies.", - "type": "object", - "$ref": "#/definitions/BackupPolicyMigrationState" - } - }, - "required": [ - "type" - ] - }, - "BackupPolicyType": { - "description": "Describes the mode of backups.", - "type": "string", - "enum": [ - "Periodic", - "Continuous" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "BackupPolicyType" - } - }, - "BackupPolicyMigrationState": { - "type": "object", - "description": "The object representing the state of the migration between the backup policies.", - "properties": { - "status": { - "description": "Describes the status of migration between backup policy types.", - "type": "string", - "$ref": "#/definitions/BackupPolicyMigrationStatus" - }, - "targetType": { - "description": "Describes the target backup policy type of the backup policy migration.", - "type": "string", - "$ref": "#/definitions/BackupPolicyType" - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Time at which the backup policy migration started (ISO-8601 format)." - } - } - }, - "BackupPolicyMigrationStatus": { - "description": "Describes the status of migration between backup policy types.", - "type": "string", - "enum": [ - "Invalid", - "InProgress", - "Completed", - "Failed" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "BackupPolicyMigrationStatus" - } - }, - "PeriodicModeBackupPolicy": { - "description": "The object representing periodic mode backup policy.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/BackupPolicy" - } - ], - "properties": { - "periodicModeProperties": { - "type": "object", - "description": "Configuration values for periodic mode backup", - "$ref": "#/definitions/PeriodicModeProperties" - } - }, - "x-ms-discriminator-value": "Periodic" - }, - "ContinuousModeBackupPolicy": { - "description": "The object representing continuous mode backup policy.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/BackupPolicy" - } - ], - "x-ms-discriminator-value": "Continuous" - }, - "PeriodicModeProperties": { - "type": "object", - "description": "Configuration values for periodic mode backup", - "properties": { - "backupIntervalInMinutes": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "An integer representing the interval in minutes between two backups" - }, - "backupRetentionIntervalInHours": { - "type": "integer", - "format": "int32", - "minimum": 0, - "description": "An integer representing the time (in hours) that each backup is retained" - }, - "backupStorageRedundancy": { - "description": "Enum to indicate type of backup residency", - "type": "string", - "$ref": "#/definitions/BackupStorageRedundancy" - } - } - }, - "LocationListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/LocationGetResult" - }, - "description": "List of Cosmos DB locations and their properties." - } - }, - "description": "The List operation response, that contains Cosmos DB locations and their properties." - }, - "LocationGetResult": { - "description": "Cosmos DB location get result", - "type": "object", - "properties": { - "properties": { - "type": "object", - "description": "Cosmos DB location metadata", - "$ref": "#/definitions/LocationProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ARMProxyResource" - } - ] - }, - "LocationProperties": { - "description": "Cosmos DB location metadata", - "type": "object", - "properties": { - "supportsAvailabilityZone": { - "type": "boolean", - "readOnly": true, - "description": "Flag indicating whether the location supports availability zones or not." - }, - "isResidencyRestricted": { - "type": "boolean", - "readOnly": true, - "description": "Flag indicating whether the location is residency sensitive." - }, - "backupStorageRedundancies": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/BackupStorageRedundancy" - }, - "description": "The properties of available backup storage redundancies." - } - } - }, - "BackupStorageRedundancy": { - "description": "Enum to indicate type of backup storage redundancy.", - "type": "string", - "enum": [ - "Geo", - "Local", - "Zone" - ], - "x-ms-enum": { - "name": "BackupStorageRedundancy", - "modelAsString": true - } - } - }, - "parameters": { - "resourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", - "minLength": 1, - "maxLength": 90, - "x-ms-parameter-location": "method", - "description": "Name of an Azure resource group." - }, - "accountNameParameter": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database account name.", - "minLength": 3, - "maxLength": 50, - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" - }, - "filterParameter": { - "name": "$filter", - "in": "query", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq." - }, - "usageFilterParameter": { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)." - }, - "databaseRidParameter": { - "name": "databaseRid", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database rid." - }, - "collectionRidParameter": { - "name": "collectionRid", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB collection rid." - }, - "databaseNameParameter": { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database name." - }, - "clientEncryptionKeyNameParameter": { - "name": "clientEncryptionKeyName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB ClientEncryptionKey name." - }, - "containerNameParameter": { - "name": "containerName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB container name." - }, - "storedProcedureNameParameter": { - "name": "storedProcedureName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB storedProcedure name." - }, - "userDefinedFunctionNameParameter": { - "name": "userDefinedFunctionName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB userDefinedFunction name." - }, - "triggerNameParameter": { - "name": "triggerName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB trigger name." - }, - "tableNameParameter": { - "name": "tableName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB table name." - }, - "collectionNameParameter": { - "name": "collectionName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB collection name." - }, - "keyspaceNameParameter": { - "name": "keyspaceName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB keyspace name." - }, - "graphNameParameter": { - "name": "graphName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB graph name." - }, - "regionParameter": { - "name": "region", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB region, with spaces between words and each word capitalized." - }, - "sourceRegionParameter": { - "name": "sourceRegion", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized." - }, - "targetRegionParameter": { - "name": "targetRegion", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized." - }, - "partitionKeyRangeIdParameter": { - "name": "partitionKeyRangeId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Partition Key Range Id for which to get data." - }, - "locationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB region, with spaces between words and each word capitalized." - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json deleted file mode 100644 index 1d7f69b7e1b5..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "createUpdateCassandraKeyspaceParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "keyspaceName" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", - "name": "keyspaceName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "keyspaceName" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json deleted file mode 100644 index 6ed26ea3132f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json deleted file mode 100644 index f8e803c68840..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", - "name": "keyspaceName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "keyspaceName", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json deleted file mode 100644 index 375b4ecca411..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceList.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName", - "name": "keyspaceName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "keyspaceName" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json deleted file mode 100644 index bd7c9120e0aa..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json deleted file mode 100644 index 46b04ff4583a..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json deleted file mode 100644 index 94cd6cbea37e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json deleted file mode 100644 index f6b5e351c6f5..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json deleted file mode 100644 index d54deb25493d..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName", - "createUpdateCassandraTableParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName", - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "Ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ], - "clusterKeys": [ - { - "name": "columnA", - "orderBy": "Asc" - } - ] - } - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName", - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "Ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ], - "clusterKeys": [ - { - "name": "columnA", - "orderBy": "Asc" - } - ] - } - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json deleted file mode 100644 index 2090fa3fa05b..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json deleted file mode 100644 index 6cabe1c2b3d0..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableGet.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName", - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "Ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ], - "clusterKeys": [ - { - "name": "columnA", - "orderBy": "Asc" - } - ] - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json deleted file mode 100644 index 7ab69e2fa045..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableList.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "keyspaceName": "keyspaceName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName", - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "Ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ], - "clusterKeys": [ - { - "name": "columnA", - "orderBy": "Asc" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json deleted file mode 100644 index 247737a9764e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json deleted file mode 100644 index df2d68921f42..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json deleted file mode 100644 index 53e1d5d0f341..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json deleted file mode 100644 index ad0f387ac9fd..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyspaceName": "keyspaceName", - "tableName": "tableName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json deleted file mode 100644 index 41d7582a84d2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyCreateUpdate.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-04-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rgName", - "accountName": "accountName", - "databaseName": "databaseName", - "clientEncryptionKeyName": "cekName", - "createUpdateClientEncryptionKeyParameters": { - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", - "keyWrapMetadata": { - "name": "customerManagedKey", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL" - } - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName", - "name": "cekName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", - "keyWrapMetadata": { - "name": "customerManagedKey", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL" - }, - "_rid": "tNc4AAAAAAAQkjzWAgAAAA==", - "_ts": 1626425552, - "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json deleted file mode 100644 index 7ee75ab6c329..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeyGet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2021-04-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rgName", - "accountName": "accountName", - "databaseName": "databaseName", - "clientEncryptionKeyName": "cekName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName", - "name": "cekName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek", - "keyWrapMetadata": { - "name": "customerManagedKey", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL" - }, - "_rid": "tNc4AAAAAAAQkjzWAgAAAA==", - "_ts": 1626425552, - "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json deleted file mode 100644 index d407673b468f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBClientEncryptionKeysList.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2021-04-01-preview", - "subscriptionId": "subId", - "resourceGroupName": "rgName", - "accountName": "accountName", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName1", - "name": "cekName1", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek1", - "keyWrapMetadata": { - "name": "customerManagedKey1", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL for customerManagedKey1" - }, - "_rid": "nAMyAAAAAADPw1kKAgAAAA==", - "_ts": 1626425552, - "_etag": "\"00000000-0000-0000-7a1f-bc0828e801d7\"" - } - } - }, - { - "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientencryptionkeys/cekName2", - "name": "cekName2", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey", - "properties": { - "resource": { - "encryptionAlgorithmId": "AEAD_AES_256_CBC_HMAC_SHA256", - "wrappedDataEncryptionKey": "wrappedDek2", - "keyWrapMetadata": { - "name": "customerManagedKey2", - "type": "AzureKeyVault", - "value": "AzureKeyVault Key URL for customerManagedKey2" - }, - "_rid": "nAMyAAAAAAAWWfxHAgAAAA==", - "_ts": 1626425631, - "_etag": "\"00000000-0000-0000-7a21-7788a38c01d7\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json deleted file mode 100644 index 3c5e16012762..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "subscriptionId": "subid", - "api-version": "2021-10-15", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json deleted file mode 100644 index 041fec39e5a8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetMetrics.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Count", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:03:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:08:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - } - ], - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json deleted file mode 100644 index 6fa1e4bf9c66..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionGetUsages.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "subscriptionId": "subid", - "$filter": "$filter=name.value eq 'Storage'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Bytes", - "quotaPeriod": "P1D", - "limit": 10737418240, - "currentValue": 0, - "name": { - "value": "Storage", - "localizedValue": "Storage" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json deleted file mode 100644 index f684bd67694c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT1M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T23:58:55.2780000Z", - "unit": "Count", - "partitionId": "00000000-0000-0000-0000-000000000000", - "partitionKeyRangeId": "0", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:54:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:55:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:56:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:57:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "maximum": 5 - } - ], - "name": { - "value": "Max RUs Per Second", - "localizedValue": "Max RUs Per Second" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json deleted file mode 100644 index 5ee50abfdcd1..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "subscriptionId": "subid", - "$filter": "$filter=name.value eq 'Partition Storage'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Bytes", - "quotaPeriod": "P1D", - "limit": 10737418240, - "currentValue": 0, - "partitionId": "00000000-0000-0000-0000-000000000000", - "partitionKeyRangeId": "0", - "name": { - "value": "Storage", - "localizedValue": "Storage" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json deleted file mode 100644 index 184fa1e83fc0..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "region": "North Europe", - "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT1M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T23:58:55.2780000Z", - "unit": "Count", - "partitionId": "00000000-0000-0000-0000-000000000000", - "partitionKeyRangeId": "0", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:54:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:55:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:56:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:57:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "maximum": 5 - } - ], - "name": { - "value": "Max RUs Per Second", - "localizedValue": "Max RUs Per Second" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json deleted file mode 100644 index 4a55193a5de0..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "api-version": "2021-10-15" - }, - "responses": { - "200": {}, - "404": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json deleted file mode 100644 index 3dcccf80ecf2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "createUpdateParameters": { - "location": "westus", - "tags": {}, - "kind": "MongoDB", - "identity": { - "type": "SystemAssigned,UserAssigned", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} - } - }, - "properties": { - "databaseAccountOfferType": "Standard", - "ipRules": [ - { - "ipAddressOrRange": "23.43.230.120" - }, - { - "ipAddressOrRange": "110.12.240.0/12" - } - ], - "isVirtualNetworkFilterEnabled": true, - "virtualNetworkRules": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - "ignoreMissingVNetServiceEndpoint": false - } - ], - "publicNetworkAccess": "Enabled", - "locations": [ - { - "failoverPriority": 0, - "locationName": "southcentralus", - "isZoneRedundant": false - }, - { - "failoverPriority": 1, - "locationName": "eastus", - "isZoneRedundant": false - } - ], - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 10, - "maxStalenessPrefix": 200 - }, - "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", - "defaultIdentity": "FirstPartyIdentity", - "enableFreeTier": false, - "apiProperties": { - "serverVersion": "3.2" - }, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "createMode": "Default", - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "cors": [ - { - "allowedOrigins": "https://test" - } - ], - "networkAclBypass": "AzureServices", - "networkAclBypassResourceIds": [ - "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ], - "capacity": { - "totalThroughputLimit": 2000 - }, - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "MongoDB", - "tags": {}, - "identity": { - "type": "SystemAssigned,UserAssigned", - "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", - "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", - "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" - } - } - }, - "properties": { - "provisioningState": "Initializing", - "isVirtualNetworkFilterEnabled": true, - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 10, - "maxStalenessPrefix": 200 - }, - "writeLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "ddb1-eastus", - "locationName": "East US", - "provisioningState": "Initializing", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "ddb1-eastus", - "locationName": "East US", - "provisioningState": "Initializing", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "failoverPriority": 0 - }, - { - "id": "ddb1-eastus", - "locationName": "East US", - "failoverPriority": 1 - } - ], - "virtualNetworkRules": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" - } - ], - "publicNetworkAccess": "Enabled", - "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", - "defaultIdentity": "FirstPartyIdentity", - "enableFreeTier": false, - "ipRules": [ - { - "ipAddressOrRange": "23.43.230.120" - }, - { - "ipAddressOrRange": "110.12.240.0/12" - } - ], - "apiProperties": { - "serverVersion": "3.2" - }, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "createMode": "Default", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "cors": [ - { - "allowedOrigins": "https://test" - } - ], - "networkAclBypass": "AzureServices", - "networkAclBypassResourceIds": [ - "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ], - "capacity": { - "totalThroughputLimit": 2000 - }, - }, - "systemData": { - "createdAt": "2021-03-12T22:05:09Z" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json deleted file mode 100644 index 27d2c44935b4..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "createUpdateParameters": { - "location": "westus", - "properties": { - "databaseAccountOfferType": "Standard", - "createMode": "Default", - "locations": [ - { - "failoverPriority": 0, - "locationName": "southcentralus", - "isZoneRedundant": false - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "properties": { - "provisioningState": "Initializing", - "ipRules": [], - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "writeLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "failoverPriority": 0 - } - ], - "cors": [], - "enableFreeTier": false, - "apiProperties": {}, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": null, - "networkAclBypass": "None", - "networkAclBypassResourceIds": [], - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "createMode": "Default", - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720, - "backupStorageRedundancy": "Geo" - } - } - }, - "systemData": { - "createdAt": "2021-03-12T22:05:09Z" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json deleted file mode 100644 index 4ca542defa41..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json deleted file mode 100644 index 07ca599fdc42..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1-failover", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "failoverParameters": { - "failoverPolicies": [ - { - "locationName": "eastus", - "failoverPriority": 0 - }, - { - "locationName": "westus", - "failoverPriority": 1 - } - ] - } - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json deleted file mode 100644 index f973f40efe55..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGet.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://ddb1.documents.azure.com:443/", - "ipRules": [], - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "defaultIdentity": "FirstPartyIdentity", - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "writeLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "readLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "locations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "failoverPolicies": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "privateEndpointConnections": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "actionsRequired": "None" - } - } - } - ], - "cors": [], - "enableFreeTier": false, - "apiProperties": {}, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "createMode": "Default", - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - }, - "migrationState": { - "status": "InProgress", - "targetType": "Continuous", - "startTime": "2021-06-09T21:07:16Z" - } - }, - "networkAclBypass": "None", - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "SystemAssigned,UserAssigned", - "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", - "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", - "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" - } - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json deleted file mode 100644 index da6ddcf7130e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "subscriptionId": "subid", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json deleted file mode 100644 index 6f393c23c023..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Count", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:03:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:08:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - } - ], - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json deleted file mode 100644 index 4341c6cbb9d7..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "$filter": "$filter=name.value eq 'Storage'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Bytes", - "quotaPeriod": "P1D", - "limit": 10737418240, - "currentValue": 0, - "name": { - "value": "Storage", - "localizedValue": "Storage" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json deleted file mode 100644 index ca3367e7b4ad..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountList.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://ddb1.documents.azure.com:443/", - "ipRules": [], - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "writeLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "readLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "locations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "failoverPolicies": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "privateEndpointConnections": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "actionsRequired": "None" - } - } - } - ], - "cors": [], - "defaultIdentity": "FirstPartyIdentity", - "enableFreeTier": false, - "apiProperties": {}, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "createMode": "Default", - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypass": "None", - "networkAclBypassResourceIds": [] - }, - "systemData": { - "createdAt": "2021-03-12T22:05:09Z" - }, - "identity": { - "type": "SystemAssigned,UserAssigned", - "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", - "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", - "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" - } - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json deleted file mode 100644 index 0c0a415abd81..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "resourceGroupName": "rg1", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://ddb1.documents.azure.com:443/", - "ipRules": [], - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "writeLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "readLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "locations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "failoverPolicies": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "enableFreeTier": false, - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "SystemAssigned,UserAssigned", - "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", - "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", - "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" - } - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json deleted file mode 100644 index 9476ec634f68..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json deleted file mode 100644 index e25d6487396e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "accountName": "mongo-ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "connectionStrings": [ - { - "connectionString": "connection-string", - "description": "Name of the connection string" - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json deleted file mode 100644 index 92ce33ec21f3..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListKeys.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "primaryMasterKey": "primaryMasterKey", - "secondaryMasterKey": "secondaryMasterKey", - "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", - "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json deleted file mode 100644 index 9e1675013464..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", - "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json deleted file mode 100644 index 9d2c27f29ef8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "region": "North Europe", - "regionParameterForOffline": [ - { - "region": "North Europe" - } - ] - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json deleted file mode 100644 index 72a6f833f84a..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "region": "North Europe", - "regionParameterForOnline": [ - { - "region": "North Europe" - } - ] - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json deleted file mode 100644 index ba55d4d52309..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountPatch.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "updateParameters": { - "location": "westus", - "tags": { - "dept": "finance" - }, - "identity": { - "type": "SystemAssigned,UserAssigned", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {} - } - }, - "properties": { - "ipRules": [ - { - "ipAddressOrRange": "23.43.230.120" - }, - { - "ipAddressOrRange": "110.12.240.0/12" - } - ], - "isVirtualNetworkFilterEnabled": true, - "virtualNetworkRules": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - "ignoreMissingVNetServiceEndpoint": false - } - ], - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 10, - "maxStalenessPrefix": 200 - }, - "defaultIdentity": "FirstPartyIdentity", - "enableFreeTier": false, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720, - "backupStorageRedundancy": "Local" - } - }, - "networkAclBypass": "AzureServices", - "networkAclBypassResourceIds": [ - "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ], - "capacity": { - "totalThroughputLimit": 2000 - }, - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": { - "dept": "finance" - }, - "identity": { - "type": "SystemAssigned,UserAssigned", - "principalId": "52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656", - "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "userAssignedIdentities": { - "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "clientId": "fbe75b66-01c5-4f87-a220-233af3270436", - "principalId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d" - } - } - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://ddb1.documents.azure.com:443/", - "databaseAccountOfferType": "Standard", - "ipRules": [ - { - "ipAddressOrRange": "23.43.230.120" - }, - { - "ipAddressOrRange": "110.12.240.0/12" - } - ], - "isVirtualNetworkFilterEnabled": true, - "disableKeyBasedMetadataWriteAccess": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 10, - "maxStalenessPrefix": 200 - }, - "writeLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "readLocations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "locations": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0 - } - ], - "failoverPolicies": [ - { - "id": "ddb1-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "virtualNetworkRules": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - "ignoreMissingVNetServiceEndpoint": false - } - ], - "privateEndpointConnections": [ - { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "actionsRequired": "None" - } - } - } - ], - "cors": [], - "defaultIdentity": "FirstPartyIdentity", - "enableFreeTier": false, - "apiProperties": {}, - "enableAnalyticalStorage": true, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720, - "backupStorageRedundancy": "Local" - } - }, - "networkAclBypass": "AzureServices", - "networkAclBypassResourceIds": [ - "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName" - ], - "capacity": { - "totalThroughputLimit": 2000 - }, - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json deleted file mode 100644 index b50f4668f635..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "keyToRegenerate": { - "keyKind": "primary" - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json deleted file mode 100644 index 8bb7d1173094..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "region": "North Europe", - "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Count", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:03:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:08:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - } - ], - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json deleted file mode 100644 index d4a7fd991eb0..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "subscriptionId": "subid", - "api-version": "2021-10-15", - "databaseRid": "databaseRid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json deleted file mode 100644 index 7a1876bf2885..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetMetrics.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "rid", - "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Count", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:03:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:08:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - } - ], - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json deleted file mode 100644 index ba14a11ddcf7..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBDatabaseGetUsages.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "databaseRid": "databaseRid", - "subscriptionId": "subid", - "$filter": "$filter=name.value eq 'Storage'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "unit": "Bytes", - "quotaPeriod": "P1D", - "limit": 10737418240, - "currentValue": 0, - "name": { - "value": "Storage", - "localizedValue": "Storage" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json deleted file mode 100644 index 8d6ac37b737c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "createUpdateGremlinDatabaseParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json deleted file mode 100644 index 12f6864e3f12..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json deleted file mode 100644 index 96063846445a..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json deleted file mode 100644 index 96fc1a6193cb..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseList.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json deleted file mode 100644 index 97b36fdad6f8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json deleted file mode 100644 index 086f8fd89505..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json deleted file mode 100644 index 78687a29c0fc..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json deleted file mode 100644 index fddd5966fc37..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json deleted file mode 100644 index cbe2b866e27e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName", - "createUpdateGremlinGraphParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - } - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName", - "name": "graphName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/gremlinGraphs", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json deleted file mode 100644 index b8e4928304cc..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json deleted file mode 100644 index 2c0a56a13205..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphGet.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "graphName": "graphName" - }, - "responses": { - "200": { - "body": { - "id": "graphName", - "name": "graphName", - "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json deleted file mode 100644 index 17b27ec7a0c8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphList.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "testgrf", - "name": "testgrf", - "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs", - "properties": { - "resource": { - "id": "testgrf", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json deleted file mode 100644 index a088633a92a6..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json deleted file mode 100644 index c2dda9ec6489..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json deleted file mode 100644 index 35a2b743af3f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json deleted file mode 100644 index bbf997f95914..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "graphName": "graphName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json deleted file mode 100644 index cbbed0c083f2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationGet.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "location": "westus" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", - "type": "Microsoft.DocumentDB/locations", - "name": "westus", - "properties": { - "supportsAvailabilityZone": true, - "isResidencyRestricted": true, - "backupStorageRedundancies": [ - "Local", - "Geo" - ] - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json deleted file mode 100644 index 04faaf3df6ef..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBLocationList.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus", - "type": "Microsoft.DocumentDB/locations", - "name": "westus", - "properties": { - "supportsAvailabilityZone": false, - "isResidencyRestricted": false, - "backupStorageRedundancies": [ - "Local", - "Geo" - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/centralus", - "type": "Microsoft.DocumentDB/locations", - "name": "centralus", - "properties": { - "supportsAvailabilityZone": true, - "isResidencyRestricted": false, - "backupStorageRedundancies": [ - "Zone", - "Geo" - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json deleted file mode 100644 index c5ea74b81cec..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "collectionName": "collectionName", - "location": { - "location": "North Europe" - } - }, - "responses": { - "200": { - "body": { - "continuousBackupInformation": { - "latestRestorableTimestamp": "2021-02-05T02:40:50Z" - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json deleted file mode 100644 index 370799f79af6..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName", - "createUpdateMongoDBCollectionParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "collectionName", - "indexes": [ - { - "key": { - "keys": [ - "_ts" - ] - }, - "options": { - "expireAfterSeconds": 100, - "unique": true - } - }, - { - "key": { - "keys": [ - "_id" - ] - } - } - ], - "shardKey": { - "testKey": "Hash" - } - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", - "name": "collectionName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "collectionName", - "indexes": [ - { - "key": { - "keys": [ - "_ts" - ] - }, - "options": { - "expireAfterSeconds": 100, - "unique": true - } - }, - { - "key": { - "keys": [ - "_id" - ] - } - } - ], - "shardKey": { - "testKey": "Hash" - } - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json deleted file mode 100644 index 6c0d0cbd082c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json deleted file mode 100644 index 648e27ac86c3..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionGet.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "collectionName": "collectionName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", - "name": "collectionName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "testcoll", - "indexes": [ - { - "key": { - "keys": [ - "testKey" - ] - }, - "options": { - "expireAfterSeconds": 100, - "unique": true - } - } - ], - "shardKey": { - "testKey": "Hash" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json deleted file mode 100644 index db4d61b96508..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionList.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName", - "name": "collectionName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "testcoll", - "indexes": [ - { - "key": { - "keys": [ - "testKey" - ] - }, - "options": { - "expireAfterSeconds": 100, - "unique": true - } - } - ], - "shardKey": { - "testKey": "Hash" - } - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json deleted file mode 100644 index c6130a24df0e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json deleted file mode 100644 index b85de747c670..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json deleted file mode 100644 index b99b63588318..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json deleted file mode 100644 index cccd9db1dbf6..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "collectionName": "collectionName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json deleted file mode 100644 index d4ae327cfe4b..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "createUpdateMongoDBDatabaseParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "updatedDatabaseName" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json deleted file mode 100644 index 12f6864e3f12..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json deleted file mode 100644 index 1d2d0768367e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json deleted file mode 100644 index 431ef6fc3d7c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseList.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json deleted file mode 100644 index 97b36fdad6f8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json deleted file mode 100644 index 086f8fd89505..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json deleted file mode 100644 index 461a6a4b6ee5..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json deleted file mode 100644 index 75d039aa43d7..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json deleted file mode 100644 index ad9c0b3c1b53..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview", - "createUpdateMongoDbRoleDefinitionParameters": { - "properties": { - "roleName": "myRoleName", - "databaseName": "sales", - "privileges": [ - { - "resource": { - "db": "sales", - "collection": "sales" - }, - "actions": [ - "insert", - "find" - ] - } - ], - "roles": [ - { - "role": "myInheritedRole", - "db": "sales" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId", - "name": "myMongoDbRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "databaseName": "sales", - "privileges": [ - { - "resource": { - "db": "sales", - "collection": "coll" - }, - "actions": [ - "find", - "insert" - ] - } - ], - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ] - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json deleted file mode 100644 index 9d68ddad1c60..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json deleted file mode 100644 index 7bba5df7f838..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "mongoDbRoleDefinitionId": "myMongoDbRoleDefinitionId", - "databaseName": "sales", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId", - "name": "myMongoRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/mongoRoleDefinitions", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "databaseName": "sales", - "privileges": [ - { - "resource": { - "db": "sales", - "collection": "coll" - }, - "actions": [ - "find", - "insert" - ] - } - ], - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ] - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json deleted file mode 100644 index bd195613f08c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongoRoleDefinitions/myRoleDefinitionId", - "name": "myRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/mongoRoleDefinitions", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "databaseName": "sales", - "privileges": [ - { - "resource": { - "db": "sales", - "collection": "coll" - }, - "actions": [ - "find", - "insert" - ] - } - ], - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json deleted file mode 100644 index 26cce7c91e67..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "userName": "myUserName", - "databaseName": "sales", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview", - "createUpdateMongoDbRoleDefinitionParameters": { - "properties": { - "userName": "myUserName", - "password": "myPassword", - "databaseName": "sales", - "customData": "My custom data", - "roles": [ - { - "role": "myReadRole", - "db": "sales" - } - ], - "mechanisms": "SCRAM-SHA-256" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", - "name": "myUserName", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", - "properties": { - "userName": "myUserName", - "databaseName": "sales", - "customData": "My custom data", - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ], - "mechanisms": "SCRAM-SHA-256" - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json deleted file mode 100644 index df5774b28c96..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "userName": "myUserName", - "databaseName": "sales", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json deleted file mode 100644 index 7ae249019751..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "userName": "myUserName", - "databaseName": "sales", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", - "name": "myUserId", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", - "properties": { - "userName": "myUserName", - "databaseName": "sales", - "customData": "My custom data", - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ], - "mechanisms": "SCRAM-SHA-256" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json deleted file mode 100644 index 392ac233b6a5..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId", - "name": "myUserId", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions", - "properties": { - "userName": "myUserName", - "databaseName": "sales", - "customData": "My custom data", - "roles": [ - { - "db": "sales", - "role": "myReadRole" - } - ], - "mechanisms": "SCRAM-SHA-256" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json deleted file mode 100644 index 4d9784cdee8a..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "notebookWorkspaceName": "default", - "notebookCreateUpdateParameters": {} - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", - "properties": { - "notebookServerEndpoint": "endpoint", - "status": "Online" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json deleted file mode 100644 index 89f1025a831f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "notebookWorkspaceName": "default" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json deleted file mode 100644 index 7150f778cc93..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "notebookWorkspaceName": "default" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", - "properties": { - "notebookServerEndpoint": "endpoint", - "status": "Online" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json deleted file mode 100644 index b50348991147..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceList.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces", - "properties": { - "notebookServerEndpoint": "endpoint", - "status": "Online" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json deleted file mode 100644 index 62130915755e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "notebookWorkspaceName": "default" - }, - "responses": { - "200": { - "body": { - "authToken": "auth-token", - "notebookServerEndpoint": "notebook endpoint" - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json deleted file mode 100644 index 8d561cbc529e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "notebookWorkspaceName": "default" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json deleted file mode 100644 index 8d561cbc529e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBNotebookWorkspaceStart.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "notebookWorkspaceName": "default" - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json deleted file mode 100644 index 6eb5f19249a1..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBOperationsList.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "operationName", - "display": { - "Provider": "providerName", - "Resource": "resourceName", - "Operation": "operationName", - "Description": "description" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json deleted file mode 100644 index 702208c13060..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "partitionKeyRangeId": "0", - "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT1M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T23:58:55.2780000Z", - "unit": "Count", - "partitionId": "00000000-0000-0000-0000-000000000000", - "partitionKeyRangeId": "0", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:54:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:55:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:56:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:57:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "maximum": 5 - } - ], - "name": { - "value": "Max RUs Per Second", - "localizedValue": "Max RUs Per Second" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json deleted file mode 100644 index 086821d662a7..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "partitionKeyRangeId": "0", - "region": "West US", - "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT1M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T23:58:55.2780000Z", - "unit": "Count", - "partitionId": "00000000-0000-0000-0000-000000000000", - "partitionKeyRangeId": "0", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:54:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:55:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:56:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:57:55.2780000Z", - "maximum": 5 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "maximum": 5 - } - ], - "name": { - "value": "Max RUs Per Second", - "localizedValue": "Max RUs Per Second" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json deleted file mode 100644 index 4eb411017a39..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileGetMetrics.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Milliseconds", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "P10": 1.11, - "P25": 2.5, - "P50": 4.34, - "P75": 5.2, - "P90": 6.77, - "P95": 7.1, - "P99": 8.3 - } - ], - "name": { - "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", - "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" - } - }, - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Milliseconds", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "P10": 1.11, - "P25": 2.5, - "P50": 4.34, - "P75": 5.2, - "P90": 6.77, - "P95": 7.1, - "P99": 8.3 - } - ], - "name": { - "value": "Probabilistic Bounded Staleness-S-West Central US-T-West US", - "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json deleted file mode 100644 index 55261a9b944e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "sourceRegion": "West Central US", - "targetRegion": "East US", - "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Milliseconds", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "P10": 1.11, - "P25": 2.5, - "P50": 4.34, - "P75": 5.2, - "P90": 6.77, - "P95": 7.1, - "P99": 8.3 - } - ], - "name": { - "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", - "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json deleted file mode 100644 index bf4d32f61b2f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "targetRegion": "East US", - "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Milliseconds", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "P10": 1.11, - "P25": 2.5, - "P50": 4.34, - "P75": 5.2, - "P90": 6.77, - "P95": 7.1, - "P99": 8.3 - } - ], - "name": { - "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US", - "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US" - } - }, - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Milliseconds", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "P10": 1.11, - "P25": 2.5, - "P50": 4.34, - "P75": 5.2, - "P90": 6.77, - "P95": 7.1, - "P99": 8.3 - } - ], - "name": { - "value": "Probabilistic Bounded Staleness-S-West US-T-East US", - "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json deleted file mode 100644 index d3e18d046d6f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15", - "privateEndpointConnectionName": "privateEndpointConnectionName" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json deleted file mode 100644 index c926930829d2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15", - "privateEndpointConnectionName": "privateEndpointConnectionName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", - "name": "privateEndpointConnectionName", - "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "groupId": "Sql", - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json deleted file mode 100644 index b3f80140c296..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", - "name": "privateEndpointConnectionName", - "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "groupId": "Sql", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName2", - "name": "privateEndpointConnectionName", - "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "groupId": "Sql", - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json deleted file mode 100644 index 31a78abee84b..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15", - "privateEndpointConnectionName": "privateEndpointConnectionName", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@contoso.com" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName", - "name": "privateEndpointConnectionName", - "type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "groupId": "Sql", - "provisioningState": "Succeeded" - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json deleted file mode 100644 index f8329726918e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15", - "groupName": "sql" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", - "name": "sql", - "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", - "properties": { - "groupId": "sql", - "requiredMembers": [ - "ddb1", - "ddb1-westus" - ], - "requiredZoneNames": [ - "privatelink.documents.azure.net" - ] - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json deleted file mode 100644 index 75c4dee5f3b9..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "rg1", - "accountName": "ddb1", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql", - "name": "sql", - "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", - "properties": { - "groupId": "sql", - "requiredMembers": [ - "ddb1", - "ddb1-westus" - ], - "requiredZoneNames": [ - "privatelink.documents.azure.net" - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json deleted file mode 100644 index 43c076120ae3..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseRid": "databaseRid", - "collectionRid": "collectionRid", - "region": "North Europe", - "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "timeGrain": "PT5M", - "startTime": "2017-11-19T23:53:55.2780000Z", - "endTime": "2017-11-20T00:13:55.2780000Z", - "unit": "Count", - "metricValues": [ - { - "timestamp": "2017-11-19T23:53:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-19T23:58:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:03:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - }, - { - "timestamp": "2017-11-20T00:08:55.2780000Z", - "total": 0, - "_count": 0, - "average": 0 - } - ], - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json deleted file mode 100644 index 2f5de717c89c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "location": "West US", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", - "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "location": "West US", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", - "properties": { - "accountName": "ddb1", - "creationTime": "2020-04-11T21:56:15Z", - "deletionTime": "2021-03-12T22:05:09Z", - "apiType": "Sql", - "restorableLocations": [ - { - "locationName": "South Central US", - "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", - "creationTime": "2020-10-30T21:13:10Z", - "deletionTime": "2020-10-30T21:13:35Z" - }, - { - "locationName": "West US", - "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", - "creationTime": "2020-10-30T21:13:10Z" - } - ] - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json deleted file mode 100644 index 56d2f3f2e371..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "location": "West US" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", - "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "location": "West US", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", - "properties": { - "accountName": "ddb1", - "creationTime": "2020-04-11T21:56:15Z", - "deletionTime": "2021-03-12T22:05:09Z", - "apiType": "Sql", - "restorableLocations": [ - { - "locationName": "South Central US", - "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", - "creationTime": "2020-10-30T21:13:10Z", - "deletionTime": "2020-10-30T21:13:35Z" - }, - { - "locationName": "West US", - "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", - "creationTime": "2020-10-30T21:13:10Z" - } - ] - } - }, - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", - "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", - "location": "West US", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", - "properties": { - "accountName": "ddb2", - "creationTime": "2020-05-01T08:05:18Z", - "apiType": "Sql", - "restorableLocations": [ - { - "locationName": "South Central US", - "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", - "creationTime": "2020-10-30T21:13:10Z", - "deletionTime": "2020-10-30T21:13:35Z" - }, - { - "locationName": "West US", - "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", - "creationTime": "2020-10-30T21:13:10Z" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json deleted file mode 100644 index 369818198338..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d", - "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "location": "West US", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", - "properties": { - "accountName": "ddb1", - "creationTime": "2020-04-11T21:56:15Z", - "deletionTime": "2021-03-12T22:05:09Z", - "apiType": "Sql", - "restorableLocations": [ - { - "locationName": "South Central US", - "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", - "creationTime": "2020-10-30T21:13:10Z", - "deletionTime": "2020-10-30T21:13:35Z" - }, - { - "locationName": "West US", - "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", - "creationTime": "2020-10-30T21:13:10Z" - } - ] - } - }, - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4", - "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4", - "location": "East US", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts", - "properties": { - "accountName": "ddb2", - "creationTime": "2020-05-01T08:05:18Z", - "apiType": "Sql", - "restorableLocations": [ - { - "locationName": "South Central US", - "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5", - "creationTime": "2020-10-30T21:13:10Z", - "deletionTime": "2020-10-30T21:13:35Z" - }, - { - "locationName": "West US", - "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c", - "creationTime": "2020-10-30T21:13:10Z" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json deleted file mode 100644 index e5a06318f0fe..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "location": "WestUS", - "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", - "restorableMongodbDatabaseRid": "PD5DALigDgw=" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections", - "name": "79609a98-3394-41f8-911f-cfab0c075c86", - "properties": { - "resource": { - "_rid": "zAyAPQAAAA==", - "eventTimestamp": "2020-10-13T04:56:42Z", - "ownerId": "Collection1", - "ownerResourceId": "V18LoLrv-qA=", - "operationType": "Create" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json deleted file mode 100644 index 2bf2b90d2ed3..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", - "location": "WestUS", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", - "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", - "properties": { - "resource": { - "_rid": "DLB14gAAAA==", - "eventTimestamp": "2020-09-02T19:45:03Z", - "ownerId": "Database1", - "ownerResourceId": "PD5DALigDgw=", - "operationType": "Create" - } - } - }, - { - "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases", - "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", - "properties": { - "resource": { - "_rid": "ESXNLAAAAA==", - "eventTimestamp": "2020-09-02T19:53:42Z", - "ownerId": "Database1", - "ownerResourceId": "PD5DALigDgw=", - "operationType": "Delete" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json deleted file mode 100644 index e3ae5c2c7aa9..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableMongodbResourceList.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", - "location": "WestUS", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "restoreLocation": "WestUS", - "restoreTimestampInUtc": "10/13/2020 4:56" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "databaseName": "Database1", - "collectionNames": [ - "Collection1" - ] - }, - { - "databaseName": "Database2", - "collectionNames": [ - "Collection1", - "Collection2" - ] - }, - { - "databaseName": "Database3", - "collectionNames": [] - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json deleted file mode 100644 index 874749bd5fb4..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlContainerList.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "location": "WestUS", - "instanceId": "98a570f2-63db-4117-91f0-366327b7b353", - "restorableSqlDatabaseRid": "3fu-hg==" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/79609a98-3394-41f8-911f-cfab0c075c86", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", - "name": "79609a98-3394-41f8-911f-cfab0c075c86", - "properties": { - "resource": { - "_rid": "zAyAPQAAAA==", - "eventTimestamp": "2020-10-13T04:56:42Z", - "ownerId": "Container1", - "ownerResourceId": "V18LoLrv-qA=", - "operationType": "Create", - "container": { - "id": "Container1", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - }, - { - "path": "/\"_ts\"/?" - } - ], - "excludedPaths": [ - { - "path": "/\"_etag\"/?" - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/_ts", - "conflictResolutionProcedure": "" - }, - "_rid": "V18LoLrv-qA=", - "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", - "_etag": "\"00003e00-0000-0700-0000-5f85338a0000\"" - } - } - } - }, - { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/e85298a1-c631-4726-825e-a7ca092e9098", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers", - "name": "e85298a1-c631-4726-825e-a7ca092e9098", - "properties": { - "resource": { - "_rid": "PrArcgAAAA==", - "eventTimestamp": "2020-10-13T05:03:27Z", - "ownerId": "Container1", - "ownerResourceId": "V18LoLrv-qA=", - "operationType": "Replace", - "container": { - "id": "Container1", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - }, - { - "path": "/\"_ts\"/?" - } - ], - "excludedPaths": [ - { - "path": "/\"_etag\"/?" - } - ] - }, - "defaultTtl": 12345, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/_ts", - "conflictResolutionProcedure": "" - }, - "_rid": "V18LoLrv-qA=", - "_self": "dbs/V18LoA==/colls/V18LoLrv-qA=/", - "_etag": "\"00004400-0000-0700-0000-5f85351f0000\"" - } - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json deleted file mode 100644 index e255d0ab9a38..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", - "location": "WestUS", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableSqlDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", - "name": "59c21367-b98b-4a8e-abb7-b6f46600decc", - "properties": { - "resource": { - "_rid": "DLB14gAAAA==", - "eventTimestamp": "2020-09-02T19:45:03Z", - "ownerId": "Database1", - "ownerResourceId": "3fu-hg==", - "operationType": "Create", - "database": { - "id": "Database1", - "_rid": "3fu-hg==", - "_self": "dbs/3fu-hg==/", - "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", - "_colls": "colls/", - "_users": "users/" - } - } - } - }, - { - "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", - "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257", - "properties": { - "resource": { - "_rid": "ESXNLAAAAA==", - "eventTimestamp": "2020-09-02T19:53:42Z", - "ownerId": "Database1", - "ownerResourceId": "3fu-hg==", - "database": { - "id": "Database1", - "_rid": "3fu-hg==", - "_self": "dbs/3fu-hg==/", - "_etag": "\"0000c20a-0000-0700-0000-5f4ff63f0000\"", - "_colls": "colls/", - "_users": "users/", - "_ts": 1599075903 - }, - "operationType": "Delete" - } - } - }, - { - "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/2c07991b-9c7c-4e85-be68-b18c1f2ff326", - "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases", - "name": "2c07991b-9c7c-4e85-be68-b18c1f2ff326", - "properties": { - "resource": { - "_rid": "aXFqUQAAAA==", - "eventTimestamp": "2020-09-02T19:53:15Z", - "ownerId": "Database2", - "ownerResourceId": "0SziSg==", - "database": { - "id": "Database2", - "_rid": "0SziSg==", - "_self": "dbs/0SziSg==/", - "_etag": "\"0000ca0a-0000-0700-0000-5f4ff82b0000\"", - "_colls": "colls/", - "_users": "users/" - }, - "operationType": "Create" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json deleted file mode 100644 index 7e3261f0f655..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestorableSqlResourceList.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588", - "location": "WestUS", - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "restoreLocation": "WestUS", - "restoreTimestampInUtc": "10/13/2020 4:56" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "databaseName": "Database1", - "collectionNames": [ - "Container1" - ] - }, - { - "databaseName": "Database2", - "collectionNames": [ - "Container1", - "Container2" - ] - }, - { - "databaseName": "Database3", - "collectionNames": [] - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json deleted file mode 100644 index b3e6ba3bdbb2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "createUpdateParameters": { - "location": "westus", - "tags": {}, - "kind": "GlobalDocumentDB", - "properties": { - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "locationName": "southcentralus", - "isZoneRedundant": false - } - ], - "createMode": "Restore", - "restoreParameters": { - "restoreMode": "PointInTime", - "restoreSource": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", - "restoreTimestampInUtc": "2021-03-11T22:05:09Z", - "databasesToRestore": [ - { - "databaseName": "db1", - "collectionNames": [ - "collection1", - "collection2" - ] - }, - { - "databaseName": "db2", - "collectionNames": [ - "collection3", - "collection4" - ] - } - ] - }, - "backupPolicy": { - "type": "Continuous" - }, - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 10, - "maxStalenessPrefix": 200 - }, - "keyVaultKeyUri": "https://myKeyVault.vault.azure.net", - "enableFreeTier": false, - "apiProperties": { - "serverVersion": "3.2" - }, - "enableAnalyticalStorage": true - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1", - "name": "ddb1", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "properties": { - "provisioningState": "Initializing", - "ipRules": [], - "databaseAccountOfferType": "Standard", - "disableKeyBasedMetadataWriteAccess": false, - "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", - "createMode": "Restore", - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "writeLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "provisioningState": "Initializing", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "ddb1-southcentralus", - "locationName": "South Central US", - "failoverPriority": 0 - } - ], - "enableFreeTier": false, - "apiProperties": {}, - "enableAnalyticalStorage": false - }, - "systemData": { - "createdAt": "2021-03-12T22:05:09Z" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json deleted file mode 100644 index dbfabfe6a849..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerBackupInformation.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName", - "location": { - "location": "North Europe" - } - }, - "responses": { - "200": { - "body": { - "continuousBackupInformation": { - "latestRestorableTimestamp": "2021-02-05T02:40:50Z" - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json deleted file mode 100644 index f4bbdf10b787..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "createUpdateSqlContainerParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "containerName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - } - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", - "name": "containerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "containerName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json deleted file mode 100644 index 5976f669ce65..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json deleted file mode 100644 index 772663ca4246..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerGet.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", - "name": "containerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "containerName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - }, - "options": { - "throughput": 400 - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json deleted file mode 100644 index 8dba37096b56..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerList.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName", - "name": "containerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "testctn", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName1", - "name": "containerName1", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "testctn1", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/AccountNumber", - "/AccountLocation" - ], - "kind": "MultiHash", - "version": 2 - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDiw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName2", - "name": "containerName2", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "testctn2", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*", - "indexes": [ - { - "kind": "Range", - "dataType": "String", - "precision": -1 - }, - { - "kind": "Range", - "dataType": "Number", - "precision": -1 - } - ] - } - ], - "excludedPaths": [] - }, - "partitionKey": { - "paths": [ - "/_partitionKey" - ], - "kind": "Hash", - "version": 2, - "systemKey": true - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path" - }, - "_rid": "PD5DALigDhw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json deleted file mode 100644 index bf351118fc6c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json deleted file mode 100644 index 0ea4f2b5133d..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json deleted file mode 100644 index 0581a13e5976..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json deleted file mode 100644 index 57d61253f430..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json deleted file mode 100644 index 7dccefcd766e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "createUpdateSqlDatabaseParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json deleted file mode 100644 index 12f6864e3f12..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json deleted file mode 100644 index 8d2a6b125859..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", - "_colls": "colls/", - "_users": "users/" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json deleted file mode 100644 index c8d731807c33..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseList.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName", - "name": "databaseName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "databaseName", - "_rid": "CqNBAA==", - "_ts": 1449602962, - "_etag": "\"00000a00-0000-0000-0000-56672f920000\"", - "_colls": "colls/", - "_users": "users/" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json deleted file mode 100644 index 97b36fdad6f8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json deleted file mode 100644 index 086f8fd89505..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json deleted file mode 100644 index 2744ba7bb7bd..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json deleted file mode 100644 index e1b281676e2c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json deleted file mode 100644 index 244417c29535..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "myRoleAssignmentId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15", - "createUpdateSqlRoleAssignmentParameters": { - "properties": { - "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", - "principalId": "myPrincipalId" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", - "name": "myRoleAssignmentId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", - "properties": { - "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", - "principalId": "myPrincipalId" - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json deleted file mode 100644 index e38c9103fa8c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "myRoleAssignmentId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json deleted file mode 100644 index da35cd250866..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "myRoleAssignmentId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", - "name": "myRoleAssignmentId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", - "properties": { - "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", - "principalId": "myPrincipalId" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json deleted file mode 100644 index e6a0beb2704e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleAssignmentList.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId", - "name": "myRoleAssignmentId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", - "properties": { - "roleDefinitionId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "scope": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases", - "principalId": "myPrincipalId" - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json deleted file mode 100644 index ff5859f41d6f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "roleDefinitionId": "myRoleDefinitionId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15", - "createUpdateSqlRoleDefinitionParameters": { - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "assignableScopes": [ - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" - ], - "permissions": [ - { - "dataActions": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" - ], - "notDataActions": [] - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "name": "myRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "assignableScopes": [ - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" - ], - "permissions": [ - { - "dataActions": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" - ] - } - ] - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json deleted file mode 100644 index da3fa5deadc4..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "roleDefinitionId": "myRoleDefinitionId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json deleted file mode 100644 index 69889ad20194..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "roleDefinitionId": "myRoleDefinitionId", - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "name": "myRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "assignableScopes": [ - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" - ], - "permissions": [ - { - "dataActions": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" - ], - "notDataActions": [] - } - ] - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json deleted file mode 100644 index f8bf45e26def..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlRoleDefinitionList.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "subscriptionId": "mySubscriptionId", - "resourceGroupName": "myResourceGroupName", - "accountName": "myAccountName", - "api-version": "2021-10-15" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId", - "name": "myRoleDefinitionId", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions", - "properties": { - "roleName": "myRoleName", - "type": "CustomRole", - "assignableScopes": [ - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales", - "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases" - ], - "permissions": [ - { - "dataActions": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read" - ], - "notDataActions": [] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json deleted file mode 100644 index dd1306aeeca7..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "storedProcedureName": "storedProcedureName", - "createUpdateSqlStoredProcedureParameters": { - "properties": { - "resource": { - "id": "storedProcedureName", - "body": "body" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", - "name": "storedProcedureName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", - "properties": { - "resource": { - "id": "storedProcedureName", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json deleted file mode 100644 index 36ca28d6ee4b..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "storedProcedureName": "storedProcedureName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json deleted file mode 100644 index 85d2fa4d1faa..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureGet.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName", - "storedProcedureName": "storedProcedureName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", - "name": "storedProcedureName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", - "properties": { - "resource": { - "id": "storedProcedureName", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json deleted file mode 100644 index 7fbfbab041d6..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlStoredProcedureList.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName", - "name": "testctn", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures", - "properties": { - "resource": { - "id": "testctn", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json deleted file mode 100644 index 6b2152600c47..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "triggerName": "triggerName", - "createUpdateSqlTriggerParameters": { - "properties": { - "resource": { - "id": "triggerName", - "body": "body", - "triggerType": "triggerType", - "triggerOperation": "triggerOperation" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", - "name": "triggerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", - "properties": { - "resource": { - "id": "triggerName", - "body": "body", - "triggerType": "triggerType", - "triggerOperation": "triggerOperation", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json deleted file mode 100644 index d39536e48255..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerDelete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "triggerName": "triggerName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json deleted file mode 100644 index d09e41bafe50..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerGet.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName", - "triggerName": "triggerName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", - "name": "triggerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", - "properties": { - "resource": { - "id": "triggerName", - "body": "body", - "triggerType": "triggerType", - "triggerOperation": "triggerOperation", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json deleted file mode 100644 index 47130b23aeb9..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlTriggerList.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName", - "name": "testctn", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers", - "properties": { - "resource": { - "id": "testctn", - "body": "body", - "triggerType": "triggerType", - "triggerOperation": "triggerOperation", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json deleted file mode 100644 index e23ecde0e880..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "userDefinedFunctionName": "userDefinedFunctionName", - "createUpdateSqlUserDefinedFunctionParameters": { - "properties": { - "resource": { - "id": "userDefinedFunctionName", - "body": "body" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", - "name": "userDefinedFunctionName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", - "properties": { - "resource": { - "id": "userDefinedFunctionName", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json deleted file mode 100644 index 885ba9ae92f1..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "databaseName": "databaseName", - "containerName": "containerName", - "userDefinedFunctionName": "userDefinedFunctionName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json deleted file mode 100644 index 482a108c376f..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName", - "userDefinedFunctionName": "userDefinedFunctionName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", - "name": "userDefinedFunctionName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", - "properties": { - "resource": { - "id": "userDefinedFunctionName", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json deleted file mode 100644 index 11540ca36822..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "containerName": "containerName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName", - "name": "testctn", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions", - "properties": { - "resource": { - "id": "testctn", - "body": "body", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json deleted file mode 100644 index 67d423373ce8..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableCreateUpdate.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName", - "createUpdateTableParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName" - }, - "options": {} - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "location": "West US", - "properties": { - "resource": { - "id": "tableName" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json deleted file mode 100644 index 87fe4945cc73..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName" - }, - "responses": { - "204": {}, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json deleted file mode 100644 index ffa290b50f6c..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableGet.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json deleted file mode 100644 index 433b68b6df13..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableList.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName", - "name": "tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "id": "tableName" - } - } - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json deleted file mode 100644 index 231b0d94efdd..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToAutoscale.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "autoscaleSettings": { - "maxThroughput": 4000 - }, - "minimumThroughput": "4000", - "offerReplacePending": "false", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json deleted file mode 100644 index 1f1630a8c188..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json deleted file mode 100644 index 35ffb86c662e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputGet.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json deleted file mode 100644 index e3d214e659de..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBTableThroughputUpdate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "accountName": "ddb1", - "resourceGroupName": "rg1", - "api-version": "2021-10-15", - "subscriptionId": "subid", - "tableName": "tableName", - "updateThroughputParameters": { - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400 - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default", - "name": "default", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", - "location": "West US", - "tags": {}, - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400", - "offerReplacePending": "true", - "_rid": "PD5DALigDgw=", - "_ts": 1459200611, - "_etag": "\"00005900-0000-0000-0000-56f9a2630000\"" - } - } - } - }, - "202": {} - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json deleted file mode 100644 index e5a528e111b2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json +++ /dev/null @@ -1,601 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB API for MongoDB Role Based Access Control Resource Provider REST API", - "version": "2021-10-15-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoRoleDefinitions/{roleDefinitionId}": { - "get": { - "operationId": "MongoDBResources_GetMongoRoleDefinition", - "x-ms-examples": { - "CosmosDBMongoRoleDefinitionGet": { - "$ref": "./examples/CosmosDBMongoDBRoleDefinitionGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id.", - "parameters": [ - { - "$ref": "#/parameters/roleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Mongo Role Definition was successfully retrieved.", - "schema": { - "$ref": "#/definitions/MongoRoleDefinitionGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_CreateUpdateMongoRoleDefinition", - "x-ms-examples": { - "CosmosDBMongoDBRoleDefinitionCreateUpdate": { - "$ref": "./examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Creates or updates an Azure Cosmos DB Mongo Role Definition.", - "parameters": [ - { - "$ref": "#/parameters/roleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateMongoRoleDefinitionParameters", - "in": "body", - "required": true, - "description": "The properties required to create or update a Role Definition.", - "schema": { - "$ref": "#/definitions/MongoRoleDefinitionCreateUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The Mongo Role Definition create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/MongoRoleDefinitionGetResults" - } - }, - "202": { - "description": "The Mongo Role Definition create or update request was accepted and will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "operationId": "MongoDBResources_DeleteMongoRoleDefinition", - "x-ms-examples": { - "CosmosDBMongoDBRoleDefinitionDelete": { - "$ref": "./examples/CosmosDBMongoDBRoleDefinitionDelete.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Deletes an existing Azure Cosmos DB Mongo Role Definition.", - "parameters": [ - { - "$ref": "#/parameters/mongoRoleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Mongo Role Definition delete operation was completed successfully." - }, - "202": { - "description": "The Mongo Role Definition delete request was accepted and will complete asynchronously." - }, - "204": { - "description": "The requested Mongo Role Definition does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoRoleDefinitions": { - "get": { - "operationId": "MongoDBResources_ListMongoRoleDefinitions", - "x-ms-examples": { - "CosmosDBMongoDBRoleDefinitionList": { - "$ref": "./examples/CosmosDBMongoDBRoleDefinitionList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The list operation completed successfully.", - "schema": { - "$ref": "#/definitions/MongoRoleDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoUserDefinitions/{userDefinitionId}": { - "get": { - "operationId": "MongoDBResources_GetMongoUserDefinition", - "x-ms-examples": { - "CosmosDBMongoDBUserDefinitionGet": { - "$ref": "./examples/CosmosDBMongoDBUserDefinitionGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id.", - "parameters": [ - { - "$ref": "#/parameters/userDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The User Definition was successfully retrieved.", - "schema": { - "$ref": "#/definitions/MongoUserDefinitionGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "put": { - "operationId": "MongoDBResources_CreateUpdateMongoUserDefinition", - "x-ms-examples": { - "CosmosDBMongoDBUserDefinitionCreateUpdate": { - "$ref": "./examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Creates or updates an Azure Cosmos DB Mongo User Definition.", - "parameters": [ - { - "$ref": "#/parameters/UserDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateMongoUserDefinitionParameters", - "in": "body", - "required": true, - "description": "The properties required to create or update a User Definition.", - "schema": { - "$ref": "#/definitions/MongoUserDefinitionCreateUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The User Definition create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/MongoUserDefinitionGetResults" - } - }, - "202": { - "description": "The User Definition create or update request was accepted and will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "operationId": "MongoDBResources_DeleteMongoUserDefinition", - "x-ms-examples": { - "CosmosDBMongoDBUserDefinitionDelete": { - "$ref": "./examples/CosmosDBMongoDBUserDefinitionDelete.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Deletes an existing Azure Cosmos DB Mongo User Definition.", - "parameters": [ - { - "$ref": "#/parameters/userDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The User Definition delete operation was completed successfully." - }, - "202": { - "description": "The User Definition delete request was accepted and will complete asynchronously." - }, - "204": { - "description": "The requested User Definition does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongoUserDefinitions": { - "get": { - "operationId": "MongoDBResources_ListMongoUserDefinitions", - "x-ms-examples": { - "CosmosDBMongoDBUserDefinitionList": { - "$ref": "./examples/CosmosDBMongoDBUserDefinitionList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the list of all Azure Cosmos DB Mongo User Definition.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The list operation completed successfully.", - "schema": { - "$ref": "#/definitions/MongoUserDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "MongoRoleDefinitionResource": { - "properties": { - "roleName": { - "type": "string", - "description": "A user-friendly name for the Role Definition. Must be unique for the database account." - }, - "type": { - "type": "string", - "enum": [ - "BuiltInRole", - "CustomRole" - ], - "description": "Indicates whether the Role Definition was built-in or user created.", - "x-ms-enum": { - "name": "MongoRoleDefinitionType", - "modelAsString": false - } - }, - "privileges": { - "type": "array", - "items": { - "$ref": "#/definitions/Privilege" - }, - "description": "A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege." - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - }, - "description": "The set of roles inherited by this Role Definition." - } - }, - "description": "Azure Cosmos DB Mongo Role Definition resource object." - }, - "MongoRoleDefinitionCreateUpdateParameters": { - "description": "Parameters to create and update an Azure Cosmos DB Mongo Role Definition.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update an Azure Cosmos DB Mongo Role Definition.", - "$ref": "#/definitions/MongoRoleDefinitionResource" - } - } - }, - "MongoRoleDefinitionGetResults": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MongoRoleDefinitionResource", - "description": "Properties related to the Mongo Role Definition." - } - }, - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "description": "An Azure Cosmos DB Mongo Role Definition." - }, - "Privilege": { - "type": "object", - "properties": { - "resource": { - "type": "object", - "properties": { - "db": { - "type": "string", - "description": "The database name the role is applied." - }, - "collection": { - "type": "string", - "description": "The collection name the role is applied." - }, - "description": "An array of data actions that are allowed." - } - }, - "actions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "An array of actions that are allowed." - } - }, - "description": "The set of data plane operations permitted through this Role Definition." - }, - "Role": { - "type": "object", - "properties": { - "db": { - "type": "string", - "description": "The database name the role is applied." - }, - "role": { - "type": "string", - "description": "The role name." - } - } , - "description": "The set of roles permitted through this Role Definition." - }, - "MongoRoleDefinitionListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/MongoRoleDefinitionGetResults" - }, - "description": "List of Mongo Role Definitions and their properties." - } - }, - "description": "The relevant Mongo Role Definitions." - }, - "MongoUserDefinitionResource": { - "type": "object", - "properties": { - "userName": { - "type": "string", - "description": "The user name for User Definition." - }, - "databaseName": { - "type": "string", - "description": "The database name for which access is being granted for this User Definition." - }, - "customData": { - "type": "string", - "description": "A custom definition for the USer Definition." - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - }, - "description": "The set of roles inherited by the User Definition." - } - }, - "description": "Azure Cosmos DB Mongo User Definition resource object." - }, - "MongoUserDefinitionCreateUpdateParameters": { - "description": "Parameters to create and update an Azure Cosmos DB Mongo User Definition.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update an Azure Cosmos DB Mongo User Definition.", - "$ref": "#/definitions/MongoUserDefinitionResource" - } - } - }, - "MongoUserDefinitionGetResults": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MongoUserDefinitionResource", - "description": "Properties related to the User Definition." - } - }, - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "description": "An Azure Cosmos DB User Definition" - }, - "MongoUserDefinitionListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/MongoUserDefinitionGetResults" - }, - "description": "List of User Definition and their properties" - } - }, - "description": "The relevant User Definition." - } - }, - "parameters": { - "roleDefinitionIdParameter": { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The ID for the Role Definition {dbName.roleName}." - }, - "userDefinitionIdParameter": { - "name": "userDefinitionId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The ID for the User Definition {dbName.userName}." - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json deleted file mode 100644 index f87b5d1579d2..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json +++ /dev/null @@ -1,461 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": { - "get": { - "tags": [ - "NotebookWorkspacesResource" - ], - "description": "Gets the notebook workspace resources of an existing Cosmos DB account.", - "operationId": "NotebookWorkspaces_ListByDatabaseAccount", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved notebook workspace resources.", - "schema": { - "$ref": "#/definitions/NotebookWorkspaceListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceList": { - "$ref": "./examples/CosmosDBNotebookWorkspaceList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": { - "get": { - "tags": [ - "NotebookWorkspacesResource" - ], - "description": "Gets the notebook workspace for a Cosmos DB account.", - "operationId": "NotebookWorkspaces_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified notebook workspace resource.", - "schema": { - "$ref": "#/definitions/NotebookWorkspace" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceGet": { - "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json" - } - } - }, - "put": { - "tags": [ - "NotebookWorkspacesResource" - ], - "description": "Creates the notebook workspace for a Cosmos DB account.", - "operationId": "NotebookWorkspaces_CreateOrUpdate", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - }, - { - "name": "notebookCreateUpdateParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters" - }, - "description": "The notebook workspace to create for the current database account." - } - ], - "responses": { - "200": { - "description": "Creation of notebook workspace will complete asynchronously.", - "schema": { - "$ref": "#/definitions/NotebookWorkspace" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceCreate": { - "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json" - } - } - }, - "delete": { - "tags": [ - "NotebookWorkspacesResource" - ], - "description": "Deletes the notebook workspace for a Cosmos DB account.", - "operationId": "NotebookWorkspaces_Delete", - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - } - ], - "responses": { - "202": { - "description": "The notebook workspace delete operation will complete asynchronously." - }, - "204": { - "description": "The specified notebook workspace does not exist in the database account." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceDelete": { - "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": { - "post": { - "tags": [ - "NotebookWorkspacesResource" - ], - "operationId": "NotebookWorkspaces_ListConnectionInfo", - "x-ms-examples": { - "CosmosDBNotebookWorkspaceListConnectionInfo": { - "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json" - } - }, - "description": "Retrieves the connection info for the notebook workspace", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": { - "post": { - "tags": [ - "NotebookWorkspacesResource" - ], - "operationId": "NotebookWorkspaces_RegenerateAuthToken", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceRegenerateAuthToken": { - "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json" - } - }, - "description": "Regenerates the auth token for the notebook workspace", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted. The regenerate auth token operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": { - "post": { - "tags": [ - "NotebookWorkspacesResource" - ], - "operationId": "NotebookWorkspaces_Start", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBNotebookWorkspaceStart": { - "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json" - } - }, - "description": "Starts the notebook workspace", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/NotebookWorkspaceNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted. The start operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "NotebookWorkspaceCreateUpdateParameters": { - "description": "Parameters to create a notebook workspace resource", - "type": "object", - "allOf": [ - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" - } - ] - }, - "NotebookWorkspaceListResult": { - "description": "A list of notebook workspace resources", - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "Array of notebook workspace resources", - "items": { - "$ref": "#/definitions/NotebookWorkspace" - } - } - } - }, - "NotebookWorkspace": { - "description": "A notebook workspace resource", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/NotebookWorkspaceProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" - } - ] - }, - "NotebookWorkspaceProperties": { - "description": "Properties of a notebook workspace resource.", - "type": "object", - "properties": { - "notebookServerEndpoint": { - "description": "Specifies the endpoint of Notebook server.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.", - "type": "string", - "readOnly": true - } - } - }, - "NotebookWorkspaceConnectionInfoResult": { - "description": "The connection info for the given notebook workspace", - "properties": { - "authToken": { - "type": "string", - "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).", - "readOnly": true - }, - "notebookServerEndpoint": { - "type": "string", - "description": "Specifies the endpoint of Notebook server.", - "readOnly": true - } - } - } - }, - "parameters": { - "accountNameParameter": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database account name.", - "minLength": 3, - "maxLength": 50, - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" - }, - "NotebookWorkspaceNameParameter": { - "name": "notebookWorkspaceName", - "in": "path", - "description": "The name of the notebook workspace resource.", - "required": true, - "x-ms-parameter-location": "method", - "type": "string", - "enum": [ - "default" - ], - "x-ms-enum": { - "name": "NotebookWorkspaceName", - "modelAsString": true - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json deleted file mode 100644 index 68b7650f832e..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections": { - "get": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "List all private endpoint connections on a Cosmos DB account.", - "operationId": "PrivateEndpointConnections_ListByDatabaseAccount", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved private endpoint connections.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionListResult" - } - } - }, - "x-ms-examples": { - "Gets private endpoint connection.": { - "$ref": "./examples/CosmosDBPrivateEndpointConnectionListGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": { - "get": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "Gets a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified private endpoint connection.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - } - }, - "x-ms-examples": { - "Gets private endpoint connection.": { - "$ref": "./examples/CosmosDBPrivateEndpointConnectionGet.json" - } - } - }, - "put": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "Approve or reject a private endpoint connection with a given name.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - } - ], - "responses": { - "200": { - "description": "Successfully approved or rejected private endpoint connection.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "202": { - "description": "Accepted. The private endpoint connection update will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Approve or reject a private endpoint connection with a given name.": { - "$ref": "./examples/CosmosDBPrivateEndpointConnectionUpdate.json" - } - } - }, - "delete": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "Deletes a private endpoint connection with a given name.", - "operationId": "PrivateEndpointConnections_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. The private endpoint connection delete will complete asynchronously." - }, - "204": { - "description": "Private endpoint connection does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Deletes a private endpoint connection with a given name.": { - "$ref": "./examples/CosmosDBPrivateEndpointConnectionDelete.json" - } - } - } - } - }, - "definitions": { - "PrivateEndpointConnectionListResult": { - "description": "A list of private endpoint connections", - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "Array of private endpoint connections", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - } - } - }, - "PrivateEndpointConnection": { - "description": "A private endpoint connection", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ] - }, - "PrivateEndpointConnectionProperties": { - "description": "Properties of a private endpoint connection.", - "type": "object", - "properties": { - "privateEndpoint": { - "$ref": "#/definitions/PrivateEndpointProperty", - "description": "Private endpoint which the connection belongs to." - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", - "description": "Connection State of the Private Endpoint Connection." - }, - "groupId": { - "type": "string", - "description": "Group id of the private endpoint." - }, - "provisioningState": { - "type": "string", - "description": "Provisioning state of the private endpoint." - } - } - }, - "PrivateEndpointProperty": { - "type": "object", - "description": "Private endpoint which the connection belongs to.", - "properties": { - "id": { - "type": "string", - "description": "Resource id of the private endpoint." - } - } - }, - "PrivateLinkServiceConnectionStateProperty": { - "type": "object", - "description": "Connection State of the Private Endpoint Connection.", - "properties": { - "status": { - "type": "string", - "description": "The private link service connection status." - }, - "description": { - "type": "string", - "description": "The private link service connection description." - }, - "actionsRequired": { - "type": "string", - "description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)", - "readOnly": true - } - } - } - }, - "parameters": { - "accountNameParameter": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database account name.", - "minLength": 3, - "maxLength": 50, - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" - }, - "PrivateEndpointConnectionNameParameter": { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The name of the private endpoint connection." - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json deleted file mode 100644 index 0592b65ece67..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources": { - "get": { - "tags": [ - "PrivateLinkResources" - ], - "description": "Gets the private link resources that need to be created for a Cosmos DB account.", - "operationId": "PrivateLinkResources_ListByDatabaseAccount", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved private link resources.", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" - } - } - }, - "x-ms-examples": { - "Gets private endpoint connection.": { - "$ref": "./examples/CosmosDBPrivateLinkResourceListGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}": { - "get": { - "tags": [ - "PrivateLinkResources" - ], - "description": "Gets the private link resources that need to be created for a Cosmos DB account.", - "operationId": "PrivateLinkResources_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/accountNameParameter" - }, - { - "$ref": "#/parameters/GroupNameParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified private link resource.", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - } - }, - "x-ms-examples": { - "Gets private endpoint connection.": { - "$ref": "./examples/CosmosDBPrivateLinkResourceGet.json" - } - } - } - } - }, - "definitions": { - "PrivateLinkResourceListResult": { - "description": "A list of private link resources", - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "Array of private link resources", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - } - } - } - }, - "PrivateLinkResource": { - "description": "A private link resource", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ARMProxyResource" - } - ] - }, - "PrivateLinkResourceProperties": { - "description": "Properties of a private link resource.", - "type": "object", - "properties": { - "groupId": { - "description": "The private link resource group id.", - "type": "string", - "readOnly": true - }, - "requiredMembers": { - "description": "The private link resource required member names.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "requiredZoneNames": { - "description": "The private link resource required zone names.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - } - } - } - }, - "parameters": { - "accountNameParameter": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB database account name.", - "minLength": 3, - "maxLength": 50, - "pattern": "^[a-z0-9]+(-[a-z0-9]+)*" - }, - "GroupNameParameter": { - "name": "groupName", - "in": "path", - "description": "The name of the private link resource.", - "required": true, - "x-ms-parameter-location": "method", - "type": "string" - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json deleted file mode 100644 index 6c9dc9b87f62..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json +++ /dev/null @@ -1,573 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Role Based Access Control Resource Provider REST API", - "version": "2021-10-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}": { - "get": { - "operationId": "SqlResources_GetSqlRoleDefinition", - "x-ms-examples": { - "CosmosDBSqlRoleDefinitionGet": { - "$ref": "./examples/CosmosDBSqlRoleDefinitionGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id.", - "parameters": [ - { - "$ref": "#/parameters/roleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Role Definition was successfully retrieved.", - "schema": { - "$ref": "#/definitions/SqlRoleDefinitionGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlRoleDefinition", - "x-ms-examples": { - "CosmosDBSqlRoleDefinitionCreateUpdate": { - "$ref": "./examples/CosmosDBSqlRoleDefinitionCreateUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Creates or updates an Azure Cosmos DB SQL Role Definition.", - "parameters": [ - { - "$ref": "#/parameters/roleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlRoleDefinitionParameters", - "in": "body", - "required": true, - "description": "The properties required to create or update a Role Definition.", - "schema": { - "$ref": "#/definitions/SqlRoleDefinitionCreateUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The Role Definition create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlRoleDefinitionGetResults" - } - }, - "202": { - "description": "The Role Definition create or update request was accepted and will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlRoleDefinition", - "x-ms-examples": { - "CosmosDBSqlRoleDefinitionDelete": { - "$ref": "./examples/CosmosDBSqlRoleDefinitionDelete.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Deletes an existing Azure Cosmos DB SQL Role Definition.", - "parameters": [ - { - "$ref": "#/parameters/roleDefinitionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Role Definition delete operation was completed successfully." - }, - "202": { - "description": "The Role Definition delete request was accepted and will complete asynchronously." - }, - "204": { - "description": "The requested Role Definition does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions": { - "get": { - "operationId": "SqlResources_ListSqlRoleDefinitions", - "x-ms-examples": { - "CosmosDBSqlRoleDefinitionList": { - "$ref": "./examples/CosmosDBSqlRoleDefinitionList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the list of all Azure Cosmos DB SQL Role Definitions.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The list operation completed successfully.", - "schema": { - "$ref": "#/definitions/SqlRoleDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}": { - "get": { - "operationId": "SqlResources_GetSqlRoleAssignment", - "x-ms-examples": { - "CosmosDBSqlRoleAssignmentGet": { - "$ref": "./examples/CosmosDBSqlRoleAssignmentGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id.", - "parameters": [ - { - "$ref": "#/parameters/roleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Role Assignment was successfully retrieved.", - "schema": { - "$ref": "#/definitions/SqlRoleAssignmentGetResults" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "put": { - "operationId": "SqlResources_CreateUpdateSqlRoleAssignment", - "x-ms-examples": { - "CosmosDBSqlRoleAssignmentCreateUpdate": { - "$ref": "./examples/CosmosDBSqlRoleAssignmentCreateUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Creates or updates an Azure Cosmos DB SQL Role Assignment.", - "parameters": [ - { - "$ref": "#/parameters/roleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "createUpdateSqlRoleAssignmentParameters", - "in": "body", - "required": true, - "description": "The properties required to create or update a Role Assignment.", - "schema": { - "$ref": "#/definitions/SqlRoleAssignmentCreateUpdateParameters" - } - } - ], - "responses": { - "200": { - "description": "The Role Assignment create or update operation was completed successfully.", - "schema": { - "$ref": "#/definitions/SqlRoleAssignmentGetResults" - } - }, - "202": { - "description": "The Role Assignment create or update request was accepted and will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "operationId": "SqlResources_DeleteSqlRoleAssignment", - "x-ms-examples": { - "CosmosDBSqlRoleAssignmentDelete": { - "$ref": "./examples/CosmosDBSqlRoleAssignmentDelete.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Deletes an existing Azure Cosmos DB SQL Role Assignment.", - "parameters": [ - { - "$ref": "#/parameters/roleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Role Assignment delete operation was completed successfully." - }, - "202": { - "description": "The Role Assignment delete request was accepted and will complete asynchronously." - }, - "204": { - "description": "The requested Role Assignment does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments": { - "get": { - "operationId": "SqlResources_ListSqlRoleAssignments", - "x-ms-examples": { - "CosmosDBSqlRoleAssignmentList": { - "$ref": "./examples/CosmosDBSqlRoleAssignmentList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "description": "Retrieves the list of all Azure Cosmos DB SQL Role Assignments.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The list operation completed successfully.", - "schema": { - "$ref": "#/definitions/SqlRoleAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "SqlRoleDefinitionResource": { - "properties": { - "roleName": { - "type": "string", - "description": "A user-friendly name for the Role Definition. Must be unique for the database account." - }, - "type": { - "type": "string", - "enum": [ - "BuiltInRole", - "CustomRole" - ], - "description": "Indicates whether the Role Definition was built-in or user created.", - "x-ms-enum": { - "name": "RoleDefinitionType", - "modelAsString": false - } - }, - "assignableScopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist." - }, - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/Permission" - }, - "description": "The set of operations allowed through this Role Definition." - } - }, - "description": "Azure Cosmos DB SQL Role Definition resource object." - }, - "SqlRoleDefinitionCreateUpdateParameters": { - "description": "Parameters to create and update an Azure Cosmos DB SQL Role Definition.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update an Azure Cosmos DB SQL Role Definition.", - "$ref": "#/definitions/SqlRoleDefinitionResource" - } - } - }, - "SqlRoleDefinitionGetResults": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SqlRoleDefinitionResource", - "description": "Properties related to the Role Definition." - } - }, - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "description": "An Azure Cosmos DB SQL Role Definition." - }, - "Permission": { - "type": "object", - "properties": { - "dataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "An array of data actions that are allowed." - }, - "notDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "An array of data actions that are denied." - } - }, - "description": "The set of data plane operations permitted through this Role Definition." - }, - "SqlRoleDefinitionListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SqlRoleDefinitionGetResults" - }, - "description": "List of Role Definitions and their properties." - } - }, - "description": "The relevant Role Definitions." - }, - "SqlRoleAssignmentResource": { - "type": "object", - "properties": { - "roleDefinitionId": { - "type": "string", - "description": "The unique identifier for the associated Role Definition." - }, - "scope": { - "type": "string", - "description": "The data plane resource path for which access is being granted through this Role Assignment." - }, - "principalId": { - "type": "string", - "description": "The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription." - } - }, - "description": "Azure Cosmos DB SQL Role Assignment resource object." - }, - "SqlRoleAssignmentCreateUpdateParameters": { - "description": "Parameters to create and update an Azure Cosmos DB SQL Role Assignment.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Properties to create and update an Azure Cosmos DB SQL Role Assignment.", - "$ref": "#/definitions/SqlRoleAssignmentResource" - } - } - }, - "SqlRoleAssignmentGetResults": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SqlRoleAssignmentResource", - "description": "Properties related to the Role Assignment." - } - }, - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "description": "An Azure Cosmos DB Role Assignment" - }, - "SqlRoleAssignmentListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SqlRoleAssignmentGetResults" - }, - "description": "List of Role Assignments and their properties" - } - }, - "description": "The relevant Role Assignments." - } - }, - "parameters": { - "roleDefinitionIdParameter": { - "name": "roleDefinitionId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The GUID for the Role Definition." - }, - "roleAssignmentIdParameter": { - "name": "roleAssignmentId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The GUID for the Role Assignment." - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json deleted file mode 100644 index cc57615fdf00..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json +++ /dev/null @@ -1,1181 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Cosmos DB", - "description": "Azure Cosmos DB Database Service Resource Provider REST API", - "version": "2021-10-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts": { - "get": { - "operationId": "RestorableDatabaseAccounts_ListByLocation", - "x-ms-examples": { - "CosmosDBRestorableDatabaseAccountList": { - "$ref": "./examples/CosmosDBRestorableDatabaseAccountList.json" - } - }, - "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableDatabaseAccountsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts": { - "get": { - "operationId": "RestorableDatabaseAccounts_List", - "x-ms-examples": { - "CosmosDBRestorableDatabaseAccountNoLocationList": { - "$ref": "./examples/CosmosDBRestorableDatabaseAccountNoLocationList.json" - } - }, - "description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableDatabaseAccountsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}": { - "get": { - "operationId": "RestorableDatabaseAccounts_GetByLocation", - "x-ms-examples": { - "CosmosDBRestorableDatabaseAccountGet": { - "$ref": "./examples/CosmosDBRestorableDatabaseAccountGet.json" - } - }, - "description": "Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - } - ], - "responses": { - "200": { - "description": "The restorable database account properties were retrieved successfully.", - "schema": { - "$ref": "#/definitions/RestorableDatabaseAccountGetResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation": { - "post": { - "operationId": "SqlResources_RetrieveContinuousBackupInformation", - "x-ms-examples": { - "CosmosDBSqlContainerBackupInformation": { - "$ref": "./examples/CosmosDBSqlContainerBackupInformation.json" - } - }, - "description": "Retrieves continuous backup information for a container resource.", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/databaseNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/containerNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "location", - "required": true, - "description": "The name of the continuous backup restore location.", - "schema": { - "$ref": "#/definitions/ContinuousBackupRestoreLocation" - } - } - ], - "responses": { - "200": { - "description": "The Sql container retrieve backup information operation completed successfully.", - "schema": { - "$ref": "#/definitions/BackupInformation" - } - }, - "202": { - "description": "The sql container retrieve backup information operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases": { - "get": { - "operationId": "RestorableSqlDatabases_List", - "x-ms-examples": { - "CosmosDBRestorableSqlDatabaseList": { - "$ref": "./examples/CosmosDBRestorableSqlDatabaseList.json" - } - }, - "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableSqlDatabasesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers": { - "get": { - "operationId": "RestorableSqlContainers_List", - "x-ms-examples": { - "CosmosDBRestorableSqlContainerList": { - "$ref": "./examples/CosmosDBRestorableSqlContainerList.json" - } - }, - "description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - }, - { - "$ref": "#/parameters/restorableSqlDatabaseRidParameter" - }, - { - "$ref": "#/parameters/restoreStartTime" - }, - { - "$ref": "#/parameters/restoreEndTime" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableSqlContainersListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources": { - "get": { - "operationId": "RestorableSqlResources_List", - "x-ms-examples": { - "CosmosDBRestorableSqlResourceList": { - "$ref": "./examples/CosmosDBRestorableSqlResourceList.json" - } - }, - "description": "Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - }, - { - "$ref": "#/parameters/restoreLocationParameter" - }, - { - "$ref": "#/parameters/restoreTimestampInUtcParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableSqlResourcesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/retrieveContinuousBackupInformation": { - "post": { - "operationId": "MongoDBResources_RetrieveContinuousBackupInformation", - "x-ms-examples": { - "CosmosDBMongoDBCollectionBackupInformation": { - "$ref": "./examples/CosmosDBMongoDBCollectionBackupInformation.json" - } - }, - "description": "Retrieves continuous backup information for a Mongodb collection.", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/accountNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/databaseNameParameter" - }, - { - "$ref": "cosmos-db.json#/parameters/collectionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "location", - "required": true, - "description": "The name of the continuous backup restore location.", - "schema": { - "$ref": "#/definitions/ContinuousBackupRestoreLocation" - } - } - ], - "responses": { - "200": { - "description": "The Mongodb collection retrieve backup information operation completed successfully.", - "schema": { - "$ref": "#/definitions/BackupInformation" - } - }, - "202": { - "description": "The Mongodb collection retrieve backup information operation will complete asynchronously." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases": { - "get": { - "operationId": "RestorableMongodbDatabases_List", - "x-ms-examples": { - "CosmosDBRestorableMongodbDatabaseList": { - "$ref": "./examples/CosmosDBRestorableMongodbDatabaseList.json" - } - }, - "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableMongodbDatabasesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections": { - "get": { - "operationId": "RestorableMongodbCollections_List", - "x-ms-examples": { - "CosmosDBRestorableMongodbCollectionList": { - "$ref": "./examples/CosmosDBRestorableMongodbCollectionList.json" - } - }, - "description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - }, - { - "$ref": "#/parameters/restorableMongodbDatabaseRidParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableMongodbCollectionsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources": { - "get": { - "operationId": "RestorableMongodbResources_List", - "x-ms-examples": { - "CosmosDBRestorableMongodbResourceList": { - "$ref": "./examples/CosmosDBRestorableMongodbResourceList.json" - } - }, - "description": "Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - }, - { - "$ref": "#/parameters/instanceIdParameter" - }, - { - "$ref": "#/parameters/restoreLocationParameter" - }, - { - "$ref": "#/parameters/restoreTimestampInUtcParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/RestorableMongodbResourcesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - } - }, - "definitions": { - "RestorableDatabaseAccountsListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RestorableDatabaseAccountGetResult" - }, - "description": "List of restorable database accounts and their properties." - } - }, - "description": "The List operation response, that contains the restorable database accounts and their properties." - }, - "RestorableDatabaseAccountGetResult": { - "description": "A Azure Cosmos DB restorable database account.", - "type": "object", - "properties": { - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a restorable database account.", - "$ref": "#/definitions/RestorableDatabaseAccountProperties" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - }, - "location": { - "type": "string", - "description": "The location of the resource group to which the resource belongs." - } - } - }, - "RestorableDatabaseAccountProperties": { - "type": "object", - "description": "The properties of a restorable database account.", - "properties": { - "accountName": { - "type": "string", - "description": "The name of the global database account" - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "The creation time of the restorable database account (ISO-8601 format)." - }, - "deletionTime": { - "type": "string", - "format": "date-time", - "description": "The time at which the restorable database account has been deleted (ISO-8601 format)." - }, - "apiType": { - "type": "string", - "readOnly": true, - "description": "The API type of the restorable database account.", - "$ref": "#/definitions/ApiType" - }, - "restorableLocations": { - "type": "array", - "readOnly": true, - "description": "List of regions where the of the database account can be restored from.", - "items": { - "$ref": "#/definitions/RestorableLocationResource" - } - } - } - }, - "ApiType": { - "description": "Enum to indicate the API type of the restorable database account.", - "type": "string", - "readOnly": true, - "enum": [ - "MongoDB", - "Gremlin", - "Cassandra", - "Table", - "Sql", - "GremlinV2" - ], - "x-ms-enum": { - "name": "ApiType", - "modelAsString": true - } - }, - "RestorableLocationResource": { - "type": "object", - "description": "Properties of the regional restorable account.", - "properties": { - "locationName": { - "type": "string", - "readOnly": true, - "description": "The location of the regional restorable account." - }, - "regionalDatabaseAccountInstanceId": { - "type": "string", - "readOnly": true, - "description": "The instance id of the regional restorable account." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The creation time of the regional restorable database account (ISO-8601 format)." - }, - "deletionTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)." - } - } - }, - "RestorableSqlDatabasesListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RestorableSqlDatabaseGetResult" - }, - "description": "List of SQL database events and their properties." - } - }, - "description": "The List operation response, that contains the SQL database events and their properties." - }, - "RestorableSqlDatabaseGetResult": { - "description": "An Azure Cosmos DB SQL database event", - "type": "object", - "properties": { - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a SQL database event.", - "$ref": "#/definitions/RestorableSqlDatabaseProperties" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource Identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - } - } - }, - "RestorableSqlDatabaseProperties": { - "description": "The properties of an Azure Cosmos DB SQL database event", - "type": "object", - "properties": { - "resource": { - "type": "object", - "description": "The resource of an Azure Cosmos DB SQL database event", - "properties": { - "_rid": { - "type": "string", - "readOnly": true, - "description": "A system generated property. A unique identifier." - }, - "operationType": { - "type": "string", - "readOnly": true, - "description": "The operation type of this database event.", - "$ref": "#/definitions/OperationType" - }, - "eventTimestamp": { - "type": "string", - "readOnly": true, - "description": "The time when this database event happened." - }, - "ownerId": { - "type": "string", - "readOnly": true, - "description": "The name of the SQL database." - }, - "ownerResourceId": { - "type": "string", - "readOnly": true, - "description": "The resource ID of the SQL database." - }, - "database": { - "type": "object", - "description": "Cosmos DB SQL database resource object", - "properties": { - "_colls": { - "type": "string", - "readOnly": true, - "description": "A system generated property that specified the addressable path of the collections resource." - }, - "_users": { - "type": "string", - "readOnly": true, - "description": "A system generated property that specifies the addressable path of the users resource." - }, - "_self": { - "type": "string", - "readOnly": true, - "description": "A system generated property that specifies the addressable path of the database resource." - } - }, - "allOf": [ - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlDatabaseResource" - }, - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" - } - ] - } - } - } - } - }, - "RestorableSqlContainersListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RestorableSqlContainerGetResult" - }, - "description": "List of SQL container events and their properties." - } - }, - "description": "The List operation response, that contains the SQL container events and their properties." - }, - "RestorableSqlContainerGetResult": { - "description": "An Azure Cosmos DB SQL container event", - "type": "object", - "properties": { - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a SQL container event.", - "$ref": "#/definitions/RestorableSqlContainerProperties" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource Identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - } - } - }, - "RestorableSqlContainerProperties": { - "description": "The properties of an Azure Cosmos DB SQL container event", - "type": "object", - "properties": { - "resource": { - "description": "The resource of an Azure Cosmos DB SQL container event", - "type": "object", - "properties": { - "_rid": { - "type": "string", - "readOnly": true, - "description": "A system generated property. A unique identifier." - }, - "operationType": { - "type": "string", - "readOnly": true, - "description": "The operation type of this container event.", - "$ref": "#/definitions/OperationType" - }, - "eventTimestamp": { - "type": "string", - "readOnly": true, - "description": "The when this container event happened." - }, - "ownerId": { - "type": "string", - "readOnly": true, - "description": "The name of this SQL container." - }, - "ownerResourceId": { - "type": "string", - "readOnly": true, - "description": "The resource ID of this SQL container." - }, - "container": { - "type": "object", - "description": "Cosmos DB SQL container resource object", - "properties": { - "_self": { - "type": "string", - "readOnly": true, - "description": "A system generated property that specifies the addressable path of the container resource." - } - }, - "allOf": [ - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/SqlContainerResource" - }, - { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/ExtendedResourceProperties" - } - ] - } - } - } - } - }, - "RestorableSqlResourcesListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" - }, - "description": "List of restorable SQL resources, including the database and collection names." - } - }, - "description": "The List operation response, that contains the restorable SQL resources." - }, - "RestorableMongodbDatabasesListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RestorableMongodbDatabaseGetResult" - }, - "description": "List of MongoDB database events and their properties." - } - }, - "description": "The List operation response, that contains the MongoDB database events and their properties." - }, - "RestorableMongodbDatabaseGetResult": { - "description": "An Azure Cosmos DB MongoDB database event", - "type": "object", - "properties": { - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a MongoDB database event.", - "$ref": "#/definitions/RestorableMongodbDatabaseProperties" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource Identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - } - } - }, - "RestorableMongodbDatabaseProperties": { - "description": "The properties of an Azure Cosmos DB MongoDB database event", - "type": "object", - "properties": { - "resource": { - "description": "The resource of an Azure Cosmos DB MongoDB database event", - "type": "object", - "properties": { - "_rid": { - "type": "string", - "readOnly": true, - "description": "A system generated property. A unique identifier." - }, - "operationType": { - "type": "string", - "readOnly": true, - "description": "The operation type of this database event.", - "$ref": "#/definitions/OperationType" - }, - "eventTimestamp": { - "type": "string", - "readOnly": true, - "description": "The time when this database event happened." - }, - "ownerId": { - "type": "string", - "readOnly": true, - "description": "The name of this MongoDB database." - }, - "ownerResourceId": { - "type": "string", - "readOnly": true, - "description": "The resource ID of this MongoDB database." - } - } - } - } - }, - "RestorableMongodbCollectionsListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RestorableMongodbCollectionGetResult" - }, - "description": "List of MongoDB collection events and their properties." - } - }, - "description": "The List operation response, that contains the MongoDB collection events and their properties." - }, - "RestorableMongodbCollectionGetResult": { - "description": "An Azure Cosmos DB MongoDB collection event", - "type": "object", - "properties": { - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a MongoDB collection event.", - "$ref": "#/definitions/RestorableMongodbCollectionProperties" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource Identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." - } - } - }, - "RestorableMongodbCollectionProperties": { - "description": "The properties of an Azure Cosmos DB MongoDB collection event", - "type": "object", - "properties": { - "resource": { - "description": "The resource of an Azure Cosmos DB MongoDB collection event", - "type": "object", - "properties": { - "_rid": { - "type": "string", - "readOnly": true, - "description": "A system generated property. A unique identifier." - }, - "operationType": { - "type": "string", - "readOnly": true, - "description": "The operation type of this collection event.", - "$ref": "#/definitions/OperationType" - }, - "eventTimestamp": { - "type": "string", - "readOnly": true, - "description": "The time when this collection event happened." - }, - "ownerId": { - "type": "string", - "readOnly": true, - "description": "The name of this MongoDB collection." - }, - "ownerResourceId": { - "type": "string", - "readOnly": true, - "description": "The resource ID of this MongoDB collection." - } - } - } - } - }, - "RestorableMongodbResourcesListResult": { - "type": "object", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "../../stable/2021-10-15/cosmos-db.json#/definitions/DatabaseRestoreResource" - }, - "description": "List of restorable MongoDB resources, including the database and collection names." - } - }, - "description": "The List operation response, that contains the restorable MongoDB resources." - }, - "OperationType": { - "description": "Enum to indicate the operation type of the event.", - "type": "string", - "readOnly": true, - "enum": [ - "Create", - "Replace", - "Delete", - "SystemOperation" - ], - "x-ms-enum": { - "name": "OperationType", - "modelAsString": true - } - }, - "ContinuousBackupRestoreLocation": { - "type": "object", - "description": "Properties of the regional restorable account.", - "properties": { - "location": { - "type": "string", - "description": "The name of the continuous backup restore location." - } - } - }, - "BackupInformation": { - "description": "Backup information of a resource.", - "type": "object", - "properties": { - "continuousBackupInformation": { - "description": "Information about the status of continuous backups.", - "type": "object", - "$ref": "#/definitions/ContinuousBackupInformation" - } - } - }, - "ContinuousBackupInformation": { - "description": "Information about the status of continuous backups.", - "type": "object", - "readOnly": true, - "properties": { - "latestRestorableTimestamp": { - "type": "string", - "description": "The latest restorable timestamp for a resource." - } - } - } - }, - "parameters": { - "restorableSqlDatabaseRidParameter": { - "name": "restorableSqlDatabaseRid", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The resource ID of the SQL database." - }, - "restorableMongodbDatabaseRidParameter": { - "name": "restorableMongodbDatabaseRid", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The resource ID of the MongoDB database." - }, - "restoreLocationParameter": { - "name": "restoreLocation", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The location where the restorable resources are located." - }, - "restoreTimestampInUtcParameter": { - "name": "restoreTimestampInUtc", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The timestamp when the restorable resources existed." - }, - "restoreStartTime": { - "name": "startTime", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The snapshot create timestamp after which snapshots need to be listed." - }, - "restoreEndTime": { - "name": "endTime", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The snapshot create timestamp before which snapshots need to be listed." - }, - "locationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Cosmos DB region, with spaces between words and each word capitalized." - }, - "instanceIdParameter": { - "name": "instanceId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The instanceId GUID of a restorable database account." - } - } -} diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 83d4899965ca..b5ac43f11c23 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -45,21 +45,6 @@ input-file: - Microsoft.DocumentDB/stable/2021-10-15/restorable.json ``` -### Tag: package-2021-10-preview - -These settings apply only when `--tag=package-2021-10-preview` is specified on the command line. - -```yaml $(tag) == 'package-2021-10-preview' -input-file: - - Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/notebook.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/privateEndpointConnection.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/privateLinkResources.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/rbac.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/restorable.json - - Microsoft.DocumentDB/preview/2021-10-15-preview/mongorbac.json -``` - ### Tag: package-2021-06 These settings apply only when `--tag=package-2021-06` is specified on the command line. From bf0315304031a9ba745c9f019debb3697d927dd4 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 5 Oct 2021 08:32:10 -0700 Subject: [PATCH 24/50] managed cassandra swagger changes for GA --- .../stable/2021-10-15/managedCassandra.json | 419 ++++++++++++++++-- 1 file changed, 379 insertions(+), 40 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index d5c4acdc7452..145d9da2512c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -729,9 +729,6 @@ "202": { "description": "Enqueued Operation to deallocate the cluster." }, - "200": { - "description": "Successfully deallocate the cluster." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -744,7 +741,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { "post": { "operationId": "CassandraCluster_Start", - "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", + "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this clusterwith reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", "x-ms-examples": { "CosmosDBManagedCassandraClusterStart": { "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" @@ -768,8 +765,47 @@ "202": { "description": "Enqueued Operation to start the cluster." }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/status": { + "get": { + "operationId": "CassandraStatus_Get", + "description": "Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraStatus": { + "$ref": "./examples/CosmosDBManagedCassandraStatus.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { "200": { - "description": "Successfully start the cluster." + "description": "Successfully fetched the usage statistics of all nodes in the cluster.", + "schema": { + "$ref": "#/definitions/CassandraClusterPublicStatus" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -831,6 +867,65 @@ } } }, + "ManagedCassandraARMResourceProperties": { + "type": "object", + "description": "The core properties of ARM resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "tags": { + "$ref": "cosmos-db.json#/definitions/Tags" + }, + "identity": { + "$ref": "#/definitions/ManagedCassandraManagedServiceIdentity" + } + }, + "x-ms-azure-resource": true + }, + "ManagedCassandraManagedServiceIdentity": { + "description": "Identity for the resource.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The object id of the identity resource." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the resource." + }, + "type": { + "type": "string", + "description": "The type of the resource.", + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ManagedCassandraResourceIdentityType", + "modelAsString": true + } + } + } + }, "ManagedCassandraProvisioningState": { "description": "The status of the resource at the time the operation was called.", "type": "string", @@ -852,7 +947,7 @@ "type": "object", "allOf": [ { - "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" + "$ref": "#/definitions/ManagedCassandraARMResourceProperties" } ], "properties": { @@ -895,7 +990,8 @@ "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", "enum": [ "None", - "Cassandra" + "Cassandra", + "Ldap" ], "x-ms-enum": { "name": "AuthenticationMethod", @@ -910,11 +1006,6 @@ "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", "type": "string" }, - "hoursBetweenBackups": { - "type": "integer", - "format": "int32", - "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." - }, "prometheusEndpoint": { "$ref": "#/definitions/SeedNode", "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." @@ -962,11 +1053,237 @@ "$ref": "#/definitions/SeedNode" }, "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." + }, + "hoursBetweenBackups": { + "type": "integer", + "format": "int32", + "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." + }, + "deallocated": { + "type": "boolean", + "description": "Whether the cluster and associated data centers has been deallocated." + }, + "connectivity": { + "type": "string", + "description": "The connectivity method to connect to the Cassandra data centers. Defaults to 'VNetInjection'" + } + } + } + } + }, + "ManagedCassandraNodeStatus": { + "type": "string", + "description": "Indicates whether the node is functioning or not.", + "enum": [ + "Up", + "Down" + ], + "x-ms-enum": { + "name": "NodeStatus", + "modelAsString": true + } + }, + "ManagedCassandraNodeState": { + "type": "string", + "description": "The state of the node in Cassandra ring.", + "enum": [ + "Normal", + "Leaving", + "Joining", + "Moving", + "Stopped" + ], + "x-ms-enum": { + "name": "NodeState", + "modelAsString": true + } + }, + "CassandraClusterPublicStatus": { + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" + } + ], + "properties": { + "properties": { + "type": "object", + "description": "Properties of a managed Cassandra cluster public status.", + "properties": { + "ETag": { + "type": "string" + }, + "cassandraClusterReaperStatus": { + "$ref": "#/definitions/ManagedCassandraReaperStatus" + }, + "connectionErrors": { + "type": "array", + "description": "List relevant information about any connection errors to the Datacenters.", + "items": { + "$ref": "#/definitions/ConnectionError" + } + }, + "dataCenters": { + "type": "array", + "description": "List of the status of each datacenter in this cluster.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This Datacenter's name." + }, + "seedNodes": { + "type": "array", + "description": "A list of all seed nodes in the cluster, managed and unmanaged.", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The node's IP address." + }, + "state": { + "$ref": "#/definitions/ManagedCassandraNodeState" + }, + "status": { + "type": "string" + }, + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted." + }, + "tokens": { + "type": "array", + "description": "List of tokens this node covers.", + "items": { + "type": "string" + } + }, + "size": { + "type": "integer" + }, + "hostId": { + "description": "The network ID of the node.", + "type": "string" + }, + "rack": { + "description": "The rack this node is part of.", + "type": "string" + }, + "timestamp": { + "description": "The timestamp at which that snapshot of these usage statistics were taken.", + "type": "string" + }, + "diskUsedKB": { + "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "diskFreeKB": { + "description": "The amount of disk free, in kB, of the directory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "memoryUsedKB": { + "description": "Used memory (calculated as total - free - buffers - cache), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryBuffersAndCachedKB": { + "description": "Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryFreeKB": { + "description": "Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryTotalKB": { + "description": "Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "cpuUsage": { + "description": "A float representing the current system-wide CPU utilization as a percentage.", + "type": "integer", + "format": "double" + } + } + } + } + } + } } } } } }, + "ManagedCassandraReaperStatus": { + "type": "object", + "properties": { + "healthy": { + "type": "string" + }, + "repairRunIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "repairSchedules": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ConnectionError": { + "type": "object", + "properties": { + "connectionState": { + "description": "The kind of connection error that occurred.", + "type": "string", + "enum": [ + "Unknown", + "OK", + "OperatorToDataCenterNetworkError", + "DatacenterToDatacenterNetworkError", + "InternalOperatorToDataCenterCertificateError", + "InternalError" + ], + "x-ms-enum": { + "name": "ConnectionState", + "modelAsString": true + } + }, + "iPFrom": { + "description": "The IP of host that originated the failed connection.", + "type": "string" + }, + "iPTo": { + "description": "The IP that the connection attempted to reach.", + "type": "string" + }, + "port": { + "description": "The TCP port the connection was attempted on.", + "type": "integer", + "format": "int32" + }, + "exception": { + "description": "Detailed error message about the failed connection.", + "type": "string" + } + } + }, "RepairPostBody": { "description": "Specification of the keyspaces and tables to run repair on.", "type": "object", @@ -1003,31 +1320,10 @@ "description": "The Cassandra data center this node resides in." }, "status": { - "type": "string", - "description": "Indicates whether the node is functioning or not.", - "enum": [ - "Up", - "Down" - ], - "x-ms-enum": { - "name": "NodeStatus", - "modelAsString": true - } + "$ref": "#/definitions/ManagedCassandraNodeStatus" }, "state": { - "type": "string", - "description": "The state of the node in relation to the cluster.", - "enum": [ - "Normal", - "Leaving", - "Joining", - "Moving", - "Stopped" - ], - "x-ms-enum": { - "name": "NodeState", - "modelAsString": true - } + "$ref": "#/definitions/ManagedCassandraNodeState" }, "address": { "type": "string", @@ -1035,7 +1331,7 @@ }, "load": { "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." + "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." }, "tokens": { "type": "array", @@ -1179,6 +1475,10 @@ "type": "string", "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." }, + "managedDiskCustomerKeyUri": { + "type": "string", + "description": "Indicates the Key Uri of the customer key to use for encryption of managed disks." + }, "sku": { "type": "string", "description": "Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2" @@ -1191,13 +1491,52 @@ "type": "integer", "description": "Number of disk used for data centers. Default value is 4." }, - "availabilityZoneEnabled": { - "type": "boolean", - "description": "Should availability zone be enabled on this data center? If omitted, this is false. This could not be changed after creation." + "availabilityZone": { + "type": "bool", + "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" + }, + "authenticationMethodLdapProperties": { + "$ref": "#/definitions/AuthenticationMethodLdapProperties" } } } } + }, + "AuthenticationMethodLdapProperties": { + "type": "object", + "properties": { + "serverHostname": { + "description": "Hostname of the LDAP server.", + "type": "string" + }, + "serverPort": { + "description": "Port of the LDAP server.", + "type": "integer", + "nullable": true + }, + "serviceUserDistinguishedName": { + "description": "Distinguished name of the look up user account, who can look up user details on authentication.", + "type": "string" + }, + "serviceUserPassword": { + "description": "Password of the look up user.", + "type": "string" + }, + "searchBaseDistinguishedName": { + "description": "Distinguished name of the object to start the recursive search of users from.", + "type": "string" + }, + "searchFilterTemplate": { + "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", + "type": "string" + }, + "serverCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + } + } } } -} +} \ No newline at end of file From cfcac713a0bbe1ad081dd6434b6422418c07f9e4 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Tue, 5 Oct 2021 08:47:58 -0700 Subject: [PATCH 25/50] Fixing linter issues --- .../2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json | 4 ++-- .../2021-10-15/examples/CosmosDBDatabaseAccountPatch.json | 4 ++-- .../stable/2021-10-15/managedCassandra.json | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json index 3dcccf80ecf2..1b748313d6b9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountCreateMax.json @@ -79,7 +79,7 @@ ], "capacity": { "totalThroughputLimit": 2000 - }, + } } } }, @@ -211,7 +211,7 @@ ], "capacity": { "totalThroughputLimit": 2000 - }, + } }, "systemData": { "createdAt": "2021-03-12T22:05:09Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json index ba55d4d52309..1f4b544ab846 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBDatabaseAccountPatch.json @@ -56,7 +56,7 @@ ], "capacity": { "totalThroughputLimit": 2000 - }, + } } } }, @@ -177,7 +177,7 @@ ], "capacity": { "totalThroughputLimit": 2000 - }, + } } } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index d5c4acdc7452..09ad767801f5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -1189,6 +1189,7 @@ }, "diskCapacity": { "type": "integer", + "format": "int32", "description": "Number of disk used for data centers. Default value is 4." }, "availabilityZoneEnabled": { From b045cfdcdbf4eee11336ef83d64762751760bbb3 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 5 Oct 2021 08:49:14 -0700 Subject: [PATCH 26/50] minor description fixes --- .../stable/2021-10-15/managedCassandra.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 145d9da2512c..17feccdddb7d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -741,7 +741,7 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { "post": { "operationId": "CassandraCluster_Start", - "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this clusterwith reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", + "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", "x-ms-examples": { "CosmosDBManagedCassandraClusterStart": { "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" @@ -1057,7 +1057,7 @@ "hoursBetweenBackups": { "type": "integer", "format": "int32", - "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." + "description": "Number of hours to wait between taking a backup of the cluster." }, "deallocated": { "type": "boolean", @@ -1539,4 +1539,4 @@ } } } -} \ No newline at end of file +} From 5873e64c99f9c636effbccf61df49e8d4e56ca30 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 5 Oct 2021 12:03:38 -0700 Subject: [PATCH 27/50] adding missing example --- .../CosmosDBManagedCassandraStatus.json | 142 ++++++++++++++++++ .../stable/2021-10-15/managedCassandra.json | 5 +- 2 files changed, 144 insertions(+), 3 deletions(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json new file mode 100644 index 000000000000..ed1c679c9f7a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json @@ -0,0 +1,142 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod" + }, + "responses": { + "200": { + "body": { + { + "eTag": "A350A2CE7E91B6D5A102A5E5EC222B882D981092", + "reaperStatus": { + "healthy": true, + "repairRunIds": { + + }, + "repairSchedules": { + "00000000-0000-0001-0000-000000000000": "ACTIVE" + } + }, + "connectionErrors": [ + + ], + "dataCenters": { + "name": "cassandra-westus2-vmss", + "seedNodes": [ + "10.0.8.10", + "10.0.8.11", + "10.0.8.12" + ], + "nodes": [ + { + "address": "10.0.8.10", + "state": "", + "status": "", + "load": "84.61 MiB", + "tokens": [ + "-7785254003841681178", + "-6756518164561476165", + "-4269720020504480060", + "-2697657908817852783", + "-2622387897201218249", + "-2177258200443022948", + "-129203941752875603", + "1738406920822650025", + "2598053056312400240", + "3227346424117996872", + "3644347038875498376", + "4823546474906050895", + "5293156680707616627", + "5485806686603256557", + "6250058817756969464", + "7991328665766267709" + ], + "size": 16, + "hostID": "8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51", + "rack": "rack1", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 749836, + "diskFreeKB": 1001260056, + "memoryUsedKB": 11061032, + "memoryBuffersAndCachedKB": 10817580, + "memoryFreeKB": 35731832, + "memoryTotalKB": 57610444, + "cpuUsage": 0.9 + }, + { + "address": "10.0.8.11", + "state": "", + "status": "", + "load": "59.67 MiB", + "tokens": [ + "-8726238055665903210", + "-6687985003871487470", + "-5269140854976433359", + "-3989177686905645288", + "-3957362495277148220", + "-2539287458896988944", + "-2460716365393303466", + "-1848370030729221440", + "137707733677015122", + "579467328507000597", + "1698264534774619627", + "1904235159942090722", + "3312208865519999146", + "4035940456270983993", + "4412314431151736777", + "8232565668795426078" + ], + "size": 16, + "hostID": "14092117-4f77-4ec0-8984-c5b860b88a47", + "rack": "rack2", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 726864, + "diskFreeKB": 1001283028, + "memoryUsedKB": 11055676, + "memoryBuffersAndCachedKB": 10691520, + "memoryFreeKB": 35863248, + "memoryTotalKB": 57610444, + "cpuUsage": 1.2 + }, + { + "address": "10.0.8.12", + "state": "", + "status": "", + "load": "93.2 MiB", + "tokens": [ + "-5679481051867296621", + "-4574115287969297989", + "-3444578133211470522", + "-2755931580714972271", + "-2304431590844389550", + "-1961946736975068713", + "-940120277889446704", + "554469308917912318", + "1030447162050118004", + "2745632329542596589", + "4564547712926446283", + "5185613478135944116", + "7280237939830623824", + "7504213835759531710", + "7631994478195429959", + "8139769477321226157" + ], + "size": 16, + "hostID": "e16ada14-39db-462b-9f9e-5b5f6beb8bbd", + "rack": "rack3", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 757540, + "diskFreeKB": 1001252352, + "memoryUsedKB": 11051608, + "memoryBuffersAndCachedKB": 10453856, + "memoryFreeKB": 36104980, + "memoryTotalKB": 57610444, + "cpuUsage": 0.4 + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 17feccdddb7d..1289840c0004 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -1492,7 +1492,7 @@ "description": "Number of disk used for data centers. Default value is 4." }, "availabilityZone": { - "type": "bool", + "type": "boolean", "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" }, "authenticationMethodLdapProperties": { @@ -1511,8 +1511,7 @@ }, "serverPort": { "description": "Port of the LDAP server.", - "type": "integer", - "nullable": true + "type": "integer" }, "serviceUserDistinguishedName": { "description": "Distinguished name of the look up user account, who can look up user details on authentication.", From 816e5aae90fbeddaeea5062c710b3115ed91e411 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 5 Oct 2021 19:35:15 -0700 Subject: [PATCH 28/50] add stable and preview swagger --- .../2021-07-01-preview/managedCassandra.json | 2406 ++++++++++------- .../CosmosDBManagedCassandraCommand.json | 20 + .../CosmosDBManagedCassandraStatus.json | 256 +- .../stable/2021-10-15/managedCassandra.json | 122 +- 4 files changed, 1688 insertions(+), 1116 deletions(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json index c5e8f0555e8d..d93e8d73cf40 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json @@ -1,1109 +1,1621 @@ { - "swagger": "2.0", - "info": { - "title": "Cosmos DB - Managed Cassandra", - "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", - "version": "2021-07-01-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" + "swagger": "2.0", + "info": { + "title": "Cosmos DB - Managed Cassandra", + "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", + "version": "2021-10-15-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters": { - "get": { - "operationId": "CassandraClusters_ListBySubscription", - "description": "List all managed Cassandra clusters in this subscription.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterListBySubscription": { - "$ref": "./examples/CosmosDBManagedCassandraClusterListBySubscription.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListBySubscription", + "description": "List all managed Cassandra clusters in this subscription.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListBySubscription": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListBySubscription.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra clusters.", - "schema": { - "$ref": "#/definitions/ListClusters" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListByResourceGroup", + "description": "List all managed Cassandra clusters in this resource group.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListByResourceGroup": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListByResourceGroup.json" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters": { - "get": { - "operationId": "CassandraClusters_ListByResourceGroup", - "description": "List all managed Cassandra clusters in this resource group.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterListByResourceGroup": { - "$ref": "./examples/CosmosDBManagedCassandraClusterListByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}": { + "get": { + "operationId": "CassandraClusters_Get", + "description": "Get the properties of a managed Cassandra cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterGet": { + "$ref": "./examples/CosmosDBManagedCassandraClusterGet.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra cluster were retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra clusters.", - "schema": { - "$ref": "#/definitions/ListClusters" + }, + "delete": { + "operationId": "CassandraClusters_Delete", + "description": "Deletes a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraClusterDelete.json" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The managed Cassandra cluster will be deleted asynchronously." + }, + "204": { + "description": "No such cluster to delete." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}": { - "get": { - "operationId": "CassandraClusters_Get", - "description": "Get the properties of a managed Cassandra cluster.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterGet": { - "$ref": "./examples/CosmosDBManagedCassandraClusterGet.json" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" + "put": { + "operationId": "CassandraClusters_CreateUpdate", + "description": "Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraClusterCreate.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" + }, + "description": "The properties specifying the desired state of the managed Cassandra cluster." + } + ], + "responses": { + "200": { + "description": "The managed Cassandra cluster is being updated. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "201": { + "description": "The managed Cassandra cluster is being created. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "The properties of the managed Cassandra cluster were retrieved successfully.", - "schema": { - "$ref": "#/definitions/ClusterResource" + }, + "patch": { + "operationId": "CassandraClusters_Update", + "description": "Updates some of the properties of a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterPatch": { + "$ref": "./examples/CosmosDBManagedCassandraClusterPatch.json" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" + }, + "description": "Parameters to provide for specifying the managed Cassandra cluster." + } + ], + "responses": { + "202": { + "description": "The managed Cassandra cluster is being updated. Poll the provided operation for completion.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra data center.", + "schema": { + "$ref": "#/definitions/ClusterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } }, - "delete": { - "operationId": "CassandraClusters_Delete", - "description": "Deletes a managed Cassandra cluster.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterDelete": { - "$ref": "./examples/CosmosDBManagedCassandraClusterDelete.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { + "post": { + "operationId": "CassandraClusters_RequestRepair", + "description": "Request that repair begin on this cluster as soon as possible.", + "x-ms-examples": { + "CosmosDBManagedCassandraRepair": { + "$ref": "./examples/CosmosDBManagedCassandraRepair.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RepairPostBody" + }, + "description": "Specification of what keyspaces and tables to run repair on." + } + ], + "responses": { + "200": { + "description": "Success. The repair operation will begin as soon as possible." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "202": { - "description": "Accepted. The managed Cassandra cluster will be deleted asynchronously." - }, - "204": { - "description": "No such cluster to delete." + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/command": { + "post": { + "operationId": "CassandraClusters_InvokeCommand", + "description": "Invoke a command like nodetool for cassandra maintenance ", + "x-ms-examples": { + "CosmosDBManagedCassandraRepair": { + "$ref": "./examples/CosmosDBManagedCassandraCommand.json" + } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CommandPostBody" + }, + "description": "Specification which command to run where" + } + ], + "responses": { + "200": { + "description": "Success. The command operation will begin as soon as possible." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } }, - "put": { - "operationId": "CassandraClusters_CreateUpdate", - "description": "Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterCreate": { - "$ref": "./examples/CosmosDBManagedCassandraClusterCreate.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { + "post": { + "operationId": "CassandraClusters_FetchNodeStatus", + "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterFetchNodeStatus": { + "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" + } }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterResource" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The node status will be returned asynchronously." }, - "description": "The properties specifying the desired state of the managed Cassandra cluster." + "200": { + "description": "Successfully fetched the status of all nodes in the cluster.", + "schema": { + "$ref": "#/definitions/ClusterNodeStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "The managed Cassandra cluster is being updated. Poll for provisioningState=Succeeded to find when creation completes.", - "schema": { - "$ref": "#/definitions/ClusterResource" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { + "get": { + "operationId": "CassandraClusters_ListBackups", + "description": "List the backups of this cluster that are available to restore.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraBackupsList": { + "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" } }, - "201": { - "description": "The managed Cassandra cluster is being created. Poll for provisioningState=Succeeded to find when creation completes.", - "schema": { - "$ref": "#/definitions/ClusterResource" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", + "schema": { + "$ref": "#/definitions/ListBackups" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } }, - "patch": { - "operationId": "CassandraClusters_Update", - "description": "Updates some of the properties of a managed Cassandra cluster.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterPatch": { - "$ref": "./examples/CosmosDBManagedCassandraClusterPatch.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { + "get": { + "operationId": "CassandraClusters_GetBackup", + "description": "Get the properties of an individual backup of this cluster that is available to restore.", + "x-ms-examples": { + "CosmosDBManagedCassandraBackup": { + "$ref": "./examples/CosmosDBManagedCassandraBackup.json" + } }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterResource" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/backupNameParameter" }, - "description": "Parameters to provide for specifying the managed Cassandra cluster." + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the properties of the backup.", + "schema": { + "$ref": "#/definitions/BackupResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "202": { - "description": "The managed Cassandra cluster is being updated. Poll the provided operation for completion.", - "schema": { - "$ref": "#/definitions/ClusterResource" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { + "get": { + "operationId": "CassandraDataCenters_List", + "description": "List all data centers in a particular managed Cassandra cluster.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterList": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterList.json" } }, - "200": { - "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra data center.", - "schema": { - "$ref": "#/definitions/ClusterResource" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra data centers.", + "schema": { + "$ref": "#/definitions/ListDataCenters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { - "post": { - "operationId": "CassandraClusters_RequestRepair", - "description": "Request that repair begin on this cluster as soon as possible.", - "x-ms-examples": { - "CosmosDBManagedCassandraRepair": { - "$ref": "./examples/CosmosDBManagedCassandraRepair.json" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}": { + "get": { + "operationId": "CassandraDataCenters_Get", + "description": "Get the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterGet": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra data center were retrieved successfully.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "delete": { + "operationId": "CassandraDataCenters_Delete", + "description": "Delete a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterDelete.json" + } }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RepairPostBody" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" }, - "description": "Specification of what keyspaces and tables to run repair on." + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. Deletion will complete asynchronously." + }, + "204": { + "description": "Cassandra cluster with the specified name does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "Success. The repair operation will begin as soon as possible." + }, + "put": { + "operationId": "CassandraDataCenters_CreateUpdate", + "description": "Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterCreate.json" + } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters specifying the managed Cassandra data center." + } + ], + "responses": { + "201": { + "description": "Accepted. The data center will be created asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "200": { + "description": "Accepted. The data center will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { - "post": { - "operationId": "CassandraClusters_FetchNodeStatus", - "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterFetchNodeStatus": { - "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" + "patch": { + "operationId": "CassandraDataCenters_Update", + "description": "Update some of the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterUpdate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterPatch.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters to provide for specifying the managed Cassandra data center." + } + ], + "responses": { + "202": { + "description": "Accepted. Update will proceed asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra cluster, such as editing the tags.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "202": { - "description": "Accepted. The node status will be returned asynchronously." - }, - "200": { - "description": "Successfully fetched the status of all nodes in the cluster.", - "schema": { - "$ref": "#/definitions/ClusterNodeStatus" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate": { + "post": { + "operationId": "CassandraCluster_Deallocate", + "description": "Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterDeallocate": { + "$ref": "./examples/CosmosDBManagedCassandraClusterDeallocate.json" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Enqueued Operation to deallocate the cluster." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { - "get": { - "operationId": "CassandraClusters_ListBackups", - "description": "List the backups of this cluster that are available to restore.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraBackupsList": { - "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { + "post": { + "operationId": "CassandraCluster_Start", + "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterStart": { + "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Enqueued Operation to start the cluster." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", - "schema": { - "$ref": "#/definitions/ListBackups" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/status": { + "get": { + "operationId": "CassandraStatus_Get", + "description": "Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraStatus": { + "$ref": "./examples/CosmosDBManagedCassandraStatus.json" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully fetched the usage statistics of all nodes in the cluster.", + "schema": { + "$ref": "#/definitions/CassandraClusterPublicStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { - "get": { - "operationId": "CassandraClusters_GetBackup", - "description": "Get the properties of an individual backup of this cluster that is available to restore.", - "x-ms-examples": { - "CosmosDBManagedCassandraBackup": { - "$ref": "./examples/CosmosDBManagedCassandraBackup.json" + "parameters": { + "clusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Managed Cassandra cluster name.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "dataCenterNameParameter": { + "name": "dataCenterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Data center name in a managed Cassandra cluster.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "backupNameParameter": { + "name": "backupId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Id of a restorable backup of a Cassandra cluster.", + "minLength": 1, + "maxLength": 15, + "pattern": "^[0-9]+$" + } + }, + "definitions": { + "ListClusters": { + "description": "List of managed Cassandra clusters.", + "readOnly": true, + "type": "object", + "properties": { + "value": { + "description": "Container for the array of clusters.", + "type": "array", + "items": { + "$ref": "#/definitions/ClusterResource" + } } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + }, + "ManagedCassandraARMResourceProperties": { + "type": "object", + "description": "The core properties of ARM resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The unique resource identifier of the ARM resource." }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the ARM resource." }, - { - "$ref": "#/parameters/clusterNameParameter" + "type": { + "readOnly": true, + "type": "string", + "description": "The type of Azure resource." }, - { - "$ref": "#/parameters/backupNameParameter" + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." }, + "tags": { + "$ref": "cosmos-db.json#/definitions/Tags" + }, + "identity": { + "$ref": "#/definitions/ManagedCassandraManagedServiceIdentity" + } + }, + "x-ms-azure-resource": true + }, + "ManagedCassandraManagedServiceIdentity": { + "description": "Identity for the resource.", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The object id of the identity resource." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id of the resource." + }, + "type": { + "type": "string", + "description": "The type of the resource.", + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ManagedCassandraResourceIdentityType", + "modelAsString": true + } + } + } + }, + "ManagedCassandraProvisioningState": { + "description": "The status of the resource at the time the operation was called.", + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ManagedCassandraProvisioningState", + "modelAsString": true + } + }, + "ClusterResource": { + "description": "Representation of a managed Cassandra cluster.", + "type": "object", + "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "#/definitions/ManagedCassandraARMResourceProperties" } ], - "responses": { - "200": { - "description": "Successfully retrieved the properties of the backup.", - "schema": { - "$ref": "#/definitions/BackupResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "properties": { + "properties": { + "type": "object", + "description": "Properties of a managed Cassandra cluster.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" + }, + "restoreFromBackupId": { + "type": "string", + "x-ms-mutability": [ + "create" + ], + "description": "To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup." + }, + "delegatedManagementSubnetId": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'" + }, + "cassandraVersion": { + "type": "string", + "description": "Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version." + }, + "clusterNameOverride": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property." + }, + "authenticationMethod": { + "type": "string", + "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", + "enum": [ + "None", + "Cassandra", + "Ldap" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "initialCassandraAdminPassword": { + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true, + "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", + "type": "string" + }, + "prometheusEndpoint": { + "$ref": "#/definitions/SeedNode", + "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." + }, + "repairEnabled": { + "type": "boolean", + "description": "Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs." + }, + "clientCertificates": { + "description": "List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalGossipCertificates": { + "description": "List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "gossipCertificates": { + "readOnly": true, + "x-ms-mutability": [ + "read" + ], + "description": "List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalSeedNodes": { + "type": "array", + "description": "List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.", + "items": { + "$ref": "#/definitions/SeedNode" + } + }, + "seedNodes": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SeedNode" + }, + "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." + }, + "hoursBetweenBackups": { + "type": "integer", + "format": "int32", + "description": "Number of hours to wait between taking a backup of the cluster." + }, + "deallocated": { + "type": "boolean", + "description": "Whether the cluster and associated data centers has been deallocated." + }, + "connectivity": { + "type": "string", + "description": "The connectivity method to connect to the Cassandra data centers. Defaults to 'VNetInjection'" + } } } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { - "get": { - "operationId": "CassandraDataCenters_List", - "description": "List all data centers in a particular managed Cassandra cluster.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterList": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, + }, + "ManagedCassandraNodeStatus": { + "type": "string", + "description": "Indicates whether the node is functioning or not.", + "enum": [ + "Up", + "Down" + ], + "x-ms-enum": { + "name": "NodeStatus", + "modelAsString": true + } + }, + "ManagedCassandraNodeState": { + "type": "string", + "description": "The state of the node in Cassandra ring.", + "enum": [ + "Normal", + "Leaving", + "Joining", + "Moving", + "Stopped" + ], + "x-ms-enum": { + "name": "NodeState", + "modelAsString": true + } + }, + "CassandraClusterPublicStatus": { + "type": "object", + "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" } ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra data centers.", - "schema": { - "$ref": "#/definitions/ListDataCenters" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "properties": { + "properties": { + "type": "object", + "description": "Properties of a managed Cassandra cluster public status.", + "properties": { + "ETag": { + "type": "string" + }, + "cassandraClusterReaperStatus": { + "$ref": "#/definitions/ManagedCassandraReaperStatus" + }, + "connectionErrors": { + "type": "array", + "description": "List relevant information about any connection errors to the Datacenters.", + "items": { + "$ref": "#/definitions/ConnectionError" + } + }, + "dataCenters": { + "type": "array", + "description": "List of the status of each datacenter in this cluster.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This Datacenter's name." + }, + "seedNodes": { + "type": "array", + "description": "A list of all seed nodes in the cluster, managed and unmanaged.", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The node's IP address." + }, + "state": { + "$ref": "#/definitions/ManagedCassandraNodeState" + }, + "status": { + "type": "string" + }, + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted." + }, + "tokens": { + "type": "array", + "description": "List of tokens this node covers.", + "items": { + "type": "string" + } + }, + "size": { + "type": "integer" + }, + "hostId": { + "description": "The network ID of the node.", + "type": "string" + }, + "rack": { + "description": "The rack this node is part of.", + "type": "string" + }, + "timestamp": { + "description": "The timestamp at which that snapshot of these usage statistics were taken.", + "type": "string" + }, + "diskUsedKB": { + "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "diskFreeKB": { + "description": "The amount of disk free, in kB, of the directory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "memoryUsedKB": { + "description": "Used memory (calculated as total - free - buffers - cache), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryBuffersAndCachedKB": { + "description": "Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryFreeKB": { + "description": "Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryTotalKB": { + "description": "Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "cpuUsage": { + "description": "A float representing the current system-wide CPU utilization as a percentage.", + "type": "integer", + "format": "double" + } + } + } + } + } + } + } } } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}": { - "get": { - "operationId": "CassandraDataCenters_Get", - "description": "Get the properties of a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterGet": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterGet.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" + }, + "ManagedCassandraReaperStatus": { + "type": "object", + "properties": { + "healthy": { + "type": "string" }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The properties of the managed Cassandra data center were retrieved successfully.", - "schema": { - "$ref": "#/definitions/DataCenterResource" + "repairRunIds": { + "type": "object", + "additionalProperties": { + "type": "string" } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "repairSchedules": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "delete": { - "operationId": "CassandraDataCenters_Delete", - "description": "Delete a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterDelete": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterDelete.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "ConnectionError": { + "type": "object", + "properties": { + "connectionState": { + "description": "The kind of connection error that occurred.", + "type": "string", + "enum": [ + "Unknown", + "OK", + "OperatorToDataCenterNetworkError", + "DatacenterToDatacenterNetworkError", + "InternalOperatorToDataCenterCertificateError", + "InternalError" + ], + "x-ms-enum": { + "name": "ConnectionState", + "modelAsString": true + } }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "iPFrom": { + "description": "The IP of host that originated the failed connection.", + "type": "string" }, - { - "$ref": "#/parameters/clusterNameParameter" + "iPTo": { + "description": "The IP that the connection attempted to reach.", + "type": "string" }, - { - "$ref": "#/parameters/dataCenterNameParameter" + "port": { + "description": "The TCP port the connection was attempted on.", + "type": "integer", + "format": "int32" }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "exception": { + "description": "Detailed error message about the failed connection.", + "type": "string" } + } + }, + "RepairPostBody": { + "description": "Specification of the keyspaces and tables to run repair on.", + "type": "object", + "required": [ + "keyspace" ], - "responses": { - "202": { - "description": "Accepted. Deletion will complete asynchronously." - }, - "204": { - "description": "Cassandra cluster with the specified name does not exist." + "properties": { + "keyspace": { + "type": "string", + "description": "The name of the keyspace that repair should be run on." }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "tables": { + "type": "array", + "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", + "items": { + "type": "string", + "description": "Name of a table in the Cassandra keyspace." } } } }, - "put": { - "operationId": "CassandraDataCenters_CreateUpdate", - "description": "Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterCreate": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterCreate.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + "CommandPostBody": { + "description": "Specification of which command to run where", + "type": "object", + "required": [ + "command", "host" + ], + "properties": { + "command": { + "type": "string", + "description": "The command which should be run" }, - { - "$ref": "#/parameters/clusterNameParameter" + "parameters": { + "type": "object", + "description": "The parameters for the command to be run", + "additionalProperties": { + "type": "string" + } }, - { - "$ref": "#/parameters/dataCenterNameParameter" + "host": { + "type": "string", + "description": "IP address of the cassandra host to run the command on" }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "cassandra-stop-start": { + "type": "boolean", + "description": "If true, stops cassandra before executing the command and then start it again" }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DataCenterResource" - }, - "description": "Parameters specifying the managed Cassandra data center." + "readwrite": { + "type": "boolean", + "description": "If true, allows the command to *write* to the cassandra directory, otherwise read-only." } - ], - "responses": { - "201": { - "description": "Accepted. The data center will be created asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "200": { - "description": "Accepted. The data center will be updated asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + } + }, + "ClusterNodeStatus": { + "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", + "type": "object", + "properties": { + "nodes": { + "type": "array", + "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", + "items": { + "type": "object", + "properties": { + "datacenter": { + "type": "string", + "description": "The Cassandra data center this node resides in." + }, + "status": { + "$ref": "#/definitions/ManagedCassandraNodeStatus" + }, + "state": { + "$ref": "#/definitions/ManagedCassandraNodeState" + }, + "address": { + "type": "string", + "description": "The node's URL." + }, + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." + }, + "tokens": { + "type": "array", + "description": "List of tokens.", + "items": { + "type": "string", + "description": "Token of this node." + } + }, + "owns": { + "type": "number", + "format": "double", + "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." + }, + "hostId": { + "type": "string", + "description": "The network ID of the node." + }, + "rack": { + "type": "string", + "description": "The rack this node is part of." + } + } } } } }, - "patch": { - "operationId": "CassandraDataCenters_Update", - "description": "Update some of the properties of a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterUpdate": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterPatch.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, + "BackupResource": { + "description": "A restorable backup of a Cassandra cluster.", + "type": "object", + "allOf": [ { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DataCenterResource" - }, - "description": "Parameters to provide for specifying the managed Cassandra data center." + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" } ], - "responses": { - "202": { - "description": "Accepted. Update will proceed asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "200": { - "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra cluster, such as editing the tags.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" + "properties": { + "properties": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" + } } } } - } - } - }, - "parameters": { - "clusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Managed Cassandra cluster name.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" - }, - "dataCenterNameParameter": { - "name": "dataCenterName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Data center name in a managed Cassandra cluster.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" - }, - "backupNameParameter": { - "name": "backupId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Id of a restorable backup of a Cassandra cluster.", - "minLength": 1, - "maxLength": 15, - "pattern": "^[0-9]+$" - } - }, - "definitions": { - "ListClusters": { - "description": "List of managed Cassandra clusters.", - "readOnly": true, - "type": "object", - "properties": { - "value": { - "description": "Container for the array of clusters.", - "type": "array", - "items": { - "$ref": "#/definitions/ClusterResource" + }, + "ListBackups": { + "description": "List of restorable backups for a Cassandra cluster.", + "type": "object", + "properties": { + "value": { + "description": "Container for array of backups.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BackupResource" + } } } - } - }, - "ManagedCassandraProvisioningState": { - "description": "The status of the resource at the time the operation was called.", - "type": "string", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Canceled" - ], - "x-ms-enum": { - "name": "ManagedCassandraProvisioningState", - "modelAsString": true - } - }, - "ClusterResource": { - "description": "Representation of a managed Cassandra cluster.", - "type": "object", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" - } - ], - "properties": { + }, + "ListDataCenters": { + "description": "List of managed Cassandra data centers and their properties.", + "type": "object", "properties": { - "type": "object", - "description": "Properties of a managed Cassandra cluster.", - "properties": { - "provisioningState": { - "$ref": "#/definitions/ManagedCassandraProvisioningState" - }, - "restoreFromBackupId": { - "type": "string", - "x-ms-mutability": [ - "create" - ], - "description": "To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup." - }, - "delegatedManagementSubnetId": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'" - }, - "cassandraVersion": { - "type": "string", - "description": "Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version." - }, - "clusterNameOverride": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property." - }, - "authenticationMethod": { - "type": "string", - "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", - "enum": [ - "None", - "Cassandra" - ], - "x-ms-enum": { - "name": "AuthenticationMethod", - "modelAsString": true - } - }, - "initialCassandraAdminPassword": { - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true, - "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", - "type": "string" - }, - "hoursBetweenBackups": { - "type": "integer", - "format": "int32", - "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." - }, - "prometheusEndpoint": { - "$ref": "#/definitions/SeedNode", - "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." - }, - "repairEnabled": { - "type": "boolean", - "description": "Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs." - }, - "clientCertificates": { - "description": "List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "externalGossipCertificates": { - "description": "List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "gossipCertificates": { - "readOnly": true, - "x-ms-mutability": [ - "read" - ], - "description": "List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "externalSeedNodes": { - "type": "array", - "description": "List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.", - "items": { - "$ref": "#/definitions/SeedNode" - } - }, - "seedNodes": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SeedNode" - }, - "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." + "value": { + "description": "Container for array of data centers.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/DataCenterResource" } } } - } - }, - "RepairPostBody": { - "description": "Specification of the keyspaces and tables to run repair on.", - "type": "object", - "required": [ - "keyspace" - ], - "properties": { - "keyspace": { - "type": "string", - "description": "The name of the keyspace that repair should be run on." - }, - "tables": { - "type": "array", - "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", - "items": { - "type": "string", - "description": "Name of a table in the Cassandra keyspace." + }, + "SeedNode": { + "type": "object", + "properties": { + "ipAddress": { + "description": "IP address of this seed node.", + "type": "string" } } - } - }, - "ClusterNodeStatus": { - "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", - "type": "object", - "properties": { - "nodes": { - "type": "array", - "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", - "items": { + }, + "Certificate": { + "type": "object", + "properties": { + "pem": { + "description": "PEM formatted public key.", + "type": "string" + } + } + }, + "DataCenterResource": { + "description": "A managed Cassandra data center.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "properties": { + "properties": { + "description": "Properties of a managed Cassandra data center.", "type": "object", "properties": { - "datacenter": { - "type": "string", - "description": "The Cassandra data center this node resides in." + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" }, - "status": { + "dataCenterLocation": { "type": "string", - "description": "Indicates whether the node is functioning or not.", - "enum": [ - "Up", - "Down" + "x-ms-mutability": [ + "create", + "read" ], - "x-ms-enum": { - "name": "NodeStatus", - "modelAsString": true - } + "description": "The region this data center should be created in." }, - "state": { + "delegatedSubnetId": { "type": "string", - "description": "The state of the node in relation to the cluster.", - "enum": [ - "Normal", - "Leaving", - "Joining", - "Moving", - "Stopped" + "x-ms-mutability": [ + "create", + "read" ], - "x-ms-enum": { - "name": "NodeState", - "modelAsString": true - } - }, - "address": { - "type": "string", - "description": "The node's URL." + "description": "Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'." }, - "load": { - "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." + "nodeCount": { + "type": "integer", + "format": "int32", + "description": "The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster." }, - "tokens": { + "seedNodes": { + "readOnly": true, "type": "array", - "description": "List of tokens.", + "description": "IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.", "items": { - "type": "string", - "description": "Token of this node." + "$ref": "#/definitions/SeedNode" } }, - "owns": { - "type": "number", - "format": "double", - "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." + "base64EncodedCassandraYamlFragment": { + "type": "string", + "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." + }, + "managedDiskCustomerKeyUri": { + "type": "string", + "description": "Indicates the Key Uri of the customer key to use for encryption of managed disks." }, - "hostId": { + "sku": { "type": "string", - "description": "The network ID of the node." + "description": "Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2" }, - "rack": { + "diskSku": { "type": "string", - "description": "The rack this node is part of." + "description": "Disk SKU used for data centers. Default value is P30." + }, + "diskCapacity": { + "type": "integer", + "description": "Number of disk used for data centers. Default value is 4." + }, + "availabilityZone": { + "type": "boolean", + "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" + }, + "authenticationMethodLdapProperties": { + "$ref": "#/definitions/AuthenticationMethodLdapProperties" } } } } - } - }, - "BackupResource": { - "description": "A restorable backup of a Cassandra cluster.", - "type": "object", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "properties": { - "properties": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time", - "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" - } - } - } - } - }, - "ListBackups": { - "description": "List of restorable backups for a Cassandra cluster.", - "type": "object", - "properties": { - "value": { - "description": "Container for array of backups.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/BackupResource" - } - } - } - }, - "ListDataCenters": { - "description": "List of managed Cassandra data centers and their properties.", - "type": "object", - "properties": { - "value": { - "description": "Container for array of data centers.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/DataCenterResource" - } - } - } - }, - "SeedNode": { - "type": "object", - "properties": { - "ipAddress": { - "description": "IP address of this seed node.", - "type": "string" - } - } - }, - "Certificate": { - "type": "object", - "properties": { - "pem": { - "description": "PEM formatted public key.", - "type": "string" - } - } - }, - "DataCenterResource": { - "description": "A managed Cassandra data center.", - "type": "object", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "properties": { + }, + "AuthenticationMethodLdapProperties": { + "type" : "object", "properties": { - "description": "Properties of a managed Cassandra data center.", - "type": "object", - "properties": { - "provisioningState": { - "$ref": "#/definitions/ManagedCassandraProvisioningState" - }, - "dataCenterLocation": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "The region this data center should be created in." - }, - "delegatedSubnetId": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'." - }, - "nodeCount": { - "type": "integer", - "format": "int32", - "description": "The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster." - }, - "seedNodes": { - "readOnly": true, - "type": "array", - "description": "IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.", - "items": { - "$ref": "#/definitions/SeedNode" - } - }, - "base64EncodedCassandraYamlFragment": { - "type": "string", - "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." + "serverHostname": { + "description": "Hostname of the LDAP server.", + "type": "string" + }, + "serverPort": { + "description": "Port of the LDAP server.", + "type": "integer", + "nullable": true + }, + "serviceUserDistinguishedName": { + "description": "Distinguished name of the look up user account, who can look up user details on authentication.", + "type": "string" + }, + "serviceUserPassword": { + "description": "Password of the look up user.", + "type": "string" + }, + "searchBaseDistinguishedName": { + "description": "Distinguished name of the object to start the recursive search of users from.", + "type": "string" + }, + "searchFilterTemplate": { + "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", + "type": "string" + }, + "serverCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" } } } } } } -} + \ No newline at end of file diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json new file mode 100644 index 000000000000..fe1082588432 --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "cassandra-prod-rg", + "api-version": "2021-10-15", + "clusterName": "cassandra-prod", + "body": { + "command":"nodetool status", + "host": "10.0.1.12" + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "commandOutput": "Datacenter: datacenter1\n=======================\n" + } + } + } +} \ No newline at end of file diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json index ed1c679c9f7a..8d0647f20459 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json @@ -8,135 +8,135 @@ "responses": { "200": { "body": { - { - "eTag": "A350A2CE7E91B6D5A102A5E5EC222B882D981092", - "reaperStatus": { - "healthy": true, - "repairRunIds": { - - }, - "repairSchedules": { - "00000000-0000-0001-0000-000000000000": "ACTIVE" - } - }, - "connectionErrors": [ + "eTag": "A350A2CE7E91B6D5A102A5E5EC222B882D981092", + "reaperStatus": { + "healthy": true, + "repairRunIds": { - ], - "dataCenters": { - "name": "cassandra-westus2-vmss", - "seedNodes": [ - "10.0.8.10", - "10.0.8.11", - "10.0.8.12" - ], - "nodes": [ - { - "address": "10.0.8.10", - "state": "", - "status": "", - "load": "84.61 MiB", - "tokens": [ - "-7785254003841681178", - "-6756518164561476165", - "-4269720020504480060", - "-2697657908817852783", - "-2622387897201218249", - "-2177258200443022948", - "-129203941752875603", - "1738406920822650025", - "2598053056312400240", - "3227346424117996872", - "3644347038875498376", - "4823546474906050895", - "5293156680707616627", - "5485806686603256557", - "6250058817756969464", - "7991328665766267709" - ], - "size": 16, - "hostID": "8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51", - "rack": "rack1", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 749836, - "diskFreeKB": 1001260056, - "memoryUsedKB": 11061032, - "memoryBuffersAndCachedKB": 10817580, - "memoryFreeKB": 35731832, - "memoryTotalKB": 57610444, - "cpuUsage": 0.9 - }, - { - "address": "10.0.8.11", - "state": "", - "status": "", - "load": "59.67 MiB", - "tokens": [ - "-8726238055665903210", - "-6687985003871487470", - "-5269140854976433359", - "-3989177686905645288", - "-3957362495277148220", - "-2539287458896988944", - "-2460716365393303466", - "-1848370030729221440", - "137707733677015122", - "579467328507000597", - "1698264534774619627", - "1904235159942090722", - "3312208865519999146", - "4035940456270983993", - "4412314431151736777", - "8232565668795426078" - ], - "size": 16, - "hostID": "14092117-4f77-4ec0-8984-c5b860b88a47", - "rack": "rack2", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 726864, - "diskFreeKB": 1001283028, - "memoryUsedKB": 11055676, - "memoryBuffersAndCachedKB": 10691520, - "memoryFreeKB": 35863248, - "memoryTotalKB": 57610444, - "cpuUsage": 1.2 - }, - { - "address": "10.0.8.12", - "state": "", - "status": "", - "load": "93.2 MiB", - "tokens": [ - "-5679481051867296621", - "-4574115287969297989", - "-3444578133211470522", - "-2755931580714972271", - "-2304431590844389550", - "-1961946736975068713", - "-940120277889446704", - "554469308917912318", - "1030447162050118004", - "2745632329542596589", - "4564547712926446283", - "5185613478135944116", - "7280237939830623824", - "7504213835759531710", - "7631994478195429959", - "8139769477321226157" - ], - "size": 16, - "hostID": "e16ada14-39db-462b-9f9e-5b5f6beb8bbd", - "rack": "rack3", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 757540, - "diskFreeKB": 1001252352, - "memoryUsedKB": 11051608, - "memoryBuffersAndCachedKB": 10453856, - "memoryFreeKB": 36104980, - "memoryTotalKB": 57610444, - "cpuUsage": 0.4 - } - ] + }, + "repairSchedules": { + "00000000-0000-0001-0000-000000000000": "ACTIVE" } + }, + "connectionErrors": [ + + ], + "dataCenters": { + "name": "cassandra-westus2-vmss", + "seedNodes": [ + "10.0.8.10", + "10.0.8.11", + "10.0.8.12" + ], + "nodes": [ + { + "address": "10.0.8.10", + "state": "", + "status": "", + "load": "84.61 MiB", + "tokens": [ + "-7785254003841681178", + "-6756518164561476165", + "-4269720020504480060", + "-2697657908817852783", + "-2622387897201218249", + "-2177258200443022948", + "-129203941752875603", + "1738406920822650025", + "2598053056312400240", + "3227346424117996872", + "3644347038875498376", + "4823546474906050895", + "5293156680707616627", + "5485806686603256557", + "6250058817756969464", + "7991328665766267709" + ], + "size": 16, + "hostID": "8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51", + "rack": "rack1", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 749836, + "diskFreeKB": 1001260056, + "memoryUsedKB": 11061032, + "memoryBuffersAndCachedKB": 10817580, + "memoryFreeKB": 35731832, + "memoryTotalKB": 57610444, + "cpuUsage": 0.9 + }, + { + "address": "10.0.8.11", + "state": "", + "status": "", + "load": "59.67 MiB", + "tokens": [ + "-8726238055665903210", + "-6687985003871487470", + "-5269140854976433359", + "-3989177686905645288", + "-3957362495277148220", + "-2539287458896988944", + "-2460716365393303466", + "-1848370030729221440", + "137707733677015122", + "579467328507000597", + "1698264534774619627", + "1904235159942090722", + "3312208865519999146", + "4035940456270983993", + "4412314431151736777", + "8232565668795426078" + ], + "size": 16, + "hostID": "14092117-4f77-4ec0-8984-c5b860b88a47", + "rack": "rack2", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 726864, + "diskFreeKB": 1001283028, + "memoryUsedKB": 11055676, + "memoryBuffersAndCachedKB": 10691520, + "memoryFreeKB": 35863248, + "memoryTotalKB": 57610444, + "cpuUsage": 1.2 + }, + { + "address": "10.0.8.12", + "state": "", + "status": "", + "load": "93.2 MiB", + "tokens": [ + "-5679481051867296621", + "-4574115287969297989", + "-3444578133211470522", + "-2755931580714972271", + "-2304431590844389550", + "-1961946736975068713", + "-940120277889446704", + "554469308917912318", + "1030447162050118004", + "2745632329542596589", + "4564547712926446283", + "5185613478135944116", + "7280237939830623824", + "7504213835759531710", + "7631994478195429959", + "8139769477321226157" + ], + "size": 16, + "hostID": "e16ada14-39db-462b-9f9e-5b5f6beb8bbd", + "rack": "rack3", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 757540, + "diskFreeKB": 1001252352, + "memoryUsedKB": 11051608, + "memoryBuffersAndCachedKB": 10453856, + "memoryFreeKB": 36104980, + "memoryTotalKB": 57610444, + "cpuUsage": 0.4 + } + ] } } - } \ No newline at end of file + } + } +} \ No newline at end of file diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index cd0b1338c5e7..2e359b6a7d2b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -338,6 +338,52 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/command": { + "post": { + "operationId": "CassandraClusters_InvokeCommand", + "description": "Invoke a command like nodetool for cassandra maintenance ", + "x-ms-examples": { + "CosmosDBManagedCassandraRepair": { + "$ref": "./examples/CosmosDBManagedCassandraCommand.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CommandPostBody" + }, + "description": "Specification which command to run where" + } + ], + "responses": { + "200": { + "description": "Success. The command operation will begin as soon as possible." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { "post": { "operationId": "CassandraClusters_FetchNodeStatus", @@ -990,8 +1036,7 @@ "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", "enum": [ "None", - "Cassandra", - "Ldap" + "Cassandra" ], "x-ms-enum": { "name": "AuthenticationMethod", @@ -1305,6 +1350,39 @@ } } }, + "CommandPostBody": { + "description": "Specification of which command to run where", + "type": "object", + "required": [ + "command", + "host" + ], + "properties": { + "command": { + "type": "string", + "description": "The command which should be run" + }, + "parameters": { + "type": "object", + "description": "The parameters for the command to be run", + "additionalProperties": { + "type": "string" + } + }, + "host": { + "type": "string", + "description": "IP address of the cassandra host to run the command on" + }, + "cassandra-stop-start": { + "type": "boolean", + "description": "If true, stops cassandra before executing the command and then start it again" + }, + "readwrite": { + "type": "boolean", + "description": "If true, allows the command to *write* to the cassandra directory, otherwise read-only." + } + } + }, "ClusterNodeStatus": { "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", "type": "object", @@ -1495,48 +1573,10 @@ "availabilityZone": { "type": "boolean", "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" - }, - "authenticationMethodLdapProperties": { - "$ref": "#/definitions/AuthenticationMethodLdapProperties" } } } } - }, - "AuthenticationMethodLdapProperties": { - "type": "object", - "properties": { - "serverHostname": { - "description": "Hostname of the LDAP server.", - "type": "string" - }, - "serverPort": { - "description": "Port of the LDAP server.", - "type": "integer" - }, - "serviceUserDistinguishedName": { - "description": "Distinguished name of the look up user account, who can look up user details on authentication.", - "type": "string" - }, - "serviceUserPassword": { - "description": "Password of the look up user.", - "type": "string" - }, - "searchBaseDistinguishedName": { - "description": "Distinguished name of the object to start the recursive search of users from.", - "type": "string" - }, - "searchFilterTemplate": { - "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", - "type": "string" - }, - "serverCertificates": { - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - } - } } } -} +} \ No newline at end of file From 3590370ff384ded57fbbfe3dcf40a472acad81e9 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 5 Oct 2021 23:38:49 -0700 Subject: [PATCH 29/50] revert to Thu Sep 9 2021 change --- .../2021-07-01-preview/managedCassandra.json | 2406 +++++++---------- 1 file changed, 947 insertions(+), 1459 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json index d93e8d73cf40..c5e8f0555e8d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-07-01-preview/managedCassandra.json @@ -1,1621 +1,1109 @@ { - "swagger": "2.0", - "info": { - "title": "Cosmos DB - Managed Cassandra", - "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", - "version": "2021-10-15-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } + "swagger": "2.0", + "info": { + "title": "Cosmos DB - Managed Cassandra", + "description": "Azure Cosmos DB Database Service Managed Cassandra REST API", + "version": "2021-07-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters": { - "get": { - "operationId": "CassandraClusters_ListBySubscription", - "description": "List all managed Cassandra clusters in this subscription.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterListBySubscription": { - "$ref": "./examples/CosmosDBManagedCassandraClusterListBySubscription.json" - } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListBySubscription", + "description": "List all managed Cassandra clusters in this subscription.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListBySubscription": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra clusters.", - "schema": { - "$ref": "#/definitions/ListClusters" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters": { - "get": { - "operationId": "CassandraClusters_ListByResourceGroup", - "description": "List all managed Cassandra clusters in this resource group.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterListByResourceGroup": { - "$ref": "./examples/CosmosDBManagedCassandraClusterListByResourceGroup.json" + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra clusters.", - "schema": { - "$ref": "#/definitions/ListClusters" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}": { - "get": { - "operationId": "CassandraClusters_Get", - "description": "Get the properties of a managed Cassandra cluster.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterGet": { - "$ref": "./examples/CosmosDBManagedCassandraClusterGet.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The properties of the managed Cassandra cluster were retrieved successfully.", - "schema": { - "$ref": "#/definitions/ClusterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters": { + "get": { + "operationId": "CassandraClusters_ListByResourceGroup", + "description": "List all managed Cassandra clusters in this resource group.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterListByResourceGroup": { + "$ref": "./examples/CosmosDBManagedCassandraClusterListByResourceGroup.json" } }, - "delete": { - "operationId": "CassandraClusters_Delete", - "description": "Deletes a managed Cassandra cluster.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterDelete": { - "$ref": "./examples/CosmosDBManagedCassandraClusterDelete.json" - } + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. The managed Cassandra cluster will be deleted asynchronously." - }, - "204": { - "description": "No such cluster to delete." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - }, - "put": { - "operationId": "CassandraClusters_CreateUpdate", - "description": "Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterCreate": { - "$ref": "./examples/CosmosDBManagedCassandraClusterCreate.json" + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra clusters.", + "schema": { + "$ref": "#/definitions/ListClusters" } }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterResource" - }, - "description": "The properties specifying the desired state of the managed Cassandra cluster." - } - ], - "responses": { - "200": { - "description": "The managed Cassandra cluster is being updated. Poll for provisioningState=Succeeded to find when creation completes.", - "schema": { - "$ref": "#/definitions/ClusterResource" - } - }, - "201": { - "description": "The managed Cassandra cluster is being created. Poll for provisioningState=Succeeded to find when creation completes.", - "schema": { - "$ref": "#/definitions/ClusterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}": { + "get": { + "operationId": "CassandraClusters_Get", + "description": "Get the properties of a managed Cassandra cluster.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterGet": { + "$ref": "./examples/CosmosDBManagedCassandraClusterGet.json" + } }, - "patch": { - "operationId": "CassandraClusters_Update", - "description": "Updates some of the properties of a managed Cassandra cluster.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterPatch": { - "$ref": "./examples/CosmosDBManagedCassandraClusterPatch.json" - } + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterResource" - }, - "description": "Parameters to provide for specifying the managed Cassandra cluster." - } - ], - "responses": { - "202": { - "description": "The managed Cassandra cluster is being updated. Poll the provided operation for completion.", - "schema": { - "$ref": "#/definitions/ClusterResource" - } - }, - "200": { - "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra data center.", - "schema": { - "$ref": "#/definitions/ClusterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { - "post": { - "operationId": "CassandraClusters_RequestRepair", - "description": "Request that repair begin on this cluster as soon as possible.", - "x-ms-examples": { - "CosmosDBManagedCassandraRepair": { - "$ref": "./examples/CosmosDBManagedCassandraRepair.json" + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra cluster were retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClusterResource" } }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RepairPostBody" - }, - "description": "Specification of what keyspaces and tables to run repair on." - } - ], - "responses": { - "200": { - "description": "Success. The repair operation will begin as soon as possible." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/command": { - "post": { - "operationId": "CassandraClusters_InvokeCommand", - "description": "Invoke a command like nodetool for cassandra maintenance ", - "x-ms-examples": { - "CosmosDBManagedCassandraRepair": { - "$ref": "./examples/CosmosDBManagedCassandraCommand.json" - } + "delete": { + "operationId": "CassandraClusters_Delete", + "description": "Deletes a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraClusterDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CommandPostBody" - }, - "description": "Specification which command to run where" - } - ], - "responses": { - "200": { - "description": "Success. The command operation will begin as soon as possible." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { - "post": { - "operationId": "CassandraClusters_FetchNodeStatus", - "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterFetchNodeStatus": { - "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" - } + ], + "responses": { + "202": { + "description": "Accepted. The managed Cassandra cluster will be deleted asynchronously." }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. The node status will be returned asynchronously." - }, - "200": { - "description": "Successfully fetched the status of all nodes in the cluster.", - "schema": { - "$ref": "#/definitions/ClusterNodeStatus" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "204": { + "description": "No such cluster to delete." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { - "get": { - "operationId": "CassandraClusters_ListBackups", - "description": "List the backups of this cluster that are available to restore.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraBackupsList": { - "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" - } + "put": { + "operationId": "CassandraClusters_CreateUpdate", + "description": "Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraClusterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraClusterCreate.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", - "schema": { - "$ref": "#/definitions/ListBackups" - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + "description": "The properties specifying the desired state of the managed Cassandra cluster." } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { - "get": { - "operationId": "CassandraClusters_GetBackup", - "description": "Get the properties of an individual backup of this cluster that is available to restore.", - "x-ms-examples": { - "CosmosDBManagedCassandraBackup": { - "$ref": "./examples/CosmosDBManagedCassandraBackup.json" + ], + "responses": { + "200": { + "description": "The managed Cassandra cluster is being updated. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/backupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "201": { + "description": "The managed Cassandra cluster is being created. Poll for provisioningState=Succeeded to find when creation completes.", + "schema": { + "$ref": "#/definitions/ClusterResource" } - ], - "responses": { - "200": { - "description": "Successfully retrieved the properties of the backup.", - "schema": { - "$ref": "#/definitions/BackupResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { - "get": { - "operationId": "CassandraDataCenters_List", - "description": "List all data centers in a particular managed Cassandra cluster.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterList": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterList.json" - } + "patch": { + "operationId": "CassandraClusters_Update", + "description": "Updates some of the properties of a managed Cassandra cluster.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterPatch": { + "$ref": "./examples/CosmosDBManagedCassandraClusterPatch.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of managed Cassandra data centers.", - "schema": { - "$ref": "#/definitions/ListDataCenters" - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterResource" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + "description": "Parameters to provide for specifying the managed Cassandra cluster." } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}": { - "get": { - "operationId": "CassandraDataCenters_Get", - "description": "Get the properties of a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterGet": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterGet.json" + ], + "responses": { + "202": { + "description": "The managed Cassandra cluster is being updated. Poll the provided operation for completion.", + "schema": { + "$ref": "#/definitions/ClusterResource" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra data center.", + "schema": { + "$ref": "#/definitions/ClusterResource" } - ], - "responses": { - "200": { - "description": "The properties of the managed Cassandra data center were retrieved successfully.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { + "post": { + "operationId": "CassandraClusters_RequestRepair", + "description": "Request that repair begin on this cluster as soon as possible.", + "x-ms-examples": { + "CosmosDBManagedCassandraRepair": { + "$ref": "./examples/CosmosDBManagedCassandraRepair.json" + } }, - "delete": { - "operationId": "CassandraDataCenters_Delete", - "description": "Delete a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterDelete": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterDelete.json" - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. Deletion will complete asynchronously." - }, - "204": { - "description": "Cassandra cluster with the specified name does not exist." + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RepairPostBody" }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + "description": "Specification of what keyspaces and tables to run repair on." } - }, - "put": { - "operationId": "CassandraDataCenters_CreateUpdate", - "description": "Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterCreate": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterCreate.json" - } + ], + "responses": { + "200": { + "description": "Success. The repair operation will begin as soon as possible." }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DataCenterResource" - }, - "description": "Parameters specifying the managed Cassandra data center." - } - ], - "responses": { - "201": { - "description": "Accepted. The data center will be created asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "200": { - "description": "Accepted. The data center will be updated asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { + "post": { + "operationId": "CassandraClusters_FetchNodeStatus", + "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "CosmosDBManagedCassandraClusterFetchNodeStatus": { + "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" + } }, - "patch": { - "operationId": "CassandraDataCenters_Update", - "description": "Update some of the properties of a managed Cassandra data center.", - "x-ms-examples": { - "CosmosDBManagedCassandraDataCenterUpdate": { - "$ref": "./examples/CosmosDBManagedCassandraDataCenterPatch.json" - } + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/dataCenterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DataCenterResource" - }, - "description": "Parameters to provide for specifying the managed Cassandra data center." - } - ], - "responses": { - "202": { - "description": "Accepted. Update will proceed asynchronously.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "200": { - "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra cluster, such as editing the tags.", - "schema": { - "$ref": "#/definitions/DataCenterResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate": { - "post": { - "operationId": "CassandraCluster_Deallocate", - "description": "Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterDeallocate": { - "$ref": "./examples/CosmosDBManagedCassandraClusterDeallocate.json" - } + ], + "responses": { + "202": { + "description": "Accepted. The node status will be returned asynchronously." }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "200": { + "description": "Successfully fetched the status of all nodes in the cluster.", + "schema": { + "$ref": "#/definitions/ClusterNodeStatus" } - ], - "responses": { - "202": { - "description": "Enqueued Operation to deallocate the cluster." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { - "post": { - "operationId": "CassandraCluster_Start", - "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", - "x-ms-examples": { - "CosmosDBManagedCassandraClusterStart": { - "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { + "get": { + "operationId": "CassandraClusters_ListBackups", + "description": "List the backups of this cluster that are available to restore.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraBackupsList": { + "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Enqueued Operation to start the cluster." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/status": { - "get": { - "operationId": "CassandraStatus_Get", - "description": "Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraStatus": { - "$ref": "./examples/CosmosDBManagedCassandraStatus.json" + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", + "schema": { + "$ref": "#/definitions/ListBackups" } }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully fetched the usage statistics of all nodes in the cluster.", - "schema": { - "$ref": "#/definitions/CassandraClusterPublicStatus" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } } }, - "parameters": { - "clusterNameParameter": { - "name": "clusterName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Managed Cassandra cluster name.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" - }, - "dataCenterNameParameter": { - "name": "dataCenterName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Data center name in a managed Cassandra cluster.", - "minLength": 1, - "maxLength": 100, - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" - }, - "backupNameParameter": { - "name": "backupId", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "Id of a restorable backup of a Cassandra cluster.", - "minLength": 1, - "maxLength": 15, - "pattern": "^[0-9]+$" - } - }, - "definitions": { - "ListClusters": { - "description": "List of managed Cassandra clusters.", - "readOnly": true, - "type": "object", - "properties": { - "value": { - "description": "Container for the array of clusters.", - "type": "array", - "items": { - "$ref": "#/definitions/ClusterResource" - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { + "get": { + "operationId": "CassandraClusters_GetBackup", + "description": "Get the properties of an individual backup of this cluster that is available to restore.", + "x-ms-examples": { + "CosmosDBManagedCassandraBackup": { + "$ref": "./examples/CosmosDBManagedCassandraBackup.json" } - } - }, - "ManagedCassandraARMResourceProperties": { - "type": "object", - "description": "The core properties of ARM resources.", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The unique resource identifier of the ARM resource." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the ARM resource." + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "type": { - "readOnly": true, - "type": "string", - "description": "The type of Azure resource." + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, - "location": { - "type": "string", - "description": "The location of the resource group to which the resource belongs." + { + "$ref": "#/parameters/clusterNameParameter" }, - "tags": { - "$ref": "cosmos-db.json#/definitions/Tags" + { + "$ref": "#/parameters/backupNameParameter" }, - "identity": { - "$ref": "#/definitions/ManagedCassandraManagedServiceIdentity" - } - }, - "x-ms-azure-resource": true - }, - "ManagedCassandraManagedServiceIdentity": { - "description": "Identity for the resource.", - "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The object id of the identity resource." - }, - "tenantId": { - "readOnly": true, - "type": "string", - "description": "The tenant id of the resource." - }, - "type": { - "type": "string", - "description": "The type of the resource.", - "enum": [ - "SystemAssigned", - "None" - ], - "x-ms-enum": { - "name": "ManagedCassandraResourceIdentityType", - "modelAsString": true - } - } - } - }, - "ManagedCassandraProvisioningState": { - "description": "The status of the resource at the time the operation was called.", - "type": "string", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Canceled" - ], - "x-ms-enum": { - "name": "ManagedCassandraProvisioningState", - "modelAsString": true - } - }, - "ClusterResource": { - "description": "Representation of a managed Cassandra cluster.", - "type": "object", - "allOf": [ { - "$ref": "#/definitions/ManagedCassandraARMResourceProperties" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], - "properties": { - "properties": { - "type": "object", - "description": "Properties of a managed Cassandra cluster.", - "properties": { - "provisioningState": { - "$ref": "#/definitions/ManagedCassandraProvisioningState" - }, - "restoreFromBackupId": { - "type": "string", - "x-ms-mutability": [ - "create" - ], - "description": "To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup." - }, - "delegatedManagementSubnetId": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'" - }, - "cassandraVersion": { - "type": "string", - "description": "Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version." - }, - "clusterNameOverride": { - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], - "description": "If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property." - }, - "authenticationMethod": { - "type": "string", - "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", - "enum": [ - "None", - "Cassandra", - "Ldap" - ], - "x-ms-enum": { - "name": "AuthenticationMethod", - "modelAsString": true - } - }, - "initialCassandraAdminPassword": { - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true, - "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", - "type": "string" - }, - "prometheusEndpoint": { - "$ref": "#/definitions/SeedNode", - "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." - }, - "repairEnabled": { - "type": "boolean", - "description": "Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs." - }, - "clientCertificates": { - "description": "List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "externalGossipCertificates": { - "description": "List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "gossipCertificates": { - "readOnly": true, - "x-ms-mutability": [ - "read" - ], - "description": "List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.", - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - }, - "externalSeedNodes": { - "type": "array", - "description": "List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.", - "items": { - "$ref": "#/definitions/SeedNode" - } - }, - "seedNodes": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SeedNode" - }, - "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." - }, - "hoursBetweenBackups": { - "type": "integer", - "format": "int32", - "description": "Number of hours to wait between taking a backup of the cluster." - }, - "deallocated": { - "type": "boolean", - "description": "Whether the cluster and associated data centers has been deallocated." - }, - "connectivity": { - "type": "string", - "description": "The connectivity method to connect to the Cassandra data centers. Defaults to 'VNetInjection'" - } + "responses": { + "200": { + "description": "Successfully retrieved the properties of the backup.", + "schema": { + "$ref": "#/definitions/BackupResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } - }, - "ManagedCassandraNodeStatus": { - "type": "string", - "description": "Indicates whether the node is functioning or not.", - "enum": [ - "Up", - "Down" - ], - "x-ms-enum": { - "name": "NodeStatus", - "modelAsString": true - } - }, - "ManagedCassandraNodeState": { - "type": "string", - "description": "The state of the node in Cassandra ring.", - "enum": [ - "Normal", - "Leaving", - "Joining", - "Moving", - "Stopped" - ], - "x-ms-enum": { - "name": "NodeState", - "modelAsString": true - } - }, - "CassandraClusterPublicStatus": { - "type": "object", - "allOf": [ + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { + "get": { + "operationId": "CassandraDataCenters_List", + "description": "List all data centers in a particular managed Cassandra cluster.", + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterList": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, { - "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], - "properties": { - "properties": { - "type": "object", - "description": "Properties of a managed Cassandra cluster public status.", - "properties": { - "ETag": { - "type": "string" - }, - "cassandraClusterReaperStatus": { - "$ref": "#/definitions/ManagedCassandraReaperStatus" - }, - "connectionErrors": { - "type": "array", - "description": "List relevant information about any connection errors to the Datacenters.", - "items": { - "$ref": "#/definitions/ConnectionError" - } - }, - "dataCenters": { - "type": "array", - "description": "List of the status of each datacenter in this cluster.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This Datacenter's name." - }, - "seedNodes": { - "type": "array", - "description": "A list of all seed nodes in the cluster, managed and unmanaged.", - "items": { - "type": "string" - } - }, - "nodes": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "type": "string", - "description": "The node's IP address." - }, - "state": { - "$ref": "#/definitions/ManagedCassandraNodeState" - }, - "status": { - "type": "string" - }, - "load": { - "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted." - }, - "tokens": { - "type": "array", - "description": "List of tokens this node covers.", - "items": { - "type": "string" - } - }, - "size": { - "type": "integer" - }, - "hostId": { - "description": "The network ID of the node.", - "type": "string" - }, - "rack": { - "description": "The rack this node is part of.", - "type": "string" - }, - "timestamp": { - "description": "The timestamp at which that snapshot of these usage statistics were taken.", - "type": "string" - }, - "diskUsedKB": { - "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", - "type": "integer", - "format": "int64" - }, - "diskFreeKB": { - "description": "The amount of disk free, in kB, of the directory /var/lib/cassandra.", - "type": "integer", - "format": "int64" - }, - "memoryUsedKB": { - "description": "Used memory (calculated as total - free - buffers - cache), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryBuffersAndCachedKB": { - "description": "Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryFreeKB": { - "description": "Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryTotalKB": { - "description": "Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "cpuUsage": { - "description": "A float representing the current system-wide CPU utilization as a percentage.", - "type": "integer", - "format": "double" - } - } - } - } - } - } - } + "responses": { + "200": { + "description": "Successfully retrieved the list of managed Cassandra data centers.", + "schema": { + "$ref": "#/definitions/ListDataCenters" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } - }, - "ManagedCassandraReaperStatus": { - "type": "object", - "properties": { - "healthy": { - "type": "string" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}": { + "get": { + "operationId": "CassandraDataCenters_Get", + "description": "Get the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterGet": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "repairRunIds": { - "type": "object", - "additionalProperties": { - "type": "string" + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The properties of the managed Cassandra data center were retrieved successfully.", + "schema": { + "$ref": "#/definitions/DataCenterResource" } }, - "repairSchedules": { - "type": "object", - "additionalProperties": { - "type": "string" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "ConnectionError": { - "type": "object", - "properties": { - "connectionState": { - "description": "The kind of connection error that occurred.", - "type": "string", - "enum": [ - "Unknown", - "OK", - "OperatorToDataCenterNetworkError", - "DatacenterToDatacenterNetworkError", - "InternalOperatorToDataCenterCertificateError", - "InternalError" - ], - "x-ms-enum": { - "name": "ConnectionState", - "modelAsString": true - } + "delete": { + "operationId": "CassandraDataCenters_Delete", + "description": "Delete a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterDelete": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterDelete.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "iPFrom": { - "description": "The IP of host that originated the failed connection.", - "type": "string" + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, - "iPTo": { - "description": "The IP that the connection attempted to reach.", - "type": "string" + { + "$ref": "#/parameters/clusterNameParameter" }, - "port": { - "description": "The TCP port the connection was attempted on.", - "type": "integer", - "format": "int32" + { + "$ref": "#/parameters/dataCenterNameParameter" }, - "exception": { - "description": "Detailed error message about the failed connection.", - "type": "string" + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } - } - }, - "RepairPostBody": { - "description": "Specification of the keyspaces and tables to run repair on.", - "type": "object", - "required": [ - "keyspace" ], - "properties": { - "keyspace": { - "type": "string", - "description": "The name of the keyspace that repair should be run on." + "responses": { + "202": { + "description": "Accepted. Deletion will complete asynchronously." }, - "tables": { - "type": "array", - "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", - "items": { - "type": "string", - "description": "Name of a table in the Cassandra keyspace." + "204": { + "description": "Cassandra cluster with the specified name does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "CommandPostBody": { - "description": "Specification of which command to run where", - "type": "object", - "required": [ - "command", "host" - ], - "properties": { - "command": { - "type": "string", - "description": "The command which should be run" + "put": { + "operationId": "CassandraDataCenters_CreateUpdate", + "description": "Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterCreate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterCreate.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, - "parameters": { - "type": "object", - "description": "The parameters for the command to be run", - "additionalProperties": { - "type": "string" - } + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, - "host": { - "type": "string", - "description": "IP address of the cassandra host to run the command on" + { + "$ref": "#/parameters/clusterNameParameter" }, - "cassandra-stop-start": { - "type": "boolean", - "description": "If true, stops cassandra before executing the command and then start it again" + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, - "readwrite": { - "type": "boolean", - "description": "If true, allows the command to *write* to the cassandra directory, otherwise read-only." + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters specifying the managed Cassandra data center." } - } - }, - "ClusterNodeStatus": { - "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", - "type": "object", - "properties": { - "nodes": { - "type": "array", - "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", - "items": { - "type": "object", - "properties": { - "datacenter": { - "type": "string", - "description": "The Cassandra data center this node resides in." - }, - "status": { - "$ref": "#/definitions/ManagedCassandraNodeStatus" - }, - "state": { - "$ref": "#/definitions/ManagedCassandraNodeState" - }, - "address": { - "type": "string", - "description": "The node's URL." - }, - "load": { - "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." - }, - "tokens": { - "type": "array", - "description": "List of tokens.", - "items": { - "type": "string", - "description": "Token of this node." - } - }, - "owns": { - "type": "number", - "format": "double", - "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." - }, - "hostId": { - "type": "string", - "description": "The network ID of the node." - }, - "rack": { - "type": "string", - "description": "The rack this node is part of." - } - } + ], + "responses": { + "201": { + "description": "Accepted. The data center will be created asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "200": { + "description": "Accepted. The data center will be updated asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" } } } }, - "BackupResource": { - "description": "A restorable backup of a Cassandra cluster.", - "type": "object", - "allOf": [ + "patch": { + "operationId": "CassandraDataCenters_Update", + "description": "Update some of the properties of a managed Cassandra data center.", + "x-ms-examples": { + "CosmosDBManagedCassandraDataCenterUpdate": { + "$ref": "./examples/CosmosDBManagedCassandraDataCenterPatch.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/clusterNameParameter" + }, + { + "$ref": "#/parameters/dataCenterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataCenterResource" + }, + "description": "Parameters to provide for specifying the managed Cassandra data center." } ], - "properties": { - "properties": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time", - "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" - } - } - } - } - }, - "ListBackups": { - "description": "List of restorable backups for a Cassandra cluster.", - "type": "object", - "properties": { - "value": { - "description": "Container for array of backups.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/BackupResource" + "responses": { + "202": { + "description": "Accepted. Update will proceed asynchronously.", + "schema": { + "$ref": "#/definitions/DataCenterResource" } - } - } - }, - "ListDataCenters": { - "description": "List of managed Cassandra data centers and their properties.", - "type": "object", - "properties": { - "value": { - "description": "Container for array of data centers.", - "type": "array", - "readOnly": true, - "items": { + }, + "200": { + "description": "Completed synchronously. This will only happen if the fields changed by patch require no changes to the actual Cassandra cluster, such as editing the tags.", + "schema": { "$ref": "#/definitions/DataCenterResource" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "cosmos-db.json#/definitions/CloudError" + } } } - }, - "SeedNode": { - "type": "object", - "properties": { - "ipAddress": { - "description": "IP address of this seed node.", - "type": "string" + } + } + }, + "parameters": { + "clusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Managed Cassandra cluster name.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "dataCenterNameParameter": { + "name": "dataCenterName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Data center name in a managed Cassandra cluster.", + "minLength": 1, + "maxLength": 100, + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$" + }, + "backupNameParameter": { + "name": "backupId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Id of a restorable backup of a Cassandra cluster.", + "minLength": 1, + "maxLength": 15, + "pattern": "^[0-9]+$" + } + }, + "definitions": { + "ListClusters": { + "description": "List of managed Cassandra clusters.", + "readOnly": true, + "type": "object", + "properties": { + "value": { + "description": "Container for the array of clusters.", + "type": "array", + "items": { + "$ref": "#/definitions/ClusterResource" } } - }, - "Certificate": { - "type": "object", + } + }, + "ManagedCassandraProvisioningState": { + "description": "The status of the resource at the time the operation was called.", + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ManagedCassandraProvisioningState", + "modelAsString": true + } + }, + "ClusterResource": { + "description": "Representation of a managed Cassandra cluster.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" + } + ], + "properties": { "properties": { - "pem": { - "description": "PEM formatted public key.", - "type": "string" + "type": "object", + "description": "Properties of a managed Cassandra cluster.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" + }, + "restoreFromBackupId": { + "type": "string", + "x-ms-mutability": [ + "create" + ], + "description": "To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup." + }, + "delegatedManagementSubnetId": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'" + }, + "cassandraVersion": { + "type": "string", + "description": "Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version." + }, + "clusterNameOverride": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property." + }, + "authenticationMethod": { + "type": "string", + "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", + "enum": [ + "None", + "Cassandra" + ], + "x-ms-enum": { + "name": "AuthenticationMethod", + "modelAsString": true + } + }, + "initialCassandraAdminPassword": { + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true, + "description": "Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.", + "type": "string" + }, + "hoursBetweenBackups": { + "type": "integer", + "format": "int32", + "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." + }, + "prometheusEndpoint": { + "$ref": "#/definitions/SeedNode", + "description": "Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached." + }, + "repairEnabled": { + "type": "boolean", + "description": "Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs." + }, + "clientCertificates": { + "description": "List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalGossipCertificates": { + "description": "List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "gossipCertificates": { + "readOnly": true, + "x-ms-mutability": [ + "read" + ], + "description": "List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.", + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + }, + "externalSeedNodes": { + "type": "array", + "description": "List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.", + "items": { + "$ref": "#/definitions/SeedNode" + } + }, + "seedNodes": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SeedNode" + }, + "description": "List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes." + } } } - }, - "DataCenterResource": { - "description": "A managed Cassandra data center.", - "type": "object", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + }, + "RepairPostBody": { + "description": "Specification of the keyspaces and tables to run repair on.", + "type": "object", + "required": [ + "keyspace" + ], + "properties": { + "keyspace": { + "type": "string", + "description": "The name of the keyspace that repair should be run on." + }, + "tables": { + "type": "array", + "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", + "items": { + "type": "string", + "description": "Name of a table in the Cassandra keyspace." } - ], - "properties": { - "properties": { - "description": "Properties of a managed Cassandra data center.", + } + } + }, + "ClusterNodeStatus": { + "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", + "type": "object", + "properties": { + "nodes": { + "type": "array", + "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", + "items": { "type": "object", "properties": { - "provisioningState": { - "$ref": "#/definitions/ManagedCassandraProvisioningState" + "datacenter": { + "type": "string", + "description": "The Cassandra data center this node resides in." }, - "dataCenterLocation": { + "status": { "type": "string", - "x-ms-mutability": [ - "create", - "read" + "description": "Indicates whether the node is functioning or not.", + "enum": [ + "Up", + "Down" ], - "description": "The region this data center should be created in." + "x-ms-enum": { + "name": "NodeStatus", + "modelAsString": true + } }, - "delegatedSubnetId": { + "state": { "type": "string", - "x-ms-mutability": [ - "create", - "read" + "description": "The state of the node in relation to the cluster.", + "enum": [ + "Normal", + "Leaving", + "Joining", + "Moving", + "Stopped" ], - "description": "Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'." + "x-ms-enum": { + "name": "NodeState", + "modelAsString": true + } + }, + "address": { + "type": "string", + "description": "The node's URL." }, - "nodeCount": { - "type": "integer", - "format": "int32", - "description": "The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster." + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." }, - "seedNodes": { - "readOnly": true, + "tokens": { "type": "array", - "description": "IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.", + "description": "List of tokens.", "items": { - "$ref": "#/definitions/SeedNode" + "type": "string", + "description": "Token of this node." } }, - "base64EncodedCassandraYamlFragment": { - "type": "string", - "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." - }, - "managedDiskCustomerKeyUri": { - "type": "string", - "description": "Indicates the Key Uri of the customer key to use for encryption of managed disks." + "owns": { + "type": "number", + "format": "double", + "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." }, - "sku": { + "hostId": { "type": "string", - "description": "Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2" + "description": "The network ID of the node." }, - "diskSku": { + "rack": { "type": "string", - "description": "Disk SKU used for data centers. Default value is P30." - }, - "diskCapacity": { - "type": "integer", - "description": "Number of disk used for data centers. Default value is 4." - }, - "availabilityZone": { - "type": "boolean", - "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" - }, - "authenticationMethodLdapProperties": { - "$ref": "#/definitions/AuthenticationMethodLdapProperties" + "description": "The rack this node is part of." } } } } - }, - "AuthenticationMethodLdapProperties": { - "type" : "object", + } + }, + "BackupResource": { + "description": "A restorable backup of a Cassandra cluster.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "properties": { + "properties": { + "type": "object", + "properties": { + "timestamp": { + "type": "string", + "format": "date-time", + "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" + } + } + } + } + }, + "ListBackups": { + "description": "List of restorable backups for a Cassandra cluster.", + "type": "object", + "properties": { + "value": { + "description": "Container for array of backups.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BackupResource" + } + } + } + }, + "ListDataCenters": { + "description": "List of managed Cassandra data centers and their properties.", + "type": "object", + "properties": { + "value": { + "description": "Container for array of data centers.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/DataCenterResource" + } + } + } + }, + "SeedNode": { + "type": "object", + "properties": { + "ipAddress": { + "description": "IP address of this seed node.", + "type": "string" + } + } + }, + "Certificate": { + "type": "object", + "properties": { + "pem": { + "description": "PEM formatted public key.", + "type": "string" + } + } + }, + "DataCenterResource": { + "description": "A managed Cassandra data center.", + "type": "object", + "allOf": [ + { + "$ref": "cosmos-db.json#/definitions/ARMProxyResource" + } + ], + "properties": { "properties": { - "serverHostname": { - "description": "Hostname of the LDAP server.", - "type": "string" - }, - "serverPort": { - "description": "Port of the LDAP server.", - "type": "integer", - "nullable": true - }, - "serviceUserDistinguishedName": { - "description": "Distinguished name of the look up user account, who can look up user details on authentication.", - "type": "string" - }, - "serviceUserPassword": { - "description": "Password of the look up user.", - "type": "string" - }, - "searchBaseDistinguishedName": { - "description": "Distinguished name of the object to start the recursive search of users from.", - "type": "string" - }, - "searchFilterTemplate": { - "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", - "type": "string" - }, - "serverCertificates": { - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" + "description": "Properties of a managed Cassandra data center.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ManagedCassandraProvisioningState" + }, + "dataCenterLocation": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "The region this data center should be created in." + }, + "delegatedSubnetId": { + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], + "description": "Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'." + }, + "nodeCount": { + "type": "integer", + "format": "int32", + "description": "The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster." + }, + "seedNodes": { + "readOnly": true, + "type": "array", + "description": "IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.", + "items": { + "$ref": "#/definitions/SeedNode" + } + }, + "base64EncodedCassandraYamlFragment": { + "type": "string", + "description": "A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed." } } } } } } - \ No newline at end of file +} From ead2d47bb9f449a4daff1b36e3510894059d24e7 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Wed, 6 Oct 2021 00:22:48 -0700 Subject: [PATCH 30/50] fix linter errors in swagger --- .../stable/2021-10-15/managedCassandra.json | 219 +++++++++--------- 1 file changed, 109 insertions(+), 110 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 2e359b6a7d2b..c7f245800d6f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -343,7 +343,7 @@ "operationId": "CassandraClusters_InvokeCommand", "description": "Invoke a command like nodetool for cassandra maintenance ", "x-ms-examples": { - "CosmosDBManagedCassandraRepair": { + "CosmosDBManagedCassandraCommand": { "$ref": "./examples/CosmosDBManagedCassandraCommand.json" } }, @@ -757,6 +757,7 @@ "$ref": "./examples/CosmosDBManagedCassandraClusterDeallocate.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" @@ -793,6 +794,7 @@ "$ref": "./examples/CosmosDBManagedCassandraClusterStart.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" @@ -947,6 +949,7 @@ }, "ManagedCassandraManagedServiceIdentity": { "description": "Identity for the resource.", + "type": "object", "properties": { "principalId": { "readOnly": true, @@ -1145,123 +1148,119 @@ }, "CassandraClusterPublicStatus": { "type": "object", + "description": "Properties of a managed Cassandra cluster public status.", "allOf": [ { "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" } ], "properties": { - "properties": { - "type": "object", - "description": "Properties of a managed Cassandra cluster public status.", - "properties": { - "ETag": { - "type": "string" - }, - "cassandraClusterReaperStatus": { - "$ref": "#/definitions/ManagedCassandraReaperStatus" - }, - "connectionErrors": { - "type": "array", - "description": "List relevant information about any connection errors to the Datacenters.", - "items": { - "$ref": "#/definitions/ConnectionError" - } - }, - "dataCenters": { - "type": "array", - "description": "List of the status of each datacenter in this cluster.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "This Datacenter's name." - }, - "seedNodes": { - "type": "array", - "description": "A list of all seed nodes in the cluster, managed and unmanaged.", - "items": { + "ETag": { + "type": "string" + }, + "cassandraClusterReaperStatus": { + "$ref": "#/definitions/ManagedCassandraReaperStatus" + }, + "connectionErrors": { + "type": "array", + "description": "List relevant information about any connection errors to the Datacenters.", + "items": { + "$ref": "#/definitions/ConnectionError" + } + }, + "dataCenters": { + "type": "array", + "description": "List of the status of each datacenter in this cluster.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This Datacenter's name." + }, + "seedNodes": { + "type": "array", + "description": "A list of all seed nodes in the cluster, managed and unmanaged.", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The node's IP address." + }, + "state": { + "$ref": "#/definitions/ManagedCassandraNodeState" + }, + "status": { "type": "string" - } - }, - "nodes": { - "type": "array", - "items": { - "type": "object", - "properties": { - "address": { - "type": "string", - "description": "The node's IP address." - }, - "state": { - "$ref": "#/definitions/ManagedCassandraNodeState" - }, - "status": { - "type": "string" - }, - "load": { - "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted." - }, - "tokens": { - "type": "array", - "description": "List of tokens this node covers.", - "items": { - "type": "string" - } - }, - "size": { - "type": "integer" - }, - "hostId": { - "description": "The network ID of the node.", - "type": "string" - }, - "rack": { - "description": "The rack this node is part of.", - "type": "string" - }, - "timestamp": { - "description": "The timestamp at which that snapshot of these usage statistics were taken.", - "type": "string" - }, - "diskUsedKB": { - "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", - "type": "integer", - "format": "int64" - }, - "diskFreeKB": { - "description": "The amount of disk free, in kB, of the directory /var/lib/cassandra.", - "type": "integer", - "format": "int64" - }, - "memoryUsedKB": { - "description": "Used memory (calculated as total - free - buffers - cache), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryBuffersAndCachedKB": { - "description": "Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryFreeKB": { - "description": "Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "memoryTotalKB": { - "description": "Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.", - "type": "integer", - "format": "int64" - }, - "cpuUsage": { - "description": "A float representing the current system-wide CPU utilization as a percentage.", - "type": "integer", - "format": "double" - } + }, + "load": { + "type": "string", + "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cells or tombstones) is counted." + }, + "tokens": { + "type": "array", + "description": "List of tokens this node covers.", + "items": { + "type": "string" } + }, + "size": { + "type": "integer", + "format": "int32" + }, + "hostId": { + "description": "The network ID of the node.", + "type": "string" + }, + "rack": { + "description": "The rack this node is part of.", + "type": "string" + }, + "timestamp": { + "description": "The timestamp at which that snapshot of these usage statistics were taken.", + "type": "string" + }, + "diskUsedKB": { + "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "diskFreeKB": { + "description": "The amount of disk free, in kB, of the directory /var/lib/cassandra.", + "type": "integer", + "format": "int64" + }, + "memoryUsedKB": { + "description": "Used memory (calculated as total - free - buffers - cache), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryBuffersAndCachedKB": { + "description": "Memory used by kernel buffers (Buffers in /proc/meminfo) and page cache and slabs (Cached and SReclaimable in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryFreeKB": { + "description": "Unused memory (MemFree and SwapFree in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "memoryTotalKB": { + "description": "Total installed memory (MemTotal and SwapTotal in /proc/meminfo), in kB.", + "type": "integer", + "format": "int64" + }, + "cpuUsage": { + "description": "A float representing the current system-wide CPU utilization as a percentage.", + "type": "number", + "format": "double" } } } From 75f3baba9515372108b14295d54c0d8935665458 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Wed, 6 Oct 2021 14:52:11 -0700 Subject: [PATCH 31/50] fix validation errors --- ...osDBManagedCassandraClusterDeallocate.json | 1 - .../CosmosDBManagedCassandraClusterStart.json | 1 - .../CosmosDBManagedCassandraCommand.json | 1 - .../stable/2021-10-15/managedCassandra.json | 27 ++++++++++++------- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json index 57254e97ebda..ccde8b2f60de 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json @@ -6,7 +6,6 @@ "clusterName": "cassandra-prod" }, "responses": { - "202": {}, "200": {} } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json index 1a49c97589bd..bb1d07a2c038 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json @@ -6,7 +6,6 @@ "clusterName": "cassandra-prod" }, "responses": { - "202": {}, "200": {} } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json index fe1082588432..20290f485b6b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json @@ -10,7 +10,6 @@ } }, "responses": { - "202": {}, "200": { "body": { "commandOutput": "Datacenter: datacenter1\n=======================\n" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index c7f245800d6f..896b506f7ae3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -347,7 +347,6 @@ "$ref": "./examples/CosmosDBManagedCassandraCommand.json" } }, - "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" @@ -373,7 +372,10 @@ ], "responses": { "200": { - "description": "Success. The command operation will begin as soon as possible." + "description": "Success. The command operation will begin as soon as possible.", + "schema": { + "$ref": "#/definitions/CommandOutput" + } }, "default": { "description": "Error response describing why the operation failed.", @@ -773,8 +775,8 @@ } ], "responses": { - "202": { - "description": "Enqueued Operation to deallocate the cluster." + "200": { + "description": "Cluster deallocated." }, "default": { "description": "Error response describing why the operation failed.", @@ -1149,13 +1151,8 @@ "CassandraClusterPublicStatus": { "type": "object", "description": "Properties of a managed Cassandra cluster public status.", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMResourceProperties" - } - ], "properties": { - "ETag": { + "eTag": { "type": "string" }, "cassandraClusterReaperStatus": { @@ -1382,6 +1379,16 @@ } } }, + "CommandOutput": { + "description": "Response of /command api", + "type": "object", + "properties": { + "commandOutput" : { + "type": "string", + "description": "Output of the command." + } + } + }, "ClusterNodeStatus": { "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", "type": "object", From 8dec5609be35dc71125eb5344783ef383bb9f115 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Wed, 6 Oct 2021 22:51:01 -0700 Subject: [PATCH 32/50] validation fixes --- .../CosmosDBManagedCassandraStatus.json | 232 +++++++++--------- .../stable/2021-10-15/managedCassandra.json | 4 +- 2 files changed, 119 insertions(+), 117 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json index 8d0647f20459..9752ef9d5659 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json @@ -21,121 +21,123 @@ "connectionErrors": [ ], - "dataCenters": { - "name": "cassandra-westus2-vmss", - "seedNodes": [ - "10.0.8.10", - "10.0.8.11", - "10.0.8.12" - ], - "nodes": [ - { - "address": "10.0.8.10", - "state": "", - "status": "", - "load": "84.61 MiB", - "tokens": [ - "-7785254003841681178", - "-6756518164561476165", - "-4269720020504480060", - "-2697657908817852783", - "-2622387897201218249", - "-2177258200443022948", - "-129203941752875603", - "1738406920822650025", - "2598053056312400240", - "3227346424117996872", - "3644347038875498376", - "4823546474906050895", - "5293156680707616627", - "5485806686603256557", - "6250058817756969464", - "7991328665766267709" - ], - "size": 16, - "hostID": "8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51", - "rack": "rack1", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 749836, - "diskFreeKB": 1001260056, - "memoryUsedKB": 11061032, - "memoryBuffersAndCachedKB": 10817580, - "memoryFreeKB": 35731832, - "memoryTotalKB": 57610444, - "cpuUsage": 0.9 - }, - { - "address": "10.0.8.11", - "state": "", - "status": "", - "load": "59.67 MiB", - "tokens": [ - "-8726238055665903210", - "-6687985003871487470", - "-5269140854976433359", - "-3989177686905645288", - "-3957362495277148220", - "-2539287458896988944", - "-2460716365393303466", - "-1848370030729221440", - "137707733677015122", - "579467328507000597", - "1698264534774619627", - "1904235159942090722", - "3312208865519999146", - "4035940456270983993", - "4412314431151736777", - "8232565668795426078" - ], - "size": 16, - "hostID": "14092117-4f77-4ec0-8984-c5b860b88a47", - "rack": "rack2", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 726864, - "diskFreeKB": 1001283028, - "memoryUsedKB": 11055676, - "memoryBuffersAndCachedKB": 10691520, - "memoryFreeKB": 35863248, - "memoryTotalKB": 57610444, - "cpuUsage": 1.2 - }, - { - "address": "10.0.8.12", - "state": "", - "status": "", - "load": "93.2 MiB", - "tokens": [ - "-5679481051867296621", - "-4574115287969297989", - "-3444578133211470522", - "-2755931580714972271", - "-2304431590844389550", - "-1961946736975068713", - "-940120277889446704", - "554469308917912318", - "1030447162050118004", - "2745632329542596589", - "4564547712926446283", - "5185613478135944116", - "7280237939830623824", - "7504213835759531710", - "7631994478195429959", - "8139769477321226157" - ], - "size": 16, - "hostID": "e16ada14-39db-462b-9f9e-5b5f6beb8bbd", - "rack": "rack3", - "timestamp": "10/05/2021, 14:35:20.028", - "diskUsedKB": 757540, - "diskFreeKB": 1001252352, - "memoryUsedKB": 11051608, - "memoryBuffersAndCachedKB": 10453856, - "memoryFreeKB": 36104980, - "memoryTotalKB": 57610444, - "cpuUsage": 0.4 - } - ] - } + "dataCenters": [ + { + "name": "cassandra-westus2-vmss", + "seedNodes": [ + "10.0.8.10", + "10.0.8.11", + "10.0.8.12" + ], + "nodes": [ + { + "address": "10.0.8.10", + "state": "", + "status": "", + "load": "84.61 MiB", + "tokens": [ + "-7785254003841681178", + "-6756518164561476165", + "-4269720020504480060", + "-2697657908817852783", + "-2622387897201218249", + "-2177258200443022948", + "-129203941752875603", + "1738406920822650025", + "2598053056312400240", + "3227346424117996872", + "3644347038875498376", + "4823546474906050895", + "5293156680707616627", + "5485806686603256557", + "6250058817756969464", + "7991328665766267709" + ], + "size": 16, + "hostID": "8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51", + "rack": "rack1", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 749836, + "diskFreeKB": 1001260056, + "memoryUsedKB": 11061032, + "memoryBuffersAndCachedKB": 10817580, + "memoryFreeKB": 35731832, + "memoryTotalKB": 57610444, + "cpuUsage": 0.9 + }, + { + "address": "10.0.8.11", + "state": "", + "status": "", + "load": "59.67 MiB", + "tokens": [ + "-8726238055665903210", + "-6687985003871487470", + "-5269140854976433359", + "-3989177686905645288", + "-3957362495277148220", + "-2539287458896988944", + "-2460716365393303466", + "-1848370030729221440", + "137707733677015122", + "579467328507000597", + "1698264534774619627", + "1904235159942090722", + "3312208865519999146", + "4035940456270983993", + "4412314431151736777", + "8232565668795426078" + ], + "size": 16, + "hostID": "14092117-4f77-4ec0-8984-c5b860b88a47", + "rack": "rack2", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 726864, + "diskFreeKB": 1001283028, + "memoryUsedKB": 11055676, + "memoryBuffersAndCachedKB": 10691520, + "memoryFreeKB": 35863248, + "memoryTotalKB": 57610444, + "cpuUsage": 1.2 + }, + { + "address": "10.0.8.12", + "state": "", + "status": "", + "load": "93.2 MiB", + "tokens": [ + "-5679481051867296621", + "-4574115287969297989", + "-3444578133211470522", + "-2755931580714972271", + "-2304431590844389550", + "-1961946736975068713", + "-940120277889446704", + "554469308917912318", + "1030447162050118004", + "2745632329542596589", + "4564547712926446283", + "5185613478135944116", + "7280237939830623824", + "7504213835759531710", + "7631994478195429959", + "8139769477321226157" + ], + "size": 16, + "hostID": "e16ada14-39db-462b-9f9e-5b5f6beb8bbd", + "rack": "rack3", + "timestamp": "10/05/2021, 14:35:20.028", + "diskUsedKB": 757540, + "diskFreeKB": 1001252352, + "memoryUsedKB": 11051608, + "memoryBuffersAndCachedKB": 10453856, + "memoryFreeKB": 36104980, + "memoryTotalKB": 57610444, + "cpuUsage": 0.4 + } + ] + } + ] } } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 896b506f7ae3..dafe6aeff8c1 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -812,7 +812,7 @@ } ], "responses": { - "202": { + "200": { "description": "Enqueued Operation to start the cluster." }, "default": { @@ -1155,7 +1155,7 @@ "eTag": { "type": "string" }, - "cassandraClusterReaperStatus": { + "reaperStatus": { "$ref": "#/definitions/ManagedCassandraReaperStatus" }, "connectionErrors": { From 0d4292454a7d5e9b8f4840c22d864e0c44bc55eb Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Wed, 6 Oct 2021 23:27:24 -0700 Subject: [PATCH 33/50] remove fetchNodeStatus from stable --- .../stable/2021-10-15/managedCassandra.json | 99 +------------------ 1 file changed, 1 insertion(+), 98 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index dafe6aeff8c1..c2edecfbd97b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -386,49 +386,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": { - "post": { - "operationId": "CassandraClusters_FetchNodeStatus", - "description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "CosmosDBManagedCassandraClusterFetchNodeStatus": { - "$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. The node status will be returned asynchronously." - }, - "200": { - "description": "Successfully fetched the status of all nodes in the cluster.", - "schema": { - "$ref": "#/definitions/ClusterNodeStatus" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { "get": { "operationId": "CassandraClusters_ListBackups", @@ -1212,7 +1169,7 @@ "type": "integer", "format": "int32" }, - "hostId": { + "hostID": { "description": "The network ID of the node.", "type": "string" }, @@ -1389,60 +1346,6 @@ } } }, - "ClusterNodeStatus": { - "description": "The status of all nodes in the cluster (as returned by 'nodetool status').", - "type": "object", - "properties": { - "nodes": { - "type": "array", - "description": "Information about nodes in the cluster (corresponds to what is returned from nodetool info).", - "items": { - "type": "object", - "properties": { - "datacenter": { - "type": "string", - "description": "The Cassandra data center this node resides in." - }, - "status": { - "$ref": "#/definitions/ManagedCassandraNodeStatus" - }, - "state": { - "$ref": "#/definitions/ManagedCassandraNodeState" - }, - "address": { - "type": "string", - "description": "The node's URL." - }, - "load": { - "type": "string", - "description": "The amount of file system data in the data directory (e.g., 47.66 kB), excluding all content in the snapshots subdirectories. Because all SSTable data files are included, any data that is not cleaned up (such as TTL-expired cell or tombstoned data) is counted." - }, - "tokens": { - "type": "array", - "description": "List of tokens.", - "items": { - "type": "string", - "description": "Token of this node." - } - }, - "owns": { - "type": "number", - "format": "double", - "description": "The percentage of the data owned by the node per datacenter times the replication factor (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint percentage ownership information is shown." - }, - "hostId": { - "type": "string", - "description": "The network ID of the node." - }, - "rack": { - "type": "string", - "description": "The rack this node is part of." - } - } - } - } - } - }, "BackupResource": { "description": "A restorable backup of a Cassandra cluster.", "type": "object", From edfe40d89a8fde7dc5fcc49b229c953aac93442e Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 7 Oct 2021 00:04:05 -0700 Subject: [PATCH 34/50] remove unused example file, fix validation error --- ...anagedCassandraClusterFetchNodeStatus.json | 59 ------------------- .../stable/2021-10-15/managedCassandra.json | 2 +- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json deleted file mode 100644 index 3f6a4e203da3..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "cassandra-prod-rg", - "api-version": "2021-10-15", - "clusterName": "cassandra-prod" - }, - "responses": { - "202": {}, - "200": { - "body": { - "nodes": [ - { - "datacenter": "dc1", - "status": "Up", - "state": "Normal", - "address": "10.0.1.12", - "load": "512.3 MB", - "tokens": [ - "12", - "15" - ], - "owns": 33.3, - "hostId": "aaa1b7c1-6049-4a08-ad3e-3697a0e30e10", - "rack": "rack1" - }, - { - "datacenter": "dc1", - "status": "Up", - "state": "Normal", - "address": "10.0.1.13", - "load": "512.1 MB", - "tokens": [ - "12", - "15" - ], - "owns": 33.3, - "hostId": "1848c369-4306-4874-afdf-5c1e95b8732e", - "rack": "rack1" - }, - { - "datacenter": "dc1", - "status": "Up", - "state": "Normal", - "address": "10.0.1.14", - "load": "512.5 MB", - "tokens": [ - "12", - "15" - ], - "owns": 33.3, - "hostId": "49578bf1-728f-438d-b1c1-d8dd644b6f7f", - "rack": "rack1" - } - ] - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index c2edecfbd97b..497159ff92d9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -1228,7 +1228,7 @@ "type": "object", "properties": { "healthy": { - "type": "string" + "type": "boolean" }, "repairRunIds": { "type": "object", From fe75f717df304b6fd66c005a5e2244d8eb3c3cef Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Thu, 7 Oct 2021 07:48:19 -0700 Subject: [PATCH 35/50] Fixing the spell check and formatting issues --- .../CosmosDBManagedCassandraCommand.json | 6 +-- .../CosmosDBManagedCassandraStatus.json | 10 ++--- ...sDBMongoDBCollectionBackupInformation.json | 38 +++++++++---------- .../stable/2021-10-15/managedCassandra.json | 8 ++-- 4 files changed, 29 insertions(+), 33 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json index 20290f485b6b..e209f4d251f4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json @@ -5,8 +5,8 @@ "api-version": "2021-10-15", "clusterName": "cassandra-prod", "body": { - "command":"nodetool status", - "host": "10.0.1.12" + "command": "nodetool status", + "host": "10.0.1.12" } }, "responses": { @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json index 9752ef9d5659..0fcbca49eb54 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraStatus.json @@ -11,16 +11,12 @@ "eTag": "A350A2CE7E91B6D5A102A5E5EC222B882D981092", "reaperStatus": { "healthy": true, - "repairRunIds": { - - }, + "repairRunIds": {}, "repairSchedules": { "00000000-0000-0001-0000-000000000000": "ACTIVE" } }, - "connectionErrors": [ - - ], + "connectionErrors": [], "dataCenters": [ { "name": "cassandra-westus2-vmss", @@ -141,4 +137,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json index c5ea74b81cec..63543ff34bea 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBMongoDBCollectionBackupInformation.json @@ -1,23 +1,23 @@ { - "parameters": { - "api-version": "2021-10-15", - "subscriptionId": "subid", - "resourceGroupName": "rgName", - "accountName": "ddb1", - "databaseName": "databaseName", - "collectionName": "collectionName", - "location": { - "location": "North Europe" + "parameters": { + "api-version": "2021-10-15", + "subscriptionId": "subid", + "resourceGroupName": "rgName", + "accountName": "ddb1", + "databaseName": "databaseName", + "collectionName": "collectionName", + "location": { + "location": "North Europe" + } + }, + "responses": { + "200": { + "body": { + "continuousBackupInformation": { + "latestRestorableTimestamp": "2021-02-05T02:40:50Z" + } } }, - "responses": { - "200": { - "body": { - "continuousBackupInformation": { - "latestRestorableTimestamp": "2021-02-05T02:40:50Z" - } - } - }, - "202": {} - } + "202": {} + } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 497159ff92d9..67aa8dda3892 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -1130,7 +1130,7 @@ "properties": { "name": { "type": "string", - "description": "This Datacenter's name." + "description": "The name of this Datacenter." }, "seedNodes": { "type": "array", @@ -1182,7 +1182,7 @@ "type": "string" }, "diskUsedKB": { - "description": "The amount of disk used, in kB, of the diretory /var/lib/cassandra.", + "description": "The amount of disk used, in kB, of the directory /var/lib/cassandra.", "type": "integer", "format": "int64" }, @@ -1340,7 +1340,7 @@ "description": "Response of /command api", "type": "object", "properties": { - "commandOutput" : { + "commandOutput": { "type": "string", "description": "Output of the command." } @@ -1488,4 +1488,4 @@ } } } -} \ No newline at end of file +} From 189622fab6db173c85134610dc259cc25c8202b8 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 7 Oct 2021 12:14:03 -0700 Subject: [PATCH 36/50] remove /repair api, make /command async --- .../stable/2021-10-15/managedCassandra.json | 68 +------------------ 1 file changed, 1 insertion(+), 67 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 67aa8dda3892..87c71febad09 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -292,52 +292,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": { - "post": { - "operationId": "CassandraClusters_RequestRepair", - "description": "Request that repair begin on this cluster as soon as possible.", - "x-ms-examples": { - "CosmosDBManagedCassandraRepair": { - "$ref": "./examples/CosmosDBManagedCassandraRepair.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RepairPostBody" - }, - "description": "Specification of what keyspaces and tables to run repair on." - } - ], - "responses": { - "200": { - "description": "Success. The repair operation will begin as soon as possible." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/command": { "post": { "operationId": "CassandraClusters_InvokeCommand", @@ -347,6 +301,7 @@ "$ref": "./examples/CosmosDBManagedCassandraCommand.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" @@ -1282,27 +1237,6 @@ } } }, - "RepairPostBody": { - "description": "Specification of the keyspaces and tables to run repair on.", - "type": "object", - "required": [ - "keyspace" - ], - "properties": { - "keyspace": { - "type": "string", - "description": "The name of the keyspace that repair should be run on." - }, - "tables": { - "type": "array", - "description": "List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace.", - "items": { - "type": "string", - "description": "Name of a table in the Cassandra keyspace." - } - } - } - }, "CommandPostBody": { "description": "Specification of which command to run where", "type": "object", From 2e4406053015f534ea8f33f31d62d2fa27f0909c Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 7 Oct 2021 12:29:12 -0700 Subject: [PATCH 37/50] remove unreferrenced example json --- .../CosmosDBManagedCassandraRepair.json | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json deleted file mode 100644 index 77794d89ac75..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraRepair.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "cassandra-prod-rg", - "api-version": "2021-10-15", - "clusterName": "cassandra-prod", - "body": { - "keyspace": "my-keyspace", - "tables": [ - "table1", - "table42" - ] - } - }, - "responses": { - "200": {} - } -} From 7e772b1388ee9ffd1207feb31783579c8ea1fa42 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 7 Oct 2021 16:09:50 -0700 Subject: [PATCH 38/50] remove pageable link from /status api --- .../stable/2021-10-15/managedCassandra.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 87c71febad09..77c9531fc53d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -740,9 +740,6 @@ "get": { "operationId": "CassandraStatus_Get", "description": "Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.", - "x-ms-pageable": { - "nextLinkName": null - }, "x-ms-examples": { "CosmosDBManagedCassandraStatus": { "$ref": "./examples/CosmosDBManagedCassandraStatus.json" From 43801c074ec8503f064ae35ef89164c73a99a11d Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Fri, 8 Oct 2021 16:05:21 -0700 Subject: [PATCH 39/50] remove backups api, add cassandraAuditLoggingEnabled property --- ...osDBManagedCassandraClusterDeallocate.json | 2 +- .../stable/2021-10-15/managedCassandra.json | 119 ------------------ 2 files changed, 1 insertion(+), 120 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json index ccde8b2f60de..f5e0c016003c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subid", "resourceGroupName": "cassandra-prod-rg", - "api-version": "2021-10-preview", + "api-version": "2021-10", "clusterName": "cassandra-prod" }, "responses": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 77c9531fc53d..1efe83177040 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -341,90 +341,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": { - "get": { - "operationId": "CassandraClusters_ListBackups", - "description": "List the backups of this cluster that are available to restore.", - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "CosmosDBManagedCassandraBackupsList": { - "$ref": "./examples/CosmosDBManagedCassandraBackupsList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of restorable backups for this Cassandra cluster.", - "schema": { - "$ref": "#/definitions/ListBackups" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}": { - "get": { - "operationId": "CassandraClusters_GetBackup", - "description": "Get the properties of an individual backup of this cluster that is available to restore.", - "x-ms-examples": { - "CosmosDBManagedCassandraBackup": { - "$ref": "./examples/CosmosDBManagedCassandraBackup.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/clusterNameParameter" - }, - { - "$ref": "#/parameters/backupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the properties of the backup.", - "schema": { - "$ref": "#/definitions/BackupResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "cosmos-db.json#/definitions/CloudError" - } - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters": { "get": { "operationId": "CassandraDataCenters_List", @@ -1277,41 +1193,6 @@ } } }, - "BackupResource": { - "description": "A restorable backup of a Cassandra cluster.", - "type": "object", - "allOf": [ - { - "$ref": "cosmos-db.json#/definitions/ARMProxyResource" - } - ], - "properties": { - "properties": { - "type": "object", - "properties": { - "timestamp": { - "type": "string", - "format": "date-time", - "description": "The time this backup was taken, formatted like 2021-01-21T17:35:21" - } - } - } - } - }, - "ListBackups": { - "description": "List of restorable backups for a Cassandra cluster.", - "type": "object", - "properties": { - "value": { - "description": "Container for array of backups.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/BackupResource" - } - } - } - }, "ListDataCenters": { "description": "List of managed Cassandra data centers and their properties.", "type": "object", From 0e7714bf1e5f4a1f43fea0b5e16a6bd0559946d8 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Fri, 8 Oct 2021 16:13:21 -0700 Subject: [PATCH 40/50] add cassandraAuditLoggingEnabled property --- .../stable/2021-10-15/managedCassandra.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 1efe83177040..29c57d5fd478 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -941,6 +941,10 @@ "connectivity": { "type": "string", "description": "The connectivity method to connect to the Cassandra data centers. Defaults to 'VNetInjection'" + }, + "cassandraAuditLoggingEnabled": { + "type": "boolean", + "description": "Whether Cassandra audit logging is enabled" } } } From 65c8580a41ce5e39a662f027add60a7b0c0bd2c4 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Mon, 11 Oct 2021 16:52:54 -0700 Subject: [PATCH 41/50] make /status api async, minor fixes --- .../stable/2021-10-15/managedCassandra.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 29c57d5fd478..86c77e23ebe7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -580,7 +580,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate": { "post": { - "operationId": "CassandraCluster_Deallocate", + "operationId": "CassandraClusters_Deallocate", "description": "Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.", "x-ms-examples": { "CosmosDBManagedCassandraClusterDeallocate": { @@ -617,7 +617,7 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start": { "post": { - "operationId": "CassandraCluster_Start", + "operationId": "CassandraClusters_Start", "description": "Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.", "x-ms-examples": { "CosmosDBManagedCassandraClusterStart": { @@ -654,13 +654,14 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/status": { "get": { - "operationId": "CassandraStatus_Get", + "operationId": "CassandraClusters_Status", "description": "Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.", "x-ms-examples": { "CosmosDBManagedCassandraStatus": { "$ref": "./examples/CosmosDBManagedCassandraStatus.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" @@ -932,7 +933,7 @@ "hoursBetweenBackups": { "type": "integer", "format": "int32", - "description": "Number of hours to wait between taking a backup of the cluster." + "description": "Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0." }, "deallocated": { "type": "boolean", @@ -1166,9 +1167,9 @@ "type": "string", "description": "The command which should be run" }, - "parameters": { + "arguments": { "type": "object", - "description": "The parameters for the command to be run", + "description": "The arguments for the command to be run", "additionalProperties": { "type": "string" } From 5a63b07019788b420676b4ec3409089eb01ed14e Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Mon, 11 Oct 2021 16:59:17 -0700 Subject: [PATCH 42/50] remove async tag to /status --- .../Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 86c77e23ebe7..303f329d16ef 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -661,7 +661,6 @@ "$ref": "./examples/CosmosDBManagedCassandraStatus.json" } }, - "x-ms-long-running-operation": true, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" From 3c5392d25a8aab46fa4b0360abdf83a9a89ff4f4 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 12 Oct 2021 22:49:24 -0700 Subject: [PATCH 43/50] remove connectivity property, add Ldap as preview --- .../stable/2021-10-15/managedCassandra.json | 53 ++++++++++++++++--- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 303f329d16ef..34cf764bec04 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -863,10 +863,11 @@ }, "authenticationMethod": { "type": "string", - "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", + "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'. 'Ldap' is in preview.", "enum": [ "None", - "Cassandra" + "Cassandra", + "Ldap" ], "x-ms-enum": { "name": "AuthenticationMethod", @@ -938,10 +939,6 @@ "type": "boolean", "description": "Whether the cluster and associated data centers has been deallocated." }, - "connectivity": { - "type": "string", - "description": "The connectivity method to connect to the Cassandra data centers. Defaults to 'VNetInjection'" - }, "cassandraAuditLoggingEnabled": { "type": "boolean", "description": "Whether Cassandra audit logging is enabled" @@ -1280,7 +1277,7 @@ }, "managedDiskCustomerKeyUri": { "type": "string", - "description": "Indicates the Key Uri of the customer key to use for encryption of managed disks." + "description": "Key uri to use for encryption of managed disks. Ensure the system assigned identity of the cluster has been assigned appropriate permissions(key get/wrap/unwrap permissions) on the key." }, "sku": { "type": "string", @@ -1297,11 +1294,51 @@ }, "availabilityZone": { "type": "boolean", - "description": "If the data center will have Availability Zone feature apply to the Virtual Machine ScaleSet that host the data center virtual machines" + "description": "If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines." + }, + "authenticationMethodLdapProperties": { + "$ref": "#/definitions/AuthenticationMethodLdapProperties" } } } } + }, + "AuthenticationMethodLdapProperties": { + "type": "object", + "description": "Ldap authentication method properties. This feature is in preview.", + "properties": { + "serverHostname": { + "description": "Hostname of the LDAP server.", + "type": "string" + }, + "serverPort": { + "description": "Port of the LDAP server.", + "type": "integer", + "format": "int32" + }, + "serviceUserDistinguishedName": { + "description": "Distinguished name of the look up user account, who can look up user details on authentication.", + "type": "string" + }, + "serviceUserPassword": { + "description": "Password of the look up user.", + "type": "string" + }, + "searchBaseDistinguishedName": { + "description": "Distinguished name of the object to start the recursive search of users from.", + "type": "string" + }, + "searchFilterTemplate": { + "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", + "type": "string" + }, + "serverCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + } + } + } } } } From e95b4ac1c1710e4179cbfdaae612a0750dedc994 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 12 Oct 2021 23:11:14 -0700 Subject: [PATCH 44/50] remove unreferenced example files --- .../CosmosDBManagedCassandraBackup.json | 21 ------------ .../CosmosDBManagedCassandraBackupsList.json | 32 ------------------- 2 files changed, 53 deletions(-) delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json deleted file mode 100644 index 05c98f869206..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackup.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "cassandra-prod-rg", - "api-version": "2021-10-15", - "clusterName": "cassandra-prod", - "backupId": "1611250348" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348", - "name": "1611250348", - "type": "Microsoft.DocumentDB/cassandraClusters/backups", - "properties": { - "timestamp": "2021-01-21T17:32:28Z" - } - } - } - } -} diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json deleted file mode 100644 index 62a16ea1ac16..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraBackupsList.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "cassandra-prod-rg", - "api-version": "2021-10-15", - "clusterName": "cassandra-prod" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611250348", - "name": "1611250348", - "type": "Microsoft.DocumentDB/cassandraClusters/backups", - "properties": { - "timestamp": "2021-01-21T17:32:28Z" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/backups/1611214220", - "name": "1611214220", - "type": "Microsoft.DocumentDB/cassandraClusters/backups", - "properties": { - "timestamp": "2021-01-21T07:30:20Z" - } - } - ] - } - } - } -} From 0bbba308e9852d38f06ef8e50be981a3cde80a1c Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 12 Oct 2021 23:17:43 -0700 Subject: [PATCH 45/50] use guid in subid for examples --- .../examples/CosmosDBManagedCassandraClusterDelete.json | 2 +- .../examples/CosmosDBManagedCassandraClusterGet.json | 4 ++-- .../CosmosDBManagedCassandraClusterListByResourceGroup.json | 4 ++-- .../CosmosDBManagedCassandraClusterListBySubscription.json | 4 ++-- .../examples/CosmosDBManagedCassandraClusterPatch.json | 6 +++--- .../examples/CosmosDBManagedCassandraDataCenterCreate.json | 6 +++--- .../examples/CosmosDBManagedCassandraDataCenterDelete.json | 2 +- .../examples/CosmosDBManagedCassandraDataCenterGet.json | 4 ++-- .../examples/CosmosDBManagedCassandraDataCenterList.json | 4 ++-- .../examples/CosmosDBManagedCassandraDataCenterPatch.json | 6 +++--- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json index 8a28ceba234c..a40588702ae2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json index f7db1021fad5..21f2ecb3e964 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterGet.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod" @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", "name": "cassandra-prod", "type": "Microsoft.DocumentDB/cassandraClusters", "location": "West US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json index 2247e01e4e3b..2063f554fe6e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15" }, @@ -9,7 +9,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters", "name": "cassandra-prod", "type": "Microsoft.DocumentDB/cassandraClusters", "location": "West US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json index 285d39a141de..fd24f1cfa748 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2021-10-15" }, "responses": { @@ -8,7 +8,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/cassandraClusters", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/cassandraClusters", "name": "cassandra-prod", "type": "Microsoft.DocumentDB/cassandraClusters", "location": "West US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json index 3d67110863ba..55115ee3a764 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod", @@ -33,7 +33,7 @@ "responses": { "202": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", "name": "cassandra-prod", "type": "Microsoft.DocumentDB/cassandraClusters", "location": "West US", @@ -98,7 +98,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod", "name": "cassandra-prod", "type": "Microsoft.DocumentDB/cassandraClusters", "location": "West US", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json index 2bbe6107c2de..0c4be18f925d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod", @@ -17,7 +17,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { @@ -41,7 +41,7 @@ }, "201": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json index 9656c82c31b7..a507d67999f5 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json index 7ea09c5f8ce1..5a90ed6bdaea 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterGet.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod", @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json index f7dee7b95d3c..03079aa4eead 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterList.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod" @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json index 85f775ed3eac..2211bcc31c79 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraDataCenterPatch.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "subid", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "cassandra-prod-rg", "api-version": "2021-10-15", "clusterName": "cassandra-prod", @@ -17,7 +17,7 @@ "responses": { "202": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { @@ -42,7 +42,7 @@ }, "200": { "body": { - "id": "/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1", "name": "dc1", "type": "Microsoft.DocumentDB/cassandraClusters/dataCenters", "properties": { From e2c4f7f43ac4fc538a606ffe709cc624e7348234 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Mon, 18 Oct 2021 00:38:20 -0700 Subject: [PATCH 46/50] add backupStorageCustomerKeyUri property --- .../stable/2021-10-15/managedCassandra.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 34cf764bec04..6e26b123fdbf 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -1279,6 +1279,10 @@ "type": "string", "description": "Key uri to use for encryption of managed disks. Ensure the system assigned identity of the cluster has been assigned appropriate permissions(key get/wrap/unwrap permissions) on the key." }, + "backupStorageCustomerKeyUri": { + "type": "string", + "description": "Indicates the Key Uri of the customer key to use for encryption of the backup storage account." + }, "sku": { "type": "string", "description": "Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2" From 6168f25b61e99c827720a7e19639bf04ec742de0 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Tue, 19 Oct 2021 09:38:24 -0700 Subject: [PATCH 47/50] fix api response code --- .../examples/CosmosDBManagedCassandraClusterDeallocate.json | 2 +- .../examples/CosmosDBManagedCassandraClusterStart.json | 2 +- .../stable/2021-10-15/managedCassandra.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json index f5e0c016003c..5312276b665e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterDeallocate.json @@ -6,6 +6,6 @@ "clusterName": "cassandra-prod" }, "responses": { - "200": {} + "202": {} } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json index bb1d07a2c038..a9ceaa328be0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraClusterStart.json @@ -6,6 +6,6 @@ "clusterName": "cassandra-prod" }, "responses": { - "200": {} + "202": {} } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index 6e26b123fdbf..e8eb5e245f84 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -603,7 +603,7 @@ } ], "responses": { - "200": { + "202": { "description": "Cluster deallocated." }, "default": { @@ -640,7 +640,7 @@ } ], "responses": { - "200": { + "202": { "description": "Enqueued Operation to start the cluster." }, "default": { From 3f07ff96887d68e578b5a3c3039697e051ba1670 Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Thu, 21 Oct 2021 11:06:03 -0700 Subject: [PATCH 48/50] remove ldap --- .../stable/2021-10-15/managedCassandra.json | 45 +------------------ 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index e8eb5e245f84..b539e8265ad6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -863,11 +863,10 @@ }, "authenticationMethod": { "type": "string", - "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'. 'Ldap' is in preview.", + "description": "Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.", "enum": [ "None", - "Cassandra", - "Ldap" + "Cassandra" ], "x-ms-enum": { "name": "AuthenticationMethod", @@ -1299,50 +1298,10 @@ "availabilityZone": { "type": "boolean", "description": "If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines." - }, - "authenticationMethodLdapProperties": { - "$ref": "#/definitions/AuthenticationMethodLdapProperties" } } } } - }, - "AuthenticationMethodLdapProperties": { - "type": "object", - "description": "Ldap authentication method properties. This feature is in preview.", - "properties": { - "serverHostname": { - "description": "Hostname of the LDAP server.", - "type": "string" - }, - "serverPort": { - "description": "Port of the LDAP server.", - "type": "integer", - "format": "int32" - }, - "serviceUserDistinguishedName": { - "description": "Distinguished name of the look up user account, who can look up user details on authentication.", - "type": "string" - }, - "serviceUserPassword": { - "description": "Password of the look up user.", - "type": "string" - }, - "searchBaseDistinguishedName": { - "description": "Distinguished name of the object to start the recursive search of users from.", - "type": "string" - }, - "searchFilterTemplate": { - "description": "Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.", - "type": "string" - }, - "serverCertificates": { - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - } - } - } } } } From 0c092e1555b3b6793421ac8f920022befe0f4b40 Mon Sep 17 00:00:00 2001 From: Kalyan Khandrika Date: Thu, 21 Oct 2021 12:59:23 -0700 Subject: [PATCH 49/50] Changing operationId for locations API --- .../Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json index c65758db1a79..fb44a09bb474 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/cosmos-db.json @@ -5051,7 +5051,7 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations": { "get": { - "operationId": "LocationList", + "operationId": "Locations_List", "x-ms-examples": { "CosmosDBLocationList": { "$ref": "./examples/CosmosDBLocationList.json" @@ -5087,7 +5087,7 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}": { "get": { - "operationId": "LocationGet", + "operationId": "Locations_Get", "x-ms-examples": { "CosmosDBLocationGet": { "$ref": "./examples/CosmosDBLocationGet.json" From 80f39e724c83b815c528f2ff1414bb163225e9ad Mon Sep 17 00:00:00 2001 From: Vivek Sundararajan Date: Fri, 22 Oct 2021 12:11:46 -0700 Subject: [PATCH 50/50] review comments --- .../examples/CosmosDBManagedCassandraCommand.json | 2 +- .../stable/2021-10-15/managedCassandra.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json index e209f4d251f4..2485a2eb26c9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/examples/CosmosDBManagedCassandraCommand.json @@ -10,7 +10,7 @@ } }, "responses": { - "200": { + "202": { "body": { "commandOutput": "Datacenter: datacenter1\n=======================\n" } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json index b539e8265ad6..13ff8f80e1c3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2021-10-15/managedCassandra.json @@ -292,7 +292,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/command": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/invokeCommand": { "post": { "operationId": "CassandraClusters_InvokeCommand", "description": "Invoke a command like nodetool for cassandra maintenance ", @@ -326,7 +326,7 @@ } ], "responses": { - "200": { + "202": { "description": "Success. The command operation will begin as soon as possible.", "schema": { "$ref": "#/definitions/CommandOutput" @@ -1046,7 +1046,7 @@ "type": "string" }, "timestamp": { - "description": "The timestamp at which that snapshot of these usage statistics were taken.", + "description": "The timestamp when these statistics were captured.", "type": "string" }, "diskUsedKB": {