@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
84 lines (83 loc) • 4.68 kB
TypeScript
export declare class AzureConstants {
/**
* Azure Resource Manager endpoint - Azure Global/Public cloud.
*/
static readonly azureGlobalArmEndpoint = "https://management.azure.com";
/**
* Azure public portal.
*/
static readonly azureGlobalPortal = "https://portal.azure.com";
/**
* Azure Resource Manager endpoint - Azure China cloud.
*/
static readonly azureChinaArmEndpoint = "https://management.chinacloudapi.cn";
/**
* Azure China portal.
*/
static readonly azureChinaPortal = "https://portal.azure.cn";
/**
* Azure Resource Manager endpoint - Azure US Govenment/Fairfax/Arlington.
*/
static readonly azureUSGovArmEndpoint = "https://management.usgovcloudapi.net";
/**
* Azure US Government portal.
*/
static readonly azureUSGovPortal = "https://portal.azure.us";
static readonly armApiVersion = "?api-version=2016-06-01";
static readonly azureSubscriptionUrl = "{0}/subscriptions?api-version=2016-06-01";
static readonly armDeploymentUrl = "{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01";
static readonly validateAzureTemplate = "{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}/validate?api-version=2018-05-01";
static readonly getAllGeoLocations = "{0}/subscriptions/{1}/locations?api-version=2016-06-01";
static readonly getResourceGroupsUri = "{0}/subscriptions/{1}/resourcegroups?api-version=2018-02-01";
static readonly listResourceGroups = "{0}/subscriptions/{1}/resourcegroups?api-version=2018-05-01";
static readonly listResourceGroupsWithParameters = "{0}/subscriptions/{1}/resourcegroups?$filter={2}&$top={3}api-version=2018-05-01";
static readonly resourceGroupUrl = "{0}/subscriptions/{1}/resourcegroups/{2}?api-version=2018-05-01";
static readonly ArmDeploymentUrl = "{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01";
static readonly bearer = "Bearer ";
static readonly authorizationHeaderKey = "Authorization";
static readonly acceptLanguageHeaderKey = "Accept-Language";
static readonly clientRequestHeaderKey = "x-ms-client-request-id";
static readonly returnClientRequestHeaderKey = "x-ms-return-client-request-id";
static readonly telemetryDataParameter = "telemetryData={0}; ";
static readonly telemetryDataInvalidValue = "invalid";
static readonly integrationTypeDataParameter = "integrationType={0}; ";
static readonly clientRequestIdQualifier = "{0}; ";
static readonly sourceParameter = "source=WindowsAdminCenter";
static readonly maxEncodedTelemetryDataLength = 512;
static readonly resourceDeploymentSubstring = "Microsoft.Resources/deployments";
static readonly graphResourceEndpoint = "/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01";
static readonly resourceTypeFilterQuery = "resources | where (type == \"microsoft.hybridcompute/machines\" or type == \"microsoft.compute/virtualmachines\")\n and tolower(name) in ({0}) | project arcStatus = properties.status, nodeName = name, type";
static readonly azureVmsFilterQuery = "resources | where (type == \"microsoft.compute/virtualmachines\")\n and tolower(name) in ({0}) | project nodeName = name, type";
static readonly virtualMachine = "microsoft.compute/virtualmachines";
/**
* WAC URLS for azure arc machine agent
*/
static readonly arcMachineAgentIssuesURL = "https://go.microsoft.com/fwlink/?linkid=2248533";
static readonly expiredArcMachineAgentURL = "https://learn.microsoft.com/azure/azure-arc/servers/manage-agent?tabs=windows#step-2-disconnect-the-server-from-azure-arc";
/**
* The interval of running the graph query call.
* In this case it's 15 minutes
*/
static graphQueryInterval: number;
static readonly arcStatusGraphQueryDelay = 7000;
static readonly arcStatusGraphQueryRetryCount = 8;
}
export declare enum AzureIntegrationType {
Backup = "Backup",
Bridge = "Bridge",
FileSync = "FileSync",
HybridServices = "HybridServices",
Monitor = "Monitor",
NetworkAdapter = "NetworkAdapter",
SecurityCenter = "SecurityCenter",
SiteRecovery = "SiteRecovery",
AzureMigrate = "AzureMigrate",
SubnetStretch = "SubnetStretch",
S2SVPN = "S2SVPN",
UpdateManagement = "UpdateManagement",
VirtualMachineCreation = "VirtualMachineCreation",
VirtualMachineSelection = "VirtualMachineSelection"
}
export declare namespace ArmTelemetry {
function toIntegrationType(moduleName: string): string;
}