mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-21 00:59:26 +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>({
|
return await armRequest<T>({
|
||||||
host: configContext.ARM_ENDPOINT,
|
host: configContext.ARM_ENDPOINT,
|
||||||
path: path,
|
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> => {
|
export const deleteUserSettings = async (): Promise<void> => {
|
||||||
await armRequest<void>({
|
await armRequest<void>({
|
||||||
host: configContext.ARM_ENDPOINT,
|
host: configContext.ARM_ENDPOINT,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user