mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 12:51:41 +00:00
vnet automation
This commit is contained in:
@@ -26,7 +26,7 @@ export const getUserRegion = async (subscriptionId: string, resourceGroup: strin
|
||||
|
||||
};
|
||||
|
||||
export async function getARMInfo<T>(path: string, apiVersion: string = "2024-07-01"): Promise<T> {
|
||||
export async function GetARMCall<T>(path: string, apiVersion: string = "2024-07-01"): Promise<T> {
|
||||
return await armRequest<T>({
|
||||
host: configContext.ARM_ENDPOINT,
|
||||
path: path,
|
||||
@@ -35,6 +35,16 @@ export async function getARMInfo<T>(path: string, apiVersion: string = "2024-07-
|
||||
});
|
||||
};
|
||||
|
||||
export async function PutARMCall<T>(path: string, request: object, apiVersion: string = "2024-07-01"): Promise<T> {
|
||||
return await armRequest<T>({
|
||||
host: configContext.ARM_ENDPOINT,
|
||||
path: path,
|
||||
method: "PUT",
|
||||
apiVersion: apiVersion,
|
||||
body: request
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteUserSettings = async (): Promise<void> => {
|
||||
await armRequest<void>({
|
||||
host: configContext.ARM_ENDPOINT,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user