mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-23 02:05:54 +00:00
Fix ARM api version (#1154)
This commit is contained in:
parent
64f36e2d28
commit
e3d5ad2ce8
src
@ -9,7 +9,7 @@
|
||||
import { configContext } from "../../../../ConfigContext";
|
||||
import { armRequest } from "../../request";
|
||||
import * as Types from "./types";
|
||||
const apiVersion = "2021-10-15";
|
||||
const apiVersion = "2021-04-15";
|
||||
|
||||
/* Lists the SQL databases under an existing Azure Cosmos DB database account. */
|
||||
export async function listSqlDatabases(
|
||||
|
@ -15,7 +15,7 @@ export async function fetchDatabaseAccounts(subscriptionId: string, accessToken:
|
||||
headers.append("Authorization", bearer);
|
||||
|
||||
let accounts: Array<DatabaseAccount> = [];
|
||||
const apiVersion = userContext.features.enableThroughputCap ? "2021-10-15" : "2021-06-15";
|
||||
const apiVersion = userContext.features.enableThroughputCap ? "2021-10-15-preview" : "2021-06-15";
|
||||
let nextLink = `${configContext.ARM_ENDPOINT}/subscriptions/${subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts?api-version=${apiVersion}`;
|
||||
|
||||
while (nextLink) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user