mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-17 15:17:49 +01:00
vnet automation
This commit is contained in:
parent
1f4e79f856
commit
62e90ed26d
@ -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
Loading…
x
Reference in New Issue
Block a user